
function writeTopNav() {
	document.write('<!-- global nav -->');
	
	document.write('<table width="407" border="0" cellpadding="0" cellspacing="0" style="width:100%; position:absolute; right:10px; top:0px; z-index:99;">');
	document.write('<tr><td height="25" align="right" nowrap="nowrap" class="topnav"><a href="http://www.globalsources.com/" name="top"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/HOMEICON.GIF" width="119" height="13" align="absbottom" alt="Manufacturers & Suppliers - Globalsources.com" title="Manufacturers & Suppliers - Globalsources.com" border=0></a> | ');
	document.write('<span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Suppliers:&nbsp; </strong></span>');
	document.write('<a href="https://www.sellproducts.globalsources.com/RegisterSYP.jsp?Reg_path=eGSOLGlobalNav&source=eGSOLGlobalNav" class="topnav">Register</a> | ');
	document.write('<span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Buyers:&nbsp; </strong></span> ');
	document.write('<a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterGSOLUser&userTemplate=GSOLUSERMAG" class="topnav">Register</a>&nbsp;<font size="2">&#8226;</font>&nbsp;');
	document.write('<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=LoginFromReferer" class="topnav">Login</a>&nbsp;<font size="2">&#8226;</font>&nbsp;');
	document.write('<a href="https://login.globalsources.com/sso/GeneralManager?action=UpdateProfile&ruleset=GSOLUSER&validate=false" class="topnav">User Profile</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/CART.GIF" width="15" height="11" align="absbottom" alt="Inquiry Basket Shopping Cart"> <a href="http://www.globalsources.com/gsol/GeneralManager?action=ReMap&where=GoInquiryBasket" class="topnav">Inquiry Basket</a>');
	document.write('<!--  | &nbsp;<font size="2">&#8226;</font>&nbsp;<a href="http://www.psc.globalsources.com/?source=eGSOLGlobalNav" class="topnav">Login</a>-->');
	document.write('</td></tr>');
	document.write('</table>');
	
	// GEO Targetted.
	//document.write('<table width="407" border="0" cellpadding="0" cellspacing="0">);
	//document.write('<tr><td height="25" align="right" nowrap="nowrap" class="topnav"><a href="http://www.globalsources.com/" name="top"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/HOMEICON.GIF" width="119" height="13" align="absbottom" alt="Manufacturers & Suppliers - Globalsources.com" title="Manufacturers & Suppliers - Globalsources.com" border=0></a>&nbsp;<span id="ABC"></span>);
	//document.write('</td></tr>);
	//document.write('</table>);
	//getURL2('/GeneralManager?page=geoipCheck&type=China');
	// GEO Targetted.
	
	document.write('<!-- /global nav -->');
}

function displayPopup2(xml){
if(xml!=null){
result=null;
if(window.ActiveXObject){
result=xml.getElementsByTagName("ipInChina")[0].text;
}else{
if(window.XMLHttpRequest){
result=xml.getElementsByTagName("ipInChina")[0].textContent;
}
}
	if(result!=null&&result=="yes")
	{insertCn();} 
	else
	{insertEn();} 

}
}
function requestHandler2(){
if(client.readyState==4&&client.status==200){
if(client.responseText!=null){
displayPopup2(client.responseXML);
}else{
displayPopup2(null);
}
}else{
if(client.readyState==4&&client.status!=200){
displayPopup2(null);
}
}
}
var client=null;
function getURL2(url){
if(window.ActiveXObject){
client=new ActiveXObject("Microsoft.XMLHTTP");
}else{
if(window.XMLHttpRequest){
client=new XMLHttpRequest();
}
}
client.onreadystatechange=requestHandler2;
client.open("GET",url,true);
client.send(null);
}
function insertCn(){
var str='| <span style="font-family:Arial, sans-serif; font-size:12px; color: rgb(153, 0, 0);"><strong>&#20379;&#24212;&#21830;:&nbsp;</strong></span><a href="https://cn.sellproducts.globalsources.com/RegisterSYP.jsp?Reg_path=eGSOLGlobalNav&source=eGSOLGlobalNav" class="topnav" style="font-size:12px;">&#27880;&#20876;</a> | <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Buyers:&nbsp; </strong></span><a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterGSOLUser&userTemplate=GSOLUSERMAG" class="topnav">Register</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=LoginFromReferer" class="topnav">Login</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="https://login.globalsources.com/sso/GeneralManager?action=UpdateProfile&ruleset=GSOLUSER&validate=false" class="topnav">User Profile</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/CART.GIF" width="15" height="11" align="absbottom" alt="Inquiry Basket Shopping Cart"> <a href="http://www.globalsources.com/gsol/GeneralManager?action=ReMap&where=GoInquiryBasket" class="topnav">Inquiry Basket</a>';
ABC.innerHTML=str;
}

function insertEn(){
var str='| <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Suppliers:&nbsp; </strong></span><a href="https://www.sellproducts.globalsources.com/RegisterSYP.jsp?Reg_path=eGSOLGlobalNav&source=eGSOLGlobalNav" class="topnav">Register</a> | <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Buyers:&nbsp; </strong></span><a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterGSOLUser&userTemplate=GSOLUSERMAG" class="topnav">Register</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=LoginFromReferer" class="topnav">Login</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="https://login.globalsources.com/sso/GeneralManager?action=UpdateProfile&ruleset=GSOLUSER&validate=false" class="topnav">User Profile</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/CART.GIF" width="15" height="11" align="absbottom" alt="Inquiry Basket Shopping Cart"> <a href="http://www.globalsources.com/gsol/GeneralManager?action=ReMap&where=GoInquiryBasket" class="topnav">Inquiry Basket</a>';
ABC.innerHTML=str;
}



