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

// Set default locations for flyout menu
var nflyout_top = "offset=2";
var nflyout_left = "offset=25";

//********************
// 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=3;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#651c26";			// hover background color  
offbgcolor="#7b2631";			// normal (non-hover) background color  
offcolor="#e6dfc5";				// normal (non-hover) text color  
oncolor="#e6dfc5";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#7b2631";			// border color #B59973
borderstyle="solid";
borderwidth=1;			//1
fontfamily="Helvetica";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="normal";			// font weight (bold,normal)   
//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="#7b2631"; 			// 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=sBaseSite + "graphics/common/menuseparator.gif";
//separatorcolor="#ffffff";		// separator color #D2B48C
//separatorsize="3";
}

//******************** MORE ABOUT ACUPUNCTURE ***********************************
with(milonic=new menuname("mm_moreaboutacu")){
//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;  
top=nflyout_top;
left=nflyout_left;

aI("text=History;url=" + sNonSSLBaseSite + "pages/acupuncture/moreaboutacupuncture_history.html;");
aI("text=Treatments;url=" + sNonSSLBaseSite + "pages/acupuncture/moreaboutacupuncture_treatments.html;");
aI("text=Fertility;url=" + sNonSSLBaseSite + "pages/acupuncture/moreaboutacupuncture_fertility.html;");
/*
aI("showmenu=FLOORING;text=Flooring;url=;");

	with(milonic=new menuname("FLOORING")){
	style=mainMenuStyle;
	itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Hardwood;url=" + sNonSSLBaseSite + "pages/products/products_flooring_hardwood.php;");
	aI("text=Stone & Tile;url=" + sNonSSLBaseSite + "pages/products/products_flooring_stonetile.php;");
	aI("text=Carpet;url=" + sNonSSLBaseSite + "pages/products/products_flooring_carpet.php;");
	aI("text=Alternatives;url=" + sNonSSLBaseSite + "pages/products/products_flooring_alternatives.php;");
	}
*/
}
	

//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

