
var what = null;
var newbrowser = true;
var browsercheck = false;

function init(){
	if (document.layers) {
		layerRef="document.layers";
	    styleSwitch="";
	    visibleVar="inline";
		screenSize = window.innerWidth;
		what ="ns4";
	}else if(document.all){
		layerRef="document.all";
		styleSwitch=".style";
		visibleVar="inline";
		screenSize = document.body.clientWidth + 18;
		what ="ie";
	}else if(document.getElementById){
	    layerRef="document.getElementByID";
	    styleSwitch=".style";
	    visibleVar="inline";
		what="moz";
	}else{
		what="none";
		newbrowser = false;
	}
	
	//window.status='status bar text to go here';
	browsercheck = true;
} // End INIT()

// Toggle's a layer on and off
function showLayer(layerName){
	if(browsercheck){
		if (what =="none"){
			return;
			}
    	else if (what == "moz"){
			document.getElementById(layerName).style.display="inline";
			}
		else{
          eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="inline"');
        }
	}
	else {// alert ("Please wait for the page to finish loading.");
		return;
	}
} // End SHOWLAYER()
