if (document.images) {


menu3_sub1on = new Image(); menu3_sub1on.src = ImagePath+"productsOver.gif";
menu3_sub2on = new Image(); menu3_sub2on.src = ImagePath+"technologyO.gif";
menu3_sub3on = new Image(); menu3_sub3on.src = ImagePath+"contactO.gif";
menu3_sub4on = new Image(); menu3_sub4on.src = ImagePath+"customerO.gif";
menu3_sub5on = new Image(); menu3_sub5on.src = ImagePath+"downloadsO.gif";
menu3_sub6on = new Image(); menu3_sub6on.src = ImagePath+"newsO.gif";
menu3_sub7on = new Image(); menu3_sub7on.src = ImagePath+"eventsO.gif";
menu3_sub8on = new Image(); menu3_sub8on.src = ImagePath+"careersO.gif";
menu3_sub9on = new Image(); menu3_sub9on.src = ImagePath+"homeO.gif";

menu3_sub1off = new Image(); menu3_sub1off.src = ImagePath+"productsReg.gif";
menu3_sub2off = new Image(); menu3_sub2off.src = ImagePath+"technologyReg.gif";
menu3_sub3off = new Image(); menu3_sub3off.src = ImagePath+"contactR.gif";
menu3_sub4off = new Image(); menu3_sub4off.src = ImagePath+"customerR.gif";
menu3_sub5off = new Image(); menu3_sub5off.src = ImagePath+"downloadsR.gif";
menu3_sub6off = new Image(); menu3_sub6off.src = ImagePath+"newsR.gif";
menu3_sub7off = new Image(); menu3_sub7off.src = ImagePath+"eventsR.gif";
menu3_sub8off = new Image(); menu3_sub8off.src = ImagePath+"careersR.gif";
menu3_sub9off = new Image(); menu3_sub9off.src = ImagePath+"homeR.gif";

}


function turnOnSub(subimageName) {
  if (document.images) {
     if (page_sub_cat != subimageName)
	 {
	 document[subimageName].src = eval (subimageName + "on.src");
	 }
//	 alert(subimageName)
  }
}

function turnOffSub (subimageName) {
  if (document.images) {
	 document[subimageName].src = eval (subimageName + "off.src");
	 
  }
}



//  Menu Style
document.write("<style>")
document.write(".paddings{padding-left:7px;padding-right:7px;padding-top:3px;padding-bottom:3px;}")
document.write(".menuon{background-color:#053E98;padding-left:7px;padding-right:7px;padding-top:3px;padding-bottom:3px;}")
document.write("</style>")


function change(id) {

	identity=document.getElementById(id);
	identity.className="menuon";

}

var mainmenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
//home menu 

