fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=120;
_subOffsetTop=0;
_subOffsetLeft=-0;

//LOCALIZE LINKS AND IMAGES
var base_url=document.domain;
if(base_url == "127.0.0.1") {
	base_url=base_url+"/vespa";
}
base_url="http://"+base_url+"/";

with(menuStyle=new mm_style()){
//bordercolor="#653300";
//borderstyle="solid";
borderwidth=0;
fontfamily="Arial Narrow, Arial, Geneva, san-serif";
fontsize="14px";
fontstyle="normal";
//fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#FFFFCC";
offcolor="#653300";
onbgcolor="#FFFFCC";
oncolor="#000000";
//outfilter="randomdissolve(duration=0.3)";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=5;
pagebgcolor="#FFFFCC";
pagecolor="#000000";
//separatorcolor="#AFAD0D";
//separatorsize=10;
//separatorheight=25;
//separatorpadding=25;
//separatorwidth=35;
separatorimage="img/blank.gif";
//subimage="img/arrow.gif";
//subimagepadding=5;
}

with(subStyle=new mm_style()){
itemwidth=116;
itemheight=14;
bordercolor="#A8A858";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial Narrow, Arial, Geneva, san-serif";
fontsize="13";
fontstyle="normal";
//fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
//image="blank.gif";
//imageheight=1;
//imagewidth=7;
offbgcolor="#FFFFCC";
offcolor="#653300";
onbgcolor="#FFFFCC";
oncolor="#000000";
//outfilter="randomdissolve(duration=0.3)";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=7;
separatorsize=1;
separatorcolor="#AFAD0D";
separatorheight=1;
subimage=base_url+"img/arrow.gif";
subimagepadding=7;
}

with(milonic=new menuname("Main Menu")){
screenposition="center";
alwaysvisible=1;
//left=200;
top=40;
orientation="horizontal";
style=menuStyle;
itemwidth=117;
menuwidth=720;
menuheight=26;
//margin=6;
aI("showmenu=rentals;text=Rentals;");
aI("showmenu=sales;text=Sales;");
aI("text=Contact Us;url="+base_url+"contact.php;")
aI("text=Register;url="+base_url+"register.php;")
aI("text=About Us;url="+base_url+"about.php;")
aI("showmenu=links;text=Links;");
}

with(milonic=new menuname("rentals")){
style=subStyle;
aI("text=Apartments;url="+base_url+"listings.php?pt=apt;")
aI("text=Commercial;url="+base_url+"listings.php?pt=com;")
}

with(milonic=new menuname("sales")){
style=subStyle;
aI("text=Townhouses;url="+base_url+"listings.php?pt=town;")
aI("text=Co-Op/Condo;url="+base_url+"listings.php?pt=con;")
aI("text=Investment;url="+base_url+"listings.php?pt=inv;")
}

with(milonic=new menuname("links")){
style=subStyle;
aI("text=Neighborhood;url="+base_url+"links.php;")
aI("text=Related;url="+base_url+"links.php?id=none;")
}

drawMenus();