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 currentPage="";var	lastpointer="";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)	{	currentPage=('pointer' + number);			if (document.getElementById) {			layerStyleRef="layer.style.";			layerRef="document.getElementById"; 			styleSwitch=".style";		}		else if (document.layers) {		layerStyleRef="layer.";			layerRef="document.layers";			styleSwitch="";		}	}	function changeTo(layerName) {		showLayer(layerName);		if (layerName!='brazil') { 			hideLayer('brazil');			hideLayer('brazil-1');			hideLayer('brazil-2');			hideLayer('brazil-3');			hideLayer('brazil-4');			hideLayer('pointer1');			}				if (layerName!='bamboo') { 			hideLayer('bamboo');			hideLayer('bamboo-1');			hideLayer('bamboo-2');			hideLayer('pointer2');			}				if (layerName!='white-oak')	{ 			hideLayer('white-oak'); 			hideLayer('white-oak-1'); 			hideLayer('white-oak-2');			hideLayer('white-oak-3'); 			hideLayer('white-oak-4'); 			hideLayer('white-oak-5');			hideLayer('pointer3');			}				if (layerName!='white-oak-refinish')	{ 			hideLayer('white-oak-refinish');			hideLayer('white-oak-refinish-1'); 			hideLayer('white-oak-refinish-2'); 			hideLayer('pointer4');			}								if (layerName!='hickory') { 			hideLayer('hickory');			hideLayer('hickory-1');			hideLayer('hickory-2');			hideLayer('pointer5');			}				if (layerName!='oak') 	{ 			hideLayer('oak');			hideLayer('oak-3');			hideLayer('oak-4');			hideLayer('pointer6');			}				if (layerName!='oak-refinish') 	{ 			hideLayer('oak-refinish');			hideLayer('oak-refinish-1');			hideLayer('oak-refinish-2');			hideLayer('pointer7');			}				if (layerName!='oak-strip')	{ 			hideLayer('oak-strip');			hideLayer('pointer8');			}				if (layerName!='stairs')	{ 			hideLayer('stairs');			hideLayer('stairs-1'); 			hideLayer('stairs-2'); 			hideLayer('pointer9');			}				if (layerName!='redwood') { 			hideLayer('redwood');			hideLayer('redwood-1'); 			hideLayer('redwood-2');			hideLayer('pointer10');			}				if (layerName!='stains') 	{ 			hideLayer('stains');			hideLayer('pointer11');			} 				if (layerName!='samples') { 			hideLayer('samples');			hideLayer('pointer12');			}	}function showPointer(number){	layername=('pointer' + number);	hideLayer(lastpointer);	showLayer(layerName);	lastpointer = layername;}function hidePointer(layerName){	hideLayer(layerName);	showLayer(currentPage);}function showCurrentPointer() {	showLayer(currentPage);}function hideCurrentPointer() {	hideLayer(currentPage);}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;}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}
