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";
}

var scrheight=0;scrwidth=0;
var bw=navigator.userAgent;
var bn=navigator.platform;
var ie=false;
var fx=false
var os="Win";
var ns=false;
var sf=false;
var op=false;
var mz=false;

//Rooms
with(milonic=new menuname("roo")){
orientation="vertical";
style=submenuStyle;
left=219;
top=-21;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/nu_urban_suite_off.gif' alt='Nu Urban Suite' title='Nu Urban Suite' name='myimage7' id='myimage7' onmouseover='menu_highlight(\"myimage7\",\"nu_urban_suite_on.gif\")' onmouseout='menu_drop(\"myimage7\",\"nu_urban_suite_off.gif\")'>;url=../nu_urban_suite/;");
aI("text=<img src='../images/nu_standard_off.gif' alt='Nu Standard' title='Nu Standard' name='myimage8' id='myimage8' onmouseover='menu_highlight(\"myimage8\",\"nu_standard_on.gif\")' onmouseout='menu_drop(\"myimage8\",\"nu_standard_off.gif\")'>;url=../nu_standard/;");
aI("text=<img src='../images/nu_friends_suite_off.gif' alt='Nu Friends Suite' title='Nu Friends Suite' name='myimage9' id='myimage9' onmouseover='menu_highlight(\"myimage9\",\"nu_friends_suite_on.gif\")' onmouseout='menu_drop(\"myimage9\",\"nu_friends_suite_off.gif\")'>;url=../nu_friends_suite/;");
}

//Your Stay
with(milonic=new menuname("acc")){
orientation="vertical";
style=submenuStyle;
left=219;
top=-21;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/rooms_off_new.gif' alt='Rooms' title='Rooms' name='myimage1' id='myimage1' onmouseover='menu_highlight(\"myimage1\",\"rooms_on_new.gif\")' onmouseout='menu_drop(\"myimage1\",\"rooms_off_new.gif\")'>;url=../your_stay/rooms.cfm;showmenu=nu_rooms");
}


//Business Travel
with(milonic=new menuname("bt")){
orientation="vertical";
style=submenuStyle;
left=219;
top=-21;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/business_amenities_off.gif' alt='Business Amenities' title='Business Amenities' name='myimage2' id='myimage2' onmouseover='menu_highlight(\"myimage2\",\"business_amenities_on.gif\")' onmouseout='menu_drop(\"myimage2\",\"business_amenities_off.gif\")'>;url=../business_travel/business_amenities.cfm;");
}

//Neighborhood
with(milonic=new menuname("ne")){
orientation="vertical";
style=submenuStyle;
left=219;
top=-21;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/places_off.gif' alt='Places to See' title='Places to See' name='myimage3' id='myimage3' onmouseover='menu_highlight(\"myimage3\",\"places_on.gif\")' onmouseout='menu_drop(\"myimage3\",\"places_off.gif\")'>;url=../snapshot_of_brooklyn/places_to_see.cfm;");
aI("text=<img src='../images/area_off.gif' alt='Area Events' title='Area Events' name='myimage4' id='myimage4' onmouseover='menu_highlight(\"myimage4\",\"area_on.gif\")' onmouseout='menu_drop(\"myimage4\",\"area_off.gif\")'>;url=../neighborhood/area_events.cfm;");
aI("text=<img src='../images/eat_off.gif' alt='Places to Eat and Drink' title='Places to Eat and Drink' name='myimage5' id='myimage5' onmouseover='menu_highlight(\"myimage5\",\"eat_on.gif\")' onmouseout='menu_drop(\"myimage5\",\"eat_off.gif\")'>;url=../snapshot_of_brooklyn/places_to_eat.cfm;");
aI("text=<img src='../images/shop_off.gif' alt='Where to Shop' title='Where to Shop' name='myimage6' id='myimage6' onmouseover='menu_highlight(\"myimage6\",\"shop_on.gif\")' onmouseout='menu_drop(\"myimage6\",\"shop_off.gif\")'>;url=../snapshot_of_brooklyn/where_to_shop.cfm;");
}

// for Your Stay
/*
with(milonic=new menuname("nu_rooms")){
orientation="vertical";
style=submenuStyle;
left=533;
top=99;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/nu_urban_suite_off.gif' alt='Nu Urban Suite' title='Nu Urban Suite' name='myimage7' id='myimage7' onmouseover='menu_highlight(\"myimage7\",\"nu_urban_suite_on.gif\")' onmouseout='menu_drop(\"myimage7\",\"nu_urban_suite_off.gif\")'>;url=../nu_urban_suite/;");
aI("text=<img src='../images/nu_standard_off.gif' alt='Nu Standard' title='Nu Standard' name='myimage8' id='myimage8' onmouseover='menu_highlight(\"myimage8\",\"nu_standard_on.gif\")' onmouseout='menu_drop(\"myimage8\",\"nu_standard_off.gif\")'>;url=../nu_standard/;");
aI("text=<img src='../images/nu_friends_suite_off.gif' alt='Nu Friends Suite' title='Nu Friends Suite' name='myimage9' id='myimage9' onmouseover='menu_highlight(\"myimage9\",\"nu_friends_suite_on.gif\")' onmouseout='menu_drop(\"myimage9\",\"nu_friends_suite_off.gif\")'>;url=../nu_friends_suite/;");
}
*/
////////

