//relative navigation url prefix for utility
var imgpref = '';
if (level == 0){imgpref = '../../../';}
else if (level == 1){imgpref = '../../../../';}
else if (level == 2){imgpref = '../../../../../';}
else if (level == 3){imgpref = '../../../../../../';}
else if (level == 4){imgpref = '../../../../../../../';}
else { imgpref = ''; }
// Top Banner and navigation for Campus Recruitment website
var dir = '';
if (level == 1) { dir = '../'; }
else if (level == 2) { dir = '../../'; }
else if (level == 3) { dir = '../../../'; }
else if (level == 4) { dir = '../../../../'; }

//Contents for utility menu
var util1=new Array()

util1[0]='<table border="0" cellpadding="0" cellspacing="0" id="globalOfficesDD" width="300" onmouseover="globaloffdropdownH1();" onmouseout="globaloffdropdownS1();">'
util1[0]+='	<tr>'
util1[0]+='		<td valign="top" width="50%">'
util1[0]+='			<a href="'+imgpref+'about/offices/australia.html">Australia</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/canada.html">Canada</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/canada_french.html">Canada (Fran&ccedil;ais)</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/china.html">China</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/france.html">France</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/germany.html">Germany</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/greece.html">Greece</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/hk.html">Hong Kong</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/hungary.html">Hungary</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/india.html">India</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/ireland.html">Ireland</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/israel.html">Israel</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/italy.html">Italy</a>'
util1[0]+='			<a href="http://morganstanley.co.jp/index_e.html" target="_blank" >Japan</a>'
util1[0]+='		</td>'
util1[0]+='		<td valign="top" width="50%">'
util1[0]+='			<a href="'+imgpref+'about/offices/latin-america.html">Latin America</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/netherlands.html">Netherlands</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/russia.html">Russia</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/saudiarabia.html">Saudi Arabia</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/seasia.html">Singapore</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/south-africa.html">South Africa</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/south-korea.html">South Korea</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/spain.html">Spain</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/sweden.html">Sweden</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/swiss.html">Switzerland</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/taiwan.html">Taiwan</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/uae.html">United Arab Emirates</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/uk.html">United Kingdom</a>'
util1[0]+='			<a href="'+imgpref+'about/offices/usa.html">United States</a>'
util1[0]+='		</td>'
util1[0]+='	</tr>'
util1[0]+='</table>'


//Secondary Nav Declaration
var menu6=new Array() //HOME
var menu7=new Array() // Why MS
menu7[0]='<a href="'+dir+'ourbusiness.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-wwd-off.gif" border="0" alt=""></a>'
menu7[1]='<a href="'+dir+'culture/profiles/index.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-op-off.gif" border="0" alt=""></a>'
menu7[2]='<a href="'+dir+'gf.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-gf-off.gif" border="0" alt=""></a>'
menu7[3]='<a href="'+dir+'community.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ds-off.gif" border="0" alt=""></a>'
menu7[4]='<a href="'+dir+'ourplace.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-cc-off.gif" border="0" alt=""></a>'
menu7[5]='<a href="'+dir+'featured_stories.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ims-off.gif" border="0" alt=""></a>'
var menu8=new Array() // University Programs
menu8[0]='<a href="'+dir+'careers/programs/index.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-pd-off.gif" border="0" alt=""></a>'
menu8[1]='<a href="'+dir+'events.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ev-off.gif" border="0" alt=""></a>'
menu8[2]='<a href="'+dir+'online_ap.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-af-off.gif" border="0" alt=""></a>'
menu8[3]='<a href="'+dir+'ip.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ip-off.gif" border="0" alt=""></a>'
var menu9=new Array() // Global Presence
//menu9[0]='<a href="'+dir+'company_fo.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-fo-off.gif" border="0" alt=""></a>'
menu9[0]='<a href="'+dir+'company_am.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-am-off.gif" border="0" alt=""></a>'
menu9[1]='<a href="'+dir+'company_eu.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ema-off.gif" border="0" alt=""></a>'
menu9[2]='<a href="'+dir+'company_ap.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-ap-off.gif" border="0" alt=""></a>'
menu9[3]='<a href="'+dir+'company_jp.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-jp-off.gif" border="0" alt=""></a>'
var menu10=new Array() // Search And Apply
//menu10[0]='<a href="'+dir+'explevel.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-msats-off.gif" border="0" alt=""></a>'
//menu10[1]='<a href="'+dir+'mssbo.html" onclick="" onmouseover="mouseOverDD(this);globaloffdropdownH();" onmouseout="mouseOutDD(this);globaloffdropdownS();"><img src="'+dir+'images/dropdown-mssbbo-off.gif" border="0" alt=""></a>'

