var bTestSite=false;
var sHttpPrefix="http://";
var sLiveSiteRoot = "www.alaskacanopy.com/";      // address of LIVE site root directory (without the "http://" prefix!)
var sTestSiteRoot = "004fb85.netsolhost.com/";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf(sTestSiteRoot) > -1)
{
	bTestSite=true;
}
// establish http vs https
if (window.location.toString().toLowerCase().indexOf("https") > -1)
{
	sHttpPrefix = "https://";
}

//var nSubMenuAdditionalWidthMedium = 350;   	//mfindlay
var nSubMenuAdditionalWidthWide = 150;    	//mfindlay

//var nMenuWidth=175;				// width of menus to appear. Set to zero to ignore
var sBaseSite="";
var sNonSSLBaseSite="";

// If test site, just use 1 base site
if (bTestSite) 
{
	sBaseSite = sHttpPrefix + sTestSiteRoot;
	sNonSSLBaseSite = "http://" + sTestSiteRoot;
}
else
{
	sNonSSLBaseSite = "http://" + sLiveSiteRoot;
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + sLiveSiteRoot;  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + sLiveSiteRoot;
	}
} 

//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	window.location.href = sNonSSLBaseSite + sTarget;
	return true;
}


//var submenuTopOffset = "offset=5";  see iym for reference use in submenu flyouts
//var submenuLeftOffset = "offset=1";

// milonic
_menuCloseDelay=250;           	// The time delay for menus to remain visible on mouse out
_menuOpenDelay=50;             	// The time delay before menus open on mouse over
_subOffsetTop=4;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=-4;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#FFDD6D";			// hover background color  
offbgcolor="#FFEEB6";			// normal (non-hover) background color  
offcolor="#003366";				// normal (non-hover) text color  
oncolor="#003366";				// hover text color  
//offclass="mmpadding";			// custom style attached to menu
//onclass="mmpadding";			// custom style attached to menu
bordercolor="#C7C3A8";			// border color A89C91
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=5;						// menu item cell padding
pagebgcolor="#FFDD6D"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#003366";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#9196B1";		// separator color 
separatorsize="1";
subimage=sBaseSite + "images/common/flyoutarrow.gif";
subimagepadding="2";
}

//******************** TOURS ***********************************
with(milonic=new menuname("mmtours")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("showmenu=TOURS_CanopyAdventure;text=Canopy Adventure;url=");
aI("showmenu=TOURS_AdventurePartners;text=Adventure Partners;url=");
}
	// Sub-Flyout for TOURS_CanopyAdventure
	with(milonic=new menuname("TOURS_CanopyAdventure")){
	style=mainMenuStyle;
	itemwidth += nSubMenuAdditionalWidthWide;
aI("target=_blank;text=Rainforest Canopy &amp; Zipline Expedition - Ketchikan;url=" + sNonSSLBaseSite + "pages/tours_rainforest_ketchikan.htm;");
aI("target=_blank;text=Bear Creek Zipline Adventure - Ketchikan;url=" + sNonSSLBaseSite + "pages/tours_bearcreek_ketchikan.htm;");
aI("target=_blank;text=Rainforest Canopy &amp; Zipline Expedition - Juneau;url=" + sNonSSLBaseSite + "pages/tours_rainforest_juneau.htm;");
		}

	
	// Sub-Flyout for TOURS_AdventurePartners
	with(milonic=new menuname("TOURS_AdventurePartners")){
	style=mainMenuStyle;
	itemwidth += nSubMenuAdditionalWidthWide;
	aI("target=_blank;text=Alaska Rainforest Sanctuary;url=http://www.alaskarainforest.com;");
	aI("target=_blank;text=Taquan Air Flightseeing;url=http://www.taquanair.com;");
	}
	
	
//******************** SAFETY STANDARDS ***********************************
with(milonic=new menuname("mmsafetystandards")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("text=Operations;url=" + sNonSSLBaseSite + "pages/saftey_operations.htm;");
aI("text=Equipment;url=" + sNonSSLBaseSite + "pages/saftey_equipment.htm;");
aI("text=The Industry;url=" + sNonSSLBaseSite + "pages/saftey_industry.htm;");
}

//******************** THE EXPERIENCE ***********************************
with(milonic=new menuname("mmtheexperience")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("text=Photo Gallery;url=" + sNonSSLBaseSite + "pages/experience_gallery.htm;");
aI("text=Guest Comments;url=" + sNonSSLBaseSite + "pages/experience_comments.htm;");
aI("target=_blank;text=How Are We Doing?;url=" + sNonSSLBaseSite + "pages/experience_howdoing.htm;");
}
	
//******************** HOW TO BOOK ***********************************
with(milonic=new menuname("mmhowtobook")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("text=Book Through Your Cruiseline;url=" + sNonSSLBaseSite + "pages/book_cruiseline.htm;");
aI("text=Book Directly With Us;url=" + sNonSSLBaseSite + "pages/book_direct.htm;");
}


//******************** VISITOR INFORMATION ***********************************
with(milonic=new menuname("mmvisitorinfo")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("text=About Ketchikan & Juneau;url=" + sNonSSLBaseSite + "pages/visitor_about.htm;");
aI("text=Things to See &amp; Do;url=" + sNonSSLBaseSite + "pages/visitor_seedo.htm;");
aI("text=History;url=" + sNonSSLBaseSite + "pages/visitor_history.htm;");
aI("text=Preparation For Your Visit;url=" + sNonSSLBaseSite + "pages/visitor_prepare.htm;");
}
	
//******************** ABOUT US ***********************************
with(milonic=new menuname("mmaboutus")){
overflow="scroll";
style=mainMenuStyle;
itemwidth=150;  

top=-1;
left=0;
aI("text=Who We Are;url=" + sNonSSLBaseSite + "pages/canopy_about.htm;");
aI("text=Gift Shop;url=" + sNonSSLBaseSite + "pages/canopy_giftshop.htm;");
aI("showmenu=ABOUTUS_Job_Opportunities;text=Job Opportunities;url=");
}

	// Sub-Flyout for ABOUTUS_Job_Opportunities
	with(milonic=new menuname("ABOUTUS_Job_Opportunities")){
	style=mainMenuStyle;
	itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Join Our Team;url=" + sNonSSLBaseSite + "pages/canopy_jointeam.htm;");
	aI("text=Job Descriptions;url=" + sNonSSLBaseSite + "pages/canopy_jobdescript.htm;");
	}
	

//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

