var bn=navigator.platform
var ie=navigator.appName
var leftmargin=0
if(ie.indexOf("Microsoft Internet Explorer")!=-1)
leftmargin=-3;

_menuCloseDelay=100           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=5              // Sub menu top offset
_subOffsetLeft=0            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x


with(menuStyle=new mm_style()){
onbgcolor="#666666";
oncolor="#ffffff";
offbgcolor="#000000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="bold";
fontfamily="verdana,san-serif,Arial,Helvetica";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="images/arrow.gif";
subimagepadding="5";
}

with(submenuStyle=new mm_style()){
separatorsize="0";
padding=0;
fontsize="10px";
fontweight="bold"
fontstyle="bold";
fontfamily="verdana,Arial,Helvetica,san-serif";
pagecolor="white";
pagebgcolor="#000000";
headercolor="#ffffff";
headerbgcolor="#ffffff";
//subimage="images/arrow.gif";
subimagepadding="5";
}

//Accommodations
with(milonic=new menuname("acc")){
orientation="vertical";
style=submenuStyle;
left=0;
top=-24;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/accommodations_on.gif' alt='Accommodations' name='myimage1' id='myimage1' onmouseover='menu_highlight(\"myimage1\",\"accommodations_on.gif\")' onmouseout='menu_drop(\"myimage1\",\"accommodations_on.gif\")'>;url=../accommodations/");
aI("text=<img src='../images/room_type_off.png' alt='Room Type' name='myimage16' id='myimage16' onmouseover='menu_highlight(\"myimage16\",\"room_type_on.png\")' onmouseout='menu_drop(\"myimage16\",\"room_type_off.png\")'>;url=../accommodations/room-type.cfm;");
}

//Dining
with(milonic=new menuname("met")){
orientation="vertical";
style=submenuStyle;
left=0;
top=-24;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/meetings_on.gif' alt='Meeting and Events' name='myimage4' id='myimage4' onmouseover='menu_highlight(\"myimage4\",\"meetings_on.gif\")' onmouseout='menu_drop(\"myimage4\",\"meetings_on.gif\")'>;url=../meeting-and-events/");
aI("text=<img src='../images/meeting_enquiry_off.png' alt='Meeting Enquiry' name='myimage5' id='myimage5' onmouseover='menu_highlight(\"myimage5\",\"meeting_enquiry_on.png\")' onmouseout='menu_drop(\"myimage5\",\"meeting_enquiry_off.png\")'>;url=../meeting-and-events/meeting-rfp.cfm;");
}

//Groups and Meetings
with(milonic=new menuname("loc")){
orientation="vertical";
style=submenuStyle;
left=0;
top=-24;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/local_attractions_on.gif' alt='Local Attractions' name='myimage6' id='myimage6' onmouseover='menu_highlight(\"myimage6\",\"local_attractions_on.gif\")' onmouseout='menu_drop(\"myimage6\",\"local_attractions_on.gif\")'>;url=../local-attractions/;");
aI("text=<img src='../images/stone_off.png' alt='Stonehenge' name='myimage7' id='myimage7' onmouseover='menu_highlight(\"myimage7\",\"stone_on.png\")' onmouseout='menu_drop(\"myimage7\",\"stone_off.png\")'>;url=../local-attractions/stonehenge.cfm;");
aI("text=<img src='../images/div.gif' alt='' name='myimage8' id='myimage8' onmouseover='menu_highlight(\"myimage8\",\"div.gif\")' onmouseout='menu_drop(\"myimage8\",\"div.gif\")'>;");
aI("text=<img src='../images/salis_off.png' alt='Salisbury' name='myimage9' id='myimage9' onmouseover='menu_highlight(\"myimage9\",\"salis_on.png\")' onmouseout='menu_drop(\"myimage9\",\"salis_off.png\")'>;url=../local-attractions/salisbury.cfm;");
aI("text=<img src='../images/div.gif' alt='' name='myimage10' id='myimage10' onmouseover='menu_highlight(\"myimage10\",\"div.gif\")' onmouseout='menu_drop(\"myimage10\",\"div.gif\")'>;");
aI("text=<img src='../images/thrux_off.png' alt='Thruxton' name='myimage11' id='myimage11' onmouseover='menu_highlight(\"myimage11\",\"thrux_on.png\")' onmouseout='menu_drop(\"myimage11\",\"thrux_off.png\")'>;url=../local-attractions/thruxton.cfm;");
aI("text=<img src='../images/div.gif' alt='' name='myimage12' id='myimage12' onmouseover='menu_highlight(\"myimage12\",\"div.gif\")' onmouseout='menu_drop(\"myimage12\",\"div.gif\")'>;");
aI("text=<img src='../images/long_off.png' alt='Longleat' name='myimage13' id='myimage13' onmouseover='menu_highlight(\"myimage13\",\"long_on.png\")' onmouseout='menu_drop(\"myimage13\",\"long_off.png\")'>;url=../local-attractions/longleat.cfm;");
aI("text=<img src='../images/div.gif' alt='' name='myimage14' id='myimage14' onmouseover='menu_highlight(\"myimage14\",\"div.gif\")' onmouseout='menu_drop(\"myimage14\",\"div.gif\")'>;");
aI("text=<img src='../images/event_caln_off.png' alt='Event Calendar' name='myimage15' id='myimage15' onmouseover='menu_highlight(\"myimage15\",\"event_caln_on.png\")' onmouseout='menu_drop(\"myimage15\",\"event_caln_off.png\")'>;url=../local-attractions/event-calendar.cfm;");
}



function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

drawMenus();

