OPE=(navigator.userAgent.indexOf('Opera')!=-1)||(navigator.appName.indexOf('Opera')!=-1)||(window.opera);
NS4=(document.layers);
IE4=(document.all&&!OPE);
MAC=((IE4)&&(navigator.appVersion.indexOf ("Mac")!=-1));
DOM=document.documentElement&&!NS4&&!IE4&&!OPE;

if(IE4) {
  av=navigator.appVersion;
  avi=av.indexOf("MSIE");
  if (avi==-1) {
    version = parseInt (av) ;
  }
  else {
    version = parseInt(av.substr(avi+4)) ;
  }
}

if(NS4||IE4||DOM||OPE) {
  URL = WebURL
  //Image's location
  imgFolder = URL+"images";
  maxlev = 2;
  popupWidth = 200;//width of popup window
  levelOffset = 0;//popup's overlapping
  bord = 1;
  vertSpace = 4;//height of the cell
  sep = 1;//width of the seprator
  sepFrame = false;
  openSameFrame = false;
  cntFrame = "content";
  contentFrame = "content";
  mout = true;
  iconSize = 8;
  closeDelay = 300;
  tlmOrigBg = "#4475B0";//org cell corlor after mouseover
  tlmOrigCol = "#FFFFFF";//org text corlor after mouseover
  bBitmapScheme = false;
  bBitmapPopups = false;
  popupOpenHeight = 0;
  popupLeftPad = 8;
  popupRightPad = 0;
  tlmHlBg = "#4475B0";//cell color when mouseover
  tlmHlCol = "#FFFFFF";//text color of main level when mouseover
  borderCol = "#4475B0";
  menuHorizontal = true;
  scrollHeight = 4;
}


lev0 = new Array ("12","1",false,false,"#000000","#FFFFFF","#FFFFFF","Verdana","#4475B0");
lev1 = new Array ("12","1",false,false,"#000000","#FFFFFF","#FFFFFF","Verdana","#4475B0");
lev2 = new Array ("12","1",true,true,"#000000","#FFFFFF","#FFFFFF","Verdana","#4475B0");

mn0 = new Array ();

mn1 = new Array (
  "Introduction",URL+"aboutus/introduction.asp",0,
  "Background",URL+"aboutus/background.asp",0,
  "Management Team",URL+"aboutus/management.asp",0,
  "Board of Directors",URL+"aboutus/board.asp",0,
  "Investors",URL+"aboutus/investors.asp",0,
  "Careers",URL+"aboutus/careers.asp",0,
  "Contact Us",URL+"aboutus/contact.asp",0,
  "Site Map",URL+"aboutus/sitemap.asp",0
);

mn2 = new Array (
  "News",URL+"newsroom/news.asp",0,
  "News Archive",URL+"newsroom/archive.asp",0,
  "Press Tools",URL+"newsroom/presstools.asp",0
);
       

mn3 = new Array (
  "EASI Tools Suite",URL+"products/easitoolssuite.asp",0,
  "EASI Core",URL+"products/easicore.asp",0,
  "EASI SoC",URL+"products/easisoc.asp",0,
  "EASI Verification",URL+"products/easiverification.asp",0,
  "EASI Code",URL+"products/easicode.asp",0,
  "EASI Advanced",URL+"products/easiadvanced.asp",0,
  "EASI Power",URL+"products/easipower.asp",0,
  "Data Capture",URL+"products/datacapture.asp",0,
  "Technology",URL+"products/technology.asp",0,
  "EASI Tools Users",URL+"products/easitoolsusers.asp",1
);

  mn3_10 = new Array (
    "Introduction",URL+"products/easitoolsusers.asp#top",0,
    "IP Designer",URL+"products/easitoolsusers.asp#ipdesigner",0,
    "System Integrator",URL+"products/easitoolsusers.asp#systemintegrator",0,
    "Verification Engineer",URL+"products/easitoolsusers.asp#verificationengineer",0,
    "Software Developer",URL+"products/easitoolsusers.asp#softwaredeveloper",0,
    "Technical Writer",URL+"products/easitoolsusers.asp#technicalwriter",0
  );


mn4 = new Array ();

mn5 = new Array ();

absPath="";
if (sepFrame && !openSameFrame) {
  if (document.URL.lastIndexOf("\\") > document.URL.lastIndexOf("/")) { sep = "\\" ; } 
  else { sep = "/" ; }
  absPath = document.URL.substring(0,document.URL.lastIndexOf(sep)+1);
}

popupOffset = 3; 

if (NS4) {
  document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC=\'"+URL+"js/ns4.js\'><"+"/"+"SCRIPT>");
}
else if(OPE) {
  document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC=\'"+URL+"js/opera.js'><"+"/"+"SCRIPT>");
}
else if(IE4) {
  if(document.getElementById) {
    document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC=\'"+URL+"js/dom.js'><"+"/"+"SCRIPT>");
  }
  else {
    document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC=\'"+URL+"js/ie4.js'><"+"/"+"SCRIPT>");
  }
}
else {
  document.write("<"+"SCRIPT LANGUAGE='JavaScript1.2' SRC=\'"+URL+"js/dom.js'/>");
  document.write("<style type='text/css'>\n");
  document.write(".CL0 {text-decoration:none;color:White; }\n");
  //if(!IE4&&!DOM) document.write(".topFold {position:relative}\n");
  document.write(((NS4&&!bBitmapScheme)?".mm2":".mit")+" {padding-left:10px;padding-right:15px;}\n");
  document.write("</style>\n");
}

function openPopupWindow(page,title, w, h) {
  if (typeof OpenWin != "undefined") {
    if (!OpenWin.closed) { OpenWin.close(); }
  }
  OpenWin = window.open(page, title, 'resizable=yes,top=20,left=20,menubar=no,toolbar=no,scrollbars=no,width='+w+',height='+h+',status=no');
}

