function $(A){return _.getElementById(A)}function pageInit(){if("isIE"==b){IE()}else{if("isFF"==b){FF()}}Nifty("div#menu","small top");Nifty("#menu a","small transparent top");Nifty("div#Syn","tl bottom");Nifty("div#PageRank","small bottom");Nifty("div#refer_info","tl bottom");Nifty("div#respond","");Nifty("li.comment","tl tr");Nifty("div#content","bl");Nifty("div#sidebarL,div#sidebarR,div#content","same-height none")}function fixMenu(){if(t=$("menu")){var A=t.getElementsByTagName("a");for(var B=0;B<A.length;B++){var C=A[B].offsetWidth-20;if(C>0){A[B].style.width=C+"px"}}}}function FF(){if(ver<=2){moveInterval/=3;moveRate1*=1.5;moveRate2*=2}}function IE(){fixMenu();if(ver<=6){try{_.execCommand("BackgroundImageCache",false,true)}catch(A){}}}function Syn_mouseover(){Syn_mouseouted=false;clearTimeout(zoomOut_inter);if(pageOnLoad){Syn_zoomIn()}}function Syn_mouseout(){Syn_mouseouted=true;if(tween_opened){zoomOut_inter=setTimeout(Syn_zoomOut,800)}}function Syn_zoomIn(){if(!tween_started&&!tween_opened){z=setInterval(Syn_zoomIn_tween,30);tween_started=true}}function Syn_zoomOut(){if(!tween_started&&tween_opened){z=setInterval(Syn_zoomOut_tween,30);tween_started=true}}function Syn_zoomIn_tween(){height+=Math.round((zoomInHeight-height)*0.3);if(height>=zoomInHeight-1){height=zoomInHeight;clearInterval(z);tween_started=false;tween_opened=true;var A=parseInt($("sidebarL").lastChild.style.height);if((A-zoomInHeight)>0){$("sidebarL").lastChild.style.height=(A-zoomInHeight)+"px";zoomInFix=true}if(Syn_mouseouted){Syn_mouseout()}}feeds.style.height=height+"px"}function Syn_zoomOut_tween(){height-=Math.round((height-zoomOutHeight)*0.3);if(height-1<=zoomOutHeight){height=zoomOutHeight;clearInterval(z);tween_started=false;tween_opened=false;var A=parseInt($("sidebarL").lastChild.style.height);if(zoomInFix){$("sidebarL").lastChild.style.height=(A+zoomInHeight)+"px"}}feeds.style.height=height+"px"}function tweenSidebar(){if(val<end){var B=(end-val);var A=val+B*moveRate1;val=A;tweenDIV.style.right=A+"px";if(Math.round(A)>=Math.round(end)){sidebarEnd()}}else{if(val>end){var B=(val-end);var A=val-3000/B*moveRate2;if(A<end){A=end}val=A;tweenDIV.style.right=A+"px";if(Math.round(A)<=Math.round(end)){sidebarEnd()}}}}function sidebarShowEnd(){if(tweenDIV==$("sidebarR")){tweenDIV=$("sidebarL");end=sidebarL_end;val=sidebarL_start}else{clearInterval(sidebar_inter);_.documentElement.style.overflowX="auto";hasHide=false;tag_show()}}function sidebarHideEnd(){if(tweenDIV==$("sidebarL")){tweenDIV=$("sidebarR");end=sidebarR_start;val=sidebarR_end}else{clearInterval(sidebar_inter);hasHide=true;tag_hide()}}function showSidebar(){if(!hasHide){return}hasHide=false;end=sidebarR_end;val=sidebarR_start;if(tweenDIV=$("sidebarR")){sidebarEnd=sidebarShowEnd;sidebar_inter=setInterval(tweenSidebar,moveInterval)}}function move_hide(){if(hasHide){return}hasHide=true;tweenDIV=$("sidebarL");end=sidebarL_start;val=sidebarL_end;sidebarEnd=sidebarHideEnd;_.documentElement.style.overflowX="hidden";sidebar_inter=setInterval(tweenSidebar,moveInterval)}function doApi(){var A=$("taotao")}function creatTaoTao(){return;var A=document.createElement("script");A.type="text/javascript";A.charset="utf-8";A.src="http://qq.54bq.com/t/api/?81160086";if(document.all){A.onreadystatechange=function(){if(this.readyState==4||this.readyState=="complete"||this.readyState=="loaded"){doApi()}}}else{A.onload=function(){doApi()}}document.body.appendChild(A)}function get_tags(){var A=$("st-tag-cloud");var B=$("tag-cloud");if(A&&B){B.innerHTML=A.innerHTML;itemArray=B.getElementsByTagName("a");itemCount=itemArray.length;get_tags_array()}}function setTagCloudStyle(){var colors=new Array("color0","color1","color2","color3","color4","color5","color6");var sizes=new Array("size0","size1","size2","size3","size4","size5","size6");var weights=new Array("weight0","weight1","weight2","weight3","weight4","weight5","weight6");var colorsLen=colors.length;var sizesLen=sizes.length;var weightsLen=weights.length;var tagCloud=document.getElementById("st-tag-cloud");var tagLinks=tagCloud.getElementsByTagName("a");var tagLinksLen=tagLinks.length;for(i=0;i<tagLinksLen;i++){tagLinks[i].className=colors[Math.floor(colorsLen*Math.random())]+" "+sizes[Math.floor(sizesLen*Math.random())]+" "+weights[Math.floor(weightsLen*Math.random())]}}if(document.addEventListener){window.addEventListener('load',setTagCloudStyle,false)}else{window.attachEvent('onload',setTagCloudStyle)}function get_tags_array(){var A=0;while(A<itemCount){itemHash.push(A);A++}}function tag_show(){get_tags();tag_v="visible";tag_inter=setInterval(fadeInOutTag,50)}function tag_hide(){get_tags_array();tag_v="hidden";tag_inter=setInterval(fadeInOutTag,50)}function fadeInOutTag(){var E=4;var D=1;while(D<=E){var C=itemHash.length;if(C>0){var B=Math.floor(Math.random()*C);var A=itemHash[B];itemHash.splice(B,1);itemArray[A].style.visibility=tag_v}else{clearInterval(tag_inter);if(tag_v=="visible"){if(typeof(onComplete)=="function"){onComplete()}Nifty("div#sidebarL,div#sidebarR,div#content","same-height none")}break}D++}}function msnMe(){window.location="msnim:chat?contact="+Acount+"@"+Domain}function qqMe(){window.location="Tencent://Message/?uin="+uin}function hide_refer_info(){hide_target($("refer_info"))}function hide_target(A){A.style.visibility="hidden"}function ffdoc_keydown(A){if(A.ctrlKey&&A.keyCode==13){keySubmit()}else{if(A.altKey&&A.keyCode==83){keySubmit()}}}function keydown(){if(event.ctrlKey&&window.event.keyCode==13){keySubmit()}else{if(event.altKey&&window.event.keyCode==83){keySubmit()}}}function ffdoc_click(A){if(A.button==0){onclick(A.target)}}function doc_click(A){A=event||A;A=A.srcElement;onclick(A)}function toComment(){scrollToCommInter=setInterval(scrollToComm,15)}function scrollToComm(){var C=_.documentElement;var B;if("isSF"==b){B=_.body}else{B=C}if(B.scrollTop<(C.scrollHeight-C.clientHeight)){var A=5+Math.floor(B.scrollTop*0.5);if(A>20){sp=20}B.scrollTop+=A}else{clearInterval(scrollToCommInter);if(commentform){if(commentform.author){commentform.author.focus()}else{commentform.comment.focus()}}}}function keySubmit(){if(commentform){if(commnet_onsubmit()){commentform.submit()}}}function SlyarErrors(){return true}function toggle(){theObj=document.getElementById('toux').style;if(theObj.display=="none")theObj.display="block";else theObj.display="none"}window.onerror=SlyarErrors;function page_onload(){pageOnLoad=true;pageInit();feeds=$("feeds");if(t=$("Syn")){t.onmouseover=Syn_mouseover;t.onmouseout=Syn_mouseout}if(t=$("submitBtn")){t.onmouseover=function(){this.style.backgroundPosition="-50px -650px"};t.onmouseout=function(){this.style.backgroundPosition="0px -650px"}}if(t=$("searchForm")){var B=t.s;var A="搜索";t.onsubmit=function(){};function D(){B.style.cssText="color:#bebebe";B.value=A}function C(){B.style.cssText="color:#333333";B.value=""}B.onfocus=function(){if(B.value==A){C()}};B.onblur=function(){if(B.value==""){D()}};D()}if(t=$("SubmitComment")){t.onmouseout=function(){this.style.backgroundPosition="-180px -620px"};t.onmouseover=function(){this.style.backgroundPosition="-180px -646px"}}if(commentform=$("commentform")){commentform.onsubmit=commnet_onsubmit}if(t=$("Qme")){t.onmouseout=function(){this.style.backgroundPosition="0px -208px"};t.onmouseover=function(){this.style.backgroundPosition="0px -211px"};t.onclick=qqMe}if(t=$("Mme")){t.onmouseout=function(){this.style.backgroundPosition="-50px -208px"};t.onmouseover=function(){this.style.backgroundPosition="-50px -211px"};t.onclick=msnMe}if(t=$("scrollto")){t.innerHTML="占个座位先";t.onclick=function(){toComment();return false}}if(t=$("refer_info")){t.onclick=hide_refer_info}if(typeof(onLoad)=="function"){onLoad()}loadOthers();showSidebar()}function loadOthers(){creatTaoTao();setInterval(creatTaoTao,5*60000)}function commnet_onsubmit(){var A=formCheck();if(A){setInterval(submiting,300);t=$("SubmitComment");t.disabled=true;t.style.cursor="default"}return A}function formTip(B,C,D){var A=D||"#FF0000";B.style.borderColor=A;B.title=C;if(A=="#FF0000"){noError=false;B.focus()}}var _=document;var sidebarR_start=-300;var sidebarR_end=-0.9;var sidebarL_start=-200;var sidebarL_end=99.1;var moveInterval=15;var moveRate1=0.2;var moveRate2=2;var height=0;var zoomInHeight=160;var zoomOutHeight=0;var noError=true;var hasHide=true;var pageOnLoad=false;var tween_started=false;var tween_opened=false;var end,val,zoomInFix,Syn_mouseouted;var sidebar_inter,tag_inter,zoomOut_inter,scrollToCommInter;var sidebarEnd,tag_v;var t,feeds,tweenDIV,commentform;var itemArray,itemCount,itemHash=[];var b,ver,s;var ua=navigator.userAgent;var uin=81160086;var Acount="aspol";var Domain="vip.qq.com";if((i=ua.indexOf("Firefox"))>=0){b="isFF";ver=parseFloat(ua.substr(i+8))}else{if((i=ua.indexOf("MSIE"))>=0){b="isIE";ver=parseFloat(ua.substr(i+4))}else{if((i=ua.indexOf("Safari"))>=0){b="isSF";ver=parseFloat(ua.substr(i+4))}}}window.onload=page_onload;if(_.addEventListener){_.addEventListener("click",ffdoc_click,false);_.addEventListener("keydown",ffdoc_keydown,false)}else{_.onclick=doc_click;_.onkeydown=keydown}function watchObj(C){var B="";for(var A in C){B+=A+'="'+C[A]+'" '}return B}var niftyOk=(_.getElementById&&_.createElement&&Array.prototype.push);var niftyCss=false;String.prototype.find=function(B){return(this.indexOf(B)>=0?true:false)};var oldonload=window.onload;if(typeof(NiftyLoad)!="function"){NiftyLoad=function(){}}if(typeof(oldonload)=="function"){window.onload=function(){oldonload();AddCss();NiftyLoad()}}else{window.onload=function(){AddCss();NiftyLoad()}}function AddCss(){niftyCss=true;return;var B=CreateEl("link");B.setAttribute("type","text/css");B.setAttribute("rel","stylesheet");B.setAttribute("href","/css/niftyCorners.css");B.setAttribute("media","screen");_.getElementsByTagName("head")[0].appendChild(B)}function Nifty(F,I){if(niftyOk==false){return}if(niftyCss==false){AddCss()}var H,J=F.split(","),G=0;if(I==null){I=""}if(I.find("fixed-height")){G=getElementsBySelector(J[0])[0].offsetHeight}for(H=0;H<J.length;H++){Rounded(J[H],I)}if(I.find("height")){SameHeight(F,G)}}function Rounded(G,J){var I,H="",K="",L=new Array();if(J!=""){J=J.replace("left","tl bl");J=J.replace("right","tr br");J=J.replace("top","tr tl");J=J.replace("bottom","br bl");J=J.replace("transparent","alias");if(J.find("tl")){H="both";if(!J.find("tr")){H="left"}}else{if(J.find("tr")){H="right"}}if(J.find("bl")){K="both";if(!J.find("br")){K="left"}}else{if(J.find("br")){K="right"}}}if(H==""&&K==""&&!J.find("none")){H="both";K="both"}L=getElementsBySelector(G);for(I=0;I<L.length;I++){FixIE(L[I]);if(H!=""){AddTop(L[I],H,J)}if(K!=""){AddBottom(L[I],K,J)}}}function AddTop(M,Q,P){var R=CreateEl("b"),L=4,T="",O,S,N="r",V,U;R.style.marginLeft="-"+getPadding(M,"Left")+"px";R.style.marginRight="-"+getPadding(M,"Right")+"px";if(P.find("alias")||(U=getBk(M))=="transparent"){U="transparent";V="transparent";T=getParentBk(M);N="t"}else{V=getParentBk(M);T=Mix(U,V)}R.style.background=V;R.className="niftycorners";O=getPadding(M,"Top");if(P.find("small")){R.style.marginBottom=(O-2)+"px";N+="s";L=2}else{if(P.find("big")){R.style.marginBottom=(O-10)+"px";N+="b";L=8}else{R.style.marginBottom=(O-5)+"px"}}for(S=1;S<=L;S++){R.appendChild(CreateStrip(S,Q,U,T,N))}M.style.paddingTop="0";M.insertBefore(R,M.firstChild)}function AddBottom(M,Q,P){var R=CreateEl("b"),L=4,T="",O,S,N="r",V,U;R.style.marginLeft="-"+getPadding(M,"Left")+"px";R.style.marginRight="-"+getPadding(M,"Right")+"px";if(P.find("alias")||(U=getBk(M))=="transparent"){U="transparent";V="transparent";T=getParentBk(M);N="t"}else{V=getParentBk(M);T=Mix(U,V)}R.style.background=V;R.className="niftycorners";O=getPadding(M,"Bottom");if(P.find("small")){R.style.marginTop=(O-2)+"px";N+="s";L=2}else{if(P.find("big")){R.style.marginTop=(O-10)+"px";N+="b";L=8}else{R.style.marginTop=(O-5)+"px"}}for(S=L;S>0;S--){R.appendChild(CreateStrip(S,Q,U,T,N))}M.style.paddingBottom=0;M.appendChild(R)}function CreateStrip(J,I,L,K,H){var G=CreateEl("b");G.className=H+J;G.style.backgroundColor=L;G.style.borderColor=K;if(I=="left"){G.style.borderRightWidth="0";G.style.marginRight="0"}else{if(I=="right"){G.style.borderLeftWidth="0";G.style.marginLeft="0"}}return(G)}function CreateEl(B){return(_.createElement(B))}function FixIE(B){if(B.currentStyle!=null&&B.currentStyle.hasLayout!=null&&B.currentStyle.hasLayout==false){B.style.display="inline-block"}}function SameHeight(I,N){var K,P=I.split(","),L,O,M=[],J;for(K=0;K<P.length;K++){L=getElementsBySelector(P[K]);M=M.concat(L)}for(K=0;K<M.length;K++){if(M[K].offsetHeight>N){N=M[K].offsetHeight}M[K].style.height="auto"}for(K=0;K<M.length;K++){J=N-M[K].offsetHeight;if(J>0){L=CreateEl("b");L.className="niftyfill";L.style.height=J+"px";nc=M[K].lastChild;if(nc.className=="niftycorners"){M[K].insertBefore(L,nc)}else{M[K].appendChild(L)}}}}function getElementsBySelector(S){var h,Q,T="",d="",U=S,X="",Y,R,f,Z,V=[],a=[],c;if(S.find("#")){if(S.find(" ")){V=S.split(" ");var g=V[0].split("#");if(g.length==1){return(a)}f=$(g[1]);if(f){W=f.getElementsByTagName(V[1]);for(h=0;h<W.length;h++){a.push(W[h])}}return(a)}else{V=S.split("#");U=V[0];T=V[1];if(T!=""){f=$(T);if(f){a.push(f)}return(a)}}}if(S.find(".")){V=S.split(".");U=V[0];d=V[1];if(d.find(" ")){V=d.split(" ");d=V[0];X=V[1]}}var W=_.getElementsByTagName(U);if(d==""){for(h=0;h<W.length;h++){a.push(W[h])}return(a)}for(h=0;h<W.length;h++){c=W[h].className.split(" ");for(Q=0;Q<c.length;Q++){if(c[Q]==d){if(X==""){a.push(W[h])}else{Y=W[h].getElementsByTagName(X);for(R=0;R<Y.length;R++){a.push(Y[R])}}}}}return(a)}function getParentBk(D){var F=D.parentNode,E;while(F.tagName.toUpperCase()!="HTML"&&(E=getBk(F))=="transparent"){F=F.parentNode}if(E=="transparent"){E="#FFFFFF"}return(E)}function getBk(C){var D=getStyleProp(C,"backgroundColor");if(D==null||D=="transparent"||D.find("rgba(0, 0, 0, 0)")){return("transparent")}if(D.find("rgb")){D=rgb2hex(D)}return(D)}function getPadding(D,F){var E=getStyleProp(D,"padding"+F);if(E==null||!E.find("px")){return(0)}return(parseInt(E))}function getStyleProp(C,D){if(C.currentStyle){return(C.currentStyle[D])}if(_.defaultView.getComputedStyle){return(_.defaultView.getComputedStyle(C,"")[D])}return(null)}function rgb2hex(H){var J="",G,K,L;var I=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var K=I.exec(H);for(L=1;L<4;L++){G=parseInt(K[L]).toString(16);if(G.length==1){J+="0"+G}else{J+=G}}return("#"+J)}function Mix(L,M){var N,O,P,I,J,K=new Array(3);if(L.length==4){O=1}else{O=2}if(M.length==4){P=1}else{P=2}for(N=0;N<3;N++){I=parseInt(L.substr(1+O*N,O),16);if(O==1){I=16*I+I}J=parseInt(M.substr(1+P*N,P),16);if(P==1){J=16*J+J}K[N]=Math.floor((I*50+J*50)/100);K[N]=K[N].toString(16);if(K[N].length==1){K[N]="0"+K[N]}}return("#"+K[0]+K[1]+K[2])}pageInit();function onLoad(){}function onComplete(){if(t=$("SC")){var B=t.getElementsByTagName("img");for(var A=0;A<B.length;A++){if(B[A].src.indexOf("/templates/fuyunblog/images/t.png")>0){B[A].src=B[A].alt;B[A].alt=""}}}if(t=$("bookmark_div")){t.innerHTML=genBookmark()}if(t=$("logos")){t.innerHTML=''}}function add_ads(){if(typeof(show_ads)=="function"){google_ad_slot="9555510625";google_ad_width=468;google_ad_height=60;google_ad_slot="0179389168";google_ad_width=728;google_ad_height=90;if(t=$("ads_b1")){t.innerHTML=show_ads()}}}function genBookmark(){var E=_.title;var C=window.location;var F="";var A={shouke:{name:"收藏到收客",url:"http://www.shouker.com/mc/col/post2.aspx?title="+E+"&surl="+C+""},qqbookmark:{name:"QQ书签",url:"http://shuqian.qq.com/post?title="+E+"&uri="+C+""},baidu:{name:"百度搜藏",url:"http://cang.baidu.com/do/add?it="+E+"&iu="+C+"&dc=&fr=ien#nw=1"},google_bmarks:{name:"Google 书签",url:"  http://www.google.com/bookmarks/mark?op=edit&bkmk="+C+"&title="+E+""},misterwong:{name:"MisterWong",url:"http://www.mister-wong.cn/addurl/?bm_url="+C+"&bm_description="+E+""},digbuzz:{name:"我挖网",url:"http://www.digbuzz.com/submit.php?url="+C+"&qs_title="+E+""},gomobi:{name:"自由移动",url:"http://www.mobile4free.mobi/submit.php?url="+C+"&qs_title="+E+""},hexun:{name:"和讯网摘",url:"http://bookmark.hexun.com/post.aspx?title="+E+"&url="+C+""},tolib:{name:"统录网",url:"http://www.tolib.com/geturl.php?url="+C+"&title="+E+""},yahoo_myweb:{name:"雅虎收藏",url:"http://myweb.cn.yahoo.com/popadd.html?url="+C+"&title="+E+""},"sina-vivi":{name:"新浪 vivi",url:"http://vivi.sina.com.cn/collect/icollect.php?pid=28&title="+E+"&url="+C+""},technorati:{name:"Technorati",url:"http://technorati.com/faves?add="+C+""},windows_live:{name:"Windows Live",url:"https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url="+C+"&title="+E+"&top=1"},fav9:{name:"就喜欢",url:"http://www.9fav.com/profile/user_url/add?u="+C+"&t="+E+""},quzhai:{name:"趣摘网",url:"http://www.quzhai.com/main/newurl.jsp?title="+E+"&url="+C+""},yesky:{name:"天极网摘",url:" http://hot.yesky.com/dp.aspx?t="+E+"&u="+C+""},facebook:{name:"Facebook",url:"http://www.facebook.com/share.php?u="+C+""},digg:{name:"Digg",url:"http://digg.com/submit?phase=2&url="+C+"&title="+E+""}};for(var D in A){var B=A[D].name;var C=A[D].url;F+='<a target="_blank" href="'+C+'"><img id="'+D+'" src="/templates/fuyunblog/images/t.png" title="'+B+'"/></a>'}return F};
