function GetCookie (name) { 
	var arg = name + "="; 
	var alen = arg.length; 
	var clen = document.cookie.length; 
	var i = 0; 
	while (i < clen) { 
		var j = i + alen; 
		if (document.cookie.substring(i, j) == arg) 
			return getCookieVal (j); 
		i = document.cookie.indexOf(" ", i) + 1; 
		if (i == 0) break; 
	} 
	return null;
}

function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
// This cookie is history 
var cval = 0; 
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

var dToday = new Date();
var exp = new Date(dToday.getYear(),dToday.getMonth(),dToday.getDate(), 23 , 59 , 59 );

var expDays = 1;
var Freq=4;
exp.setTime(exp.getTime() + (expDays*Freq*60*60*1000));



function amt3(count,count_str){
var count = GetCookie(count_str)
if(count == null) {
SetCookie(count_str,'2')
return 1
}
else{
var newcount = parseInt(count) + 1;
if(newcount<3) count=1;
SetCookie(count_str,newcount,exp);
return count
}
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}


var same8 = rand(4);
if((same8 == "0") || (same8 == "1"))
{
  //document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>');
  //var playCnt;  
  // if(amt3()==1) 
  // {
  //    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="760" height="90"><param name=movie value="http://adimages.sina.com.hk/hacken_0508_760x90a.swf?a=1&clickTAG=http://edu.sina.com.hk"><param name=quality value=high><embed src="http://adimages.sina.com.hk/hacken_0508_760x90a.swf?a=1&clickTAG=http://edu.sina.com.hk" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="90"></embed></object>');
  // }
  // else
  // {
  //    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="760" height="90"><param name=movie value="http://adimages.sina.com.hk/hacken_0508_760x90a.swf?a=0&clickTAG=http://edu.sina.com.hk"><param name=quality value=high><embed src="http://adimages.sina.com.hk/hacken_0508_760x90a.swf?a=0&clickTAG=http://edu.sina.com.hk" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="90"></embed></object>');
  // }

  //document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="760" height="90" id="tv_760x90" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://adimages.sina.com.hk/SinaTV_ML_760x90a.swf?clickTAG=http://adimages.sina.com.hk/TVban_0604.html" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><embed src="http://adimages.sina.com.hk/SinaTV_ML_760x90a.swf?clickTAG=http://adimages.sina.com.hk/TVban_0604.html" menu="false" quality="best" bgcolor="#ffffff" width="760" height="90" name="tv_760x90" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
  //document.write('</td></tr><tr><td align=center height=5><spacer type="block" width="5" height="5"></td></tr></table>');
}
else
{
  //document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>');
  //document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="760" height="90"><param name=movie value="http://adimages.sina.com.hk/Travel_0510_760x90.swf?clickTAG=http://travel.sina.com.hk"><param name=quality value=high><PARAM NAME=wmode VALUE=transparent><embed src="http://adimages.sina.com.hk/Travel_0510_760x90.swf?clickTAG=http://travel.sina.com.hk" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="90"></embed></object>');
  //document.write('</td></tr><tr><td align=center height=5><spacer type="block" width="5" height="5"></td></tr></table>');
}


  //document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>');
  //document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="760" height="90"><param name=movie value="http://adimages.sina.com.hk/Ladies_event_0709_760x90a.swf?clickTAG=http://ad.sina.com.hk/adfrontc?s=26%26c=264%26w=1%26h=1%26url=http://ladies.sina.com.hk/"><param name=quality value=high><PARAM NAME=wmode VALUE=transparent><embed src="http://adimages.sina.com.hk/Ladies_event_0709_760x90a.swf?clickTAG=http://ad.sina.com.hk/adfrontc?s=26%26c=264%26w=1%26h=1%26url=http://ladies.sina.com.hk/" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="90"></embed></object>');
  //document.write('</td></tr><tr><td align=center height=5><spacer type="block" width="5" height="5"></td></tr></table>');


document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>');

function rand(n) {
seed = (0x015a4e35 * seed) % 0xfffffff;
return (seed >> 16) % n;
}
var now = new Date ();
var seed = now.getTime() % 0xffffffff;
var same8 = rand(6);
//if((same8 == "0") || (same8 == "1"))
//{
//document.write('<A href="http://hkxfiles.mysinablog.com/" target=_blank><b><font style="text-decoration:underline" size=3> 香港 X-files－同你逐一拆解歷史迷團！ </font></b></a><img src="http://www.sina.com.hk/images/new.gif" border=0>');
//}
//else if((same8 == "2") || (same8 == "3"))
//{
//document.write('<A href="http://game.sina.com.hk/cgi-bin/fl/show.cgi?id=12048" target=_blank><b><font style="text-decoration:underline" size=3> 高山滑雪小遊戲，玩玩花式換換裝備！ </font></b></a><img src="http://www.sina.com.hk/images/new.gif" border=0>');
//}
//else
//{
//document.write('<A href="http://ladies.sina.com.hk/cgi-bin/faq/tarot.cgi" target=_blank><b><font style="text-decoration:underline" size=3> 與其自己囉囉攣，不如問下塔羅神婆點算？ </font></b></a><img src="http://www.sina.com.hk/images/new.gif" border=0>');
//}

document.write('<scr'+'ipt language="JavaScript" SRC="http://as.sinahk.net/f?s=466&w=760&h=90&t=_blank"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" SRC="http://as.sinahk.net/f?s=467&w=100&h=1&t=_blank"></scr'+'ipt>');
document.write('</td></tr></table>');