var camrecban = ''

//preload

// Top Banner 
camrecban += '  <div id="header" align="center" style="width:968px">'
camrecban += '    <table width="100%" border="0" cellspacing="0" cellpadding="0">'
camrecban += '      <tr>'
camrecban += '        <td><table height="88" border="0" align="left" cellpadding="0" cellspacing="0">'
camrecban += '            <tr>'
camrecban += '              <td><a href="/index.html"><img src="'+dir+'images/logo_morgan_stanley.gif" width="166" height="56" border="0" alt="Morgan Stanley" /></a></td>'
camrecban += '              <td class="rule"><img src="'+dir+'images/rule_vert_header.gif" width="2" height="88" border="0" alt="" /></td>'
camrecban += '              <td><img src="'+dir+'images/careers_logo.gif" border="0" alt="Careers" title="Careers"/></td>'
camrecban += '            </tr>'
camrecban += '          </table></td>'
camrecban += '        <td nowrap class="rule" height="88" valign="top" align="right"><div class="utils">'
camrecban += '<div class="links">'
camrecban += '<table  border="0" cellspacing="2" cellpadding="0">'
camrecban += '<tr><td>'
camrecban += '<a href="http://www.morganstanley.com/" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+dir+'images/utility-ms-off.gif" alt="morganstanley.com" border="0"></a>'
camrecban += '</td>'
camrecban += '<td class="ltBlueDivider">|</td>'
camrecban += '<td>'
camrecban += '<a href="http://www.morganstanley.com/contact_us.html" onmouseover="mouseOverUtility(this);" onmouseout="mouseOutUtility(this);"><img src="'+dir+'images/utility-contactus-off.gif" alt="Contact Us" border="0"></a>'
camrecban += '</td>'
camrecban += '<td class="ltBlueDivider">|</td>'
camrecban += '<td>'
camrecban += '<div style="position: relative;" onmouseover="document.getElementById(\'utilityLoginto\').style.display = \'none\';dropdownmenu(this, event, util1, \'offices\');globaloffdropdownH1();" onmouseout="globaloffdropdownS1();">'
camrecban += '<a href="/about/offices/index.html" onmouseover="mouseOverUtility(this);" onmouseout="delayhidemenu();mouseOutUtility(this);"><img src="'+dir+'images/utility-globaloffices-off.gif" alt="" border="0"><img src="'+dir+'images/utility-arrow-down.gif" alt="" border="0"></a>'
camrecban += '</div>'
camrecban += '</td>'
camrecban += '<td>&nbsp;&nbsp;</td>'
camrecban += '</tr></table>'
camrecban += '</div>'
camrecban += '            </div>'
camrecban += '          </div>'
camrecban += '          <div align="right" style="height:36px; margin-top:15px;">'
camrecban += '          <table border="0" cellpadding="0" cellspacing="2">'
camrecban += '          <tr>'
camrecban += '              <td><img src="'+dir+'images/jsr_label.gif" border="0" alt="Job Seeker Resources" title="Job Seeker Resources"/>&nbsp;&nbsp;</td>'
camrecban += '              <td nowrap="nowrap"><form><div id="utilityLoginto"><select onchange="javascript:loadSelectedJSR(this.id);" id="selectJSR"><option selected>Select</option><option value="iq_asiapacific.html">Interview Questions</option><option value="events.html">Upcoming Campus Events</option><option value="apply_ft.html">Financial Glossary</option><option value="faqs_asiapacific.html">FAQs</option><option value="mediaarchive.html">Webcasts &amp; Videos</option></select></div></form></td>'
camrecban += '              <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>'
camrecban += '          </tr>'
camrecban += '          </table>'
camrecban += '          </div></td>'
camrecban += '      </tr>'
camrecban += '    </table>'
camrecban += '  </div>'
// Top Banner Ends

