(function(){var e=true,p=null,r=false,u=document,v=window.i={},y=navigator.userAgent.toLowerCase(),ba=(y.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],ca=/webkit/.test(y),z=/opera/.test(y),A=/msie/.test(y)&&!/opera/.test(y),B=r,C=r,D=[];function E(){if(!C&&(C=e,D)){for(var a=0;a=-400&&b<=800+d}d&&(c.f(),T(c.b(),c.d(),c.a))}} function ha(){if(window.addEventListener)window.addEventListener("scroll",function(){U()},r),window.addEventListener("resize",function(){U()},r);else if(window.attachEvent)window.attachEvent("onscroll",function(){U()}),window.attachEvent("onresize",function(){U()});else if(u.getElementById)window.onload=function(){for(var a=0;a=-b)t?s-=f:s+=f,a.style[c]=s+"px",setTimeout(arguments.callee,1);else{var d="";t?(q=r,d="0 0"):(q=e,d="-"+(N+1)+"px 0");w=r;s=t?-b:0;a.style[c]=s+"px";a.children[0].children[0].style.backgroundPosition=d}})()}function b(a){var c=a.className=="wumii-popup-relatedItems",b=u.documentElement.clientHeight||u.body.clientHeight,f=u.documentElement.scrollHeight||u.body.scrollHeight; c&&f=G&&!q?d(a,"in"):b+f=m?j.left=h-m+"px":(j.left=h+"px",m=x.children[1].style,m.margin="0px",m.left=h+k/2-10+"px");O-=g;typeof u.body.style.maxHeight!="undefined"&&(O-=20);j.top=O+"px";V(u.getElementById("wumiiCloseLoginTips"),"click",function(){j.display="none"});if(u.getElementById("wumiiBindingBtns")){var o=p;V(u.getElementById("wumiiLoginTipsContent"),"click",function(l){l=l||window.event;l=l.target||l.srcElement;if(l.nodeName=="A")if(l.id=="wumiiNoTipsBtn")f(Q+"login/disable"), x.parentNode.removeChild(x);else if(l.className=="wumii-reg-btn"||l.className=="wumii-binding-btn")o!=p&&clearInterval(o),o=setInterval(function(){f(Q+"login/check?url="+a)},1500),window.loginedCheck=o})}}}}})}function w(a){V(a,"click",function(){var a=Q+"recommendations?ts="+(new Date).getTime()+"&url="+encodeURIComponent(H);u.getElementById("wumiiLoading").style.display="inline";typeof wumiiSitePrefix!="undefined"&&(a+="&sitePrefix="+encodeURIComponent(wumiiSitePrefix));f(a)})}function q(){return"http://static.wumii.cn/resources/images/related_item_default/"+ (Math.floor(Math.random()*100)+1)+".jpg"}function F(a){var b=window.JSON;return b&&b.parse?b.parse(a):eval("("+a+")")}function N(a,b){V(a,"mousedown",function(){var a=this.getAttribute("href"),l=this.getAttribute("origLink"),c=this.getAttribute("redirectUrl");l||(this.setAttribute("origLink",a),V(this,"mouseup",function(){var a=this;setTimeout(function(){a.setAttribute("href",a.getAttribute("origLink"))},50);if(A&&/6.0|7.0|8.0/.test(ba))a.getAttribute("target")=="_blank"?window.open(a.getAttribute("href")): location.href=a.getAttribute("href")}),l=this.getAttribute("origLink"));c||(c="http://app.wumii.com/ext/redirect?url="+encodeURIComponent(l)+"&ts="+(new Date).getTime()+"&from="+b+"&ref=relatedItems");this.setAttribute("href",c)})}function ja(a){V(a,"mouseover",function(){this.style.borderTopColor="#ffaf00"});V(a,"mouseout",function(){this.style.borderTopColor="#327dc8"})}function W(a,c,d){for(var j=d.getAttribute("fromUrl"),h=0;h/g,">").replace(/"/g,""").replace(/'/g,"'"))||""}),g=u.createElement("div");g.innerHTML=k;k=g.children[0];if(b)g=["b3786b","d2c1a8","d46646","d28fa8","c84f54"],k.children[0].children[0].style.background="#"+g[h%g.length];if(g=k.getElementsByTagName("img")[0]){var m=f.thumbnailUrl;m?g.setAttribute("wsrc",m):b&&(g.parentNode.removeChild(g),g=p)}if(k.className=="wumii-text-li"&&k.getElementsByTagName("span")[0]&& (g=k.getElementsByTagName("span")[0],g.className=="wumii-hot-item"&&(g.appendChild(u.createTextNode(h+1)),h<3)))g.style.backgroundPosition="-16px 0";g=k;g.nodeName!=="A"&&(g=g.getElementsByTagName("a")[0]);f.openInNewWindow&&g.setAttribute("target","_blank");d.appendChild(k);N(g,j);k.className==="wumii-popup-item"&&ja(k)}}function G(a,b,c,d,h){var f=b.children[0];if(h)b.className=h;if(d)f.innerHTML=d;W(a,c,b.children[1]);return b}function X(a,b,c){if(c.length==0)return"";var d=u.createElement("div"); d.innerHTML=a;a=d.children[0];W(c,b,(a.lastElementChild||a.lastChild).children[0]);u.body.appendChild(a);b=a.getAttribute("wid");c=a.children[0];d=a.lastElementChild||a.lastChild;a.style[b]=-d.offsetWidth+"px";if(!a.style.width)a.style.width=d.offsetWidth+c.offsetWidth+"px";if(d.offsetHeight<132)d.style.height="132px";(new ka(a,b)).g();return a}function t(a,b){var c=a.lastElementChild||a.lastChild,d=c.lastElementChild||c.lastChild;if(d.className=="wumii-footer"){var h=d.children[1];if(h){var f=parseInt(c.getAttribute("wmode")), k=h.getAttribute("item-width"),c=h.getAttribute("wsrc"),g=new Image;g.onload=function(){if(f!=1&&b>0){var a=d.offsetWidth+1;a>0&&a/kb/l?(a=c*l/b,b=l):(a=d,b=b*d/c);var f=(a-d)/2,j=(b-l)/2,c=this.style;c.left=-f+2+"px";c.top=-j+2+"px";c.width=a+"px";c.height=b+"px";c.clip="rect("+j+"px "+(f+d)+"px "+(j+l)+"px "+f+"px)";if(window.XMLHttpRequest==void 0&&ActiveXObject!=void 0){a=this.parentNode.getElementsByTagName("shape");for(d=0;d0&&(m=G(g,t.cloneNode(e),d,"\u6765\u81ea\u65e0\u89c5\u7f51\u7edc\u7684\u76f8\u5173\u6587\u7ae0","wumii-external"), c.insertBefore(m,q),o=Math.max(o,g.length));c.removeChild(t);g={html:c,itemsSize:o}}if(g!=""){m=u.getElementsByTagName("div");o=[];for(c=0;c