//Right Column for HONGKONG-FASHION Static pages

//Google Translater
// Take Note: Google Translater cannot be in a function else in IE it will be at the bottom of the column.
// Take Note: Do not change the div layout as it will effect alot of things.
var showGoggle = "Y";
function getVersionIE() {
	var strUserAgent=new String(navigator.userAgent);
	var arrUA=strUserAgent.split("MSIE ");
	versionIE=parseFloat(arrUA[1]);
	if (versionIE<=6){ showGoggle = "N"; }
}  
getVersionIE();

var URL = document.URL;
if( showGoggle == "Y" && ( URL.match("VISITOR.HTM") || URL.match("SHOWN1.HTM") ) ) {
	document.write('<div style="width:145px; position:relative; left:-15px;">');
	document.write('<script LANGUAGE="JavaScript" src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>');
	document.write('</div>');
}
//End Google Translater

function opencsfvideoBySize(linkhere,hgt,wdt) {
 msg=open(linkhere,"DisplayWindow","HEIGHT="+ hgt +",WIDTH="+ wdt +",status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=no,top=40,left=50,resizable=no");
}

document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/TRADESHOW/JS/pop_reuse.js' TYPE='text/javascript'><\/SCRIPT>");

var akamaiImgs = 'http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com';
var akamaiBlank = 'http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/0.GIF';	
var tscImgs = '/TRADESHOW/IMAGES/';
var akamaiTNW = 'http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/T';

function writeVideo_buyer() {
	document.write('<div class=box2>');
	document.write('	<span class=darkbluCol><b>On Video</b></span><div class=ht10></div>');
	document.write('	<img SRC="'+akamaiImgs+'/TRADESHOW/IMAGES/FA-VIDEOVISITOR.JPG" WIDTH=102 HEIGHT=72 border=1><div class=ht5></div>');
	document.write('	<div class=srch><a href="javascript:opencsfvideoBySize(\'/TRADESHOW/HONGKONG-FASHION/VIDEO-VISITOR.HTM\',\'570\',\'450\')" class=defblucol>View our helpful<br>Fair video</a><!-- &nbsp;<span class=redastrk>New!</span> --></div>');
	document.write('</div>');
	document.write('<div class=ht15></div><div class=navlyn></div>');
}

function writeVideo_supplier() {
	document.write('<div class=box2>');
	document.write('	<span class=darkbluCol><b>On Video</b></span><div class=ht10></div>');
	document.write('	<img SRC="'+akamaiImgs+'/TRADESHOW/IMAGES/CSFECVIDEOPIC.JPG" WIDTH=102 HEIGHT=72 border=0><div class=ht5></div>');
	document.write('	<div class=srch>Find out how you can benefit from exhibiting at the Fair.<br><div class=ht4></div><a href="javascript:opencsfvideoBySize(\'/TRADESHOW/HONGKONG-FASHION/VIDEO-EXHIBITOR.HTM\',\'570\',\'450\')" class=defblucol>See the video now!</a></div>');
	document.write('</div>');
	document.write('<div class=ht15></div><div class=navlyn></div>');
}

function writeVideo_showreview() {
	document.write('<div class=box2>');
	document.write('	<span class=darkbluCol><b>On Video</b></span><div class=ht10></div>');
	document.write('	<img SRC="'+akamaiImgs+'/TRADESHOW/IMAGES/VIDEOPOPUP.JPG" WIDTH=102 HEIGHT=72 border=0><div class=ht5></div>');
	document.write('	<div class=srch><a href="javascript:opencsfvideoBySize(\'/TRADESHOW/HONGKONG-FASHION/VIDEO-VISITOR.HTM\',\'570\',\'450\')" class=defblucol>View our helpful<br>Fair video</a> <!-- <span class=redastrk>New!</span> --></div>');
	document.write('</div>');
	document.write('<div class=ht15></div><div class=navlyn></div>');
}

