function navOver(imgTag)
{        
	var theImage = imgTag;	
	if(theImage.src.indexOf("_off.") != -1)	
	{
		theImage.src = theImage.src.replace("_off.","_on.");		
	}
	else	
	{
		theImage.src = theImage.src.replace("_on.","_off.");	
	}
}

function hideDiv(elem)
{
	document.getElementById(elem).style.display = "none";
}

function showDiv(elem)
{
	document.getElementById(elem).style.display = "block";
}

function getPageSize()
{
	//alert('getPageSize');
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) 
	{	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} 
	else if (document.body.scrollHeight > document.body.offsetHeight)
	{
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} 
	else 
	{ 
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	
	var windowWidth, windowHeight;
	if (self.innerHeight) 
	{
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} 
	else if (document.documentElement && document.documentElement.clientHeight) 
	{
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} 
	else if (document.body) 
	{
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	

	
	if(yScroll < windowHeight)
	{
		pageHeight = windowHeight;
	} 
	else 
	{ 
		pageHeight = yScroll;
	}

	if(xScroll < windowWidth)
	{	
		pageWidth = windowWidth;
	} 
	else 
	{
		pageWidth = xScroll;
	}
	
	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;

}



/*
	Flash ExternalInterface Functions
*/

function swapDepths(num)
{
	//alert('swapDepths');
	document.getElementById('flashContent').style.zIndex = num;
	document.getElementById('flashContent').style.left = 0;
}

function visibility(val)
{	
	var setting = "";
	if (val)
		setting = "block";
	else
		setting = 'none';
	
	//alert('visibility');
	document.getElementById('flashContent').style.left = 0;
	document.getElementById('headerOuter').style.display = setting;
	document.getElementById('footerOuter').style.display = setting;
	document.getElementById('leftCol').style.display = setting;
	document.getElementById('bgLeft').style.display = setting;
	document.getElementById('bgRight').style.display = setting;
}
function noFlasha()
{
	var flash = document.getElementById('flashContent').style;
	flash.marginLeft = 0;
	flash.marginTop = "100px";
	flash.width = "988px";
	flash.left = "50%";
	flash.background = "#CCFF00";
	//alert('3');
}

function setupFlash()
{
	document.getElementById('headerOuter').style.display = "none";
	document.getElementById('bgLeft').style.display = "none";
	document.getElementById('bgRight').style.display = "none";
	document.getElementById('leftCol').style.display = "none";
	document.getElementById('footerOuter').style.display = "none";
}
