var browser=navigator.appName;var platform=navigator.appVersion;var cssFile="";var currentStyle="no";var layerNumToShow=1;var layerNumShowing=1;var totalLayersInLoop=1;var pageNumToShow=1;var pageNumShowing=1;var buttonNumToShow=1;var buttonNumShowing=1;var lastLayer="";var layerName="";var layerStyleRef="layer.";var layerRef="document.layers";var 	styleSwitch="";var is_major = parseInt(navigator.appVersion);var is_nav4 = ((browser == "Netscape") && (is_major == 4));var is_nav6up = ((browser == "Netscape") && (is_major >= 5));if (browser == "Microsoft Internet Explorer") is_ie="true";if (browser == "Netscape") // this is the Netscape browser sniffer    	 	{     		if (navigator.appVersion.indexOf("Macintosh") == -1)           		{          		currentStyle='Windows Netscape';          		}      		else           		{          		currentStyle='Macintosh Netscape';          		}     		}if (browser == "Microsoft Internet Explorer")     		{         	if (platform.indexOf("Macintosh") == -1)                	{               	currentStyle='Windows Explorer';               	}           	else                	{               	currentStyle='Macintosh Explorer';               	}    	}function init(number)	{	totalLayersInLoop=number;	if (document.getElementById) {			layerStyleRef="layer.style.";			layerRef="document.getElementById"; 			styleSwitch=".style";		}		else if (document.layers) {		layerStyleRef="layer.";			layerRef="document.layers";			styleSwitch="";		}	}function changeLayer(layerName, lastLayer){	showLayer(layerName);	if (lastLayer!='') {hideLayer(lastLayer);}}function showLayer(layerName){	if (is_nav4)	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');	else	eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="visible"');}function hideLayer(layerName){		if (is_nav4)		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');		else		eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="hidden"');}function showMessage(layerName, message) {	window.status = message;	return true;}function clearMessage(layerName) {	window.status = " "	return true}function showCat(){	hideLayer(eval('"layer' + layerNumShowing+'"'));	showLayer('loopControls');}function showLayerNumber(number){	var layerNumToShow=number;	hideLayer(eval('"layer' + layerNumShowing+'"'));	showLayer(eval('"layer' + layerNumToShow+'"'));	layerNumShowing=layerNumToShow;	hideLayer('loopControls');}function showPreviousLayer(){	var layerNumToShow=layerNumShowing-1;	if (layerNumToShow < 1){layerNumToShow=totalLayersInLoop;}	hideLayer('loopControls');	hideLayer(eval('"layer' + layerNumShowing+'"'));	showLayer(eval('"layer' + layerNumToShow+'"'));	layerNumShowing=layerNumToShow;}function showNextLayer(){	layerNumToShow=layerNumShowing+1;	if (layerNumToShow > totalLayersInLoop) {layerNumToShow=1; }	hideLayer('loopControls');	hideLayer(eval('"layer' + layerNumShowing+'"'));	showLayer(eval('"layer' + layerNumToShow+'"'));	layerNumShowing=layerNumToShow;}function showPreviousImage(){	var layerNumToShow=layerNumShowing-1;	if (layerNumToShow < 1){layerNumToShow=totalLayersInLoop;}	hideLayer(eval('"image' + layerNumShowing+'"'));	showLayer(eval('"image' + layerNumToShow+'"'));	layerNumShowing=layerNumToShow;}function showNextImage(){	layerNumToShow=layerNumShowing+1;	if (layerNumToShow > totalLayersInLoop) {layerNumToShow=1; }	hideLayer(eval('"image' + layerNumShowing+'"'));	showLayer(eval('"image' + layerNumToShow+'"'));	layerNumShowing=layerNumToShow;} function update(destID, src) {	if (is_nav4) document.layers[destID].src = src	else     	{       	destFrame = checkIFrame(destID)       	destFrame.location.href = src              	 setTimeout("pollIFrame('"+destID+"')",1000)     	}          }   function checkIFrame(destID) {     var iframe = document.frames[destID+"target"]     if (iframe==null) {       document.body.insertAdjacentHTML("beforeEnd","<IFRAME STYLE='width: 0pt; height: 0pt' NAME='"+destID+"target' SRC='' ></IFRAME>")       iframe = document.frames[destID+"target"]     }     return iframe   }   function pollIFrame(destID) {     var destFrame = checkIFrame(destID)     if (destFrame.document.readyState=='complete') {       document.all[destID].innerHTML = destFrame.document.body.innerHTML     } else       setTimeout("pollIFrame('"+destID+"')",500)           }function open_new_win (file, x, y) {msg=open("","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+x+", height="+y+"");msg.location = file}
