var basedir = "";

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function mmLoadMenus() {
  if (window.mm_products) return;
  if (window.mm_services) return;
  /*Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)*/
   
  window.mm_products = new Menu("products",160,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_products.addMenuItem("Geosoft Software", "window.location='"+basedir+"/pinfo/software/index.asp'");
   mm_products.addMenuItem("Partner Software", "window.location='"+basedir+"/pinfo/partners/index.asp'");
   mm_products.addMenuItem("Software Index", "window.location='"+basedir+"/pinfo/index.asp'");
   mm_products.addMenuItem("Geosoft Videos", "window.location='"+basedir+"/resources/videos/index.asp'");
   mm_products.addMenuItem("Map Library", "window.location='"+basedir+"/resources/maplibrary/index.asp'");
   mm_products.hideOnMouseOut=true;
   mm_products.menuBorder=1;
   mm_products.menuLiteBgColor='#ffffff';
   mm_products.menuBorderBgColor='#555555';
   mm_products.bgColor='#000000';  

  window.mm_solutions = new Menu("solutions",160,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_solutions.addMenuItem("Solutions Overview", "window.location='"+basedir+"/solutions/index.asp'");
   mm_solutions.addMenuItem("Industry Solutions", "window.location='"+basedir+"/pinfo/industry/index.asp'");
   mm_products.hideOnMouseOut=true;
   mm_products.menuBorder=1;
   mm_products.menuLiteBgColor='#ffffff';
   mm_products.menuBorderBgColor='#555555';
   mm_products.bgColor='#000000';  

  
  window.mm_services = new Menu("services",160,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_services.addMenuItem("Services Overview", "window.location='"+basedir+"/services/index.asp'");
   mm_services.addMenuItem("Professional Services", "window.location='"+basedir+"/services/professional-services.asp'");
   mm_services.addMenuItem("Training Services", "window.location='"+basedir+"/services/training-education.asp'");
   mm_services.addMenuItem(" Custom Development", "window.location='"+basedir+"/services/custom-development.asp'");
   mm_services.hideOnMouseOut=true;
   mm_services.menuBorder=1;
   mm_services.menuLiteBgColor='#ffffff';
   mm_services.menuBorderBgColor='#555555';
   mm_services.bgColor='#000000';
   
  window.mm_customers = new Menu("customers",160,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_customers.addMenuItem("Customers Overview", "window.location='"+basedir+"/customers/index.asp'");
   mm_customers.addMenuItem("Industry Customers", "window.location='"+basedir+"/customers/industry/exploration.asp'");
   mm_customers.addMenuItem("Geoscience Directory", "window.location='"+basedir+"/customers/directory/index.asp'");
   mm_customers.addMenuItem("Case Studies", "window.location='"+basedir+"/resources/casestudies/index.asp'");
   mm_customers.addMenuItem("Why Geosoft?", "window.location='"+basedir+"/customers/whygeosoft.asp'");
   mm_customers.hideOnMouseOut=true;
   mm_customers.menuBorder=1;
   mm_customers.menuLiteBgColor='#ffffff';
   mm_customers.menuBorderBgColor='#555555';
   mm_customers.bgColor='#000000';
   
  window.mm_support = new Menu("support",160,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_support.addMenuItem("Support Centre", "window.location='"+basedir+"/support/index.asp'");
   mm_support.addMenuItem("Software Updates", "window.location='"+basedir+"/support/updates/index.asp'");
   mm_support.addMenuItem("Downloads", "window.location='"+basedir+"/downloads/index.asp'");
   mm_support.addMenuItem("Knowledge Base", "window.location='"+basedir+"/support/techlib.asp'");
   mm_support.addMenuItem("User Forums", "window.location='"+basedir+"/support/forums/index.asp'");
   mm_support.addMenuItem("Developer Resources", "window.location='"+basedir+"/support/devtools/index.asp'");
   mm_support.addMenuItem("Maintenance Program", "window.location='"+basedir+"/support/maintenance.asp'");
   mm_support.hideOnMouseOut=true;
   mm_support.menuBorder=1;
   mm_support.menuLiteBgColor='#ffffff';
   mm_support.menuBorderBgColor='#555555';
   mm_support.bgColor='#000000';
   
  window.mm_company = new Menu("company",100,18,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#ffffff","#ffffff","#01448B","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
   mm_company.addMenuItem("About Geosoft", "window.location='"+basedir+"/company/about.asp'");
   mm_company.addMenuItem("News and Events", "window.location='"+basedir+"/company/newsandevents.asp'");
   mm_company.addMenuItem("Worldwide Offices", "window.location='"+basedir+"/company/worldwide/index.asp'");
   mm_company.addMenuItem("Partners", "window.location='"+basedir+"/company/partners/index.asp'");
   mm_company.addMenuItem("Careers", "window.location='"+basedir+"/company/careers/index.asp'");
   mm_company.hideOnMouseOut=true;
   mm_company.menuBorder=1;
   mm_company.menuLiteBgColor='#ffffff';
   mm_company.menuBorderBgColor='#555555';
   mm_company.bgColor='#000000';


  mm_products.writeMenus();
} // mmLoadMenus()