eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 1m=/*@1D!@*/A;7(!y.17){y.17=5(a){6 o.20.1W(a)}}3 4={V:5(){3 a=2.1u;1s(a&&a.1r!=1){a=a.1u}4.F(a);6 a},S:5(){3 a=2.1l;1s(a&&a.1r!=1){a=a.1l}4.F(a);6 a},T:5(a,b,c,d){3 e=4.F(o.1N(a));7(b){e.1K(b)}7(q d!=\'L\'){e.r(d)}7(c){2.r(e)}6 e},Q:5(){2.1z.1x(2);6 C},O:5(a){9(3 i 1a a){7(/29/i.z(i)){2.u=a[i]}v{2.27(i,a[i])}}6 2},r:5(a){3 b=C;7(q a==\'16\'){b=2.24+=a}v{b=2.23(a)}6 2},U:5(a){9(3 i=(2.14.k-1);i>=0;i--){2.14[i].1z.1x(2.14[i])}2.r(a);6 2},K:5(a){3 b=2.u;7(!l D((\'(^|\\\\s)\'+a+\'(\\\\s|$)\'),\'i\').z(b)){2.u=b+((b.k>0)?\' \':\'\')+a}6 2},I:5(a){3 b=l D((\'(^|\\\\s)\'+a+\'(\\\\s|$)\'),\'i\');2.u=2.u.W(b,\'\').W(/^\\s+|\\s+$/g,\'\');6 2},x:5(a){6 l D((\'(^|\\\\s)\'+a+\'(\\\\s|$)\'),\'i\').z(2.u)},H:5(c){3 d=\'\';7(o.1e&&o.1e.1G){d=o.1e.1G(2,\'\').2r(c)}v 7(2.1C){3 e=c.W(/\\-(\\w)/g,5(a,b){6 b.1A()});d=2.1C[e]}6 d},P:5(c){9(3 d 1a c){3 e=d.W(/\\-(\\w)/g,5(a,b){6 b.1A()});2.2i[e]=c[d]}6 2},$:5(){3 a=C;7(o.1w){a=(G.k>1)?l n():C;3 b;9(3 i=0;(b=G[i]);i++){b=G[i];7(q b!=\'1B\'){b=o.1w(b)}7(G.k>1){a.p(b)}v{a=b}}4.F(a)}6 a?a:l n()},B:5(a){3 b=2.17(a||\'*\');3 c;3 d=l n();9(3 i=0;(c=b[i]);i++){d.p(c)}4.F(d);6 d},J:5(a,b){3 c=2.B(b);3 d=l n();3 e=l D(\'(^|\\\\s)\'+a+\'(\\\\s|$)\');3 f;9(3 i=0;(f=c[i]);i++){7(e.z(f.u)){d.p(f)}}6 d},N:5(a,b,c){3 d=2.B(c);3 e=l n();3 f;3 g;3 h;7(q b!=\'L\'){h=l D(\'(^|\\\\s)\'+b+\'(\\\\s|$)\')}9(3 i=0;(f=d[i]);i++){g=f.1q(a);7(q g==\'16\'&&g.k>0){7(q b==\'L\'||(b&&h.z(g))){e.p(f)}}}6 e},x:5(a){6 l D((\'(^|\\\\s)\'+a+\'(\\\\s|$)\'),\'i\').z(2.u)},Y:5(a,b){3 c;3 d;7(q b!=\'L\'){d=l D(\'(^|\\\\s)\'+b+\'(\\\\s|$)\')}c=2.1q(a);7(q c==\'16\'&&c.k>0){7(q b==\'L\'||(b&&d.z(c))){6 1b}}6 A},1p:5(a){a.8(2);6 2},M:5(a,b){7(2.X){2.X(a,b,A)}v{7(!2.t){2.t={}}7(!2.t[a]){2.t[a]=[]}2.t[a].p(b);2[\'1o\'+a]=4.19;7(q 2.y==\'1B\'){2.y[\'1o\'+a]=4.19}}6 2},19:5(a){3 b=a||18;3 c=2.t[b.28];9(3 i=0;i<c.k;i++){c[i].8(2,b)}},R:5(a,b){7(2.1n){2.1n(a,b,A)}v 7(2.t){3 c=2.t[a];9(3 i=0;i<c.k;i++){7(c[i]==b){26 c[i];c.25(i,1)}}}6 2},1k:5(a){7(a&&a.1j){a.1j()}v{18.22=A}},15:5(a){7(a&&a.1i){a.1i()}v{18.15=1b}},21:5(a){4.1k(a);4.15(a)},Z:[],13:A,12:C,1Y:5(){3 a;9(3 i=0;(a=G[i]);i++){4.Z.p(a)}},E:5(){7(4.13){6}4.13=1b;1X(4.12);9(3 i=0;i<4.Z.k;i++){4.Z[i]()}},1h:5(a,b,c,d,e,f){3 g=a+\'=\'+11(b);7(c){3 h=l 1V();h.1U(h.1S()+c*1R);g+=\'; 1Q=\'+h.1P()}7(!d){d=\'/\'}g+=\'; 1O=\'+11(d);7(e){g+=\'; 1T=\'+11(e)}7(f){g+=\'; 1M\'}o.1f=g},1g:5(a){3 b=o.1f.1L(a+\'=(.*?)(;|$)\');7(b){6(1J(b[1]))}6 C},1Z:5(a){7(4.1g(a)){4.1h(a,\'\',-1I)}},m:5(a,b){7(q 2[a]!=\'5\'){2[a]=b}},F:5(a){7(a){3 b=(a.2s==1d)?a:[a];3 c;9(3 i=0;(c=b[i]);i++){4.m.8(c,\'V\',4.V);4.m.8(c,\'S\',4.S);4.m.8(c,\'T\',4.T);4.m.8(c,\'Q\',4.Q);4.m.8(c,\'O\',4.O);4.m.8(c,\'r\',4.r);4.m.8(c,\'U\',4.U);4.m.8(c,\'K\',4.K);4.m.8(c,\'I\',4.I);4.m.8(c,\'H\',4.H);4.m.8(c,\'P\',4.P);4.m.8(c,\'B\',4.B);4.m.8(c,\'J\',4.J);4.m.8(c,\'N\',4.N);4.m.8(c,\'x\',4.x);4.m.8(c,\'Y\',4.x);4.m.8(c,\'M\',4.M);4.m.8(c,\'R\',4.R)}}},1F:5(){4.m.8(y,\'$\',2.$);y.4=2;7(1m){n=1d}n.1E=l 1d();9(3 a 1a 1c){n.1E[a]=1c[a]}}};5 n(){}3 1c={V:5(){3 a=l n();3 b;9(3 i=0;i<2.k;i++){b=4.V.8(2[i]);7(b){a.p(b)}}6 a},S:5(){3 a=l n();3 b;9(3 i=0;i<2.k;i++){b=4.S.8(2[i]);7(b){a.p(b)}}6 a},T:5(a,b,c,d){3 e=l n();3 f;9(3 i=0;i<2.k;i++){f=4.T.8(2[i],a,b,c,d);7(f){e.p(f)}}6 e},Q:5(){9(3 i=0;i<2.k;i++){4.Q.8(2[i])}6 2},O:5(a){9(3 i=0;i<2.k;i++){4.O.8(2[i],a)}6 2},r:5(a){9(3 i=0;i<2.k;i++){4.r.8(2[i],a)}6 2},U:5(a){9(3 i=0;i<2.k;i++){4.U.8(2[i],a)}6 2},K:5(a){9(3 i=0;i<2.k;i++){4.K.8(2[i],a)}6 2},I:5(a){9(3 i=0;i<2.k;i++){4.I.8(2[i],a)}6 2},H:5(a){3 b=[];9(3 i=0;i<2.k;i++){b.p(4.H.8(2[i],a))}6 b},P:5(a){9(3 i=0;i<2.k;i++){4.P.8(2[i],a)}6 2},B:5(a){3 b=l n();3 c;9(3 i=0;i<2.k;i++){c=4.B.8(2[i],a);9(3 j=0;j<c.k;j++){b.p(c[j])}}6 b},J:5(a,b){3 c=l n();3 d;9(3 i=0;i<2.k;i++){d=4.J.8(2[i],a,b);9(3 j=0;j<d.k;j++){c.p(d[j])}}6 c},N:5(a,b,c){3 d=l n();3 e;9(3 i=0;i<2.k;i++){e=4.N.8(2[i],a,b,c);9(3 j=0;j<e.k;j++){d.p(e[j])}}6 d},x:5(a){3 b=l n();9(3 i=0;i<2.k;i++){7(4.x.8(2[i],a)){b.p(2[i])}}6 b},Y:5(a,b){3 c=l n();9(3 i=0;i<2.k;i++){7(4.Y.8(2[i],a,b)){c.p(2[i])}}6 c},1p:5(a){9(3 i=0;i<2.k;i++){a.8(2[i])}6 2},M:5(a,b){9(3 i=0;i<2.k;i++){4.M.8(2[i],a,b)}6 2},R:5(a,b){9(3 i=0;i<2.k;i++){4.R.8(2[i],a,b)}6 2}};4.1F();/*@1D@7(@2q)(5(){2p{o.2o.2n(\'2m\')}2l(e){2k(G.2j,2h);6}4.E()})();o.1t=5(){7(o.1v==\'1H\'){o.1t=C;4.E()}};@2g@*/7(o.X){o.X(\'2f\',4.E,A)}7(2e.2d.1y(/2c/i)!=-1){4.12=2b(5(){7(o.1v.1y(/2a|1H/i)!=-1){4.E()}},10)}y.2t=4.E;',62,154,'||this|var|bseDOM|function|return|if|call|for|||||||||||length|new|applyMethod|ArrayExt|document|push|typeof|addContent||events|className|else||hasClass|window|test|false|getByTag|null|RegExp|DOMHasLoaded|addMethods|arguments|getStyle|removeClass|getByClass|addClass|undefined|addEvent|getByAttr|setAttrs|setStyle|remove|removeEvent|next|create|replaceContent|prev|replace|addEventListener|hasAttr|functionsToCall||escape|DOMLoadTimer|DOMLoaded|childNodes|cancelBubble|string|getElementsByTagName|event|handleEvent|in|true|ArrayExtMethods|Array|defaultView|cookie|getCookie|setCookie|stopPropagation|preventDefault|cancelDefault|nextSibling|isMSIE|removeEventListener|on|each|getAttribute|nodeType|while|onreadystatechange|previousSibling|readyState|getElementById|removeChild|search|parentNode|toUpperCase|object|currentStyle|cc_on|prototype|init|getComputedStyle|complete|9999999|unescape|setAttributes|match|secure|createElement|path|toGMTString|expires|1000|getTime|domain|setTime|Date|tags|clearInterval|DOMReady|deleteCookie|all|cancelEvent|returnValue|appendChild|innerHTML|splice|delete|setAttribute|type|class|loaded|setInterval|WebKit|userAgent|navigator|DOMContentLoaded|end|50|style|callee|setTimeout|catch|left|doScroll|documentElement|try|_win32|getPropertyValue|constructor|onload'.split('|'),0,{}))

// ========================================================
//   spam protected emails
// --------------------------------------------------------

bseDOM.DOMReady (function ()
{
    var replaces = 0;

    while (document.body.innerHTML.indexOf ('##' + 'kukac##') != -1 && replaces < 1000)
    {
        document.body.innerHTML = document.body.innerHTML.replace ('##kukac' + '##', String.fromCharCode (64));
        replaces++;
    }
});


// ========================================================
//  external links in new window
// --------------------------------------------------------

function externalLink (ev)
{
    window.open (this.href);

    bseDOM.cancelEvent (ev);
}

bseDOM.DOMReady (function ()
{
    $(document)
        .getByAttr ('rel','external', 'a')
        .hasAttr ('href')
        .addEvent ('click', externalLink)
        .setAttrs ({'title':'új ablakban nyílik meg'});
});


// ========================================================
//  smarter textareas
// --------------------------------------------------------

function resizeTextarea (ev)
{
    this.setStyle ({'height': (this.scrollHeight - 20) + 'px'});  //at least 1em
    this.setStyle ({'height': (this.scrollHeight < 140 ? 140 : this.scrollHeight) + 'px'});
}

bseDOM.DOMReady (function ()
{
    $(document)
        .getByTag ('textarea')
        .each (function ()
        {
            if (isMSIE)
            {
                this.addEvent ('propertychange', function (e) { if (e.propertyName.toLowerCase() == 'value') resizeTextarea.call (elm); });
            }
            else
            {
                this.addEvent ('input', resizeTextarea);
            }

            resizeTextarea.call (this);
        });
});

// ========================================================
//  js fake-popup window (lightbox)
// --------------------------------------------------------

function showWindow (title, w, h)
{
    $(document).getByTag('embed').setStyle ({'visibility': 'hidden'});
    $(document).getByTag('object').setStyle ({'visibility': 'hidden'});

    $('bseoverlay').setStyle ({'display': 'block'});

    w = w < 100 ? 100 : w;
    h = h <  20 ?  20 : h;

    var maxw = document.documentElement
        ? document.documentElement.clientWidth
        : document.body.clientWidth;

    var maxh = document.documentElement
        ? document.documentElement.clientHeight
        : document.body.clientHeight;

    var scrolly = document.documentElement
        ? document.documentElement.scrollTop
        : document.body.scrollTop;

    var top = (maxh - h) / 2 + scrolly;
    var left = (maxw - w) / 2;

    top  = top  < 0 ? 0 : top;
    left = left < 0 ? 0 : left;

    $('bsewindow').setStyle
    ({
        'display': 'block',
        'left': left + 'px',
        'top': top + 'px',
        'width': w + 'px',        //fixme: this is style dependent
        'height': (h + 26) + 'px' //fixmetoo
    });

    $('bsewindowtitle').replaceContent (title);

    return $('bsewindowcontent').setStyle
    ({
        'width': w + 'px',
        'height': h + 'px'
    });
}

function hideWindow (ev)
{
    $('bseoverlay').setStyle ({'display': 'none'});
    $('bsewindow').setStyle ({'display': 'none'});

    $(document).getByTag('embed').setStyle ({'visibility': 'visible'});
    $(document).getByTag('object').setStyle ({'visibility': 'visible'});
}

bseDOM.DOMReady (function ()
{
    $(document.body).addContent
    (
        '<div id="bseoverlay" style="display:none"></div>' +
        '<div id="bsewindow" style="display:none"><h1>' +
        '<a href="javascript:;" title="Ablak bezárása" id="bsewindowclose"></a>' +
        '<span id="bsewindowtitle"></span>' +
        '</h1><div id="bsewindowcontent"></div></div>'
    );

    $('bseoverlay').addEvent('click', hideWindow);
    $('bsewindowclose').addEvent('click', hideWindow);
});

