<!--
//this file is mostly just preloads of images, but also includes the switchimage function and the show/hide functions

var SESSIONS_SITE = "/" ;
nn4 = (document.layers) ? 1:0; // netscape 4x

reddot  = new Image();
reddot.src  = "/includes/images/reddot.gif";
whitepixel = new Image();
whitepixel.src = "/includes/images/whitepixel.gif";



function switchimage(string,i) 
	{
	if (document.images) {eval("document.nav" + i + ".src = " + string);}
	}

var TimeOutNum = 0;
loaded = 0;
function settimer()	{ TimeOutNum = setTimeout("hideAll();",2000); }


function visibility(id,trigger) {
// show
if (trigger=="1"){
	if (document.layers) document.layers[''+id+''].visibility = "show"
	else if (document.all) document.all[''+id+''].style.visibility = "visible"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"				
	}
// hide
else if (trigger=="0"){
	if (document.layers) document.layers[''+id+''].visibility = "hide"
	else if (document.all) document.all[''+id+''].style.visibility = "hidden"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"				
	}
}

function show(showobj)
{
  if (nn4) { document.layers[''+showobj+''].visibility = "show"; }
  else { document.getElementById(''+showobj+'').style.visibility = "visible"; }
}

function hide(hideobj)
{
  if (nn4) { document.layers[''+hideobj+''].visibility = "hide"; }
  else { document.getElementById(''+hideobj+'').style.visibility = "hidden"; }
}

//-->
