$(document).ready( function() {
	// haal de lengte op van de linker kolom en de content
	var links 	= $("#links").height() ;
	var content = $("#content").height() ;
	
	if ( content < links ) {
		$("#content").height(links) ;
		$("#taf").css('margin-top',((links-content)+26)+'px') ;
	}
	
	// Pas het formaat van de home page afbeeldingen aan
	var img = $('.home-prod-image');
    img.crop({ height: 140, width: 140 }) ;
    
    // Product images
    $(".thickbox img").fadeTo("fast", 0.5); 
    
    $('a.thickbox:has(img)').hover(function() { 
        $('img', this).stop().animate({"opacity": 1}); 
    },function() { 
        $('img', this).stop().animate({"opacity": 0.5}); 
    });

    
    $('.thickbox').click(function(e){
    	e.preventDefault();
    	var src = $(this).attr('href') ;
    	$("#bigpic").attr("src", src);
    });
	
});
