var ATLlastReply;function atmoReplyCommentOnClick(g,d){atmoReplyCommentCancel();var a="reply-link-"+g,f=document.getElementById(a),c=document.getElementById("comments-open"),b;mtReplyCommentOnClick(g,d);mtHide("comments-open-header");mtHide("comment-form-reply");mtShow("comments-replying");document.getElementById("comment-reply-cancel").style.display="inline";f.parentNode.replaceChild(c,f);b=document.getElementById("comments-open");try{b.scrollIntoView(true);scrollBy(0,b.parentNode.scrollHeight*-1)}catch(h){}ATLlastReply=f}function atmoReplyCommentCancel(){var c,a,b=document.getElementById("comments-open");mtShow("comments-open-header");c=document.getElementById("comment-reply");a=document.getElementById("comment-parent-id");c.checked=false;a.value=0;mtHide("comment-form-reply");mtHide("comment-reply-cancel");mtHide("comments-replying");if(ATLlastReply){b.parentNode.replaceChild(ATLlastReply,b);document.getElementById("comments").appendChild(b);ATLlastReply=undefined}}function atmoGetQuote(){var a="";if(window.getSelection){a=window.getSelection().toString()}else{if(document.getSelection){a=document.getSelection().toString()}else{a=document.selection.createRange().text}}if(a!=""){document.getElementById("comment-text").value+="<blockquote>"+a+"</blockquote>"}}function atmoClearText(){document.getElementById("comment-text").value=""};