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