// Used to make the "hovers" work in IE. This JavaScript rewrites the hovers as mouseover events, and works for all versions of IE/Win 5x and 6x.
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace
        (" over", "");
   }
   }
  }
 }
}
window.onload=startList;
// End rewrite hovers as mouseover events for IE.


// Image preload script for navigation and main images
image1 = new Image();
image1.src = "http://www.srisurgical.com/test/images/navigation.gif";
image2 = new Image();
image2.src = "http://www.srisurgical.com/test/images/secondary_nav.gif";
image3 = new Image();
image3.src = "http://www.srisurgical.com/test/images/solutions_roll_disposable.jpg";
image4 = new Image();
image4.src = "http://www.srisurgical.com/test/images/solutions_roll_instrument.jpg";
image5 = new Image();
image5.src = "http://www.srisurgical.com/test/images/solutions_roll_offsite.jpg";
image6 = new Image();
image6.src = "http://www.srisurgical.com/test/images/solutions_roll_physician.jpg";
image7 = new Image();
image7.src = "http://www.srisurgical.com/test/images/solutions_roll_process.jpg";
image8 = new Image();
image8.src = "http://www.srisurgical.com/test/images/solutions_roll_ready.jpg";
image9 = new Image();
image9.src = "http://www.srisurgical.com/test/images/navigation_slice.gif";
image10 = new Image();
image10.src = "http://www.srisurgical.com/test/images/Home_07E.jpg";
image11 = new Image();
image11.src = "http://www.srisurgical.com/test/images/Home_07D.jpg"
image12 = new Image();
image12.src = "http://www.srisurgical.com/test/images/Home_07C.jpg"
image13 = new Image();
image13.src = "http://www.srisurgical.com/test/images/Home_07B.jpg"
image14 = new Image();
image14.src = "http://www.srisurgical.com/test/images/Home_07A.jpg"
// End -->

function changeImg(myLoc){
	if (myLoc == "about"){
		document.getElementById("mainImg").src = "http://www.srisurgical.com/test/images/Home_07E.jpg";
	}
	if (myLoc == "sol"){
		document.getElementById("mainImg").src = "http://www.srisurgical.com/test/images/Home_07D.jpg";
	}
	if (myLoc == "cust"){
		document.getElementById("mainImg").src = "http://www.srisurgical.com/test/images/Home_07C.jpg";
	}
	if (myLoc == "proc"){
		document.getElementById("mainImg").src = "http://www.srisurgical.com/test/images/Home_07B.jpg";
	}
	if (myLoc == "news"){
		document.getElementById("mainImg").src = "http://www.srisurgical.com/test/images/Home_07A.jpg";
	}
}