
//Global variable goodness
var isExpanded = false;
//ie is obvious.  firefox = anything with good standards compliance
var ie = document.all;
var firefox = document.getElementById && !document.all;

//This function is actually quite simple.  
function Expand(height)
{
	if (isExpanded)
	{
		document.getElementById('products').style.visibility = "hidden";
		document.getElementById('otherNav').style.top = "-" + height + "px";
		isExpanded = !isExpanded;
	}
	
	else
	{
		document.getElementById('products').style.visibility = "visible";
		document.getElementById('otherNav').style.top = "0px";
		isExpanded = !isExpanded;
	}
}

//function to align layers
function AlignDivs()
{
	var screenX = screen.availWidth;
	var posMain = ((screenX-760)/2)-15;
	var posShadow = ((screenX-760)/2)-5;
	document.getElementById('main').style.left = posMain + "px";
	document.getElementById('shadow').style.left = posShadow + "px";
}
