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 nSubMenuAdditionalWidth = 65; //mfindlay

var nMenuWidth=120;				// width of menus to appear. Set to zero to ignore
var sBaseSite= (bTestSite) ? sHttpPrefix + "www.minisage.com/wlm/" : sHttpPrefix + "www.whitelinemarkers.com/";

// 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=2;            	// Sub menu left offset

with(menuStyle=new mm_style()){
bordercolor="#A89C91";			// border color (#A89C91)
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";				// font / font family
fontsize="100%";				// font size
fontstyle="normal";				// font style
headerbgcolor="#FF0000";		// header background color (#FF0000")
headercolor="#FF0000";			// header color (#FF0000)
offbgcolor="#6492B3";			// normal (non-hover) background color  (#E3DDD7)
offcolor="#FFFFFF";				// normal (non-hover) text color  (#FFFFFF)
onbgcolor="#A5C5DE";			// hover background color  (#F6F0EA)
oncolor="#FFFFFF";				// hover text color  (#FFFFFF)
outfilter="Fade(duration=0.1)";
//overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#A5C5DE"; 			// this is the (non-hover) background color of the menu item last clicked (#F6F0EA)
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked (#FFFFFF)
separatorcolor="#A89C91";		// separator color (#A89C91)
separatorsize="1";
subimage=sBaseSite + "graphics/common/arrow.gif";
subimagepadding="2";
}

with(milonic=new menuname("Products")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth+nSubMenuAdditionalWidth;
aI("text=&nbsp;&nbsp;All products&nbsp;&nbsp;;url=" + sBaseSite + "products.asp;");
aI("text=&nbsp;&nbsp;Artificial Turf &amp; Turf Mats&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=artificial+turf+and+turf+mats;");
aI("text=&nbsp;&nbsp;Banners &amp; Stencils&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=banners+and+stencils;");
aI("text=&nbsp;&nbsp;Chalk Liners &amp; Templates&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=chalk+liners+and+templates;");
aI("text=&nbsp;&nbsp;Fence Cap&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=fence+cap;");
aI("text=&nbsp;&nbsp;Foul Poles&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=foul+poles;");
aI("text=&nbsp;&nbsp;Hand Tools &amp; Field Grooming&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=hand+tools+and+field+grooming");
aI("text=&nbsp;&nbsp;Miscellaneous&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=miscellaneous;");
aI("text=&nbsp;&nbsp;Paint &amp Paint Stipers&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=paint+and+paint+stripers;");
aI("text=&nbsp;&nbsp;Portable Fencing&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=portable+fencing;");
aI("text=&nbsp;&nbsp;Water Hoses &amp Irrigation&nbsp;&nbsp;;url=" + sBaseSite + "products.asp?cat=water+hoses+and+irrigation;");
}

with(milonic=new menuname("CustomerServices")){
style=menuStyle;
if (nMenuWidth) itemwidth=nMenuWidth+nSubMenuAdditionalWidth;
aI("text=&nbsp;&nbsp;Customer Services&nbsp;&nbsp;;url=" + sBaseSite + "customerservices.asp;");
aI("text=&nbsp;&nbsp;Dealer Locator&nbsp;&nbsp;;url=" + sBaseSite + "dealerlocator.asp;");
}

//drawMenus();  will do this in main body so we don't lose the page background (milonic bug)

