//----------DHTML Server-Side Menu Created using AllWebMenus PRO ver 5.3-#884---------------
//T:\Projects\Bain Real Estate\Web Dev\Bain Real Estate Web Dev - New Dev\bainmenuleft.awm
// This project has been compiled for (and will work under): bainrealestate.com, bain-realestate.com
var awmMenuName='bainmenuleft';
var awmLibraryBuild=884;
var awmLibraryPath='/bainmenuleft';
var awmImagesPath='/bainmenuleft/images';
var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || document.all || document.layers || navigator.userAgent.indexOf('Opera')>-1 || navigator.userAgent.indexOf('Konqueror')>-1)?1:0;
if (awmSupported){
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Chrome')>-1)?2:((nua.indexOf('Safari')>-1)?2:(nua.indexOf('Gecko')>-1)?2:((nua.indexOf('Opera')>-1)?4:1));
var mpi=document.location,xt="";
var mpa=mpi.protocol+"//"+mpi.host;
var mpi=mpi.protocol+"//"+mpi.host+mpi.pathname;
if(scriptNo==1){oBC=document.all.tags("BASE");if(oBC && oBC.length) if(oBC[0].href) mpi=oBC[0].href;}
while (mpi.search(/\\/)>-1) mpi=mpi.replace("\\","/");
mpi=mpi.substring(0,mpi.lastIndexOf("/")+1);
var e=document.getElementsByTagName("SCRIPT");
for (var i=0;i<e.length;i++){if (e[i].src){if (e[i].src.indexOf(awmMenuName+".js")!=-1){xt=e[i].src.split("/");if (xt[xt.length-1]==awmMenuName+".js"){xt=e[i].src.substring(0,e[i].src.length-awmMenuName.length-3);if (e[i].src.indexOf("://")!=-1){mpi=xt;}else{if(xt.substring(0,1)=="/")mpi=mpa+xt; else mpi+=xt;}}}}}
while (mpi.search(/\/\.\//)>-1) {mpi=mpi.replace("/./","/");}
var awmMenuPath=mpi.substring(0,mpi.length-1);
while (awmMenuPath.search("'")>-1) {awmMenuPath=awmMenuPath.replace("'","%27");}
document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");
document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmserversidemenu.js'><\/SCRIPT>");
if (typeof(testswitch)=='undefined') var testswitch="test";
var n=null;
awmzindex=2000;
}

var awmImageName='';
var awmPosID='menuleftpos';
var awmPosClass='';
var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=1;
var awmHash='NOKXLBTRLVVQKWWCZIFONC';
var awmNoMenuPrint=1;
function awmBuildMenu(){
its1=new ItemStyle("name=bainmenuleft_main_item_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=12px;textsize1=12px;textsize2=12px;textdecor0=B;textdecor1=B;color0=#0E0200;color1=#594C4A;color2=#594C4A;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#EDDEC1;bgcolor1=#EDDEC1;bgcolor2=#EDDEC1;align0=center;align1=center;align2=center;cursor=hand");
its2=new ItemStyle("name=bainmenuleft_sub_item_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=12px;textsize1=12px;textsize2=12px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#000066;color1=#594C4A;color2=#594C4A;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#EDDEC1;bgcolor1=#EDDEC1;bgcolor2=#EDDEC1;align0=left;align1=left;align2=left;cursor=hand");
its3=new ItemStyle("name=bainmenuleft_sub_item_plus_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=12px;textsize1=12px;textsize2=12px;color0=#000066;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#A5B778;bgcolor1=#A5B778;bgcolor2=#A5B778;align0=left;align1=left;align2=left;cursor=hand");
its4=new ItemStyle("name=bainmenuleft_main_group_header_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its5=new ItemStyle("name=bainmenuleft_main_group_footer_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its6=new ItemStyle("name=bainmenuleft_sub_group_header_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its7=new ItemStyle("name=bainmenuleft_sub_group_footer_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its8=new ItemStyle("name=bainmenuleft_sub_group_plus_header_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its9=new ItemStyle("name=bainmenuleft_sub_group_plus_footer_style;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=11px;textsize1=11px;textsize2=11px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#FFFFFF;color1=#FFFFFF;color2=#FFFFFF;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;bgcolor0=#0055E5;bgcolor1=#0055E5;bgcolor2=#0055E5;align0=center;align1=center;align2=center;cursor=hand");
its10=new ItemStyle("name=bainmenuleft_itemstyle10;textfont0=Tahoma, Arial, Helvetica, sans-serif;textfont1=Tahoma, Arial, Helvetica, sans-serif;textfont2=Tahoma, Arial, Helvetica, sans-serif;textsize0=12px;textsize1=12px;textsize2=12px;textdecor0=B;textdecor1=B;textdecor2=B;color0=#0E0200;color1=#0E0200;color2=#0E0200;padding0=3px 8px 3px 8;padding1=3px 8px 3px 8;padding2=3px 8px 3px 8;align0=center;align1=center;align2=center;cursor=hand");
grs1=new GroupStyle("name=bainmenuleft_main_group_style;bgcolor=#A9A77E;border=none none solid none;borderwidth=0px 0px 2px 0;bordercolor=#000000 #000000 #A9A77E #000000;itemdistance=1;groupwidth=122;scrollbar=0;autoScroll=1;hideUnfoldEffect=4;hideHow=1;alignoffset=-1;groupoffset=-1;slidingGroup=1;slidingRelativeTo=2;slidingStretch=1");
grs2=new GroupStyle("name=bainmenuleft_sub_group_style;bgcolor=#A9A77E;border=solid;borderwidth=1;bordercolor=#A9A77E;itemdistance=1;autoScroll=1;alignoffset=-1;groupoffset=3");
grs3=new GroupStyle("name=bainmenuleft_sub_group_plus_style;bgcolor=#000066;border=solid;borderwidth=1;bordercolor=#000066;itemdistance=1;autoScroll=1;alignoffset=-1;groupoffset=-1");
grs4=new GroupStyle("name=bainmenuleft_groupstyle4;bgcolor=#A9A77E;border=none none solid none;borderwidth=0px 0px 2px 0;bordercolor=#000000 #000000 #A9A77E #000000;itemdistance=1;groupwidth=122;scrollbar=0");
grsc1=CopyGroupStyle(grs1,"main_group_style");
grsc2=CopyGroupStyle(grs2,"sub_group_style");
grsc3=CopyGroupStyle(grs3,"sub_group_plus_style");
itsc1=CopyItemStyle(its1,"main_item_style");
itsc2=CopyItemStyle(its2,"sub_item_style");
itsc3=CopyItemStyle(its3,"sub_item_plus_style");
itsc4=CopyItemStyle(its4,"main_group_header_style");
itsc5=CopyItemStyle(its5,"main_group_footer_style");
itsc6=CopyItemStyle(its6,"sub_group_header_style");
itsc7=CopyItemStyle(its7,"sub_group_footer_style");
itsc8=CopyItemStyle(its8,"sub_group_plus_header_style");
itsc9=CopyItemStyle(its9,"sub_group_plus_footer_style");
awm_M0=bainmenuleft=new Menu("style=bainmenuleft_groupstyle4;keynav=1;drifty=8;elementrelative=1;offsetx=0;offsety=6;sticky=1;floatFromOffset=80;floatToDistanceSide=1");
awm_I83=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=7;image0=weblogo04.jpg;image1=weblogo04.jpg;image2=weblogo04.jpg;url=/index.php;tooltip=Bain Real Estate - Home Page");
awm_I32=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=24;text0=<form style=\"margin:0px 0px 0px 0px;\"  action=\"../listings"+testswitch+".php\" method=\"post\"  target=\"_self\"><input type=\"text\" id=\"searchfor\" name=\"searchfor\" value=\"    Search for...\" onFocus=\"this.value=''\" value=\"     Search for . . .\"  style=\"width: 90px; border: 1px solid #3c7b9c; background-color: #FFFFFF; color: #000000; font-family: Tahoma; font-size: 11px;\"/>&nbsp;<input type=\"image\" src=\"images/searchbutton.gif\" align=\"bottom\" width=16px alt=\"Submit button\" title=\"Search our listings for specific text\"></form>;htmlMode=1;tooltip=Search our listings for text");
awm_I1=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=0;text0=Homes;url=/listings"+testswitch+".php?type=residential&range=all");
awm_S33=awm_I1.newGroup("style=bainmenuleft_sub_group_style;groupid=6");
awm_I34=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=25;text0=up to $250K;url=listings.php?type=residential&range=0000:250000");
awm_S50=awm_I34.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=2");
awm_I52=awm_S50.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=6;text0=towns");
awm_I42=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=33;text0=$200K-$450K;url=listings.php?type=residential&range=200000:450000");
awm_S53=awm_I42.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=3");
awm_I55=awm_S53.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=8;text0=towns");
awm_I45=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=36;text0=$400K-$650K;url=listings.php?type=residential&range=400000:650000");
awm_S57=awm_I45.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=4");
awm_I59=awm_S57.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=10;text0=towns");
awm_I44=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=35;text0=$600K-$1M;url=listings.php?type=residential&range=600000:1000000");
awm_S60=awm_I44.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=7");
awm_I62=awm_S60.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=12;text0=towns");
awm_I43=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=34;text0=$1M &amp; Above;url=listings.php?type=residential&range=1000000:30000000");
awm_S63=awm_I43.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=8");
awm_I65=awm_S63.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=14;text0=towns");
awm_I46=awm_S33.newItem("style=bainmenuleft_sub_item_style;itemid=37;text0=All Listing;url=listings.php?type=residential&range=all");
awm_S66=awm_I46.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=9");
awm_I68=awm_S66.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=16;text0=towns");
awm_I2=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=1;text0=Land;url=listings.php?type=land&range=all");
awm_S4=awm_I2.newGroup("style=bainmenuleft_sub_group_style;groupid=1");
awm_I5=awm_S4.newItem("style=bainmenuleft_sub_item_style;itemid=3;text0=Up to $150K;url=listings"+testswitch+".php?type=land&range=00000:150000");
awm_S69=awm_I5.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=10");
awm_I70=awm_S69.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=17;text0=towns");
awm_I47=awm_S4.newItem("style=bainmenuleft_sub_item_style;itemid=38;text0=$150K-$250K;url=listings"+testswitch+".php?type=land&range=150000:250000");
awm_S71=awm_I47.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=11");
awm_I72=awm_S71.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=21;text0=towns");
awm_I48=awm_S4.newItem("style=bainmenuleft_sub_item_style;itemid=39;text0=$250K-$400K;url=listings"+testswitch+".php?type=land&range=250000:400000");
awm_S73=awm_I48.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=12");
awm_I74=awm_S73.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=22;text0=towns");
awm_I49=awm_S4.newItem("style=bainmenuleft_sub_item_style;itemid=40;text0=$400K &amp; Above;url=listings"+testswitch+".php?type=land&range=400000:30000000");
awm_S75=awm_I49.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=13");
awm_I76=awm_S75.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=23;text0=towns");
awm_I7=awm_S4.newItem("style=bainmenuleft_sub_item_style;itemid=5;text0=All Listings;url=listings"+testswitch+".php?type=land&range=all");
awm_S79=awm_I7.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=15");
awm_I80=awm_S79.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=42;text0=towns");
awm_I3=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=2;text0=Commercial;url=listings"+testswitch+".php?type=commercial&range=all");
awm_S77=awm_I3.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=14");
awm_I78=awm_S77.newItem("style=bainmenuleft_itemstyle10;visible=0;itemid=41;text0=towns");
awm_I23=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=18;text0=Rentals;url=rentalshome"+testswitch+".php");
awm_S24=awm_I23.newGroup("style=bainmenuleft_sub_group_style;groupid=5");
awm_I25=awm_S24.newItem("style=bainmenuleft_sub_item_style;itemid=19;text0=Rentals (yearly);url=listings"+testswitch+".php?type=rental_y");
awm_S81=awm_I25.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=16");
awm_I82=awm_S81.newItem("style=bainmenuleft_sub_item_plus_style;visible=0;itemid=4;text0=rentalandtowns");
awm_I26=awm_S24.newItem("style=bainmenuleft_sub_item_style;itemid=20;text0=Rentals (seasonal);url=listings"+testswitch+".php?type=rental_s");
awm_S87=awm_I26.newGroup("style=bainmenuleft_sub_group_plus_style;groupid=18");
awm_I88=awm_S87.newItem("style=bainmenuleft_sub_item_plus_style;visible=0;itemid=13;text0=towns");
awm_I40=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=31;text0=Market Update;url=marketupdate"+testswitch+".php");
awm_I35=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=26;text0=Recent Sales;url=listings"+testswitch+".php?type=all&range=all&status=sold");
awm_S84=awm_I35.newGroup("style=bainmenuleft_sub_group_style;groupid=17");
awm_I85=awm_S84.newItem("style=bainmenuleft_sub_item_style;visible=0;itemid=9;text0=towns");
awm_I36=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=27;text0=Advanced Search;url=MLSSearchWhatisIt"+testswitch+".php");
awm_I89=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=11;text0=Search Region;url=MLSSearchWhatisIt"+testswitch+".php");
awm_I37=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=28;text0=About Us;url=about_us"+testswitch+".php");
awm_I38=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=29;text0=The Region;url=region"+testswitch+".php");
awm_I39=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=30;text0=Contact Info;url=contact"+testswitch+".php");
awm_I41=awm_M0.newItem("style=bainmenuleft_main_item_style;itemid=32;text0=Broker News;url=brokernews"+testswitch+".php");
}
