$(document).ready(function(){$(".colortip-g").colorTip({color:"green"});$(".colortip-r").colorTip({color:"red"});$(".colortip-b").colorTip({color:"blue"});$(".colortip-y").colorTip({color:"yellow"});$(".colortip-w").colorTip({color:"white"});$("abbr").colorTip({color:"white"});$("textarea#forum_post").bbedit({enableToolbar:true,enableSmileybar:false,tags:"b,i,u,s"});$("ul.social_nav_horizontal li a").hover(function(){$(this).stop().animate({marginLeft:"20px"},300)},function(){$(this).stop().animate({marginLeft:"0px"},300)});$("img#tick").hide();$("img#cross").hide();$("img#tick2").hide();$("img#cross2").hide();$("img#tick3").hide();$("img#cross3").hide();$("input#galleryTitle").blur(d);function d(){var e=$("input#gallerySEO").val();if(e==""){$("input#gallerySEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=10",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#gallerySEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#gallerySEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#gallerySEO").blur(d);function d(){var e=$("input#gallerySEO").val();if(e==""){$("input#gallerySEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=10",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#gallerySEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#gallerySEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#userEmail").blur(j);function j(){var e=$("input#userEmail").val();if(e==""){$("input#userEmail").css("border","3px #CCC solid");$("#tick2").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=12",data:"q="+e,cache:false,success:function(f){if(f>0){$("input#userEmail").css("border","3px #C33 solid");$("#tick2").hide();$("#cross2").fadeIn()}else{$("input#userEmail").css("border","3px #090 solid");$("#cross2").hide();$("#tick2").fadeIn()}}})}}$("input#username").blur(i);function i(){var e=$("input#usernameSEO").val();if(e==""){$("input#usernameSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=9",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#usernameSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#usernameSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#username").blur(a);function a(){var e=$("input#username").val();if(e==""){$("input#username").css("border","3px #CCC solid");$("#tick3").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=13",data:"q="+e,cache:false,success:function(f){if(f>0){$("input#username").css("border","3px #C33 solid");$("#tick3").hide();$("#cross3").fadeIn()}else{$("input#username").css("border","3px #090 solid");$("#cross3").hide();$("#tick3").fadeIn()}}})}}$("input#gameName").blur(c);function c(){var e=$("input#gameSEO").val();if(e==""){$("input#gameSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=8",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#gameSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#gameSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#gameSEO").blur(c);function c(){var e=$("input#gameSEO").val();if(e==""){$("input#gameSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=8",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#gameSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#gameSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#articlesTitle").blur(b);function b(){var e=$("input#articlesSEO").val();if(e==""){$("input#articlesSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=7",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#articlesSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#articlesSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#articlesSEO").blur(b);function b(){var e=$("input#articlesSEO").val();if(e==""){$("input#articlesSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=7",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#articlesSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#articlesSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#newsTitle").blur(b);function b(){var e=$("input#newsSEO").val();if(e==""){$("input#newsSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=6",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#newsSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#newsSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("input#newsSEO").blur(b);function b(){var e=$("input#newsSEO").val();if(e==""){$("input#newsSEO").css("border","3px #CCC solid");$("#tick").hide()}else{jQuery.ajax({type:"POST",url:"ajaxService.php?mode=6",data:"seo="+e,cache:false,success:function(f){if(f>0){$("input#newsSEO").css("border","3px #C33 solid");$("#tick").hide();$("#cross").fadeIn()}else{$("input#newsSEO").css("border","3px #090 solid");$("#cross").hide();$("#tick").fadeIn()}}})}}$("div#stars").raty({start:3,path:"design/images/",hintList:["1 pont","2 pont","3 pont","4 pont","5 pont"],onClick:function(f){var e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","rate");e.setAttribute("value",f);document.getElementById("rategame").appendChild(e);document.forms.rategame.submit()}});$("form#saveNews").validate({submitHandler:function(e){e.submit()}});$("form#commentForm").validate({submitHandler:function(e){e.submit()}});$("form#editProfile").validate({rules:{password2:{equalTo:"#password1"}},submitHandler:function(e){e.submit()}});$("form#editProfile2").validate({rules:{password1:"required",password2:{equalTo:"#password1"}},submitHandler:function(e){e.submit()}});$("form#Forum").validate({submitHandler:function(e){e.submit()}})});function showMessage(a,c){var b=null;if(c==0){b="Sikeres folyamat"}else{if(c==1){b="Hiba"}else{b="Információ"}}$.jGrowl(a,{header:b})}function decode(a){document.writeln(Base64.decode(a))}function createSEO(b,c){var a=document.getElementById(b).value,d=document.getElementById(c);a=a.toLowerCase();a=a.replace(/ö/g,"o");a=a.replace(/ó/g,"o");a=a.replace(/ő/g,"o");a=a.replace(/é/g,"e");a=a.replace(/á/g,"a");a=a.replace(/í/g,"i");a=a.replace(/ü/g,"u");a=a.replace(/ú/g,"u");a=a.replace(/ű/g,"u");a=a.replace(/ /g,"-");a=a.replace(/&/g,"and");a=a.replace(/:/g,"");a=a.replace(/([^0-9a-z-]+)/,"");d.value=a}function redirectTo(a){var b=confirm("Biztos, hogy elhagyod az oldalt? Az esetleges tartalmak el fognak veszni!");if(b){window.location=a}return false}function deleteConfirm(a){var b=confirm("Biztos, hogy törlöd a tartalmat? Nincs mód a visszaállításra!");if(b){window.location=a}return false}function showPost(a){window.open(a,"Hozzászólás megtekintése","width=840, height=400, left="+(screen.availWidth/2-420)+",top="+(screen.availHeight/2-200)+"");return false}function addSmile(c){var d=document.getElementById("forum_post");if(c!=""&&c!=null){d.value=d.value+" "+c}return false};
