var slideBox = {

	init: function() {

		var me = this;
		$j('[rel|=slideBox]').bind('click', function() {
			me.closeAll();
			me.openBox(this);
		});
		
	},

	closeAll: function() {
		$j('[class|=slideBoxContent]:visible').hide('blind');
		$j(elem).children('.slideBoxHeader').attr('id', 'inActive');
	},

	openBox: function(elem) {

		if($j(elem).children('.slideBoxContent').css('display') == "block") {
			return;
		}

		$j(elem).children('.slideBoxContent').show('slide', function() {
		}); 
	}

}

$j(document).ready(function() {
	slideBox.init();
});
