fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps




/// Style Definitions ///

with(subStyle=new mm_style()){
itemwidth="160";
itemheight="25";
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=0;
fontfamily="Arial";
fontsize="13px";
align="center";
fontstyle="normal";
headerbgcolor="red";
headercolor="red";
offbgcolor="#999999";
offcolor="#ffffff";
onbgcolor="#B2982B";
oncolor="#000000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=0;
pagebgcolor="#999999";
pagecolor="#ffffff";
separatorcolor="#ffffff";
separatorsize=1;
}





// Customs House

with(milonic=new menuname("Home")){
style=subStyle;
aI("text=About Us;url=about.htm");
aI("text=Download Brochure;url=brochure.htm");
}

with(milonic=new menuname("Accommodation")){
style=subStyle;
aI("text=Overview;url=overview.htm;");
aI("text=View Rooms;url=rooms.htm;");
aI("text=Rates;url=rates.htm;");
}

with(milonic=new menuname("Restaurant")){
style=subStyle;
aI("text=Fiddlesticks;url=fiddle.htm;");
aI("text=Carvery;url=carvery.htm;");
aI("text=Wine Bar;url=winebar.htm;");
}

with(milonic=new menuname("activities")){
style=subStyle;
aI("text=Things To Do;url=activities.htm;");
aI("text=Links;url=links.htm;");
}

with(milonic=new menuname("contact")){
style=subStyle;
aI("text=Location;url=map.htm;");
aI("text=Contact Details;url=contact.htm;");
aI("text=Recruitment;url=jobs.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
