
$(document).ready(function()
{
	$('#header [href=huren]').parent().mouseenter(function()
	{
		if (!$(this).hasClass('active'))
		{
			$(this).addClass('active huren');
			$('#container-assortiment').appendTo( $(this) );
			$('#container-assortiment').show();
			
			$(this).mouseleave(function(){
				$(this).removeClass('active huren');
				$('#container-assortiment').hide();
			})
		}
	});
});

$(document).ready(function(){

// When a list item is hovered
	$(".product").mouseenter(function(){
		$(this).find('.slider').slideDown('fast');
		$(this).find('.overview-image').animate({opacity: 0.7},200);
	})
	.mouseleave(function(){
		$(this).find('.slider').slideUp('fast');
		$(this).find('.overview-image').animate({opacity: 1.0},200);
	});
	
	$('.product').click(function(){
	  window.location = $(this).children('a').attr('href');
	}); 
});


//animate de knoppen met style: ani-knop
$(document).ready(function()
{
	$('.knop-ani').mouseover(function(){
		$(this).animate({
		    opacity: 0.8
		  }, 200);
	}).mouseleave(function(){
		$(this).animate({
		    opacity: 1
		  }, 200);
	});
});
