<!--
//this file is mostly just preloads of images, but also includes the switchimage function and the show/hide functions

reddot  = new Image();
reddot.src  = "http://www.strokeassociation.org/images/stroke/menu/reddot.gif";
whitepixel = new Image();
whitepixel.src = "http://www.strokeassociation.org/images/stroke/menu/whitepixel.gif";

nav1 = new Image();
nav1.src = "http://www.strokeassociation.org/images/stroke/interface/offdonate.gif";
nav1over = new Image();
nav1over.src = "http://www.strokeassociation.org/images/stroke/interface/ondonate.gif";

nav2 = new Image();
nav2.src = "http://www.strokeassociation.org/images/stroke/interface/offhelp.gif";
nav2over = new Image();
nav2over.src = "http://www.strokeassociation.org/images/stroke/interface/onhelp.gif";

nav3 = new Image();
nav3.src = "http://www.strokeassociation.org/images/stroke/interface/offcontact.gif";
nav3over = new Image();
nav3over.src = "http://www.strokeassociation.org/images/stroke/interface/oncontact.gif";

nav4 = new Image();
nav4.src = "http://www.strokeassociation.org/images/stroke/interface/offsiteindex.gif";
nav4over = new Image();
nav4over.src = "http://www.strokeassociation.org/images/stroke/interface/onsiteindex.gif";

nav5 = new Image();
nav5.src = "http://www.strokeassociation.org/images/stroke/interface/offhome.gif";
nav5over = new Image();
nav5over.src = "http://www.strokeassociation.org/images/stroke/interface/onhome.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"				
	}
}
//-->
