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

//********************
// 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=2;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=10;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
fontfamily='"Century Gothic",Arial, Helvetica, sans-serif"';				// font / font family
fontsize="16px";				// font size
fontstyle="normal";				// font style   
fontweight="normal";			// font weight (bold,normal)  
offcolor="#ffffff";				// normal (non-hover) text color  
oncolor="#ffffff";				// hover text color 
ondecoration="none";
offdecoration="none";
onbgcolor="#86ce7b";			// hover background color  
offbgcolor="#9FA1A4";			// normal (non-hover) background color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#86ce7b";			// border color #B59973
borderstyle="solid";
borderwidth=0;			//1
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=90);";
//overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=2;						// menu item cell padding
pagebgcolor="#86ce7b"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
pagecolor="#ffffff;";  			// this is the (non-hover) text color of the menu item last clicked 
subimage=sBaseSite + "graphics/common/flyoutarrow.gif";
subimagepadding="2";
subimageposition="right";
//separatorimage=sNonSSLBaseSite + "graphics/menu/background-gradient.gif";
//alert(separatorimage);
separatorcolor="#9FA1A4";		// separator color #D2B48C
separatorsize="1";
//bgimage = sNonSSLBaseSite + "graphics/menu/background-gradient.gif";
}



//******************** PROJECTS ***********************************
with(milonic=new menuname("mm_projects")){
//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=160; 
itemheight=24;  // new
top=nflyout_top;
left=nflyout_left;

aI("text=residential;url=" + sNonSSLBaseSite + "residential-projects/residential-projects-main.php;");
aI("text=public spaces;url=" + sNonSSLBaseSite + "commercial-projects/commercial-projects-main.php;");
}
	
//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)


