var topb = ''

topb += ''

// image preload start

topb += '	<div id="imagePreload" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/bg-topnav-banner.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/logo-ms-china.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-home_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-home_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-careers_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-careers_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-clink-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-clink-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-contactus_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-contactus_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-group-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-group-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/btn-orange1.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/bg-topnav.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/bg-topnav-divider.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/bg-topnav-ggrad.gif" alt="" border="0" style="display:none">'


topb += '	<img src="'+imgpref+'img/shared/topnav-csr_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-csr_tc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-about_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-about_tc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-ourview_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-ourview_tc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-press_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-press_tc-hover.gif" alt="" border="0" style="display:none">'

topb += '	<img src="'+imgpref+'img/shared/dropdown-awards_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-awards_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-business_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-business_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-career_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-career_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-china_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-china_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-client_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-client_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-company_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-company_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-global_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-global_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-press_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-press_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-othernews_tc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-othernews_tc-on.gif" alt="" border="0" style="display:none">'
topb += '	</div>'
// image preload end

topb += '<DIV ID="topBanner">'

topb += '<DIV ID="logoAndLinks">'
topb += '<A HREF="'+imgpref+'index_tc.html" ID="logo"><IMG SRC="'+imgpref+'img/shared/logo-ms-china.gif" BORDER="0" ALT="Morgan Stanley"></A>'
			
topb += '<div id="topNavMod">'
topb += '  <div align="right">'
topb += '  <table border="0" cellpadding="0" cellspacing="0" id="utility">'
topb += '  <tr>'
topb += '    <td><a href="'+imgpref+'index_tc.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-home_tc-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'
topb += '    <td><a href="'+imgpref+'about/careers/index_tc.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-careers_tc-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'
topb += '    <td><a href="'+imgpref+'contact/index_tc.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-contactus_tc-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'
topb += '    <td><a href="https://secure.ms.com/" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-clink-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'

topb += '<TD><DIV STYLE="position: relative;" ONMOUSEOVER="dropdownmenu(this, event, util1, \'offices\');globaloffdropdownH1();" ONMOUSEOUT="delayhidemenu();globaloffdropdownS1();"  ONCLICK="" >'
topb += '<A HREF="'+imgpref+'about/global/index_tc.html" ONMOUSEOVER="mouseOverUtility(this);" ONMOUSEOUT="mouseOutUtility(this);"><IMG SRC="'+imgpref+'img/shared/utility-group-off.gif" ALT="" BORDER="0"><IMG SRC="'+imgpref+'img/shared/utility-arrow-down.gif" ALT="" BORDER="0"></A>'
topb += '</DIV></TD>'

topb += '</TR>'
topb += '</TABLE>'

/* search */
function fnEncodeHeaderQuery() {
       document.echo.queryTextOnPage.value=document.echo.query.value;
       document.echo.submit();
 }

topb += '<form name="echo" method="post" action="/web/search-china/webapp/tc/search" id="searchMS" onsubmit="fnEncodeHeaderQuery()">'
topb += '<input type="hidden" name="queryTextOnPage" value="" />'
topb += '<table border="0" cellpadding="0" cellspacing="0" class="searchField">'
topb += '<tr>'
topb += '<td><img src="'+imgpref+'img/shared/utility-search_tc.gif" border="0" alt="search"></td>'
topb += '<td>&nbsp;&nbsp;<input type="input" name="query" value="" class="text" id="searchBox">&nbsp;&nbsp;</td>'
topb += '<td><input type="image" src="'+imgpref+'img/shared/btn-orange1.gif" border="0" alt=""></td>'
topb += '</tr>'
topb += '</table>'
topb += '</form>'

topb += '<br /><table border="0" cellpadding="0" cellspacing="0" id="utility"><tr>'
topb += '<td><a href="'+langlink+'" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-sc-off.gif" alt="" border="0"></a></td>'
topb += '</tr></table>';

topb += '					</div>'
topb += '			</div>'
topb += '		</div>'

topb += '		<DIV ID="topNav"> <!-- Start of top navigation menus -->'
topb += '			<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">'
topb += '				<TR>'

if (mb!='about')
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'about/index_tc.html\')" onmouseover="dropdownmenu(this, event, menu1, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'about/index_tc.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+'img/shared/topnav-about_tc-'+bs+'.gif" border="0" alt="">'
topb += '					</td>'
if (mb=='about' || mb=='views'){dividerTd='dividerOn';}else{dividerTd='divider';}
topb += '					<td class="'+dividerTd+'">'
topb += '						<img src="'+imgpref+'img/shared/clear.gif" border="0" alt="" width="1" height="1">'
topb += '					</td>'

if (mb!='views')
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'views/index_tc.html\')" onmouseover="dropdownmenu(this, event, menu2, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'views/index_tc.html\')" onmouseover="document.body.style.cursor=\'hand\'" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='views'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'img/shared/topnav-ourview_tc-'+bs+'.gif" border="0" alt="">'
topb += '					</td>'
if (mb=='views' || mb=='press'){dividerTd='dividerOn';}else{dividerTd='divider';}
topb += '					<td class="'+dividerTd+'">'
topb += '						<img src="'+imgpref+'img/shared/clear.gif" border="0" alt="" width="1" height="1">'
topb += '					</td>'

if (mb!='press')
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'press/index_tc.html\')" onmouseover="dropdownmenu(this, event, menu3, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'press/index_tc.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='press'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'img/shared/topnav-press_tc-'+bs+'.gif" border="0" alt="">'
topb += '					</td>'
if (mb=='press' || mb=='community'){dividerTd='dividerOn';}else{dividerTd='divider';}
topb += '					<td class="'+dividerTd+'">'
topb += '						<img src="'+imgpref+'img/shared/clear.gif" border="0" alt="" width="1" height="1">'
topb += '					</td>'

if (mb!='community')
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'community/index_tc.html\')" onmouseover="dropdownmenu(this, event, menu4, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'community/index_tc.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'
if (mb=='community'){bs='hover';}else{bs='off';}
topb += '						<img src="'+imgpref+'img/shared/topnav-csr_tc-'+bs+'.gif" border="0" alt="">'
topb += '					</td>'
if (mb=='community'){dividerTd='dividerOn';}else{dividerTd='divider';}
topb += '					<td class="'+dividerTd+'">'
topb += '						<img src="'+imgpref+'img/shared/clear.gif" border="0" alt="" width="1" height="1">'
topb += '					</td>'


topb += '				</tr>'
topb += '			</table>'
topb += '		</div> <!-- End of top navigation menus -->'


if (mb == 'about'){

	//####### 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+'about/china/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='china'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-china_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/business/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='business'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-business_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/client/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='client'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-client_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

	topb += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/company/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='company'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-company_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

	topb += '					<td id="sub5" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/awards/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='awards'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-awards_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

	topb += '					<td id="sub6" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/global/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='global'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-global_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

	topb += '					<td id="sub7" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/careers/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='career'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-career_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

	topb += '					<td>'
	topb += '						<img src="'+imgpref+'img/shared/subnav-rightedge.gif" border="0" alt="" id="rightEdge">'
	topb += '					</td>'
	topb += '				</tr>'
	topb += '			</table>'
	topb += '		</div> <!-- End of sub navigation menus -->'

}

else if (mb == 'press'){

	//####### VIEWS 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+'press/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='press'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-press_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'press/others/index_tc.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='others'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-othernews_tc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td>'
	topb += '						<img src="'+imgpref+'img/shared/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)
