fixMozillaZIndex=false; //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 + "westtier.minisage.com/";
	sNonSSLBaseSite = "http://" + "westtier.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.westtier.com/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.westtier.com/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.westtier.com/";
	}
} 

// 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.php";

// Set default locations for flyout menu
var nflyout_top = -1;   // -5
var nflyout_left = 0;  //0




//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sBaseSite + 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=0;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
offbgcolor="#a2b3be";			// normal (non-hover) background color  
offcolor="#392a05";				// normal (non-hover) text color  
oncolor="#a2b3be";				// hover text color  
onbgcolor="#392a05";			// hover background color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#392a05";			// border color #B59973
borderstyle="solid";
borderwidth=1;			//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=3;						// menu item cell padding
pagebgcolor="#392a05"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
pagecolor="#a2b3be";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#392a05";		// separator color #D2B48C
separatorsize="0";
subimage=sBaseSite + "menu/arrow.gif";
subimagepadding="2";
subimageposition="right";
}

//******************** COMMUNITIES ***********************************
with(milonic=new menuname("mm_communities")){
//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=133;  
top=nflyout_top;
left=nflyout_left;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Terraine;url=" + sNonSSLBaseSite + "pages/communities/terraine/terraine_lifestyle.php;");
aI("text=Caymus;url=" + sNonSSLBaseSite + "pages/communities/caymus/caymus_lifestyle.php;");
aI("text=Maderas;url=" + sNonSSLBaseSite + "pages/communities/maderas/maderas_lifestyle.php;");
aI("text=Calina;url=" + sNonSSLBaseSite + "pages/communities/calina/calina_lifestyle.php;");
}
	

//******************** RENTAL PROPERTIES ***********************************
with(milonic=new menuname("mm_rentals")){
//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=133;  
top=nflyout_top;
left=nflyout_left;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
	aI("text=Fitzgerald;url=http://qualityrentals.info/fg_main.htm;target=_blank;");
	aI("text=Stone Court;url=http://qualityrentals.info/sc_main.htm;target=_blank;");
	aI("text=Stone Ridge;url=http://qualityrentals.info/sr_main.htm;target=_blank;");
}
//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

