/*
HKTrade Hong Kong Trade Events Eng
<img src="http://pixel-hk.pixelinteractivemedia.com/addv.php?sid=15074945572"width="1" height="1" border="0" />

HKTrade Hong Kong Trade Events Smp Chn
<img src="http://pixel-hk.pixelinteractivemedia.com/addv.php?sid=74608310573"width="1" height="1" border="0"/>

HKTrade Hong Kong Trade Events Trd Chn
<img src="http://pixel-hk.pixelinteractivemedia.com/addv.php?sid=42992374574"width="1" height="1" border="0" />


*/
var footer = ""

var keyword_value = ""
var class_value = ""
var sid_value = ""
var class_value = ""
var NoShowAdPageKey = new Array();

var Title = "Advertisement"


keyword_value = "110073" 

NoShowAdPageKey[0] = "enquiries.htm";
NoShowAdPageKey[1] = "thankyou.htm";
NoShowAdPageKey[2] = "pre_form.htm";
NoShowAdPageKey[3] = "";
NoShowAdPageKey[4] = "";
NoShowAdPageKey[5] = "";
NoShowAdPageKey[6] = "";

/*
randomstr = new String (Math.random());
randomstr = randomstr.substring(1,8);
*/
				
var url_location = location.href.toUpperCase();
var Url_indexof =  "/chi/".toUpperCase();
/*
  str   =   str.toUpperCase();  
  str   =   str.toLowerCase(); 
*/	

 keyword_value = keyword_value + "ROS" // this is content page
 
if (url_location.indexOf(Url_indexof) < 0 ) // check home or content page
{	
		Title = "Advertisement"
		class_value = "J1"  // eng
		sid_value = "15074945572" // all fair use this code
		
}
else
{		Title = "&#24291;&#21578;" // &#24291;&#21578; equalthe word  "Advertisement chi"
		
		if (location.href.indexOf("/gb/") < 0) // check sc or tc
		{		class_value = "J2" // tc
				sid_value = "42992374574" // all fair use this code
		}
		else
		{
			 	class_value = "J3"  // sc
				sid_value = "74608310573" // all fair use this code
		}
} 

footer += "<table width='850'  border='0' cellspacing='0' cellpadding='0'>"
footer += "    <tr>"
footer += "       <td height='10' colspan='3'> </td>"
footer += "  	</tr>"
footer += "  	<tr bgcolor='#FFFFFF'>"
footer += "		<td>&nbsp;</td>"
footer += "		<td><font size='1' face='Arial, Helvetica, sans-serif'>&nbsp;</font></td>"
footer += "		<td>&nbsp;</td>"
footer += "  	</tr>"
footer += "  	<tr bgcolor='#FFFFFF'>"

footer += "		<td width='58'>&nbsp;</td>"
footer += "		<td width='728' height='95' valign='top' bgcolor='#FFFFFF'>"
footer += "			<center>"
footer += "				<iframe marginwidth='0' marginheight='0' src='http://www.hktdc.com/get?keyword=" + keyword_value + "&class=" + class_value + "&cache=no' frameborder='0' height='90' scrolling='no' width='728'></iframe>"
footer += "				<img src='http://pixel-hk.pixelinteractivemedia.com/addv.php?sid=" + sid_value + "&cache=no' width='1' height='1' border='0' />"
footer += "			</center>"
footer += "		</td>"
footer += "    	<td width='64'>&nbsp;</td>"
footer += "  	</tr>"
footer += "  	<tr>"
footer += "       <td height='10' colspan='3'> </td>"
footer += "  	</tr>"
footer += "</table>"




if (keyword_value != "")  
{
 	var show = "Yes"
	var ArrayCount = NoShowAdPageKey.length;
	for(i=0; i< ArrayCount; i++) 
	{ 
		var CheckString = NoShowAdPageKey[i];
		if (CheckString != "")
		{
			if (url_location.indexOf(CheckString.toUpperCase()) > 0)
			{
				show = "No";		
			}
		}
	}
	 
	if (show == "Yes")
	{
		document.write(footer)
	}
}
 
		 
			 
 
	 
 