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.png";
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.png";
subimagepadding="5";
}

//Services & Amenities
with(milonic=new menuname("serv")){
orientation="horizontal";
style=submenuStyle;
left=252;
top=-64;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
	if(pagenm == "Dining"){
		aI("text=<img src='../images/dining_on.gif' alt='Dining' title='Dining' name='myimage1' id='myimage1'>;");
	}else{
		aI("text=<img src='../images/dining_off.gif' alt='Dining' title='Dining' name='myimage1' id='myimage1' onmouseover='menu_highlight(\"myimage1\",\"dining_on.gif\")' onmouseout='menu_drop(\"myimage1\",\"dining_off.gif\")'>;url=../services-and-amenities/dining.cfm;");
	}
	aI("text=<img src='../images/divider1.gif' alt='' name='myimage8' id='myimage8' onmouseover='menu_highlight(\"myimage8\",\"divider1.gif\")' onmouseout='menu_drop(\"myimage8\",\"divider1.gif\")'>;");
	if(pagenm == "Business"){
		aI("text=<img src='../images/business_on.gif' alt='Business' title='Business' name='myimage2' id='myimage2'>;");
	}else{
		aI("text=<img src='../images/business_off.gif' alt='Business' title='Business' name='myimage2' id='myimage2' onmouseover='menu_highlight(\"myimage2\",\"business_on.gif\")' onmouseout='menu_drop(\"myimage2\",\"business_off.gif\")'>;url=../services-and-amenities/business.cfm;");
	}
}

//Local Attractions
with(milonic=new menuname("locl")){
orientation="horizontal";
style=submenuStyle;
left=252;
top=-64;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
	if(pagenm == "NIH"){
		aI("text=<img src='../images/nih_on.gif' alt='NIH' title='NIH' name='myimage3' id='myimage3'>;");
	}else{
		aI("text=<img src='../images/nih_off.gif' alt='NIH' title='NIH' name='myimage3' id='myimage3' onmouseover='menu_highlight(\"myimage3\",\"nih_on.gif\")' onmouseout='menu_drop(\"myimage3\",\"nih_off.gif\")'>;url=../local-attractions/nih.cfm;");
	}
	aI("text=<img src='../images/divider2.gif' alt='' name='myimage9' id='myimage9' onmouseover='menu_highlight(\"myimage9\",\"divider2.gif\")' onmouseout='menu_drop(\"myimage8\",\"divider2.gif\")'>;");
	if(pagenm == "Washington DC"){
		aI("text=<img src='../images/washington_on.gif' alt='Washington DC' title='Washington DC' name='myimage4' id='myimage4'>;");
	}else{
		aI("text=<img src='../images/washington_off.gif' alt='Washington DC' title='Washington DC' name='myimage4' id='myimage4' onmouseover='menu_highlight(\"myimage4\",\"washington_on.gif\")' onmouseout='menu_drop(\"myimage4\",\"washington_off.gif\")'>;url=../local-attractions/washington-dc.cfm;");
		}
		aI("text=<img src='../images/divider2.gif' alt='' name='myimage99' id='myimage99' onmouseover='menu_highlight(\"myimage99\",\"divider2.gif\")' onmouseout='menu_drop(\"myimage99\",\"divider2.gif\")'>;");
	if(pagenm == "Walter Reed Medical Center"){
		aI("text=<img src='../images/walter-reed-medical-center_on.gif' alt='Walter Reed Medical Center' title='Walter Reed Medical Center' name='myimage44' id='myimage44'>;");
	}else{
		aI("text=<img src='../images/walter-reed-medical-center_off.gif' alt='Walter Reed Medical Center' title='Walter Reed Medical Center' name='myimage44' id='myimage44' onmouseover='menu_highlight(\"myimage44\",\"walter-reed-medical-center_on.gif\")' onmouseout='menu_drop(\"myimage44\",\"walter-reed-medical-center_off.gif\")'>;url=../local-attractions/walter-reed-medical-center.cfm;");
	}
}

//Groups and Meetings
with(milonic=new menuname("group")){
orientation="horizontal";
style=submenuStyle;
left=252;
top=-64;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
	if(pagenm == "RFP"){
		aI("text=<img src='../images/rfp_on.gif' alt='RFP' title='RFP' name='myimage5' id='myimage5'>;");
	}else{
		aI("text=<img src='../images/rfp_off.gif' alt='RFP' title='RFP' name='myimage5' id='myimage5' onmouseover='menu_highlight(\"myimage5\",\"rfp_on.gif\")' onmouseout='menu_drop(\"myimage5\",\"rfp_off.gif\")'>;url=http://hiltongardeninn.hilton.com/en/gi/hotels/groups.jhtml?ctyhocn=WASBTGI&WT.mc_id=1GI2ST3HGIBethesda4Thayer6WASBTGI;target=_blank;");
	}
	aI("text=<img src='../images/divider3.gif' alt='' name='myimage10' id='myimage10' onmouseover='menu_highlight(\"myimage10\",\"divider3.gif\")' onmouseout='menu_drop(\"myimage10\",\"divider3.gif\")'>;");
	if(pagenm == "Bar Or Bat Mitzvah"){
		aI("text=<img src='../images/bar_or_bat_on.gif' alt='Bar / Bat Mitzvah' title='Bar / Bat Mitzvah' name='myimage6' id='myimage6'>;");
	}else{
		aI("text=<img src='../images/bar_or_bat_off.gif' alt='Bar / Bat Mitzvah' title='Bar / Bat Mitzvah' name='myimage6' id='myimage6' onmouseover='menu_highlight(\"myimage6\",\"bar_or_bat_on.gif\")' onmouseout='menu_drop(\"myimage6\",\"bar_or_bat_off.gif\")'>;url=../groups-and-meetings/bar-or-bat-mitzvah.cfm;");
	}
	aI("text=<img src='../images/divider3.gif' alt='' name='myimage11' id='myimage11' onmouseover='menu_highlight(\"myimage11\",\"divider3.gif\")' onmouseout='menu_drop(\"myimage11\",\"divider3.gif\")'>;");
	if(pagenm == "Social Events"){
		aI("text=<img src='../images/social_events_on.gif' alt='Social Events' title='Social Events' name='myimage7' id='myimage7'>;");
	}else{
		aI("text=<img src='../images/social_events_off.gif' alt='Social Events' title='Social Events' name='myimage7' id='myimage7' onmouseover='menu_highlight(\"myimage7\",\"social_events_on.gif\")' onmouseout='menu_drop(\"myimage7\",\"social_events_off.gif\")'>;url=../groups-and-meetings/social-events.cfm;");
	}
}

function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

drawMenus();


