var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if ((window.location.toString().toLowerCase().indexOf("minisage.com") > -1) || 
   (window.location.toString().toLowerCase().indexOf("3448aad2388c21be") > -1))  // sitelevel test ID
{
	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=142;				// 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 + "www.minisage.com/burnstead/";
	sNonSSLBaseSite = "http://" + "www.minisage.com/burnstead/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.burnstead.com/";  // www.burnstead.com/
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.burnstead.com/";    
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.burnstead.com/";  // www.burnstead.com/
	}
} 

//****************************************************
// reloadCAPTCHA
//****************************************************
function reloadCAPTCHA() 
{
	document.getElementById('CAPTCHA').src=sBaseSite + 'include/CAPTCHA/CAPTCHA_image.asp?'+Date();
}

//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sBaseSite + sTarget;
	window.location.href = sNonSSLBaseSite + sTarget;
	return true;
}
// Set default locations for flyout menu
var nflyout_top = 0;   // -5
var nflyout_left = 0;  //0

//var submenuTopOffset = "offset=5";  see iym for reference use in submenu flyouts
//var submenuLeftOffset = "offset=1";

// Fix for firefox Mac with Flash
fixMozillaZIndex=true;

// 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

// Site Menu Style
with(siteMenuStyle=new mm_style()){
offcolor="#FFFFFF";				// normal (non-hover) text color  
offbgcolor="#666666";			// normal (non-hover) background color  
onbgcolor="#999966";			// hover background color  
oncolor="#FFFFFF";				// hover text color 
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana,Arial,sans-serif";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="normal";				// font weight (bold)   
outfilter="Fade(duration=0.1)";
//overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#8579A8"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "menu/flyoutarrow.gif";
subimagepadding="2";
subimageposition="right";
}
//******************** BURNSTEAD ***********************************
with(milonic=new menuname("mmRR")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=150;  
top=4;
left=2;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Realtors Packet;url=" + sNonSSLBaseSite + "realtors.asp;");
aI("text=Builder Documents;url=" + sNonSSLBaseSite + "realtor_pdfs.asp;");
aI("text=Realtor Incentives;url=" + sNonSSLBaseSite + "realtorincentives.asp;");
}
with(milonic=new menuname("mmAU")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=siteMenuStyle;
itemwidth=150;  
top=16;
left=2;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Land Acquisitions&nbsp;;url=" + sNonSSLBaseSite + "landacquisitions.asp;");
aI("text=Contact Us&nbsp;;url=" + sNonSSLBaseSite + "contact.asp;");
aI("text=Employment;url=" + sNonSSLBaseSite + "employment.asp;");
}
//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

