jQuery(document).ready(function(a){a(".reply").click(function(){var b='"#'+a(this).parent().attr("id")+'"';var c=a(this).prevAll().find("cite:first").text();a("#comment").attr("value","<a href="+b+">@"+c+" </a>").focus()});a(".cancel-comment-reply a").click(function(){a("#comment").attr("value","")})});$("#tab-title span").click(function(){$(this).addClass("selected").siblings().removeClass();$("#tab-content > ul").slideUp("1500").eq($("#tab-title span").index(this)).slideDown("1500")});jQuery(document).ready(function(){new tooltip_19(".recentcommentslink")});jQuery.noConflict();var tooltip_19=function(c){var b=10;var d=20;var a;jQuery("a"+c).hover(function(g){var f=jQuery(this).attr("id");a=jQuery("#"+f+"_d").html();jQuery("body").append("<div id='tooltip_19'>"+a+"</div>");jQuery("#tooltip_19").css("top",(g.pageY+d)+"px").css("right",(jQuery(window).width()-g.pageX+b)+"px").fadeIn("fast").show()},function(){jQuery("#tooltip_19").remove()});jQuery("a"+c).mousemove(function(f){jQuery("#tooltip_19").css("top",(f.pageY+d)+"px").css("right",(jQuery(window).width()-f.pageX+b)+"px").show()})};$("#icontent").infinitescroll({navSelector:"#navigation",nextSelector:"#navigation a",itemSelector:"#icontent div.post",loadingImg:"http://www.tulongzhiji.com/mopvhs/wp-content/themes/zsofa-modified-version/images/ajax-loader.gif",loadingText:"loading...",animate:true,extraScrollPx:150,donetext:"后面没有咯...",},function(a){});$(window).unbind(".infscr");$("#navigation a").click(function(){$(document).trigger("retrieve.infscr");return false});$(document).ajaxError(function(b,c,a){if(c.status==404){$("#navigation").remove()}});$(".title a_").live("click",function(){$(this).text("页面载入中……");window.location=$(this).attr("href")});$(".fn a").attr({target:"_blank"});jQuery(document).ready(function(a){a('a[href*="#"]').not('a[href*="respond"]').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);b=b.length&&b||a("[name="+this.hash.slice(1)+"]");if(b.length){var c=b.offset().top;a("html,body").animate({scrollTop:c},1000);return false}}})});jQuery(document).ready(function(a){var b=300;a("#navigations a").each(function(){a(this).stop().animate({marginTop:"-80px"},b+=150)});a("#navigations > li").hover(function(){a("a",a(this)).stop().animate({marginTop:"-2px"},200)},function(){a("a",a(this)).stop().animate({marginTop:"-80px"},200)})});var scrollSpeed=150;var step=1;var current=0;var imageWidth=2247;var headerWidth=1280;var restartPosition=-(imageWidth-headerWidth);function scrollBg(){current-=step;if(current==restartPosition){current=0}$("#clouds").css("background-position",current+"px 0")}var init=setInterval("scrollBg()",scrollSpeed);$("#sidebar_ ul li a,.post h2 a").hover(function(){$(this).stop().animate({marginLeft:"+=8"},250)},function(){$(this).stop().animate({marginLeft:"0"},150)});$("#go-to-down").click(function(){$("html,body").animate({scrollTop:$("#footer").offset().top},800)});$("#go-to-comt").click(function(){$("html,body").animate({scrollTop:$("#comments").offset().top},800)});$("#addcomment").click(function(){$("html,body").animate({scrollTop:$("#respond").offset().top},800)});$("#gotocomments").click(function(){$("html,body").animate({scrollTop:$("#comments").offset().top},800)});function goTop(f,e){f=f||0.1;e=e||16;var c=0;var l=0;var b=0;var j=0;var a=0;var g=0;if(document.documentElement){c=document.documentElement.scrollLeft||0;l=document.documentElement.scrollTop||0}if(document.body){b=document.body.scrollLeft||0;j=document.body.scrollTop||0}var a=window.scrollX||0;var g=window.scrollY||0;var k=Math.max(c,Math.max(b,a));var i=Math.max(l,Math.max(j,g));var d=1+f;window.scrollTo(Math.floor(k/d),Math.floor(i/d));if(k>0||i>0){var h="goTop("+f+", "+e+")";window.setTimeout(h,e)}};

