if(!Beacon){var Beacon={}}function GetCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}function GetCookie(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;if(document.cookie.substring(e,c)==b){return GetCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function parse_str(e){var c=[];var b={};var h=e.substr(e.indexOf("?")+1);var g=h.split("&");var d;for(var f=0;f<g.length;f++){c=g[f].split("=");b[c[0]]=c[1]}return b}if(typeof(_dp_flag)!="undefined"&&_dp_flag!=""&&_dp_flag!=null){}else{var random=parseInt(Math.random()*5);if(typeof(_dp_art_site)=="undefined"||_dp_art_site==null||_dp_art_site==""){var _dp_art_site="yahoo";var full_url=window.location.href;var patrn=/http:\/\/taobao/;if(patrn.exec(full_url)){_dp_art_site="taobao"}patrn=/http:\/\/alibaba/;if(patrn.exec(full_url)){_dp_art_site="alibaba"}}if(typeof(_dp_p)!="undefined"&&_dp_p!=""&&_dp_p!=null){var _dp_p_r=_dp_p;if(_dp_p=="sns"){_dp_p_r=_dp_p+random}}if(typeof(_dp_channel)!="undefined"&&_dp_channel!=""&&_dp_channel!=null){}else{var _dp_channel=""}if(typeof(_dp_art_type)!="undefined"&&_dp_art_type!=""&&_dp_art_type!=null){}else{var _dp_art_type=""}if(typeof(_dp_art_id)!="undefined"&&_dp_art_id!=""&&_dp_art_id!=null){}else{var _dp_art_id=""}if(typeof(_dp_editor_id)!="undefined"&&_dp_editor_id!=""&&_dp_editor_id!=null){}else{var _dp_editor_id=""}if(typeof(_dp_art_date)!="undefined"&&_dp_art_date!=""&&_dp_art_date!=null){}else{var _dp_art_date=""}if(typeof(_dp_art_external)!="undefined"&&_dp_art_external!=""&&_dp_art_external!=null){}else{var _dp_art_external=""}var _dp_flag=1;var yaCount=(function(){function b(e,d){a(e,d)}function a(e,d){new Image().src=document.location.protocol+"//rd.data.cn.yahoo.com/clk?s="+((typeof(_dp_sid)!="undefined"&&_dp_sid!=""&&_dp_sid!=null)?(_dp_sid):"")+"&t="+Math.random()+"&r="+encodeURIComponent(document.referrer)+"&path="+encodeURIComponent(e)+"&hurl="+encodeURIComponent(d)}function c(g){var f=g||window.event;var i=f.target||f.srcElement;var k="";var h=parse_str(window.location.search);if(typeof(h.promotion_id)!="undefined"){var j=i;while(j.tagName!="A"){if(j==document.body){break}j=j.parentNode}if(typeof(j.href)!="undefined"&&j.href!=""&&j.href!=null&&/cn\.yahoo\.com/.exec(j.href)){var e=parse_str(j.href);if(typeof(e.f)=="undefined"){if(/\?/.exec(i.href)){j.href=j.href+"&f="+h.promotion_id}else{j.href=j.href+"?f="+h.promotion_id}}}}var d=/((new||cn)\.rd\.(cn\.)?yahoo\.com)((\/\w+)+\/)/;while(!i.getAttribute("name")){if(i==document.body){if(d.exec(k)){a(RegExp.$4,k)}return}i=i.parentNode}k="";if(typeof(i.href)!="undefined"&&i.href!=""&&i.href!=null){k=i.href}a(i.getAttribute("name"),k)}if(window.addEventListener){document.body.addEventListener("mousedown",c,false)}else{if(window.attachEvent){document.body.attachEvent("onmousedown",c)}}return b})();Beacon.ajaxRequest=function(a){if(!a){a=document.location.protocol+"//bj.data.cn.yahoo.com/"+((typeof(_dp_p_r)!="undefined"&&_dp_p_r!=""&&_dp_p_r!=null)?(_dp_p_r):"default")+"?s="+_dp_sid+"&r="+encodeURIComponent(document.referrer)+((typeof(Beacon.ajax_referi)!="undefined"&&Beacon.ajax_refer!=""&&Beacon.ajax_refer!=null)?("&ar="+Beacon.ajax_refer):"")+((typeof(Beacon.ajax_url)!="unedfined"&&Beacon.ajax_url!=""&&Beacon.ajax_url!=null)?("&au="+Beacon.ajax_url):"")+((typeof(Beacon.ajax_isLastPage)!="unedfined"&&Beacon.ajax_isLastPage!=""&&Beacon.ajax_isLastPage!=null)?("&ai="+Beacon.ajax_isLastPage):"")}a+="&t="+Math.random();a+="&chn="+_dp_channel;a+="&atp="+_dp_art_type;a+="&aid="+_dp_art_id;a+="&eid="+_dp_editor_id;a+="&adt="+_dp_art_date;a+="&aen="+_dp_art_external;a+="&site="+_dp_art_site;(new Image()).src=a};document.write("<img src="+document.location.protocol+"//bj.data.cn.yahoo.com/"+((typeof(_dp_p_r)!="undefined"&&_dp_p_r!=""&&_dp_p_r!=null)?(_dp_p_r):"default")+"?s="+_dp_sid+"&chn="+_dp_channel+"&atp="+_dp_art_type+"&aid="+_dp_art_id+"&eid="+_dp_editor_id+"&adt="+_dp_art_date+"&aen="+_dp_art_external+"&site="+_dp_art_site+"&t="+Math.random()+"&r="+encodeURIComponent(document.referrer)+"&sr="+window.screen.width+"*"+window.screen.height+((typeof(GetCookie("YK"))!="undefined"&&GetCookie("YK")!=""&&GetCookie("YK")!=null&&typeof(parse_str(GetCookie("YK"))["n"])!="undefined")?("&ruid="+parse_str(GetCookie("YK"))["n"]):"")+' style="width:1px;height:1px;display:none" />')};
