fixMozillaZIndex=true; //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 + "iws.minisage.com/";
	sNonSSLBaseSite = "http://iws.minisage.com/";
}
else
{
	sNonSSLBaseSite = "http://" + "www.interiorwoodworking.com/";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "www.interiorwoodworking.com/";  
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "www.interiorwoodworking.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.asp";

// Set default locations for flyout menu
var nflyout_top = 4;   // -5
var nflyout_left = 1;  //0




//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sNonSSLBaseSite + sTarget;
	window.location.href = 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=0;            	// Sub menu left offset

// MAIN STYLE
with(mainMenuStyle=new mm_style()){
onbgcolor="#D1C0AD";			// hover background color  
offbgcolor="#D1C0AD";			// normal (non-hover) background color  
offcolor="#534741";				// 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="#D1C0AD";			// border color #B59973
borderstyle="solid";
borderwidth=1;			
fontfamily="Arial";				// font / font family
fontsize="12px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// 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=4;						// menu item cell padding
pagebgcolor="#D1C0AD"; 			// 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 
separatorcolor="#af9578";		// separator color #D2B48C
separatorsize="1";
subimage=sBaseSite + "menu/arrow.gif";
subimagepadding="3";
subimageposition="right";
//ondecoration="underline";
}

//******************** 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=194;  
top=nflyout_top;
left=nflyout_left;

aI("text=Food Service & Hospitality;url=" + sNonSSLBaseSite + "pages/products/products_foodsvcandhosp.asp;");
aI("text=Corporate TI & Retail;url=" + sNonSSLBaseSite + "pages/products/products_corptiandretail.asp;");
aI("text=Modular Designs;url=" + sNonSSLBaseSite + "pages/products/products_modulardesigns.asp;");
aI("text=Home Products;url=" + sNonSSLBaseSite + "pages/products/products_homeproducts.asp;");
}

//******************** SERVICES ***********************************
//******************** ABOUT US ***********************************
with(milonic=new menuname("mm_aboutus")){
//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=194;  
top=nflyout_top;
left=nflyout_left;

//aI("text=Mission;url=" + sNonSSLBaseSite + "pages/aboutus/aboutus_mission.asp;");
aI("text=Mission & History;url=" + sNonSSLBaseSite + "pages/aboutus/aboutus_history.asp;");
aI("text=Team;url=" + sNonSSLBaseSite + "pages/aboutus/aboutus_team.asp;");
aI("text=Affiliations;url=" + sNonSSLBaseSite + "pages/aboutus/aboutus_affiliations.asp;");
}
