$(function() {
// Uitklapfunctionaliteit
	$("div.productCategories div.categorie div.more").hide();
	$("div.productCategories div.categorie a.showMore").click(function () {
			$("div.productCategories div.categorie div.more").hide();
			$("div.productCategories div.categorie a.showMore").removeClass('active');
			$(this).parents("div.categorie").find("div.more").show();
			$(this).addClass('active');
			return false;
		});	

	$("div.productCategorie ul li").hover(function() {
		$(this).find("div.detail").show();
		return false;
	}, function() {
		$(this).find("div.detail").hide();
		return false;
	});
		
		
		
		
// Equalheigth functie
	setTimeout(function(){  //timeout voor chrome
		$(".equal").equalHeights();
	}, 1000);

	
// MBT equalheights de fullCarrousel styling
	if ($('#fullCarrousel').length == 1) {
		$('#rightContent .cornersBottomLine').hide();
	}
});

// equalHeights Functuionaliteit
$.fn.equalHeights = function(minHeight, maxHeight) {
	tallest = (minHeight) ? minHeight : 0;
	this.each(function() {
		if($(this).height() > tallest) {
			tallest = $(this).height();
		}
	});
	if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
	return this.each(function() {
	if ($.browser.msie && $.browser.version == 6.0) { $(this).height(tallest); }
		$(this).css("min-height", tallest + "px");
	});
}

