
var MENU_FOCUSED = false;
var MENU_NAME = 'floor_5';
IE4 = (document.all) ? 1 : 0;       // browser is Internet Explorer 4
NS4 = (document.layers) ? 1 : 0;    // browser is Netscape 4

ver4 = (IE4 || NS4) ? 1 : 0;  // know that we have version 4 browser
                              // this will be required for non-dhtml browsers

function hoverMenu1(whichElement,status) {

arrayOfLayers = ['floor_1','floor_3','floor_4','floor_5','floor_6','floor_7','floor_8','floor_9','floor_10','floor_11','floor_12','floor_13','floor_14','floor_15','floor_16','floor_17','floor_18','floor_19','floor_20','floor_21','floor_22','floor_23','floor_24','floor_25','floor_26','floor_27','floor_28','floor_29','floor_30','floor_31','floor_32','floor_33','floor_34','floor_35','floor_36','floor_37','floor_38','floor_39','floor_40','floor_41','floor_42','floor_43','floor_44','floor_45','floor_46','floor_47','floor_48','floor_49','floor_50','floor_51','floor_52','floor_53','floor_54','floor_55','floor_56','floor_57','floor_58','floor_59','floor_60','floor_61','floor_62','floor_63','floor_64','floor_65','floor_66','floor_67','floor_68'];
maxNbrOfLayers = 67;
	if (status == true) {
		setMenuFocused1()
	    vis = 'visible';
	}
	else if (status == false) {
	   vis = 'hidden';
	}
	

	  // checking which browser
	  if (IE4) {
    	 for (i=0;i<maxNbrOfLayers;i++) {
        	 layerName = arrayOfLayers[i];
	         if (layerName == whichElement) {
    	        // get its index first
        	    layerIndex = i;
            	theElement = eval('document.all.'+arrayOfLayers[i]+'.style');
	            theElement.visibility=vis;
    	     } // check if layer exists
        	 else {
	            theElement = eval('document.all.'+arrayOfLayers[i]+'.style');
    	        theElement.visibility='hidden'; 
        	 } // set other layers to hidden

	     } // end if for loop
 	  } // end of IE4

	  else if (NS4) { // netscape or similar browser
	     for (i=0;i<maxNbrOfLayers;i++) {
    	     layerName = arrayOfLayers[i];
	         if (layerName == whichElement) {
    	        // get its index first
	            layerIndex = i;
    	        theElement = eval("document." + arrayOfLayers[i]);
	            theElement.visibility=vis; 
    	     } // check if layer exists
	         else {
	            theElement = eval("document." + arrayOfLayers[i]);         
    	        theElement.visibility='hidden'; 
        	 } // set other layers to hidden
        
        	 
	     } // end if for loop
	  } // end of NS
	  else { // for Opera browser
	     for (i=0;i<maxNbrOfLayers;i++) {
	     
    	     layerName = arrayOfLayers[i];
        	 if (layerName == whichElement) {
	            // get its index first
    	        layerIndex = i;
        	    theElement = eval(document.getElementById(arrayOfLayers[i])).style;  
	            theElement.visibility=vis; 
    	     } // check if layer exists
	         else {
    	        theElement = eval(document.getElementById(arrayOfLayers[i])).style;  
        	    theElement.visibility='hidden'; 
	         } // set other layers to hidden
	     } // end if for loop
	  } // end of Opera
	         
} // end hoverOver function

function startHideMenu1(whichElement) {
	MENU_FOCUSED = false;
	MENU_NAME = whichElement;
	setTimeout("hideMenu1()",1000);
	return;
} // end startHideMenu1()

function hideMenu1() {
	if (!MENU_FOCUSED) hoverMenu1(MENU_NAME,false);
	return;
} // end hideMenu()

function setMenuFocused1() {
	MENU_FOCUSED = true;
} // end setMenuFocused