fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps with(menuStyle=new mm_style()){ itemwidth="120"; bordercolor="#ffffff"; borderstyle="solid"; borderwidth=0; fontfamily="Arial"; fontsize="12px"; fontstyle="normal"; align="center"; headerbgcolor="red"; headercolor="red"; offbgcolor="#00a0e2"; offcolor="#ffffff"; onbgcolor="#efaa23"; oncolor="#ffffff"; outfilter="randomdissolve(duration=0.3)"; overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)"; padding=4; pagebgcolor="#82B6D7"; pagecolor="#ffffff"; separatorcolor="#ffffff"; separatorsize=1; } with(subStyle3=new mm_style()){ itemwidth="98"; bordercolor="#ffffff"; borderstyle="solid"; borderwidth=1; fontfamily="Arial"; fontsize="12px"; align="center"; fontstyle="normal"; headerbgcolor="red"; headercolor="red"; offbgcolor="#b2dcf5"; offcolor="#000000"; onbgcolor="#00a0e2"; oncolor="#ffffff"; outfilter="randomdissolve(duration=0.3)"; overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)"; padding=0; pagebgcolor="#82B6D7"; pagecolor="#ffffff"; separatorcolor="#ffffff"; separatorsize=1; } with(subStyle2=new mm_style()){ itemwidth="118"; bordercolor="#ffffff"; borderstyle="solid"; borderwidth=0; fontfamily="Arial"; fontsize="12px"; align="center"; fontstyle="normal"; headerbgcolor="#FFFF00"; headercolor="#FFFF00"; offbgcolor="#00a0e2"; offcolor="#ffffff"; onbgcolor="#efaa23"; oncolor="#000000"; outfilter="randomdissolve(duration=0.3)"; overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)"; padding=4; pagebgcolor="#999999"; pagecolor="#ffffff"; separatorcolor="#ffffff"; separatorsize=0; } // Elite with(milonic=new menuname("about")){ style=subStyle3; aI("text=Elite Electronics;url=about.htm"); aI("text=Why Elite?;url=why.htm"); aI("text=Why Outsource?;url=outsource.htm"); aI("text=Downloads;url=download.htm"); aI("text=How To Find Us;url=findus.htm"); } with(milonic=new menuname("manu")){ style=subStyle3; aI("text=(PCB) Assembly;url=assembly.htm"); aI("text=Conformal Coating;url=conformal.htm"); aI("text=Cable & Wiring Assembly;url=cable.htm"); aI("text=Complete Systems;url=complete.htm"); } with(milonic=new menuname("service")){ style=subStyle3; aI("text=Quality Service;url=quality.htm"); aI("text=Technical Support;url=techsupport.htm"); aI("text=Supply Management;url=supply.htm"); aI("text=Full Functional Test;url=tests.htm"); } with(milonic=new menuname("contact")){ style=subStyle3; aI("text=Contact;url=contact.htm"); aI("text=Application Form;url=pdf/application1.pdf;target=new;"); } drawMenus(); var imgMouseOverHolder = new Array(); var imgMouseDownHolder = new Array(); function preloader(imgTags){ var newmouseover, newmouseout, newmouseup, newmousedown, oldmouseover, oldmouseout, oldmouseup, oldmousedown var AL = imgMouseOverHolder.length + 1; for (var i = 0; i < imgTags.length; i++) { if (imgTags[i].getAttribute('srcdown')||imgTags[i].getAttribute('srcover')) { newmouseover = null; newmouseout = null; newmouseup = null; newmousedown = null; oldmouseover = null; oldmouseout = null; oldmouseup = null; oldmousedown = null if (imgTags[i].getAttribute('srcover')) {imgMouseOverHolder[AL] = new Image(); imgMouseOverHolder[AL].src = imgTags[i].getAttribute('srcover');} if (imgTags[i].getAttribute('srcdown')) {imgMouseDownHolder[AL] = new Image(); imgMouseDownHolder[AL].src = imgTags[i].getAttribute('srcdown');} if (imgTags[i].src) {imgTags[i].setAttribute("oldsrc", imgTags[i].src);} if (imgTags[i].getAttribute('srcover')) { if (imgTags[i].onmouseover) {imgTags[i].oldmouseover = imgTags[i].onmouseover; newmouseover = function (){this.src=this.getAttribute("srcover"); this.oldmouseover();}} else {newmouseover = function (){this.src=this.getAttribute("srcover");}} imgTags[i].onmouseover = newmouseover; if (imgTags[i].onmouseout){imgTags[i].oldmouseout = imgTags[i].onmouseout; newmouseout = function (){this.src=this.getAttribute("oldsrc"); this.oldmouseout();}} else {newmouseout = function (){this.src=this.getAttribute("oldsrc");}} imgTags[i].onmouseout = newmouseout; } if (imgTags[i].getAttribute('srcdown')) { if (imgTags[i].onmousedown) {imgTags[i].oldmousedown = imgTags[i].onmousedown; newmousedown = function (){this.src=this.getAttribute("srcdown"); this.oldmousedown();}} else {newmousedown = function (){this.src=this.getAttribute("srcdown");}} imgTags[i].onmousedown = newmousedown; if (imgTags[i].getAttribute('srcover')) { if (imgTags[i].onmouseup) {imgTags[i].oldmouseup = imgTags[i].onmouseup; newmouseup = function (){this.src=this.getAttribute("srcover"); this.oldmouseup();}} else {newmouseup = function (){this.src=this.getAttribute("srcover");}} imgTags[i].onmouseup = newmouseup; } else { if (imgTags[i].onmouseup) {imgTags[i].oldmouseup = imgTags[i].onmouseup; newmouseup = function (){this.src=this.getAttribute("oldsrc"); this.oldmouseup();}} else {newmouseup = function (){this.src=this.getAttribute("oldsrc");}} imgTags[i].onmouseup = newmouseup; if (imgTags[i].onmouseout) {imgTags[i].oldmouseout = imgTags[i].onmouseout; newmouseout = function (){this.src=this.getAttribute("oldsrc"); this.oldmouseout();}} else {newmouseout = function (){this.src=this.getAttribute("oldsrc");}} imgTags[i].onmouseout = newmouseout; } } } } } function preloadimgsrc() { if (!document.getElementById) return; var imgTags = document.getElementsByTagName('IMG'); var imgTags2 = document.getElementsByTagName('INPUT'); preloader(imgTags); preloader(imgTags2); // For image type submit buttons } if (window.addEventListener) window.addEventListener("load", preloadimgsrc, false) else if (window.attachEvent) window.attachEvent("onload", preloadimgsrc) else if (document.getElementById) window.onload=preloadimgsrc