//optics menu
//mainmenu[3]='<table border="0" cellpadding="0" cellspacing="0" height="23" width="100%" bgcolor="#062841"><tr><td height="21"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td><img src="'+ImagePath+'pixel.gif" alt="" width="5" height="1" border="0"></td><td class="paddings" id="menu1"><a href="'+LinkPath+'products.htm" onmouseover=turnOnSub("menu3_sub1"); onmouseout=turnOffSub("menu3_sub1");><img src="'+ImagePath+'productsReg.gif" alt="" width="54" height="7" border="0" name="menu3_sub1" id="menu3_sub1"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu2"><a href="'+LinkPath+'technology.htm" onmouseover=turnOnSub("menu3_sub2"); onmouseout=turnOffSub("menu3_sub2");><img src="'+ImagePath+'technologyReg.gif" alt="" width="68" height="7" border="0"  name="menu3_sub2" id="menu3_sub2"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu3"><a href="'+LinkPath+'contact_us.htm" onmouseover=turnOnSub("menu3_sub3"); onmouseout=turnOffSub("menu3_sub3");><img src="'+ImagePath+'contactR.gif" alt="" width="64" height="7" border="0" name="menu3_sub3" id="menu3_sub3"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu4"><a href="'+LinkPath+'support_request_form.php" onmouseover=turnOnSub("menu3_sub4"); onmouseout=turnOffSub("menu3_sub4");><img src="'+ImagePath+'customerR.gif" alt="" width="106" height="7" border="0" name="menu3_sub4" id="menu3_sub4"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu5"><a href="'+LinkPath+'downloads.htm" onmouseover=turnOnSub("menu3_sub5"); onmouseout=turnOffSub("menu3_sub5");><img src="'+ImagePath+'downloadsR.gif" alt="" width="61" height="7" border="0" name="menu3_sub5" id="menu3_sub5"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu6"><a href="'+LinkPath+'news.htm" onmouseover=turnOnSub("menu3_sub6"); onmouseout=turnOffSub("menu3_sub6");><img src="'+ImagePath+'newsR.gif" alt="" width="27" height="7" border="0" name="menu3_sub6" id="menu3_sub6"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu7"><a href="'+LinkPath+'events.php" onmouseover=turnOnSub("menu3_sub7"); onmouseout=turnOffSub("menu3_sub7");><img src="'+ImagePath+'eventsR.gif" alt="" width="40" height="7" border="0" name="menu3_sub7" id="menu3_sub7"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu8"><a href="'+LinkPath+'careers_usa.htm" onmouseover=turnOnSub("menu3_sub8"); onmouseout=turnOffSub("menu3_sub8");><img src="'+ImagePath+'careersR.gif" alt="" width="95" height="7" border="0" name="menu3_sub8" id="menu3_sub8"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu9"><a href="'+LinkPath+'index.htm" onmouseover=turnOnSub("menu3_sub9"); onmouseout=turnOffSub("menu3_sub9");><img src="'+ImagePath+'homeR.gif" alt="" width="26" height="7" border="0" name="menu3_sub9" id="menu3_sub9"></a></td><td width="100%"></td></tr></table></td></tr></table>'


mainmenu[3]='<table border="0" cellpadding="0" cellspacing="0" height="23" width="100%" bgcolor="#062841"><tr><td height="21"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td><img src="'+ImagePath+'pixel.gif" alt="" width="50" height="1" border="0"></td><td class="paddings" id="menu1"><a href="'+LinkPath+'products.htm" onmouseover=turnOnSub("menu3_sub1"); onmouseout=turnOffSub("menu3_sub1");><img src="'+ImagePath+'productsReg.gif" alt="" width="54" height="7" border="0" name="menu3_sub1" id="menu3_sub1"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu2"><a href="'+LinkPath+'technology.htm" onmouseover=turnOnSub("menu3_sub2"); onmouseout=turnOffSub("menu3_sub2");><img src="'+ImagePath+'technologyReg.gif" alt="" width="68" height="7" border="0"  name="menu3_sub2" id="menu3_sub2"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu3"><a href="'+LinkPath+'contact_us.htm" onmouseover=turnOnSub("menu3_sub3"); onmouseout=turnOffSub("menu3_sub3");><img src="'+ImagePath+'contactR.gif" alt="" width="64" height="7" border="0" name="menu3_sub3" id="menu3_sub3"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu5"><a href="'+LinkPath+'downloads.htm" onmouseover=turnOnSub("menu3_sub5"); onmouseout=turnOffSub("menu3_sub5");><img src="'+ImagePath+'downloadsR.gif" alt="" width="61" height="7" border="0" name="menu3_sub5" id="menu3_sub5"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu6"><a href="'+LinkPath+'news.htm" onmouseover=turnOnSub("menu3_sub6"); onmouseout=turnOffSub("menu3_sub6");><img src="'+ImagePath+'newsR.gif" alt="" width="27" height="7" border="0" name="menu3_sub6" id="menu3_sub6"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu7"><a href="'+LinkPath+'events.php" onmouseover=turnOnSub("menu3_sub7"); onmouseout=turnOffSub("menu3_sub7");><img src="'+ImagePath+'eventsR.gif" alt="" width="40" height="7" border="0" name="menu3_sub7" id="menu3_sub7"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu8"><a href="'+LinkPath+'careers_usa.htm" onmouseover=turnOnSub("menu3_sub8"); onmouseout=turnOffSub("menu3_sub8");><img src="'+ImagePath+'careersR.gif" alt="" width="95" height="7" border="0" name="menu3_sub8" id="menu3_sub8"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu9"><a href="'+LinkPath+'index.htm" onmouseover=turnOnSub("menu3_sub9"); onmouseout=turnOffSub("menu3_sub9");><img src="'+ImagePath+'homeR.gif" alt="" width="26" height="7" border="0" name="menu3_sub9" id="menu3_sub9"></a></td><td width="100%"></td></tr></table></td></tr></table>'

