var isNS = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
var isIE = (navigator.appName.indexOf("Microsoft")!=-1) ? true : false;
var isMac = (navigator.platform.indexOf("Mac")!=-1) ? true : false;
var isPC = (navigator.platform.indexOf("Win32")!=-1) ? true : false;
       function swapClass(whichElementID,whichClass){
          element = document.getElementById(whichElementID);
          element.className = whichClass;
        }
      function w(msg){
        alert(msg);
      }
allButtons = Array("menu_1_table_1", "menu_1_table_2", "menu_1_table_3","menu_2_table_1", "menu_2_table_2", "menu_2_table_3", "menu_2_table_4", "menu_3_table_1", "menu_3_table_2", "menu_3_table_3", "menu_4_table_1", "menu_4_table_2", "menu_4_table_3", "menu_4_table_4", "menu_4_table_5", "menu_4_table_6","menu_4_table_7", "menu_4_table_8", "menu_4_table_9", "menu_4_table_11","menu_5_table_1", "menu_5_table_2", "menu_5_table_3", "menu_5_table_4" , "menu_5_table_5");
     function turnAllOff(allObjectsAsArray, whichClass){
        for (x in allObjectsAsArray){
          swapClass (allObjectsAsArray[x],whichClass);
        }
     }
          allTables = Array ("menu_1_table", "menu_2_table", "menu_3_table", "menu_4_table", "menu_5_table")
   function turnOffAllTables(allTablesAsArray){
      for (x in allTablesAsArray){
         swapClass(allTablesAsArray[x],'menuOff');
      }
   }
     function goWhere(where){
     if (where == "#Types of Olive Oil" || where == "#Tipos de Aceite") openWindow("../everything/chart_popup.asp","contact",610,700,"no");
         window.location.href = where;
      }
    function preloadImages(){
         d=document;
             if(d.images){
               ImageArray=new Array();
                   var i,j=0,a=preloadImages.arguments;
                       for(i=0; i<a.length; i++){
                          ImageArray[j]=new Image;
                               ImageArray[j++].src=a[i];
                        }
              }
     }
         function swapImage(whichElement,whichImage) {
             document.getElementById(whichElement).src = whichImage;
         }
