var c_cache=[],dle_poll_voted=[];function reload(){var a=(new Date).getTime();document.getElementById("dle-captcha").innerHTML=''}function dle_change_sort(a,b){var c=document.getElementById("news_set_sort");c.dlenewssortby.value=a;c.dledirection.value=b;c.submit();return!1} function doPoll(a,b){var c=document.getElementById("dlepollform_"+b),d=c.status.value,e="";if(1!=dle_poll_voted[b]){if("results"!=a&&1!=d){for(var f=0;f'+b+"";e[1]=''+c+"";e[2]=''+d+"";return e} function ajax_save_for_edit(a,b){var c={};"2"==quick_wysiwyg&&tinyMCE.triggerSave();$.each($("#ajaxnews"+a).serializeArray(),function(d,e){c[e.name]=e.value});c.id=a;c.field=b;c.action="save";c.user_hash=dle_login_hash;ShowLoading("");$.post(dle_root+"engine/ajax/controller.php?mod=editnews",c,function(d){HideLoading("");"ok"!=d?DLEalert(d,dle_info):($("#dlepopup-news-edit").dialog("close"),DLEconfirm(dle_save_ok,dle_confirm,function(){location.reload(!0)}))});return!1} function ajax_prep_for_edit(a,b){for(var c=0,d=c_cache.length;c

");$(".dlepopupnewsedit").html("");var h=.9*$(window).height(),k=.9*$(window).width();1024");d=d.replace(/&/g,"&");$("#ratig-layer-"+b).html(d);$("#vote-num-id-"+b).html(c.votenum);$("#likes-id-"+b).html(c.likes);$("#dislikes-id-"+b).html(c.dislikes)}else c.error&&DLEalert(c.errorinfo,dle_info)},"json")} function doCommentsRate(a,b){ShowLoading("");$.get(dle_root+"engine/ajax/controller.php?mod=ratingcomments",{go_rate:a,c_id:b,skin:dle_skin,user_hash:dle_login_hash},function(c){HideLoading("");if(c.success){var d=c.rating;d=d.replace(/"),$("#dlefastreplycomments").html(f),$("html,body").stop().animate({scrollTop:$("#comment-id-"+a).offset().top+$("#comment-id-"+a).height()-100},600),setTimeout(function(){$("#dlefastreplycomments").show("blind",{},700)},600)):($("body").append(""),$("#dlereplypopup").html(f),$("#dlereplypopup").dialog({autoOpen:!0,width:800,resizable:!1,dialogClass:"modalfixed dle-popup-replycomments",buttons:d}),$(".modalfixed.ui-dialog").css({position:"fixed"}),$("#dlereplypopup").dialog("option","position",{my:"center",at:"center",of:window}))},"html");return!1} function doAddComments(){var a=document.getElementById("dle-comments-form"),b="",c="",d="",e="",f="0",g="";if("1"==dle_wysiwyg||"2"==dle_wysiwyg)"2"==dle_wysiwyg&&tinyMCE.triggerSave(),b="wysiwyg";if(""==a.comments.value||""==a.name.value)return DLEalert(dle_req_field,dle_info),!1;a.question_answer&&(c=a.question_answer.value);a.sec_code&&(d=a.sec_code.value);"1"==dle_captcha_type?"undefined"!=typeof grecaptcha&&(e=grecaptcha.getResponse()):"2"==dle_captcha_type&&(e=$("#g-recaptcha-response").val());a.allow_subscribe&&1==a.allow_subscribe.checked&&(f="1");a.mail&&(g=a.mail.value);ShowLoading("");$.post(dle_root+"engine/ajax/controller.php?mod=addcomments",{post_id:a.post_id.value,comments:a.comments.value,name:a.name.value,mail:g,editor_mode:b,skin:dle_skin,sec_code:d,question_answer:c,g_recaptcha_response:e,allow_subscribe:f,user_hash:dle_login_hash},function(h){HideLoading("");$("#dle-ajax-comments").html(h);"error"!=h&&document.getElementById("blind-animation")&&($("html,body").stop().animate({scrollTop:$("#dle-ajax-comments").offset().top-100},600),setTimeout(function(){$("#blind-animation").show("blind",{},700)},600),a.sec_code&&(a.sec_code.value="",reload()),"1"==dle_captcha_type?"undefined"!=typeof grecaptcha&&grecaptcha.reset():"2"==dle_captcha_type&&"undefined"!=typeof grecaptcha&&(h=$("#g-recaptcha-response").data("key"),grecaptcha.execute(h,{action:"comments"}).then(function(k){$("#g-recaptcha-response").val(k)})))},"html");return!1}function isHistoryApiAvailable(){return!(!window.history||!history.pushState)} function CommentsPage(a,b,c){ShowLoading("");$.get(dle_root+"engine/ajax/controller.php?mod=comments",{cstart:a,news_id:b,skin:dle_skin},function(d){HideLoading("");isNaN(a)||isNaN(b)||($("#dle-comm-link").off("click"),$("#dle-comm-link").on("click",function(){CommentsPage(a,b);return!1}));scroll(0,$("#dle-comments-list").offset().top-100);$("#dle-comments-list").html(d.comments);$(".dle-comments-navigation").html(d.navigation);isHistoryApiAvailable()&&window.history.pushState(null,null,c)},"json"); return!1}function dle_copy_quote(a){dle_txt="";window.getSelection?dle_txt=window.getSelection():document.selection&&(dle_txt=document.selection.createRange().text);""!=dle_txt&&(dle_txt="[quote="+a+"]"+dle_txt+"[/quote]")} function dle_fastreply(a){if(!document.getElementById("dle-comments-form"))return!1;var b=document.getElementById("dle-comments-form").comments,c="";"0"==dle_wysiwyg||"-1"==dle_wysiwyg?(b.value="0"==dle_wysiwyg?b.value+("[b]"+a+"[/b],\n"):b.value+(a+",\n"),b.focus()):(c=""+a+",
","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",c,!0)):tinyMCE.execCommand("mceInsertContent",!1,c));setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-100},700)},100);return!1} function dle_ins(a){if(!document.getElementById("dle-comments-form"))return!1;var b=document.getElementById("dle-comments-form").comments,c="";""!=dle_txt?("0"==dle_wysiwyg||"-1"==dle_wysiwyg?(b.value+=dle_txt+"\n",b.focus()):(c=dle_txt+"
","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",c,!0)):tinyMCE.execCommand("mceInsertContent",!1,c)),setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-100},700)},100)):(ShowLoading(""),$.get(dle_root+"engine/ajax/controller.php?mod=quote",{id:a,user_hash:dle_login_hash},function(d){HideLoading("");d=d.replace(/","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",c,!0)):tinyMCE.execCommand("mceInsertContent",!1,c));setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-100},700)},100)}));return!1} function ShowOrHide(a){var b=$("#"+a),c=null;document.getElementById("image-"+a)&&(c=document.getElementById("image-"+a));a=b.height()/200*1E3;3E3a&&(a=250);"none"==b.css("display")?(b.show("blind",{},a),c&&(c.src=dle_root+"templates/"+dle_skin+"/dleimages/spoiler-minus.gif")):(2E3$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var d=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/controller.php?mod=message",{id:a,user_hash:dle_login_hash,text:d},function(e){"ok"==e?document.location=dle_root+"index.php?do=deletenews&id="+a+"&hash="+dle_login_hash:DLEalert("Send Error",dle_info)})}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-newsdelete",buttons:c});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})});b[dle_act_lang[0]]=function(){$(this).dialog("close");document.location=dle_root+"index.php?do=deletenews&id="+a+"&hash="+dle_login_hash};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-newsdelete",buttons:b});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})} function MenuNewsBuild(a,b){var c=[];c[0]="'+menu_short+"";""!=dle_admin&&(c[1]=''+menu_full+"");allow_dle_delete_news&&(c[2]="'+dle_notice+"",c[3]="'+dle_del_news+"");return c} function sendNotice(a){var b={};b[dle_act_lang[3]]=function(){$(this).dialog("close")};b[dle_p_send]=function(){if(1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var c=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/controller.php?mod=message",{id:a,user_hash:dle_login_hash,text:c,allowdelete:"no"},function(d){"ok"==d&&DLEalert(dle_p_send_ok,dle_info)})}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-sendmessage",buttons:b});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})} function AddComplaint(a,b){var c={},d="";c[dle_act_lang[3]]=function(){$(this).dialog("close")};c[dle_p_send]=function(){if(1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var e=$("#dle-promt-text").val(),f="";$("#dle-promt-mail").val()&&(f=$("#dle-promt-mail").val());$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/controller.php?mod=complaint",{id:a,text:e,action:b,mail:f,user_hash:dle_login_hash},function(g){"ok"==g?DLEalert(dle_p_send_ok,dle_info):DLEalert(g,dle_info)})}};$("#dlepopup").remove();5==dle_group&&(d=dle_mail+'
');$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:600,resizable:!1,dialogClass:"modalfixed dle-popup-complaint",buttons:c});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})} function DLEalert(a,b){$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:470,resizable:!1,dialogClass:"modalfixed dle-popup-alert",buttons:{Ok:function(){$(this).dialog("close");$("#dlepopup").remove()}}});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})} function DLEconfirm(a,b,c){var d={};d[dle_act_lang[1]]=function(){$(this).dialog("close");$("#dlepopup").remove()};d[dle_act_lang[0]]=function(){$(this).dialog("close");$("#dlepopup").remove();c&&c()};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-confirm",buttons:d});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window})} function DLEprompt(a,b,c,d,e){var f={};f[dle_act_lang[3]]=function(){$(this).dialog("close")};f[dle_act_lang[2]]=function(){if(!e&&1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var g=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();d&&d(g)}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-promt",buttons:f});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",{my:"center",at:"center",of:window});0

Swordash взлом (Мод много денег и алмазов) v 0.53 на Андроид скачать Скачать Endless Nightmare 2: Hospital Мод APK 1.3.1 (God Mode Free purchase) для Android. Сервер MINECRAFT "ZOMBIE PROJECT" набирает людей для игры в зомби апокалипсисе - Ролевая игра - Майнкрафт форум Скачать Коидаи Багдоди Qoidai Bagdodi Мод APK (ограниченные деньги) для Android.