function writeRightColStatic(trackcode) {
	document.write('<div class=ht5></div>');
	document.write('<div class=rhtab style="width:145px;"><ul><li><a><span><b>&nbsp;&nbsp;More Information</b></span></a></li></ul></div>');
	document.write('<div id=rhtcol>');
	
	if ((trackcode == 'TSCHKCSFFA_rightcol_BOOTHOPTIONS') ||
	(trackcode == 'TSCHKCSFFA_rightcol_SHOWREPORT') ||
	(trackcode == 'TSCHKCSFFA_rightcol_EXHIBITOR-NEWSLETTER') ||
	(trackcode == 'TSCHKCSFFA_rightcol_CHARITY') ||
	(trackcode == 'TSCHKCSFFA_rightcol_EXHIBITORS') ||
	(trackcode == 'TSCHKCSFFA_rightcol_EXHIBITOR-INQUIRY') ||
	(trackcode == 'TSCHKCSFFA_rightcol_SPONSORSHIP') ||	
	(trackcode == 'TSCHKCSFFA_rightcol_BESTSHOW'))			
	{ 
		//writeVideo_supplier();
	}
	else { 
		
		document.write('<div class=box2>');
		document.write('	<span class=darkbluCol><b>Plan your sourcing trip now!</b></span><div class=ht10></div>');
		document.write('	<table width=125 cellpadding=0 cellspacing=0 border=0>');
		document.write('	<tr><td width=12></td><td></td></tr>');
		document.write('	<tr><td valign=top class=srch>1.</td><td valign=top class=srch><a href="/trdshw/gsol/pex/en/bondat/jsp/common/visreg.jsp?tsid=2808800005871&source='+trackcode+'" class=cur><div class=regbtn></div></a>for free admission to the Fair!</td></tr>');
		document.write('	<tr><td valign=top class=srch>2.</td><td valign=top class=srch><a href="http://travel.globalsources.com/" class=defblucol>Book your hotel</a> at discounted rates. Save more - <a href="http://travel.globalsources.com/" class=defblucol>flights + hotel</a></td></tr>');
		//document.write('	<tr><td valign=top class=srch>3.</td><td valign=top class=srch>Enjoy special deals on <a href="http://www.mehongkong.com/promotions/phase2/businessrighthere/eng/html/front/index.html" target=externalWin class=defblucol>Airfares, Shopping, Dining, Hospitality</a> and more</td></tr>');
		document.write('	<tr><td valign=top class=srch>3.</td><td valign=top class=srch><a href="/TRADESHOW/HONGKONG-FASHION/TRAVELINFO-GETTING-TO-CSF.HTM" class=defblucol>How to get to the Fair</a></td></tr>');
		document.write('	<tr><td valign=top class=srch>4.</td><td valign=top class=srch><a href="/TRADESHOW/HONGKONG-FASHION/TRAVELINFO-HKVISA.HTM" class=defblucol>Hong Kong Visa</a></td></tr>');
		document.write('	</table>');
		document.write('</div>');
		document.write('<div class=ht15></div><div class=navlyn></div>');
		
		if (trackcode == 'TSCHKCSFFA_rightcol_SHOWREVIEW')
		{
			//writeVideo_showreview();
		}
		else {
			writeVideo_buyer();
		}
		
		getSourcingFairs('HONGKONG-FASHION','S');
		
		/*document.write('<div class=ht5></div>');
		document.write('<div class=box2 align=center>');
		document.write('	<a href="http://www.globalsources.com/SITE/TRAVEL/HONGKONG.HTM?source=CSFRightColumn_GSTravel"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/ST/BANNERS/CSFHK-TRAVEL.GIF" border=0></a>');
		document.write('</div>');	
		document.write('<div class=ht15></div><div class=navlyn></div>'); */		
		
		document.write('<div class=box2>');
		document.write('	<span class=darkbluCol><a href="http://travel1.globalsources.com/hotel/deals/10025518/103/hong_kong_hotels.html" target=externalwin><b>Top Hong Kong Hotel Deals</a></b></span><div class=ht10></div>');		
		document.write('	<span class=srch>Book your accommodation with <a href="http://travel.globalsources.com">Global Sources Travel</a>: Best rates 110% guaranteed.</span>');			
		document.write('	<a href="http://travel1.globalsources.com/hotel/deals/10025518/103/hong_kong_hotels.html" target=externalwin><img SRC="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/CSFHK-BOAT.JPG" BORDER=0 WIDTH=125 HEIGHT=97></a>');
		document.write('</div>');	
		document.write('<div class=ht15></div><div class=navlyn></div>');								
				

		document.write('<div class=box2>');
		document.write('	<span class=darkbluCol><b><a href="http://www.globalsources.com/SITE/PBM.HTM?source=PBMTSC1">Private Buyer Meetings</a></b></span><div class=ht10></div>');		
		document.write('	<span class=srch>Get more from the China Sourcing Fairs with pre-arranged supplier meetings.</span>');			
		document.write('	<a href="http://www.globalsources.com/SITE/PBM.HTM?source=PBMTSC1"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/ST/BANNERS/CSFHK-VENDOR-SUMMITS.JPG" border=0></a>');
		document.write('</div>');	
		document.write('<div class=ht15></div><div class=navlyn></div>');			
		
	}
	
	getContactUs('S');
	
	if ((trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO') ||
	(trackcode == 'TSCHKCSFFA_rightcol_HONGKONGMAP') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO-GETTING-TO-CSF') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVASIAHOTL') ||
	//(trackcode == 'TSCHKCSFFA_rightcol_HOTELS-OFFICIAL') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO-USEFULINFO') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO-HKVISA') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO-AIRLINES'))
	{
		/*document.write('<div class=ht15></div><div class=navlyn></div>');
		document.write('<div class=box2>');
		document.write('	<a href="http://www.globalsources.com/TRADESHOW/BTS/GP-INTRODUCTION.HTM?source=BTSBanner" target=externalWin><img src="/TRADESHOW/IMAGES/BTSASIA-BANNER.JPG" alt="BTS Asia" title="BTS Asia" border=0></a>');
		document.write('</div>');*/
	}
	/*else {
		
	}*/
	
	if ((trackcode == 'TSCHKCSFFA_rightcol_SHOWN1') ||
	(trackcode == 'TSCHKCSFFA_rightcol_TRAVELINFO') ||
	(trackcode == 'TSCHKCSFFA_rightcol_VISITOR') ||
	(trackcode == 'TSCHKCSFFA_rightcol_EXHIBITORS'))
	{
		/*document.write('<div class=ht15></div><div class=navlyn></div>');
		document.write('<div class=box2>');
		document.write('	<a href="http://www.mehongkong.com/promotions/phase2/businessrighthere/eng/" target=externalWin><img src="/TRADESHOW/IMAGES/BRH-BANNER-EN-OCT09.GIF" border=0></a>');
		document.write('	<div class=ht5></div>');
		document.write('	<div class=srch>There\'s never been a better time than now to do business in Hong Kong. <a href="/trdshw/gsol/pex/en/bondat/jsp/common/visreg.jsp?tsid=2808800005871&source='+trackcode+'">Register now</a> to attend the Fair and enjoy an array of exclusive and attractive privileges including Airfares, Transportation, Shopping, Dining and more.</div>');
		document.write('</div>'); */
		/*document.write('<div class=ht20></div>');*/
	}
	
	document.write('<div class=ht20></div>');
	
	//toggleDisplay();
	
	document.write('</div>');
}

//END function writeRightColStatic()

function writeKeySrch(tradeshowNum) {
	document.write('		<div id="nav-line"></div>');
	//keyword search
	document.writeln('<form method="post" action="http://tradeshow.globalsources.com/trdshw/GeneralManager?action=ShortCut&module=Search&tsid=280'+tradeshowNum+'" name="SearchBean" onSubmit="submitSearch(); return false;">');
	document.writeln('<input type="hidden" name="entity_type" value="">');
	document.writeln('<input type="hidden" name="type" value="">');
	document.writeln('<input type="Hidden" name="name" value="SearchBean">');
	document.writeln('<input type="hidden" name="search_type" value="new">');
	document.writeln('<input type=hidden name="product_search" value="off">');
	document.writeln('<input type=hidden name="supplier_search" value="off">');
	document.writeln('<input type="hidden" name="exhibitor_search" value="off">');
	document.writeln('<input type=hidden name="new" value="true">');
	document.writeln('		<table border="0" cellspacing="1" cellpadding="0" width="136">');
	document.writeln('		<tr><td bgcolor="#ffffff" align=center>');
	document.writeln('			<table border="0" cellspacing="0" cellpadding="0">');
	document.writeln('			<tr><td bgcolor="#ffffff"><font class="regtxt"><font color="#000066"><b>Keyword Search</b></font></font><div id="height5"></div>');
	document.writeln('			<img src="'+akamaiBlank+'" width=1 height=10 border="0"><br><font class=srch>Enter Keywords:</font><br>');
	document.writeln('			<img src="'+akamaiBlank+'" width=1 height=1 border="0"><br>');
	document.writeln('			<input type="text" name="query" size="15" style="width: 120px;">');
	document.writeln('			</td></tr>');
	document.writeln('			<tr><td bgcolor="#ffffff" align=left class=srch><input type=radio name="search_what" value="0" checked>&nbsp;Products</td></tr>');
	document.writeln('			<tr><td bgcolor="#ffffff" align=left class=srch><input type=radio name="search_what" value="1">&nbsp;Exhibitors</td></tr>');
	document.writeln('			<tr><td><img src="'+akamaiBlank+'" width=1 height=4 border="0"></td></tr>');
	document.writeln('			<tr><td bgcolor="#ffffff" align=center><input type=image src="'+akamaiImgs+''+tscImgs+'SEARCH.GIF" BORDER=0 alt="Search"></tr></td>');
	document.writeln('			<tr><td><img src="'+akamaiBlank+'" width=1 height=4 border="0"></td></tr>');
	document.writeln('			</table>');
	document.writeln('		</td></tr></table>');
	document.writeln('</form>');
	// end keyword search
	document.writeln('<P>');
}    
	
function dontdisplaySrchBox() {
	document.writeln('<table cellpadding="0" cellspacing="0" border="0"><tr><td><img SRC="'+akamaiBlank+'" width="1" height="1" border="0"></td></tr></table>');
}
	
function toggleDisplay() {
	//dontdisplaySrchBox();
	writeKeySrch(8800005871);
}
// end keyword search box

/********note the ff for the js in the dynamic pages -- rightcol.js
1. function should be: writeRightCol() -- no paramater
2. dont use any variable such as: trackcode -- no instance of this shld exist, hidden or not
3. don't use Hx tags
4. verfiy if the chat box needs to be added on the dynamic pages
*/
