var SPAM_REPORT_SUCCESS="Thanks for reporting";var SPAM_REPORT_ERROR="Error: unable to send report";function refcls(){var a=document.referrer;if(a.indexOf("google")!=-1){var b="google"}else{if(a.indexOf("bing")!=-1){var b="bing"}else{if(a.indexOf("yahoo")!=-1){var b="yahoo"}else{if(a.indexOf("archiveorange")!=-1){var b="internal"}else{var b="external"}}}}return b}$(document).keydown(function(a){if((a.keyCode==37)&&!a.altKey){window.location="/archive/prev/"+viewarg;return false}else{if((a.keyCode==39)&&!a.altKey){window.location="/archive/next/"+viewarg;return false}}});$(document).ready(function(){$("#reportspambutton").click(function(){$("#reportspambutton").attr("disabled","disabled");$("#reportsectionconfirm").show()});$("#confirm-no").click(function(){$("#reportsectionconfirm").hide();$("#reportspambutton").attr("disabled","")});$("#confirm-yes").click(function(){$("#reportsectionconfirm").hide();var a='<img width="16" height="16" src="'+StaticServer+'im/loader-small.gif" />';$("#reportsectionresults").html(a).show();var c=setTimeout(function(){$("#reportsectionresults").html(SPAM_REPORT_ERROR).show()},5000);var b="/reportspam?"+$.param({url:window.location.href});$.getJSON(b,function(d){if(d){var e=SPAM_REPORT_SUCCESS}else{var e=SPAM_REPORT_ERROR}$("#reportsectionresults").html(e).show();clearTimeout(c)})})});
