
<!--
// This function is used to dynamically change the heights of the
// column 


var prevFunction = null;

function callAllFunct()
{ 
	if(prevFunction)
	{ 
		prevFunction(); 
	}
	setColumnHeights(); 
}

function callOnload()
{
	// The body onload method can be retrieved using window.onload
	prevFunction = window.onload;
	window.onload = callAllFunct;
}


function setColumnHeights()
{
	var maxHeight=0;
	var productdiv = "";
	for (index = 0; index < productcount; index++)
	{
		productdiv = document.getElementById("col" + index);
		theHeight = parseInt(productdiv.scrollHeight);
		if (theHeight > maxHeight)
		{
			maxHeight = theHeight;
		}
	}
	// The extra 5 pixel is required to prevent the bug noticed in IE
	maxHeight = maxHeight + 5;
	for (index = 0; index < productcount; index++)
	{
		divname= "col" + index;
		obj = document.getElementById(divname);
		// Not sure whether setting min height makes any difference..But trying it out so as to fix the problem in FF
		obj.style.minHeight=maxHeight+"px";		
		obj.style.height=maxHeight+"px";
	}		
	return true;
}

callOnload();


// End -->