 
var absPath = 'http://tradeshow.globalsources.com';
var x; var menuListCount; var menuCount = 0;

var menu = new Array();
menu[0] = new Array();
menu[0][0]='<tr valign=top><td width=100%><table width=100% cellspacing=1 cellpadding=0 border=0>';
menu[1] = new Array();
menu[1][0]='<tr valign=top><td width=100%><table width=100% cellspacing=1 cellpadding=0 border=0>';
menu[2] = new Array();
menu[2][0]='<tr valign=top><td width=100%><table width=100% cellspacing=1 cellpadding=0 border=0>';
menu[3] = new Array();
menu[3][0]='<tr valign=top><td width=100%><table width=100% cellspacing=1 cellpadding=0 border=0>';
menu[4] = new Array();
menu[4][0]='<tr valign=top><td width=100%><table width=100% cellspacing=1 cellpadding=0 border=0>';

// Sample Data Input : ShowNav( "CSF", "CSFEC", "INDIA", "", "5749" , "SHOWN1", "HONGKONG-ELECTRONICS")
function ShowNav( type, show, country, lang, tsid, page, dir ) {
	
	if(show.match("CSF") || show.match("ISF") || show.match("KSF") || show.match("GSF")) { show = show.slice(3); }
	if(page != null && page != "") { page = "_"+page; } else { page = ""; }
	
	// If you need to shift one link from one menu to another, just copy and move it to another menu list. No need to change anything.
	// If you need a new link, just add it here and create the module in the nav-modules.js
	// If a new show or country is needed, just add it below the function Gen_Dir or Gen_Cty
	
	// Base on CSF Revamp Project high level requirement Information Architecture listing
	
	// menu1 Start
	menuListCount = 0;
	
	// Note : For show news and show preview, it is call in a same set.
	Home(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ShowPreview(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ExhibitorList(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	MyPreferredExhibitors(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	FloorPlans(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	OnlineSourcingFair(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	PhotoGallery(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	Organizer(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	PressRelease(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	MediaInquiries(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ContactUs(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	
	menuCount++;
	// menu1 End
	
	// menu2 Start
	menuListCount = 0;
	
	WhoShouldVisit(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	VisitorRegistration(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	Conferences(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	Attractions(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	TravelInformation(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	HotelBooking(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	GettingToCSF(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	OnSite(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	VisitorsInquiries(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	
	menuCount++;
	// menu2 End
	
	// menu3 Start
	menuListCount = 0;
	
	WhoShouldExhibit(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	Conferences(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ValueAddedServices(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ShowReports(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	CharityProgram(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	BestofShow(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ImportantReminder(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	ExhibitorInquiries(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	
	menuCount++;
	// menu3 End
	
	// menu4 Start
	menuListCount = 0;
	
	OurOtherTradeshows(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	
	menuCount++;
	// menu4 End
	
	// menu5 Start
	menuListCount = 0;
	
	OtherSourcingTools(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	
	menuCount++;
	// menu5 End
	
	/* Unused modules
	ProductCategories(type, Gen_Cty(country), show, Gen_Dir(type, country, show, dir), lang, tsid, page); menuListCount++;
	*/
	
	// Nav GUI Output
	var navtxt = new Array();
	if(lang=="ENG") { navtxt = ["About the Show","Visitor Services","Exhibitor Services","Our Other Tradeshows","Other Sourcing Tools"]; }
	if(lang=="GB") { navtxt = ["交易会概览","参观客商服务","参展商服务","其它采购交易会","其它采购渠道"]; }
	if(lang=="BIG5") { navtxt = ["交易會概覽","參觀客商服務","參展商服務","其他採購交易會","其他採購渠道"]; }
	
	if(lang=="ENG") { document.write('<table width=100% border=0 cellspacing=0 cellpadding=0 class=smalltxt>'); }
	else { document.write('<table width=100% border=0 cellspacing=0 cellpadding=0 class=content>'); }
	document.write('<tr>');
		document.write('<td align=center class=Gnav_Left><a href="http://www.globalsources.com" class=cur><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=27 width=27 border=0></a></td>');
		document.write('<!-- Top Vertical Nav -->');
		document.write('<td align=center class=Gnav_BG width=20% onClick="dropdownmenu(this, event, menu[0], \'190px\');setMouseVals(true, false);" onMouseOver="dropdownmenu(this, event, menu[0], \'190px\');setMouseVals(true, false);" onMouseOut="delayhidemenu();setMouseVals(false, true);"><a href="#" class=link>'+navtxt[0]+'&nbsp;&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/IMAGES/DOWN_POINTER.GIF" border=0></a></td>');
		document.write('<td align=center class=Gnav_Splitter><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=1 width=1></td>');
		document.write('<td align=center class=Gnav_BG width=20% onClick="dropdownmenu(this, event, menu[1], \'190px\');setMouseVals(true, false);" onMouseOver="dropdownmenu(this, event, menu[1], \'190px\');setMouseVals(true, false);" onMouseOut="delayhidemenu();setMouseVals(false, true);"><a href="#" class=link>'+navtxt[1]+'&nbsp;&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/IMAGES/DOWN_POINTER.GIF" border=0></a></td>');
		document.write('<td align=center class=Gnav_Splitter><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=1 width=1></td>');
		document.write('<td align=center class=Gnav_BG width=20% onClick="dropdownmenu(this, event, menu[2], \'190px\');setMouseVals(true, false);" onMouseOver="dropdownmenu(this, event, menu[2], \'190px\');setMouseVals(true, false);" onMouseOut="delayhidemenu();setMouseVals(false, true);"><a href="#" class=link>'+navtxt[2]+'&nbsp;&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/IMAGES/DOWN_POINTER.GIF" border=0></a></td>');
		document.write('<td align=center class=Gnav_Splitter><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=1 width=1></td>');
		document.write('<td align=center class=Gnav_BG width=20% onClick="dropdownmenu(this, event, menu[3], \'390px\');setMouseVals(true, false);" onMouseOver="dropdownmenu(this, event, menu[3], \'390px\');setMouseVals(true, false);" onMouseOut="delayhidemenu();setMouseVals(false, true);"><a href="#" class=link>'+navtxt[3]+'&nbsp;&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/IMAGES/DOWN_POINTER.GIF" border=0></a></td>');
		document.write('<td align=center class=Gnav_Splitter><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=1 width=1></td>');
		document.write('<td align=center class=Gnav_BG width=20% onClick="dropdownmenu(this, event, menu[4], \'197px\');setMouseVals(true, false);" onMouseOver="dropdownmenu(this, event, menu[4], \'197px\');setMouseVals(true, false);" onMouseOut="delayhidemenu();setMouseVals(false, true);"><a href="#" class=link>'+navtxt[4]+'&nbsp;&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/IMAGES/DOWN_POINTER.GIF" border=0></a></td>');
		document.write('<!-- Top Vertical Nav -->');
		document.write('<td align=center class=Gnav_Right><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/BLANK.GIF" height=1 width=10></td>');
	document.write('</tr>');
	document.write('</table>');
}

function Gen_Cty(country) {
	var cty = "";
	
	if(country=="HK") { cty = "HK"; }
	if(country=="AE") { cty = "DB"; }
	if(country=="IN") { cty = "INDIA"; }
	if(country=="CN") { cty = "SH"; }
	if(country=="ZA") { cty = "SA"; }
	if(country=="US") { cty = "US"; }
	if(country=="BR") { cty = "BR"; }
	if(country=="SH") { cty = "SH"; }
	
	return cty;
}

function Gen_Dir(type, country, show, dir) {
	var directory = "";
	
	if(dir!=null){
		dir = dir.replace("GB-","");
		dir = dir.replace("BIG5-","");
		directory = dir;
	}
	else {
		// HongKong
		if(type=="CSF" && country=="HK" && show=="EC") { directory = "HONGKONG-ELECTRONICS"; }
		if(type=="CSF" && country=="HK" && show=="SP") { directory = "HONGKONG-SECURITY-PRODUCTS"; }
		if(type=="CSF" && country=="HK" && show=="SESP") { directory = "HONGKONG-SOLARENERGY-SAVING-PRODUCTS"; }
		if(type=="KSF" && country=="HK" && show=="EC") { directory = "HONGKONG-KOREA-SOURCING-ELECTRONICS"; }
		
		if(type=="CSF" && country=="HK" && show=="BCP") { directory = "HONGKONG-BABY-CHILDREN-PRODUCTS"; }
		if(type=="CSF" && country=="HK" && show=="GP") { directory = "HONGKONG-GIFTSPREMIUMS"; }
		if(type=="CSF" && country=="HK" && show=="HP") { directory = "HONGKONG-HOME-PRODUCTS"; }
		if(type=="CSF" && country=="HK" && show=="MHP") { directory = "HONGKONG-MEDICAL-HEALTH-PRODUCTS"; }
		if(type=="CSF" && country=="HK" && show=="CSP") { directory = "HONGKONG-CHRISTMAS-SEASONAL-PRODUCTS"; }
		if(type=="ISF" && country=="HK" && show=="HP") { directory = "HONGKONG-INDIA-SOURCING-FAIR-HOMEPRODUCTS"; }
		if(type=="KSF" && country=="HK" && show=="GP") { directory = "HONGKONG-KOREA-SOURCING-GIFTSPREMIUMS"; }
		
		if(type=="CSF" && country=="HK" && show=="FA") { directory = "HONGKONG-FASHION"; }
		if(type=="CSF" && country=="HK" && show=="US") { directory = "HONGKONG-UNDERWEAR-SWIMWEAR"; }
		if(type=="CSF" && country=="HK" && show=="GAT") { directory = "HONGKONG-GARMENTS-TEXTILE"; }
		if(type=="ISF" && country=="HK" && show=="GA") { directory = "HONGKONG-INDIA-SOURCING-FAIR-GARMENTS-ACCESSORIES"; }
		
		// BRAZIL
		if(type=="CSF" && country=="BR" && show=="HBM") { directory = "BRAZIL-HARDWARE-BUILDING-MATERIALS"; }
		if(type=="CSF" && country=="BR" && show=="GP") { directory = "BRAZIL-GIFTS-PREMIUMS"; }
		if(type=="CSF" && country=="BR" && show=="ELEC") { directory = "BRAZIL-ELECTRONICS"; }
		if(type=="CSF" && country=="BR" && show=="GAT") { directory = "BRAZIL-GARMENTS-TEXTILES"; }
		
		// SHANGHAI
		if(type=="GSF" && country=="SH" && show=="EC") { directory = "CHINA-ELECTRONICS"; }
		
	}
	
	return directory;
}



// Do not touch anything below this. L1 L2 Scripts
var disappearDelay=250;
var menuWidth="300px";
var menuBGColor="#FFFFFF";
var onClickHideMenu="yes";
var displayDelay=0;
var usingIE=document.all;
var usingNS=document.getElementById&&!document.all;
var mouseIsOver=false;
var mouseIsOut=false;
if(usingIE||usingNS){
document.write("<div id=\"dropmenudiv\" style=\"visibility:hidden;width:"+menuWidth+";background-color:"+menuBGColor+"\" onMouseover=\"clearhidemenu()\" onMouseout=\"dynamichide(event)\"></div>");
}
function reloadForVerticals(){
window.location.reload(false);
}
function setMouseVals(_1,_2){
mouseIsOver=_1;
mouseIsOut=_2;
}
function makeObjVis(_3,_4){
if(_4=="visible"){
if(mouseIsOver){
_3.visibility=_4;
makeAllOverlaps("hidden");
}
}else{
makeAllOverlaps("visible");
}
}
function makeAllOverlaps(_5){
var _6=document.getElementsByTagName("object");
var _7=document.getElementsByTagName("embed");
for(var t=0;t<_7.length;t++){
_7[t].style.visibility=_5;
}
for(var t=0;t<_6.length;t++){
_6[t].style.visibility=_5;
}
if(usingIE){
var _9=document.getElementsByTagName("select");
for(var t=0;t<_9.length;t++){
_9[t].style.visibility=_5;
}
}
}
function getposOffset(_a,_b){
var _c=(_b=="left")?_a.offsetLeft:_a.offsetTop;
var _d=_a.offsetParent;
while(_d!=null){
_c=(_b=="left")?_c+_d.offsetLeft:_c+_d.offsetTop;
_d=_d.offsetParent;
}
return _c;
}
function showhide(_e,e,_10,_11,_12){
if(usingIE||usingNS){
dropmenuobj.style.left=dropmenuobj.style.top="-500px";
}
if(_12!=""){
dropmenuobj.widthobj=dropmenuobj.style;
dropmenuobj.widthobj.width=_12;
}
if(e.type=="click"&&_e.visibility==_11||e.type=="mouseover"){
var _13=this;
setTimeout(function(){
_13.makeObjVis(_e,"visible");
},displayDelay);
}else{
if(e.type=="click"){
makeObjVis(_e,"hidden");
}
}
}
function iecompattest(){
return (document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
}
function clearbrowseredge(obj,_15){
var _16=0;
if(_15=="rightedge"){
var _17=usingIE&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-5:window.pageXOffset+window.innerWidth-5;
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;
if(_17-dropmenuobj.x<dropmenuobj.contentmeasure){
_16=dropmenuobj.contentmeasure-obj.offsetWidth;
}
}else{
var _18=usingIE&&!window.opera?iecompattest().scrollTop:window.pageYOffset;
var _17=usingIE&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-5:window.pageYOffset+window.innerHeight-5;
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;
if(_17-dropmenuobj.y<dropmenuobj.contentmeasure){
_16=dropmenuobj.contentmeasure+obj.offsetHeight;
if((dropmenuobj.y-_18)<dropmenuobj.contentmeasure){
_16=dropmenuobj.y+obj.offsetHeight-_18;
}
}
}
return _16;
}
function populatemenu(_19){
if(usingIE||usingNS){
dropmenuobj.innerHTML="<table border=0 cellspacing=0 cellpadding=2 width=\"100%\">"+_19.join("")+"</table>";
}
}
function dropdownmenu(obj,e,_1c,_1d){
if(window.event){
event.cancelBubble=true;
}else{
if(e.stopPropagation){
e.stopPropagation();
}
}
clearhidemenu();
dropmenuobj=document.getElementById?document.getElementById("dropmenudiv"):dropmenudiv;
populatemenu(_1c);
if(usingIE||usingNS){
showhide(dropmenuobj.style,e,"visible","hidden",_1d);
dropmenuobj.x=getposOffset(obj,"left");
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();
}
function clickreturnvalue(){
if(usingIE||usingNS){
return false;
}else{
return true;
}
}
function contains_usingNS(a,b){
while(b.parentNode){
if((b=b.parentNode)==a){
return true;
}
}
return false;
}
function dynamichide(e){
if(usingIE&&!dropmenuobj.contains(e.toElement)){
delayhidemenu();
}else{
if(usingNS&&e.currentTarget!=e.relatedTarget&&!contains_usingNS(e.currentTarget,e.relatedTarget)){
delayhidemenu();
}
}
}
function hidemenu(e){
if(typeof dropmenuobj!="undefined"){
if(usingIE||usingNS){
dropmenuobj.style.visibility="hidden";
makeAllOverlaps("visible");
}
}
}
function delayhidemenu(){
if(usingIE||usingNS){
delayhide=setTimeout("hidemenu()",disappearDelay);
}
}
function clearhidemenu(){
if(typeof delayhide!="undefined"){
clearTimeout(delayhide);
}
}
if(onClickHideMenu=="yes"){
document.onclick=hidemenu;
}

