//variables for timeouts for divs
var timer1;
var timer2;


function clearAllTimers()
{
 	for (i=1;i<2;i++)
 	{
 		clearTimeout(eval("timer"+i));
 	}
	document.category.src='images/pro_cat.gif';
}



function startTimer1 ()
	{
	document.category.src='images/pro_cat.gif';
	document.getElementById("topNav0").style.display = 'none';
	showCorrectDiv ();
	}

// on mouseover, turn off all other on images and divs
function hideOtherDivs ()
	{
	 document.getElementById("topNav0").style.display = 'none';
	}
function showCorrectDiv ()
	{
	
	}

function toggleMenuVisibility(showThisDiv, hideDiv1, hideDiv2, hideDiv3, hideDiv4, hideDiv5)
{
	var elem1 = document.getElementById(showThisDiv);
	
	elem1.style.display = "";
}


function Hilite(name,over)
{
  if(window.document.images)
  {
    if (over)
      window.document.images[name].src = "images/" + name + "Over.gif";
    else
      window.document.images[name].src = "images/" + name + ".gif";
  }
}
function showDiv() {
   document.getElementById("email_inner").style.display = '';
}
function hideDiv() {
  document.getElementById("email_inner").style.display = 'none';
}
function findcenter() {
var pagewidth = document.body.clientWidth/2 + 28;
document.getElementById('email_inner').style.left = pagewidth;

var pagewidth2 = document.body.clientWidth/2 - 392;
document.getElementById('topNav0').style.left = pagewidth2;
}

function jumpTo ()
{
var textbox = document.search.keywords;
document.search.target = "_new";

document.search.action = 'cgi-bin/msmfind.exe';
var showThisInputField = document.getElementById("gncLibraryInput");
var hideThisInputField = document.getElementById("gncProductInput");
showThisInputField.style.display="";
hideThisInputField.style.display="none"
}
function jumpBack ()
{
document.search.target = "_self";
document.search.action = '#';
var showThisInputField = document.getElementById("gncProductInput");
var hideThisInputField = document.getElementById("gncLibraryInput");
showThisInputField.style.display="";
hideThisInputField.style.display="none"
}


function turnOff(whatTimer)
{ 
var setTimer = setTimeout(whatTimer,1000);
}