function create_menu(httpurl,httpsurl,showagent) {

with(milonic=new menuname("Main Menu")){
style=menuStyle;
screenposition="left";
position="relative";
alwaysvisible=1;
orientation="horizontal";
//menuwidth="100%";
itemwidth="783px";
aI("text=Home;url="+httpurl+";");
aI("text=*New&nbsp;Detailed&nbsp;Search;url="+httpurl+"/mtListingSearch.aspx;offclass=searchmenu;");
aI("text=Sell&nbsp;Your&nbsp;Home;showmenu=SELLHOME;url="+httpurl+"/mListWithUs.aspx;");
aI("text=Investors;url="+httpurl+"/mtInvestor.aspx;");
aI("text=About&nbsp;Us;showmenu=ABOUTUS;url="+httpurl+"/mAboutUs.aspx;");
aI("text=Contact&nbsp;Us;url="+httpurl+"/mContactUs.aspx;");
aI("text=Prequalification;url="+httpsurl+"/mCreditReport.aspx;");
aI("text=Careers;url="+httpurl+"/mtCareerOpportunities.aspx;");
if (showagent == 1) { 
aI("text=Agent&nbsp;Site;url="+httpurl+"/Main.aspx;");
}
}

with(milonic=new menuname("ABOUTUS")){
style=menuStyle;
aI("text=Our Mission;url="+httpurl+"/mMission.aspx;");
aI("text=Our Raving Fans;url="+httpurl+"/mRavingFans.aspx;");
aI("text=FAQ;url="+httpurl+"/mFAQ.aspx;");
aI("text=About Buyer's Agents;url="+httpurl+"/mNeedUs.aspx;");
aI("text=About Seller's Agents;url="+httpurl+"/mAboutSellersAgent.aspx;");
}

with(milonic=new menuname("MORTGAGE")){
style=menuStyle;
aI("text=Rent vs. Own;url="+httpurl+"/mBuyvsRent.aspx;");
aI("text=Income Guidelines;url="+httpurl+"/mIncome.aspx;");
aI("text=Credit Sources;url="+httpurl+"/mCreditSources.aspx;");
aI("text=Credit Questions;url="+httpurl+"/mCreditQuestions.aspx;");
aI("text=Getting Pre-Approved;url="+httpurl+"/mGettingPreapproved.aspx;");
}

with(milonic=new menuname("GUIDES")){
style=menuStyle;
aI("text=Home Buyers Guide;url="+httpurl+"/mHomeBuyersGuide.aspx;");
aI("text=Relocation Guide;url="+httpurl+"/mtRelocation.aspx;");
aI("text=Home Sellers Guide;url="+httpurl+"/mHomeSellersGuide.aspx;");
}

with(milonic=new menuname("SELLHOME")){
style=menuStyle;
aI("text=Free Market Analysis;url="+httpurl+"/mListWithUs.aspx;");
}

with(milonic=new menuname("SEARCHHOME")){
style=menuStyle;
aI("text=Search MLS;url="+httpurl+"/mtListingSearch.aspx;");
}

drawMenus();

}
