var expDays=60;var exp=new Date();exp.setTime(exp.getTime()+(expDays*24*60*60*1000));function getObj(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.getElementById(A)}if(arguments.length==1){return A}C.push(A)}return C}function openImageWin(C){var A="status=0,menubar=0,resizable=1,copyhistory=no,directories=no,scrollbars=no,width=20,height=20,top=20,left=20";var B=window.open("/showimage.php?i="+C,"ziuegf78er",A)}String.prototype.trim=function(){var A=this;A=A.replace(/^\s*(.*)/,"$1");A=A.replace(/(.*?)\s*$/,"$1");return A};function go(){document.location.href=arguments[0]}function toggle(A){if(getObj(A).style.display=="none"){$("#"+A).show()}else{$("#"+A).hide()}}function wsx(A){A.href=A.href.replace(/OOOOOO/g,"@").replace(/###/g,".");return true}function ws(B,A){if(A==1){window.status=B.href.replace(/OOOOOO/g,"@").replace(/###/g,".")}else{window.status=""}}function validgb(){var A=[];if($("#name").val().trim()==""){A.push("A nevet kötelező kitölteni!")}if($("#message").val().trim()==""){A.push("Írjon üzenetet!")}if($("#sec").val().trim()==""){A.push("Írja be a képen látható kódot!")}if(A.length){alert(A.join("\n"));return false}return true}function addEvent(D,C,B,A){if(D.addEventListener){D.addEventListener(C,B,A);return true}else{if(D.attachEvent){return D.attachEvent("on"+C,B)}else{return false}}}function gotoURL(){var A=this.value;if(A!=""){window.open(A)}}function resizeMe(){var B=147;var A=winSize(window)[1];var C=$("div#cfield").height();if(C<(A-B)){$("div#cfield").css({height:(A-B)+"px"})}}function pause(B){var A=new Date();var C=A.getTime()+B;while(true){A=new Date();if(A.getTime()>C){return }}}function winSize(B){var A=0;var D=0;if(B.document.body.clientWidth){A=B.document.body.clientWidth}if(B.document.documentElement.clientWidth){A=B.document.documentElement.clientWidth}if(B.innerWidth){A=B.innerWidth}if(B.document.body.clientHeight){D=B.document.body.clientHeight}if(B.document.documentElement.clientHeight){D=B.document.documentElement.clientHeight}if(B.innerHeight){D=B.innerHeight}var C=[A,D];return C}function showMedia(A){pause(250);of(540,370)}function chcart(A){if(isNaN(parseInt(A.sh.value))){alert("Kérjük, számot adjon meg.");A.sh.value="1";return false}else{return true}}$(document).ready(function(){resizeMe();if(getObj("langselect")){addEvent(getObj("langselect"),"change",gotoURL)}$("img.popupimage").click(function(){var A=this.src.split("/");var B=A.length-1;A[B]="fullsize/"+A[B];openImageWin(A.join("/"))});$("input#emailaddress").focus(function(){if($("input#emailaddress").val()=="E-mail cím"){$("input#emailaddress").val("")}});$("input#emailaddress").blur(function(){if($("input#emailaddress").val()==""){$("input#emailaddress").val("E-mail cím")}})})