fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf("minisage.com") > -1)
{
	bTestSite=true;
}
// establish http vs https
if (window.location.toString().toLowerCase().indexOf("https") > -1)
{
	sHttpPrefix = "https://";
}

var nSubMenuAdditionalWidthMedium = 150;   	//mfindlay
var nSubMenuAdditionalWidthWide = 200;    	//mfindlay

var nMenuWidth=200;				// 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 + "bamboonow.minisage.com/";
	sNonSSLBaseSite = "http://bamboonow.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.bamboonow.us/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.bamboonow.us/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.bamboonow.us/";
	}
} 

// set home page identifier, necessary to set the 'left' offset for the flyout between
// the home page and all internal pages
var sHomePage = sBaseSite + "index.asp";

// Set default locations for flyout menu
var nflyout_top = 4;   // -5
var nflyout_left = 1;  //0




//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sNonSSLBaseSite + sTarget;
	window.location.href = 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=5;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#C8C3B7";			// hover background color  
offbgcolor="#C8C3B7";			// normal (non-hover) background color  
offcolor="#534741";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#C8C3B7";			// border color #B59973
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=95);";
//overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=0;						// menu item cell padding
pagebgcolor="#C8C3B7"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
pagecolor="#534741";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#C8C3B7";		// separator color #D2B48C
separatorsize="1";
subimage=sBaseSite + "graphics/common/milonic_arrow.gif";
subimagepadding="2";
subimageposition="right";
//ondecoration="underline";
}

//******************** EMPLOYERS ***********************************
with(milonic=new menuname("mm_aboutus")){
//alwaysvisible=1;
//followscroll=1;
//overflow="scroll";  // Do not use scrollbars on this flyout since it can be so close to bottom of page
style=mainMenuStyle;
itemwidth=94;  
top=nflyout_top;
left=nflyout_left;

aI("text=Partners;url=" + sNonSSLBaseSite + "pages/aboutus/aboutus_partners.asp;");
}
