fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
font_variable=" Arial[, 10[, charset[,UNDERLINE]]]" 

//if (document.all.apppath.value != null)
//{_applicationPath = document.all.apppath.value;}
//else
//{_applicationPath = "";}
_applicationPath = "http://" + location.host;


function moreinfopopup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=600,left=200,top=200,toolbar=no,location=no,status=no,scrollbars=yes');
return false;
}


function versioninfopopup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=395,height=595,left=200,top=200,toolbar=no,location=no,status=no,scrollbars=yes');
return false;
}

function jsgoto(sURL)
{
	document.location = _applicationPath + sURL;
}

function jskey(e)
{ var i;
if (window.event)
   i = window.event.keyCode;
else if (e)
   i = e.which;

if (i == 13){
   window.open(_applicationPath + '/newcatalog.aspx?search=' + document.all.txtSearch.value,'_self');
   window.event.returnValue = false;}
}

with(menuStyle=new mm_style())
{
	bordercolor="#F69D35";
	borderstyle="solid";
	borderwidth=0;
	fontfamily="Helvetica,Verdana, Tahoma, Arial";
	fontsize="75%";
	fontstyle="normal";
	headerbgcolor="#ffffff";
	headercolor="#ffffff";
	offbgcolor="#F8B15D";
	offcolor="#fff";
	onbgcolor="#F8B15D";
	oncolor="#FAE2C6";
	padding=2;
	pagebgcolor="#F8B15D";
	pagecolor="#ffffff";
	separatorcolor="#F8B15D";
	separatorsize=1;
	separatorwidth=171;
	subimage="";
	subimagepadding=2;
	valign='top';
}

with(milonic=new menuname("Main Menu"))
{
	alwaysvisible=1;
	left=648;
	orientation="horizontal";
	style=menuStyle;
	top=22;
	aI("image=" + _applicationPath + "/images/hdr-topnav.gif;overimage=" + _applicationPath + "/images/hdr-topnav-on.gif;showmenu=your;");
}

with(milonic=new menuname("your"))
{
	style=menuStyle;
	aI("image=" + _applicationPath + "/images/arrowbtop-off.gif;");
	aI("image=" + _applicationPath + "/images/arrow-off.gif;overimage=" + _applicationPath + "/images/arrow-on.gif;text=about you;url=javascript:jsgoto('/Profile/AboutYou.aspx');;");
	aI("image=" + _applicationPath + "/images/arrow-off.gif;overimage=" + _applicationPath + "/images/arrow-on.gif;text=order status;url=javascript:jsgoto('/Order/OrderHistory.aspx');;");
	aI("image=" + _applicationPath + "/images/arrowb-off.gif;");
}

drawMenus();

