 /////////////////////////////////////
 //                                 //
 //  Humaniz, Inc                   //
 //  307 W. 200 South, Suite 2004   //
 //  Salt Lake City, UT 84101       //
 //  801.575.6755                   //
 //  www.humaniz.com                //
 //                                 //
 /////////////////////////////////////

var BV=parseInt(navigator.appVersion);
var BN=window.navigator.appName;
var IsMac=(navigator.userAgent.indexOf('Mac')!=-1)?true:false;
var Opera=(navigator.userAgent.indexOf('Opera')!=-1)?true:false;
var NS=(BN.indexOf('Netscape')!=-1&&(BV==4)&&!Opera)?true:false;
var IE=(BN.indexOf('Explorer')!=-1&&(BV>=4)&&!Opera)?true:false;
var NS6=document.getElementById&&BV>=5; 

var filePath = "";
urlStr = ""+window.location;
//if (urlStr.indexOf("iomega.com") == -1 || urlStr.indexOf("-net.iomega.com") != -1) 
  //filePath = "http://www.iomega.com";

var isHome, isProducts, isStore, isSupport, isSWD, isServices, isIsa, isEmail;
if (urlStr.indexOf(filePath+'/software/') != -1) {
  menu = "swd_menus.js";
  isSWD = true;
} else if(urlStr.indexOf(filePath+'/direct/') != -1) {
  menu = "store_menus.js";
  isStore = true;
} else if(urlStr.indexOf(filePath+'/support/') != -1
          || urlStr.indexOf(filePath+'/services/') != -1
          || urlStr.indexOf(filePath+'/isa/') != -1
          || urlStr.indexOf(filePath+'/email/') != -1) {
  menu = "support_menus.js";
  isSupport = true;
} else if(urlStr.indexOf(filePath+'/products/') != -1) {
  menu = "product_menus.js";
  isProducts = true;
} else {
  menu = "home_menus.js";
  isHome = true;
}
// TEMP FIX UNTIL BM MENUS ARE WORKING
  menu = "home_menus.js";



browDir = "ie";
if(NS) browDir = "ns4";
else if(NS6) browDir = "ns";