// JavaScript Document
//code connected with displaying flash in IE
/*theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++)
{
theObjects[i].outerHTML = theObjects[i].outerHTML;
}*/

function pageInit() {

	if (!document.getElementById) return
  
	var col1 = document.getElementById('menuleft');
	var col2 = document.getElementById('content');
	var col3 = document.getElementById('menuright');
	
	var maxHeight = 0;
	
	if (getHeight(col1) > maxHeight) maxHeight = getHeight(col1);
	if (getHeight(col2) > maxHeight) maxHeight = getHeight(col2);
	if (getHeight(col3) > maxHeight) maxHeight = getHeight(col3);
	

	col1.style.height = maxHeight.toString()+'px';
	col2.style.height = maxHeight.toString()+'px';
	col3.style.height = maxHeight.toString()+'px';

	function getHeight(obj)
	{
		if(obj.offsetHeight){
		     return obj.offsetHeight;
		} 
		else if(obj.style.pixelHeight){ 
		     return obj.style.pixelHeight;
		}
		else null;
	}
}

window.onload = pageInit;
