var sDefaultComm="Enter your comment here!",sDefaultName="Anonymous";var bCommentFocus=false,tmrCommFocus;jQuery(document).ready(function(){document.forms.frmComment.action="/process.html";jQuery("#commText, #commName").defaultvalue(sDefaultComm,sDefaultName);if(commOptions.autoExpand){jQuery(".commHidden").hide();jQuery("#frmComment *").focus(function(){bCommentFocus=true;clearTimeout(tmrCommFocus);var A=0;if(!jQuery("#frmComment").hasClass("frmReply")){A="fast"}jQuery(".commHidden").show(A)});jQuery("#frmComment *").blur(function(){bCommentFocus=false;tmrCommFocus=setTimeout("closeCommForm()",800)})}if(commOptions.count>commOptions.pp){jQuery("#comm-nav").pagination(commOptions.count,{items_per_page:commOptions.pp,callback:CommPageCB,link_to:location.href+"#"});CommPageCB(0,null);jQuery("#comm-text").html("<p>View more comments:</p>")}jQuery("form input.cancel").click(function(){jQuery("form#frmComment input.replyto").val(0).blur();jQuery(".replybtn").show();jQuery("div#addcomment").show();jQuery("form#frmComment").removeClass("frmReply").appendTo("#addcomment")})});function CommPageCB(B,A){jQuery(".comm-page").css({display:"none"});jQuery(".comm-page-"+B).css({display:"block"});jQuery("#comm-pos").html("Viewing comments "+((B*commOptions.pp)+1)+" to "+((B*commOptions.pp)+commOptions.pp));if(A!=null){jQuery(window).scrollTo(jQuery("#news_comments"),500)}return false}function closeCommForm(){if(bCommentFocus==false&&!jQuery("#frmComment").hasClass("frmReply")){jQuery(".commHidden").hide("normal")}}function commReply(A){jQuery("#addcomment").hide();jQuery("#c"+A+" .replybtn").hide();jQuery("#frmComment").addClass("frmReply").appendTo("#comments #c"+A);jQuery("form input.replyto").val(A);jQuery("form input.cancel").val("Cancel reply");jQuery("#frmComment textarea").focus();return false}function valComment(){jQuery("#commText").val(trimStr(jQuery("#commText").val()));var A=jQuery("#commText").val();if(A==sDefaultComm||A.length==0){alert("You did not enter a comment.");goComment();return false}if(A.length<20){alert("Your comment is too short, please add some more text.");goComment();return false}return true};