function mmLoadMenus() {
  if (window.mm_menu_1207161304_0) return;
                                window.mm_menu_1207161304_0_1 = new Menu("SIZES/SPECS",80,20,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#000000","#8A0000","#8A0000","left","middle",5,0,300,-5,7,true,true,true,0,true,true);
    mm_menu_1207161304_0_1.addMenuItem("3&nbsp;&frac34;&quot;&nbsp;MOTOR","location='3-motor.html'");
    mm_menu_1207161304_0_1.addMenuItem("4&nbsp;&frac34;&quot;&nbsp;MOTOR","location='4-motor.html'");
    mm_menu_1207161304_0_1.addMenuItem("6&nbsp;&frac34;&quot;&nbsp;MOTOR&nbsp;","location='6-motor.html'");
    mm_menu_1207161304_0_1.addMenuItem("7&nbsp;&frac34;&quot;&nbsp;MOTOR&nbsp;","location='7-motor.html'");
     mm_menu_1207161304_0_1.fontWeight="bold";
     mm_menu_1207161304_0_1.hideOnMouseOut=true;
     mm_menu_1207161304_0_1.bgColor='#710000';
     mm_menu_1207161304_0_1.menuBorder=1;
     mm_menu_1207161304_0_1.menuLiteBgColor='#8A0000';
     mm_menu_1207161304_0_1.menuBorderBgColor='#660000';
  window.mm_menu_1207161304_0 = new Menu("root",150,20,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#000000","#8A0000","#8A0000","left","middle",5,0,300,-5,7,true,true,true,0,true,true);
  mm_menu_1207161304_0.addMenuItem(mm_menu_1207161304_0_1,"location='#'");
  mm_menu_1207161304_0.addMenuItem("Info&nbsp;&&nbsp;Features","location='features.htmla'");
  //mm_menu_1207161304_0.addMenuItem("Anti&nbsp;Drop&nbsp;Feature&nbsp;","location='coming-soon.html'");
  mm_menu_1207161304_0.addMenuItem("Adjust&nbsp;Bent&nbsp;Housing&nbsp;","location='adjust-housing-instruction.html'");
 // mm_menu_1207161304_0.addMenuItem("Troubleshooting","location='coming-soon.html'");
   mm_menu_1207161304_0.fontWeight="bold";
   mm_menu_1207161304_0.hideOnMouseOut=true;
   mm_menu_1207161304_0.childMenuIcon="arrows.gif";
   mm_menu_1207161304_0.bgColor='#710000';
   mm_menu_1207161304_0.menuBorder=1;
   mm_menu_1207161304_0.menuLiteBgColor='#8A0000';
   mm_menu_1207161304_0.menuBorderBgColor='#660000';

                                                                                                                                          window.mm_menu_1211122213_0_1_1 = new Menu("DXT&nbsp;Software",150,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",4,0,300,-5,7,true,true,true,0,false,false);
      mm_menu_1211122213_0_1_1.addMenuItem("DataTraX&nbsp;Planner","location='datatrax-planner.html'");
      mm_menu_1211122213_0_1_1.addMenuItem("DatatraX&nbsp;Steer","location='datatrax-steer.html'");
      mm_menu_1211122213_0_1_1.addMenuItem("DataTraX&nbsp;Intersect","location='datatrax-intersect.html'");
	   mm_menu_1211122213_0_1_1.addMenuItem("Design&nbsp;Your&nbsp;Bore&nbsp;Plan","location='HTWebApp/aspLogin.aspx'");	
	  
       mm_menu_1211122213_0_1_1.hideOnMouseOut=true;
       mm_menu_1211122213_0_1_1.bgColor='#555555';
       mm_menu_1211122213_0_1_1.menuBorder=1;
       mm_menu_1211122213_0_1_1.menuLiteBgColor='#FFFFFF';
       mm_menu_1211122213_0_1_1.menuBorderBgColor='#740709';
    window.mm_menu_1211122213_0_1 = new Menu("DataTraX&nbsp;Guidance&nbsp;System",161,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
    mm_menu_1211122213_0_1.addMenuItem("DTX&nbsp;Steering&nbsp;System","location='guidance-services.html'");
    mm_menu_1211122213_0_1.addMenuItem("Steering&nbsp;&&nbsp;Pressure&nbsp;Tools","location='steering-tools.html'");
    mm_menu_1211122213_0_1.addMenuItem(mm_menu_1211122213_0_1_1,"location='software.html'");
     mm_menu_1211122213_0_1.hideOnMouseOut=true;
     mm_menu_1211122213_0_1.childMenuIcon="arrows.gif";
     mm_menu_1211122213_0_1.bgColor='#555555';
     mm_menu_1211122213_0_1.menuBorder=1;
     mm_menu_1211122213_0_1.menuLiteBgColor='#FFFFFF';
     mm_menu_1211122213_0_1.menuBorderBgColor='#740709';
        window.mm_menu_1211122213_0_2_1_1 = new Menu("3&nbsp;&frac34;&quot;&nbsp;MOTOR",100,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
        mm_menu_1211122213_0_2_1_1.addMenuItem("Specs","location='3-motor-specs.html'");
        mm_menu_1211122213_0_2_1_1.addMenuItem("Operating&nbsp;Charts","location='3-motor-operating-chart.html'");
         mm_menu_1211122213_0_2_1_1.hideOnMouseOut=true;
         mm_menu_1211122213_0_2_1_1.bgColor='#555555';
         mm_menu_1211122213_0_2_1_1.menuBorder=1;
         mm_menu_1211122213_0_2_1_1.menuLiteBgColor='#FFFFFF';
         mm_menu_1211122213_0_2_1_1.menuBorderBgColor='#740709';
        window.mm_menu_1211122213_0_2_1_2 = new Menu("4&nbsp;&frac34;&quot;&nbsp;MOTOR",100,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
        mm_menu_1211122213_0_2_1_2.addMenuItem("Specs","location='4-motor-specs.html'");
        mm_menu_1211122213_0_2_1_2.addMenuItem("Operating&nbsp;Charts","location='4-motor-operating-chart.html'");
         mm_menu_1211122213_0_2_1_2.hideOnMouseOut=true;
         mm_menu_1211122213_0_2_1_2.bgColor='#555555';
         mm_menu_1211122213_0_2_1_2.menuBorder=1;
         mm_menu_1211122213_0_2_1_2.menuLiteBgColor='#FFFFFF';
         mm_menu_1211122213_0_2_1_2.menuBorderBgColor='#740709';
        window.mm_menu_1211122213_0_2_1_3 = new Menu("6&nbsp;&frac34;&quot;&nbsp;MOTOR",100,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
        mm_menu_1211122213_0_2_1_3.addMenuItem("Specs","location='6-motor-specs.html'");
        mm_menu_1211122213_0_2_1_3.addMenuItem("Operating&nbsp;Charts","location='6-motor-operating-chart.html'");
         mm_menu_1211122213_0_2_1_3.hideOnMouseOut=true;
         mm_menu_1211122213_0_2_1_3.bgColor='#555555';
         mm_menu_1211122213_0_2_1_3.menuBorder=1;
         mm_menu_1211122213_0_2_1_3.menuLiteBgColor='#FFFFFF';
         mm_menu_1211122213_0_2_1_3.menuBorderBgColor='#740709';
      window.mm_menu_1211122213_0_2_1 = new Menu("Sizes",100,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
      mm_menu_1211122213_0_2_1.addMenuItem(mm_menu_1211122213_0_2_1_1,"location='3-motor-specs.html'");
      mm_menu_1211122213_0_2_1.addMenuItem(mm_menu_1211122213_0_2_1_2,"location='4-motor-specs.html'");
      mm_menu_1211122213_0_2_1.addMenuItem(mm_menu_1211122213_0_2_1_3,"location='6-motor-specs.html'");
       mm_menu_1211122213_0_2_1.hideOnMouseOut=true;
       mm_menu_1211122213_0_2_1.childMenuIcon="arrows.gif";
       mm_menu_1211122213_0_2_1.bgColor='#555555';
       mm_menu_1211122213_0_2_1.menuBorder=1;
       mm_menu_1211122213_0_2_1.menuLiteBgColor='#FFFFFF';
       mm_menu_1211122213_0_2_1.menuBorderBgColor='#740709';
    window.mm_menu_1211122213_0_2 = new Menu("Hi&minus;Torque&nbsp;Drilling&nbsp;Motors",150,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
    mm_menu_1211122213_0_2.addMenuItem("Motor&nbsp;Features","location='features.html'");
    mm_menu_1211122213_0_2.addMenuItem(mm_menu_1211122213_0_2_1,"location='3-motor-specs.html'");
    mm_menu_1211122213_0_2.addMenuItem("Adjust&nbsp;Housing&nbsp;Instruction","location='adjust-housing-instruction.html'");
     mm_menu_1211122213_0_2.hideOnMouseOut=true;
     mm_menu_1211122213_0_2.childMenuIcon="arrows.gif";
     mm_menu_1211122213_0_2.bgColor='#555555';
     mm_menu_1211122213_0_2.menuBorder=1;
     mm_menu_1211122213_0_2.menuLiteBgColor='#FFFFFF';
     mm_menu_1211122213_0_2.menuBorderBgColor='#740709';
    window.mm_menu_1211122213_0_3 = new Menu("Rock&nbsp;Reamers&#8482;",150,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
    mm_menu_1211122213_0_3.addMenuItem("About&nbsp;The&nbsp;RockReamers","location='about-the-rockreamer.html'");
    mm_menu_1211122213_0_3.addMenuItem("<div onclick='MM_openBrWindow(\"popups/rock-reamer-table.html\",\"\",\"width=823,height=600\")'>Size&nbsp;Chart&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>","");
    mm_menu_1211122213_0_3.addMenuItem("Formation&nbsp;Removal&nbsp;Chart","location='formation-removal-chart.html'");
    mm_menu_1211122213_0_3.addMenuItem("How&nbsp;To&nbsp;Change&nbsp;Cutters","location='how-to-change-cutters.html'");
    mm_menu_1211122213_0_3.addMenuItem("Operating&nbsp;Suggestions","location='operating-suggestions.html'");
     mm_menu_1211122213_0_3.hideOnMouseOut=true;
     mm_menu_1211122213_0_3.bgColor='#555555';
     mm_menu_1211122213_0_3.menuBorder=1;
     mm_menu_1211122213_0_3.menuLiteBgColor='#FFFFFF';
     mm_menu_1211122213_0_3.menuBorderBgColor='#740709';
  window.mm_menu_1211122213_0 = new Menu("root",200,20,"Verdana, Arial, Helvetica, sans-serif",9,"#5F0507","#FFFFFF","#FFFFFF","#740709","left","middle",3,0,300,-5,7,true,true,true,0,false,false);
  mm_menu_1211122213_0.addMenuItem(mm_menu_1211122213_0_1,"location='datatrax-guidance.html'");
  mm_menu_1211122213_0.addMenuItem(mm_menu_1211122213_0_2,"location='hi-torque.html'");
  mm_menu_1211122213_0.addMenuItem(mm_menu_1211122213_0_3,"location='rock-reamersmain.html'");
  mm_menu_1211122213_0.addMenuItem("Roller&minus;Cone&nbsp;Drilling&nbsp;Bits","location='roller-cone-bits.html'");
  mm_menu_1211122213_0.addMenuItem("Non&minus;Mag&nbsp;Collars/Jetting&nbsp;Assemblies","location='jetting-assemblies.html'");
  mm_menu_1211122213_0.addMenuItem("Fly&nbsp;Cutters&nbsp;&&nbsp;Barrel&nbsp;Reamers","location='fly-cutters.html'");
  mm_menu_1211122213_0.addMenuItem("Pipe&nbsp;Rollers","location='pipe-rollers.html'");
   mm_menu_1211122213_0.hideOnMouseOut=true;
   mm_menu_1211122213_0.childMenuIcon="arrows.gif";
   mm_menu_1211122213_0.bgColor='#555555';
   mm_menu_1211122213_0.menuBorder=1;
   mm_menu_1211122213_0.menuLiteBgColor='#FFFFFF';
   mm_menu_1211122213_0.menuBorderBgColor='#740709';

mm_menu_1211122213_0.writeMenus();
} // mmLoadMenus()

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 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 setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);