// Primary Nav Starts
camrecban += '  <div id="primary-navigation" style="width:968;">'
camrecban += '    <table cellpadding="0" cellspacing="0" border="0">'
camrecban += '      <tr>'

if (primnav!='pnhome')
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'index.html\')" onmouseover="dropdownmenu(this, event, menu6, 0);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'index.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (primnav=='pnhome'){bs='hover';}else{bs='off';}
camrecban += '						<img src="'+dir+'images/topnav-home-'+bs+'.gif" border="0" alt="">'
camrecban += '					</td>'
if (primnav=='pnhome' || primnav=='pnwms'){dividerTd='dividerOn';}else{dividerTd='divider';}
camrecban += '					<td class="'+dividerTd+'">'
camrecban += '						<img src="'+dir+'images/clear.gif" border="0" alt="" width="1" height="1">'
camrecban += '					</td>'


if (primnav!='pnwms')
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'wms.html\')" onmouseover="dropdownmenu(this, event, menu7, 1);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'wms.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (primnav=='pnwms'){bs='hover';}else{bs='off';}
camrecban += '						<img src="'+dir+'images/topnav-whyms-'+bs+'.gif" border="0" alt="">'
camrecban += '					</td>'
if (primnav=='pnwms' || primnav=='pnup'){dividerTd='dividerOn';}else{dividerTd='divider';}
camrecban += '					<td class="'+dividerTd+'">'
camrecban += '						<img src="'+dir+'images/clear.gif" border="0" alt="" width="1" height="1">'
camrecban += '					</td>'

if (primnav!='pnup')
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'up.html\')" onmouseover="dropdownmenu(this, event, menu8, 2);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'up.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (primnav=='pnup'){bs='hover';}else{bs='off';}
camrecban += '						<img src="'+dir+'images/topnav-up-'+bs+'.gif" border="0" alt="">'
camrecban += '					</td>'
if (primnav=='pnup' || primnav=='pngp'){dividerTd='dividerOn';}else{dividerTd='divider';}
camrecban += '					<td class="'+dividerTd+'">'
camrecban += '						<img src="'+dir+'images/clear.gif" border="0" alt="" width="1" height="1">'
camrecban += '					</td>'

if (primnav!='pngp')
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'gp.html\')" onmouseover="dropdownmenu(this, event, menu9, 3);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'gp.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (primnav=='pngp'){bs='hover';}else{bs='off';}
camrecban += '						<img src="'+dir+'images/topnav-gp-'+bs+'.gif" border="0" alt="">'
camrecban += '					</td>'
if (primnav=='pngp' || primnav=='pnsa'){dividerTd='dividerOn';}else{dividerTd='divider';}
camrecban += '					<td class="'+dividerTd+'">'
camrecban += '						<img src="'+dir+'images/clear.gif" border="0" alt="" width="1" height="1">'
camrecban += '					</td>'

if (primnav!='pnsa')
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'sa.html\')" onmouseover="dropdownmenu(this, event, menu10, 0);mouseOverTopMenu(this);globaloffdropdownH();" onmouseout="delayhidemenu();globaloffdropdownS();">'
else
camrecban += '					<td class="topNavButton" onclick="goToUrl(\''+dir+'sa.html\')" onmouseover="document.body.style.cursor=\'hand\';" onmouseout="document.body.style.cursor=\'default\';">'