mainmenu[3]='<table border="0" cellpadding="0" cellspacing="0" height="23" width="100%" bgcolor="#062841"><tr><td height="21"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td><img src="'+ImagePath+'pixel.gif" alt="" width="50" height="1" border="0"></td><td class="paddings" id="menu1"><a href="'+LinkPath+'products.htm" onmouseover=turnOnSub("menu3_sub1"); onmouseout=turnOffSub("menu3_sub1");><img src="'+ImagePath+'productsReg.gif" alt="" width="54" height="7" border="0" name="menu3_sub1" id="menu3_sub1"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu2"><a href="'+LinkPath+'technology.htm" onmouseover=turnOnSub("menu3_sub2"); onmouseout=turnOffSub("menu3_sub2");><img src="'+ImagePath+'technologyReg.gif" alt="" width="68" height="7" border="0"  name="menu3_sub2" id="menu3_sub2"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu3"><a href="'+LinkPath+'contact_us.htm" onmouseover=turnOnSub("menu3_sub3"); onmouseout=turnOffSub("menu3_sub3");><img src="'+ImagePath+'contactR.gif" alt="" width="64" height="7" border="0" name="menu3_sub3" id="menu3_sub3"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu5"><a href="'+LinkPath+'downloads.htm" onmouseover=turnOnSub("menu3_sub5"); onmouseout=turnOffSub("menu3_sub5");><img src="'+ImagePath+'downloadsR.gif" alt="" width="61" height="7" border="0" name="menu3_sub5" id="menu3_sub5"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu6"><a href="'+LinkPath+'news.htm" onmouseover=turnOnSub("menu3_sub6"); onmouseout=turnOffSub("menu3_sub6");><img src="'+ImagePath+'newsR.gif" alt="" width="27" height="7" border="0" name="menu3_sub6" id="menu3_sub6"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu7"><a href="'+LinkPath+'events.php" onmouseover=turnOnSub("menu3_sub7"); onmouseout=turnOffSub("menu3_sub7");><img src="'+ImagePath+'eventsR.gif" alt="" width="40" height="7" border="0" name="menu3_sub7" id="menu3_sub7"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu8"><a href="'+LinkPath+'careers_usa.htm" onmouseover=turnOnSub("menu3_sub8"); onmouseout=turnOffSub("menu3_sub8");><img src="'+ImagePath+'careersR.gif" alt="" width="95" height="7" border="0" name="menu3_sub8" id="menu3_sub8"></a></td><td><img src="'+ImagePath+'sepeator.gif" alt="" width="1" height="10" border="0"></td><td class="paddings" id="menu9"><a href="'+LinkPath+'index.htm" onmouseover=turnOnSub("menu3_sub9"); onmouseout=turnOffSub("menu3_sub9");><img src="'+ImagePath+'homeR.gif" alt="" width="26" height="7" border="0" name="menu3_sub9" id="menu3_sub9"></a></td><td width="100%"></td></tr></table></td></tr></table>'

document.write(mainmenu[3]);

if (menuNum != "")
{
	change(menuNum);
}

