﻿function encode64(inp){
var key="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var chr1,chr2,chr3,enc3,enc4,i=0,out="";
while(i<inp.length){
chr1=inp.charCodeAt(i++);if(chr1>127) chr1=88;
chr2=inp.charCodeAt(i++);if(chr2>127) chr2=88;
chr3=inp.charCodeAt(i++);if(chr3>127) chr3=88;
if(isNaN(chr3)) {enc4=64;chr3=0;} else enc4=chr3&63;
if(isNaN(chr2)) {enc3=64;chr2=0;} else enc3=((chr2<<2)|(chr3>>6))&63;
out+=key.charAt((chr1>>2)&63)+key.charAt(((chr1<<4)|(chr2>>4))&63)+key.charAt(enc3)+key.charAt(enc4);
}
return encodeURIComponent(out);
}

function stats(sid){
var referer=encode64(document.referrer);
var thispage=encode64(window.location.pathname+location.search);
var date=new Date();
var time=date.getTime();
var resolution= screen.width + "x" + screen.height;
document.writeln("<img src=\"http://infolution.com.hk/iTraffic/count.php?sid="+sid+"&p="+thispage+"&r="+referer+"&t="+time+"&res="+resolution+"\" alt=\"\" border=\"0\" width=\"0\" height=\"0\" style=\"border: 0px; border-color: #f15c22;\" />");
}

var footer_content = ''
footer_content += ''
footer_content += '	<table cellspacing="0" cellpadding="0" border="0" width="980">'
footer_content += '	<tr>'
footer_content += '		<td align="left" width="225" bgcolor="#4a256e">'
footer_content += '			<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#4a256e">'
footer_content += '			<tr>'
footer_content += '				<td>'
footer_content += '					<img src="img/footer_left.gif" width="225" height="87" border="0" alt="">'
footer_content += '				</td>'
footer_content += '			</tr>'
footer_content += '			</table>'
footer_content += '		</td>'
footer_content += '		<td width="755">'
footer_content += '			<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f15c22">'
footer_content += '			<tr>'
footer_content += '				<td width="100" rowspan="4"><img src="../img/clear.gif" width="100" height="68" alt="" border="0"></td>'
footer_content += '				<td>&nbsp;'
footer_content += '				</td>'
footer_content += '				<td width="100" rowspan="4"><img src="../img/clear.gif" width="100" height="68" alt="" border="0">'
document.write(footer_content)
<!-- 
stats(587258);
stats(353574);
//-->
footer_content = '				</td>'
footer_content += '			</tr>'
footer_content += '			<tr>'
footer_content += '				<td><a href="http://www.hkftustsc.org/stsc12.htm" target="_blank"><img src="../img/logo_hkftustsc.gif" width="101" height="25" alt="" border="0"></a>'
footer_content += '				<img src="../img/clear.gif" width="5" height="25" alt="" border="0">'
footer_content += '				<a href="http://www.hkftuwc.org/index.htm" target="_blank"><img src="../img/logo_hkftuwc.gif" width="90" height="25" alt="" border="0"></a>'
footer_content += '				<img src="../img/clear.gif" width="5" height="25" alt="" border="0">'
footer_content += '				<a href="http://www.ftu.org.hk" target="_blank"><img src="../img/logo_ftu.gif" width="105" height="25" alt="" border="0"></a>'
footer_content += '				<img src="../img/clear.gif" width="5" height="25" alt="" border="0">'
footer_content += '				<a href="http://www.ftuclinics.org.hk/tc/about_us/background.html" target="_blank"><img src="../img/logo_ftuclinics.gif" width="164" height="25" alt="" border="0"></a>'
footer_content += '				<img src="../img/clear.gif" width="5" height="25" alt="" border="0">'
footer_content += '				<a href="http://www.hkftu.com.hk" target="_blank"><img src="../img/logo_hkftu.gif" width="140" height="25" alt="" border="0"></a>'
footer_content += '				<img src="../img/clear.gif" width="5" height="25" alt="" border="0">'
footer_content += '				<a href="http://www.hkftudso.org" target="_blank"><img src="../img/logo_hkftudso.gif" width="114" height="25" alt="" border="0"></a></td>'
footer_content += '			</tr>'
footer_content += '			<tr>'
footer_content += '				<td><img src="img/footer_hr.gif" width="555" height="5" alt="" border="0"></td>'
footer_content += '			</tr>'
footer_content += '			<tr>'
footer_content += '				<td><address>版權屬工聯會新界東地區服務處所有 &copy; 2009</address>'
footer_content += '			</td></tr>'
footer_content += '			</table>'
footer_content += '		</td>'
footer_content += '	</tr>'
footer_content += '	</table>'
document.write(footer_content)


