//Main Javascript file containing functions for fire-sprite.com
//(C) George Goldberg (Tamar Internet Services/Iotaline:web) August-November 2006
//see www.iotaline.co.uk/jsxt for more information

/*
* This function shows the Loading... message 
* in the bar below the first navbar when a link
* is clicked that loads a new page in the first
* row of navbar
*/
function TIS_showLoadingMessage()
{
	document.getElementById('productbar').style.display = "none";
	document.getElementById('exhibitionbar').style.display = "none";
	document.getElementById('loading_bar_2').style.display = "none";

	document.getElementById('loading_bar_2').style.display = "inline";	
}

/*
* This function shows the second level navigation
* bar contained in the span id passed to it via
* the bar variable
*/
function TIS_showSecondNavbar(bar)
{
	document.getElementById('productbar').style.display = "none";
	document.getElementById('exhibitionbar').style.display = "none";
	document.getElementById('loading_bar_2').style.display = "none";
	
	document.getElementById(bar).style.display = "inline";
}

/*
* This function makes the CSS changes necessary to show
* or hide the footer on the product pages./
*/
function TIS_showHideFooter()
{
	if(document.getElementById('footer1').style.display == "none")
	{
		document.getElementById('footer1').style.display = "inline";
		document.getElementById('hidefooter').style.bottom = "200px";
		document.getElementById('container').style.bottom = "180px";
		document.body.style.padding = "124px 0 180px 0";
		document.getElementById('fshow').style.display = "none";
		document.getElementById('fhide').style.display = "inline";
		document.getElementById('clicktn').style.bottom = "200px";
	}
	else
	{
		document.getElementById('footer1').style.display = "none";
		document.getElementById('hidefooter').style.bottom = "20px";
		document.getElementById('container').style.bottom = "20px";
		document.body.style.padding = "124px 0 20px 0"; 
		document.getElementById('fshow').style.display = "inline";
		document.getElementById('fhide').style.display = "none"
		document.getElementById('clicktn').style.bottom = "20px";
	}
}
