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;}/// Style Definitions ///with(subStyle=new mm_style()){itemwidth="118";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="115";bordercolor="#ffffff";borderstyle="solid";borderwidth=0;fontfamily="Arial";fontsize="12px";align="center";fontstyle="normal";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(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;}// Blue applewith(milonic=new menuname("blueapple")){style=subStyle3;aI("text=why blue apple?;url=why.htm");aI("text=what is blue apple?;url=what.htm");aI("text=smile everyone;url=every.htm");aI("text=special smiles;url=wed.htm");aI("text=smiles for longer;url=longer.htm");aI("text=nervous?;url=nerv.htm");aI("text=james;url=james.htm");aI("text=enjoy;url=invest.htm");aI("text=meet the team;url=team.htm;");aI("text=blueapple tour;url=blueappleReception/360.htm");aI("text=case of the month;url=cosmetic.htm;");aI("text=careers;url=employ.htm;");aI("text=news;url=news.htm");}with(milonic=new menuname("therapy")){style=subStyle;aI("text=tap snore;url=snore.htm;");}with(milonic=new menuname("veneers")){style=subStyle;aI("text=veneers;url=veneer.htm;");aI("text=crowns;url=crown.htm;");aI("text=bridges;url=bridge.htm;");aI("text=aztek;url=aztek.htm;");aI("text=case of the month;url=cosmetic.htm;");}with(milonic=new menuname("members")){style=subStyle;aI("text=blueapple blog;url=http://blueappledental2.wordpress.com/;target=_blank");aI("text=professional blog;url=members.htm");}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