var __render_host="https://usercollection.chinadaily.com.cn/"; var __render_uac="uac_ismp"; var ___U_INFO={}; (function(o){var K=o.$LAB,y="UseLocalXHR",z="AlwaysPreserveOrder",u="AllowDuplicates",A="CacheBust",B="BasePath",C=/^[^?#]*\//.exec(location.href)[0],D=/^\w+\:\/\/\/?[^\/]+/.exec(C)[0],i=document.head||document.getElementsByTagName("head"),L=(o.opera&&Object.prototype.toString.call(o.opera)=="[object Opera]")||("MozAppearance"in document.documentElement.style),q=document.createElement("script"),E=typeof q.preload=="boolean",r=E||(q.readyState&&q.readyState=="uninitialized"),F=!r&&q.async===true,M=!r&&!F&&!L;function G(a){return Object.prototype.toString.call(a)=="[object Function]"}function H(a){return Object.prototype.toString.call(a)=="[object Array]"}function N(a,c){var b=/^\w+\:\/\//;if(/^\/\/\/?/.test(a)){a=location.protocol+a}else if(!b.test(a)&&a.charAt(0)!="/"){a=(c||"")+a}return b.test(a)?a:((a.charAt(0)=="/"?D:C)+a)}function s(a,c){for(var b in a){if(a.hasOwnProperty(b)){c[b]=a[b]}}return c}function O(a){var c=false;for(var b=0;b0){for(var a=0;a=0;){d=n.shift();a=a[d.type].apply(null,d.args)}return a},noConflict:function(){o.$LAB=K;return m},sandbox:function(){return J()}};return m}o.$LAB=J();(function(a,c,b){if(document.readyState==null&&document[a]){document.readyState="loading";document[a](c,b=function(){document.removeEventListener(c,b,false);document.readyState="complete"},false)}})("addEventListener","DOMContentLoaded")})(this); var __render_refresh=5000; var isIE = function(ver){ var b = document.createElement('b'); b.innerHTML = ''; return b.getElementsByTagName('i').length === 1;} var ___jquery = __render_host+'jquery-1.9.0.min.js'; var ___json2 = __render_host+'js/json2.js'; var ___analytics = __render_host+'cd.analytics.min.js'; function __render_s2(){ $LAB.script(___analytics).wait(function(){ var data={}; // appname 在JS中确定 if(document.URL.indexOf("africa")>0 && document.URL.indexOf("chinadaily")>0){ data.appname="africa"; }else if(document.URL.indexOf("usa")>0 && document.URL.indexOf("chinadaily")>0){ data.appname="america"; }else if(document.URL.indexOf("europe")>0 && document.URL.indexOf("chinadaily")>0){ data.appname="europe"; }else if(document.URL.indexOf("www.chinadailyasia.com")>0){ data.appname="asia"; }else if(document.URL.indexOf("language.chinadaily.com.cn")>0){ data.appname="bilingual"; }else if(document.URL.indexOf("www.chinadaily.com.cn/chinawatch_fr")>0){ data.appname="france"; }else if(document.URL.indexOf("www.chinadaily.com.cn/dfpd")>0){ data.appname="chinese"; }else if(document.URL.indexOf("www.chinadaily.com.cn")>0 || document.URL.indexOf("www2.chinadaily.com.cn")>0){ data.appname="english"; }else{ data.appname="chinese"; } if(___U_INFO.userid){ data.uid=___U_INFO.userid; } _at_tool.init(data); initLoginLabel(); }); } function initLoginLabel(){ /*** *UAC不需要: var __URI=window.location.href; $("body").append(' '); __ini_messenger.addTarget(__login_frame.contentWindow, '__login_frame');***/ } function __render_s1(){ $(".prebox").remove(); $(".nxtbox").remove(); if(isIE(6)||isIE(7)||isIE(8)){ $LAB.script(___json2).wait(function(){ __render_s2() }); } else{ __render_s2(); } } if (typeof jQuery == 'undefined') { $LAB.script(___jquery).wait(function(){ __render_s1() }); }else{ __render_s1(); } function render_msg(json){ $(".sider").append(utf8to16(base64decode(json.result))) } function verifyURL(){ if(document.URL.indexOf("/content_")<0 && document.URL.indexOf(".cn/a/")<0){ return false; } return true; }