if (primnav=='pnsa'){bs='hover';}else{bs='off';}
camrecban += '						<img src="'+dir+'images/topnav-sa-'+bs+'.gif" border="0" alt="">'
camrecban += '					</td>'
if (primnav=='pnsa'){dividerTd='dividerOn';}else{dividerTd='divider';}
camrecban += '					<td class="'+dividerTd+'">'
camrecban += '						<img src="'+dir+'images/clear.gif" border="0" alt="" width="1" height="1">'
camrecban += '					</td>'
camrecban += '        <td  width="50%">&nbsp;</td>'
camrecban += '      </tr>'
camrecban += '    </table>'
camrecban += '  </div>'
// Primary Nav Ends
// Secondary Nav: Why Morgan Stanley
if (primnav == 'pnwms'){

	camrecban += '		<div id="tertiary-navigation" style="width:968px"> <!-- Start of sub navigation menus -->'
	camrecban += '			<table border="0" cellpadding="0" cellspacing="0">'
	camrecban += '				<tr>'
	camrecban += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+dir+'ourbusiness.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'wwd'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-wwd-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+dir+'culture/profiles/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'op'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-op-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\''+dir+'gf.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'gf'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-gf-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\''+dir+'community.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ds'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ds-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub5" class="subNavButton" onclick="goToUrl(\''+dir+'ourplace.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'cc'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-cc-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub6" class="subNavButton" onclick="goToUrl(\''+dir+'featured_stories.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ims'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ims-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td>'
	camrecban += '						<img src="'+dir+'images/subnav-rightedge.gif" border="0" alt="" id="rightEdge">'
	camrecban += '					</td>'
	camrecban += '				</tr>'
	camrecban += '			</table>'
	camrecban += '		</div> <!-- End of sub navigation menus -->'
}

// Secondary Nav: University Program
if (primnav == 'pnup'){

	camrecban += '		<div id="tertiary-navigation" style="width:968px"> <!-- Start of sub navigation menus -->'
	camrecban += '			<table border="0" cellpadding="0" cellspacing="0">'
	camrecban += '				<tr>'
	camrecban += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+dir+'careers/programs/index.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'pd'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-pd-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+dir+'events.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ev'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ev-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\''+dir+'online_ap.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'af'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-af-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\''+dir+'ip.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ip'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ip-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '				</tr>'
	camrecban += '			</table>'
	camrecban += '		</div> <!-- End of sub navigation menus -->'
}

// Secondary Nav: Global Presence
if (primnav == 'pngp'){

	camrecban += '		<div id="tertiary-navigation" style="width:968px"> <!-- Start of sub navigation menus -->'
	camrecban += '			<table border="0" cellpadding="0" cellspacing="0">'
	camrecban += '				<tr>'
/*	camrecban += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+dir+'company_fo.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'fo'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-fo-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'*/
	camrecban += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+dir+'company_am.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'am'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-am-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub3" class="subNavButton" onclick="goToUrl(\''+dir+'company_eu.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ema'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ema-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub4" class="subNavButton" onclick="goToUrl(\''+dir+'company_ap.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'ap'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-ap-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub5" class="subNavButton" onclick="goToUrl(\''+dir+'company_jp.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'jp'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-jp-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '				</tr>'
	camrecban += '			</table>'
	camrecban += '		</div> <!-- End of sub navigation menus -->'
}

// Secondary Nav: Search And Apply
/*
if (primnav == 'pnsa'){

	camrecban += '		<div id="tertiary-navigation" style="width:968px"> <!-- Start of sub navigation menus -->'
	camrecban += '			<table border="0" cellpadding="0" cellspacing="0">'
	camrecban += '				<tr>'
	camrecban += '					<td id="sub2" class="subNavButton" onclick="goToUrl(\''+dir+'explevel.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'msats'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-msats-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '					<td id="sub1" class="subNavButton" onclick="goToUrl(\''+dir+'mssbo.html\')" onmouseover="mouseOverSubMenu(this);" onmouseout="mouseOutSubMenu(this);">'
	if (secnav == 'mssbbo'){bs='on';}else{bs='off';}
	camrecban += '						<img src="'+dir+'images/subnav-mssbbo-'+bs+'.gif" border="0" alt="">'
	camrecban += '					</td>'
	camrecban += '				</tr>'
	camrecban += '			</table>'
	camrecban += '		</div> <!-- End of sub navigation menus -->'
}*/

//Secondary Nav Ends

document.write(camrecban)

function OpenWin(){ window.open("dummypop.html");}

function openpop()
{ window.open('notavailable.html','notavailable','scrollbars=no,status=no,resizable=no,width=420,height=220,top=250,left=450'); }

function loadSelectedJSR(id)
{
	var sltObject, sltIndex, url;
	sltObject = document.getElementById(id);
	sltIndex = sltObject.selectedIndex;
	if(sltIndex > 0)
	{	
		url = sltObject.options[sltIndex].value; 
		window.location = imgpref+"about/careers/"+url;
	}
}

var menuwidth='178px' //default menu width
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var activeMenu = ""

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="position:absolute;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, mc){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
//if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
//dropmenuobj.widthobj.width=menuwidth
//}
if (mc.length > 0){
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible
	else if (e.type=="click")
	obj.visibility=hidden
}
else{
	obj.visibility=hidden
}

}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-17
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what, mname, ln, tar){
if (ie4||ns6)
var pmenu = ''
for ( var j=0, wlen=what.length; j<wlen; ++j ){
	pmenu += what[j]
}
pmenu += ''

dropmenuobj.innerHTML=pmenu
}



