SRS={addLoadEvent:function(b){var a=window.onload;if(typeof window.onload!="function"){window.onload=b}else{window.onload=function(){if(a){a()}b()}}},search:{d:null,init:function(){var a=document.getElementById("searchQuery");SRS.search.d=a.value;a.onfocus=function(){if(this.value==SRS.search.d){this.value="";this.className=this.className.replace(new RegExp(" searchQueryIA\\b"),"")}};a.onblur=function(){if(this.value==""){this.value=SRS.search.d;this.className+=" searchQueryIA"}}}},comment:{d:{},init:function(){if(typeof addComment!="undefined"){addComment._moveForm=addComment.moveForm;addComment.moveForm=function(g,j,f,e){var i=this.I("cancel-comment-reply-link");var h=this.I(f);if(!new RegExp("\\bcommentReplyActive\\b").test(h.className)){h.className+=" commentReplyActive"}var h=addComment._moveForm(g,j,f,e);i._onclick=i.onclick;i.onclick=function(){var k=addComment.I(addComment.respondId);k.className=k.className.replace(new RegExp(" commentReplyActive\\b"),"");return this._onclick()};return h}}var c=[{ID:"replyName",defaultID:"replyNameDefault"},{ID:"replyEmail",defaultID:"replyEmailDefault"},{ID:"replyURL",defaultID:"replyURLDefault"},{ID:"comment",defaultID:"replyMsgDefault"}];for(var b=0;b<c.length;b++){var d=document.getElementById(c[b].ID);if(d!=null){var a=document.getElementById(c[b].defaultID).value;d._dv=a;d.onfocus=function(){if(this.value==this._dv){this.value="";this.className=this.className.replace(this.className.match(" inputIA")?" inputIA":"inputIA","")}};d.onblur=function(){if(this.value==""){this.value=this._dv;this.className+=this.className==""?"inputIA":" inputIA"}}}}if(document.reply){document.reply.onsubmit=function(){var h=[{ID:"replyName",defaultID:"replyNameDefault"},{ID:"replyEmail",defaultID:"replyEmailDefault"},{ID:"replyURL",defaultID:"replyURLDefault"},{ID:"comment",defaultID:"replyMsgDefault"}];for(var g=0;g<h.length;g++){var j=document.getElementById(h[g].ID);if(j!=null){var f=document.getElementById(h[g].defaultID).value;if(j.value==f){j.value=""}}}};return true}}}};SRS.addLoadEvent(SRS.search.init);SRS.addLoadEvent(SRS.comment.init);
