text: window.pageConfig=window.pageConfig||{};pageConfig.wideVersion=(function(){return(screen.width>=1210)})();if(pageConfig.wideVersion&&pageConfig.compatible){document.getElementsByTagName("body")[0].className="root61"}pageConfig.FN_getDomain=function(){var a=location.hostname;return(/360buy.com/.test(a))?"360buy.com":"jd.com"};pageConfig.FN_GetUrl=function(a,b){if(typeof a=="string"){return a}else{return pageConfig.FN_GetDomain(a)+b+".html"}};pageConfig.FN_StringFormat=function(){var e=arguments[0],f=arguments.length;if(f>0){for(var d=0;d<f;d++){e=e.replace(new RegExp("\\{"+d+"\\}","g"),arguments[d+1])}}return e};pageConfig.FN_GetDomain=function(b,c){var a="http://{0}.jd.com/{1}";switch(b){case 1:a=this.FN_StringFormat(a,"item","");break;case 2:a=this.FN_StringFormat(a,"book","");break;case 3:a=this.FN_StringFormat(a,"mvd","");break;case 4:a=this.FN_StringFormat(a,"e","");break;case 7:a=this.FN_StringFormat(a,"music","");break;default:break}return a};pageConfig.FN_GetImageDomain=function(d){var c,d=String(d);switch(d.match(/(\d)$/)[1]%5){case 0:c=10;break;case 1:c=11;break;case 2:c=12;break;case 3:c=13;break;case 4:c=14;break;default:c=10}return"http://img{0}.360buyimg.com/".replace("{0}",c)};pageConfig.FN_ImgError=function(b){var c=b.getElementsByTagName("img");for(var a=0;a<c.length;a++){c[a].onerror=function(){var d="",e=this.getAttribute("data-img");if(!e){return}switch(e){case"1":d="err-product";break;case"2":d="err-poster";break;case"3":d="err-price";break;default:return}this.src="http://misc.360buyimg.com/lib/img/e/blank.gif";this.className=d}}};pageConfig.FN_SetPromotion=function(b){if(b==0){return}var e="\u9650\u91cf,\u6e05\u4ed3,\u9996\u53d1,\u6ee1\u51cf,\u6ee1\u8d60,\u76f4\u964d,\u65b0\u54c1,\u72ec\u5bb6,\u4eba\u6c14,\u70ed\u5356",d=e.split(",")[parseInt(b)-1],c="<b class='pi{0}'>{1}</b>";switch(d.length){case 1:c=c.replace("{0}"," pix1 pif1");break;case 2:c=c.replace("{0}"," pix1");break;case 4:c=c.replace("{0}"," pix1 pif4");break}return c.replace("{1}",d)};pageConfig.FN_GetRandomData=function(c){var b=0,f=0,a,e=[];for(var d=0;d<c.length;d++){a=c[d].weight?parseInt(c[d].weight):1;e[d]=[];e[d].push(b);b+=a;e[d].push(b)}f=Math.ceil(b*Math.random());for(var d=0;d<e.length;d++){if(f>e[d][0]&&f<=e[d][1]){return c[d]}}};pageConfig.FN_GetCompatibleData=function(b){var a=(screen.width<1210);if(a){b.width=b.widthB?b.widthB:b.width;b.height=b.heightB?b.heightB:b.height;b.src=b.srcB?b.srcB:b.src}return b};pageConfig.FN_InitSlider=function(e,g){var d=function(o,n){return o.group-n.group};g.sort(d);var j=g[0].data,h=[],b=(j.length==3)?"style2":"style1",k=(screen.width<1210),l,c,m,a;h.push('<div class="slide-itemswrap"><ul class="slide-items"><li class="');h.push(b);h.push('" data-tag="');h.push(g[0].aid);h.push('">');for(var f=0;f<j.length;f++){l=j[f];c=k?l.widthB:l.width;m=k?l.heightB:l.height;a=k?l.srcB:l.src;h.push('<div class="fore');h.push(f+1);h.push('"><a target="_blank" href="');h.push(l.href);h.push('"><img data-img="2" src="');h.push(a);h.push('" width="');h.push(c);h.push('" height="');h.push(m);h.push('" alt="');h.push(l.alt);h.push('" /></a></div>')}h.push('</li></ul></div><div class="slide-controls"><span class="curr">1</span></div>');document.getElementById(e).innerHTML=h.join("")};function login(){location.href="https://passport.jd.com/new/login.aspx?ReturnUrl="+escape(location.href).replace(/\//g,"%2F");return false}function regist(){location.href="https://passport.jd.com/new/registpersonal.aspx?ReturnUrl="+escape(location.href);return false}function createCookie(c,d,f,e){var e=(e)?e:"/";if(f){var b=new Date();b.setTime(b.getTime()+(f*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path="+e}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function addToFavorite(){var d="http://www.jd.com/";var c="\u4eac\u4e1cJD.COM-\u7f51\u8d2d\u4e0a\u4eac\u4e1c\uff0c\u7701\u94b1\u53c8\u653e\u5fc3";if(document.all){window.external.AddFavorite(d,c)}else{if(window.sidebar){window.sidebar.addPanel(c,d,"")}else{alert("\u5bf9\u4e0d\u8d77\uff0c\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6b64\u64cd\u4f5c!\n\u8bf7\u60a8\u4f7f\u7528\u83dc\u5355\u680f\u6216Ctrl+D\u6536\u85cf\u672c\u7ad9\u3002")}}createCookie("_fv","1",30,"/;domain=jd.com")}var CookieUtil={};CookieUtil.setASCIICookie=function(e,f,b,c,a,d){if("string"==typeof(e)&&"string"==typeof(f)){f=escape(f);CookieUtil.setCookie(e,f,b,c,a,d)}};CookieUtil.setUnicodeCookie=function(e,f,b,c,a,d){if("string"==typeof(e)&&"string"==typeof(f)){f=encodeURIComponent(f);CookieUtil.setCookie(e,f,b,c,a,d)}};CookieUtil.setCookie=function(f,g,b,c,a,e){if("string"==typeof(f)&&"string"==typeof(g)){var d=f+"="+g;if(b){d+="; expires="+b.toGMTString()}if(c){d+="; path="+c}if(a){d+="; domain="+a}if(e){d+="; secure"}document.cookie=d}};CookieUtil.getUnicodeCookie=function(b){var d=getCookie(b);if("string"==typeof(b)){var c=getCookie(b);if(null==c){return null}else{return decodeURIComponent(c)}}else{var a=document.cookie;return a}};CookieUtil.getASCIICookie=function(b){var d=getCookie(b);if("string"==typeof(b)){var c=getCookie(b);if(null==c){return null}else{return unescape(c)}}else{var a=document.cookie;return a}};CookieUtil.getCookie=function(d){var a=document.cookie;if("string"==typeof(d)){var c="(?:; )?"+d+"=([^;]*);?";var b=new RegExp(c);if(b.test(a)){return RegExp["$1"]}else{return null}}else{return a}};CookieUtil.deleteCookie=function(c,b,a){CookieUtil.setCookie(c,"",new Date(0),b,a)};var searchlog=(function(){var f="http://sstat."+pageConfig.FN_getDomain()+"/scslog?args=";var e="{keyword}^#psort#^#page#^#cid#^"+encodeURIComponent(document.referrer);var d="2";var c="";var a="";var b=function b(){var j="";var h="";var l="";var m="0";if(arguments.length>0){if(arguments[0]==0){j=f+d+"^"+e+"^^^58^^"+a+"^"+c}else{if(arguments[0]==1){if(d!=10){j=f+"1^"+e+"^"}else{j=f+"11^"+e+"^"}for(var k=1;k<arguments.length;k++){j+=encodeURI(arguments[k])+"^"}if(arguments.length>3&&arguments[3]=="51"){h=arguments[1]}if(arguments.length>3&&arguments[3]=="55"){l=arguments[1]}if(arguments.length>3&&arguments[3]=="56"){m=arguments[1]}for(var k=0,g=5-arguments.length;k<g;k++){j+="^"}j+=a+"^"+c}}}j=j.replace("#cid#",h);j=j.replace("#psort#",l);j=j.replace("#page#",m);$.getScript(j)};return b})();function search(h){var q="http://search.jd.com/Search?keyword={keyword}&enc={enc}{additional}{area}";var b=search.additinal||"";var p=document.getElementById(h);var g=p.value;g=g.replace(/^\s*(.*?)\s*$/,"$1");if(g.length>100){g=g.substring(0,100)}if(""==g){window.location.href=window.location.href;return}var j=0;if("undefined"!=typeof(window.pageConfig)&&"undefined"!=typeof(window.pageConfig.searchType)){j=window.pageConfig.searchType}var o="&cid{level}={cid}";var t=("string"==typeof(search.cid)?search.cid:"");var f=("string"==typeof(search.cLevel)?search.cLevel:"");var k=("string"==typeof(search.ev_val)?search.ev_val:"");var m=false;switch(j){case 0:m=true;break;case 1:m=true;f="-1";b+="&book=y";break;case 2:f="-1";b+="&mvd=music";break;case 3:f="-1";b+="&mvd=movie";break;case 4:f="-1";b+="&mvd=education";break;case 5:var l="&other_filters=%3Bcid1%2CL{cid1}M{cid1}[cid2]";switch(f){case"51":o=l.replace(/\[cid2]/,"");o=o.replace(/\{cid1}/g,"5272");break;case"52":o=l.replace(/\{cid1}/g,"5272");o=o.replace(/\[cid2]/,"%3Bcid2%2CL{cid}M{cid}");break;case"61":o=l.replace(/\[cid2]/,"");o=o.replace(/\{cid1}/g,"5273");break;case"62":o=l.replace(/\{cid1}/g,"5273");o=o.replace(/\[cid2]/,"%3Bcid2%2CL{cid}M{cid}");break;case"71":o=l.replace(/\[cid2]/,"");o=o.replace(/\{cid1}/g,"5274");break;case"72":o=l.replace(/\{cid1}/g,"5274");o=o.replace(/\[cid2]/,"%3Bcid2%2CL{cid}M{cid}");break;case"81":o=l.replace(/\[cid2]/,"");o=o.replace(/\{cid1}/g,"5275");break;case"82":o=l.replace(/\{cid1}/g,"5275");o=o.replace(/\[cid2]/,"%3Bcid2%2CL{cid}M{cid}");break;default:break}q="http://search.e.jd.com/searchDigitalBook?ajaxSearch=0&enc=utf-8&key={keyword}&page=1{additional}";break;case 6:f="-1";q="http://music."+pageConfig.FN_getDomain()+"/8_0_desc_0_0_1_15.html?key={keyword}";break;default:break}if("string"==typeof(t)&&""!=t&&"string"==typeof(f)){var n=/^(?:[1-8])?([1-3])$/;if("-1"==f){f=""}else{if(n.test(f)){f=RegExp.$1}else{f=""}}var d=o.replace(/\{level}/,f);d=d.replace(/\{cid}/g,t);b+=d}if("string"==typeof(k)&&""!=k){b+="&ev="+k}var s="";if(m){var v=CookieUtil.getCookie("ipLoc-djd");if(null!=v){var r=v.split("-");if(r.length>0){var u=r[0];s="&area="+u}}}g=encodeURIComponent(g);sUrl=q.replace(/\{keyword}/,g);sUrl=sUrl.replace(/\{enc}/,"utf-8");sUrl=sUrl.replace(/\{additional}/,b);sUrl=sUrl.replace(/\{area}/,s);if("undefined"==typeof(search.isSubmitted)||false==search.isSubmitted){setTimeout(function(){window.location.href=sUrl},10);search.isSubmitted=true}}(function(a){a.extend(a.browser,{client:function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,bodyWidth:document.body.clientWidth,bodyHeight:document.body.clientHeight}},scroll:function(){return{width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight,bodyWidth:document.body.scrollWidth,bodyHeight:document.body.scrollHeight,left:document.documentElement.scrollLeft+document.body.scrollLeft,top:document.documentElement.scrollTop+document.body.scrollTop}},screen:function(){return{width:window.screen.width,height:window.screen.height}},isIE6:a.browser.msie&&a.browser.version==6,isMinW:function(b){return Math.min(a.browser.client().bodyWidth,a.browser.client().width)<=b},isMinH:function(b){return a.browser.client().height<=b}})})(jQuery);(function(a){a.fn.hoverForIE6=function(c){var b=a.extend({current:"hover",delay:10},c||{});a.each(this,function(){var f=null,e=null,d=false;a(this).bind("mouseover",function(){if(d){clearTimeout(e)}else{var g=a(this);f=setTimeout(function(){g.addClass(b.current);d=true},b.delay)}}).bind("mouseout",function(){if(d){var g=a(this);e=setTimeout(function(){g.removeClass(b.current);d=false},b.delay)}else{clearTimeout(f)}})})}})(jQuery);(function($){$.extend({_jsonp:{scripts:{},counter:1,charset:"gb2312",head:document.getElementsByTagName("head")[0],name:function(callback){var name="_jsonp_"+(new Date).getTime()+"_"+this.counter;this.counter++;var cb=function(json){eval("delete "+name);callback(json);$._jsonp.head.removeChild($._jsonp.scripts[name]);delete $._jsonp.scripts[name]};eval(name+" = cb");return name},load:function(url,name){var script=document.createElement("script");script.type="text/javascript";script.charset=this.charset;script.src=url;this.head.appendChild(script);this.scripts[name]=script}},getJSONP:function(url,callback){var name=$._jsonp.name(callback);var url=url.replace(/{callback};/,name);$._jsonp.load(url,name);return this}})})(jQuery);(function(b){b.fn.jdTab=function(r,m){if(typeof r=="function"){m=r;r={}}var a=b.extend({type:"static",auto:false,source:"data",event:"mouseover",currClass:"curr",tab:".tab",content:".tabcon",itemTag:"li",stay:5000,delay:100,mainTimer:null,subTimer:null,index:0},r||{});var p=b(this).find(a.tab).eq(0).find(a.itemTag),t=b(this).find(a.content);if(p.length!=t.length){return false}var s=a.source.toLowerCase().match(/http:\/\/|\d|\.aspx|\.ascx|\.asp|\.php|\.html\.htm|.shtml|.js|\W/g);var l=function(c,d){a.subTimer=setTimeout(function(){q();if(d){a.index++;if(a.index==p.length){a.index=0}}else{a.index=c}a.type=(p.eq(a.index).attr(a.source)!=null)?"dynamic":"static";n()},a.delay)};var o=function(){a.mainTimer=setInterval(function(){l(a.index,true)},a.stay)};var n=function(){p.eq(a.index).addClass(a.currClass);switch(a.type){default:case"static":var c="";break;case"dynamic":var c=(s==null)?p.eq(a.index).attr(a.source):a.source;p.eq(a.index).removeAttr(a.source);break}if(m){m(c,t.eq(a.index),a.index)}t.eq(a.index).show()};var q=function(){p.eq(a.index).removeClass(a.currClass);t.eq(a.index).hide()};p.each(function(c){b(this).bind(a.event,function(){clearTimeout(a.subTimer);clearInterval(a.mainTimer);l(c,false);return true}).bind("mouseleave",function(){if(a.auto){o()}else{return}})});if(a.type=="dynamic"){l(a.index,false)}if(a.auto){o()}}})(jQuery);(function(b){b.fn.jdSlide=function(u){var a=b.extend({width:null,height:null,pics:[],index:0,type:"num",current:"curr",delay1:100,delay2:5000},u||{});var w=this;var y,z,B,x=0,A=true,D=true;var r=a.pics.length;var q=function(){var c="<ul style='position:absolute;top:0;left:0;'><li><a href='"+a.pics[0].href+"' target='_blank'><img src='"+a.pics[0].src+"' width='"+a.width+"' height='"+a.height+"' /></a></li></ul>";w.css({position:"relative"}).html(c);b(function(){C()})};q();var v=function(){var d=[];d.push("<div>");var e;var f;for(var c=0;c<r;c++){e=(c==a.index)?a.current:"";switch(a.type){case"num":f=c+1;break;case"string":f=a.pics[c].alt;break;case"image":f="<img src='"+a.pics[c].breviary+"' />";default:break}d.push("<span class='");d.push(e);d.push("'><a href='");d.push(a.pics[c].href);d.push("' target='_blank'>");d.push(f);d.push("</a></span>")}d.push("</div>");w.append(d.join(""));w.find("span").bind("mouseover",function(){D=false;clearTimeout(y);clearTimeout(B);var g=w.find("span").index(this);if(a.index==g){return}else{B=setInterval(function(){if(A){t(g)}},a.delay1)}}).bind("mouseleave",function(){D=true;clearTimeout(y);clearTimeout(B);y=setTimeout(function(){t(a.index+1,true)},a.delay2)})};var t=function(c,d){if(c==r){c=0}z=setTimeout(function(){w.find("span").eq(a.index).removeClass(a.current);w.find("span").eq(c).addClass(a.current);s(c,d)},20)};var s=function(d,h){var f=parseInt(x);var c=Math.abs(f+a.index*a.height);var e=Math.abs(d-a.index)*a.height;var g=Math.ceil((e-c)/4);if(c==e){clearTimeout(z);if(h){a.index++;if(a.index==r){a.index=0}}else{a.index=d}A=true;if(A&&D){clearTimeout(y);y=setTimeout(function(){t(a.index+1,true)},a.delay2)}}else{if(a.index<d){x=f-g;w.find("ul").css({top:x+"px"})}else{x=f+g;w.find("ul").css({top:x+"px"})}A=false;z=setTimeout(function(){s(d,h)},20)}};var C=function(){var d=[];for(var c=1;c<r;c++){d.push("<li><a href='");d.push(a.pics[c].href);d.push("' target='_blank'><img src='");d.push(a.pics[c].src);d.push("' width='");d.push(a.width);d.push("' height='");d.push(a.height);d.push("' /></a></li>")}w.find("ul").append(d.join(""));y=setTimeout(function(){t(a.index+1,true)},a.delay2);if(a.type){v()}}}})(jQuery);function getRandomDomain(d){var c,d=String(d);switch(d.match(/(\d)$/)[1]%5){case 0:c=10;break;case 1:c=11;break;case 2:c=12;break;case 3:c=13;break;case 4:c=14;break;default:c=10}return"http://img{0}.360buyimg.com/".replace("{0}",c)}if($.browser.isIE6){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}}function setWebBILinkCount(c){try{if(c.length>0){var b=document.createElement("script");b.type="text/javascript";b.src="http://counter.360buy.com/aclk.aspx?key="+c;document.getElementsByTagName("head")[0].appendChild(b)}}catch(a){}}var initScrollY=0;var proIDs=new Array();function compare(){if($("#compare").get(0)==null){$("body").prepend('<div id="compare" class="compare"><div class="mt"><h5>\u5546\u54c1\u6bd4\u8f83</h5><div class="extra" onclick="clearCompare()"></div></div><div class="comPro"><ul class="mc" id="comProlist"></ul><div class="mb"><input type="button" value="\u5bf9\u6bd4\u6240\u9009\u5546\u54c1" class="btn" id="compareImg" onclick="openCompare()"></div></div></div>');$("#compare").css({position:"absolute",top:"160px",right:"0px",zIndex:"1"});isCoo()}if($.browser.msie){var a=document.documentElement.scrollTop;var b=0.3*(a-initScrollY);if(b>0){b=Math.ceil(b)}else{b=Math.floor(b)}$("#compare").get(0).style.top=parseInt($("#compare").get(0).style.top)+b+"px";initScrollY=initScrollY+b;setTimeout("compare()",50)}else{window.onscroll=function(){$("#compare").get(0).style.top=parseInt($("#compare").get(0).style.top)+"px";$("#compare").get(0).style.position="fixed"}}}function clearCompare(){$("#comProlist").empty();$("#compare").hide();createCookie("compare","");proIDs=new Array()}function addToCompare(d,b,a){$("#compare").show();$(".comPro").show();var c=proIDs.join(".");if(c.indexOf(b)==-1){if(proIDs.length<4){proIDs.push(b);$("#comProlist").append("<li id='check_"+b+"'><a title='\u5220\u9664' class='close' onclick='reduceCompare("+b+")'></a>"+a+"</li>");writeCompare(b,a)}else{alert("\u5bf9\u4e0d\u8d77\uff0c\u6700\u591a\u53ef\u4ee5\u9009\u62e9\u56db\u79cd\u5546\u54c1\u8fdb\u884c\u5bf9\u6bd4\uff01")}}else{alert("\u5bf9\u4e0d\u8d77\uff0c\u60a8\u5df2\u7ecf\u9009\u62e9\u6b64\u5546\u54c1\uff01");return}}function reduceCompare(d){$("#check_"+d).remove();$.each(proIDs,function(g,h){if(d==h){proIDs.splice(g,1)}});var a=readCookie("compare");var c=a.indexOf(d);var f=a.indexOf("|||",c)+3;var b=a.substring(c,f);var e=a.replace(b,"");createCookie("compare",e);if(proIDs.length==0){$(".comPro").hide()}}function openCompare(){switch(proIDs.length){case 1:alert("\u5bf9\u4e0d\u8d77\uff0c\u6700\u5c11\u9009\u62e9\u4e24\u79cd\u5546\u54c1\u8fdb\u884c\u5bf9\u6bd4\uff01");break;case 2:window.open("http://www.360buy.com/pcompare.aspx?s1="+proIDs[0]+"&s2="+proIDs[1]);break;case 3:window.open("http://www.360buy.com/pcompare.aspx?s1="+proIDs[0]+"&s2="+proIDs[1]+"&s3="+proIDs[2]);break;case 4:window.open("http://www.360buy.com/pcompare.aspx?s1="+proIDs[0]+"&s2="+proIDs[1]+"&s3="+proIDs[2]+"&s4="+proIDs[3]);break;default:alert("\u8bf7\u9009\u62e92-4\u4ef6\u5546\u54c1\u8fdb\u884c\u5bf9\u6bd4\uff01");return}}function writeCompare(b,a){var c=readCookie("compare");if(c==null){c=""}c+=b+"||"+escape(a)+"|||";createCookie("compare",c)}function isCoo(){var a=readCookie("compare");if(a){var b=a.split("|||");var d="";for(var c=0;c<b.length-1;c++){d+="<li id='check_"+b[c].split("||")[0]+"'><a title='\u5220\u9664' class='close' onclick='reduceCompare("+b[c].split("||")[0]+")'></a>"+unescape(b[c].split("||")[1])+"</li>";proIDs.push(b[c].split("||")[0])}$("#comProlist").html(d);$("#compare").show();$(".comPro").show()}}function asyncScript(A,B){if(typeof A=="function"){var B=A,A=null}if(A){if(typeof A!="string"){return}var x=document.createElement("script");x.type="text/javascript";x.async=true;x.src=A;var s=document.getElementsByTagName("head")[0];s.appendChild(x);if(B){if(typeof B!="function"){return}if(!
  /*@cc_on!@*/
  0){x.onload=function(){B()}}else{x.onreadystatechange=function(){if(x.readyState=="loaded"||x.readyState=="complete"){B()}}}}}else{if(!B){return}setTimeout(function(){B()},0)}}var pannel={};pannel.gotop={settings:{element:null,target:"#header"},init:function(b,d){var c=this;$.extend(this.settings,b||{});if(d){d()}var a=function(){if(screen.width>=1280){c.render(0)}else{c.render(1)}};a();$(window).bind("scroll",function(){a()}).bind("resize",function(){a()})},render:function(b){var d=$(this.settings.element),g=$(this.settings.target);var f,c,e=$.browser.scroll().top+$.browser.client().height-d.height()-10+"px";switch(b){case 0:c=(g.width()>=1200)?1200:980;f=g.offset().left+c+"px";if($.browser.isIE6){d.css({left:f,top:e})}else{d.css({left:f,bottom:"0"})}break;case 1:if($.browser.isIE6){d.css({right:"0",top:e})}else{d.css({right:"0",bottom:"0"})}break}}};function getRandomObj(c,f){var b=0;for(var e=0;e<c.length;e++){b+=f[e]||1;if(!f[e]){f.push(1)}}var h=Math.ceil(Math.random()*b),g=[],a=[];for(var e=1;e<b+1;e++){g.push(e)}for(var e=0;e<c.length;e++){a[e]=g.slice(0,f[e]);g.splice(0,f[e])}for(var e=0;e<a.length;e++){for(var d=0;d<a[e].length;d++){if(h==a[e][d]){return c[e]}}}}function setRandomAds(a,d,g,b){var f=getRandomObj(a,d),e=document.getElementById(g),c;if(!f){return}if(b&&screen.width>=1280){f.width=f.width2;f.url=f.url2}else{f.width=f.width;f.url=f.url}c="<a href='"+f.link+"' target='_blank'><img width='"+f.width+"' height='"+f.height+"' alt='"+f.alt+"' app='image:poster' src='"+f.url+"' /></a>";if(e){e.innerHTML=c}}String.prototype.format=function(){var e=this,f=arguments.length;if(f>0){for(var d=0;d<f;d++){e=e.replace(new RegExp("\\{"+d+"\\}","g"),arguments[d])}}return e};function sBuilder(){this.strings=new Array();this.length=0;this.append=function(b){this.strings.push(b);this.length+=b.length};this.toString=function(h,g,e){var h=h?h:"",f=this.strings.join(h);if(g&&e){f=f.substr(g,e)}return f}}var loguri="http://csc.jd.com/log.ashx?type1=$type1$&type2=$type2$&data=$data$&pin=$pin$&referrer=$referrer$&callback=?";callback1=function(a){};log=function(l,h,o,n,m,j,g,f,e,d,c,b){var k="";for(i=2;i<arguments.length;i++){k=k+arguments[i]+"|||"}var a=loguri.replace(/\$type1\$/,escape(l));a=a.replace(/\$type2\$/,escape(h));a=a.replace(/\$data\$/,escape(k));a=a.replace(/\$pin\$/,escape(decodeURIComponent(readCookie("pin"))));a=a.replace(/\$referrer\$/,escape(document.referrer));$.getJSON(a,callback1)};mark=function(b,a){log(1,a,b)};document.domain=pageConfig.FN_getDomain();
  