// JavaScript Document
var height=new Array(); 
var maxheight = 400;
function set_height_prod()
{
			
			$("div.prod").each(function () {
		
		/* Max width for the image */
		
		height.push($(this).height());
		
		
		});
		
		var new_height=Math.max.apply(0,height);
		if(new_height<maxheight)
		{
			new_height=maxheight;
		}
		else if(new_height>maxheight)
		{
			new_height=new_height;
		}
		//alert(new_height);
		new_height=new_height+30;
		var sheet = document.createElement('style');
		sheet.innerHTML = ".prod {height:"+new_height+"px;}";
		document.getElementById('cust_height').appendChild(sheet);
}

