// Sanders' JavaScript Include (comments are for stupid browsers, if I recall correctly :-/)
<!--
popSrc = new Array();
function writeIt(text,id)
{
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = text;
	}
	/* Screw netscape 4
	else if (document.layers)
	{
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
	*/
}
function sleep(intNumMS){
	// Checks for a valid number
	if(!isNaN(intNumMS))
	{
		// Uses JS built-in date object
		var datNow = new Date()
		var intNumMSNow = datNow.getTime();
		var intNumMSThen = (intNumMSNow + intNumMS);
		var i=0;

		// Does something useless until the time is right
		while(eval("var datNew = new Date();datNew.getTime()") <= intNumMSThen)
		{i++;}
	}
	return;

} 
function showMe(lyr, methd){
	if(!methd){
		methd="block";
	}
	if(document.getElementById(lyr)){		
		if(navigator.appName != 'Microsoft Internet Explorer'){
		document.getElementById(lyr).style.display=methd
		}
		else{
		document.getElementById(lyr).style.display="block";
		}
	}
}
function show(){
	lyr=show.arguments;
	for(i=0; i<lyr.length; i++){
		if(document.getElementById(lyr[i])){
			document.getElementById(lyr[i]).style.display="block";
		}
	}
}
function hide(){
	lyr=hide.arguments;
	for(i=0; i<lyr.length; i++){
		if(document.getElementById(lyr[i])){
			document.getElementById(lyr[i]).style.display="none";
		}
	}
}
function swapImage(image, source)
{document.images[image].src = source;}


function killpreloader(){
	document.getElementById("preloader").style.display="none";
	document.getElementById("sitediv").style.display="block";
}

function showpreloader(){
	document.getElementById("sitediv").style.display="none";
	document.getElementById("preloader").style.display="block";
}
function starterupper(){
	killpreloader();
}
function closeResults(){
	if(document.getElementById('resultdiv')!= undefined)
	document.getElementById('resultdiv').style.display='none';
}
// some menu stuff
var MenuCloser = new Array();
var MenuOpener = new Array();
var sites = new Array();
sites[0] = 'rhino'; sites[1] = 'saunders'; sites[2] = 'uhu'; sites[3] = 'cs';


function openSub(){
	toOpen = openSub.arguments;
	for(i=0; i<toOpen.length; i++){
		if(document.getElementById(toOpen[i] + "_menu").style.display != "block")
		{document.getElementById(toOpen[i] + "_menu").style.display = "block";}
		else
		{
			document.getElementById(toOpen[i] + "_menu").style.display = "none";
			//stupid frickin firefox fix.  Gotta jiggle it.  What can I say?
			for(n in sites){
			oldspot=document.getElementById(sites[n] + "_bottom").style.marginLeft;
			document.getElementById(sites[n] + "_bottom").style.marginLeft="5px";
			document.getElementById(sites[n] + "_bottom").style.marginLeft=oldspot;
			}
		}
	}		
}
function openMenu(site){
	//MenuOpener[site] = window.setTimeout('reallyOpen(\''+site+'\')', 50);	
	reallyOpen(site);
}
function reallyOpen(site){	
	//early versions of firefox (up to the current, assuming they fix this) 
	//need the other menus to be moved manually before they can move automatically
	for(i in sites){
	oldspot=document.getElementById(sites[i] + '_open').style.marginLeft;
	document.getElementById(sites[i] + '_open').style.marginLeft='5px';
	document.getElementById(sites[i] + '_open').style.marginLeft=oldspot;
	}
	if(document.getElementById(site+'_open').style.display=='block')
	document.getElementById(site+'_open').style.display='none';
	else
	document.getElementById(site+'_open').style.display='block';
}
function closeMenu(site){
	for(i in sites){
	if(MenuOpener[sites[i]] && sites[i] != site){
	window.clearTimeout(MenuOpener[site]); } }
	MenuCloser[site] = window.setTimeout('reallyClose(\''+site+'\')', 500);
}
function reallyClose(site){
	document.getElementById(site+'_open').style.display='none';
}
function cancelClose(){
	for(i in sites){
		//if(MenuCloser[sites[i]]){
			window.clearTimeout(MenuCloser[i]);
		//}
	}
}	
function closeAllMenus(site){
	//close all but defined site that we're on
	for(i in sites){
		if(sites[i] != site){
			//MenuCloser[i] = window.setTimeout('reallyClose(\''+sites[i]+'\')', 2000);
			reallyClose(sites[i]);
		}
	}
}
function swapProdRow(showme, hideme){
	if(document.getElementById('row_' + showme).style.display=='none'){
	if(navigator.appName == 'Microsoft Internet Explorer'){
		document.getElementById('row_' + showme).style.display='block'; 
	}
	else{
		document.getElementById('row_' + showme).style.display='table-row'; 
	}
		document.getElementById('row_' + hideme).style.display='none'; 
	}
}

function prodPop(title, imgname, sku, folder, w, h){
	var width = parseInt(w);
	var height = parseInt(h);
	width = width + 5;
	height = height + 4;
	w = String(width);
	h = String(height);
	
	config = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=";
	config += h + ",width=" + w;

if (viewer) 
viewer.close();
viewer = window.open("/viewer.cfm?folder=/images/products"+folder+"/"+sku+"&imagename="+imgname+"&w="+w+"&h="+h+"&title="+escape(title), "images", config);
}
var viewer;

function imagePop(title, address, w, h)
{

var width = parseInt(w);
var height = parseInt(h);
width = width + 5;
height = height + 4;
w = String(width);
h = String(height);

config = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=";
config += h + ",width=" + w;

if (viewer) 
viewer.close();

viewer = window.open("/viewer.cfm?image="+address+"&w="+w+"&h="+h+"&title="+escape(title), "images", config);

}

function genericPop(title, address, w, h)
{

var width = parseInt(w);
var height = parseInt(h);
width = width + 5;
height = height + 4;
w = String(width);
h = String(height);

config = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=";
config += h + ",width=" + w;

if (viewer) 
viewer.close();

viewer = window.open(address, title, config);

}


function mfgPop(address, w, h){
	viewer=window.open(address,'Generic','toolbar=0,scrollbars=1,width=' + w + ',height=' + h);
	viewer.focus();
}

function checkview(){
if(viewer)
viewer.close();
}
-->
