var trackbackShowText=behaviourL10n.trackbackShowText,trackbackHideText=behaviourL10n.trackbackHideText,errorText=behaviourL10n.searchError,searchText=behaviourL10n.searchPrompt+" ",replyHideMany=behaviourL10n.replyHideMany,replyShowMany=behaviourL10n.replyShowMany,replyHideOne=behaviourL10n.replyHideOne,replyShowOne=behaviourL10n.replyShowOne;depth=behaviourL10n.nestDepth;jQuery(document).ready(function(b){b("input[name=s]").each(function(){if(b(this).attr("value")===""||b(this).attr("value")===undefined){b(this).attr({value:searchText})}b(this).focus(function(){if(b(this).attr("value")==searchText){b(this).attr({value:""})}b(this).addClass("focused")});b(this).blur(function(){if(b(this).attr("value")===""||b(this).attr("value")===undefined){b(this).attr({value:searchText})}b(this).removeClass("focused")})});b("form:has(input[name=s])").submit(function(){var c=b(this).find("input[name=s]").attr("value");if(c===""||c===searchText||c===undefined){b(this).append('
'+errorText+"
").children(".errorMessage").animate({top:"50px",opacity:0},1000,"swing",function(){b(this).remove()});return false}else{return true}});b("#commentForm").submit(function(){var c=false;b(this).find(".vital").each(function(){var d=b(this).attr("value");if(d===undefined||d===""){c=true;b(this).css({borderColor:"#f00"}).fadeOut(250).fadeIn(250)}else{b(this).css({borderColor:"#ccc"})}});if(c){return false}else{return true}});var a=b("#trackbackList").height();if(a>250){b("#trackbackList").css({height:a}).hide().before(''+trackbackShowText+"").prev(".trackbackToggle").click(function(){b(this).toggleClass("active").next("#trackbackList").slideToggle("500",function(){if(b(this).css("display")==="none"){b(this).prev(".trackbackToggle").children(".toggleText").html(trackbackShowText)}else{b(this).prev(".trackbackToggle").children(".toggleText").html(trackbackHideText)}})})}b(".with-collapse .depth-"+depth+" ul.children").each(function(){var d=b(this).prev("div.comment-body").find("div.comment-author").children("cite.fn").text(),f=b(this).children("li.comment").length,c,e;if(f==1){c=''+replyShowOne.replace("%name%",''+d+"'s").replace("%count%",f)+"";e=''+replyHideOne.replace("%name%",''+d+"'s").replace("%count%",f)+""}else{c=''+replyShowMany.replace("%name%",''+d+"'s").replace("%count%",f)+"";e=''+replyHideMany.replace("%name%",''+d+"'s").replace("%count%",f)+""}b(this).hide().before('