//cached left menu r/o images

for (i=1;i<=12;i++) {
	eval("leftnav"+i+"_1 = new Image();");
	eval("leftnav"+i+"_1.src = \"images/leftnav_"+i+".gif\";");
	eval("leftnav"+i+"_2 = new Image();");
	eval("leftnav"+i+"_2.src = \"images/leftnav_"+i+"_f2.gif\";");
}

//cached top navigation (DHTML menu) r/o images
for (i=1;i<=6;i++) {
	eval("topnav"+i+"_1 = new Image();");
	eval("topnav"+i+"_1.src = \"images/topnav_"+i+".gif\";");
	eval("topnav"+i+"_2 = new Image();");
	eval("topnav"+i+"_2.src = \"images/topnav_"+i+"_f2.gif\";");
}

//cached right navigation r/o images
for (i=1;i<=6;i++) {
	eval("recomm"+i+"_1 = new Image();");
	eval("recomm"+i+"_1.src = \"images/right-recomm-"+i+"_alt.gif\";");
	eval("recomm"+i+"_2 = new Image();");
	eval("recomm"+i+"_2.src = \"images/right-recomm-"+i+"_alt_f2.gif\";");
}

var		pageToLoad;
var		winName;
function ow( pageToLoad, winName, width, height, center) 
{
    	xposition=0; yposition=0; 
	
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;    
	}
	args = "width=" + width + ","     + "height=" + height + "," 
	+ "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=0,"
	+ "status=1,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	var wind = window.open(pageToLoad,winName,args);
	wind.focus();
}

function ows( pageToLoad, winName, width, height, center) 
{
    	xposition=0; yposition=0; 
	
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;    
	}
	args = "width=" + width + ","     + "height=" + height + "," 
	+ "location=0,"     + "menubar=0,"    + "resizable=1,"    + "scrollbars=1,"
	+ "status=1,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	var wind = window.open(pageToLoad,winName,args);
	wind.focus();
}
function imgSwapOn(imgName){
	if (document.images != null) {
		document [imgName].src = eval(imgName + "_2.src");
	}
}
function imgSwapOff(imgName){
	if (document.images != null) {
		document [imgName].src = eval(imgName + "_1.src");
	}
}

function smallWindow(url) {
	window.open(url,'help','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=600,height=480');
}

function MapWindow(url){
	window.open(url,'staff','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=720,height=535');
}