$(document).ready(function(){$(".watermarkText").focus(function(){if($(this).val()==$(this)[0].title){$(this).removeClass("defaultTextActive");$(this).val("")}});$(".watermarkText").blur(function(){if($(this).val()==""){$(this).addClass("defaultTextActive");$(this).val($(this)[0].title)}});$(".watermarkText").blur()});function flash(a){$(a).css("opacity",1).animate({backgroundColor:"khaki",opacity:1},800).animate({backgroundColor:"#f0f0f0"},350,function(){})}function validateComment(){return $("#createComment").validate({errorElement:"div",errorPlacement:function(b,a){b.insertAfter(a)},rules:{comment:{required:true},spamCheck:{required:true,range:[2,2]}}}).form()}function printpage(){window.print()}function commentAdded(){flash("#articleComments > li:first");$("#comment").value="";$("#spamCheck").value="";$("#comment").focus()}function commentPending(){$("#comment").value="";$("#spamCheck").value="";$("#comment").focus();$('<div id="commentPending">Because you are not <a href="/account">logged in</a> your message will not appear here until a member of staff has approved it. See the <a href="/why-register">other features</a> you get when you <a href="/account/register">register</a> (it\'s free!).</div>').insertBefore("#articleComments");flash("#commentPending")};