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

