var over_icon=false;var over_search=false;searchHover=function(){el_search=document.getElementById("search");el_icon=document.getElementById("icon-search");el_search.onmouseover=function(){el_search.className="show";over_search=true};el_search.onmouseout=function(){keep_alive();over_search=false};el_icon.onmouseover=function(){el_search.className="show";over_icon=true};el_icon.onmouseout=function(){keep_alive();over_icon=false};document.body.onclick=function(){if(over_search==false&&over_icon==false&&document.getElementById("search").className=="show"){document.getElementById("search").className="hide";document.forms.search.q.blur()}}};if(window.attachEvent){window.attachEvent("onload",searchHover)}else{window.onload=function(){searchHover()}}function keep_alive(){if(typeof timeout!=="undefined"){window.clearTimeout(timeout)}if(over_search==false&&over_icon==false&&document.search.q.value==""){document.getElementById("search").className="hide";document.forms.search.q.blur()}else{timeout=window.setTimeout(function(){keep_alive()},600)}}function CommentForm(){this.move=function(f){var e=document.getElementById("respond");var a=document.getElementById("comment-"+f);var d=document.getElementById("respond-form");var b=document.getElementById("id_parent");b.value=f;a.appendChild(d);var c=document.getElementById("cancel-reply");c.onclick=function(){e.appendChild(d);return false};return false}}CommentForm=new CommentForm();
