$(document).ready(function(){$("#vote_b").click(function(){if(screen.width>0&&screen.height>0){$("#poll_form").submit()}});$(".vote").click(function(){var a=$("#poll_quest_id").val();$.post("/poll/",{vote:$("form :radio[name=vars[]]:checked").val(),ajax:"1",scpatt:screen.height+":"+screen.width,action:"voting"},function(c){$("div#voting").html(c);$.cookie("Voted",a,{expires:30})})});b();function b(){var d=$(".valid");var a=0;d.each(function(c){if($(this).val().length<1){a=1}});if(a>0){$("#tariff_connect_send").attr("disabled","disabled");$("#tariff_connect_send").removeClass("on")}else{$("#tariff_connect_send").removeAttr("disabled");$("#tariff_connect_send").addClass("on")}setTimeout(b,300)}$("a.auth_link").click(function(){$("#auth_form").toggle("fast",function(){})});$("a.quote").bind("click",function(){var c=$(this).attr("rel");var d=$.trim($("#com_txt_"+c).text());var a=$.trim($("#com_date_"+c).text());var e=$.trim($("#com_usr_"+c).text());$("#comm_text").val($("#comm_text").val()+"[quote]"+e+" "+a+"\n"+d+"[/quote]\n")});$(".check_form").bind("mousemove",function(){$(".check_form #validate").val(Math.round(new Date().getTime()/1000))});$(".check_form").bind("keydown",function(){$(".check_form #validate").val(Math.round(new Date().getTime()/1000))})});
