var ajax_comment_loading = false; function ajax_comments_loading(on) { if(on) { ajax_comment_loading = true; var f = $('commentform'); f.submit.disabled = true; // disable submit new Insertion.Before(f, '
'); // create loading var l = $('ajax_comments_loading'); new Effect.Appear(l, { beforeStart: function() { with(l.style) { display = 'block'; margin = '0 auto'; width = '100px'; font = 'normal 12px Arial'; background = 'url(http://www.bycommonconsent.com/wp-content/plugins/ajax-comments/loading.gif) no-repeat 0 50%'; padding = '0 0 0 23px'; }}}); } else { new Effect.Fade('ajax_comments_loading', { afterFinish: function() { // hide loading Element.remove('ajax_comments_loading'); // dystroy loading }}); $('commentform').submit.disabled = false; // enable submit ajax_comment_loading = false; }} function rotate_auth_image() { var img = $('auth-image'), input = $('code'); if(img) img.src += '?'+Math.random(); // Change AuthImage if(input) input.value = ''; // Reset Code } function find_commentlist() { var e = $('commentlist'); if(e == null) { var e = document.getElementsByTagName('ol'); for(var i=0; i