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 + "sg.minisage.com/";
	sNonSSLBaseSite = "http://" + "sg.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.thesymphonyguild.org/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.thesymphonyguild.org/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.thesymphonyguild.org/";
	}
} 

// 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=0";
var nflyout_left = "offset=40";

//********************
// 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="Arial";				// font / font family
fontsize="14px";				// font size
fontstyle="normal";				// font style   
fontweight="normal";			// font weight (bold,normal)  
offcolor="#4282a7";				// normal (non-hover) text color  
oncolor="#4282a7";				// hover text color 
ondecoration="underline";
offdecoration="none";
//onbgcolor="#faf6f3";			// hover background color  
//offbgcolor="#faf6f3";			// normal (non-hover) background color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
//bordercolor="#5a8e22";		// border color #B59973
//borderstyle="solid";
//borderwidth=1;			//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=5;						// menu item cell padding
//pagebgcolor="#faf6f3"; 			// this is the (non-hover) background color of the menu item last clicked #D2B48C
//pagecolor="#FFA200;";  			// 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="#e1dad6";		// separator color #D2B48C
separatorsize="1";
bgimage = sNonSSLBaseSite + "graphics/menu/background-gradient.gif";
}

//******************** WHO WE ARE ***********************************
with(milonic=new menuname("mm_whoweare")){
//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=155; 
itemheight=24;  // new
top=nflyout_top;
left="offset=0";

aI("text=Mission &amp; Vision;url=" + sNonSSLBaseSite + "content/whoweare/mission-and-vision.php;");
aI("text=Team;url=" + sNonSSLBaseSite + "content/whoweare/team.php;");
aI("text=Contact Us;url=" + sNonSSLBaseSite + "content/whoweare/contact.php;");
}
	
//******************** CONCERTS ***********************************
with(milonic=new menuname("mm_concerts")){
//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=155;  
itemheight=24;  // new
top=nflyout_top;
left="offset=12";

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Current Concert;url=" + sNonSSLBaseSite + "content/concerts/current-concert.php;");
aI("text=Previous Concerts;url=" + sNonSSLBaseSite + "content/concerts/previous-concerts.php;");
}
	
//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)


