
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 hoverMenu2(whichElement,status) {

arrayOfLayers = ['office_1','office_3','office_5','office_6','office_7','office_10','office_11','office_14','office_15','office_16','office_17','office_18','office_20','office_21','office_23','office_24','office_27','office_31','office_32','office_34','office_35','office_38','office_40','office_41','office_42','office_43','office_44','office_45','office_46','office_47','office_49','office_50','office_51','office_52','office_53','office_54','office_55','office_56','office_57','office_58','office_59','office_60','office_61','office_62','office_63','office_64','office_65','office_66','office_67','office_68','office_69','office_70','office_71','office_72','office_73','office_75','office_76','office_78','office_80','office_81','office_82'];
maxNbrOfLayers = 61;
	if (status == true) {
		setMenuFocused2()
	    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 startHideMenu2(whichElement) {
	MENU_FOCUSED = false;
	MENU_NAME = whichElement;
	setTimeout("hideMenu2()",1000);
	return;
} // end startHideMenu2()

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

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