/* aug22, 2005 --there are now 2 sets of right column:
for static - to add "Reg trackingCode" for each page (4 steps) 
for dynamic - hardcoded "Reg trackingCode" (in 4 steps)
*/

//START

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 style="padding: 2 2 2 2;">');
	document.write('	<div id=height7></div>');
	document.write('	<div style="padding: 0 0 0 5;" class=regtxt>');
	document.write('		<span class=darkblue-small><b>On Video</b></span><div id=height10></div>');
	document.write('		<img SRC="'+akamaiImgs+'/TRADESHOW/IMAGES/EC-HK-VIDEOVISITOR.JPG" WIDTH=102 HEIGHT=72 border="1"><div id=height5></div>');
	document.write('		<div class=srch><a href="javascript:opencsfvideoBySize(\'/TRADESHOW/INDIA-ELECTRONICS/VIDEO-VISITOR.HTM\',\'610\',\'450\')" class=defblucol>View our helpful<br>Fair video</a><!--  <span class=redastrk>New!</span> --></div>');
	document.write('	</div>');
	document.write('</div>');
	document.write('<div id=height15></div><div id=nav-line></div>');
}

function writeRightCol() {
	// start top container	
	document.write('<div id="height5"></div>');
	document.write('<table width="145" border="0" cellspacing="0" cellpadding="0"><tr><td background="'+akamaiTNW+'L.GIF"><img src="'+akamaiBlank+'" height="1" width="4"></td><td width="100%" height="17" background="'+akamaiTNW+'B.GIF" class="sidebarhdr" align=center><b>&nbsp;&nbsp;More Information</b></td><td align="right" background="'+akamaiTNW+'R1.GIF"><img src="'+akamaiTNW+'R1.GIF" width="5" height="17"></td></tr><tr><td height="3" colspan="3"></td></tr></table>');
	
	document.write('<!-- start graybox rytnav -->');
	document.write('<table border="0" cellpadding="1" cellspacing="0" width="145">');
	document.write('<tr><td bgcolor="#e6e6e6">');
	document.write('	<table align="center" bgcolor="#ffffff" border="0" cellpadding="1" cellspacing="0" width="143">');
	document.write('    <tr><td><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/0.GIF" border="0" height="1" width="1"></td>');
	document.write('		<td>');
	// end top container
	
	//document.write('<div style="padding: 2 2 2 2;">');
	//document.write('	<div id=height7></div>');
	//document.write('	<div style="padding: 0 0 0 5;" class=regtxt>');
	//document.write('		<span class=darkblue-small><b>Plan your sourcing trip now!</b></span><div id=height10></div>');
	//document.write('		<table cellspacing=0 cellpadding=0 border=0>');
	//document.write('		<tr><td width=12></td><td></td></tr>');
	//document.write('	 	<tr><td colspan=2 valign=top class=srch><a href="/trdshw/gsol/pex/en/bondat/jsp/common/visreg.jsp?tsid=2808800008263&source=TSCINDIACSFEC_rightcol_DYNAMIC"><img SRC="'+akamaiImgs+'/TRADESHOW/IMAGES/EXPRESS-REGISTER-2.GIF" border=0 align=absmiddle></a><BR>to attend the fair!</td></tr>');
	//document.write('		</table>');
	//document.write('	</div>');
	//document.write('</div>');
	//document.write('<div id=height15></div><div id=nav-line></div>');
	
	writeVideo_buyer();
	
	getSourcingFairs('INDIA-ELECTRONICS','D');
	
	getContactUs('D');
	
	document.write('<div id="height15"></div>');
	
	// start bottom container	
	document.write('		</td>');
	document.write('		<td><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/0.GIF" border="0" height="1" width="1"></td>');
	document.write('	</tr>');
	document.write('	</table>');
	document.write('</td></tr>		');
	document.write('<tr><td colspan="3"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/0.GIF" border="0" height="1" width="1"></td></tr>');
	document.write('</table>');
	document.write('<!-- end graybox rytnav -->');				
	// end bottom container
}      

//END function writeRightColStatic() 






/********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
*/

