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";
}


//Travel Tips
with(milonic=new menuname("tra")){
orientation="vertical";
style=submenuStyle;
left=255;
top=-27;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/travel_tip_off.gif' alt='Travel Tips' title='Travel Tips' name='myimage2' id='myimage2' onmouseover='menu_highlight(\"myimage2\",\"travel_tip_on.gif\")' onmouseout='menu_drop(\"myimage2\",\"travel_tip_off.gif\")'>;url=../travel_tips_and_info/travel_tips.cfm;");
aI("text=<img src='../images/divider.gif' alt=''");
aI("text=<img src='../images/transportation_off.gif' alt='Transportation' title='Transportation' name='myimage1' id='myimage1' onmouseover='menu_highlight(\"myimage1\",\"transportation_on.gif\")' onmouseout='menu_drop(\"myimage1\",\"transportation_off.gif\")'>;url=../travel_tips_and_info/airport.cfm;showmenu=stand2");
aI("text=<img src='../images/divider.gif' alt=''");
aI("text=<img src='../images/currency_info_off.gif' alt='Currency Information' title='Currency Information' name='myimage3' id='myimage3' onmouseover='menu_highlight(\"myimage3\",\"currency_info_on.gif\")' onmouseout='menu_drop(\"myimage3\",\"currency_info_off.gif\")'>;url=../travel_tips_and_info/currency_information.cfm;");
}

//Travel Tips
with(milonic=new menuname("fou")){
orientation="vertical";
style=submenuStyle;
left=255;
top=-24;
if(bn.indexOf("Win")==-1) 
overflow="scroll";
aI("text=<img src='../images/spring_off.gif' alt='Spring' title='Spring' name='myimage10' id='myimage10' onmouseover='menu_highlight(\"myimage10\",\"spring_on.gif\")' onmouseout='menu_drop(\"myimage10\",\"spring_off.gif\")'>;url=../four_seasons_of_new_england/spring_ph.cfm;");
aI("text=<img src='../images/divider.gif' alt=''");
aI("text=<img src='../images/summer_off.gif' alt='Summer' title='Summer' name='myimage11' id='myimage11' onmouseover='menu_highlight(\"myimage11\",\"summer_on.gif\")' onmouseout='menu_drop(\"myimage11\",\"summer_off.gif\")'>;url=../four_seasons_of_new_england/summer_ph.cfm;");
aI("text=<img src='../images/divider.gif' alt=''");
aI("text=<img src='../images/fall_off.gif' alt='Fall' title='Fall' name='myimage12' id='myimage12' onmouseover='menu_highlight(\"myimage12\",\"fall_on.gif\")' onmouseout='menu_drop(\"myimage12\",\"fall_off.gif\")'>;url=../four_seasons_of_new_england/fall_ph.cfm;");
aI("text=<img src='../images/divider.gif' alt=''");
aI("text=<img src='../images/winter_off.gif' alt='Winter' title='Winter' name='myimage13' id='myimage13' onmouseover='menu_highlight(\"myimage13\",\"winter_on.gif\")' onmouseout='menu_drop(\"myimage13\",\"winter_off.gif\")'>;url=../four_seasons_of_new_england/winter_ph.cfm;");
}

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;

////Travel Tips-2 level-1
with(milonic=new menuname("stand2")){
style=submenuStyle;
overflow="scroll";
//left=+370;
//top=+210;
scrheight =(window.screen.height);
scrwidth =(window.screen.width);

if(bn.indexOf("Win32")==-1){os="Mac";}
if(bw.indexOf("Opera")!=-1)
{	
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=365;
		left=left+508;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=365;
		left=left+583;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=365;
		left=left+648;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=365;
		left=left+712;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=365;
		left=left+712;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=365;
		left=left+712;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=365;
		left=left+712;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=365;
		left=left+712;	
	}	
	op=true;
	
}
else if(bw.indexOf("MSIE")!=-1)
{			
	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=365;
		left=left+510;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=365;
		left=left+585;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{		
		top=365;
		left=left+650;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=365;
		left=left+715;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=365;
		left=left+715;	
	}	
	ie=true;
}
else if(bw.indexOf("Mozilla_Firefox")!=-1)
{
	scrheight =(window.screen.height);
	scrwidth =(window.screen.width);

	if(parseInt(scrwidth)=="800"  && parseInt(scrheight)=="600")
	{
		top=363;
		left=left+510;
	}
	if(parseInt(scrwidth)=="1024" && parseInt(scrheight)=="768")
	{
		top=363;
		left=left+585;
	}
	if(parseInt(scrwidth)=="1152" && parseInt(scrheight)=="864")
	{
		top=365;
		left=left+650;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="720")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="768")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="800")
	{
		top=365;
		left=left+715;
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="960")
	{
		top=365;
		left=left+715;	
	}
	if(parseInt(scrwidth)=="1280" && parseInt(scrheight)=="1024")
	{
		top=365;
		left=left+715;	
	}
	fx=true;
}
aI("text=<img src='../images/airport_off.gif' alt='Airport' title='Airport' name='myimage5' id='myimage5' onmouseover='menu_highlight(\"myimage5\",\"airport_on.gif\")' onmouseout='menu_drop(\"myimage5\",\"airport_off.gif\")'>;url=../travel_tips_and_info/airport.cfm");
aI("text=<img src='../images/divider_small.gif' alt=''");
aI("text=<img src='../images/car_rental_off.gif' alt='Car Rental' title='Car Rental' name='myimage6' id='myimage6' onmouseover='menu_highlight(\"myimage6\",\"car_rental_on.gif\")' onmouseout='menu_drop(\"myimage6\",\"car_rental_off.gif\")'>;url=../travel_tips_and_info/car_rental.cfm");
aI("text=<img src='../images/divider_small.gif' alt=''");
aI("text=<img src='../images/bus_off.gif' alt='Bus' title='Bus' name='myimage7' id='myimage7' onmouseover='menu_highlight(\"myimage7\",\"bus_on.gif\")' onmouseout='menu_drop(\"myimage7\",\"bus_off.gif\")'>;url=../travel_tips_and_info/bus.cfm");
aI("text=<img src='../images/divider_small.gif' alt=''");
aI("text=<img src='../images/train_off.gif' alt='Train' title='Train' name='myimage8' id='myimage8' onmouseover='menu_highlight(\"myimage8\",\"train_on.gif\")' onmouseout='menu_drop(\"myimage8\",\"train_off.gif\")'>;url=../travel_tips_and_info/train.cfm");
aI("text=<img src='../images/divider_small.gif' alt=''");
aI("text=<img src='../images/ferries_off.gif' alt='Ferries' title='Ferries' name='myimage9' id='myimage9' onmouseover='menu_highlight(\"myimage9\",\"ferries_on.gif\")' onmouseout='menu_drop(\"myimage9\",\"ferries_off.gif\")'>;url=../travel_tips_and_info/ferries.cfm");
}


function menu_highlight(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

function menu_drop(imgname,imgsrc)
{
	document.images[imgname].src='../images/'+imgsrc;
}

drawMenus();

