//jQuery document load
$(document).ready(function(){
	$.fn.equalHeight = function() {
		tallest = 0;
		this.each(function(){
			thisHeight = $(this).height();
			if( thisHeight > tallest) tallest = thisHeight;
		});
        // set each items height to use the tallest value found
		this.each(function(){
			$(this).height(tallest);
		});
	}  
	//initialise prettyPhoto
	$("a[rel^='prettyPhoto']").prettyPhoto({
		opacity: 0.9
	});
	//set latest products to equal heights
	$('.latest-prod').equalHeight();  
});
