if (document.layers) {n=1;ie=0}
if (document.all) {n=0;ie=1}
var visible;
var hidden;

function init() 
{
	if (document.layers) 
	{
  		visible = 'show';
  		hidden = 'hide';
	}	 
	else if (document.all) 
	{
  	visible = 'visible';
  	hidden = 'hidden';	
	}
}
function isHidden(layerName)
{
	if(document.getElementById)
	{
		val = document.getElementById(layerName).style.visibility;
	}
			
	if ( document.layers )
	{
		val = eval("document." + layerName + ".visibility");  
	}
	else if (document.all)
	{
		val = eval(layerName + ".style.visibility");
	}
	//alert(val);
	if (val == hidden) 
		return true;
	else 
		return false;
	
	
}

function hideShowLayer(layerName, doWhat)
{	
	var elm = null;
	var styleObject=null;
	
	if (doWhat == "SHOW")
	{
		//alert("Show the Layer" + layerName);	
		if(document.getElementById)
		{
			document.getElementById(layerName).style.visibility = 'visible';
		}
			
		if ( document.layers )
		{
			eval("document." + layerName + ".visibility = 'visible'");  
		}
		else if (document.all)
		{
			eval(layerName + ".style.visibility = 'visible'");
		}			
	}
	else if (doWhat == "HIDE")
	{
		//alert("Hide the Layer" + layerName);
		if(document.getElementById)
		{
			document.getElementById(layerName).style.visibility = 'hidden';
		}
		if ( document.layers )
		{
			eval("document." + layerName + ".visibility = 'hidden'"); 
		}
		else if (document.all)
		{
			eval(layerName + ".style.visibility = 'hidden'");
		}			

	}
	else
	{
		return false;
	}
}
function goBack() 
{ 
window.history.back();
}
function hideShowDiv(layerName, doWhat)
{	
	var elm = null;
	var styleObject=null;
	
	if (doWhat == "SHOW")
	{
		//alert("Show the Layer" + layerName);	
		if(document.getElementById)
		{
			document.getElementById(layerName).style.visibility = 'visible';
		}
			
		if ( document.layers )
		{
			eval("document.form1." + layerName + ".visibility = 'visible'");  
		}
		else if (document.all)
		{
			eval(layerName + ".style.visibility = 'visible'");
		}			
	}
	else if (doWhat == "HIDE")
	{
		//alert("Hide the Layer" + layerName);
		if(document.getElementById)
		{
			document.getElementById(layerName).style.visibility = 'hidden';
		}
		if ( document.layers )
		{
			eval("document.form1." + layerName + ".visibility = 'hidden'"); 
		}
		else if (document.all)
		{
			eval(layerName + ".style.visibility = 'hidden'");
		}			

	}
	else
	{
		return false;
	}
}
function hideAll()
{
	hideShowLayer('Main', 'HIDE');
	hideShowLayer('Transport', 'HIDE');
	hideShowLayer('Travel', 'HIDE');
	hideShowLayer('Eventsa', 'HIDE');
	hideShowLayer('consultation', 'HIDE');
	hideShowLayer('provision', 'HIDE');
	hideShowLayer('integration', 'HIDE');
}
function hideNav()
{
	hideShowLayer('mainNav', 'HIDE');
	hideShowLayer('it', 'HIDE');
	hideShowLayer('the', 'HIDE');
	hideShowLayer('other', 'HIDE');
	hideShowLayer('links', 'HIDE');
	hideShowLayer('framework', 'HIDE');
	hideShowLayer('what', 'HIDE');
	hideShowLayer('good', 'HIDE');
	hideShowLayer('info', 'HIDE');
	hideShowLayer('calendar', 'HIDE');
	hideShowLayer('search', 'HIDE');
	hideShowLayer('evaluation', 'HIDE');
}
function mainNavigation()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('mainNav', 'SHOW')",1000);
}
function itNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('it', 'SHOW')",1000);
}
function theNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('the', 'SHOW')",1000);
}
function evaluationNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('evaluation', 'SHOW')",1000);
}
function otherNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('other', 'SHOW')",1000);
}
function linksNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('links', 'SHOW')",1000);
}
function frameworkNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('framework', 'SHOW')",1000);
}
function whatNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('what', 'SHOW')",1000);
}
function goodNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('good', 'SHOW')",1000);
}
function infoNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('info', 'SHOW')",1000);
}
function calendarNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('calendar', 'SHOW')",1000);
}
function searchNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('search', 'SHOW')",1000);
}
function newsNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('news', 'SHOW')",1000);
}
function mobilityNav()
{
	setTimeout("hideNav()",1000);
	setTimeout("hideShowLayer('mobility', 'SHOW')",1000);
}