with(milonic=new menuname("nu_rooms")){
orientation="vertical";
style=submenuStyle;
//left=533;
top=120;
var bn=navigator.platform
var ie=navigator.appName
var leftmargin=0
scrheight =(window.screen.height);
scrwidth =(window.screen.width);


if(bn.indexOf("Win32")==-1){os="Mac";}
if(bw.indexOf("Opera")!=-1)
{op=true;}
else if(bw.indexOf("Safari")!=-1)
{sf=true;}
else if(bw.indexOf("Firefox")!=-1)
{fx=true;}
else if(bw.indexOf("MSIE")!=-1)
{ie=true;}
else if(bw.indexOf("Netscape")!=-1 && bw.indexOf("Mozilla")!=-1)
{ns=true;}
else if(bw.indexOf("Mozilla")!=-1)
{mz=true;}
else
{op=true;}	

if(os=="Win")
{
if(fx)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	//top=160;
	left=222;	
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
	//top=160;
	left=259;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
	//top=160;
	left=323;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{
	//top=160;
	left=387;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=387;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=387;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=387;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=387;	
	}	
	fx=true;
}	
else if(op)
{	
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	    left=222;
		//top=125; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{left=255;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{left=319;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{left=383;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=383;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=383;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=383;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=383;	
	}
op=true;	
} 
else if(sf)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	    left=237;
		//top=125; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{left=271;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{left=335;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=399;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=399;	
	}
sf=true;
}
else if(ie)
{	
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	    left=222;	
		//top=125; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{left=256;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{left=320;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{left=384;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=384;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=384;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=384;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=384;	
	}	
ie=true;
}
else if(ns)
{

	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	    left=237;
		//top=125; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{left=271;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{left=335;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=399;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=399;	
	}
ns=true;
}
else if(mz)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	    left=237;
		//top=125; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{left=271;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{left=335;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=399;	
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{left=399;	
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{left=399;	
	}
	mz=true;
}
}
//////////////////////////////////// Postion for Mac /////////////////////////////////
if(os=="Mac")
{
if(fx)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=370;
		 top=120; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		left=253;
		 top=120;
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
	left=368;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1344" && parseInt(scrheight)=="840")
	{
	left=400;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1680" && parseInt(scrheight)=="1050")
	{
	left=529;	
	top=120; 
	}
	fx=true;
}	
else if(op)
{	
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=222;
		 top=120; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		left=259;
		 top=120;
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
	left=367;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1344" && parseInt(scrheight)=="840")
	{
	left=399;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1680" && parseInt(scrheight)=="1050")
	{
	left=565;	
	top=120; 
	}
op=true;	
} 
else if(sf)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=222;
		 top=120; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		left=259;
		 top=120;
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
	left=388;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1344" && parseInt(scrheight)=="840")
	{
	left=388;	
	top=120; 
	}
	else if(parseInt(scrwidth)=="1680" && parseInt(scrheight)=="1050")
	{
	left=588;	
	top=120; 
	}
sf=true;
}
else if(ie)
{	

	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=195;
		  	
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		left=259;
		 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
	left=388;	
	 
	}
	else if(parseInt(scrwidth)=="1344" && parseInt(scrheight)=="840")
	{
	left=388;	
	 
	}
	else if(parseInt(scrwidth)=="1680" && parseInt(scrheight)=="1050")
	{
	left=500;	
	 
	}	
ie=true;
}
else if(ns)
{

	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=195;
		  	
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		left=259;
		 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
	left=388;	
	 
	}
	else if(parseInt(scrwidth)=="1344" && parseInt(scrheight)=="840")
	{
	left=388;	
	 
	}
	else if(parseInt(scrwidth)=="1680" && parseInt(scrheight)=="1050")
	{
	left=500;	
	 
	}	
ns=true;
}
else if(mz)
{
	if(parseInt(scrwidth)=="800" && parseInt(scrheight)=="600")
	{
	     left=245;
		 top=128; 
	}	
	else if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
	top=128; 
	left=273;	
	}
	else if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
	left=337;	
	top=128; 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="600")
	{
	left=337;	
	top=128; 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{left=337;	
	top=128; 
	}	
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{left=337;	
	top=128; 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
	left=402;	
	top=128; 
	}
	else if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
	left=402;	
	top=128; 
	}	
mz=true;
}
}

overflow="scroll";
aI("text=<img src='../images/nu_urban_suite_off_new.gif' alt='Nu Urban Suite' title='Nu Urban Suite' name='myimage100' id='myimage100' onmouseover='menu_highlight(\"myimage100\",\"nu_urban_suite_on_new.gif\")' onmouseout='menu_drop(\"myimage100\",\"nu_urban_suite_off_new.gif\")'>;url=../nu_urban_suite/");
aI("text=<img src='../images/nu_standard_off_new.gif' alt='Nu Standard' title='Nu Standard' name='myimage101' id='myimage101' onmouseover='menu_highlight(\"myimage101\",\"nu_standard_on_new.gif\")' onmouseout='menu_drop(\"myimage101\",\"nu_standard_off_new.gif\")'>;url=../nu_standard/");
aI("text=<img src='../images/nu_friends_suite_off_new.gif' alt='Nu Friends Suite' title='Nu Friends Suite' name='myimage102' id='myimage102' onmouseover='menu_highlight(\"myimage102\",\"nu_friends_suite_on_new.gif\")' onmouseout='menu_drop(\"myimage102\",\"nu_friends_suite_off_new.gif\")'>;url=../nu_friends_suite/");
}

////////
function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

drawMenus();


