/* Minify: at least one missing file. See http://code.google.com/p/minify/wiki/Debugging */
;var c_cache=[],dle_poll_voted=[];function reload(){var e=(new Date).getTime();document.getElementById("dle-captcha").innerHTML='
'}function dle_change_sort(e,t){var o=document.getElementById("news_set_sort");return o.dlenewssortby.value=e,o.dledirection.value=t,o.submit(),!1}function doPoll(e,t){var o=document.getElementById("dlepollform_"+t),i=o.status.value,n="";if(1!=dle_poll_voted[t]){if("results"!=e&&1!=i){for(var d=0;d'+t+"",n[1]=''+o+"",n[2]=''+i+"",n}function ajax_save_for_edit(e,t){var o={};return"2"==quick_wysiwyg&&tinyMCE.triggerSave(),$.each($("#ajaxnews"+e).serializeArray(),function(e,t){o[t.name]=t.value}),o.id=e,o.field=t,o.action="save",o.user_hash=dle_login_hash,ShowLoading(""),$.post(dle_root+"engine/ajax/controller.php?mod=editnews",o,function(e){HideLoading(""),"ok"!=e?DLEalert(e,dle_info):($("#dlepopup-news-edit").dialog("close"),DLEconfirm(dle_save_ok,dle_confirm,function(){location.reload(!0)}))}),!1}function ajax_prep_for_edit(d,l){for(var e=0,t=c_cache.length;e'),$("#modal-overlay").css({filter:"alpha(opacity=40)"}).fadeIn();var t={};t[dle_act_lang[3]]=function(){$(this).dialog("close")},t[dle_act_lang[4]]=function(){ajax_save_for_edit(d,l)},$("#dlepopup-news-edit").remove(),$("body").prepend(""),$(".dlepopupnewsedit").html("");var i=.9*$(window).height(),n=.9*$(window).width();1024")).replace(/&/g,"&"),$("#ratig-layer-"+o).html(t),$("#vote-num-id-"+o).html(e.votenum),$("#likes-id-"+o).html(e.likes),$("#dislikes-id-"+o).html(e.dislikes)):e.error&&DLEalert(e.errorinfo,dle_info)},"json")}function doCommentsRate(e,o){ShowLoading(""),$.get(dle_root+"engine/ajax/controller.php?mod=ratingcomments",{go_rate:e,c_id:o,skin:dle_skin,user_hash:dle_login_hash},function(e){var t;HideLoading(""),e.success?(t=(t=(t=(t=e.rating).replace(/</g,"<")).replace(/>/g,">")).replace(/&/g,"&"),$("#comments-ratig-layer-"+o).html(t),$("#comments-vote-num-id-"+o).html(e.votenum),$("#comments-likes-id-"+o).html(e.likes),$("#comments-dislikes-id-"+o).html(e.dislikes)):e.error&&DLEalert(e.errorinfo,dle_info)},"json")}function ajax_cancel_reply(){$("#dlefastreplycomments").hide("blind",{},1400)}function DLESendPM(e){var s={};return $("#dlesendpmpopup").remove(),$("#dleprofilepopup").remove(),s[dle_act_lang[3]]=function(){$(this).dialog("close")},s[dle_p_send]=function(){"2"==dle_wysiwyg&&tinyMCE.triggerSave();var e=$("#pm_subj").val(),t=$("#pm_text").val(),o=$("#pm_name").val(),i=$("#pm_question_answer").val(),n=$("#sec_code_pm").val(),d=$("#outboxcopy:checked").val(),l="";if(""==o)return DLEalert(dle_req_field[0],dle_info),!1;if(""==t)return DLEalert(dle_req_field[1],dle_info),!1;if(""==e)return DLEalert(dle_req_field[2],dle_info),!1;if("1"==dle_captcha_type)"undefined"!=typeof grecaptcha&&(l=grecaptcha.getResponse(recaptcha_widget));else if("2"==dle_captcha_type&&"undefined"!=typeof grecaptcha){if(""==(l=$("#pm-recaptcha-response").val())){var a=$("#pm-recaptcha-response").data("key");return grecaptcha.execute(a,{action:"personal_message"}).then(function(e){$("#pm-recaptcha-response").val(e),s[dle_p_send]()}),!1}}else"3"==dle_captcha_type&&"undefined"!=typeof hcaptcha&&(l=hcaptcha.getResponse(recaptcha_widget));return d=d||0,n=n||"",i=i||"",ShowLoading(""),$.post(dle_root+"engine/ajax/controller.php?mod=pm",{action:"send_pm",subj:e,comments:t,name:o,skin:dle_skin,sec_code:n,question_answer:i,g_recaptcha_response:l,outboxcopy:d,user_hash:dle_login_hash},function(e){var t;HideLoading(""),e.success?($("#dlesendpmpopup").remove(),DLEalert(e.success,dle_info)):e.error&&("2"==dle_captcha_type&&"undefined"!=typeof grecaptcha&&(t=$("#pm-recaptcha-response").data("key"),grecaptcha.execute(t,{action:"pm"}).then(function(e){$("#pm-recaptcha-response").val(e)})),DLEalert(e.error,dle_info))},"json"),!1},ShowLoading(""),$.get(dle_root+"engine/ajax/controller.php?mod=pm",{name:e,action:"show_send",skin:dle_skin,user_hash:dle_login_hash},function(e){HideLoading(""),$("body").append(e),$("#dlesendpmpopup").dialog({autoOpen:!0,width:800,resizable:!1,dialogClass:"modalfixed dle-popup-sendpm",buttons:s}),$(".modalfixed.ui-dialog").css({position:"fixed"}),$("#dlesendpmpopup").dialog("option","position",{my:"center",at:"center",of:window})},"html"),!1}function ajax_fast_reply(t,o,i){var e="";"1"!=dle_wysiwyg&&"2"!=dle_wysiwyg||("2"==dle_wysiwyg&&tinyMCE.triggerSave(),e="wysiwyg");var n=$("#comments"+t).val(),d=$("#name"+t).val(),l=$("#question_answer"+t).val(),a=$("#sec_code"+t).val(),s=$("#subscribe"+t+":checked").val(),r=$("#postid"+t).val(),c="";if(""==d)return DLEalert(dle_req_field[0],dle_info),!1;if(""==n)return DLEalert(dle_req_field[1],dle_info),!1;if("1"==dle_captcha_type)"undefined"!=typeof grecaptcha&&(c=grecaptcha.getResponse(recaptcha_widget));else if("2"==dle_captcha_type&&"undefined"!=typeof grecaptcha){if(""==(c=$("#comments-recaptcha-response"+t).val())){var p=$("#comments-recaptcha-response"+t).data("key");return grecaptcha.execute(p,{action:"comments"}).then(function(e){$("#comments-recaptcha-response"+t).val(e),ajax_fast_reply(t,o,i)}),!1}}else"3"==dle_captcha_type&&"undefined"!=typeof hcaptcha&&(c=hcaptcha.getResponse(recaptcha_widget));return s=s||0,a=a||"",l=l||"",ShowLoading(""),$.post(dle_root+"engine/ajax/controller.php?mod=addcomments",{post_id:r,parent:t,indent:o,comments:n,name:d,mail:"",editor_mode:e,skin:dle_skin,sec_code:a,question_answer:l,g_recaptcha_response:c,allow_subscribe:s,user_hash:dle_login_hash,needwrap:i},function(e){var t;HideLoading(""),e.error?$(e.content).insertBefore("#dlefastreplyesponse"):e.success&&($("#comm-id-"+e.id).length?(t=$(e.content).find("#comm-id-"+e.id).html(),$("#dlefastreplycomments").hide(),$("html,body").stop().animate({scrollTop:$("#comm-id-"+e.id).offset().top-100},600,function(){$("#comm-id-"+e.id).fadeOut("slow",function(){$(this).html(t+"