var yy={elotolt_db:5,keret_anim:2,keret_offset:3,ev_bill:true,dir_graph:"",marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,z_szamlalo:1001,usr_csop:null,usr_h:200,usr_v:200,keret_tip:"arny",class_wrapp:"yywrap",elotolt_kepek:[],elotolt_tovabb:true,lufik:[],overrides:["keret_tip","keret_anim","class_wrapp","usr_h","usr_v","usr_csop","easing","easingClose","fadeInOut"],curs_close:"zm.cur",nyit_lepes:10,nyit_ido:250,zar_lepes:10,zar_ido:250,keret_maradt:{},clones:{},txt_hover:"- LAPOZÁS KÉPEK KÖZT: jobbra-balra nyíl \n- BEZÁRÁS: klikk a képre",txt_tolt:"Betöltés...",txt_megse:"Klikkelj ha mégse...",tolt_opacity:0.75,ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(A){return document.getElementById(A);},push:function(A,B){A[A.length]=B;},crtag:function(A,F,E,D,C){var B=document.createElement(A);if(F){yy.tul_all(B,F);}if(C){yy.sty_all(B,{padding:0,border:"none",margin:0});}if(E){yy.sty_all(B,E);}if(D){D.appendChild(B);}return B;},tul_all:function(B,C){for(var A in C){B[A]=C[A];}},sty_all:function(B,C){for(var A in C){try{if(yy.ie&&A=="opacity"){if(C[A]>0.99){B.style.removeAttribute("filter");}else{B.style.filter="alpha(opacity="+(C[A]*100)+")";}}else{B.style[A]=C[A];}}catch(D){}}},verz:function(){var A=navigator.appVersion.split("MSIE");return A[1]?parseFloat(A[1]):null;},r_old:function(){var C=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var B=yy.ie?C.clientWidth:(document.documentElement.clientWidth||self.innerWidth),A=yy.ie?C.clientHeight:self.innerHeight;return{width:B,height:A,scrollLeft:yy.ie?C.scrollLeft:pageXOffset,scrollTop:yy.ie?C.scrollTop:pageYOffset};},position:function(A){var B={x:A.offsetLeft,y:A.offsetTop};while(A.offsetParent){A=A.offsetParent;B.x+=A.offsetLeft;B.y+=A.offsetTop;if(A!=document.body&&A!=document.documentElement){B.x-=A.scrollLeft;B.y-=A.scrollTop;}}return B;},yastify:function(A,D,B){if(A.getParams){return D;}try{new yy.Fujo(A,D,B);return false;}catch(C){return true;}},a_ker:function(E,G){var A=document.getElementsByTagName("A"),B={},F=-1,C=0;for(var D=0;D<A.length;D++){if(yy.is_a(A[D])&&((yy.lufik[E].usr_csop==yy.src_feld(A[D],"usr_csop")))){B[C]=A[D];if(yy.lufik[E]&&A[D]==yy.lufik[E].a){F=C;}C++;}}return B[F+G]||null;},src_feld:function(A,C){A.getParams=A.onclick;var B=A.getParams?A.getParams():null;A.getParams=null;return(B&&typeof B[C]!="undefined")?B[C]:(typeof yy[C]!="undefined"?yy[C]:null);},getSrc:function(A){var B=yy.src_feld(A,"src");if(B){return B;}return A.href;},purge:function(D){var B=D.attributes,C,A,E;if(B){A=B.length;for(var C=0;C<A;C+=1){E=B[C].name;if(typeof D[E]==="function"){D[E]=null;}}}B=D.childNodes;if(B){A=B.length;for(var C=0;C<A;C+=1){yy.purge(D.childNodes[C]);}}},tag_del:function(A){if(yy.ie){yy.purge(A);}yy.garbageBin.appendChild(A);yy.garbageBin.innerHTML="";},prvnxt:function(B,E){var D=yy.last=yy.getFujo(B);try{var A=yy.upcoming=yy.a_ker(D.key,E);A.onclick();}catch(C){}try{D.close();}catch(C){}return false;},previous:function(A){return yy.prvnxt(A,-1);},next:function(A){return yy.prvnxt(A,1);},bill_feld:function(A){if(!A){A=window.event;}if(!A.target){A.target=A.srcElement;}if(A.target.form){return true;}var B=null;switch(A.keyCode){case 32:case 34:case 39:case 40:B=1;break;case 8:case 33:case 37:case 38:B=-1;break;case 27:case 13:B=0;}if(B!==null){yy.evl_del(document,"keydown",yy.bill_feld);if(!yy.ev_bill){return true;}if(A.preventDefault){A.preventDefault();}else{A.returnValue=false;}if(B==0){try{yy.getFujo().close();}catch(A){}return false;}else{return yy.prvnxt(yy.focusKey,B);}}return true;},bill_wrap:function(B){var D,C=/^yywrap-([0-9]+)$/;D=B;while(D.parentNode){if(D.id&&C.test(D.id)){return D.id.replace(C,"$1");}D=D.parentNode;}D=B;while(D.parentNode){if(D.tagName&&yy.is_a(D)){for(var A=0;A<yy.lufik.length;A++){var E=yy.lufik[A];if(E&&E.a==D){return A;}}}D=D.parentNode;}return null;},getFujo:function(A){if(typeof A=="undefined"){return yy.lufik[yy.focusKey]||null;}if(typeof A=="number"){return yy.lufik[A]||null;}if(typeof A=="string"){A=yy.$(A);}return yy.lufik[yy.bill_wrap(A)]||null;},is_a:function(A){return(A.onclick&&A.onclick.toString().replace(/\s/g," ").match(/yy.yastify/));},evl_add:function(A,C,B){try{A.addEventListener(C,B,false);}catch(D){try{A.detachEvent("on"+C,B);A.attachEvent("on"+C,B);}catch(D){A["on"+C]=B;}}},evl_del:function(A,C,B){try{A.removeEventListener(C,B,false);}catch(D){try{A.detachEvent("on"+C,B);}catch(D){A["on"+C]=null;}}},kep_pretlt:function(B){if(yy.elotolt_tovabb&&yy.elotolt_kepek[B]&&yy.elotolt_kepek[B]!="undefined"){var A=document.createElement("img");A.onload=function(){A=null;yy.kep_pretlt(B+1);};A.src=yy.elotolt_kepek[B];}},k_pretlt:function(E){if(E&&typeof E!="object"){yy.elotolt_db=E;}var A,D,B=0;var G=document.getElementsByTagName("A");for(var C=0;C<G.length;C++){A=G[C];D=yy.is_a(A);if(D&&D[0]=="yy.yastify"){if(B<yy.elotolt_db){yy.elotolt_kepek[B]=yy.getSrc(A);B++;}}}new yy.Keret(yy.keret_tip,function(){yy.kep_pretlt(0);});var F=yy.crtag("img",{src:yy.dir_graph+yy.curs_close});},mk_tarto:function(){if(!yy.container){yy.container=yy.crtag("div",null,{position:"absolute",left:0,top:0,width:"100%",zIndex:yy.z_szamlalo},document.body,true);yy.loading=yy.crtag("a",{className:"yyload",title:yy.txt_megse,innerHTML:yy.txt_tolt,href:"javascript:void(0)"},{position:"absolute",opacity:yy.tolt_opacity,left:"-9999px",zIndex:1},yy.container);yy.garbageBin=yy.crtag("div",null,{display:"none"},yy.container);Math.linearTween=function(B,A,D,C){return D*B/C+A;};Math.easeInQuad=function(B,A,D,C){return D*(B/=C)*B+A;};}},close:function(A){var B=yy.getFujo(A);if(B){B.close();}return false;}};yy.Keret=function(B,F){this.onLoad=F;this.keret_tip=B;var A=yy.verz(),G;this.hasAlphaImageLoader=yy.ie&&A>=5.5&&A<7;if(!B){if(F){F();}return;}yy.mk_tarto();this.table=yy.crtag("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},yy.container,true);var C=yy.crtag("tbody",null,null,this.table,1);this.td=[];for(var D=0;D<=8;D++){if(D%3==0){G=yy.crtag("tr",null,{height:"auto"},C,true);}this.td[D]=yy.crtag("td",null,null,G,true);var E=D!=4?{lineHeight:0,fontSize:0}:{position:"relative"};yy.sty_all(this.td[D],E);}this.td[4].className=B;this.tlt_gra();};yy.Keret.prototype={tlt_gra:function(){var B=yy.dir_graph+(yy.keretsDir||"")+this.keret_tip+".png";var A=yy.safari?yy.container:null;this.graphic=yy.crtag("img",null,{position:"absolute",left:"-9999px",top:"-9999px"},A,true);var C=this;this.graphic.onload=function(){C.onGrLd();};this.graphic.src=B;},onGrLd:function(){var D=this.offset=this.graphic.width/4,F=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],C={height:(2*D)+"px",width:(2*D)+"px"};for(var B=0;B<=8;B++){if(F[B]){if(this.hasAlphaImageLoader){var A=(B==1||B==7)?"100%":this.graphic.width+"px";var E=yy.crtag("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[B],true);yy.crtag("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:A,height:this.graphic.height+"px",left:(F[B][0]*D)+"px",top:(F[B][1]*D)+"px"},E,true);}else{yy.sty_all(this.td[B],{background:"url("+this.graphic.src+") "+(F[B][0]*D)+"px "+(F[B][1]*D)+"px"});}if(window.opera&&(B==3||B==5)){yy.crtag("div",null,C,this.td[B],true);}yy.sty_all(this.td[B],C);}}this.graphic=null;if(yy.keret_maradt[this.keret_tip]){yy.keret_maradt[this.keret_tip].destroy();}yy.keret_maradt[this.keret_tip]=this;if(this.onLoad){this.onLoad();}},poz_allit:function(E,A,F,B,C,D){if(D){this.table.style.visibility=(C>=4*this.offset)?"visible":"hidden";}this.table.style.left=(A-this.offset)+"px";this.table.style.top=(F-this.offset)+"px";this.table.style.width=(B+2*(E.offsetBorderW+this.offset))+"px";B+=2*(E.offsetBorderW-this.offset);C+=+2*(E.offsetBorderH-this.offset);this.td[4].style.width=B>=0?B+"px":0;this.td[4].style.height=C>=0?C+"px":0;if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height;}},destroy:function(A){if(A){this.table.style.visibility="hidden";}else{yy.tag_del(this.table);}}};yy.Fujo=function(H,E,A,I){this.a=H;this.custom=A;this.contentType=I||"image";this.isImage=!this.isHtml;yy.elotolt_tovabb=false;yy.mk_tarto();var J=this.key=yy.lufik.length;for(var F=0;F<yy.overrides.length;F++){var B=yy.overrides[F];this[B]=E&&typeof E[B]!="undefined"?E[B]:yy[B];}var C=this.thumb=((E&&E.thumbnailId)?yy.$(E.thumbnailId):null)||H.getElementsByTagName("img")[0]||H;this.thumbsUserSetId=C.id||H.id;for(var F=0;F<yy.lufik.length;F++){if(yy.lufik[F]&&yy.lufik[F].a==H){yy.lufik[F].focus();return false;}}for(var F=0;F<yy.lufik.length;F++){if(yy.lufik[F]&&yy.lufik[F].thumb!=C&&!yy.lufik[F].onLoadStarted){yy.lufik[F].cancelLoading();}}yy.lufik[this.key]=this;if(yy.lufik[J-1]){yy.lufik[J-1].close();}if(typeof yy.focusKey!="undefined"&&yy.lufik[yy.focusKey]){yy.lufik[yy.focusKey].close();}var G=yy.position(C);this.thumbWidth=C.width?C.width:C.offsetWidth;this.thumbHeight=C.height?C.height:C.offsetHeight;this.thumbLeft=G.x;this.thumbTop=G.y;this.thumbOffsetBorderW=(this.thumb.offsetWidth-this.thumbWidth)/2;this.thumbOffsetBorderH=(this.thumb.offsetHeight-this.thumbHeight)/2;this.wrapper=yy.crtag("div",{id:"yywrap-"+this.key,className:this.class_wrapp},{visibility:"hidden",position:"absolute",zIndex:yy.z_szamlalo++},null,true);if(this.contentType=="image"&&this.keret_anim==2){this.keret_anim=0;}if(yy.keret_maradt[this.keret_tip]){this.kapcs_keret();this[this.contentType+"Create"]();}else{if(!this.keret_tip){this[this.contentType+"Create"]();}else{this.mutat_tlt();var D=this;new yy.Keret(this.keret_tip,function(){D.kapcs_keret();D[D.contentType+"Create"]();});}}return true;};yy.Fujo.prototype={kapcs_keret:function(A,C){var B=yy.keret_maradt[this.keret_tip];this.objKeret=B;B.table.style.zIndex=this.wrapper.style.zIndex;yy.keret_maradt[this.keret_tip]=null;},mutat_tlt:function(){if(this.onLoadStarted||this.loading){return;}this.originalCursor=this.a.style.cursor;this.a.style.cursor="wait";this.loading=yy.loading;var B=this;this.loading.onclick=function(){B.cancelLoading();};this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";var B=this,A=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";setTimeout(function(){if(B.loading){B.loading.style.left=A;}},100);},imageCreate:function(){var B=this;var A=document.createElement("img");this.content=A;A.onload=function(){if(yy.lufik[B.key]){B.toltve();}};A.onclick=function(){try{B.close();}catch(C){}};if(yy.blockRightClick){A.oncontextmenu=function(){return false;};}A.className="yyimg";A.style.visibility="hidden";A.style.display="block";A.style.position="absolute";A.style.maxWidth="none";A.style.zIndex=3;A.title=yy.txt_hover;if(yy.safari){yy.container.appendChild(A);}if(yy.ie&&yy.flushImgSize){A.src=null;}A.src=yy.getSrc(this.a);this.mutat_tlt();},toltve:function(){try{if(!this.content){return;}this.content.onload=null;if(this.onLoadStarted){return;}else{this.onLoadStarted=true;}if(this.loading){yy.sty_all(this.loading,{left:"-9999px",top:"-9999px"});this.loading=null;this.a.style.cursor=this.originalCursor||"";}this.marginBottom=yy.marginBottom;this.newWidth=this.content.width;this.newHeight=this.content.height;this.fullFujWidth=this.newWidth;this.fullFujHeight=this.newHeight;this.content.style.width=this.thumbWidth+"px";this.content.style.height=this.thumbHeight+"px";this.wrapper.appendChild(this.content);this.content.style.position="relative";this.wrapper.style.left=this.thumbLeft+"px";this.wrapper.style.top=this.thumbTop+"px";yy.container.appendChild(this.wrapper);this.offsetBorderW=(this.content.offsetWidth-this.thumbWidth)/2;this.offsetBorderH=(this.content.offsetHeight-this.thumbHeight)/2;var D=yy.marginRight+2*this.offsetBorderW;this.marginBottom+=2*this.offsetBorderH;var I=this.newWidth/this.newHeight;var A=this.newWidth;var F=this.newHeight;var E={x:"auto",y:"auto"};var H=yy.r_old();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:(this.newWidth<A)?this.newWidth:A,marginMin:yy.marginLeft,marginMax:D,scroll:H.scrollLeft,clientSpan:H.width,thumbSpan:this.thumbWidth};var C=this.x.min+parseInt(this.thumbWidth);this.x=this.justify(this.x);this.y={min:parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,span:this.newHeight,minSpan:this.newHeight<F?this.newHeight:F,marginMin:yy.marginTop,marginMax:this.marginBottom,scroll:H.scrollTop,clientSpan:H.height,thumbSpan:this.thumbHeight};var B=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);var K=this.x;var J=this.y;this.show();}catch(G){window.location.href=yy.getSrc(this.a);}},justify:function(C){var D,B=C==this.x?"x":"y";var A=false;C.min=Math.round(C.min-((C.span-C.thumbSpan)/2));if(C.min<C.scroll+C.marginMin){C.min=C.scroll+C.marginMin;A=true;}if(C.min+C.span>C.scroll+C.clientSpan-C.marginMax){if(A){}else{if(C.span<C.clientSpan-C.marginMin-C.marginMax){C.min=C.scroll+C.clientSpan-C.span-C.marginMin-C.marginMax;}else{C.min=C.scroll+C.marginMin;}}}if(C.min<C.marginMin){tmpMin=C.min;C.min=C.marginMin;}return C;},show:function(){var A={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40};yy.hideSelects=(yy.ie&&yy.verz()<7);if(yy.hideSelects){this.showHideElements("SELECT","hidden",A);}yy.hideIframes=((window.opera&&navigator.appVersion<9)||navigator.vendor=="KDE"||(yy.ie&&yy.verz()<5.5));if(yy.hideIframes){this.showHideElements("IFRAME","hidden",A);}if(yy.geckoMac){this.showHideElements("*","hidden",A);}this.changeSize(1,{x:this.thumbLeft+this.thumbOffsetBorderW-this.offsetBorderW,y:this.thumbTop+this.thumbOffsetBorderH-this.offsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:yy.keret_offset},{x:this.x.min,y:this.y.min,w:this.x.span,h:this.y.span,imgW:this.x.imgSpan,o:this.objKeret?this.objKeret.offset:0},yy.nyit_ido,yy.nyit_lepes);},changeSize:function(D,G,H,A,F){if(D&&this.objKeret&&!this.keret_anim){this.objKeret.poz_allit(this,this.x.min,this.y.min,this.x.span,this.y.span);}else{if(!D&&this.objKeret){if(this.keret_anim){this.objKeret.poz_allit(this,G.x,G.y,G.w,G.h);}else{this.objKeret.destroy();}}}if(this.fadeInOut){G.op=D?0:1;H.op=D;}var I,B=this,E=Math[this.easing]||Math.easeInQuad;if(!D){E=Math[this.easingClose]||E;}for(var C=1;C<=F;C++){I=Math.round(C*(A/F));(function(){var L=C,K={};for(var J in G){K[J]=E(I,G[J],H[J]-G[J],A);if(/[xywh]/.test(J)){K[J]=Math.round(K[J]);}}setTimeout(function(){if(D&&L==1){B.content.style.visibility="visible";B.a.className+=" yyakt";}B.setSize(K);},I);})();}if(D){setTimeout(function(){if(B.objKeret){B.objKeret.table.style.visibility="visible";}},I);setTimeout(function(){B.afterFuj();},I+50);}else{setTimeout(function(){B.afterClose();},I);}},setSize:function(C){try{this.wrapper.style.width=(C.w+2*this.offsetBorderW)+"px";this.content.style.width=((C.imgW&&!isNaN(C.imgW))?C.imgW:C.w)+"px";if(yy.safari){this.content.style.maxWidth=this.content.style.width;}this.content.style.height=C.h+"px";if(C.op){yy.sty_all(this.wrapper,{opacity:C.op});}if(this.objKeret&&this.keret_anim){var B=this.objKeret.offset-C.o;this.objKeret.poz_allit(this,C.x+B,C.y+B,C.w-2*B,C.h-2*B,1);}yy.sty_all(this.wrapper,{"visibility":"visible","left":C.x+"px","top":C.y+"px"});}catch(A){window.location.href=yy.getSrc(this.a);}},afterFuj:function(){this.isFujva=true;this.focus();if(!this.caption){this.prepareNextKeret();}},prepareNextKeret:function(){var B=this.key;var A=this.keret_tip;new yy.Keret(A,function(){try{yy.lufik[B].preloadNext();}catch(C){}});},preloadNext:function(){var B=yy.a_ker(this.key,1);if(B.onclick.toString().match(/yy\.yastify/)){var A=yy.crtag("img",{src:yy.getSrc(B)});}},cancelLoading:function(){yy.lufik[this.key]=null;this.a.style.cursor=this.originalCursor;if(this.loading){yy.loading.style.left="-9999px";}},showHideElements:function(C,B,G){var E=document.getElementsByTagName(C);var A=C=="*"?"overflow":"visibility";for(var F=0;F<E.length;F++){if(A=="visibility"||(document.defaultView.getComputedStyle(E[F],"").getPropertyValue("overflow")=="auto"||E[F].getAttribute("hidden-by")!=null)){var I=E[F].getAttribute("hidden-by");if(B=="visible"&&I){I=I.replace("["+this.key+"]","");E[F].setAttribute("hidden-by",I);if(!I){E[F].style[A]=E[F].origProp;}}else{if(B=="hidden"){var K=yy.position(E[F]);K.w=E[F].offsetWidth;K.h=E[F].offsetHeight;var J=(K.x+K.w<G.x||K.x>G.x+G.w);var H=(K.y+K.h<G.y||K.y>G.y+G.h);var D=yy.bill_wrap(E[F]);if(!J&&!H&&D!=this.key){if(!I){E[F].setAttribute("hidden-by","["+this.key+"]");E[F].origProp=E[F].style[A];E[F].style[A]="hidden";}else{if(!I.match("["+this.key+"]")){E[F].setAttribute("hidden-by",I+"["+this.key+"]");}}}else{if(I=="["+this.key+"]"||yy.focusKey==D){E[F].setAttribute("hidden-by","");E[F].style[A]=E[F].origProp||"";}else{if(I&&I.match("["+this.key+"]")){E[F].setAttribute("hidden-by",I.replace("["+this.key+"]",""));}}}}}}}},focus:function(){this.wrapper.style.zIndex=yy.z_szamlalo++;this.content.title=yy.txt_hover;yy.stylecurs_close=window.opera?"pointer":"url("+yy.dir_graph+yy.curs_close+"), pointer";if(yy.ie&&yy.verz()<6){yy.stylecurs_close="hand";}this.content.style.cursor=yy.stylecurs_close;yy.focusKey=this.key;yy.evl_add(document,"keydown",yy.bill_feld);},close:function(){if(this.isClosing||!this.isFujva){return;}this.isClosing=true;yy.evl_del(document,"keydown",yy.bill_feld);try{this.content.style.cursor="default";this.changeSize(0,{x:this.x.min,y:this.y.min,w:this.x.span,h:parseInt(this.content.style.height),imgW:this.x.imgSpan,o:this.objKeret?this.objKeret.offset:0},{x:this.thumbLeft-this.offsetBorderW+this.thumbOffsetBorderW,y:this.thumbTop-this.offsetBorderH+this.thumbOffsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:yy.keret_offset},yy.zar_ido,yy.zar_lepes);}catch(A){this.afterClose();}},afterClose:function(){this.a.className=this.a.className.replace("yyakt","");if(yy.hideSelects){this.showHideElements("SELECT","visible");}if(yy.hideIframes){this.showHideElements("IFRAME","visible");}if(yy.geckoMac){this.showHideElements("*","visible");}if(this.objKeret&&this.keret_anim){this.objKeret.destroy();}yy.tag_del(this.wrapper);yy.lufik[this.key]=null;}};var HsFujo=yy.Fujo;yy.evl_add(window,"load",yy.k_pretlt);