//Global Offices Dropdown
function dropdownmenu(obj, e, menucontents, mtext, lnk, targ){
	if (activeNavNode != '') hideNavButton()
	
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
		clearhidemenu()
		dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
		populatemenu(menucontents, mtext, lnk, targ)
		
	if (ie4||ns6){
	showhide(dropmenuobj.style, e, "visible", "hidden", menucontents)
	if (mtext == 'offices')
	dropmenuobj.x=getposOffset(obj, "left") +12
	
	else
	dropmenuobj.x=getposOffset(obj, "left") -1
	dropmenuobj.y=getposOffset(obj, "top")
	dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
	dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}
	return clickreturnvalue()
	}

//Global Offices Dropdown ends

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6){
		dropmenuobj.style.visibility="hidden"
		if (activeNavNode != '') hideNavButton()
	}
}
//alert(e);
	document.getElementById("utilityLoginto").style.display = 'block';
	
}

function hideNavButton(){
	imgObj = getImageNode(activeNavNode);
	imgObj.setAttribute("src", activeTopNav);
	document.body.style.cursor='default';
	
	td = activeNavNode;
	td.className = "";
	td.leftRule = getAdjacentElement(td, td.nodeType, "previous");
	td.rightRule = getAdjacentElement(td, td.nodeType, "next");
	if (td.leftRule && (activeTNleft != 'dividerOn'))
	{
		td.leftRule.className = "divider";
	}
	if (td.rightRule && (activeTNright != 'dividerOn'))
	{
		td.rightRule.className = "divider";
	}
	
	activeImgName = '';
	activeNavNode = '';
}



function showGloff() {
		document.getElementById("gbmenuinn").style.display = "block";
		document.getElementById("utilityLoginto").style.display = "none";
		//document.getElementById("comboboxHS").style.visibility = "hidden";
		}

function hideGloff() {
		document.getElementById("gbmenuinn").style.display = "none";
		document.getElementById("utilityLoginto").style.display = "block";
		//document.getElementById("comboboxHS").style.visibility = "visible";
		
		}



function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

function globaloffdropdownH(){
	
	if (document.getElementById('comboboxHS') != null) {
	    document.getElementById("comboboxHS").style.visibility = "hidden";
	  } 
	  else {
	     return false;
	  }

	}
	
	
function globaloffdropdownS(){
	if (document.getElementById('comboboxHS') != null) {
	    document.getElementById("comboboxHS").style.visibility = "visible";
	  } 
	  else {
	     return false;
	  }
	}
	
	
function globaloffdropdownH1(){
	
	if (document.getElementById('comboboxHS1') != null) {
	    document.getElementById("comboboxHS1").style.visibility = "hidden";
	  } 
	  else {
	     return false;
	  }

	}
	
	
function globaloffdropdownS1(){
	if (document.getElementById('comboboxHS1') != null) {
	    document.getElementById("comboboxHS1").style.visibility = "visible";
	  } 
	  else {
	     return false;
	  }
	}