
<!--
function mmLoadMenus() {
  if (window.mm_menu_1201112052_0) return;
                window.mm_menu_1201112052_0 = new Menu("root",153,16,"Arial, Helvetica, sans-serif",12,"#000000","#FFFFFF","#F99154","#000000","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1201112052_0.addMenuItem("Medical&nbsp;and&nbsp;Dental","location='medical_dental.html'");
  mm_menu_1201112052_0.addMenuItem("Orthopedic","location='orthopedic.html'");
  mm_menu_1201112052_0.addMenuItem("Food&nbsp;Processing","location='food_processing.html'");
  mm_menu_1201112052_0.addMenuItem("Industrial&nbsp;Automation","location='industrial_automation.html'");
  mm_menu_1201112052_0.addMenuItem("Semiconductor","location='semiconductor.html'");
   mm_menu_1201112052_0.fontWeight="bold";
   mm_menu_1201112052_0.hideOnMouseOut=true;
   mm_menu_1201112052_0.bgColor='#000000';
   mm_menu_1201112052_0.menuBorder=1;
   mm_menu_1201112052_0.menuLiteBgColor='#FF9900';
   mm_menu_1201112052_0.menuBorderBgColor='#000000';
  window.mm_menu_1201114752_0 = new Menu("root",164,16,"Arial, Helvetica, sans-serif",12,"#000000","#FFFFFF","#F99154","#000000","left","middle",2,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1201114752_0.addMenuItem("CNC&nbsp;Turning","location='cnc_turning.html'");
  mm_menu_1201114752_0.addMenuItem("CNC&nbsp;Milling","location='cnc_milling.html'");
  mm_menu_1201114752_0.addMenuItem("Prototype&nbsp;Model&nbsp;Shop","location='prototype_model_shop.html'");
  mm_menu_1201114752_0.addMenuItem("Secondary&nbsp;Operations","location='secondary_operations.html'");
   mm_menu_1201114752_0.fontWeight="bold";
   mm_menu_1201114752_0.hideOnMouseOut=true;
   mm_menu_1201114752_0.bgColor='#000000';
   mm_menu_1201114752_0.menuBorder=1;
   mm_menu_1201114752_0.menuLiteBgColor='#FF9900';
   mm_menu_1201114752_0.menuBorderBgColor='#000000';

mm_menu_1201114752_0.writeMenus();
} // mmLoadMenus()

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_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_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];}
}
//-->

/*************************************************************************
  ROTATING IMAGE CODE HERE
*************************************************************************/

function initImgRotation() {
  // create rotating image objects here 
  // arguments: image name, rotation speed
  var rotator1 = new rotateImgObj('img1',3500);
  // add the images to rotate into that image object  
  rotator1.addImages("bottompic1.jpg","bottompic2.jpg","bottompic3.jpg","bottompic4.jpg","bottompic5.jpg");
  rotator1.rotate();
  
  rotateImgObj.start();  
}

// If all the images you wish to display are in the same location, you can specify the path here 
rotateImgObj.imagesPath = "images/";

// no need to edit code below 
/////////////////////////////////////////////////////////////////////
rotateImgObjs = []; // holds all rotating image objects defined
// constructor 
function rotateImgObj(nm,s) {
  this.speed=s; this.ctr=0; this.timer=0;  
  this.imgObj = document.images[nm]; // get reference to the image object
  this.index = rotateImgObjs.length; rotateImgObjs[this.index] = this;
  this.animString = "rotateImgObjs[" + this.index + "]";
}

rotateImgObj.prototype = {
  addImages: function() { // preloads images
    this.imgObj.imgs = [];
    for (var i=0; i<arguments.length; i++) {
      this.imgObj.imgs[i] = new Image();
      this.imgObj.imgs[i].src = rotateImgObj.imagesPath + arguments[i];
    }
  },

  rotate: function() {
    if (this.ctr < this.imgObj.imgs.length-1) this.ctr++;
    else this.ctr = 0;
    this.imgObj.src = this.imgObj.imgs[this.ctr].src;
  }
}

// sets up rotation for all defined rotateImgObjs
rotateImgObj.start = function() {
  for (var i=0; i<rotateImgObjs.length; i++) 
    rotateImgObjs[i].timer = setInterval(rotateImgObjs[i].animString + ".rotate()", rotateImgObjs[i].speed);                     
}
// END ROTATING SCRIPT

