﻿leftNavFire = function(){
	if (pageID == 'newsroom') {document.getElementById('newsroom').style.fontWeight='bold';} 	
	if (pageID == 'procurveinthenews') {document.getElementById('procurveinthenews').style.fontWeight='bold';} 	
	if (pageID == 'mq') {document.getElementById('mq').style.fontWeight='bold';} 	
	if (pageID == 'pressreleases') {document.getElementById('pressreleases').style.fontWeight='bold';} 	
	if (pageID == 'archive') {document.getElementById('archive').style.fontWeight='bold';}
};

/* ########### Sub-sub navigation for security ############ */
var pressreleasesSecondary = false;
var pressreleasesSecondaryContent = '<ul class="linksUnit">';
pressreleasesSecondaryContent += '		<li>&raquo;<a id="archive" href="/news/press-releases/archive.aspx">Archive</a></li>';
pressreleasesSecondaryContent += '	</ul>';

if ((pageID == 'pressreleases') || (pageID == 'archive')) { 
	pressreleasesSecondary = true; 
	} else {
	pressreleasesSecondary = false 
	}; 

document.write('<style type="text/css">');
document.write('/* layout overrides */');
document.write('div#sectionalNavLinks { padding-bottom:7px !important; }');
document.write('h3.sectionalNavSubHeader + ul.linksUnit { margin-top:7px !important; }');
document.write('</style>');
document.write('	<div id="sectionalNav">');
document.write('		<div id="sectionalNavLinks">');
document.write('			<h2 id="sectionalNavHeader">&raquo;<a id="newsroom" href="/other/procurve/cn/zh/network/index.htm">HP Networking</a></h2>');
document.write('                <ul class="linksUnit">');
document.write('                    <li>&raquo;<a id="#2" href="http://welcome.hp.com/country/us/en/prodserv/networking_products_services.html?pageTab=1">产品</a></li>  ');
document.write('                    <li>&raquo;<a id="#1" href="http://welcome.hp.com/country/us/en/prodserv/networking_products_services.html?pageTab=2">服务</a>');
document.write('                    </li>');
document.write('                    <li>&raquo;<a id="#3" href="http://welcome.hp.com/country/us/en/prodserv/networking_products_services.html?pageTab=3">支持</a></li>');
document.write('                </ul>');

document.write('		</div>');

document.write('    <div style="height:20px;">&nbsp;</div>  ');  
document.write('	<div align="center"><a href="http://my.procurve.com/partnerlocator/partnerlocator.aspx"><img src="/other/procurve/cn/zh/network/images/left_support_1.gif" width="148" height="110"></a></div>');

document.write('    <div style="height:20px;">&nbsp;</div>  ');  
document.write('  <div align="center">');


	gID = function(e){return document.getElementById(e);}
	chkURL = function(str){return document.URL.indexOf(str);}
	if((chkURL('com.au') != -1)||(chkURL('com.sg') != -1)){
		if(chkURL('com.au') != -1) { gID('partnerURL').href = 'http://h20465.www2.hp.com/GPL/Search.aspx?Country_code=au&language_code=en'; }
		if(chkURL('com.sg') != -1) { gID('partnerURL').href = 'http://h20465.www2.hp.com/GPL/Search.aspx?Country_code=sg&language_code=en'; }
	}


function RandomAdRotator() {
                    numberOfAds = 5;
                    var x = Math.round((Math.random() * numberOfAds) % numberOfAds);
					
					if ( x==0 ) {
                        document.write("<a href='https://h30406.www3.hp.com/campaigns/2009/promo/1-7MVWT/index.php?mcc=EWTF&jumpid=ex_r2548_promo/link/kimtsg/4Q09IDCWhitepaperDG/1-7MVWT/Default_mcc|EWTF' onclick=\"s_sendCustomLinkEvent('','IDC White paper | mq')\" onkeypress=\"s_sendCustomLinkEvent('','IDC White paper | mq')\"><img src='/other/procurve/cn/zh/network/images/idc_whitepaper.jpg' alt='了解转变后以太网解决方案的投资回报能力' width='148' height='110' border='0'></a>"); 
                    }
					if ( x==1 ) {
                        document.write("<a href='http://www.procurve.com/gartner/gartner2009.htm' onclick=\"s_sendCustomLinkEvent('','148x110banner | mq')\" onkeypress=\"s_sendCustomLinkEvent('','148x110banner | mq')\" ><img src='/other/procurve/cn/zh/network/images/mq_banner.gif' alt='Magic Quadrant for Enterprise LAN (Global)' width='148' height='110' border='0'></a>"); 
                    }
                    if ( x==2 ) {
                        document.write("<a href='http://twitter.com/procurve' onclick=\"s_sendCustomLinkEvent('','148x110banner | twitter')\" onkeypress=\"s_sendCustomLinkEvent('','148x110banner | twitter')\" ><img src='/other/procurve/cn/zh/network/images/left_support_2.gif' width=148 height='110' alt='与我们一起舞动' border='0'></a>"); 
                    }
					if ( x==3 ) {
                        document.write("<a href='http://www.facebook.com/pages/HP-ProCurve-Networking/55051266598' target='_blank' onclick=\"s_sendCustomLinkEvent('','148x110banner | facebook')\" onkeypress=\"s_sendCustomLinkEvent('','148x110banner | facebook')\"><img src='/other/procurve/cn/zh/network/images/fb_option3.gif' alt='从Facebook上查找我们' width='148' height='110' border='0'></a>"); 
                    }
					if ( x==4 ) {
                        document.write("<a href=http://h71028.www7.hp.com/enterprise/us/en/messaging/feature-ent-innovationeconomy.html' target='_blank' onclick=\"s_sendCustomLinkEvent('','148x110banner | facebook')\" onkeypress=\"s_sendCustomLinkEvent('','148x110banner | facebook')\"><img src='/other/procurve/cn/zh/network/images/innovateArticle.jpg' alt='经济萧条带来创新良机' width='148' height='110' border='0'></a>"); 
                    }
					
                }

				chkURL = function(str){return document.URL.indexOf(str);}
				if((chkURL('com.au') == -1)&&(chkURL('com.sg') == -1)){
					RandomAdRotator();
				}

document.write('	</div>');


document.write('	</div>');
