  //Define global variables
        var layerNumShowing=4;
		//browser and proprietary stuff
        function init(){
          if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) {
                    layerStyleRef="layer.";
                        layerRef="document.layers[";
                        styleSwitch="]";
                        }
		  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )){
                        layerStyleRef="layer.style.";
                        layerRef="document.all[";
                        styleSwitch="].style";
                        }   
			if ((navigator.appName == "Netscape")  && (parseInt(navigator.appVersion) >= 5)){
						layerStyleRef="layer.style.";
						layerRef="document.getElementById(";   
						styleSwitch=").style";
}
}

init()
		// layers show and hide
function showLayerNumber(number)
{
     var layerNumToShow=number;
     hideLayer(eval('"layer' + layerNumShowing+'"'));
	 //hideLayer(eval('"pic' + layerNumShowing+'"'));
     showLayer(eval('"layer' + layerNumToShow+'"'));
	 //showLayer(eval('"pic' + layerNumToShow+'"'));
     layerNumShowing=layerNumToShow;        

}
                
        
function showLayer(layerName)
{
     eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="visible"');         
	
}       

function hideLayer(layerName)
{
    eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="hidden"');  

}
 