document.write('<link rel="shortcut icon" href="/favicon.ico"> ');
if(typeof BK_News==="undefined"){BK_News={}
}(function(a){a.fn.imgmask=function(d){var c={width:"100px",height:"100px"},b=50;
if(d){a.extend(c,d)
}return this.each(function(){var e=a(this);
e.hide().load(function(g){var k=a(g.target),j=k.width(),f=k.height();
$mask=k.wrap("<div />").parent().css(a.extend(c,{overflow:"hidden"})).attr("class","imgmask");
$mw=$mask.width(),$mh=$mask.height();
var i="";
var h="";
if(f>j){if(Math.round(f*$mw/j)>=$mh){imgcss="width:"+$mw+"px, height:"+Math.round(f*$mw/j)+"px";
i=$mw;
h=Math.round(f*$mw/j);
maskheight=$mh
}else{imgcss="width:"+Math.round(j*$mh/f)+"px, height:"+$mh+"px";
i=Math.round(j*$mh/f);
h=$mh;
maskheight=$mh
}}else{if((Math.round(j*$mh/f)>=$mw)&&(f>=$mh)&&($mw>100)){imgcss="width:"+Math.round(j*$mh/f)+"px, height:"+f+"px";
i=Math.round(j*$mh/f);
h=$mh;
maskheight=$mh
}else{imgcss="width:"+$mw+"px, height:"+Math.round(f*$mw/j)+"px";
if($mw>=410){if(j<410){j=410
}i=j
}else{i=Math.round(j*$mh/f)
}if(f<=$mh){maskheight=f
}else{maskheight=Math.round(f*$mw/j)
}}}var l={width:i,height:h};
if($mask.css("width")!="100px"&&$mask.css("height")!="100px"){$mask=k.parent().css(a.extend(c,{overflow:"hidden",height:maskheight})).attr("class","imgmask")
}k.css(l).fadeIn(b)
}).attr("src",e.attr("original"))
})
}
}(jQuery));
(function(d){d.fn.thickbox=function(f){var g=d.extend({},d.fn.thickbox.defaults,f);
return this.each(function(){d(this).unbind("click.thickbox").bind("click.thickbox",{tbOptions:g,tbAnchor:this},function(h){h.preventDefault();
d(h.target).blur();
d.thickbox.show(h.data.tbOptions,d(h.data.tbAnchor));
return false
})
});
return this
};
d.thickbox={};
d.thickbox.remove=function(){e()
};
d.thickbox.show=function(f,g){b(f,g)
};
d.thickbox.parseQuery=function(j){var k={};
if(!j){return k
}var f=j.split(/[;&]/);
for(var h=0;
h<f.length;
h++){var m=f[h].split("=");
if(!m||m.length!=2){continue
}var g=unescape(m[0]);
var l=unescape(m[1]);
l=l.replace(/\+/g," ");
k[g]=l
}return k
};
function b(f,h){try{if(typeof document.body.style.maxHeight==="undefined"){if(document.getElementById("TB_HideSelect")===null){d("body").append('<iframe id="TB_HideSelect"></iframe><div id="TB_overlay"></div><div id="TB_window"></div>')
}}else{if(document.getElementById("TB_overlay")===null){d("body").append('<div id="TB_overlay"></div><div id="TB_window"></div>')
}}if(a()){d("#TB_overlay").addClass("TB_overlayMacFFBGHack")
}else{d("#TB_overlay").addClass("TB_overlayBG")
}d(f.hiddenObjSelector).css("visibility","hidden");
d("#TB_window").append(f.innerHTML(h));
d("#TB_window").css("display","block");
d("#TB_window").data("tbOptions",f);
c();
document.onkeyup=function(i){if(i==null){keycode=event.keyCode
}else{keycode=i.which
}if(keycode==27){e()
}}
}catch(g){alert(g)
}}function a(){var f=navigator.userAgent.toLowerCase();
if(f.indexOf("mac")!=-1&&f.indexOf("firefox")!=-1){return true
}}function c(){var h=d("#TB_window").data("tbOptions");
var f=d(document).scrollTop();
var g=d(window).height()-h.height;
if(g<0){g=f
}else{g=f+Math.round(g/2)
}if(d(window).width()>h.width){d("#TB_window").css({left:"50%",marginLeft:"-"+parseInt((h.width/2),10)+"px",width:h.width+"px"})
}else{d("#TB_window").css({left:"0px",marginLeft:"0px"})
}d("#TB_window").css({marginTop:g+"px"})
}function e(){var f=d("#TB_window").data("tbOptions");
d("#TB_window").css("display","none");
d("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove();
d(f.hiddenObjSelector).css("visibility","visible")
}d.fn.thickbox.defaults={width:980,height:600,hiddenObjSelector:"object, embed",innerHTML:function(f){return"Missing Content!!!"
}}
})(jQuery);
$strToDate=function(e){if(e.length>=8){var g=e.substring(0,4);
var d=parseInt(e.substring(4,6),10)-1;
var a=e.substring(6,8);
var c=(e.length>=10)?e.substring(8,10):0;
var f=(e.length>=12)?e.substring(10,12):0;
var b=(e.length>=14)?e.substring(12,14):0;
return new Date(g,d,a,c,f,b)
}return new Date()
};
$trim=function(a){return a.replace(/^\s+|\s+$/g,"")
};
$digitPad=function(b,d,a){var c=String(d);
while(c.length<a){c=b+c
}return c
};
$dateFormat=function(h,e){var i={"default":"ddd mmm dd yyyy HH:MM:ss"};
var g={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","日","一","二","三","四","五","六"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};
var b=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,d=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,a=function(k,j){j=j||2;
return $digitPad("0",k,j)
};
var f=function(n,A,v){A=String(i[A]||A||i["default"]);
if(A.slice(0,4)=="UTC:"){A=A.slice(4);
v=true
}var x=v?"getUTC":"get",r=n[x+"Date"](),j=n[x+"Day"](),p=n[x+"Month"](),u=n[x+"FullYear"](),w=n[x+"Hours"](),q=n[x+"Minutes"](),z=n[x+"Seconds"](),t=n[x+"Milliseconds"](),k=v?0:n.getTimezoneOffset(),l={d:r,dd:a(r),ddd:g.dayNames[j],dddd:g.dayNames[j+7],m:p+1,mm:a(p+1),mmm:g.monthNames[p],mmmm:g.monthNames[p+12],yy:u.toString().slice(2),yyyy:u,h:w%12||12,hh:a(w%12||12),H:w,HH:a(w),M:q,MM:a(q),s:z,ss:a(z),l:a(t,3),L:a(t>99?Math.round(t/10):t),t:w<12?"a":"p",tt:w<12?"am":"pm",T:w<12?"A":"P",TT:w<12?"AM":"PM"};
return A.replace(b,function(m){return m in l?l[m]:m.slice(1,m.length-1)
})
};
if(typeof h==="string"){h=$strToDate(h)
}return f(h,e,false)
};
var $cookies={data:{},init:function(){var c=document.cookie.split(";");
var a=c.length;
while(a--){var b=c[a].split("=");
this.data[$.trim(b[0])]=decodeURIComponent(b[1])
}},val:function(g,d,i){if(typeof d!=="undefined"){if(!i){i={}
}var c;
var e;
var b=false;
if(typeof i.expires==="number"){e=new Date();
e.setTime(e.getTime()+(i.expires*24*60*60*1000));
if(i.expires===-1){b=true
}}else{e=i.expires
}c="; expires="+e.toGMTString();
var h=i.path?"; path="+(i.path):"/";
var f=i.domain?"; domain="+(i.domain):"";
var a=i.secure?"; secure":"";
document.cookie=[g,"=",encodeURIComponent(d),c,h,f,a].join("");
this.data[g]=(b)?null:d
}else{return(this.data[g])?this.data[g]:null
}},erase:function(a){this.val(a,"",{expires:-1})
}};
$cookies.init();
var $random=function(){var c,a;
if(arguments.length===1){c=0;
a=arguments[0]
}else{if(arguments.length===2){c=arguments[0];
a=arguments[1]
}else{c=0;
a=1
}}var b=Math.random()*(a-c);
return(Math.floor(b)+c)
};
var Utils={openWin:function(c,a,b){window.open(c,"popWin","location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width="+a+",height="+b)
},adjustImage:function(d,b,e){var c=parseInt(d.width,10);
var a=parseInt(d.height,10);
if(a>c){a=a*b/c;
c=b
}else{c=c*e/a;
a=e
}if(c<b){d.width=b+""
}else{if(a<e){d.height=e+""
}else{d.width=c+"";
d.height=a+""
}}}};
var $QueryString=function(a){this.url=(a||window.location.href);
this.params=this.getParams(this.url)
};
$QueryString.prototype.get=function(a){if(typeof this.params[a]!=="undefined"){return this.params[a]
}return null
};
$QueryString.prototype.set=function(b){for(var a in b){this.params[a]=b[a]
}};
$QueryString.prototype.toString=function(){var b=this.url.split("?");
var a=[];
var d=0;
for(var c in this.params){if(d!==0){a.push("&")
}a.push(c+"="+encodeURIComponent(this.params[c]));
d++
}return b[0]+((a.length>0)?"?"+a.join(""):"")
};
$QueryString.prototype.getParams=function(d){var f={};
var c=d.split("?");
if(c.length>1){var a=c[1].split("&");
var b=a.length;
while(b--){var e=a[b].split("=");
if(e.length>1){f[e[0]]=decodeURIComponent(e[1])
}}}return f
};
var $Pager=function(a,c,b){if(a&&c&&b){this.init(a,c,b)
}};
$Pager.prototype.init=function(a,c,b){this.size=b;
this.pageSize=a;
this.total=c;
this.idx=0;
this.pageTotal=Math.ceil(c/a)
};
$Pager.prototype.next=function(){if(this.idx<this.pageTotal-1){return(this.idx+1)
}return -1
};
$Pager.prototype.prev=function(){if(this.idx>0){return(this.idx-1)
}return -1
};
$Pager.prototype.getIdx=function(a){return Math.ceil((a+1)/this.size)
};
$Pager.prototype.getList=function(){var d=[];
var c=Math.floor(this.size/2);
var e=(this.size%2===0)?-1:0;
var f=this.idx;
if(f-c+e>-1){f=f-c+e
}else{f=0
}var a=f+this.size;
if(a>this.pageTotal){a=this.pageTotal;
f=this.pageTotal-this.size;
if(f<0){f=0
}}for(var b=f;
b<a;
b++){d.push(b)
}return d
};
BK_News.calender={};
BK_News.calender.holidaySet={};
BK_News.calender.holidaySet.hk={};
BK_News.calender.holidaySet.hk.day={};
BK_News.calender.holidaySet.hk.day={"2012":["20120102","20120123","20120124","20120125","20120404","20120406","20120407","20120409","20120428","20120501","20120623","20120702","20121001","20121002","20121023","20121225","20121226"],"2011":["20110101","20110203","20110204","20110205","20110405","20110422","20110423","20110425","20110502","20110510","20110606","20110701","20110913","20111001","20111005","20111226","20111227"],"2010":["20100101","20100213","20100214","20100215","20100216","20100402","20100403","20100405","20100406","20100501","20100521","20100616","20100701","20100923","20101001","20101016","20101225","20101227"],"2009":["20090101","20090126","20090127","20090128","20090404","20090410","20090411","20090413","20090501","20090502","20090528","20090701","20091001","20091003","20091026","20091225","20091226"],"2008":["20080101","20080207","20080208","20080209","20080321","20080322","20080324","20080404","20080501","20080512","20080609","20080701","20080915","20081001","20081007","20081225","20081226"],"2007":["20070101","20070217","20070219","20070220","20070405","20070406","20070407","20070409","20070501","20070524","20070619","20070702","20070926","20071001","20071019","20071225","20071226"],"2006":["20060102","20060128","20060130","20060131","20060405","20060414","20060415","20060417","20060501","20060505","20060531","20060701","20061002","20061007","20061030","20061225","20061226"],"2005":["20050101","20050209","20050210","20050211","20050325","20050326","20050328","20050405","20050502","20050516","20050611","20050701","20050919","20051001","20051011","20051226","20051227"],"2004":["20040101","20040122","20040123","20040124","20040405","20040409","20040410","20040412","20040501","20040526","20040622","20040701","20040929","20041001","20041022","20041225","20041227"],"2003":["20030101","20030201","20030131","20030203","20030405","20030418","20030419","20030421","20030501","20030508","20030604","20030701","20030912","20031001","20031004","20031225","20031226"],"2002":["20020101","20020212","20020213","20020214","20020329","20020330","20020401","20020405","20020501","20020520","20020615","20020701","20020921","20021001","20021014","20021225","20021226"]};
BK_News.section={hknews:{highlight:"/js/bknHighlight_news.js",url:"/js/news_fullList.js",url_short:"/js/news_shortList.js",code:"822",name:"hknews",isFirst:true,codeName:"港聞",icon:"/images/thumb_hknews.jpg"},finnews:{highlight:"/js/bknHighlight_finance.js",url:"/js/finance_fullList.js",url_short:"/js/finance_shortList.js",code:"842",name:"finnews",isFirst:true,codeName:"財經",icon:"/images/thumb_fin.jpg"},entnews:{highlight:"/js/bknHighlight_entertainment.js",url:"/js/entertainment_fullList.js",url_short:"/js/entertainment_shortList.js",code:"862",name:"entnews",isFirst:true,codeName:"娛樂",icon:"/images/thumb_ent.jpg"},sportnews:{highlight:"/js/bknHighlight_sport.js",url:"/js/sport_fullList.js",url_short:"/js/sport_shortList.js",code:"882",name:"sportnews",isFirst:true,codeName:"體育",icon:"/images/thumb_sport.jpg"},internews:{highlight:"/js/bknHighlight_world.js",url:"/js/world_fullList.js",url_short:"/js/world_shortList.js",code:"902",name:"internews",isFirst:true,codeName:"國際",icon:"/images/thumb_int.jpg"},chinanews:{highlight:"/js/bknHighlight_china.js",url:"/js/china_fullList.js",url_short:"/js/china_shortList.js",code:"922",name:"chinanews",isFirst:true,codeName:"兩岸",icon:"/images/thumb_china.jpg"},weathernews:{highlight:"/js/bknHighlight_weather.js",url:"/js/weather_fullList.js",url_short:"/js/weather_shortList.js",code:"942",name:"weathernews",isFirst:true,codeName:"交通/天氣",icon:"/images/thumb_transweather.jpg"},focusnews:{url:"/js/bknHighlight_main.js"},hitCount:{url:"/js/hitCount_UTF8.js"}};
BK_News.stockKeyword={regEx:/(\(|\（)\d{4,5}(\)|\）)/g,renderHtml:function(b){var c=b.match(this.regEx);
if(c!=null){if(c.length!=0){c=$.unique(c);
for(var a=0;
a<c.length;
a++){c[a]=c[a].replace(/\((.+?)\)/g,"$1");
c[a]=c[a].replace(/\（(.+?)\）/g,"$1");
b=b.replace(new RegExp(c[a],"g"),'<a href="javascript:void(0);" onclick="javascript:M18box.livequotebox.LQB_show(\''+c[a]+'\');" class="stockNum">'+c[a]+'<img src="/images/stock_icon.gif" /></a>')
}return b
}}return b
},extract_kw_to_list:function(c){var a=[];
var d=c.match(this.regEx);
if(d!=null){if(d.length!=0){d=$.unique(d);
for(var b=0;
b<d.length;
b++){d[b]=d[b].replace(/\((.+?)\)/g,"$1");
d[b]=d[b].replace(/\（(.+?)\）/g,"$1");
a.push(d[b])
}return a
}}return a
},renderHtml2:function(b){var c=b.match(/\d{4,5}/g);
if(c!=null){if(c.length!=0){c=$.unique(c);
for(var a=0;
a<c.length;
a++){b=b.replace(new RegExp(c[a],"g"),'<a href="javascript:void(0);" onclick="javascript:M18box.livequotebox.LQB_show(\''+c[a]+'\');" class="stockNum">'+c[a]+"</a>")
}return b
}}return b
}};
BK_News.pollInfo={id:"#pageCTN-right",xmlPath:"/xml/polling.xml",init:function(a){if(a=="china_world"){a="news"
}$.get(this.xmlPath,function(b){BK_News.pollInfo.bind(b,a)
})
},bind:function(c,a){var d=(a||"");
var b="";
$(c).find("polling").each(function(){var g=$(this).find("sect_L1_name").text();
var f=$(this).find("sect_L1_cname").text();
var e=$(this).find("url").text();
var j=$(this).find("title").text();
var i=j;
var h=e.indexOf("/cgi-bin/");
e="/polling/index.html?url="+e.substring(h,e.length).replace("?","+");
if(i.length>23){i=j.substring(0,23)+"..."
}if(d!=""){if(g==d){b+='<div id="pollingBox"><a href="'+e+'" title="'+j+'">'+f+"："+i+"</a></div>"
}}else{if(g=="entertainment"||g=="news"||g=="finance"){b+='<div id="pollingBox"><a href="'+e+'" title="'+j+'">'+f+"："+i+"</a></div>"
}}});
$(this.id).append('<div style="float:left; padding: 5px;background-image: url(/images/nt.gif); width: 310px;"><h2 class="pollingBoxTitle">民意中心</h2> '+b+"</div>");
$(this.id).show()
}};
BK_News.toolBar={id:".toolBar",getShareUrl:function(d){var c;
if(d==="facebook"){c="http://www.facebook.com/share.php?u={url}";
var a=window.location.href
}else{if(d==="twitter"){c="http://twitter.com/share?url={url}&text={title}"
}else{if(d==="plurk"){c="http://plurk.com/?qualifier=shares&status={title} {url}"
}else{if(d==="sina"){var e=$(".breakingNewsContent p.summary").eq(0).text();
if(e.length>=67){e=e.substring(0,67)+"..."
}else{e+="..."
}e=encodeURIComponent(e);
if($("img.imgmask").length!=0){var b=encodeURIComponent("http://"+window.location.hostname+$("img.imgmask").eq(0).attr("original"));
c="http://v.t.sina.com.cn/share/share.php?url={url}&title={title} "+encodeURIComponent("(分享自 @oncc東方互動) ")+e+"&pic="+b
}else{c="http://v.t.sina.com.cn/share/share.php?url={url}&title={title} "+encodeURIComponent("(分享自 @oncc東方互動)  ")+e
}}else{if(d==="fblike"){c="{url}"
}else{if(d==="qq"){var e=$(".breakingNewsContent p.summary").eq(0).text();
e=e.replace("【on.cc 東方互動 專訊】","");
if(e.length>=67){e=e.substring(0,67)+"..."
}else{e+="..."
}e=encodeURIComponent(e);
var f=encodeURIComponent(document.title);
if($("img.imgmask").length!=0){var b=encodeURIComponent("http://"+window.location.hostname+$("img.imgmask").eq(0).attr("original"));
c="http://v.t.qq.com/share/share.php?url={url}&title={title}&pic="+b+"&content="+f+encodeURIComponent(" (分享自 @onccnews) ")+e
}else{c="http://v.t.qq.com/share/share.php?url={url}&title={title}&content="+f+encodeURIComponent(" (分享自 @onccnews)  ")+e
}}}}}}}return c.replace("{url}",window.location.href).replace("{title}",encodeURIComponent(document.title))
},init:function(){var a="";
a+='<li class="facebook_like" title="Facebook Like" ><div style="width:180px;padding-top: 4px;overflow:hidden;"><iframe src="http://www.facebook.com/plugins/like.php?href='+this.getShareUrl("fblike")+'&amp;layout=button_count&amp;show_faces=false&amp;width=180&amp;action=recommend&amp;font=arial&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:180px; height:21px;" allowTransparency="true"></iframe></div></li>';
a+='<li class="qq" title="騰訊微博"><a href="'+this.getShareUrl("qq")+'" target="_blank"></a></li>';
a+='<li class="sina" title="新浪微博"><a href="'+this.getShareUrl("sina")+'" target="_blank"></a></li>';
a+='<li class="twitter" title="Twitter"><a href="'+this.getShareUrl("twitter")+'" target="_blank"></a></li>';
a+='<li class="facebook" title="在Facebook上分享"><a href="'+this.getShareUrl("facebook")+'" target="_blank"></a></li>';
a+='<li class="largeFont" onclick="BK_News.fontSizePanel.large();" title="放大字型"></li>';
a+='<li class="smallFont" onclick="BK_News.fontSizePanel.small();" title="縮小字型"></li>';
$(this.id).html(a)
}};
BK_News.date={server:null,client:null,adjust:0,init:function(){this.server=(typeof todaydate==="string")?$strToDate(todaydate):new Date();
this.client=new Date();
this.adjust=this.server.getTime()-this.client.getTime()
},now:function(){return new Date(new Date().getTime()+this.adjust)
}};
BK_News.date.init();
BK_News.m18_QuoteBox={write:function(a){$("#"+a).html('<div id="m18_quote_box"> <div><form action="javascript:BK_News.m18_QuoteBox.stockQuote()"> <a href="http://202.125.90.99/" class="btnM18" title="Money18"></a> <table cellpadding="0" cellspacing="0" border="0"> <tr><td><input type="text" class="m18_textfield" id="txt_qstock_symbol" value=""></td> <td><img src="/images/spacer.gif" class="m18_submit" onClick="BK_News.m18_QuoteBox.stockQuote()" alt="查詢股票編號" title="查詢股票編號"></td></tr> </table> </form></div> </div>')
},stockQuote:function(){var a=document.getElementById("txt_qstock_symbol");
var b=a.value;
var c="http://money18.on.cc/info/liveinfo_quote.html?symbol=";
if(b!=""&&b.match(new RegExp(/^\d{0,5}$/))){b=$digitPad("0",b,5);
window.location=c+b+"&refer=bk"
}else{alert("請輸入正確股票編號。");
a.focus()
}}};
BK_News.ad={write:function(b,a){document.write('<script type="text/javascript" src="/js/adv/'+b+"_"+a+'.js"><\/script>')
}};
BK_News.head={init:function(){$("#topMenu .weatherImage").attr("class","weatherImage");
$("#topMenu .weatherImage").addClass(BK_News.head.getWeather());
$("#topMenu .weatherIcon").html(BK_News.head.getWeather2());
$("#weatherbar .weatherDegree").html(corpbar_temperature);
$("#navMenu li.today").html($dateFormat(todaydate,"yyyy年mm月dd日 (dddd) "));
$("#weatherbar .weatherDegree").show()
},getWeather:function(){var c=corpbar_weather_gif.split("|");
var a=corpbar_weather_gif_alt.split("|");
var b=c.length;
while(b--){if(c[b].match(/(pic)\d\d/)){var a=a[b];
$("#weatherText").append(a)
}switch(c[b]){case"pic50.jpg":return"weather_l_50";
break;
case"pic51.jpg":return"weather_l_51";
break;
case"pic52.jpg":return"weather_l_52";
break;
case"pic53.jpg":return"weather_l_53";
break;
case"pic54.jpg":return"weather_l_54";
break;
case"pic60.jpg":return"weather_l_60";
break;
case"pic61.jpg":return"weather_l_61";
break;
case"pic62.jpg":return"weather_l_62";
break;
case"pic63.jpg":return"weather_l_63";
break;
case"pic64.jpg":return"weather_l_64";
break;
case"pic65.jpg":return"weather_l_65";
break;
case"pic70.jpg":return"weather_l_74";
break;
case"pic71.jpg":return"weather_l_74";
break;
case"pic72.jpg":return"weather_l_74";
break;
case"pic73.jpg":return"weather_l_74";
break;
case"pic74.jpg":return"weather_l_74";
break;
case"pic75.jpg":return"weather_l_74";
break;
case"pic76.jpg":return"weather_l_76";
break;
case"pic77.jpg":return"weather_l_77";
break;
case"80.jpg":return"weather_l_80";
break;
case"pic81.jpg":return"weather_l_81";
break;
case"82.jpg":return"weather_l_82";
break;
default:break
}}return""
},getWeather2:function(){var c=corpbar_weather_gif.split("|");
var a=corpbar_weather_gif_alt.split("|");
var b=c.length;
var d=[];
var e=0;
while(b--){if(!c[b].match(/(pic)\d\d/)){var f=c[b].replace(/\.jpg/g,".png");
e++;
if(e<=4){d.push('<img src="/images/weather_icon/small/'+f+'" alt="'+a[b]+'" title="'+a[b]+'"/>&nbsp;')
}}}return d.join("")
}};
BK_News.footer={init:function(){var a="bk";
var d=$ONCC.footer;
d.menuItemSet.ontv_feedback="<a href=\"http://tv.on.cc/ontv/feedback.html\" onclick=\"window.open('http://tv.on.cc/ontv/feedback.html','feedback','location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width=470,height=390');return false;\">改善意見</a>";
d.menuItemSet.ontv_userguide="<a href=\"http://tv.on.cc/userguide/userguide.html\" onclick=\"window.open('http://tv.on.cc/userguide/userguide.html','feedback','location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width=890,height=700');return false;\">使用說明</a>";
d.menuGroup.ontv=["0","13","2","3","4","5","6","7","ontv_feedback","8","9","10","ontv_userguide"];
var c=" | ";
var b="";
b+="<div><strong>東方報業集團網站</strong><div>";
b+=c+$ONCC.footer.getMenuList(a).join(c)+c;
b+="<div>"+$ONCC.footer.getCopyRight(a)+"</div>";
b=b.replace(/came_from=O\"/i,'came_from=ONEWS"');
$("#copyrightfoot .contentBox").html(b)
}};
BK_News.nb={ctn:null,text:"",timerId:null,init:function(){this.ctn=$("#nb");
this.loadStatus();
this.timerId=setInterval(function(){BK_News.nb.loadStatus()
},22000)
},loadStatus:function(){$.ajax({url:"/js/emergencyNews.js?t="+new Date().getTime(),dataType:"script",success:function(){BK_News.nb.statusCb()
},error:function(c,a,b){}})
},loadDetail:function(){if(typeof emergency_news!="undefined"){BK_News.nb.detailCb()
}},statusCb:function(){if(typeof emergency_news!="undefined"){if(emergency_news.news[0].STATUS=="Active"){this.loadDetail()
}else{this.hide()
}}},detailCb:function(b){if(typeof emergency_news!="undefined"){var c=emergency_news.news[0].TITLE;
if(c!==""&&c!==this.text){this.text=c;
var a=emergency_news.news[0].URL;
if(a.indexOf("?")==-1){a+="?refer=special"
}else{a+="&refer=special"
}this.show(c,"live",a)
}}},show:function(g,e,b){this.stop();
$("#nb").remove();
var d=[];
d.push('<div id="nb">');
d.push('<a title="特別報道" href="#" class="enter" url="'+b+'">特別報道</a>');
d.push('<ul><li url="'+b+'"></li></ul>');
d.push("</div>");
if(window.location.pathname.indexOf("cnt")==-1&&window.location.pathname.indexOf("index")!=-1){$("#pageCTN-left div:eq(0)").html(d.join(""));
$("#pageCTN-left div:eq(0)").css("height","45px");
$("#nb").find("li").css("left",590).text(g)
}else{if(window.location.pathname.indexOf("cnt")!=-1&&window.location.pathname.indexOf("index")!=-1){$("#news_area").prepend(d.join(""));
$("#nb").find("li").css("left",360).text(g)
}else{$("#newsHeadline").prepend(d.join(""));
$("#nb").find("li").css("left",360).text(g)
}}var c=$("#nb").find(".enter");
var a=$("#nb").find("li");
var f=$("#nb").find(".close");
if(e){c.unbind("click").bind("click",function(){window.location.href=$(this).attr("url");
return false
}).show();
f.unbind("click").bind("click",function(){BK_News.nb.hide();
return false
});
a.unbind("click").bind("click",function(){window.location.href=$(this).attr("url");
return false
}).show()
}else{c.hide()
}$("#nb").animate({height:"show",opacity:"show"},300);
this.start()
},hide:function(){$("#nb").animate({height:"hide",opacity:"hide"},300);
$("#nb").find("li").stop()
},start:function(){var a=$("#nb").find("li");
var c=310;
var b=a.outerWidth();
var d=-b-10;
if(b<c){b=c
}a.animate({left:d},(b/c)*10000,"linear",function(){a.css("left",360);
BK_News.nb.start()
})
},stop:function(){$("#nb").find("li").stop()
}};
BK_News.imageGalleryInfo={obj:null,domReady:false,data:[],init:function(){this.domReady=true;
this.obj=$("a.thickbox");
this.obj.each(function(c){BK_News.imageGalleryInfo.data.push([$(this).attr("href"),$(this).attr("title")])
});
var a=980;
var b=$(window).height()-100;
this.obj.thickbox({width:a,height:b,hiddenObjSelector:null,innerHTML:function(d){var c="";
if(window.location.pathname.indexOf("china")!=-1){c="china"
}else{if(window.location.pathname.indexOf("entertainment")!=-1){c="entertainment"
}else{if(window.location.pathname.indexOf("finance")!=-1){c="finance"
}else{if(window.location.pathname.indexOf("news")!=-1){c="news"
}else{if(window.location.pathname.indexOf("sport")!=-1){c="sport"
}else{if(window.location.pathname.indexOf("weather")!=-1){c="weather"
}else{if(window.location.pathname.indexOf("world")!=-1){c="world"
}}}}}}}return'<iframe scrolling="no" frameborder="0" style="width: '+a+"px; height: "+b+'px;" name="TB_iframeContent205" id="TB_iframeContent" src="/cnt/'+c+"/imageGallery.html?pId="+d.attr("href")+'" hspace="0"> </iframe>'
}})
},resize:function(a){$("#TB_iframeContent").css("height",a)
},queue:function(){return false
}};
BK_News.Active={mouseX:-1,mouseY:-1,currMouseX:-1,currMouseY:-1,flag:1,timerId:null,timestamp:-1,init:function(){$("body").mousemove(function(b){BK_News.Active.currMouseX=b.pageX;
BK_News.Active.currMouseY=b.pageY
});
var a=function(){if(BK_News.Active.mouseX==-1&&BK_News.Active.mouseY==-1){BK_News.Active.mouseX=BK_News.Active.currMouseX;
BK_News.Active.mouseY=BK_News.Active.currMouseY
}else{if(BK_News.Active.currMouseX!=BK_News.Active.mouseX||BK_News.Active.currMouseY!=BK_News.Active.mouseY){BK_News.Active.flag=1
}else{BK_News.Active.flag=0;
setTimeout(window.location.reload(),30000)
}}};
a();
BK_News.Active.timerId=setInterval(a,30000)
},init_v2:function(){$("body").mousemove(function(b){BK_News.Active.currMouseX=b.pageX;
BK_News.Active.currMouseY=b.pageY
});
var a=function(){if(BK_News.Active.currMouseX!=BK_News.Active.mouseX||BK_News.Active.currMouseY!=BK_News.Active.mouseY){BK_News.Active.flag=1
}else{BK_News.Active.flag=0;
window.location.reload()
}};
BK_News.Active.timerId=setInterval(a,300000)
},init_v3:function(){$("body").mousemove(function(b){BK_News.Active.currMouseX=b.pageX;
BK_News.Active.currMouseY=b.pageY
});
BK_News.Active.timestamp=Math.round(new Date().getTime()/1000);
var a=function(){if(BK_News.Active.currMouseX!=BK_News.Active.mouseX||BK_News.Active.currMouseY!=BK_News.Active.mouseY){BK_News.Active.flag=1;
BK_News.Active.mouseX=BK_News.Active.currMouseX;
BK_News.Active.mouseY=BK_News.Active.currMouseY;
BK_News.Active.timestamp=Math.round(new Date().getTime()/1000)
}else{var b=Math.round(new Date().getTime()/1000);
if((b-BK_News.Active.timestamp)>300){BK_News.Active.flag=0;
window.location.reload()
}}};
BK_News.Active.timerId=setInterval(a,1000)
}};
BK_News.fontSizePanel={cksId:"breakingnews-fontSize",selectors:[".breakingNewsContent"],sizes:[{h1:13,h3:12,p:12,lh:19},{h1:15,h3:13,p:13,lh:21},{h1:19,h3:16,p:16,lh:23},{h1:23,h3:21,p:21,lh:26},{h1:26,h3:24,p:24,lh:30}],curIdx:3,init:function(){var a=null;
if(String(a)!=String(this.curIdx)&&a!=null){this.curIdx=a;
this.writeCss()
}},small:function(){if(this.curIdx>1){this.curIdx--
}this.changeSize()
},large:function(){if(this.curIdx<this.sizes.length){this.curIdx++
}this.changeSize()
},changeSize:function(){for(var b=0;
b<this.selectors.length;
b++){var a=$(this.selectors[b]);
a.css({"line-height":this.sizes[this.curIdx-1].lh+"px"});
a.find("h1").css({"font-size":this.sizes[this.curIdx-1].h1+"px"});
a.find("h3").css({"font-size":this.sizes[this.curIdx-1].h3+"px"});
a.find("p, table.commonTable td, table.commonTable th, .infoBox").css({"font-size":this.sizes[this.curIdx-1].p+"px"})
}},writeCss:function(){var c=['<style type="text/css">'];
for(var b=0;
b<this.selectors.length;
b++){var a=this.selectors[b];
c.push(a+"{line-height:"+this.sizes[this.curIdx-1].lh+"px;}");
c.push(a+" h1 {font-size:"+this.sizes[this.curIdx-1].h1+"px;}");
c.push(a+" h3 {font-size:"+this.sizes[this.curIdx-1].h3+"px;}");
c.push(a+" p, "+a+" table.commonTable td, "+a+"table.commonTable th, "+a+" .infoBox {font-size:"+this.sizes[this.curIdx-1].p+"px;}")
}c.push("</style>");
document.write(c.join(""))
}};
var $ListLoader=function(b,a){this.url=b.url;
this.url_short=b.url_short;
this.url_highlight=b.highlight;
this.callbacks=[];
this.section=b;
this.type=a
};
$ListLoader.prototype.ajaxSuccess=function(b,c){for(var a=0;
a<this.callbacks.length;
a++){this.callbacks[a](b,c)
}};
$ListLoader.prototype.ajaxError=function(){};
$ListLoader.prototype.load=function(){var b="";
if(typeof this.type!="undefined"&&this.type=="main"){b=this.url_short+"?t="+new Date().getTime()
}else{if(this.type=="highlight"){b=this.url_highlight+"?t="+new Date().getTime()
}else{b=this.url+"?t="+new Date().getTime()
}}var a=this;
$.ajax({url:b,dataType:"json",success:function(c){a.ajaxSuccess(c,a.section)
},error:function(f,c,d){}})
};
$(document).ready(function(){BK_News.nb.init();
BK_News.head.init();
BK_News.m18_QuoteBox.write("m18_QuoteBox");
$(".goTop").click(function(b){b.stopPropagation();
b.preventDefault();
$("html, body").animate({scrollTop:0},"slow");
return false
});
$("#weatherbar .weatherImage").mouseover(function(){$("#weatherText").show()
}).mouseout(function(){$("#weatherText").hide()
});
$("#subMenu li a").delegate("","mouseover",function(){$(this).find(".iconPic").attr("src","/images/icon_pic_over.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video_over.gif")
}).delegate("","mouseout",function(){$(this).find(".iconPic").attr("src","/images/icon_pic.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video.gif")
});
$(".sectbreakNews li a").delegate("","mouseover",function(){$(this).find(".iconPic").attr("src","/images/icon_pic_over.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video_over.gif")
}).delegate("","mouseout",function(){$(this).find(".iconPic").attr("src","/images/icon_pic.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video.gif")
});
$(".cntheadline a").delegate("","mouseover",function(){$(this).find(".iconPic").attr("src","/images/icon_pic_over.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video_over.gif")
}).delegate("","mouseout",function(){$(this).find(".iconPic").attr("src","/images/icon_pic.gif");
$(this).find(".iconVideo").attr("src","/images/icon_video.gif")
});
BK_News.Active.init_v3();
BK_News.fontSizePanel.init();
$("#toolBarMenu .related").after("<li class='new_function' style='cursor:pointer;background-position: left 0;display: block;height: 23px;text-align: left;width: 120px;padding-top:7px;'><a href='/sethomepage.html'  style='width:115px;height:17px;display:block;color:#ffffff;'>設定<span style='color:#fff68c;' >即時新聞</span>為首頁</a></li>");
if($.browser.msie){$("#toolBarMenu .new_function a").click(function(){this.style.behavior="url(#default#homepage)";
this.setHomePage("http://money18.on.cc");
return false
})
}var a=$("#pty_mini_search_frm .header_title");
a.delegate("","click",function(){window.location.href="http://p18.on.cc"
})
});
