function onloaddeatils()
{

	$alllayer = document.getElementsByTagName("DIV");
	
	$leftclass = null;
	$rightclass = null;
	$contentclass = null;
	
	$midpanclass = null;
	$midleft = null;
	$midright = null;
	
	
	$_hieight = 0;
	
	for($count = 0;$count < $alllayer.length;$count++)
	{
		$datacheck = 0;
		if($alllayer[$count].className == "leftpanel")	{ $leftclass = $alllayer[$count];	$datacheck = 1; }
		if($alllayer[$count].className == "rightpanel")	{ $rightclass = $alllayer[$count];	$datacheck = 1; }
		if($alllayer[$count].className == "midpanel")	{ $contentclass = $alllayer[$count];	$datacheck = 1; }		
		
		if($datacheck > 0)
		{
			if(parseInt($alllayer[$count].offsetHeight) > $_hieight)
			{
				$_hieight = parseInt($alllayer[$count].offsetHeight);
				
			} // end of the if condition
		}
	}
	
	// now try to adjust the address details on the chessbury site
	try
	{
		$_hieight = parseInt($_hieight) + 10;
		if($rightclass != null) { $rightclass.style.height = $_hieight + "px";}
		if($leftclass != null) { $leftclass.style.height = $_hieight + "px";}
		if($contentclass != null) { $contentclass.style.height= $_hieight + "px"; }
	}
	catch(e)
	{

	}
	
	

}

// this will load file when all the file is loading
window.onload = onloaddeatils;