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 + "henredon.minisage.com/";
	sNonSSLBaseSite = "http://" + "henredon.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.henredonschoener.com/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.henredonschoener.com/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.henredonschoener.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=2";
var nflyout_left = "offset=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=3;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#9e9581";			// hover background color  
offbgcolor="#dddad2";			// normal (non-hover) background color  
offcolor="#5a471b";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#dddad2";			// border color #B59973
borderstyle="solid";
borderwidth=1;			//1
fontfamily="Arial";				// 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="#9e9581"; 			// 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";
}

//******************** PRODUCTS ***********************************
with(milonic=new menuname("mm_products")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

aI("text=Furniture;url=" + sNonSSLBaseSite + "pages/products/products_furniture.php;");
aI("text=Bath & Bedding;url=" + sNonSSLBaseSite + "pages/products/products_bathandbed.php;");
aI("text=Accessories;url=" + sNonSSLBaseSite + "pages/products/products_accessories.php;");
aI("text=Area Rugs;url=" + sNonSSLBaseSite + "pages/products/products_arearugs.php;");
aI("text=Lighting;url=" + sNonSSLBaseSite + "pages/products/products_lighting.php;");
aI("text=Tile & Stone;url=" + sNonSSLBaseSite + "pages/products/products_tileandstone.php;");
aI("text=Fine Art;url=" + sNonSSLBaseSite + "pages/products/products_fineart.php;");
//aI("showmenu=FLOORING;text=Flooring;url=;");
aI("text=Flooring;url=" + sNonSSLBaseSite + "pages/products/products_flooring.php;");
aI("text=Cabinetry;url=" + sNonSSLBaseSite + "pages/products/products_cabinetry.php;");
aI("text=Plumbing;url=" + sNonSSLBaseSite + "pages/products/products_plumbing.php;");
aI("text=Window Coverings;url=" + sNonSSLBaseSite + "pages/products/products_windowcoverings.php;");

	with(milonic=new menuname("FLOORING")){
	style=mainMenuStyle;
	itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=Hardwood;url=" + sNonSSLBaseSite + "pages/products/products_flooring.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;");
	}

}
	
//******************** SERVICES ***********************************
with(milonic=new menuname("mm_services")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Services;url=" + sNonSSLBaseSite + "pages/services/services_main.php;");
}
	
//******************** PORTFOLIO ***********************************
with(milonic=new menuname("mm_portfolio")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Custom Homes;url=" + sNonSSLBaseSite + "pages/portfolio/portfolio_home_edmonds.php;");
aI("text=Custom Remodels;url=" + sNonSSLBaseSite + "pages/portfolio/portfolio_remod_seattle.php;");
aI("text=Interior Design;url=" + sNonSSLBaseSite + "pages/portfolio/portfolio_int_bainbridge.php;");
}
	with(milonic=new menuname("HOWHELP_SPONSORACHILD")){
	style=mainMenuStyle;
	//itemwidth += nSubMenuAdditionalWidthWide;
	aI("text=sponsored children;url=" + sNonSSLBaseSite + "pages/howhelp/howhelp_sponsored_children_en.php;");
	}
	
//******************** DESIGNER ***********************************
with(milonic=new menuname("mm_designer")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Designer 1;url=" + sNonSSLBaseSite + "pages/designer/designer1_main.php;");
aI("text=Designer 2;url=" + sNonSSLBaseSite + "pages/designer/designer2_main.php;");
}

//******************** SALES ***********************************
with(milonic=new menuname("mm_sales")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Sales / Promotions;url=" + sNonSSLBaseSite + "pages/sales/salespromotions.php;");
aI("text=Events;url=" + sNonSSLBaseSite + "pages/sales/events.php;");
aI("text=Ads;url=" + sNonSSLBaseSite + "pages/sales/ads.php;");
aI("text=Clearance;url=" + sNonSSLBaseSite + "pages/sales/clearance.php;");
}

//******************** ABOUT ***********************************
with(milonic=new menuname("mm_about")){
//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=200;  
top=nflyout_top;
left=nflyout_left;

//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Who We Are;url=" + sNonSSLBaseSite + "pages/aboutus/whoweare.php;");
aI("text=Customer Service;url=" + sNonSSLBaseSite + "pages/aboutus/customerservice.php;");
aI("text=Employment;url=" + sNonSSLBaseSite + "pages/aboutus/employment.php;");
}


//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)


