(function(){var f=true,q=null,t=false,x=document,z=window.i={},A=navigator.userAgent.toLowerCase(),ha=(A.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],ia=/webkit/.test(A),B=/opera/.test(A),D=/msie/.test(A)&&!/opera/.test(A),E=!!A.match(/applewebkit.*mobile.*/),G=/iPad/i.test(A),H=t,I=t,L=[];function M(){if(!I&&(I=f,L)){for(var a=0;a=-400&&c<=800+e}e&&(b.f(),W(b.b(),b.d(),b.a))}} function na(){if(window.addEventListener)window.addEventListener("scroll",function(){X()},t),window.addEventListener("resize",function(){X()},t);else if(window.attachEvent)window.attachEvent("onscroll",function(){X()}),window.attachEvent("onresize",function(){X()});else if(x.getElementById)window.onload=function(){for(var a=0;a=-c)m?s-=g:s+=g,a.style[b]=s+"px",setTimeout(arguments.callee,1);else{var e="";m?(w=t,e="0 0"):(w=f,e="-"+(C+1)+"px 0");v=t;s=m?-c:0;a.style[b]=s+"px";a.children[0].children[0].style.backgroundPosition=e}})()}function c(a){var b=a.className=="wumii-popup-relatedItems",c=x.documentElement.clientHeight||x.body.clientHeight,g=x.documentElement.scrollHeight||x.body.scrollHeight; b&&g=C&&!w?e(a,"in"):c+g=p?l.left=y-p+"px":(l.left=y+"px",p=k.children[1].style,p.margin="0px",p.left=y+h/2-10+"px");c-=j;typeof x.body.style.maxHeight!="undefined"&&(c-=20);l.top=c+"px";Y(x.getElementById("wumiiCloseLoginTips"),"click",function(){l.display="none"});if(x.getElementById("wumiiBindingBtns")){var r=q;Y(x.getElementById("wumiiLoginTipsContent"),"click",function(n){n=n||window.event;n=n.target||n.srcElement;if(n.nodeName=="A")if(n.id=="wumiiNoTipsBtn")g(T+"login/disable"), k.parentNode.removeChild(k);else if(n.className=="wumii-reg-btn"||n.className=="wumii-binding-btn")r!=q&&clearInterval(r),r=setInterval(function(){g(T+"login/check?url="+a)},1500),window.loginedCheck=r})}}}}})}function K(a){Y(a,"click",function(){var a=T+"recommendations?ts="+(new Date).getTime()+"&url="+encodeURIComponent(F);x.getElementById("wumiiLoading").style.display="inline";typeof wumiiSitePrefix!="undefined"&&(a+="&sitePrefix="+encodeURIComponent(wumiiSitePrefix));g(a)})}function C(){return"http://static.wumii.cn/resources/images/related_item_default/"+ (Math.floor(Math.random()*100)+1)+".jpg"}function aa(a){var d=window.JSON;return d&&d.parse?d.parse(a):eval("("+a+")")}function pa(a){var d={x:0,y:0};if(typeof window.pageXOffset!="undefined")d.x=window.pageXOffset,d.y=window.pageYOffset;else if(typeof document.documentElement!="undefined")d.x=document.documentElement.scrollLeft,d.y=document.documentElement.scrollTop;else if(typeof document.body!="undefined")d.x=document.body.scrollLeft,d.y=document.body.scrollTop;d.x+=a.clientX;d.y+=a.clientY;return d} function qa(a){for(var a=a.split("&"),d=0;d/g,">").replace(/"/g,""").replace(/'/g,"'")}),j=x.createElement("div");j.innerHTML=h;h=j.children[0];if(c)j=["b3786b","d2c1a8","d46646","d28fa8","c84f54"],h.children[0].children[0].style.background="#"+j[e%j.length];if(j=h.getElementsByTagName("img")[0]){var p=o.thumbnailUrl;p?j.setAttribute("wsrc",p):c&&(j.parentNode.removeChild(j),j=q)}if(h.className=="wumii-text-li"&&h.getElementsByTagName("span")[0]&&(j=h.getElementsByTagName("span")[0], j.className=="wumii-hot-item"&&(j.appendChild(x.createTextNode(e+1)),e<3)))j.style.backgroundPosition="-16px 0";j=h;j.nodeName!=="A"&&(j=j.getElementsByTagName("a")[0]);p=o.clickUrl;(o.openInNewWindow||p)&&j.setAttribute("target","_blank");b.appendChild(h);sa(j,l);h.className==="wumii-popup-item"&&s(h)}}function ba(a,d,b,c,e){var o=d.children[0];if(e)d.className=e;if(c)o.innerHTML=c;J(a,b,d.children[1]);return d}function ca(a,d,b){if(b.length==0)return"";var c=x.createElement("div");c.innerHTML=a; a=c.children[0];J(b,d,(a.lastElementChild||a.lastChild).children[0]);x.body.appendChild(a);d=a.getAttribute("wid");b=a.children[0];c=a.lastElementChild||a.lastChild;a.style[d]=-c.offsetWidth+"px";if(!a.style.width)a.style.width=c.offsetWidth+b.offsetWidth+"px";if(c.offsetHeight<132)c.style.height="132px";(new wa(a,d)).g();return a}function ta(a,d){var b=a.lastElementChild||a.lastChild,c=b.lastElementChild||b.lastChild;if(c.className=="wumii-footer"){var e=c.children[1];if(e){var o=parseInt(b.getAttribute("wmode")), h=e.getAttribute("item-width"),b=e.getAttribute("wsrc"),j=new Image;j.onload=function(){if(o!=1&&d>0){var a=c.offsetWidth+1;a>0&&a/hc/e?(a=d*e/c,c=e):(a=b,c=c*b/d);var n=(a-b)/2,k=(c-e)/2,d=this.style;d.left=-n+2+"px";d.top=-k+2+"px";d.width=a+"px";d.height=c+"px";d.clip="rect("+k+"px "+(n+b)+"px "+(k+e)+"px "+n+"px)";if(window.XMLHttpRequest==void 0&&ActiveXObject!=void 0){a=this.parentNode.getElementsByTagName("shape");for(b=0;b0&&(r=ba(p,w.cloneNode(f), d,"\u6765\u81ea\u65e0\u89c5\u7f51\u7edc\u7684\u76f8\u5173\u6587\u7ae0","wumii-external"),b.insertBefore(r,s),u=Math.max(u,p.length));b.removeChild(w);p={html:b,itemsSize:u}}if(p!=""){r=x.getElementsByTagName("div");u=[];for(b=0;b