


function fixShadows()
{
	var navH = Number(document.getElementById("nav-bg_div").offsetHeight);
	
	var contentH = Number(document.getElementById("content_div").offsetHeight);
	
	var subnavH = 0;
	if(document.getElementById("subnav-bg_div") != null) subnavH = Number(document.getElementById("subnav-bg_div").offsetHeight + 1);
	
	var shR = Object( document.getElementById("shadow_right") );
	shR.style.height = contentH + "px";
	
	var shL = Object( document.getElementById("shadow_left") );
	var shL_height = contentH - navH - subnavH;
	if( shL_height < 1 )	shL_height = 1;
	
	shL.style.height = shL_height + "px";
	
	shadowIE6fix();
}

function stretchHeadImg()
{
	var navH = Number( document.getElementById("nav-bg_div").offsetHeight );
	
	var topImgDiv = Object( document.getElementById("top_img_div") );
	topImgDiv.style.height = navH + "px";
	topImgDiv.style.visibility = "visible";
	
	fixShadows();
}



function shadowIE6fix()
{
	if (navigator.appVersion.indexOf("MSIE") != -1)
	{
		version = parseFloat(navigator.appVersion.split("MSIE")[1]);
		if (parseInt(version)<7) shadowHacksForIE6();
	}
}

function shadowHacksForIE6()
{
	
	var shR = Object( document.getElementById("shadow_right") );
	shR.style.height = "1px";
	
	var shL = Object( document.getElementById("shadow_left") );
	shL.style.height = "1px";
	
	shadow_left
	document.getElementById("content_and_nav").style.marginLeft = "-10px";
	document.getElementById("shadow_bottom").style.marginLeft = "186px";
	document.getElementById("shadow_bottom").style.marginTop = "-20px";
	
	document.getElementById("content_div").style.marginLeft = "98px";
	document.getElementById("content_div").style.marginTop = "-179px";
	
	document.getElementById("content_div").style.borderLeft = "solid";
	document.getElementById("content_div").style.borderLeftWidth = "1px";
	document.getElementById("content_div").style.borderLeftColor = "#cccccc";	
	
	document.getElementById("shadow_left").style.visibility = "hidden";
	document.getElementById("shadow_right").style.visibility = "hidden";
	
	if( document.getElementById("location1") != null )					document.getElementById("content_div").style.marginTop = "-234px";
	if( document.getElementById("location-getting-there-img") != null )	document.getElementById("content_div").style.marginTop = "-234px";
}
