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_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-home_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-careers_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-careers_sc-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_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/utility-contactus_sc-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/utility-search_sc.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_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-csr_sc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-about_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-about_sc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-ourview_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-ourview_sc-hover.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-press_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/topnav-press_sc-hover.gif" alt="" border="0" style="display:none">'

topb += '	<img src="'+imgpref+'img/shared/dropdown-awards_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-awards_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-business_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-business_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-career_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-career_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-china_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-china_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-client_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-client_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-company_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-company_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-global_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-global_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-press_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-press_sc-on.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-othernews_sc-off.gif" alt="" border="0" style="display:none">'
topb += '	<img src="'+imgpref+'img/shared/dropdown-othernews_sc-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.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.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-home_sc-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'
topb += '    <td><a href="'+imgpref+'about/careers/index.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-careers_sc-off.gif" alt="" border="0"></a></td>'
topb += '    <td class="ltBlueDivider">|</td>'
topb += '    <td><a href="'+imgpref+'contact/index.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+imgpref+'img/shared/utility-contactus_sc-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.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/sc/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_sc.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-tc-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.html\')" onmouseover="dropdownmenu(this, event, menu1, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'about/index.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_sc-'+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.html\')" onmouseover="dropdownmenu(this, event, menu2, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'views/index.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_sc-'+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.html\')" onmouseover="dropdownmenu(this, event, menu3, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'press/index.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_sc-'+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.html\')" onmouseover="dropdownmenu(this, event, menu4, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
topb += '					<td class="topNavButton" onclick="goToUrl(\''+imgpref+'community/index.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_sc-'+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.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='china'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-china_sc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/business/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='business'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-business_sc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/client/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='client'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-client_sc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'

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

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

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

	topb += '					<td id="sub7" class="subNavButton" onclick="goToUrl(\''+imgpref+'about/careers/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='career'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-career_sc-'+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.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='press'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-press_sc-'+bs+'.gif" border="0" alt="">'
	topb += '					</td>'
	topb += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+imgpref+'press/others/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (subb=='others'){bs='on';}else{bs='off';}
	topb += '						<img src="'+imgpref+'img/shared/subnav-othernews_sc-'+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)
