var topb = '';
var mb='';
topb += ''
var sTemp='';
var imgpref='images/menuimages';

topb += '	<div id="imagePreload" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_aboutus.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_aboutus_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_affiliates.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_affiliates_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_career.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_career_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_contact.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_contact_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_contact_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_debt.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_debt_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_equity.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_equity_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_finance.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_finance_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_home.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_home_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_hospitality.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_hospitality_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_industrial.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_industrial_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_international.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_international_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_mixeduse.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_mixeduse_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_multifamily.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_multifamily_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_office.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_office_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_other.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_other_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_products.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_products_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_professionals.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_professionals_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_property_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_property.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_retail.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_retail_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_specialized.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_specialized_hv.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_students.jpg" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'/btn_students_hv.jpg" alt="" border="0" style="display:none">'
topb += '	</div>'

topb += '	<div id="topBanner">'
topb += '		<div id="topNav"> <!-- Start of top navigation menus -->'
topb += '			<table border="0" cellpadding="0" cellspacing="0">'
topb += '				<tr>'

sTemp = 'btn_home_hv.jpg';
if (mb!='home')
topb += "					<td class='topNavButton' onclick='goToUrl(\"default.aspx\")' onmouseover='dropdownmenu(this, event, menu1, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td class="topNavButton" onclick="goToUrl(\'default.aspx\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (mb=='home'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_home.jpg" border="0" width="113px" height="31px" alt="Home">'
topb += '					</td>'
//if (mb=='home' || mb=='property'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'

sTemp = 'btn_property_hv.jpg';
if (mb!='property')
topb += "					<td onclick='goToUrl(\"#\")' onmouseover='dropdownmenu(this, event, menu2, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\"#\")" onmouseover="document.body.style.cursor=\'hand\'" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='property'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_property.jpg" width="128px" height="31px" border="0" alt="Property Type">'
topb += '					</td>'
//if (mb=='property' || mb=='product'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'


sTemp = 'btn_products_hv.jpg';
if (mb!='product')
topb += "					<td onclick='goToUrl(\"#\")' onmouseover='dropdownmenu(this, event, menu3, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\"#\")" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='product'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_products.jpg" width="123px" height="31" border="0" alt="Products">'
topb += '					</td>'
//if (mb=='product' || mb=='international'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'

sTemp = 'btn_international_hv.jpg';
if (mb!='international')
topb += "					<td onclick='goToUrl(\"international.html\")' onmouseover='dropdownmenu(this, event, menu4, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\'international.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='international'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_international.jpg" width="141px" height="31px" border="0" alt="International">'
topb += '					</td>'
//if (mb=='international' || mb=='career'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'

sTemp = 'btn_career_hv.jpg';
if (mb!='career')
topb += "					<td onclick='goToUrl(\"#\")' onmouseover='dropdownmenu(this, event, menu5, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\"#\")" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='career'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_career.jpg" border="0" width="122" height="31" alt="Career">'
topb += '					</td>'
//if (mb=='career' || mb=='career'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'

sTemp = 'btn_affiliates_hv.jpg';
if (mb!='affiliate')
topb += "					<td onclick='goToUrl(\"affiliates.html\")' onmouseover='dropdownmenu(this, event, menu6, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\'affiliates.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='affiliate'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_affiliates.jpg" width="126px" height="31px" border="0" alt="Affiliates">'
topb += '					</td>'
//if (mb=='affiliate' || mb=='about'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'

sTemp = 'btn_aboutus_hv.jpg';
if (mb!='about')
topb += "					<td onclick='goToUrl(\"about_us.html\")' onmouseover='dropdownmenu(this, event, menu7, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\'about_us.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='about'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_aboutus.jpg" width="124px" height="31px" border="0" alt="About us">'
topb += '					</td>'
//if (mb=='about' || mb=='contact'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'


sTemp = 'btn_contact_hv.jpg';
if (mb!='contact')
topb += "					<td onclick='goToUrl(\"contact_us.aspx\")' onmouseover='dropdownmenu(this, event, menu8, 2);mouseOverTopMenu(this," + "\"" + sTemp + "\"" + ");globaloffdropdownH();' onmouseout='delayhidemenu();globaloffdropdownS();'>"
else
topb += '					<td onclick="goToUrl(\'contact_us.aspx\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='contact'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'/btn_contact.jpg" width="124px" height="31px" border="0" alt="Contact">'
topb += '					</td>'
//if (mb=='contact'){dividerTd='dividerOn';}else{dividerTd='divider';}
//topb += '					<td class="'+dividerTd+'">'
//topb += '						<img src="'+imgpref+'img/bg-clear.gif" border="0" alt="" width="1" height="1">'
//topb += '					</td>'


topb += '				</tr>'
topb += '			</table>'
topb += '		</div> <!-- End of top navigation menus -->'


//if (mb == 'property'){

//	//####### INDIVIDUAL SUB
//	topb += '		<div id="subNav"> <!-- Start of sub navigation menus -->'
//	topb += '			<table border="0" cellpadding="0" cellspacing="0">'
//	topb += '				<tr>'
//	topb += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+imgpref+'individual/ourcommitment/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='mul'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-workingtogether-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\'http://www.morganstanleyindividual.com/planning/\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='offilce'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-planning-'+bs+'.jpg" border="0" alt="test">'
//	topb += '					</td>'
//	topb += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\'http://www.morganstanleyindividual.com/investmentproducts/\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='retail'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-investment-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\'http://www.morganstanleyindividual.com/accountoptions/\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='mix'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-accounts-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub5" class="subNavButton" onclick="goToUrl(\'http://www.morganstanleyindividual.com/markets/\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='hos'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-markets-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub6" class="subNavButton" onclick="goToUrl(\'http://www.morganstanleyindividual.com/customerservice/\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='ind'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-customerservice-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	if (subb=='other'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-customerservice-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	
////	topb += '					<td>'
////	topb += '						<img src="'+imgpref+'img/subnav-rightedge.gif" border="0" alt="" id="rightEdge">'
////	topb += '					</td>'
//	topb += '				</tr>'
//	topb += '			</table>'
//	topb += '		</div> <!-- End of sub navigation menus -->'

//}

//else if (mb == 'product') {

//	//####### INST SUB
//	topb += '		<div id="subNav"> <!-- Start of sub navigation menus -->'
//	topb += '			<table border="0" cellpadding="0" cellspacing="0">'
//	topb += '				<tr>'
//	topb += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+imgpref+'institutional/sales/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='dept'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-sales-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'	
//	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'institutional/invest_bank/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='eqity'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-invbank-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\'http://www.morganstanley.com/msim/portal/site/US/?u=d86d5c1b8375daf33d3afb1051a9e009&msimPageTitle=role_home_us_in\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='stru'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-im-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'
//	topb += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\''+imgpref+'institutional/primebrokerage/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='spea'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-pb-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'	
////	topb += '					<td>'
////	topb += '						<img src="'+imgpref+'img/subnav-rightedge.gif" border="0" alt="" id="rightEdge">'
////	topb += '					</td>'
//	topb += '				</tr>'
//	topb += '			</table>'
//	topb += '		</div> <!-- End of sub navigation menus -->'

//}

//else if (mb == 'career'){

//	//####### ABOUT SUB
//	topb += '		<div id="subNav"> <!-- Start of sub navigation menus -->'
//	topb += '			<table border="0" cellpadding="0" cellspacing="0">'
//	topb += '				<tr>'
//	topb += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/company/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='exp'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-offices-'+bs+'.jpg" border="0" alt="company information">'
//	topb += '					</td>'
//	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/offices/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
//	if (subb=='und'){bs='on';}else{bs='off';}
//	topb += '						<img src="'+imgpref+'img/subnav-offices-'+bs+'.jpg" border="0" alt="">'
//	topb += '					</td>'	
////	topb += '					<td>'
////	topb += '						<img src="'+imgpref+'img/subnav-rightedge.gif" border="0" alt="" id="rightEdge">'
////	topb += '					</td>'
//	topb += '				</tr>'
//	topb += '			</table>'
//	topb += '		</div> <!-- End of sub navigation menus -->'

//}

if (window.topgrad){
	topb += '		<div id="topBannerGrad"></div>'
}
		
topb += '	</div>'

document.write(topb)

