if("undefined"===typeof Smooth_Reload||!Smooth_Reload)Smooth_Reload={rBlocks:[],alreadyLoggedIn:false,fbApiKey:"",inProcessCnt:0,push:function(c){var d,a,b=false;b=this.Smooth_Reload?this.Smooth_Reload.rBlocks:this.rBlocks;for(d in b)if(b.hasOwnProperty(d))if(b[d].divId===c.divId){a=true;break}a||this.rBlocks.push(c)},appendDiv:function(c,d){var a=c.match(/src="http:\/\/api.recaptcha.net\/challenge\?k=([^"]+)"/im);if(a)var b=a[1];a=RegExp("(?:<script(\n|\r|.)*?>)((\n|\r|.)*?)(?:<\/script>)","img"); $("#"+d).html(c.replace(a,""));a=document.getElementById("comments_form");if("undefined"!==typeof a&&"undefined"!==typeof commentsFormAction)a.action=commentsFormAction;b&&Recaptcha.create(b,$("#capt-label+dd").get(0),{theme:"red",tabindex:0,callback:Recaptcha.focus_response_field})},refresh:function(c){if(isProfilePage()&&!c)return pageReload();c=Smooth_Reload.rBlocks;var d,a,b,e;b="";for(d in c)if(c.hasOwnProperty(d)){a=c[d].divId;(b=c[d].controller)||(b=a);e=c[d].params;if("undefined"===typeof e)e= {};else if("function"===typeof e)e=e();e.divId=a;b="/blocks/"+b;Smooth_Reload.inProcessCnt++;$("div#"+a).load(b,e,function(){if(typeof FB!="undefined"){FB.XFBML.parse();$("#recaptcha_widget_div").appendTo($("li.captchaElem"))}})}return""},lin:function(){Smooth_Reload.alreadyLoggedIn||Smooth_Reload.refresh();"undefined"!==typeof $("#dialogLocal").dialog&&$("#dialogLocal").dialog("close");"undefined"!==typeof $("#dialogSingin").dialog&&$("#dialogSingin").dialog("close");"undefined"!==typeof $("#dialogSingup").dialog&& $("#dialogSingup").dialog("close");$(".vote .member-links").hide();Smooth_Reload.alreadyLoggedIn=true},lout:function(){Smooth_Reload.refresh();"undefined"!==typeof $("#dialogLocal").dialog&&$("#dialogLocal").dialog("close");"undefined"!==typeof $("#dialogFbExt").dialog&&$("#dialogFbExt").dialog("close");"undefined"!==typeof $("#dialogSingin").dialog&&$("#dialogSingin").dialog("close");"undefined"!==typeof $("#dialogSingup").dialog&&$("#dialogSingup").dialog("close");Smooth_Reload.alreadyLoggedIn= false}};function isProfilePage(){return window.location.href.match("/user")}function pageReload(){window.location.reload()};
