_STRING = {"hu":{"_SITE":{"dmsg:add:success":"\u00dczenet elk\u00fcldve.","dmsg:add:failure":"Az \u00fczenet k\u00fcld\u00e9se, technikai okok miatt nem siker\u00fclt.\nK\u00e9rem pr\u00f3b\u00e1lja meg k\u00e9s\u0151bb \u00fajra!","dmsg:duplicate":"Az \u00fczenet\u00e9t m\u00e1r megkaptuk.\nK\u00f6sz\u00f6nj\u00fck!","dmsg:tip:name":"K\u00e9rem \u00edrja ide a nev\u00e9t!","dmsg:tip:email":"K\u00e9rem \u00edrja ide az e-mail c\u00edm\u00e9t,|amire a v\u00e1laszt v\u00e1rja!","dmsg:tip:text":"Ide \u00edrhatja az \u00fczenet sz\u00f6veg\u00e9t.","dmsg:tip:send":"\u00dczenet k\u00fcld\u00e9se.","dmsg:form:send":"K\u00fcld\u00e9s","dmsg:form:name":"N\u00e9v","dmsg:form:email":"E-mail c\u00edm","dmsg:form:text":"\u00dczenet","subscribe:duplicate":"Feliratkoz\u00e1s\u00e1t r\u00f6gz\u00edtett\u00fck.\nK\u00f6sz\u00f6nj\u00fck!","gbook:add:success":"\u00dczenet elk\u00fcldve.","gbook:add:failure":"Az \u00fczenet k\u00fcld\u00e9se, technikai okok miatt nem siker\u00fclt.\nK\u00e9rem pr\u00f3b\u00e1lja meg k\u00e9s\u0151bb \u00fajra!.","gbook:duplicate":"Az \u00fczenete m\u00e1r szerepel a vend\u00e9gk\u00f6nyvben!","gbook:tip:name":"K\u00e9rem \u00edrja ide a nev\u00e9t!","gbook:tip:text":"Ide \u00edrhatja az \u00fczenet sz\u00f6veg\u00e9t.","gbook:tip:send":"\u00dczenet k\u00fcld\u00e9se.","gbook:tip:show:all:entries":"Kattintson ide az \u00f6sszes|bejegyz\u00e9s megtekint\u00e9s\u00e9hez!","gbook:form:name":"N\u00e9v","gbook:form:message":"\u00dczenet","gbook:send":"K\u00fcld\u00e9s","gbook:all":"\u00d6sszes","gbook:fresh:entries":"Legfrissebb {%1%} bejegyz\u00e9s","gbook:all:entry":"\u00d6sszes bejegyz\u00e9s","gbook:last:entries":"Utols\u00f3 bejegyz\u00e9sek","gbook:tip:show:last:entries":"Kattintson ide, ha csak az utols\u00f3|bejegyz\u00e9seket szeretn\u00e9 l\u00e1tni!","gbook:tip:write":"\u00dczenet \u00edr\u00e1sa a vend\u00e9gk\u00f6nyvbe.","gbook:write":"Be\u00edr\u00e1s a vend\u00e9gk\u00f6nyvbe","gbook:currently:empty":"A vend\u00e9gk\u00f6nyv jelenleg \u00fcres.","reservation:fullday":"Ez a nap foglalt!","reservation:firstday":"Ez a nap <b>d\u00e9lut\u00e1n<\/b> foglalt, \u00edgy csak tart\u00f3z-|kod\u00e1sa <b>utols\u00f3<\/b> napjak\u00e9nt foglalhat\u00f3!","reservation:lastday":"Ez a nap <b>d\u00e9lel\u0151tt<\/b> foglalt, \u00edgy csak tart\u00f3z-|kod\u00e1sa <b>els\u0151<\/b> napjak\u00e9nt foglalhat\u00f3!","reservation:location":"Helysz\u00edn","reservation:location:modify":"Helysz\u00edn m\u00f3dos\u00edt\u00e1sa","reservation:address":"C\u00edm","reservation:num_bed":"F\u00e9r\u0151helyek","reservation:description":"Le\u00edr\u00e1s","reservation:rcalendar":"Foglalts\u00e1gi napt\u00e1r","reservation:text1":"Az al\u00e1bbi napt\u00e1r seg\u00edts\u00e9g\u00e9vel ellen\u0151rizheti a szabad id\u0151pontokat, majd az alatta l\u00e9v\u0151 \u0171rlapot kit\u00f6ltve \u00e9s elk\u00fcldve jelezheti nek\u00fcnk sz\u00e1ll\u00e1sfoglal\u00e1si sz\u00e1nd\u00e9k\u00e1t.","reservation:text2":"A foglal\u00e1s v\u00e9gleges\u00edt\u00e9s\u00e9hez sz\u00fcks\u00e9ges tov\u00e1bbi teend\u0151kr\u0151l a megadott el\u00e9rhet\u0151s\u00e9gein \u00e9rtes\u00edtj\u00fck.","reservation:text3":"A napt\u00e1r az aktu\u00e1lis h\u00f3napot mutatja, de a h\u00f3nap neve melletti nyilak seg\u00edts\u00e9g\u00e9vel ak\u00e1r egy \u00e9vre el\u0151re megn\u00e9zhetj\u00fck a bejegyzett foglal\u00e1sokat.","reservation:legend":"Jelmagyar\u00e1zat","reservation:legend:fullday":"Teljesen foglalt nap","reservation:legend:firstday":"d\u00e9lut\u00e1n m\u00e1r foglalt nap","reservation:legend:lastday":"d\u00e9lel\u0151tt m\u00e9g foglalt nap","reservation:theresdata":"A foglal\u00e1s adatai","reservation:name":"N\u00e9v","reservation:tip:name":"K\u00e9rem \u00edrja ide a nev\u00e9t!","reservation:email":"E-mail c\u00edm","reservation:tip:email":"K\u00e9rem \u00edrja ide az e-mail c\u00edm\u00e9t,|amire a v\u00e1laszt v\u00e1rja!","reservation:tel":"Telefonsz\u00e1m","reservation:tip:tel":"K\u00e9rem \u00edrjon ide egy olyan telefonsz\u00e1mot,|amelyen sz\u00fcks\u00e9g eset\u00e9n el\u00e9rhetj\u00fck!","reservation:date_start":"\u00c9rkez\u00e9s ideje","reservation:tip:date_start":"K\u00e9rem kattintson ide a d\u00e1tum kiv\u00e1laszt\u00e1s\u00e1hoz.||&lt;b&gt;Az sz\u00e1ll\u00e1st 14:00 \u00f3r\u00e1t\u00f3l lehet elfoglalni!&lt;\/b&gt;","reservation:from14":"14:00-t\u00f3l","reservation:date_end":"T\u00e1voz\u00e1s ideje","reservation:tip:date_end":"K\u00e9rem kattintson ide a d\u00e1tum kiv\u00e1laszt\u00e1s\u00e1hoz.||&lt;b&gt;Az sz\u00e1ll\u00e1st 10:00 \u00f3r\u00e1ig kell elhagyni!&lt;\/b&gt;","reservation:until10":"10:00-ig","reservation:num_adult":"Feln\u0151ttek sz\u00e1ma","reservation:tip:num_adult":"K\u00e9rem \u00edrja ide a sz\u00e1ll\u00e1st ig\u00e9nybevenni|k\u00edv\u00e1n\u00f3 feln\u0151ttek sz\u00e1m\u00e1t!","reservation:num_child":"Gyerekek sz\u00e1ma","reservation:tip:num_child":"K\u00e9rem \u00edrja ide a sz\u00e1ll\u00e1st ig\u00e9nybevenni|k\u00edv\u00e1n\u00f3 gyerekek sz\u00e1m\u00e1t!","reservation:message":"\u00dczenet","reservation:tip:message":"Ide \u00edrhatja egy\u00e9b k\u00edv\u00e1ns\u00e1gait,|k\u00e9rd\u00e9seit, \u00fczenet\u00e9t, stb.","reservation:tip:send:reservation":"Kattintson ide az adatok elk\u00fcld\u00e9s\u00e9hez|\u00e9s ezzel a foglal\u00e1s ind\u00edt\u00e1s\u00e1hoz!","reservation:send:reservation":"Foglal\u00e1s","reservation:please:wait":"Kis t\u00fcrelmet...","reservation:confirm:lead":"\u00d6n az al\u00e1bbi adatokat adta meg","reservation:inactive:text1":"A kiv\u00e1lasztott helysz\u00ednre, sz\u00e1ll\u00e1st foglalni, jelenleg nem lehet lehets\u00e9ges.","reservation:inactive:text2":"Sz\u00e1ll\u00e1s foglal\u00e1s\u00e1ra jelenleg nincs lehet\u0151s\u00e9g!","reservation:confirm:text1":"Amennyiben a fenti adatok helyesek, kattintson a tov\u00e1bb gomra, a foglal\u00e1si ig\u00e9ny elk\u00fcld\u00e9s\u00e9hez!","reservation:select:place":"Els\u0151 l\u00e9p\u00e9sk\u00e9nt, k\u00e9rem v\u00e1lassza ki a foglal\u00e1s helysz\u00edn\u00e9t!","reservation:success1":"Foglal\u00e1s\u00e1t sikeresen r\u00f6gz\u00edtett\u00fck.","reservation:success2":"A foglal\u00e1s elfogad\u00e1s\u00e1r\u00f3l \u00e9s a tov\u00e1bbi teend\u0151kr\u0151l hamarosan \u00e9rtes\u00edtj\u00fck.","reservation:success3":"K\u00f6sz\u00f6nj\u00fck, hogy minket v\u00e1lasztott!","reservation:tip:backto:placeselect":"Vissza a helysz\u00edn kiv\u00e1laszt\u00e1s\u00e1hoz","reservation:step1":"<b>1. L\u00e9p\u00e9s<\/b>Helysz\u00edn kiv\u00e1laszt\u00e1sa","reservation:step2":"<b>2. L\u00e9p\u00e9s<\/b>Adatok megad\u00e1sa","reservation:step3":"<b>3. L\u00e9p\u00e9s<\/b>Foglal\u00e1s elk\u00fcld\u00e9se","reservation:reply:text1":"Kedves {%1%}!","reservation:reply:text2":"\u00c9rtes\u00edtj\u00fck, hogy foglal\u00e1si sz\u00e1nd\u00e9k\u00e1t, az al\u00e1bbi adatokkal r\u00f6gz\u00edtett\u00fck.<br \/>A foglal\u00e1s v\u00e9gleges\u00edt\u00e9s\u00e9hez sz\u00fcks\u00e9ges tov\u00e1bbi inform\u00e1ci\u00f3kkal, teend\u0151kkel kapcsolatban, hamarosan egyeztet\u00fcnk \u00d6nnel.","gallery:gallery":"Gal\u00e9ria","gallery:galleries":"Gal\u00e9ri\u00e1k","gallery:tip:view:gallery":"Kattintson ide a gal\u00e9ria megtekint\u00e9s\u00e9hez!","gallery:empty:gallery":"Ez a gal\u00e9ria jelenleg \u00fcres.","gallery:please:select:gallery":"K\u00e9rem, v\u00e1lasszon egyet a bal oldali gal\u00e9ri\u00e1k k\u00f6z\u00fcl!","gallery:prev:image":"El\u0151z\u0151 k\u00e9p","gallery:next:image":"K\u00f6vetkez\u0151 k\u00e9p","gallery:close:zoom":"Nagy\u00edt\u00e1s bez\u00e1r\u00e1sa","fps:#email":"Hib\u00e1s email c\u00edm!","fps:#empty":"K\u00e9rem t\u00f6ltse ki ezt a mez\u0151t!","fps::password#empty":"K\u00e9rem t\u00f6ltse ki mindk\u00e9t jelsz\u00f3 mez\u0151t!","fps::password_chk#empty":"K\u00e9rem t\u00f6ltse ki mindk\u00e9t jelsz\u00f3 mez\u0151t!","fps:#id":"Ez a sz\u00e1m \u00e9rv\u00e9nytelen!","fps:#pwdchk":"A megadott jelszavak nem egyeznek!","form:success":"K\u00e9sz.","form:failure":"A m\u0171velet v\u00e9grehajt\u00e1sa nem siker\u00fclt!","common:backto:mainpage":"Vissza a f\u0151oldalra","common:previous:month":"El\u0151z\u0151 h\u00f3nap","common:next:month":"K\u00f6vetkez\u0151 h\u00f3nap","Kattintson ide a nagy\u00edt\u00e1shoz!":"Kattintson ide a nagy\u00edt\u00e1shoz!","close:image:zoom":"Kattintson a k\u00e9pre a bez\u00e1r\u00e1shoz!","Tov\u00e1bb,yes,accept|M\u00e9gse,no,cancel":"Tov\u00e1bb,yes,accept|M\u00e9gse,no,cancel","crumb:main:page":"F\u0151oldal"},"LNG":"hu","lang:hu":"Magyar","lang:de":"N\u00e9met","lang:en":"Angol","month:1":"Janu\u00e1r","month:2":"Febru\u00e1r","month:3":"M\u00e1rcius","month:4":"\u00c1prilis","month:5":"M\u00e1jus","month:6":"J\u00fanius","month:7":"J\u00falius","month:8":"Augusztus","month:9":"Szeptember","month:10":"Okt\u00f3ber","month:11":"November","month:12":"December","month:short:1":"Jan","month:short:2":"Feb","month:short:3":"M\u00e1r","month:short:4":"\u00c1pr","month:short:5":"M\u00e1j","month:short:6":"J\u00fan","month:short:7":"J\u00fal","month:short:8":"Aug","month:short:9":"Sze","month:short:10":"Okt","month:short:11":"Nov","month:short:12":"Dec","day:1":"H\u00e9tf\u0151","day:2":"Kedd","day:3":"Szerda","day:4":"Cs\u00fct\u00f6rt\u00f6k","day:5":"P\u00e9ntek","day:6":"Szombat","day:7":"Vas\u00e1rnap","day:short:1":"H","day:short:2":"K","day:short:3":"Sz","day:short:4":"Cs","day:short:5":"P","day:short:6":"Sz","day:short:7":"V","tip:zoom":"Kattintson ide a nagy\u00edt\u00e1shoz!","subwin:close":"Val\u00f3ban bez\u00e1rod az ablakot?","form:success":"K\u00e9sz.","form:failure":"A m\u0171velet v\u00e9grehajt\u00e1sa nem siker\u00fclt!","form:bigimage":"A k\u00e9p m\u00e9rete t\u00fal nagy!","form:denied":"Nincs jogosults\u00e1god a m\u0171velet v\u00e9grehajt\u00e1s\u00e1hoz!","form:success:answer":"V\u00e1lasz elk\u00fcldve.","form:failure:answer":"Az \u00fczenetet nem siker\u00fclt elk\u00fcldeni!","title:err":"Hiba\u00fczenet","title:succ":"\u00dczenet","title:confirm":"Meger\u0151s\u00edt\u00e9s","seigi_l:invalid":"A megadott felhaszn\u00e1l\u00f3n\u00e9v vagy\njelsz\u00f3 nem megfelel\u0151!","seigi:xattack":"A m\u0171velet v\u00e9grehajt\u00e1sa jelenleg nem lehets\u00e9ges!","fps:#email":"Hib\u00e1s email c\u00edm!","fps:#empty":"K\u00e9rlek t\u00f6ltsd ki ezt a mez\u0151t!","fps::password#empty":"K\u00e9rlek t\u00f6ltsd ki mindk\u00e9t jelsz\u00f3 mez\u0151t!","fps::password_chk#empty":"K\u00e9rlek t\u00f6ltsd ki mindk\u00e9t jelsz\u00f3 mez\u0151t!","fps:#id":"Ez a sz\u00e1m \u00e9rv\u00e9nytelen!","fps::email#callback:ebenuser_email":"A megadott e-mail c\u00edm m\u00e1r foglalt!","fps::date_start#callback:reservation_date_start":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_end#callback:reservation_date_end":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_start2#callback:reservation_date_start2":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_end2#callback:reservation_date_end2":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_start3#callback:reservation_date_start2":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_end3#callback:reservation_date_end2":"A megadott d\u00e1tum nem foglalhat\u00f3!","fps::date_start#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","fps::date_end#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","fps::date_start2#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","fps::date_end2#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","fps::date_start3#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","fps::date_end3#regexp":"A d\u00e1tum form\u00e1tuma nem megfelel\u0151!","reservation:invalid_range":"A megadott id\u0151szak nem megfelel\u0151!\n(hib\u00e1s, vagy \u00e1tfed\u00e9sben van egy m\u00e1sik id\u0151szakkal)","reservation:can_not_accept_range":"A foglal\u00e1s nem elfogadhat\u00f3,\nmivel az id\u0151szak m\u00e1r r\u00e9szben foglalt.","reservation:place_not_selected":"A helysz\u00edn nincs megadva, \u00edgy az id\u0151szak \u00e9rv\u00e9nyess\u00e9ge nem ellen\u0151rizhet\u0151!","reservation:add:reply:title":"Sz\u00e1ll\u00e1sfoglal\u00e1s","date_picker:hour":"\u00d3ra","date_picker:min":"Perc","date_picker:sec":"M\u00e1sodperc","date_picker:cancel":"Kiv\u00e1lasztott d\u00e1tum alkalmaz\u00e1sa","date_picker:ok":"Napt\u00e1r bez\u00e1r\u00e1sa","pfx_url:gallery\/":"hu\/gal\u00e9ria\/","FLC:counter":"%% karakter \u00edrhat\u00f3","common:click_to_zoom":"Kattintson ide a nagy\u00edt\u00e1shoz!","yes":"Igen","no":"Nem","dynobj:warning:noscript":"A funkci\u00f3 haszn\u00e1lat\u00e1hoz be kell kapcsolni a javascript-et!","ISO:UNIT:PCE":"db","ISO:CURRENCY:HUF":"Ft","ISO:CURRENCY:EUR":"Eur"}};

function in_array(mxd,arr,strict)
{if(strict)
{for(var i=arr.length-1;i>=0;i--)
if(arr[i]===mxd)
return true;}
else
{for(var i=arr.length-1;i>=0;i--)
if(arr[i]==mxd)
return true;}
return false;}
function trim(str)
{return str.replace(/^\s+/,'').replace(/\s+$/,'');}
function array_rtrim(arr)
{for(var i=arr.length-1;i>=0;i--)
if(typeof(arr[i])=="object")
array_rtrim(arr[i]);else
arr[i]=trim(arr[i]);return true;}
function array_trim(arr)
{var res=[];for(var i=0;i<arr.length;i++)
res[i]=trim(arr[i]);return res;}
function array_noempty(arr)
{var res=[];for(var i=0;i<arr.length;i++)
if(arr[i]!='')
res[i]=arr[i];return res;}
function delFromList(item,list)
{var temp=[];var len=list.length;for(var i=0;i<len;i++)
if(list[i]!=item)
temp.push(list[i]);return temp;}
function object_merge(o1,o2)
{for(var i in o2)
o1[i]=o2[i];return true;}
function copyOf(obj)
{if(obj&&typeof(obj)=="object")
{var copy=new obj.constructor();for(var i in obj)
copy[i]=copyOf(obj[i]);return copy;}
return obj;}
function getLeft(node)
{if(node.offsetParent)
return getLeft(node.offsetParent)+node.offsetLeft;return node.offsetLeft;}
function getTop(node)
{if(node.offsetParent)
return getTop(node.offsetParent)+node.offsetTop;return node.offsetTop;}
function getRelLeft(node,rel)
{return(getLeft(node)-getLeft(rel.offsetParent));}
function getRelTop(node,rel)
{return(getTop(node)-getTop(rel.offsetParent));}
function addEventHandler(n,e,o,f)
{if(o&&f)
{if(n.attachEvent)
n.attachEvent("on"+e,function(e){return o[f](e)});else
n.addEventListener(e,function(e){return o[f](e)},false);}
else
{if(n.attachEvent)
n.attachEvent("on"+e,o);else
n.addEventListener(e,o,false);}}
function delEventHandler(n,e,o,f)
{if(o&&f)
{if(n.detachEvent)
n.detachEvent("on"+e,function(e){return o[f](e)});else
n.removeEventListener(e,function(e){return o[f](e)},false);}
else
{if(n.detachEvent)
n.detachEvent("on"+e,o);else
n.removeEventListener(e,o,false)}}
function gId(id)
{return document.getElementById(id);}
function gTags(id,node)
{return(arguments.length<2)?document.getElementsByTagName(id):node.getElementsByTagName(id);}
function gHTML()
{return document.getElementsByTagName("html").item(0);}
function gTag(id,node,n)
{return gTags(id,node).item(n);}
function cElement(name)
{return document.createElement(name);}
function getTime()
{return new Date().getTime();}
function pad_left(str,pad,n)
{var i=0;var res=str.toString();while(res.length<n)
{res=pad.charAt(i%pad.length)+res;i++;}
return res;}
function parseDate(str)
{var str=str.replace(/[\.]/g,'-');var temp=str.split(" ");var ymd=temp[0].split("-");var his=(temp[1])?(temp[1].split(":")):(["00","00","00"]);var date=new Date();date.setMilliseconds(0);date.setDate(1);date.setFullYear(ymd[0]);date.setMonth(parseFloat(ymd[1])-1);date.setDate(parseFloat(ymd[2]));date.setHours(parseFloat(his[0]));date.setMinutes(parseFloat(his[1]));date.setSeconds(parseFloat(his[2]));return date.getTime();}
function getDayOfWeek(time)
{var date=new Date();if(time)
{if((typeof(time)=="string")&&isNaN(time))
var time=parseDate(time);date.setTime(time);}
return date.getDay();}
function getDate(format,time,lng)
{var date=new Date();if(time&&(time!="undefined")&&(time!='NOW'))
{if((typeof(time)=="string")&&isNaN(time))
var time=parseDate(time);date.setTime(time);}
var res=format;res=res.replace(/Y/g,date.getFullYear());res=res.replace(/m/g,pad_left(date.getMonth()+1,"0",2));res=res.replace(/d/g,pad_left(date.getDate(),"0",2));res=res.replace(/H/g,pad_left(date.getHours(),"0",2));res=res.replace(/i/g,pad_left(date.getMinutes(),"0",2));res=res.replace(/s/g,pad_left(date.getSeconds(),"0",2));var lng=lng?lng:getLNG();res=res.replace(/F/g,getTXT('month:'+(date.getMonth()+1),lng));return res;}
function isOpera()
{return(navigator.userAgent.toUpperCase().indexOf("OPERA")!=-1);}
function isMSIE()
{if(arguments.length)
{if(isOpera())return false;for(var i=0;i<arguments.length;i++)
if(navigator.userAgent.indexOf("MSIE "+arguments[i])!=-1)return true;return false;}
return((navigator.userAgent.indexOf("MSIE")!=-1)&&!isOpera());}
function getMouse()
{return{x:getMouse.prototype.x,y:getMouse.prototype.y,t:getMouse.prototype.t};}
getMouse.prototype={instance:null,x:0,y:0,t:false,onMove:function(e)
{this.x=e.clientX;this.y=e.clientY;try{this.t=e.originalTarget?e.originalTarget:e.srcElement;}catch(e){this.t=false};}}
addEventHandler(document,"mousemove",function(e){getMouse.prototype.onMove(e||event)});Math.sgn=function(v)
{switch(true)
{case(v>0):return+1;case(v<0):return-1;default:return 0;}}
function execJS(id)
{var code=gId(id);if(code)
{eval(code.innerHTML);removeNode(id);}}
function removeNode(node)
{if(typeof(node)=="string")
var node=gId(node);try{node.parentNode.removeChild(node);}catch(e){};}
function addHTML(node,html)
{if(typeof(node)=="string")
var node=gId(node);var tempNode=document.createElement('div');tempNode.innerHTML=html;for(var n=tempNode.firstChild;n;n=n.nextSibling)
node.appendChild(n.cloneNode(true));}
function replaceHTML(node,html)
{if(typeof(node)=="string")
var node=gId(node);while(node.firstChild)
node.removeChild(node.firstChild);var tempNode=document.createElement('div');tempNode.innerHTML=html;for(var n=tempNode.firstChild;n;n=n.nextSibling)
node.appendChild(n.cloneNode(true));}
function moveContent(source,target)
{if(typeof(source)=="string")
var source=gId(source);if(typeof(target)=="string")
var target=gId(target);while(source.firstChild)
{target.appendChild(source.firstChild.cloneNode(true));source.removeChild(source.firstChild);}}
function copyContent(source,target)
{if(typeof(source)=="string")
var source=gId(source);if(typeof(target)=="string")
var target=gId(target);for(var n=source.firstChild;n;n=n.nextSibling)
target.appendChild(n.cloneNode(true));}
function clearNode(node)
{if(typeof(node)=="string")
var node=gId(node);while(node.firstChild)
node.removeChild(node.firstChild);}
function jsu(sv)
{try
{eval("var d=decodeURIComponent;var o=("+sv+");");return o;}
catch(e)
{return null}}
function jss(v)
{var res=null;if(v==null)
return'null';if(v===false)
return'false';if(v===true)
return'true';switch(typeof(v))
{case'string':return'd("'+encodeURIComponent(v)+'")';case'object':if(v.constructor==Array)
{var sub=[];for(var i=0;i<v.length;i++)
sub.push(jss(v[i]));return'['+sub.join(',')+']';}
var sub=[];for(var i in v)
sub.push('d("'+encodeURIComponent(i)+'"):'+jss(v[i]));return'{'+sub.join(',')+'}';default:return v;}}
function canvasWidth()
{return document.body.offsetWidth;}
function canvasHeight()
{if(gId('canvas_bottom'))
return gId('canvas_bottom').offsetTop+gId('canvas_bottom').offsetHeight;return document.body.offsetHeight;}
function hideNode(node)
{if(typeof(node)=="string")
var node=gId(node);node.style.visibility='hidden';}
function showNode(node)
{if(typeof(node)=="string")
var node=gId(node);node.style.visibility='visible';}
function setHTML(node,html)
{if(typeof(node)=="string")
var node=gId(node);node.innerHTML=html;}
function setStyle(node,style)
{if(typeof(node)=="string")
var node=gId(node);for(var i in style)
node.style[i]=style[i];}
function alphaFixIE(css){var s,i,j;if(!isMSIE())
return false;var els=document.getElementsByTagName("IMG");for(i=0;i<els.length;i++){s=els[i].src;if(s.toLowerCase().indexOf(".png")!=-1){els[i].src="/images/blank.gif";els[i].style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"', sizingMethod=image);";}}
if(css)
{for(i=0;i<document.styleSheets.length;i++){var pos=document.styleSheets[i].href.lastIndexOf("/");var cssDir=(pos!=-1)?document.styleSheets[i].href.substring(0,pos+1):"";for(j=0;j<document.styleSheets[i].rules.length;j++){var style=document.styleSheets[i].rules[j].style;if(style.backgroundImage.toLowerCase().indexOf(".png")!=-1){var filename=style.backgroundImage.substring(4,style.backgroundImage.length-1);if(filename.indexOf("http://")!=0&&filename.indexOf("/")!=0)
filename=cssDir+filename;style.backgroundImage="none";style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+filename+"', sizingMethod='crop');";}}}}}
function encodeUTF8(str){str=str.replace(/[\u0080-\u07ff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xc0|cc>>6,0x80|cc&0x3f);});str=str.replace(/[\u0800-\uffff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xe0|cc>>12,0x80|cc>>6&0x3F,0x80|cc&0x3f);});return str;}
function decodeUTF8(str){str=str.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(c){var cc=(c.charCodeAt(0)&0x1f)<<6|c.charCodeAt(1)&0x3f;return String.fromCharCode(cc);});str=str.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(c){var cc=(c.charCodeAt(0)&0x0f)<<12|(c.charCodeAt(1)&0x3f<<6)|c.charCodeAt(2)&0x3f;return String.fromCharCode(cc);});return str;}
function formatPrice(input)
{try{var value=input.value.replace(/[^0-9]/g,'');var l=value.length;var res=[];for(var i=1;i<=l;i++)
if((i>1)&&(i%3==1))
res.unshift(value.charAt(l-i)+" ");else
res.unshift(value.charAt(l-i));input.value=res.join("");}
catch(e){}}
function watchEnter(node,e,fn)
{if(e.keyCode==13)
{eval(fn);return false;}}
function setSelectValue(node,value)
{if(typeof(node)=="string")
var node=gId(node);for(var i=0;i<node.options.length;i++)
node.options[i].selected=(node.options[i].value==value);return true;}
function initClassInstance(proto,obj,list)
{var list=list.split(",");for(var i=list.length-1;i>=0;i--)
obj[list[i]]=copyOf(proto[list[i]]);}
function hasCSSClass(node,cls)
{if(node.className&&in_array(cls,node.className.split(" ")))
return true;return false;}
function setCSSClass(node,cls)
{if(delCSSClass(node,cls))
{var newClass=node.className+" "+cls;if(node.className!=newClass)
node.className=newClass;return true;}
return false;}
function delCSSClass(node,cls)
{if(node)
{var newClass=node.className.replace(" "+cls,"").replace(cls,"");if(node.className!=newClass)
node.className=newClass;return true;}
return false;}
function setSafeFocus(id)
{try{var id=id.split("::");if(id.length>1)
document.forms[id[0]][id[1]].focus();else
gId(id[0]).focus();}catch(e){alert(e.message);};}
function rot38(str)
{var res="";var l=str.length;for(var i=0;i<l;i++)
{var c=str.charCodeAt(i)-47;if((c>=0)&&(c<=75))
c=(c+38)%76;res+=String.fromCharCode(c+47);}
return res;}
function openPopupPage(url,wndName,width,height,paramStr,returnWithInstane)
{var res=[];var left=10;var top=10;var sb=false;var mb=false;var op=(navigator.userAgent.search("Opera")!=-1);var ms=(navigator.userAgent.search("MSIE")!=-1)&&(!op);var param=paramStr.split(";");for(var i in param)
{var nam=param[i].split(":")[0].toLowerCase();var val=param[i].split(":")[1];switch(nam)
{case"fullscreen":res.push("fullscreen="+val);break;case"location":res.push("location="+val);break;case"menubar":res.push("menubar="+val);mb=(val=='yes');break;case"resizable":res.push("resizable="+val);break;case"scrollbars":res.push("scrollbars="+val);sb=(val=='yes');break;case"status":res.push("status="+val);break;case"titlebar":res.push("titlebar="+val);break;case"toolbar":res.push("toolbar="+val);break;case"left":left=val;break;case"top":top=val;break;case"center":if(val=='yes')
{left=Math.round((screen.width-width)/2);top=Math.round((screen.height-height)/2);}
break;}}
if(ms)
{width+=(sb)?13:-4;height+=(sb)?0:-4;if(mb)height-=20;}
res.push("width="+width);res.push("height="+height);res.push("left="+left);res.push("top="+top);var win=window.open(url,wndName,res.join(","));try{win.focus();}catch(e){};if(returnWithInstane)
return win;}
function setCookie(name,value,expiredays,path)
{var res=[];res.push(name+"="+escape(value));if(expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);res.push("expires="+exdate.toGMTString());}
if(path)
res.push("path="+path);document.cookie=res.join(";");}
function getCookie(name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(name+"=");if(c_start!=-1)
{c_start=c_start+name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function setAlpha(node,a)
{if(typeof(node)=="string")
var node=gId(node);try{node.style.opacity=a;}catch(e){};try{node.style.MozOpacity=a;}catch(e){};try{node.style.filter="alpha(opacity="+Math.round(100*a)+")";}catch(e){};}
function startGA(uid,domain)
{try{window._gaq=window._gaq||[];_gaq.push(['_setAccount',uid]);if(domain)
_gaq.push(['_setDomainName','.'+domain]);_gaq.push(['_trackPageview']);var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);}catch(e){}}
function __LOCKBAR(b,noanim)
{try
{if(b)
{var div=document.createElement('div');var html=document.getElementsByTagName('html').item(0);var w=document.body.clientWidth||html.scrollWidth;var h=html.scrollHeight;var oh=window.innerHeight||document.documentElement.offsetHeight;var ot=document.documentElement.scrollTop||html.scrollTop||document.body.scrollTop;var t=Math.floor(ot+oh/2-10);var animcss=(noanim)?"background:#000000":'background:#000000 url(\'/cms/images/lockbar.gif\') no-repeat 50% '+t+'px';div.innerHTML='<div id="lockbar" style="display:block;margin:0px;padding:0px;position:absolute;z-index:999999;top:0px;left:0px;width:'+w+'px;height:'+h+'px;'+animcss+';opacity:0.8;filter:alpha(opacity=80);-moz-opacity:0.8">'+(isMSIE(6)?'<iframe style="width:'+w+'px;height:'+h+'px;position:absolute;top:0px;left:0px;margin:0px;padding:0px;filter=alpha(opacity=0);opacity:0;-moz-opacity:0" frameborder="0"></iframe>':'')+'</div>';document.body.insertBefore(div.firstChild,document.body.firstChild);}
else
{var n=document.getElementById('lockbar');n.parentNode.removeChild(n);}}catch(e){};}
try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}
function fetch(str,_tpl_vars)
{var res=str.replace(/\{\$[a-zA-Z0-9\_\.]+\}/g,function(token,pos,str){var token=token.substring(2,token.length-1).replace(/[\.]/g,"']['");try{eval("var res = _tpl_vars['"+token+"'];");}catch(e){var res=""};return res;});var res=res.replace(/\{if ([^\}]+)\}(.*?)\{\/if\}/g,function(token,eq,content,pos,str){eq=eq.replace(/\$[a-zA-Z0-9\_\.]+/g,function(token,pos,str){var token=token.substring(1).replace(/[\.]/g,"']['");try{eval("var res = _tpl_vars['"+token+"'];");}catch(e){var res=null};if(typeof(res)=="string")
return'"'+res.replace(/([\"\\])/g,'\$1')+'"';return res;});var res="";try{eval("if ("+eq+") var res = content;")}catch(e){};return res;});return res;}
function dump(param)
{var res=[];for(var i in param)res.push(i+":"+param[i]);alert(res.join("\n"));}
function isValidDay(day,month,year)
{var day=parseFloat(day);if(!isNaN(day)&&(day>=1)&&(day<=getMonthLength(month,year)))
return true;return false;}
function isValidMonth(month)
{var month=parseFloat(month);return(!isNaN(month)&&(month>=1)&&(month<=12));}
function isValidYear(year)
{var year=parseFloat(year);return(!isNaN(year)&&(year>=1800)&&(year<=2200));}
function getMonthLength(month,year)
{var lengths=[31,28,31,30,31,30,31,31,30,31,30,31];var month=parseFloat(month);var year=parseFloat(year);if((year-1900)%4==0)
lengths[1]=29;return lengths[month-1];}
function replaceKeyAction(e,action)
{try{e.stopPropagation()}catch(x){};try{e.preventDefault()}catch(x){};try{e.returnValue=false;}catch(x){};try{e.keyCode=0;}catch(x){};try{e.Handled=true;}catch(x){};try{e.cancelBubble=true;}catch(x){};setTimeout(action,10);return false;}
function cancelDefaultKey(e)
{try{e.stopPropagation()}catch(x){};try{e.preventDefault()}catch(x){};try{e.returnValue=false;}catch(x){};try{e.keyCode=0;}catch(x){};try{e.Handled=true;}catch(x){};try{e.cancelBubble=true;}catch(x){};return false;}
function mailTo(addr)
{window.location="mailto:"+rot38(addr);}
function gFlash(movieName)
{if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName]}
else{return document[movieName]}}

function Tooltip(list_nodename)
{if(list_nodename)
{this.list_nodename=list_nodename.split(',');if(gId('toolnode'))
{Tooltip.prototype.instance=this;this.node=gId('toolnode');this.bound();if(isMSIE(6))
this.addIFrameCover();delEventHandler(document,'mousemove',function(e){if(Tooltip&&Tooltip.prototype.instance)Tooltip.prototype.instance.updatePos(e||event)});addEventHandler(document,'mousemove',function(e){if(Tooltip&&Tooltip.prototype.instance)Tooltip.prototype.instance.updatePos(e||event)});try{clearInterval(this.show_timer)}catch(e){};this.show_timer=setInterval('Tooltip.prototype.instance.watchTimer()',50);}}
else if(Tooltip.prototype.instance)
return Tooltip.prototype.instance;}
Tooltip.prototype={instance:null,mx:0,my:0,state:'none',show_time:false,show_timer:null,list_text:[],list_class:[],list_wait:[],list_nodename:['span','a','img','div'],getInstance:function()
{return Tooltip.prototype.instance;},setNodesList:function(list_nodename)
{this.list_nodename=list_nodename.split(',');},bound:function(list)
{if(list)
this.list_nodename=list;for(var i in this.list_nodename)
{var list_node=gTags(this.list_nodename[i]);if(list_node)this.alterNodes(list_node);}
return true;},alterNodes:function(list_node)
{for(var i=0;i<list_node.length;i++)
{var node=list_node.item(i);if(node&&node.title&&(node.title.indexOf('tooltip')===0))
{var header=node.title.toString().split(":")[0].split("#");if(header[0]==='tooltip')
{if((header.length==1)||((header.length==2)&&!isNaN(header[1])))
{var txt=node.title.toString().substring(node.title.toString().split(":")[0].length+1);var id=this.list_text.push(txt)-1;this.list_wait[id]=(header.length==2)?Math.round(parseFloat(header[1])):0;try{this.list_class[id]=node.className.split('::')[1];}catch(e){this.list_class[id]=''};node.title="";eval('addEventHandler(node, "mouseover", function(e){try{ if(Tooltip.prototype.instance) Tooltip.prototype.instance.show('+id+', (e||event) );}catch(err){}});');eval('addEventHandler(node, "mouseout", function(e){try{ if(Tooltip.prototype.instance) Tooltip.prototype.instance.hide();}catch(err){}});');}}}}},addIFrameCover:function()
{if(!gId('toolnode:frame'))
{var fr=cElement('iframe');fr.id="toolnode:frame";fr.style.cssText="position:absolute;top:0px;left:0px;width:0px;height:0px;background-color:red;display:block;visibility:hidden;filter:alpha(opacity=0)";this.node.parentNode.appendChild(fr);}},show:function(id,e)
{this.show_time=getTime()+this.list_wait[id];var txt=getTXT(this.list_text[id]);txt=txt.split('|').join('\r\n');this.node.innerHTML="<pre>"+txt+"</pre>";this.node.className=this.list_class[id];this.state="block";hideNode('toolnode');setAlpha(this.node,0);if(gId('toolnode:frame'))
{hideNode('toolnode:frame');gId('toolnode:frame').style.display='block';}
if(isMSIE(6)&&window.correctTooltipSnap)
{this.updatePos({clientX:0,clientY:0});setAlpha(this.node,0);setAlpha('toolnode:frame',0);this.node.style.display="block";gId('toolnode:frame').style.display="block";showNode(this.node);showNode('toolnode:frame');this.updatePos({clientX:0,clientY:0});if(gId('toolnode:frame'))
{gId('toolnode:frame').style.width=this.node.offsetWidth+"px";gId('toolnode:frame').style.height=this.node.offsetHeight+"px";}}
this.updatePos(e);this.node.style.display="block";showNode(this.node);if(gId('toolnode:frame'))
{gId('toolnode:frame').style.width=this.node.offsetWidth+"px";gId('toolnode:frame').style.height=this.node.offsetHeight+"px";showNode('toolnode:frame');}},hide:function()
{this.state="none";this.node.style.display="none";this.show_time=false;try{if(isMSIE(6))gId('toolnode:frame').style.display='none';}catch(e){};},watchTimer:function()
{if(this.show_time!==false)
if(this.state=="block")
if(getTime()>this.show_time)
{this.show_time=false;setAlpha(this.node,1);if(isMSIE(6))
setAlpha('toolnode:frame',1);}},updatePos:function(e)
{this.mx=e.clientX+-10;this.my=e.clientY+25;if((this.my+this.node.offsetHeight)>canvasHeight())
this.my=this.my-this.node.offsetHeight-30;if((this.mx+this.node.offsetWidth)>canvasWidth())
this.mx=canvasWidth()-this.node.offsetWidth-5;if(window.pageXOffset)
this.mx+=window.pageXOffset;else if(document.documentElement.scrollLeft)
this.mx+=document.documentElement.scrollLeft;else if(document.body.scrollLeft)
this.mx+=document.body.scrollLeft;if(window.pageYOffset)
this.my+=window.pageYOffset;else if(document.documentElement.scrollTop)
this.my+=document.documentElement.scrollTop;else if(document.body.scrollTop)
this.my+=document.body.scrollTop;if(this.state=="block")
{this.node.style.left=this.mx+"px";this.node.style.top=this.my+"px";try{if(isMSIE(6))
setStyle('toolnode:frame',{left:this.mx+"px",top:this.my+"px",width:this.node.offsetWidth+"px",height:this.node.offsetHeight+"px"});}catch(e){}}}}

function md5(s)
{var s=encodeUTF8(s);return md5.prototype.binl2hex(md5.prototype.core_md5(md5.prototype.str2binl(s),s.length*md5.prototype.MD5_chrsz));}
md5.prototype={MD5_hexcase:0,MD5_b64pad:"",MD5_chrsz:8,core_md5:function(x,len){x[len>>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16)
{var olda=a;var oldb=b;var oldc=c;var oldd=d;a=md5.prototype.md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5.prototype.md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5.prototype.md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5.prototype.md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5.prototype.md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5.prototype.md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5.prototype.md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5.prototype.md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5.prototype.md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5.prototype.md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5.prototype.md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5.prototype.md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5.prototype.md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5.prototype.md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5.prototype.md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5.prototype.md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5.prototype.md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5.prototype.md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5.prototype.md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5.prototype.md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5.prototype.md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5.prototype.md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5.prototype.md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5.prototype.md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5.prototype.md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5.prototype.md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5.prototype.md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5.prototype.md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5.prototype.md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5.prototype.md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5.prototype.md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5.prototype.md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5.prototype.md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5.prototype.md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5.prototype.md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5.prototype.md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5.prototype.md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5.prototype.md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5.prototype.md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5.prototype.md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5.prototype.md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5.prototype.md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5.prototype.md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5.prototype.md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5.prototype.md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5.prototype.md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5.prototype.md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5.prototype.md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5.prototype.md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5.prototype.md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5.prototype.md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5.prototype.md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5.prototype.md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5.prototype.md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5.prototype.md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5.prototype.md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5.prototype.md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5.prototype.md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5.prototype.md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5.prototype.md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5.prototype.md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5.prototype.md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5.prototype.md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5.prototype.md5_ii(b,c,d,a,x[i+9],21,-343485551);a=md5.prototype.safe_add(a,olda);b=md5.prototype.safe_add(b,oldb);c=md5.prototype.safe_add(c,oldc);d=md5.prototype.safe_add(d,oldd);}
return Array(a,b,c,d);},md5_cmn:function(q,a,b,x,s,t){var lsw=(a&0xFFFF)+(q&0xFFFF);var msw=(a>>16)+(q>>16)+(lsw>>16);var res1=(msw<<16)|(lsw&0xFFFF);var lsw=(x&0xFFFF)+(t&0xFFFF);var msw=(x>>16)+(t>>16)+(lsw>>16);var res2=(msw<<16)|(lsw&0xFFFF);var lsw=(res1&0xFFFF)+(res2&0xFFFF);var msw=(res1>>16)+(res2>>16)+(lsw>>16);var res3=(msw<<16)|(lsw&0xFFFF);var res4=(res3<<s)|(res3>>>(32-s));var lsw=(res4&0xFFFF)+(b&0xFFFF);var msw=(res4>>16)+(b>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);},md5_ff:function(a,b,c,d,x,s,t){return md5.prototype.md5_cmn((b&c)|((~b)&d),a,b,x,s,t);},md5_gg:function(a,b,c,d,x,s,t){return md5.prototype.md5_cmn((b&d)|(c&(~d)),a,b,x,s,t);},md5_hh:function(a,b,c,d,x,s,t){return md5.prototype.md5_cmn(b^c^d,a,b,x,s,t);},md5_ii:function(a,b,c,d,x,s,t){return md5.prototype.md5_cmn(c^(b|(~d)),a,b,x,s,t);},safe_add:function(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);},str2binl:function(str){var bin=Array();var mask=(1<<md5.prototype.MD5_chrsz)-1;for(var i=0;i<str.length*md5.prototype.MD5_chrsz;i+=md5.prototype.MD5_chrsz)
bin[i>>5]|=(str.charCodeAt(i/md5.prototype.MD5_chrsz)&mask)<<(i%32);return bin;},binl2hex:function(binarray){var hex_tab=md5.prototype.MD5_hexcase?["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]:["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var str="";for(var i=0;i<binarray.length*4;i++)
str+=hex_tab[(binarray[i>>2]>>((i%4)*8+4))&0xF]+hex_tab[(binarray[i>>2]>>((i%4)*8))&0xF];return str;}}

function XCom(name)
{if(!name)
var name="xcom";if(!XCom.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;XCom.prototype.instances[name]=this;this.name=name;}
return XCom.prototype.instances[name];}
XCom.prototype={ctrl:"index.php?cmd=x:",instances:{},state:null,aabort:true,name:"",_null:function(){},raw_mode:false,init:function(ctrl,aabort,mode)
{this.ctrl=ctrl;if(aabort===false)
this.aabort=false;if(mode)
this.raw_mode=true;return this;},getClient:function()
{try{return new XMLHttpRequest();}catch(e){}
var list=['MSXML2.XMLHTTP.7.0','MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'];for(var i=0;i<list.length;i++)
try{return new ActiveXObject(list[i]);}catch(e){}
return false;},serData:function(v)
{if(typeof(v)!="object")
return null;var data={};for(var i in v)
this._serData(v[i],i,data);var res=[];for(var i in data)
res.push(encodeURIComponent(i)+"="+encodeURIComponent(data[i]));return res.join("&");},_serData:function(v,pfx,res)
{if(typeof(v)=="object")
{res[pfx]="";for(var i in v)
this._serData(v[i],pfx+"["+i+"]",res);}
else if(pfx=="")
res=v;else
res[pfx]=v;},getData:function(cmd,data,fn)
{if(this.isBusy())
{if(!this.aabort)
return false;this.abort();}
var http=this.getClient();this.state={http:http};var send=this.serData(data);var size=send?send.length:0;var meth=cmd.split('::')[0];if(!in_array(meth,['GET','POST']))
var meth=(size>250)?"POST":"GET";else
var cmd=cmd.replace(meth+'::','');var gurl=((meth=="POST")||!size)?"":"&"+send;if(fn)
{this.state.fn=fn;http.open(meth,this.ctrl+cmd+gurl,true);eval("http.onreadystatechange = function(){try{XCom('"+this.name+"').recData()}catch(e){}};");}
else
{http.open(meth,this.ctrl+cmd+gurl,false);http.onreadystatechange=XCom.prototype._null;}
try{http.overrideMimeType("text/plain");}catch(e){};http.setRequestHeader("Content-type","application/x-www-form-urlencoded");if((navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005)
http.setRequestHeader("Connection","close");http.send((meth=="POST")?send:null);if(fn)
return true;if(this.raw_mode)
{var res=http.responseText;}
else
{try{eval("var res = "+http.responseText+";");}
catch(e){var res=null;}}
this.delState();return res;},recData:function()
{if(this.state&&this.state.http)
{if(this.state.http.readyState==4)
{if(this.raw_mode)
{var res=this.state.http.responseText;}
else
{try{eval("var res = "+this.state.http.responseText+";");}
catch(e){var res=null;}}
var fn=this.state.fn;this.delState();if(typeof(fn)=="function")
fn(res);else if(fn.length)
{if(fn[2]!=undefined)
fn[0][fn[1]](res,fn[2]);else
fn[0][fn[1]](res);}}}},setCtrl:function(ctrl)
{this.ctrl=ctrl;},isBusy:function()
{if(this.state)
return true;return false;},abort:function()
{if(this.state)
{try{this.state.http.onreadystatechange=XCom.prototype._null;}catch(e){};this.state.http.abort();this.delState();}},delState:function()
{this.state.http.onreadystatechange=XCom.prototype._null;delete this.state;}}

function FPS(name,fdo)
{if(!FPS.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;FPS.prototype.instances[name]=this;initClassInstance(FPS.prototype,this,"form,fdo,fro,handlers,params,rpc_action,rpc_values,send_requested,rpc_in_progress");if(fdo)
this.setFDO(fdo);}
FPS.prototype.instances[name].form=name;return FPS.prototype.instances[name];}
FPS.prototype={instances:{},cmd_field:"cmd",file_socket:"fps:file_socket",form:'',fdo:{},fro:{result:false,action:'',data:null,errors:{}},handlers:{},params:{style_failure:{backgroundColor:'#FF6600'},style_success:{backgroundColor:'#99CC00'},style_default:{backgroundColor:'#e0e0e0'},cb_blur:null,cb_focus:null,cb_change:null},send_requested:false,rpc_action:[],rpc_values:{},rpc_in_progress:false,getFDO:function()
{return this.fdo;},setFDO:function(fdo)
{this.fdo=fdo;},getFRO:function()
{return this.fro;},setFRO:function(fro)
{this.fro=fro;},getCMD:function()
{return document.forms["frm_"+this.form][this.cmd_field].value.toUpperCase().split(":").pop();},setCMD:function(cmd)
{document.forms["frm_"+this.form][this.cmd_field].value=this.form.toUpperCase()+":"+cmd.toUpperCase();},getFROData:function()
{return this.fro.data;},getField:function(field)
{return document.forms["frm_"+this.form][field];},parseForm:function()
{var frm=document.forms["frm_"+this.form];var l=frm.elements.length;var res={};for(var i=0;i<l;i++)
{var field=frm.elements[i];if(!field.disabled)
{var name=field.name;}}},getValue:function(field)
{var field=this.getField(field);if(field.options)
return field.value;if(field.length)
{for(var i=0;i<field.length;i++)
if(field[i].checked)
return field[i].value;return"";}
if(field.id&&(field.id.indexOf("tiny")!=-1))
{try
{return tinyMCE.getContent(field.id);}
catch(e)
{return"";}}
if(field.type&&in_array(field.type.toUpperCase(),['RADIO','CHECKBOX']))
{if(field.checked)
return field.value;return"";}
return field.value;},setValue:function(field,value)
{var field=this.getField(field);if(field.length)
{for(var i=0;i<field.length;i++)
if(field[i].value==value)
field[i].checked=true;}
else
{if(field.nodeName=="TEXTAREA")
var type="AREA";else
var type=field.getAttribute("type");type=type.toUpperCase();switch(type)
{case"FILE":break;default:field.value=value;break;}}
return true;},disableField:function(field)
{var field=this.getField(field);field.disabled=true;},enableField:function(field)
{var field=this.getField(field);field.disabled=false;},isValidField:function(field)
{return(this.fro.errors[field]==undefined);},setHandler:function(event,cb)
{this.handlers[event]=cb;},delHandler:function(event)
{delete this.handlers[event];},callHandler:function(event,state,field)
{var cb=this.handlers[event];var data={state:state,form:this.form};if(field)
data.field=field;if(typeof(cb)=="function")
void(cb(data));else
void(cb[0][cb[1]](data));},setFieldError:function(field,err)
{var err=err.toLowerCase();this.fro.result=false;if(!this.fro.errors[field])
this.fro.errors[field]=[];if(!in_array(err,this.fro.errors[field]))
{if(err.indexOf('callback:')===0)
this.fro.errors[field].push(err);else
this.fro.errors[field].push(err);}},delFieldError:function(field,err)
{if(err===true)
{delete this.fro.errors[field];}
else
{var err=err.toLowerCase();if(this.fro.errors[field])
{this.fro.errors[field]=delFromList(err,this.fro.errors[field]);if(!this.fro.errors[field]||!this.fro.errors[field].length)
delete this.fro.errors[field];}}
this.fro.result=true;for(var i in this.fro.errors)
{this.fro.result=false;break;}},getErrField:function(field)
{if(this.isPWDField(field))
var field=field.replace("_chk","")+"_chk";var res=gId('err:'+this.form+':'+field);if(!res)
res=gId('err:'+field);return res;},getMessage:function(field,err)
{var res=false
if((str='fps:'+this.form+':'+field+'#'+err)!=(res=getTXT(str)))return res;if((str='fps:'+this.form+'#'+err)!=(res=getTXT(str)))return res;if((str='fps::'+field+'#'+err)!=(res=getTXT(str)))return res;if((str='fps::'+field)!=(res=getTXT(str)))return res;if((str='fps:#'+err)!=(res=getTXT(str)))return res;return false;},getMessages:function(field)
{var err=this.fro.errors[field];var res=[];if(err)
{for(var i=0;i<err.length;i++)
{var msg=this.getMessage(field,err[i]);if(msg)
res.push(msg);}}
return res;},isPWDField:function(field)
{var list_check=this.fdo._VALIDATION[field];for(var i=list_check.length-1;i>=0;i--)
{var check=list_check[i];if(typeof(check)=="string")
check=[check];check[0]=check[0].toUpperCase();if(check[0]=="PWDCHK")
return true;}
return false;},rpcTest:function(field,test,data,callback)
{if(this.rpc_in_progress)
return null;this.rpc_in_progress=true;data.field=field;data.test=test;data.form=this.form;if(this.rpc_values[data.field]!=undefined)
{var check=false;for(var i in this.rpc_values[data.field].param)
if(data.param[i]!=this.rpc_values[data.field].param[i])
{check=true;break};if(!check)
{this.rpcComplete({test:this.rpc_values[data.field].test,field:field,result:this.rpc_values[data.field].result});return null;}}
this.rpc_values[data.field]={param:copyOf(data.param),result:null,test:null};if(test=='CALLBACK')
{if(!in_array('callback:'+data.callback,this.rpc_action))
this.rpc_action.push('callback:'+data.callback);}
else
{if(!in_array(test.toLowerCase(),this.rpc_action))
this.rpc_action.push(test.toLowerCase());}
XCom("rpc").getData("FPS:TEST",data,callback);return null;},rpcComplete:function(param)
{this.rpc_action=delFromList(param.test,this.rpc_action);if(param.result==="denied")
{alertMSG("form:failure");param.result=false;}
else if(param.result==="failed")
{alertMSG("form:failure");param.result=false;}
this.rpc_values[param.field].result=param.result;this.rpc_values[param.field].test=param.test;if(param.result)
this.delFieldError(param.field,param.test);else
this.setFieldError(param.field,param.test);this.rpc_in_progress=false;if(this.handlers.field)
this.callHandler('field','post',param.field);if(this.send_requested)
this.sendForm(this.send_requested.skip_check);},init:function(handlers,params)
{initClassInstance(FPS.prototype,this,"fro,rpc_action,rpc_values,send_requested");var fdo=this.getFDO();this.setHandler('field',[this,'defaultFieldHandler']);this.setHandler('upload',[this,'defaultUploadHandler']);if(handlers)
for(var i in handlers)
this.setHandler(i,handlers[i]);if(params)
for(var i in params)
this.params[i]=params[i];var _VLD=this.fdo._VALIDATION;for(var field in _VLD)
{var fieldList=this.getField(field);if(!fieldList)
continue;if(!fieldList.length)
fieldList=[fieldList];for(var i=0;i<fieldList.length;i++)
{var fieldNode=fieldList[i];try
{eval("fieldNode.onfocus = function(){FPS('"+this.form+"').focusField('"+field+"')}");eval("fieldNode.onblur = function(){FPS('"+this.form+"').blurField('"+field+"')}");if((fieldNode.nodeName=="INPUT")&&(fieldNode.getAttribute("type")=="file"))
eval("fieldNode.onchange = function(){FPS('"+this.form+"').changeField('"+field+"')}");}
catch(e){}}}},focusField:function(field)
{if(this.params.cb_focus)
this.params.cb_focus[0][this.params.cb_focus[1]](field,this.params.cb_focus[2]);this.initField(field);},blurField:function(field)
{if(this.params.cb_blur)
this.params.cb_blur[0][this.params.cb_blur[1]](field,this.params.cb_blur[2]);this.checkField(field);},changeField:function(field)
{if(this.params.cb_change)
this.params.cb_change[0][this.params.cb_change[1]](field,this.params.cb_change[2]);this.checkField(field);},initField:function(field)
{if(this.handlers.field)
this.callHandler('field','init',field);},checkField:function(field,rpc)
{if(rpc!==false)rpc=true;if(this.handlers.field)
this.callHandler('field','pre',field);var cmd=this.getCMD();var _DTS=this.fdo._DATASETS[cmd];if(!in_array(field,_DTS))
{if(!in_array("@"+field,_DTS))
return false;if(this.getValue(field)=="")
{this.delFieldError(field,true);if(this.handlers.field)
this.callHandler('field','post',field);if(this.fro.errors[field])
return false;return true;}}
var _VLD=this.fdo._VALIDATION;var list_check=_VLD[field];var value=this.getValue(field);for(var i=0;i<list_check.length;i++)
{var check=list_check[i];if(typeof(check)=="string")
check=[check];check[0]=check[0].toUpperCase();var res=false;switch(check[0])
{case'EMPTY':value=trim(value);if(value!='')res=true;break;case'ANY':res=true;break;case'ANYTRIM':value=trim(value);res=true;break;case'INT':case'INTEGER':if(value.match(/^[-+]{0,1}[0-9]+$/))
{value=parseInt(value);res=true;}
break;case'UNSIGNED':if(value.match(/^[0-9]+$/))
{value=parseInt(value);res=true;}
break;case'ID':if(value.match(/^[0-9]+$/)&&(parseInt(value)>=1))
{value=parseInt(value);res=true;}
break;case'NUMBER':if(!isNaN(value))
{value=new Number(value);res=true;}
break;case'LIST':if(in_array(value,check[1]))res=true;break;case'EMAIL':value=trim(value);if(value.match(/^(.+@.+\.[a-zA-Z0-9]+)([a-zA-Z0-9])$/))
res=true;break;case'CALLBACK':if(rpc)
{var param={};for(var i in check[2])
{if(i.charAt(0)=='*')
param[i.substring(1)]=this.getValue(check[2][i]);else
param[i]=check[2][i];}
res=this.rpcTest(field,check[0],{callback:check[1],param:param},[this,"rpcComplete"]);}
else
res=true;break;case'MINLEN':value=trim(value);if(value.length>=check[1])res=true;break;case'MAXLEN':value=trim(value);if(value.length<=check[1])res=true;break;case'MIN':if(value>=check[1])res=true;break;case'MAX':if(value<=check[1])res=true;break;case'REGEXP':if(value.match(check[1]))res=true;break;case'PWDCHK':var pwd_field=field.replace("_chk","");var chk_field=pwd_field+"_chk";var pwd=trim(this.getValue(pwd_field));var chk=trim(this.getValue(chk_field));if(in_array("@"+pwd_field,_DTS))
if((pwd=="")&&(chk==""))
{res=true;break;}
if(pwd==chk)
res=true;break;case'EXT':case'EXTENSION':var ext=value.split(".").pop().toLowerCase();if(in_array(ext,check[1].toLowerCase().split(",")))
res=true;break;case'IMG':case'IMAGE':var ext=value.split(".").pop().toLowerCase();if(in_array(ext,['jpg','jpeg','png','gif']))
res=true;break;}
this.setValue(field,value);if(res===true)
this.delFieldError(field,check[0]);else if(res===false)
{rpc=false;this.setFieldError(field,check[0]);}}
if(this.handlers.field)
this.callHandler('field','post',field);if(this.fro.errors[field])
return false;return true;},checkForm:function(rpc)
{if(rpc!==false)rpc=true;if(this.handlers.form)
this.callHandler('form','pre');var cmd=this.getCMD();var _DTS=this.fdo._DATASETS[cmd];for(var i=0;i<_DTS.length;i++)
this.checkField(_DTS[i].replace(/^[\@]/,''),rpc);this.fro.result=true;for(var i in this.fro.errors)
{this.fro.result=false;break;}
if(this.handlers.form)
this.callHandler('form','post');return this.fro.result;},sendComplete:function(fro)
{unlockPage();try{stopLoaderBar();}catch(e){try{__LOCKBAR(0);}catch(e){};}
if(fro)
this.fro=fro;if(this.handlers.upload)
this.callHandler('upload','post');},sendForm:function(skip_check)
{if(this.rpc_action.length)
{this.send_requested={skip_check:true};return false;}
try{if(SubWin("msgbox"))return false;}catch(e){}
if(skip_check||this.checkForm(false))
{lockPage();if(this.handlers.upload)
this.callHandler('upload','pre');try{startLoaderBar();}catch(e){try{__LOCKBAR(1);}catch(e){};}
var id_socket=this.file_socket;if(!gId(id_socket+":parent"))
{var span=cElement('span');span.id=id_socket+":parent";span.style.cssText="display:block;visibility:hidden;position:absolute;top:0px;left:0px;width:1px;height:1px;";document.body.appendChild(span);}
gId(id_socket+":parent").innerHTML='<iframe name="'+id_socket+':frame" id="'+id_socket+':frame"></iframe>';document.forms["frm_"+this.form].target=id_socket+":frame";var id_fps="frm_"+this.form+"_FPS";var __fps=gId(id_fps);if(__fps)
__fps.parentNode.removeChild(__fps);var vldfield=cElement('input');vldfield.type="hidden";vldfield.name="_FPS";vldfield.id="frm_"+this.form+"_FPS";vldfield.value="FPS";document.forms["frm_"+this.form].appendChild(vldfield);document.forms["frm_"+this.form].submit();return true;}
return false;}}

FPS.prototype.params.msg_success="<img src='/pngicon/accept/ffffff' alt='' />";FPS.prototype.params.msg_failure="<img src='/pngicon/exclamation/ffffff' alt='' /> %%";FPS.prototype.params.handle_focus="field";FPS.prototype.params.prefix_focus=false;FPS.prototype.setFieldFailureStyle=function(data)
{var fps=FPS(data.form);if(fps.params.handle_focus)
{try{var field_node=fps.getField(data.field).item(0);}catch(e){var field_node=fps.getField(data.field);};eval("var frame_node  = "+fps.params.handle_focus.replace("field","field_node")+";");if(!frame_node)alert(field_node);if(fps.params.prefix_focus)
var fclass=frame_node.className.split(" ")[0].split("-")[0];else
var fclass="";fieldClassFailure(frame_node,fclass);}}
FPS.prototype.setFieldNormalStyle=function(data)
{var fps=FPS(data.form);if(fps.params.handle_focus)
{try{var field_node=fps.getField(data.field).item(0);}catch(e){var field_node=fps.getField(data.field);};eval("var frame_node  = "+fps.params.handle_focus.replace("field","field_node")+";");if(!frame_node)alert(field_node);if(fps.params.prefix_focus)
var fclass=frame_node.className.split(" ")[0].split("-")[0];else
var fclass="";fieldClassNormal(frame_node,fclass);}}
FPS.prototype.defaultFieldHandler=function(data)
{var fps=FPS(data.form);if(fps.params.handle_focus)
{try{var field_node=fps.getField(data.field).item(0);}catch(e){var field_node=fps.getField(data.field);};eval("var frame_node  = "+fps.params.handle_focus.replace("field","field_node")+";");if(!frame_node)alert(field_node);if(fps.params.prefix_focus)
var fclass=frame_node.className.split(" ")[0].split("-")[0];else
var fclass="";switch(data.state)
{case"init":if(fieldFocus)fieldFocus(frame_node,fclass);break;case"pre":if(fieldBlur)fieldBlur(frame_node,fclass);break;}}
if(data.state!="post")
return true;if(fieldBlur)
{try{var field_node=fps.getField(data.field).item(0);}catch(e){var field_node=fps.getField(data.field);};fieldBlur(field_node);}
if(fps.isValidField(data.field))
{if(node=fps.getErrField(data.field))
{node.innerHTML=fps.params.msg_success;if(fps.params.eval_success)
eval(fps.params.eval_success);}}
else
{if(node=fps.getErrField(data.field))
{var msg=this.getMessages(data.field)[0];if(msg==undefined)
msg="";node.innerHTML=fps.params.msg_failure.replace("%%",msg);if(fps.params.eval_failure)
eval(fps.params.eval_failure);}}};FPS.prototype.defaultUploadHandler=function(data)
{if(data.state!="post")
return true;var fps=FPS(data.form);if(!fps.fro.result)
{for(var field in fps.fro.errors)
{var node=false;if(node=fps.getErrField(field))
{var msg=this.getMessages(field)[0];if(msg==undefined)
msg="";node.innerHTML=fps.params.msg_failure.replace("%%",msg);if(fps.params.eval_failure)
eval(fps.params.eval_failure);}}}
if(fps.fro.action)
try{eval(fps.fro.action);}catch(e){};};

window.___WINDOW_LOADED=false;addEventHandler(window,'load',function(){window.___WINDOW_LOADED=true;});function FLC(id,wait,pos)
{if(!FLC.prototype.instances[id])
{if((this.constructor!=Object)||(this==window))
return false;FLC.prototype.instances[id]=this;this.id=id;}
return FLC.prototype.instances[id];}
FLC.prototype={instances:{},id:'',allowed_keys:[8,9,16,17,18,27,33,34,35,36,37,38,39,40,46,112,113,114,115,116,117,118,119,120,121,122],text:'%%',wait:false,pos:"tr",getField:function()
{var field=gId(this.id);if(field)
return field;var form=this.id.split("::")[0];var name=this.id.split("::")[1];return document.forms["frm_"+form][name];},init:function(text,wait,pos)
{if(text)
this.text=text;this.wait=wait;if(pos)
this.pos=pos;else
this.pos="tr";if(wait)
{if(window.___WINDOW_LOADED)
this.bind();else
addEventHandler(window,'load',this,"bind");}
else
this.bind();},getCounter:function()
{return gId("FLC:"+this.id);},refresh:function()
{var res=this.getField().getAttribute("maxlength")-this.getField().value.length;if(res<0)
{this.getField().value=this.getField().value.substring(0,this.getField().getAttribute("maxlength"));res=0;}
this.getCounter().innerHTML=this.text.replace("%%",res);},restrict:function(e)
{if(!in_array(e.keyCode,this.allowed_keys))
return!(this.getField().value.length>=this.getField().getAttribute("maxlength"))
return true;},bind:function()
{if(!gId("FLC:"+this.id))
{var counter=cElement('div');counter.id="FLC:"+this.id;counter.className="flc";var w=this.text.replace("%%",this.getField().getAttribute("maxlength")).length*6;switch(this.pos)
{case'br':var top=getTop(this.getField())+this.getField().offsetHeight+"px";var left=getLeft(this.getField())+this.getField().offsetWidth-w+"px";break;case'tr':default:var top=getTop(this.getField())+"px";var left=getLeft(this.getField())+this.getField().offsetWidth+"px";break;}
setStyle(counter,{position:"absolute",top:top,left:left,width:w+"px",padding:"1px 3px",margin:"0px",font:"bold 11px Arial, Sans-serif;",textAlign:"center"});document.body.appendChild(counter);}
eval("this.getField().onchange = function(){FLC('"+this.id+"').refresh()}");eval("this.getField().onkeyup = function(){FLC('"+this.id+"').refresh()}");eval("this.getField().onkeydown = function(e){return FLC('"+this.id+"').restrict(e||event)}");this.refresh();}}

function Tween(name,fps)
{if(name==undefined)
var name="_"+Tween.prototype.next_uid++;if(!Tween.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;initClassInstance(Tween.prototype,this,"timer,callback,p1,p2,d,type,e,param,s,manip_data");this.name=name;if(fps)
this.fps=fps
else
this.fps=30;Tween.prototype.instances[name]=this;}
return Tween.prototype.instances[name];}
Tween.prototype={instances:{},next_uid:1,timer:null,name:"",callback:[],p1:0,p2:1,d:1,type:'no',e:1,param:{},s:1,fps:30,manip_data:{},getPos:function(t)
{switch(this.type)
{case'IN':return this.p1+Math.pow(t/this.d,this.e)*this.s;case'OUT':return this.p1-Math.pow(1-t/this.d,this.e)*this.s;default:return this.p1+t/this.d*this.s;}},tweenProc:function()
{var t=getTime()-this.t0;if(t>=this.d)
{this.callback[0][this.callback[1]](this.p2,this.param);delete Tween.prototype.instances[this.name];}
else
{this.callback[0][this.callback[1]](this.getPos(t),this.param);this.timer=setTimeout("try{Tween('"+this.name+"').tweenProc()}catch(e){}",Math.round(1000/this.fps));}},start:function(tween,callback,param)
{var tween=tween.split(':');var dim=tween[1].split('/');this.callback=callback;this.param=param;this.p1=parseFloat(dim[0].split('-')[0]);this.p2=parseFloat(dim[0].split('-')[1]);this.d=parseFloat(dim[1])*1000;this.type=tween[0].replace(/[0-9]/g,'').toUpperCase();this.e=parseFloat(tween[0].replace(/[^0-9]/g,''));this.s=this.p2-this.p1;this.t0=getTime();if(this.type=='OUT')
this.p1=this.p2;if(this.timer)
clearTimeout(this.timer);this.timer=setTimeout("try{Tween('"+this.name+"').tweenProc()}catch(e){}",Math.round(1000/this.fps));return this.name;},stop:function()
{if(this.timer)
clearTimeout(this.timer);this.timer=null;delete Tween.prototype.instances[this.name];},getAsRGB:function(c)
{var n=c>>8;return{r:n>>8,g:n%256,b:c%256};},RGBPos:function(c1,c2,p)
{var c1=this.getAsRGB(c1);var c2=this.getAsRGB(c2);var r=(c1.r+Math.floor((c2.r-c1.r)*p)).toString(16);var g=(c1.g+Math.floor((c2.g-c1.g)*p)).toString(16);var b=(c1.b+Math.floor((c2.b-c1.b)*p)).toString(16);r=pad_left(r,"0",2);g=pad_left(g,"0",2);b=pad_left(b,"0",2);return"#"+r+g+b;},manipProc:function(p,_param)
{var trg=this.manip_data.target;if(trg[2])
{if(trg[2]=="rgb")
var p=this.RGBPos(this.manip_data.c1,this.manip_data.c2,p);else
var p=trg[2].replace('%%',p);}
if(trg[1]=='style.opacity')
{try{trg[0].style.opacity=p;}catch(e){};try{trg[0].style.MozOpacity=p;}catch(e){};if(isMSIE()){try{trg[0].style.filter="alpha(opacity="+Math.round(p*100)+")";}catch(e){};}}
else
eval("trg[0]."+trg[1]+"=p");var t=getTime()-this.t0;if(t>=this.d)
{if(this.manip_data.callback)
{var cb=this.manip_data.callback;cb[0][cb[1]](this.manip_data.param);}}},manip:function(tween,target,callback,param)
{this.manip_data={target:target,callback:false,param:{}};if(param)
this.manip_data.param=param;if(callback)
this.manip_data.callback=callback;if(target[2]&&(target[2]=="rgb"))
{var tween=tween.split(':');var dim=tween[1].split('/');this.manip_data.c1=parseInt(dim[0].split('-')[0].replace("#",''),16);this.manip_data.c2=parseInt(dim[0].split('-')[1].replace("#",''),16);tween=tween[0]+":0-1/"+dim[1];}
this.start(tween,[this,"manipProc"]);}}

function IGallery(name)
{if(!IGallery.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;this.name=name;IGallery.prototype.instances[name]=this;initClassInstance(IGallery.prototype,this,"list,index,active,callback,cache,queue,queue_timer,trans_timer,image_sizes,zoom_data,advzoom_bg");}
return IGallery.prototype.instances[name];}
IGallery.prototype={instances:{},name:"",list:[],index:0,zoom_data:null,active:0,callback:null,zoom_cb:null,cache:[],queue:false,queue_timer:null,trans_timer:null,image_sizes:null,advzoom_bg:"#202020",getFgNode:function()
{return gId('igallery-'+this.name+'-img'+this.active);},getBgNode:function()
{return gId('igallery-'+this.name+'-img'+(1-this.active));},getNumbNode:function()
{return gId('igallery-'+this.name+'-numb');},getTextNode:function()
{return gId('igallery-'+this.name+'-text');},initBg:function()
{var fg=this.getFgNode();if(!this.getBgNode())
{var bg=cElement('div');bg.id="igallery-"+this.name+"-img1";bg.style.display="block";bg.style.position="absolute";document.body.appendChild(bg);setStyle(bg,{opacity:0,filter:'alpha(opacity=0)',MozOpacity:0,top:getTop(fg)+'px',left:getLeft(fg)+'px',width:fg.offsetWidth+'px',height:fg.offsetHeight+'px'});}},cachePrev:function(index)
{var index=index-1;if(index<0)
index=this.list.length+index;if(this.cache[index])
return true;else
{this.cache[index]=new Image();this.cache[index].src=this.getSrc(index);}},cacheNext:function(index)
{var index=index+1;if(index>=this.list.length)
index=index-this.list.length;if(this.cache[index])
return true;else
{this.cache[index]=new Image();this.cache[index].src=this.getSrc(index);}},preCache:function(index)
{if(this.cache[index]==null)
{this.cache[index]=new Image();this.cache[index].src=this.getSrc(index);}
this.cachePrev(index);this.cachePrev(index-1);this.cacheNext(index);this.cacheNext(index+1);},isLoaded:function(index)
{if(this.cache[index]&&this.cache[index].complete)
return true;return false;},init:function(list,index,wait,callback,image_sizes)
{if(index&&list&&list[index])
this.index=index;else
this.index=0;if(image_sizes)
this.image_sizes=image_sizes;this.list=list;this.preCache(this.index);this.active=0;if(callback)
this.callback=callback;if(wait)
addEventHandler(window,'load',this,"start");else
this.start();},getDim:function(index)
{if(this.cache[index]&&this.cache[index].complete)
return{width:this.cache[index].width,height:this.cache[index].height};return{width:0,height:0};},getSrc:function(index)
{if(typeof(this.list[index])=="object")
return this.list[index][0];return this.list[index];},getTxt:function(index)
{if(typeof(this.list[index])=="object")
if(this.list[index][1])
return this.list[index][1];return'';},start:function()
{if(this.getNumbNode())
this.getNumbNode().innerHTML=(this.index+1)+'/'+this.list.length;if(this.getTextNode())
this.getTextNode().innerHTML=this.getTxt(this.index);var index=this.index;this.index=-1;this.initBg();this.getFgNode().style.backgroundImage="none";this.getBgNode().style.backgroundImage="none";setStyle(this.getFgNode(),{opacity:1});if(this.callback)
this.callback[0][this.callback[1]](this);this.jump(index);},prev:function()
{if(this.index==0)
this.jump(this.list.length-1);else
this.jump(this.index-1);},next:function()
{if(this.index==this.list.length-1)
this.jump(0);else
this.jump(this.index+1);},queueImage:function(index)
{this.queue=index;this.preCache(index);if(this.queue_timer)
{clearTimeout(this.queue_timer);this.queue_timer=null;}
this.queue_timer=setTimeout("IGallery('"+this.name+"').checkQueue()",20);},checkQueue:function()
{if(!this.isLoaded(this.queue))
{this.queue_timer=setTimeout("IGallery('"+this.name+"').checkQueue()",20);return true;}
var index=this.queue;this.queue=false;this.queue_timer=null;this.jump(index);},trans:function()
{this.getFgNode().style.backgroundImage="url('"+this.getSrc(this.index)+"')";},jump:function(index)
{if(this.list&&this.list[index])
if(this.getFgNode().style.opacity==1)
{if(this.index==index)
return false;if(!this.isLoaded(index))
return this.queueImage(index);if(this.queue!==false)
return this.queueImage(index);this.getBgNode().style.backgroundRepeat="no-repeat";this.getBgNode().style.backgroundPosition="50% 50%";clearTimeout(this.trans_timer);this.trans_timer=null;this.trans_timer=setTimeout('IGallery("'+this.name+'").trans()',10);new Tween(this.getBgNode().id).manip('IN2:0-1/0.3',[this.getBgNode(),'style.opacity']);new Tween(this.getFgNode().id).manip('IN2:1-0/0.3',[this.getFgNode(),'style.opacity']);this.active=(1-this.active);this.index=index;this.preCache(this.index);if(this.getNumbNode())
this.getNumbNode().innerHTML=(index+1)+'/'+this.list.length;if(this.getTextNode())
this.getTextNode().innerHTML=this.getTxt(index);if(this.callback)
this.callback[0][this.callback[1]](this);}},advancedZoom:function(sname,cb)
{try{var size=this.image_sizes[sname];}catch(e){var size=false};this.zoom_data={};if(!size)
{zoomImage(this.getSrc(this.index).replace(/\.m$/,'.l'));return false;}
if(cb)
this.zoom_data.cb=cb;size=size.split("|")[0];img_w=parseInt(size.split("x")[0]);img_h=parseInt(size.split("x")[1]);frame_w=img_w+20;frame_h=img_h+20+60;this.zoom_data.sname=sname;var html=gTags('html').item(0);var ot=document.documentElement.scrollTop||html.scrollTop||document.body.scrollTop;var ol=document.documentElement.scrollLeft||html.scrollLeft||document.body.scrollLeft;var sw=document.documentElement.scrollWidth||html.scrollWidth||document.body.scrollWidth;var sh=document.documentElement.scrollHeight||html.scrollHeight||document.body.scrollHeight;var node_cover=cElement('div');node_cover.id='igallery_'+this.name+'_zoom_cover';setStyle(node_cover,{position:"absolute",zIndex:"9990",top:"0px",left:"0px",width:sw+"px",height:sh+"px",background:"#000000"});document.body.appendChild(node_cover);setAlpha(node_cover,0.8);var node_container=cElement('div');node_container.id='igallery_'+this.name+'_zoom';setStyle(node_container,{position:"absolute",zIndex:"9994",top:"50%",left:"50%",width:frame_w+"px",height:frame_h+"px",marginLeft:Math.round(ol-frame_w/2)+"px",marginTop:Math.round(ot-frame_h/2)+"px",background:"transparent",WebkitBorderRadius:"10px",MozBorderRadius:"10px",borderRadius:"10px"});document.body.appendChild(node_container);var node_frame=cElement('div');node_frame.id='igallery_'+this.name+'_zoom_frame';setStyle(node_frame,{position:"absolute",zIndex:"9995",top:"0px",left:"0px",width:frame_w+"px",height:frame_h+"px",background:this.advzoom_bg,backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%",backgroundImage:"url(/cms/images/igallery.advzoom.loading.gif)",WebkitBorderRadius:"10px",MozBorderRadius:"10px",borderRadius:"10px"});node_container.appendChild(node_frame);var node_img=cElement('div');node_img.id='igallery_'+this.name+'_zoom_img';setStyle(node_img,{position:"absolute",zIndex:"9996",top:"10px",left:"10px",width:img_w+"px",height:img_h+"px",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%",backgroundImage:"none"});node_container.appendChild(node_img);setAlpha(node_img,0);var node_footer=cElement('div');node_footer.id='igallery_'+this.name+'_zoom_footer';setStyle(node_footer,{position:"absolute",zIndex:"9997",bottom:"0px",left:"0px",width:frame_w+"px",height:60+"px",backgroundColor:"#000000",WebkitBorderBottomRightRadius:"10px",WebkitBorderBottomLeftRadius:"10px",MozBorderRadiusBottomright:"10px",MozBorderRadiusBottomleft:"10px",borderBottomRightRadius:"10px",borderBottomLeftRadius:"10px"});node_container.appendChild(node_footer);setAlpha(node_footer,0.75);var node_prev=cElement('div');node_prev.id='igallery_'+this.name+'_zoom_prev';setStyle(node_prev,{position:"absolute",zIndex:"9998",bottom:"15px",left:"15px",width:"30px",height:"30px",cursor:"pointer",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"0px 0px",backgroundImage:"url(/cms/images/igallery.advzoom.buttons."+(isMSIE(6)?"gif":"png")+")"});node_container.appendChild(node_prev);setAlpha(node_prev,0.5);var node_next=cElement('div');node_next.id='igallery_'+this.name+'_zoom_next';setStyle(node_next,{position:"absolute",zIndex:"9998",bottom:"15px",left:"145px",width:"30px",height:"30px",cursor:"pointer",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"-30px 0px",backgroundImage:"url(/cms/images/igallery.advzoom.buttons."+(isMSIE(6)?"gif":"png")+")"});node_container.appendChild(node_next);setAlpha(node_next,0.5);var node_close=cElement('div');node_close.id='igallery_'+this.name+'_zoom_close';setStyle(node_close,{position:"absolute",zIndex:"9998",bottom:"15px",right:"15px",width:"30px",height:"30px",cursor:"pointer",backgroundColor:"transparent",backgroundRepeat:"no-repeat",backgroundPosition:"-60px 0px",backgroundImage:"url(/cms/images/igallery.advzoom.buttons."+(isMSIE(6)?"gif":"png")+")"});node_container.appendChild(node_close);setAlpha(node_close,0.5);var node_number_info=cElement('div');node_number_info.id='igallery_'+this.name+'_zoom_number_info';setStyle(node_number_info,{position:"absolute",zIndex:"9998",bottom:"15px",left:"45px",width:"100px",height:"30px",backgroundColor:"transparent",color:"white",font:"normal 11px/30px Lucida Grande, Lucida Sans Unicode, Arial, FreeSans, Helvetica, Sans-serif",textAlign:"center"});node_container.appendChild(node_number_info);var node_text_info=cElement('div');node_text_info.id='igallery_'+this.name+'_zoom_text_info';setStyle(node_text_info,{position:"absolute",zIndex:"9998",bottom:"0px",left:"175px",width:(frame_w-220)+"px",height:"auto",backgroundColor:"transparent",color:"white",font:"normal 12px Lucida Grande, Lucida Sans Unicode, Arial, FreeSans, Helvetica, Sans-serif",textAlign:"center"});node_container.appendChild(node_text_info);eval('node_prev.onclick=function(){IGallery("'+this.name+'").advancedZoom_prev();};');eval('node_next.onclick=function(){IGallery("'+this.name+'").advancedZoom_next();};');node_prev.onmouseover=function(){setAlpha(this,1)};node_prev.onmouseout=function(){setAlpha(this,0.5)};node_next.onmouseover=function(){setAlpha(this,1)};node_next.onmouseout=function(){setAlpha(this,0.5)};node_close.onmouseover=function(){setAlpha(this,1)};node_close.onmouseout=function(){setAlpha(this,0.5)};eval('node_close.onclick=function(){IGallery("'+this.name+'").advancedZoom_close();};');eval('node_img.onclick=function(){IGallery("'+this.name+'").advancedZoom_close();};');node_prev.title="tooltip:gallery:prev:image";node_next.title="tooltip:gallery:next:image";node_close.title="tooltip:gallery:close:zoom";new Tooltip().bound();this.advancedZoom_jumpTo(this.index);},advancedZoom_prev:function()
{this.advancedZoom_jumpTo(this.zoom_data.index-1);},advancedZoom_next:function()
{this.advancedZoom_jumpTo(this.zoom_data.index+1);},advancedZoom_close:function()
{if(gId('igallery_'+this.name+'_zoom'))
{removeNode('igallery_'+this.name+'_zoom');removeNode('igallery_'+this.name+'_zoom_cover');try{Tooltip().hide();}catch(e){};}
if(this.zoom_data.cb)
{if(this.zoom_data.cb.length>2)
this.zoom_data.cb[0][this.zoom_data.cb[1]](this.zoom_data.cb[2]);else
this.zoom_data.cb[0][this.zoom_data.cb[1]]();}},advancedZoom_jumpTo:function(idx)
{if((idx>=0)&&(idx<(this.list.length)))
this.advancedZoom_jumpProc({step:'FADEOUT_START',idx:idx});},advancedZoom_updateTextInfo:function(txt)
{gId('igallery_'+this.name+'_zoom_text_info').innerHTML=txt;gId('igallery_'+this.name+'_zoom_text_info').style.marginBottom=Math.floor((60-(gId('igallery_'+this.name+'_zoom_text_info').offsetHeight))/2)+"px";},advancedZoom_jumpProc:function(param)
{var img=this.advancedZoom_getImageNode();var idx=param.idx;switch(param.step.toUpperCase())
{case'FADEOUT_START':this.zoom_data.index=idx;gId('igallery_'+this.name+'_zoom_number_info').innerHTML=(idx+1)+' / '+this.list.length+' kép';gId('igallery_'+this.name+'_zoom_text_info').innerHTML="";gId('igallery_'+this.name+'_zoom_prev').style.visibility=(idx==0)?'hidden':'visible';gId('igallery_'+this.name+'_zoom_next').style.visibility=(idx==this.list.length-1)?'hidden':'visible';var o=parseFloat(img.style.opacity);var t=0.3*o;if(t>0.1)
{try{Tween(img.id).stop();}catch(e){};try{new Tween(img.id).manip("OUT2:"+o+"-0/"+t,[img,"style.opacity"],[this,"advancedZoom_jumpProc"],{step:"FADEOUT_END",idx:idx});}catch(e){};}
else
{setAlpha(img,0);this.advancedZoom_jumpProc({step:"FADEOUT_END",idx:idx});}
break;case'FADEOUT_END':try{gId('igallery_'+this.name+'_zoom_frame').style.backgroundImage='url(/cms/images/igallery.advzoom.loading.gif)';}catch(e){};this.zoom_data.preload=new Image();var src=this.getSrc(idx);if(src.indexOf('.box/')!=-1)
{src=src.split('.box/');src=src[0]+'.box/'+src[1].substring(0,src[1].length-1)+this.zoom_data.sname;}
else
{src=src.split('.');src.splice(-1,1,this.zoom_data.sname);src=src.join('.');}
this.zoom_data.src=src;eval('addEventHandler(this.zoom_data.preload, "load",  function(){IGallery("'+this.name+'").advancedZoom_jumpProc({step:"IMG_LOAD_SUC",idx:'+idx+'})});');eval('addEventHandler(this.zoom_data.preload, "error", function(){IGallery("'+this.name+'").advancedZoom_jumpProc({step:"IMG_LOAD_ERR",idx:'+idx+'})});');this.zoom_data.preload.src=this.zoom_data.src;break;case'IMG_LOAD_SUC':try{gId('igallery_'+this.name+'_zoom_frame').style.backgroundImage='none';}catch(e){};img.style.backgroundColor="transparent";img.style.backgroundImage="url("+this.zoom_data.src+")";setTimeout('IGallery("'+this.name+'").advancedZoom_jumpProc({step:"FADEIN_START",idx:'+idx+'})',10);break;case'IMG_LOAD_ERR':try{gId('igallery_'+this.name+'_zoom_frame').style.backgroundImage='none';}catch(e){};img.style.backgroundColor="black";img.style.backgroundImage="none";setTimeout('IGallery("'+this.name+'").advancedZoom_jumpProc({step:"FADEIN_START",idx:'+idx+'})',10);break;case'FADEIN_START':try{Tween(img.id).stop();}catch(e){};try{new Tween(img.id).manip("IN2:0-1/0.4",[img,"style.opacity"],[this,"advancedZoom_jumpProc"],{step:"FADEIN_END",idx:idx});}catch(e){};break;case'FADEIN_END':this.advancedZoom_updateTextInfo(this.getTxt(idx));break;}},advancedZoom_getImageNode:function()
{return gId('igallery_'+this.name+'_zoom_img');}}

function DSelect()
{if(!DSelect.prototype.instance)
{if((this.constructor!=Object)||(this==window))
return false;DSelect.prototype.instance=this;}
return DSelect.prototype.instance;}
DSelect.prototype={instance:null,callback:null,value:"",day_nodes:[],init:function(value,cb)
{this.callback=cb;this.value=getDate("Y-m-d H:i:s",value);this.day_nodes=gId('DSelect_days').getElementsByTagName('a');this.drawCalendar();},setDay:function(obj)
{var day=obj.innerHTML;if(!this.isValidDay(day,getDate("m",this.value),getDate("Y",this.value)))
return false;this.value=getDate("Y-m-"+pad_left(day,"0",2)+" H:i:s",this.value);this.drawCalendar();},setMonth:function(month)
{if(!this.isValidMonth(month))
return false;var day=this.isValidDay(getDate("d",this.value),month,getDate("Y",this.value))?getDate("d",this.value):"01";this.value=getDate("Y-"+pad_left(month,"0",2)+"-"+day+" H:i:s",this.value);this.drawCalendar();},setYear:function(year)
{if(!this.isValidYear(year))
return false;var day=this.isValidDay(getDate("d",this.value),getDate("m",this.value),year)?getDate("d",this.value):"01";this.value=getDate(year+"-m-"+day+" H:i:s",this.value);this.drawCalendar();},setHour:function(hour)
{var hour=Math.round(parseFloat(hour));if((hour<0)&&(hour>23))
return false;this.value=getDate("Y-m-d "+pad_left(hour,"0",2)+":i:s",this.value);gId('DSelect_hour').value=getDate('H',this.value);},setMinute:function(minute)
{var minute=Math.round(parseFloat(minute));if((minute<0)&&(minute>59))
return false;this.value=getDate("Y-m-d H:"+pad_left(minute,"0",2)+":s",this.value);gId('DSelect_minute').value=getDate('i',this.value);},setSecond:function(second)
{var second=Math.round(parseFloat(second));if((second<0)&&(second>59))
return false;this.value=getDate("Y-m-d H:i:"+pad_left(second,"0",2),this.value);gId('DSelect_second').value=getDate('s',this.value);},drawCalendar:function()
{var ml=this.getMonthLength(getDate("m",this.value),getDate("Y",this.value));var shift=(getDayOfWeek(getDate("Y-m-01 01:01:01",this.value))+6)%7;var day=parseFloat(getDate("d",this.value));var html=["<p>H</p><p>K</p><p>S</p><p>C</p><p>P</p><p>S</p><p>V</p>"];var i=0;for(var i=0;i<42;i++)
{if((i<shift)||(i>=ml+shift))
{html.push('<a href="javascript:;" class="empty">&nbsp;</a>');}
else
{var d=i-shift+1;if(d==day)
html.push('<a href="javascript:;" class="active">'+d+'</a>');else
html.push('<a href="javascript:;" id="DSelect_day'+d+'" onclick="DSelect().setDay(this)" onmouseover="seigi_flashRGBIn(this,\'#D5E1F0\')" onmouseout="seigi_flashRGBOut(this,\'#D5E1F0-#A3BDDE\')">'+d+'</a>');}}
var list=gId('DSelect_month').getElementsByTagName('option');var m=parseFloat(getDate("m",this.value));for(var i=0;i<list.length;i++)
list.item(i).selected=(list.item(i).value==m)?"selected":"";gId('DSelect_year').value=getDate('Y',this.value);gId('DSelect_hour').value=getDate('H',this.value);gId('DSelect_minute').value=getDate('i',this.value);gId('DSelect_second').value=getDate('s',this.value);gId('DSelect_days').innerHTML=html.join("");gId('DSelect').style.visibility="visible";},isValidDay:function(day,month,year)
{var day=parseFloat(day);if(!isNaN(day)&&(day>=1)&&(day<=this.getMonthLength(month,year)))
return true;return false;},isValidMonth:function(month)
{var month=parseFloat(month);return(!isNaN(month)&&(month>=1)&&(month<=12));},isValidYear:function(year)
{var year=parseFloat(year);return(!isNaN(year)&&(year>=1800)&&(year<=2200));},getMonthLength:function(month,year)
{var lengths=[31,28,31,30,31,30,31,31,30,31,30,31];var month=parseFloat(month);var year=parseFloat(year);if((year-1900)%4==0)
lengths[1]=29;return lengths[month-1];},applyDate:function()
{this.setYear(gId('DSelect_year').value);this.setHour(gId('DSelect_hour').value);this.setMinute(gId('DSelect_minute').value);this.setSecond(gId('DSelect_second').value);this.callback[0][this.callback[1]](this.value,this.callback[2]);}}

function Restrict(name)
{if(name==undefined)
return false;if(!Restrict.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;if(!this.getField(name))
return false;this.name=name;this.rules={};this.trans=[];this.funct=[];this.fallbacks={};this.last_value="";Restrict.prototype.instances[name]=this;}
return Restrict.prototype.instances[name];}
Restrict.prototype={instances:{},name:"",rules:{},trans:[],funct:[],fallbacks:{},last_value:"",setRule:function(events,rule,fallback)
{var node=this.getField();this.last_value=node.value.toString();if(!this.last_value.match(rule))
this.last_value='';var list_event=events.split(",");for(var i=0;i<list_event.length;i++)
{var evt=list_event[i];this.rules[evt]=rule;if(fallback)
this.fallbacks[evt]=fallback;eval("addEventHandler(node,'"+evt+"',function(){Restrict('"+this.name+"').proc('"+evt+"')})");}},setTransform:function(rule)
{this.trans.push(rule);},setFunction:function(rule)
{this.funct.push(rule.replace(/[\%]/g,'ov'));},getField:function(name)
{if(name==undefined)
var name=this.name;if(name.indexOf("::")==-1)
return gId(name);var form=name.split("::")[0];var field=name.split("::")[1];if(document.forms[form])
if(document.forms[form][field])
return document.forms[form][field];return false;},proc:function(evt)
{var node=this.getField();var rule=this.rules[evt];var ov=node.value.toString();for(var i=0;i<this.trans.length;i++)
eval("ov = ov."+this.trans[i]);for(var i=0;i<this.funct.length;i++)
eval("ov = "+this.funct[i]);if(node.value!=ov)
node.value=ov;var new_value=node.value.toString();if(new_value.match(rule))
this.last_value=new_value;else
{if(this.fallbacks[evt]!=undefined)
{node.value=this.fallbacks[evt];this.last_value=node.value;}
else
{node.value=this.last_value;}}}}

function IMGLoader(name)
{if(!IMGLoader.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;initClassInstance(IMGLoader.prototype,this,"name,callback,index,loaded");this.name=name;IMGLoader.prototype.instances[name]=this;}
return IMGLoader.prototype.instances[name];}
IMGLoader.prototype={instances:{},name:"",callback:[],index:[],current:-1,loaded:0,start:function(list,callback)
{this.callback=callback;this.loaded=0;this.current=-1;this.index=[];var lists=list.split("|");for(var i=0;i<lists.length;i++)
{var list=lists[i].split(":");if(list.length==1)
list.unshift("");var pfx=list[0];var list=list[1].split(",");for(var j=0;j<list.length;j++)
this.index.push({src:pfx+list[j],img:false});}
this.loadNext();setTimeout('IMGLoader("'+this.name+'").proc()',20);},isComplete:function(url)
{for(var i=0;i<this.index.length;i++)
if(this.index[i].src==url)
return this.index[i].img.complete;return false;},loadNext:function()
{do
{this.current++;if(this.current>=this.index.length)return;this.index[this.current].img=new Image();this.index[this.current].img.src=this.index[this.current].src;}
while
(this.index[this.current].img.complete);},proc:function()
{if((this.current<this.index.length)&&this.index[this.current].img.complete)
this.loadNext();this.loaded=this.current/this.index.length;if(this.callback[2])
this.callback[0][this.callback[1]](this.loaded,this.callback[2]);else
this.callback[0][this.callback[1]](this.loaded);if(this.loaded<1)
setTimeout('IMGLoader("'+this.name+'").proc()',5);else
IMGLoader.prototype.destroy(this.name);},destroy:function(name)
{for(var i=0;i<IMGLoader.prototype.instances[name].index.length;i++)
delete IMGLoader.prototype.instances[name].index[i];delete IMGLoader.prototype.instances[name];}}

function Scroller(name)
{if(!Scroller.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;this.name=name;Scroller.prototype.instances[name]=this;initClassInstance(Scroller.prototype,this,"params,active,id_node,id_up,id_down,ow,oh,sh,st,mox,moy,axy,dir,slack,_slack,timer,timer2,alpha_current,alpha_target,id_bar,id_btn,scrollbar_active,last_height");}
return Scroller.prototype.instances[name];}
Scroller.prototype={instances:{},id_node:null,id_up:'scroll-up',id_down:'scroll-down',ow:0,oh:0,sh:0,st:0,mox:0,moy:0,axy:false,lmy:false,dir:0,slack:0.4,_slack:0,sdiv:30,timer:null,timer2:null,alpha_current:{up:0,down:0},alpha_target:{up:0,down:0},getNode:function(){return gId(this.id_node);},getUpNode:function(){return gId(this.id_up);},getDownNode:function(){return gId(this.id_down);},active:true,id_bar:null,id_btn:null,scrollbar_active:false,last_height:0,callback:false,init:function(param)
{object_merge(this,param);this.adjust();this.updateAlpha();if(this.sh)
{addEventHandler(document,'mousewheel',this,'wheelProc');addEventHandler(document,'DOMMouseScroll',this,'wheelProc');addEventHandler(document,'mousemove',this,'moveProc');}},initBar:function(param)
{object_merge(this,param);this.adjust();this.active=true;addEventHandler(document,'mousewheel',this,'wheelProc');addEventHandler(document,'DOMMouseScroll',this,'wheelProc');addEventHandler(gId(this.id_btn),'mousedown',this,'scrollBarStart');addEventHandler(gId(this.id_btn),'mouseup',this,'scrollBarStop');this.scrollBarWatch();},scrollBarStart:function(e)
{this.scrollbar_active=true;document.onselectstart=function(){return false;};this.scrollBarProc();new Dragger(this.name+'-scrollbar-button').start(this.id_btn,this.id_bar,true);try{e.stopPropagation()}catch(x){};try{e.preventDefault()}catch(x){};try{e.returnValue=false;}catch(x){};try{e.Handled=true;}catch(x){};try{e.cancelBubble=true;}catch(x){};return false;},scrollBarStop:function(e)
{this.scrollbar_active=false;document.onselectstart=null;try{new Dragger(this.name+'-scrollbar-button').stop();}catch(e){};try{e.stopPropagation()}catch(x){};try{e.preventDefault()}catch(x){};try{e.returnValue=false;}catch(x){};try{e.Handled=true;}catch(x){};try{e.cancelBubble=true;}catch(x){};return false;},scrollBarProc:function()
{if(this.scrollbar_active)
setTimeout("Scroller('"+this.name+"').scrollBarProc()",10);else
document.onselectstart=null;var y=gId(this.id_btn).offsetTop;var h=gId(this.id_bar).offsetHeight-gId(this.id_btn).offsetHeight;gId(this.id_node).scrollTop=(y/h)*(gId(this.id_node).scrollHeight-gId(this.id_node).offsetHeight);},scrollBarAdjust:function()
{if(gId(this.id_btn))
{var y=gId(this.id_node).scrollTop;var h=gId(this.id_node).scrollHeight-gId(this.id_node).offsetHeight;gId(this.id_btn).style.top=((y/h)*(gId(this.id_bar).offsetHeight-gId(this.id_btn).offsetHeight))+"px";}},scrollBarGo:function(p)
{if(gId(this.id_btn))
{if(p==undefined)
var p=gId(this.id_btn).offsetTop/(gId(this.id_bar).offsetHeight-gId(this.id_btn).offsetHeight);gId(this.id_node).scrollTop=(p)*(gId(this.id_node).scrollHeight-gId(this.id_node).offsetHeight);}},scrollBarWatch:function()
{setTimeout("Scroller('"+this.name+"').scrollBarWatch()",50);if(this.active)
{if(gId(this.id_node).scrollHeight!=this.last_height)
{this.last_height=gId(this.id_node).scrollHeight;this.scrollBarAdjust();}
this.adjust();gId(this.id_bar).style.visibility=(this.sh>0)?'visible':'hidden';if(this.callback)this.callback[0][this.callback[1]]();}},adjust:function()
{this.ow=this.getNode().offsetWidth;this.oh=this.getNode().offsetHeight;this.sh=Math.max(0,this.getNode().scrollHeight-this.oh);this.st=this.getNode().scrollTop;this.axy=Math.round(this.moy+this.oh/2);this._slack=this.slack*this.oh;},updateAlpha:function()
{clearTimeout(this.timer2);this.timer2=0;if(this.id_up&&this.id_down)
{var st=this.getNode().scrollTop;this.alpha_target.up=((st==0)||(this.sh==0))?0:9;this.alpha_target.down=((st==this.sh)||(this.sh==0))?0:9;var done=0;for(var i in this.alpha_target)
{if(this.alpha_target[i]>this.alpha_current[i])
{this.alpha_current[i]+=1;setAlpha(this['id_'+i],Math.pow(this.alpha_current[i]/10,2));try{gId(this['id_'+i]).style.visibility="visible";}catch(e){};}
else if(this.alpha_target[i]<this.alpha_current[i])
{this.alpha_current[i]-=1;setAlpha(this['id_'+i],Math.pow(this.alpha_current[i]/10,2));try{gId(this['id_'+i]).style.visibility="visible";}catch(e){};}
else
{if(this.alpha_target[i]==0)try{gId(this['id_'+i]).style.visibility="hidden";}catch(e){};done++;}}
if(done<2)
this.timer2=setTimeout("Scroller('"+this.name+"').updateAlpha()",20);}},scrollTo:function()
{clearTimeout(this.timer);this.timer=0;if(!this.active)return false;var node=this.getNode();if(node)
{var diff=this.st-node.scrollTop;if(Math.abs(diff)<3)
node.scrollTop=this.st;else
{node.scrollTop+=diff/3;this.timer=setTimeout("Scroller('"+this.name+"').scrollTo()",20);}}
this.updateAlpha();},scrollBy:function(d)
{clearTimeout(this.timer);this.timer=0;if(!this.active)return false;var st=this.getNode().scrollTop;var sd=Math.pow(d/this.sdiv,3);st+=(d<0)?Math.floor(sd):Math.ceil(sd);if(st<0)st=0;if(st>this.sh)st=this.sh;this.getNode().scrollTop=st;if((st!=0)&&(st!=this.sh))
this.timer=setTimeout("Scroller('"+this.name+"').scrollBy("+d+")",20);this.updateAlpha();},wheelProc:function(e)
{if(this.sh==0)return true;this.scrollbar_active=false;if(!this.active)
return;var ot=document.documentElement.scrollTop||gHTML().scrollTop||document.body.scrollTop;var ol=document.documentElement.scrollLeft||gHTML().scrollLeft||document.body.scrollLeft;var m=getMouse();try{m.x+=ol;m.y+=ot;}catch(e){};var _mx=m.x-this.mox;var _my=m.y-this.moy;try{var trg=e.originalTarget?e.originalTarget:e.srcElement;}catch(e){var trg=false;};if(0||((_my>0)&&(_my<this.oh)&&(_mx>0)&&(_mx<this.ow))||(trg&&trg.id&&((trg.id==this.id_bar)||(trg.id==this.id_btn)))){var delta=0;var e=(e||window.event);if(e.wheelDelta)
{delta=-e.wheelDelta/120;if(window.opera)
delta=-delta;}
else if(e.detail)
delta=e.detail/3;var st=this.st+Math.sgn(delta)*100;if(st<0)st=0;if(st>this.sh)st=this.sh;if(this.st!=st)
this.st=st;this.scrollTo();this.scrollBarAdjust();this.dir=Math.sgn(delta);try{e.stopPropagation()}catch(x){};try{e.preventDefault()}catch(x){};try{e.returnValue=false;}catch(x){};try{e.Handled=true;}catch(x){};try{e.cancelBubble=true;}catch(x){};return false;}},moveProc:function(e)
{var ot=document.documentElement.scrollTop||gHTML().scrollTop||document.body.scrollTop;var ol=document.documentElement.scrollLeft||gHTML().scrollLeft||document.body.scrollLeft;var m=getMouse();try{m.x+=ol;m.y+=ot;}catch(e){};var _mx=m.x-this.mox;var _my=m.y-this.moy;if((_my>0)&&(_my<this.oh)&&(_mx>0)&&(_mx<this.ow))
{if(this.lmy===false)
this.lmy=m.y;var sd=0;var my=m.y;var dir=Math.sgn(my-this.lmy);if(dir!=this.dir)
{this.dir=dir;sd=0;}
else
{if((dir<0)&&(my<(this.axy-this._slack)))
sd=my-this.axy+this._slack;if((dir>0)&&(my>(this.axy+this._slack)))
sd=my-this.axy-this._slack;}
this.scrollBy(sd);this.st=this.getNode().scrollTop;this.lmy=my;}},stop:function()
{this.active=false;},start:function()
{this.active=true;}}

function Dragger()
{if(!Dragger.prototype.instance)
{Dragger.prototype.instance=this;addEventHandler(document,"mouseup",this,"onMouseUp");}
return Dragger.prototype.instance;}
Dragger.prototype={instance:null,timer:null,id:"",o:{},noalpha:false,start:function(id,areaNode,noalpha)
{if(gId(id)&&!this.timer)
{this.id=id;this.o=getMouse();this.o.x-=gId(id).offsetLeft;this.o.y-=gId(id).offsetTop;this.noalpha=(noalpha)?true:false;this.timer=setInterval("Dragger().proc()",16);areaNode.ondragstart=function(){return false};areaNode.onselectstart=function(){return false};return true;}
return false;},onMouseUp:function(e)
{this.stop();},proc:function()
{var m=getMouse();var nx=m.x-this.o.x;var ny=m.y-this.o.y;var pn=gId(this.id).parentNode;if(nx<0)
nx=0;if(nx>(pn.offsetWidth-gId(this.id).offsetWidth))
nx=(pn.offsetWidth-gId(this.id).offsetWidth);if(ny<0)
ny=0;if(ny>(pn.offsetHeight-gId(this.id).offsetHeight))
ny=(pn.offsetHeight-gId(this.id).offsetHeight);gId(this.id).style.left=nx+"px";gId(this.id).style.top=ny+"px";if(!this.noalpha)
{try{gId(this.id).style.opacity=0.7;gId(this.id).style.MozOpacity=0.7;if(isMSIE())
gId(this.id).style.filter="alpha(opacity=70)";}catch(e){}}
if(gId(this.id+":frame"))
{gId(this.id+":frame").style.left=nx+"px";gId(this.id+":frame").style.top=ny+"px";}},stop:function()
{clearInterval(this.timer);this.timer=null;if(!this.noalpha)
{try{gId(this.id).style.opacity=1;gId(this.id).style.MozOpacity=1;if(isMSIE())
gId(this.id).style.filter="alpha(opacity=100)";}catch(e){}}
this.id=null;}}

var SeigiMap={geocoder:null,data:{},init:function(id,addr)
{var addr=decodeURIComponent(addr);this.data[id]={map:null,id:id,addr:addr.split("||")[0],caption:addr.split("||").pop()};},show:function()
{try{addEventHandler(window,"unload",GUnload);}catch(e){};if(GBrowserIsCompatible())
{SeigiMap.geocoder=new GClientGeocoder();for(var id in SeigiMap.data)
{SeigiMap.data[id].map=new GMap2(gId(id));SeigiMap.data[id].map.addControl(new GSmallMapControl());SeigiMap.data[id].map.addControl(new GScaleControl());SeigiMap.data[id].map.addControl(new GMapTypeControl());SeigiMap.showAddress(id,SeigiMap.data[id].addr,15,true);}
return true;}
for(var id in SeigiMap.data)
gId(id).style.visibility="hidden";return false;},showLocation:function(id,point,zoom,address,tryagain)
{if(!point)
{if(address&&tryagain)
{var na=address.split(",").pop();if(na==address)
{na=address.split(" ");for(var i=0;i<na.length;i++)
if(!na[i].match(/[0-9]/))
break;na=na.splice(0,i).join(" ");}
return SeigiMap.showAddress(id,na,13,false);}
var point=new GLatLng(46.08,18.12);var zoom=3;}
SeigiMap.data[id].map.setCenter(new GLatLng(46.08,18.12),2);SeigiMap.data[id].map.setCenter(point,zoom);try{var marker=new GMarker(point);SeigiMap.data[id].map.addOverlay(marker);marker.openInfoWindowHtml(SeigiMap.data[id].caption);}catch(e){};},showAddress:function(id,address,zoom,tryagain)
{try{eval("var point = "+address+";");if(!point||!point[0]||!point[1])
var point=false;}
catch(e){var point=false;}
if(point)
{if(point[2])var zoom=point[2];var point=new GLatLng(point[0],point[1]);SeigiMap.showLocation(id,point,zoom,address,false);}
else
{SeigiMap.geocoder.getLatLng(address,function(point){SeigiMap.showLocation(id,point,zoom,address,tryagain)});}}}

function SubWin(name,id_space)
{if(!SubWin.prototype.instances[name])
{if((this.constructor!=Object)||(this==window))
return false;SubWin.prototype.instances[name]=this;SubWin.prototype.IE=isMSIE();initClassInstance(SubWin.prototype,this,"IE,depth,state,color,id_space,name,title,content,url_content,frame_name,css_class,css_style,closable,closable_by_esc,keyhandler_up,keyhandler_down,locked,centered,visible,icon,param,callbacks,width,has_tiny");this.setKeyHandler();this.name=name;if(id_space)
this.id_space=id_space;this.create();}
return SubWin.prototype.instances[name];}
SubWin.prototype={instances:{},depth:0,state:{},id_space:"subwinspace",name:"",title:"",content:"",url_content:false,frame_name:"default",frame_cache:{},css_class:"subwin",css_style:"",closable:true,closable_by_esc:true,locked:true,centered:true,visible:true,icon:false,param:{},keyhandler:false,keyhandler_down:false,keyhandler_up:false,callbacks:{},width:500,owidth:528,color:'light',has_tiny:false,IE:false,setKeyHandler:function()
{if(!SubWin.prototype.keyhandler)
{SubWin.prototype.keyhandler=true;addEventHandler(document,"keydown",function(e){return SubWin.prototype.onKeyDown(e||event)});addEventHandler(document,"keyup",function(e){return SubWin.prototype.onKeyUp(e||event)});}},setTinyHandler:function()
{if(this.has_tiny&&isMSIE())
eval('addEventHandler(this.getContentNode(), "scroll", function(){ tinyMCE.triggerNodeChange(false,"'+this.has_tiny+'"); } );');},onKeyDown:function(e)
{var win=SubWin.prototype.getTopWin();var res=true;if(win.keyhandler_down&&win.keyhandler_down.length)
var res=win.keyhandler_down[0][win.keyhandler_down[1]](e,win.keyhandler_down[2]);if(!res)
return this.cancelKeyDefault(e);},onKeyUp:function(e)
{var win=SubWin.prototype.getTopWin();var res=true;if(win.keyhandler_up&&win.keyhandler_up.length)
var res=win.keyhandler_up[0][win.keyhandler_up[1]](e,win.keyhandler_up[2]);if(res)
{if(e.keyCode==27)
{if(win)
{if(win.name=="msgbox")
MSGBox().close();else if(win.closable)
{if(win.closable_by_esc)
win.close();else
{confirmBox("subwin:close",[this,"closeByEscIfConfirmed"]);return false;}}
else
return false;}}}
else
return this.cancelKeyDefault(e);},cancelKeyDefault:function(e)
{if(e.stopPropagation)
e.stopPropagation();else
e.cancelBubble=true;if(e.preventDefault)
e.preventDefault();else
e.returnValue=false;return false;},closeByEscIfConfirmed:function(result)
{if(result=="yes")
{SubWin.prototype.getTopWin().close();}},getTopWin:function()
{var depth=0;var win=false;for(var i in SubWin.prototype.instances)
if(SubWin.prototype.instances[i].depth>depth)
{win=i;depth=SubWin.prototype.instances[i].depth;}
if(win)
return SubWin.prototype.instances[win];return win;},getTopDepth:function()
{var depth=0;for(var i in SubWin.prototype.instances)
if(SubWin.prototype.instances[i].depth>depth)
depth=SubWin.prototype.instances[i].depth;return depth;},bringToFront:function()
{var depth=this.getTopDepth();if(!this.depth||(this.depth<depth))
{if(this.getIFrame())
{this.depth=depth+2;this.getWinNode().style.zIndex=this.depth;this.getIFrame().style.zIndex=this.depth-1;}
else
{this.depth=depth+1;this.getWinNode().style.zIndex=this.depth;}}},setAbsoluteDepth:function(depth)
{if(this.getIFrame())
this.getIFrame().style.zIndex=depth++;this.getWinNode().style.zIndex=this.depth=depth;},center:function()
{var node=this.getWinNode();var html=document.getElementsByTagName('html').item(0);var dsw=(document.documentElement.scrollWidth||html.scrollWidth);var dsh=(document.documentElement.scrollHeight||html.scrollHeight);var dow=window.innerWidth||document.documentElement.offsetWidth;var doh=window.innerHeight||document.documentElement.offsetHeight;var st=document.documentElement.scrollTop||html.scrollTop||document.body.scrollTop;var sl=document.documentElement.scrollLeft||html.scrollLeft||document.body.scrollLeft;var x=Math.round(sl+(dow-(node.offsetWidth))/2);var y=Math.round(st+(doh-(node.offsetHeight))/2);node.style.left=x+"px";node.style.top=y+"px";if(this.getIFrame())
{this.getIFrame().style.left=x+"px";this.getIFrame().style.top=y+"px";}},showSpace:function()
{this.getSpaceNode().style.visibility="visible";},hideSpace:function()
{this.getSpaceNode().style.visibility="hidden";},show:function(skip)
{this.visible=true;this.getWinNode().style.width=this.owidth+"px";if((skip==undefined)||!skip)
{if(!isMSIE()&&!this.has_tiny)
{try{this.getWinNode().style.opacity=0;}catch(e){};try{this.getWinNode().style.MozOpacity=0;}catch(e){};new Tween(this.getWinNodeId()+":show").manip("OUT2:0-1/0.3",[this.getWinNode(),"style.opacity"]);}}
this.getWinNode().style.visibility="visible";if(this.getIFrame())
this.getIFrame().style.visibility="visible";this.bringToFront();if(this.locked)
this.lockPage();this.showSpace();},hide:function(skip)
{this.visible=false;this.getWinNode().style.visibility="hidden";if(this.getIFrame())
this.getIFrame().style.visibility="hidden";if(this.locked)
this.unlockPage();this.setSpaceVisibility();if(Tooltip&&Tooltip.prototype.instance)
Tooltip.prototype.instance.hide();},switchAlpha:function()
{try{var o=this.getWinNode().style.opacity}catch(e){var o=1;}
o=(o==1)?0.6:1;try{this.getWinNode().style.opacity=o;}catch(e){};try{this.getWinNode().style.MozOpacity=o;}catch(e){};try{this.getWinNode().style.filter="alpha(opacity="+(o*100)+")";}catch(e){};},close:function()
{if(this.callbacks&&this.callbacks.before_close)
{if(this.callbacks.before_close.length)
this.callbacks.before_close[0][this.callbacks.before_close[1]](this);else
this.callbacks.before_close(this);}
if(this.locked)
this.unlockPage();removeNode(this.getWinNode());if(this.getIFrame())
removeNode(this.getIFrame());SubWin.prototype.instances[this.name]=null;delete SubWin.prototype.instances[this.name];this.setSpaceVisibility();if(Tooltip&&Tooltip.prototype.instance)
Tooltip.prototype.instance.hide();if(this.callbacks&&this.callbacks.after_close)
{if(this.callbacks.after_close.length)
this.callbacks.after_close[0][this.callbacks.after_close[1]](this);else
this.callbacks.after_close(this);}},getWinNodeId:function()
{return"pe_subwin_"+this.name;},getWinNode:function()
{return gId("pe_subwin_"+this.name);},getShadowNode:function()
{return gId("pe_subwin_"+this.name+"_shadow");},getTitleNode:function()
{return gId("pe_subwin_"+this.name+"_title");},getIFrameId:function()
{return"pe_subwin_"+this.name+":frame";},getIFrame:function()
{try{return gId("pe_subwin_"+this.name+":frame")}catch(e){return false;}},getContentNode:function()
{return gId("pe_subwin_"+this.name+"_content");},getSpaceNode:function()
{return gId(this.id_space);},setSpaceVisibility:function()
{for(var i in SubWin.prototype.instances)
{var win=SubWin.prototype.instances[i];if(win.visible)
{this.showSpace();return true;}}
this.hideSpace();return true;},refreshContent:function()
{if(this.content)
this.setContent(this.content);},init:function(param)
{for(var i in param)
this[i]=param[i];if(this.icon)
this.icon=this.icon.replace(/\./g,'-');this.title=getSTXT(this.title);this.owidth=this.width+10;if(this.content)
this.setContent(this.content);if(this.url_content)
new XCom("subwin:"+this.name).init("",true).getData(this.url_content,this.param,[this,"setContent"]);if(this.centered)
this.center();if(this.visible)
this.show();else
this.hide();if(this.locked)
this.lockPage();else
eval('this.getWinNode().onmousedown = function(){SubWin("'+this.name+'").bringToFront(); return true;}');},create:function()
{var space=this.getSpaceNode();if(!space)
{var div=cElement('div');div.id="subwinspace";div.className="subwinspace";document.body.insertBefore(div,document.body.firstChild);var space=this.getSpaceNode();var html=document.getElementsByTagName('html').item(0);var w=(document.documentElement.scrollWidth||html.scrollWidth)-10;var h=(document.documentElement.scrollHeight||html.scrollHeight)-10;space.style.left="5px";space.style.top="5px";space.style.width=w+"px";space.style.height=h+"px";}
var winNode=cElement('div');winNode.className=this.css_class;winNode.id="pe_subwin_"+this.name;space.appendChild(winNode);if(isMSIE(6))
this.addIFrameCover();},getFrame:function()
{return"{if $closable}<img onclick=\"SubWin('{$name}').close()\" class=\"close png-icon i-cancel\" src=\"1px\" alt=\"\" title=\"tooltip:Ablak bezárása.\" />{/if}<div id=\"pe_subwin_{$name}_title\" class=\"title\" onmousedown=\"SubWin('{$name}').bringToFront();new Dragger().start('pe_subwin_{$name}', this, true);return false\" style=\"width:{$owidth}px\">{if $icon}<img src=\"1px\" class=\"png-icon i-{$icon}\" alt=\"\" />{/if}&nbsp;{$title}</div><div class=\"innerWrap\" style=\"width:{$owidth}px\"><div class=\"inner\" id=\"pe_subwin_{$name}_content\" style=\"width:{$width}px\">{$content}</div></div><div id=\"pe_subwin_{$name}_shadow\" class=\"shadow\" style=\"width:{$owidth}px\"></div><script type=\"text/javascript\">new Tooltip().bound();</script>";},addIFrameCover:function()
{if(!this.getIFrame())
{var fr=cElement('iframe');fr.id=this.getIFrameId();fr.style.cssText="position:absolute;top:0px;left:0px;width:0px;height:0px;background-color:white;display:block;visibility:hidden;filter:alpha(opacity=0)";this.getSpaceNode().appendChild(fr);}},setContent:function(data)
{this.content=data;if(this.icon)
this.icon=this.icon.replace(/\./g,'-');setPEContent(this.getWinNodeId(),fetch(this.getFrame(),this));this.checkDimensions();if(this.centered)
this.center();if(this.visible)
this.show();else
this.hide();this.bringToFront();setTimeout('try{SubWin("'+this.name+'").setTinyHandler()}catch(e){}',200);},checkDimensions:function()
{this.getContentNode().style.width=this.width+"px";var html=document.getElementsByTagName('html').item(0);var dsw=(document.documentElement.scrollWidth||html.scrollWidth);var dsh=(document.documentElement.scrollHeight||html.scrollHeight);var dow=window.innerWidth||document.documentElement.offsetWidth;var doh=window.innerHeight||document.documentElement.offsetHeight;var h=this.getContentNode().scrollHeight;var mh=Math.floor(doh*0.8);if(h>mh)
this.getContentNode().style.height=mh+"px";else
this.getContentNode().style.height="auto";this.getShadowNode().style.width=this.owidth+"px";this.getShadowNode().style.height=this.getContentNode().offsetHeight+this.getTitleNode().offsetHeight+10+"px";if(this.getIFrame())
{this.getIFrame().style.width=this.owidth+5+"px";this.getIFrame().style.height=this.getContentNode().offsetHeight+this.getTitleNode().offsetHeight+15+"px";}},lockPage:function()
{if(gId("subwin:lock_layer:"+this.name))
removeNode('subwin:lock_layer:'+this.name);var div=cElement('div');div.id="subwin:lock_layer:"+this.name;div.setAttribute("class","lock_layer");var html=document.getElementsByTagName('html').item(0);setCSSClass(html,'overflow-hidden');var w=(document.documentElement.scrollWidth||html.scrollWidth);var h=(document.documentElement.scrollHeight||html.scrollHeight);div.style.width=w+"px";div.style.height=h+"px";div.style.top="0px";div.style.left="0px";if(isMSIE())
{div.style.backgroundColor="#000000";div.style.filter="alpha(opacity=0)";}
this.getSpaceNode().appendChild(div);div.style.zIndex=this.depth++;this.getWinNode().style.zIndex=this.depth;if(isMSIE())
div.outerHTML=div.outerHTML+"";setTimeout("try{gId('subwin:lock_layer:"+this.name+"').style.visibility='visible'}catch(e){}",10);},unlockPage:function()
{var html=document.getElementsByTagName('html').item(0);delCSSClass(html,'overflow-hidden');removeNode('subwin:lock_layer:'+this.name);}}
function MSGBox(title, msg, buttons, callback, centered, data)
{
	if( MSGBox.prototype.instance )
		return MSGBox.prototype.instance;

	MSGBox.prototype.instance = this;

	this.callback = callback;
	this.data	  = data;
	this.values  = [];

	var list_button = buttons.split("|");
	for(var i in list_button)
	{
		var btn = list_button[i].split(",");
		this.values[i] = btn[1];
		btn[2] = btn[2].replace(/\./g,'-');
		list_button[i] = fetch('<a id="MSGBox_button_'+i+'" class="btn mr10" href="javascript:;" onclick="MSGBox().onclick('+i+')" {if $3}title="tooltip:{$3}"{/if} >{if $2}<img src="1px" class="png-icon i-{$2}" alt="" /> {/if}{$0}</a>', btn);
	}

	var content = '<div style="visibility:hidden;margin:0;padding:0;height:0;font: normal 1px/0px Arial">&nbsp;</div><p class="'+(centered ? 'tac':'tal')+' m10">'+msg+'</p><p class="tac m10">'+list_button.join('&nbsp;')+'</p>';
	var title = title.split("#");

	new SubWin("msgbox").init({
		width: Math.round(parseFloat((title[2]) ? title[2] : MSGBox.prototype.width)),
		content : content,	
		title : title[0],
		icon : title[1],
		closable : false,
		keyhandler_up : [MSGBox.prototype.instance,"keyhandler_up"],
		locked : true
	});
}

MSGBox.prototype = 
{
	width		: 350,
	instance	: null,
	callback	: null,
	data		: null,
	values		: [],

	onclick: function(idx)
	{
		var value = this.values[idx];

		// dynamic value for prompt use!
		if( value.toString().substring(0,1) == '*' )
			value = gId(value.replace('*','')).value;

		this.close();
		if( this.callback )
		{
			if( this.callback[2] )
				this.callback[0][this.callback[1]](this.callback[2], value, this.data);
			else if( this.callback[1] )
				this.callback[0][this.callback[1]](value, this.data);
			else
				this.callback(value, this.data);
		}
	},

	keyhandler_up : function(e)
	{
		if( e && (e.keyCode == 13) )
		{
			this.onclick(0);
			return false;
		}

		return true;
	},

	close: function()
	{
		SubWin("msgbox").close();
		MSGBox.prototype.instance = null;
		delete MSGBox.prototype.instance;
	}
}

function errBox(msg, callback, data)
{
	if( typeof(callback) == "string" )
		var callback = [window,"redirect",callback];

	new MSGBox(getSTXT("title:err")+'#error', '<span class="err fs12">'+getSTXT(msg).replace(/[\n]/g,'<br/>')+'</span>', 'Ok,ok,accept', callback, true, data);
}

function succBox(msg, callback, data)
{
	if( typeof(callback) == "string" )
		var callback = [window,"redirect",callback];

	new MSGBox(getSTXT("title:succ")+"#information", '<span class="fs12">'+getSTXT(msg).replace(/[\n]/g,'<br/>')+'</span>', 'Ok,ok,accept', callback, true, data);
}

function confirmBox(msg, callback, data, buttons)
{
	if( !buttons )
		var buttons = 'Igen,yes,accept|Nem,no,cancel';

	new MSGBox(getSTXT("title:confirm")+'#help', '<span class="fs12">'+getSTXT(msg).replace(/[\n]/g,'<br/>')+'</span>', buttons, callback, true, data);
}


/*
	param.msg   : message
	param.icon  : icon
	param.title : title
	param.type	: text / password
	param.value : value

*/

function promptBox(param, callback, data, buttons)
{
	if( !buttons )
		var buttons = 'OK,*MSGBOX-PROMPT,|Mégse,,';

	var html = '<b>'+getSTXT(param.msg).replace(/[\n]/g,'<br/>')+' <input id="MSGBOX-PROMPT" type="'+param.type+'" value="'+param.value+'" style="width:200px;margin:5px 5px 10px 5px;vertical-align:middle" /></<b>';
	new MSGBox(getSTXT(param.title)+'#'+param.icon, html, buttons, callback, true, data);
	setTimeout("setSafeFocus('MSGBOX-PROMPT');",10);
}

_catched_errors=[];function getXData(cmd,data,callback)
{if(callback)
return XCom("xcmd").getData(cmd,data,callback);else
return XCom("xcmd").getData(cmd,data);}
function loadPE(pe,data,callback)
{if(callback)
return XCom("xcmd").getData("pe:"+pe,data,callback);else
return XCom("xcmd").getData("pe:"+pe,data);}
function setPEContent(id,html,callback)
{if(Tooltip&&Tooltip.prototype.instance)
Tooltip.prototype.instance.hide();if(typeof(html)=="object")
{try{lockPage();startLoaderBar();}catch(e){};try{var param=html[1]}catch(e){var param={};}
if(callback==undefined)
var callback=false;loadPE(html[0],param,[window,"__setPEContent",{id:id,callback:callback}]);return true;}
setHTML(id,html);var node=gId(id);if(isMSIE(6))
{setTimeout("refreshHTMLForIE('"+id+"')",10);return true;}
var js=node.getElementsByTagName('script');if(js)
for(var i=0;i<js.length;i++)
if(js.item(i).className&&(js.item(i).className=="noexec"))
js.item(i).outerHTML=js.item(i).outerHTML;else
eval(js.item(i).innerHTML);return true;}
function __setPEContent(res,param)
{try{unlockPage();stopLoaderBar();}catch(e){};if(res!=null)
setPEContent(param.id,res);else
try{errBox('form:failure')}catch(e){alert(getTXT('form:failure'))};if(param.callback)
{var fn=param.callback;if(typeof(fn)=="function")
fn(res);else if(fn.length)
{if(fn[2]!=undefined)
fn[0][fn[1]](fn[2]);else
fn[0][fn[1]]();}}}
function refreshHTMLForIE(id)
{var node=gId(id);node.innerHTML=node.innerHTML;var js=node.getElementsByTagName('script');if(js)
for(var i=0;i<js.length;i++)
if(js.item(i).className&&(js.item(i).className=="noexec"))
js.item(i).outerHTML=js.item(i).outerHTML;else
eval(js.item(i).innerHTML);return true;}
function loadSubWin(pe,data,id_subwin,param)
{if(pe.toUpperCase()=="BLANK")
{__loadSubWin("&nbsp;",{id_subwin:id_subwin,param:param});}
else
{try{lockPage();startLoaderBar();}catch(e){};loadPE(pe,data,[window,"__loadSubWin",{id_subwin:id_subwin,param:param}])}}
function __loadSubWin(res,param)
{try{unlockPage();stopLoaderBar();}catch(e){};if((res!=null)&&(res!=false))
{var data=param.param;data.content=res;new SubWin(param.id_subwin).init(data);}
else
try{errBox('form:failure')}catch(e){alert(getTXT('form:failure'))};}
function redirect(url)
{window.location=url;}
function getCTRL()
{return CTRL?CTRL:'site';}
function getLNG()
{return(getCTRL()==='cms')?CLNG:SLNG;}
function getDefLNG(ctrl)
{return _LANGUAGE[ctrl?ctrl:getCTRL()]['default_lng'];}
function initPopUpLang()
{if(window.opener)
{if(!window._LANG_INITED)
{try{if(!window._STRING)window._STRING=window.opener.window._STRING}catch(e){};try{if(!window._LANGUAGE)window._LANGUAGE=window.opener.window._LANGUAGE}catch(e){};try{if(!window.CTRL)window.CTRL=window.opener.window.CTRL}catch(e){};try{if(!window.CLNG)window.CLNG=window.opener.window.CLNG}catch(e){};try{if(!window.SLNG)window.SLNG=window.opener.window.SLNG}catch(e){};window._LANG_INITED=1;}}}
function getTXTFrom(txt,lng,ctrl)
{var ctrl='_'+ctrl.toUpperCase();return(_STRING[lng]&&_STRING[lng][ctrl]&&_STRING[lng][ctrl][txt])?_STRING[lng][ctrl][txt]:_STRING[lng][txt];}
function getTXT(txt,params,lng,ctrl)
{if((txt==undefined)||(txt===true)||(txt===false))
return"";initPopUpLang();var lng=lng?lng:getLNG();var ctrl=ctrl?ctrl:getCTRL();var res=getTXTFrom(txt,lng,ctrl)||getTXTFrom(txt,getDefLNG(ctrl),ctrl);if(!res)res=txt;if(params)
for(var i=params.length-1;i>=0;i--)
res=res.split('{%'+(i+1)+'%}').join(params[i]);return res;}
function getCTXT(txt,params){initPopUpLang();return getTXT(txt,params,CLNG,'cms');}
function getSTXT(txt,params){initPopUpLang();return getTXT(txt,params,SLNG,'site');}
function centerNode(node)
{if(typeof(node)=="string")
var node=gId(node);node.style.left=(node.offsetParent.offsetWidth-node.offsetWidth)/2+"px";node.style.top=(node.offsetParent.offsetHeight-node.offsetHeight)/2+"px";}
function getStateVars(list)
{var res={};if(list&&list.length)
for(var i=0;i<list.length;i+=2)
res[list[i]]=list[i+1];return res;}
function onPageChange(e,value,fn)
{if(e.keyCode==13)
{var value=parseInt(value)-1;eval(fn+"(['page_index',"+value+"])");}}
function isPageNum(e)
{return(false||((e.keyCode>=48)&&(e.keyCode<=57))||((e.keyCode>=96)&&(e.keyCode<=105))||in_array(e.keyCode,[8,13,37,39,46]));}
function lockPage()
{if(gId("lock_layer"))
removeNode('lock_layer');var div=cElement('div');div.id="lock_layer";div.setAttribute("class","lock_layer");var width=document.documentElement.scrollWidth;var height=document.documentElement.scrollHeight;div.style.width=width+"px";div.style.height=height+"px";document.body.appendChild(div);try{gId('blur').focus();}catch(e){try{window.focus()}catch(e){}};if(isMSIE())
div.outerHTML=div.outerHTML+"";setTimeout("try{gId('lock_layer').style.visibility='visible';}catch(e){}",15);}
function unlockPage()
{document.onkeydown=function(){};removeNode('lock_layer');}
window.onload=function(){try{initPage()}catch(e){};}
function zoomTinyImage(img)
{zoomImage(img.src.split("!")[0]+"!x");}
function zoomImage(src)
{__LOCKBAR(1);if(gId('zoomedImage'))
removeNode('zoomedImage');var img=cElement('img');img.id='zoomedImage';img.onclick=function(){};img.style.position="absolute";img.style.zIndex="9999999";img.style.top="50%";img.style.left="50%";setAlpha(img,0);document.body.appendChild(img);addEventHandler(img,"load",window,"zoomImage_onload");addEventHandler(img,"error",window,"zoomImage_abort");img.src=src;}
function zoomImage_onload()
{var html=gTags('html').item(0);var img=gId('zoomedImage');var ot=document.documentElement.scrollTop||html.scrollTop||document.body.scrollTop;var ol=document.documentElement.scrollLeft||html.scrollLeft||document.body.scrollLeft;img.style.marginTop=Math.floor(ot-img.height/2)+"px";img.style.marginLeft=Math.floor(ol-img.width/2)+"px";try{new Tween(img.id).manip("OUT2:0-1/0.5",[img,"style.opacity"]);}catch(e){};addEventHandler(img,"click",window,"zoomImage_abort");img.style.cursor="pointer";img.title=getTXT("close:image:zoom");}
function zoomImage_abort()
{try{Tween('zoomedImage').stop();}catch(e){};try{removeNode('zoomedImage');}catch(e){};__LOCKBAR(0);}
function alertMSG(msg,url,params,lng)
{alert(getTXT(msg,params,lng));if(url)
{if(url=="refresh:true")
window.location.reload(true);else if(url=="refresh")
window.location.reload();else if(url=="reset")
{for(var i in document.forms)
try{document.forms[i].reset();}catch(e){}}
else
redirect(url);}}
function fieldFocus(node,pfx,defValue)
{if(node&&node.className)
{fclass=pfx?(" "+pfx+"-focused"):" focused";node.className=node.className.replace(fclass,"")+fclass;if(defValue&&(node.value==defValue))
node.value="";}}
function fieldBlur(node,pfx,defValue)
{if(node&&node.className)
{fclass=pfx?(" "+pfx+"-focused"):" focused";node.className=node.className.replace(fclass,"");if(defValue&&(node.value==""))
node.value=defValue;}}
function fieldClassFailure(node,pfx)
{if(node&&node.className)
{fclass=pfx?(" "+pfx+"-failure"):" failure";node.className=node.className.replace(fclass,"")+fclass;}}
function fieldClassNormal(node,pfx)
{if(node&&node.className)
{fclass=pfx?(" "+pfx+"-failure"):" failure";node.className=node.className.replace(fclass,"");}}
function doBlur()
{try{gId('blur').focus();}catch(e){};}
function contactDeveloper()
{window.location=rot38("G;CFNI`G?CSIfM?CAC-=GM.BO ");}

function getIconCSS(list_class)
{if(!list_class)
var list_class="site";var classes={};classes['common']="accept,cancel,add,delete,error,exclamation,information,tick,resultset-first,resultset-last,resultset-next,resultset-previous,resultset-down,resultset-up,cross,bullet-cross,reload,arrow-refresh,arrow-refresh-small,help";classes['site']=classes['common']+",book-open,email,email-go";classes['cms']=classes['common']+",brick,user,time,package-go,eye,eye-bw,package-edit,package-delete,cart-edit,cart-delete";classes['extra']="anchor,application-add,application-cascade,application-delete,application-double,application-edit,application-error,application-form-add,application-form-delete,application-form-edit,application-form-magnify,application-form,application-get,application-go,application-home,application-key,application-lightning,application-link,application-osx-add,application-osx-cascade,application-osx-delete,application-osx-double,application-osx-error,application-osx-get,application-osx-go,application-osx-home,application-osx-key,application-osx-lightning,application-osx-link,application-osx,application-osx-split,application-osx-start,application-osx-stop,application-osx-terminal,application,application-put,application-side-boxes,application-side-contract,application-side-expand,application-side-list,application-side-tree,application-split,application-start,application-stop,application-tile-horizontal,application-tile-vertical,application-view-columns,application-view-detail,application-view-gallery,application-view-icons,application-view-list,application-view-tile,application-xp,application-xp-terminal,arrow-branch,arrow-divide,arrow-down,arrow-ew,arrow-in-longer,arrow-in,arrow-inout,arrow-join,arrow-left,arrow-merge,arrow-move,arrow-ne,arrow-ns,arrow-nsew,arrow-nw-ne-sw-se,arrow-nw,arrow-nw-se,arrow-out-longer,arrow-out,arrow-redo,arrow-right,arrow-rotate-anticlockwise,arrow-rotate-clockwise,arrow-se,arrow-sw-ne,arrow-sw,arrow-switch-bluegreen,arrow-switch,arrow-turn-left,arrow-turn-right,arrow-undo,arrow-up,asterisk-orange,asterisk-red,asterisk-yellow,attach,award-star-add,award-star-bronze-1,award-star-bronze-2,award-star-bronze-3,award-star-delete,award-star-gold-1,award-star-gold-2,award-star-gold-3,award-star-silver-1,award-star-silver-2,award-star-silver-3,basket-add,basket-delete,basket-edit,basket-error,basket-go,basket,basket-put,basket-remove,bell-add,bell-delete,bell-error,bell-go,bell-link,bell,bell-silver,bell-silver-start,bell-silver-stop,bell-start,bell-stop,bin-closed,bin-empty,bin,bomb,book-add,book-addresses-add,book-addresses-delete,book-addresses-edit,book-addresses-error,book-addresses-key,book-addresses,book-delete,book-edit,book-error,book-go,book-key,book-link,book-magnify,book-next,book-open-mark,book-open,book,book-previous,book-red,book-tabs,bookmark-add,bookmark-delete,bookmark-edit,bookmark-error,bookmark-go,bookmark,border-all,border-bottom,border-draw,border-inner-horizontal,border-inner,border-inner-vertical,border-left,border-none,border-outer,border-right,border-top,box-error,box-picture,box,box-world,brick-add,brick-delete,brick-edit,brick-error,brick-go,brick-link,brick-magnify,brick,bricks,briefcase,bug-add,bug-delete,bug-edit,bug-error,bug-fix,bug-go,bug-link,bug-magnify,bug,build-cancel,build,building-add,building-delete,building-edit,building-error,building-go,building-key,building-link,building,bullet-add,bullet-arrow-bottom,bullet-arrow-down,bullet-arrow-top,bullet-arrow-up,bullet-black,bullet-blue,bullet-connect,bullet-database,bullet-database-yellow,bullet-delete,bullet-disk,bullet-earth,bullet-edit,bullet-eject,bullet-error,bullet-feed,bullet-get,bullet-go,bullet-green,bullet-home,bullet-key,bullet-left,bullet-lightning,bullet-magnify,bullet-minus,bullet-orange,bullet-page-white,bullet-picture,bullet-pink,bullet-plus,bullet-purple,bullet-red,bullet-right,bullet-shape,bullet-sparkle,bullet-star,bullet-start,bullet-stop-alt,bullet-stop,bullet-tick,bullet-toggle-minus,bullet-toggle-plus,bullet-white,bullet-wrench,bullet-wrench-red,bullet-yellow,button,cake-out,cake,cake-sliced,calculator-add,calculator-delete,calculator-edit,calculator-error,calculator-link,calculator,calendar-add,calendar-delete,calendar-edit,calendar-link,calendar,calendar-select-day,calendar-select-none,calendar-select-week,calendar-star,calendar-view-day,calendar-view-month,calendar-view-week,camera-add,camera-connect,camera-delete,camera-edit,camera-error,camera-go,camera-link,camera-magnify,camera-picture,camera,camera-small,camera-start,camera-stop,car-add,car-delete,car-error,car,car-red,car-start,car-stop,cart-add,cart-delete,cart-edit,cart-error,cart-full,cart-go,cart-magnify,cart,cart-put,cart-remove,cd-add,cd-burn,cd-delete,cd-edit,cd-eject,cd-go,cd-magnify,cd-play,cd,cd-stop-alt,cd-stop,cd-tick,cdr-add,cdr-burn,cdr-cross,cdr-delete,cdr-edit,cdr-eject,cdr-error,cdr-go,cdr-magnify,cdr-play,cdr,cdr-start,cdr-stop-alt,cdr-stop,cdr-tick,chart-bar-add,chart-bar-delete,chart-bar-edit,chart-bar-error,chart-bar-link,chart-bar,chart-curve-add,chart-curve-delete,chart-curve-edit,chart-curve-error,chart-curve-go,chart-curve-link,chart-curve,chart-line-add,chart-line-delete,chart-line-edit,chart-line-error,chart-line-link,chart-line,chart-org-inverted,chart-organisation-add,chart-organisation-delete,chart-organisation,chart-pie-add,chart-pie-delete,chart-pie-edit,chart-pie-error,chart-pie-lightning,chart-pie-link,chart-pie,check-error,clipboard,clock-add,clock-delete,clock-edit,clock-error,clock-go,clock-link,clock-pause,clock-play,clock,clock-red,clock-start,clock-stop,cmy,cog-add,cog-delete,cog-edit,cog-error,cog-go,cog,cog-start,cog-stop,coins-add,coins-delete,coins,color,color-swatch,color-wheel,comment-add,comment-delete,comment-dull,comment-edit,comment-play,comment,comment-record,comments-add,comments-delete,comments,compass,compress,computer-add,computer-connect,computer-delete,computer-edit,computer-error,computer-go,computer-key,computer-link,computer-magnify,computer-off,computer,computer-start,computer-stop,computer-wrench,connect,contrast-decrease,contrast-high,contrast-increase,contrast-low,contrast,control-add-blue,control-add,control-blank-blue,control-blank,control-eject-blue,control-eject,control-end-blue,control-end,control-equalizer-blue,control-equalizer,control-fastforward-blue,control-fastforward,control-pause-blue,control-pause,control-play-blue,control-play,control-power-blue,control-power,control-record-blue,control-record,control-remove-blue,control-remove,control-repeat-blue,control-repeat,control-rewind-blue,control-rewind,control-start-blue,control-start,control-stop-blue,control-stop,controller-add,controller-delete,controller-error,controller,creditcards,css-add,css-delete,css-error,css-go,css,css-valid,cup-add,cup-black,cup-delete,cup-edit,cup-error,cup-go,cup-green,cup-key,cup-link,cup,cup-tea,cursor,cursor-small,cut,cut-red,database-add,database-connect,database-copy,database-delete,database-edit,database-error,database-gear,database-go,database-key,database-lightning,database-link,database,database-refresh,database-save,database-start,database-stop,database-table,database-wrench,database-yellow,database-yellow-start,database-yellow-stop,date-add,date-delete,date-edit,date-error,date-go,date-link,date-magnify,date-next,date,date-previous,decline,device-stylus,disconnect,disk-black-error,disk-black-magnify,disk-black,disk-download,disk-edit,disk-error,disk-go,disk-magnify,disk-multiple,disk,disk-upload,door-error,door-in,door-open,door-out,door,drink-empty,drink,drink-red,drive-add,drive-burn,drive-cd-empty,drive-cd,drive-cdr,drive-delete,drive-disk,drive-edit,drive-error,drive-go,drive-key,drive-link,drive-magnify,drive-network-error,drive-network,drive-network-stop,drive,drive-rename,drive-user,drive-web,dvd-add,dvd-delete,dvd-edit,dvd-error,dvd-go,dvd-key,dvd-link,dvd,dvd-start,dvd-stop,eject-blue,eject-green,email-add,email-attach,email-delete,email-edit,email-error,email-go,email-link,email-magnify,email-open-image,email-open,email,email-star,email-start,email-stop,email-transfer,emoticon-evilgrin,emoticon-grin,emoticon-happy,emoticon-smile,emoticon-surprised,emoticon-tongue,emoticon-unhappy,emoticon-waii,emoticon-wink,erase,error-add,error-delete,error-go,eye-bw,eye,eyes,feed-add,feed-delete,feed-disk,feed-edit,feed-error,feed-go,feed-key,feed-link,feed-magnify,feed,feed-star,female,film-add,film-delete,film-edit,film-eject,film-error,film-go,film-key,film-link,film-magnify,film,film-save,film-star,film-start,film-stop,find,finger-point,flag-black,flag-blue,flag-checked,flag-france,flag-green,flag-grey,flag-orange,flag-pink,flag-purple,flag-red,flag-white,flag-yellow,flower-daisy,folder-add,folder-bell,folder-bookmark,folder-brick,folder-bug,folder-camera,folder-connect,folder-database,folder-delete,folder-edit,folder-error,folder-explore,folder-feed,folder-film,folder-find,folder-font,folder-go,folder-heart,folder-home,folder-image,folder-key,folder-lightbulb,folder-link,folder-magnify,folder-page,folder-page-white,folder-palette,folder-picture,folder,folder-star,folder-table,folder-up,folder-user,folder-wrench,font-add,font-color,font-delete,font-go,font-larger,font,font-smaller,forward-blue,forward-green,group-add,group-delete,group-edit,group-error,group-gear,group-go,group-key,group-link,group,heart-add,heart-broken,heart-connect,heart-delete,heart,hourglass-add,hourglass-delete,hourglass-go,hourglass-link,hourglass,house-connect,house-go,house-key,house-link,house,house-star,html-add,html-delete,html-error,html-go,html,html-valid,image-add,image-delete,image-edit,image-link,image-magnify,image,image-star,images,information,ipod-cast-add,ipod-cast-delete,ipod-cast,ipod-connect,ipod-nano-connect,ipod-nano,ipod,ipod-sound,joystick-add,joystick-connect,joystick-delete,joystick-error,joystick,key-add,key-delete,key-go,key,key-start,key-stop,keyboard-add,keyboard-connect,keyboard-delete,keyboard-magnify,keyboard,laptop-add,laptop-connect,laptop-delete,laptop-disk,laptop-edit,laptop-error,laptop-go,laptop-key,laptop-link,laptop-magnify,laptop,laptop-start,laptop-stop,laptop-wrench,layers,layout-add,layout-content,layout-delete,layout-edit,layout-error,layout-header,layout-key,layout-lightning,layout-link,layout,layout-sidebar,lightbulb-add,lightbulb-delete,lightbulb-off,lightbulb,lightning-add,lightning-delete,lightning-go,lightning,link-add,link-break,link-delete,link-edit,link-error,link-go,link,lock-add,lock-break,lock-delete,lock-edit,lock-go,lock-key,lock-open,lock,lock-start,lock-stop,lorry-add,lorry-delete,lorry-error,lorry-flatbed,lorry-go,lorry-link,lorry,lorry-start,lorry-stop,magnifier,magnifier-zoom-in,magnifier-zoom-out,mail,male,map,map-add,map-clipboard,map-cursor,map-delete,map-edit,map-error,map-go,map-link,map-magnify,map,map-start,map-stop,medal-bronze-1,medal-bronze-2,medal-bronze-3,medal-bronze-add,medal-bronze-delete,medal-gold-1,medal-gold-2,medal-gold-3,medal-gold-add,medal-gold-delete,medal-silver-1,medal-silver-2,medal-silver-3,medal-silver-add,medal-silver-delete,mime-as,mime-doc,mime-exe,mime-jpg,mime-mp3,mime-mpg,mime-office,mime-other,mime-pdf,mime-php,mime-ppt,mime-swf,mime-txt,mime-xls,mime-zip,money-add,money-delete,money-dollar,money-euro,money,money-pound,money-yen,monitor-add,monitor-delete,monitor-edit,monitor-error,monitor-go,monitor-key,monitor-lightning,monitor-link,monitor,moon-full,mouse-add,mouse-delete,mouse-error,mouse,music-note,music,neighbourhood,new-blue,new,new-red,newspaper-add,newspaper-delete,newspaper-edit,newspaper-go,newspaper-link,newspaper,next-green,next-blue,next-green,note-add,note-delete,note-edit,note-error,note-go,note,outline,overlays,package-add,package-delete,package-down,package-edit,package-go,package-green,package-in,package-link,package,package-se,package-start,package-stop,package-white,page-add,page-attach,page-back,page-break-insert,page-break,page-cancel,page-code,page-copy,page-delete,page-edit,page-error,page-excel,page-find,page-forward,page-gear,page-go,page-green,page-header-footer,page-key,page-landscape,page-landscape-shot,page-lightning,page-link,page-magnify,page-paintbrush,page-paste,page,page-portrait,page-portrait-shot,page-red,page-refresh,page-save,page-white-acrobat,page-white-actionscript,page-white-add,page-white-break,page-white-c,page-white-camera,page-white-cd,page-white-cdr,page-white-code,page-white-code-red,page-white-coldfusion,page-white-compressed,page-white-connect,page-white-copy,page-white-cplusplus,page-white-csharp,page-white-cup,page-white-database,page-white-database-yellow,page-white-delete,page-white-dvd,page-white-edit,page-white-error,page-white-excel,page-white-find,page-white-flash,page-white-font,page-white-freehand,page-white-gear,page-white-get,page-white-go,page-white-h,page-white-horizontal,page-white-key,page-white-lightning,page-white-link,page-white-magnify,page-white-medal,page-white-office,page-white-paint,page-white-paintbrush,page-white-paste,page-white-paste-table,page-white-php,page-white-picture,page-white,page-white-powerpoint,page-white-put,page-white-refresh,page-white-ruby,page-white-side-by-side,page-white-stack,page-white-star,page-white-swoosh,page-white-text,page-white-text-width,page-white-tux,page-white-vector,page-white-visualstudio,page-white-width,page-white-word,page-white-world,page-white-wrench,page-white-zip,page-word,page-world,paint-can-brush,paint,paintbrush-color,paintbrush,paintcan,paintcan-red,palette,paste-plain,paste-word,pause-blue,pause-green,pause-record,pencil-add,pencil-delete,pencil-go,pencil,phone-add,phone-delete,phone-edit,phone-error,phone-go,phone-key,phone-link,phone,phone-sound,phone-start,phone-stop,photo-add,photo-delete,photo-edit,photo-link,photo-paint,photo,photos,picture-add,picture-clipboard,picture-delete,picture-edit,picture-empty,picture-error,picture-go,picture-key,picture-link,picture,picture-save,pictures,pictures-thumbs,pilcrow,pill-add,pill-delete,pill-error,pill-go,pill,play-blue,play-green,plugin-add,plugin-delete,plugin-disabled,plugin-edit,plugin-error,plugin-go,plugin-key,plugin-link,plugin,previous-green,printer-add,printer-cancel,printer-color,printer-connect,printer-delete,printer-empty,printer-error,printer-go,printer-key,printer-mono,printer,printer-start,printer-stop,rainbow,rainbow-star,record-blue,record-green,record-red,report-add,report-delete,report-disk,report-edit,report-go,report-key,report-link,report-magnify,report-picture,report,report-start,report-stop,report-user,report-word,reverse-blue,reverse-green,rewind-blue,rewind-green,rgb,rosette-blue,rosette,rss-add,rss-delete,rss-error,rss-go,rss,rss-valid,ruby-add,ruby-delete,ruby-gear,ruby-get,ruby-go,ruby-key,ruby-link,ruby,ruby-put,script-add,script-code,script-code-red,script-delete,script-edit,script-error,script-gear,script-go,script-key,script-lightning,script-link,script-palette,script,script-save,script-start,script-stop,seasons,section-collapsed,section-expanded,server-add,server-chart,server-compressed,server-connect,server-database,server-delete,server-edit,server-error,server-go,server-key,server-lightning,server-link,server,server-start,server-stop,server-uncompressed,server-wrench,shading,shape-3d,shape-align-bottom,shape-align-center,shape-align-left,shape-align-middle,shape-align-right,shape-align-top,shape-flip-horizontal,shape-flip-vertical,shape-group,shape-handles,shape-move-back,shape-move-backwards,shape-move-forwards,shape-move-front,shape-rotate-anticlockwise,shape-rotate-clockwise,shape-shade-a,shape-shade-b,shape-shade-c,shape-shadow,shape-shadow-toggle,shape-square-add,shape-square-delete,shape-square-edit,shape-square-error,shape-square-go,shape-square-key,shape-square-link,shape-square,shape-square-select,shape-ungroup,shapes-many,shapes-many-select,share,shield-add,shield-delete,shield-error,shield-go,shield,shield-rainbow,shield-silver,shield-start,shield-stop,sitemap-color,sitemap,smartphone-add,smartphone-connect,smartphone-delete,smartphone-disk,smartphone-edit,smartphone-error,smartphone-go,smartphone-key,smartphone,smartphone-wrench,sort-ascending,sort-descending,sound-add,sound-delete,sound-high,sound-in,sound-low,sound-mute,sound-none,sound-out,sound,spellcheck,sport-8ball,sport-basketball,sport-football,sport-golf,sport-golf-practice,sport-raquet,sport-shuttlecock,sport-soccer,sport-tennis,star-bronze-half-grey,star-bronze,star-gold-half-grey,star-gold-half-silver,star-gold,star-grey,star-half-grey,star,star-silver,status-away,status-be-right-back,status-busy,status-invisible,status-offline,status-online,stop-blue,stop-green,stop,stop-red,style-add,style-delete,style-edit,style-go,style,sum,tab-add,tab-blue,tab-delete,tab-edit,tab-go,tab-green,tab,tab-red,table-add,table-cell,table-column-add,table-column-delete,table-column,table-connect,table-delete,table-edit,table-error,table-gear,table-go,table-key,table-lightning,table-link,table-multiple,table,table-refresh,table-relationship,table-row-delete,table-row-insert,table-row,table-save,table-sort,tag-blue-add,tag-blue-delete,tag-blue-edit,tag-blue,tag-green,tag-orange,tag-pink,tag,tag-purple,tag-red,tag-yellow,tags-grey,tags-red,telephone-add,telephone-delete,telephone-edit,telephone-error,telephone-go,telephone-key,telephone-link,telephone,telephone-red,television-add,television-delete,television-in,television-off,television-out,television,television-star,text-ab,text-align-center,text-align-justify,text-align-left,text-align-right,text-allcaps,text-bold,text-columns,text-complete,text-direction,text-double-underline,text-dropcaps,text-fit,text-flip,text-font-default,text-heading-1,text-heading-2,text-heading-3,text-heading-4,text-heading-5,text-heading-6,text-horizontalrule,text-indent,text-indent-remove,text-inverse,text-italic,text-kerning,text-left-to-right,text-letter-omega,text-letterspacing,text-linespacing,text-list-bullets,text-list-numbers,text-lowercase-a,text-lowercase,text-mirror,text-padding-bottom,text-padding-left,text-padding-right,text-padding-top,text-replace,text-right-to-left,text-rotate-0,text-rotate-180,text-rotate-270,text-rotate-90,text-ruler,text-shading,text-signature,text-smallcaps,text-spelling,text-strikethrough,text-subscript,text-superscript,text-tab,text-underline,text-uppercase,textfield-add,textfield-delete,textfield-key,textfield,textfield-rename,theme,thumb-down,thumb-up,time-add,time-delete,time-go,time-green,time,time-red,timeline-marker,transmit-add,transmit-blue,transmit-delete,transmit-edit,transmit-error,transmit-go,transmit,transmit-red,tux,user-add,user-alert,user-b,user-brown,user-comment,user-cross,user-delete,user-earth,user-edit,user-female,user-go,user-gray-cool,user-gray,user-green,user-home,user-key,user-magnify,user-mature,user-orange,user,user-red,user-star,user-suit-black,user-suit,user-tick,vcard-add,vcard-delete,vcard-edit,vcard-key,vcard,vector-add,vector-delete,vector-key,vector,wand,weather-cloud,weather-clouds,weather-cloudy,weather-cloudy-rain,weather-lightning,weather-rain,weather-snow,weather-sun,webcam-add,webcam-connect,webcam-delete,webcam-error,webcam,webcam-start,webcam-stop,world-add,world-connect,world-dawn,world-delete,world-edit,world-go,world-key,world-link,world-night,world-orbit,world,wrench-orange,wrench,xhtml-add,xhtml-delete,xhtml-error,xhtml-go,xhtml,xhtml-valid,zoom-in,zoom-out,zoom";for(var i in classes)
list_class=list_class.replace(i,classes[i]);var list_file=list_class.split("-").join(".");list_class=list_class.split(",");list_file=list_file.split(",");if(isMSIE(6))
{for(var i=list_class.length-1;i>=0;i--)
list_class[i]=".i-"+list_class[i]+"{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/icon/"+list_file[i]+"',sizingMethod='crop')}";}
else
for(var i=list_class.length-1;i>=0;i--)
list_class[i]=".i-"+list_class[i]+"{background-image:url('/icon/"+list_file[i]+"')}";return"img.png-icon{width:16px;height:16px;background-repeat:no-repeat;background-position:0px 0px;background-color:transparent} "+list_class.join("");}

FPS.prototype.params.msg_success="<img src='/1px' class='png-icon i-accept' alt='' />";FPS.prototype.params.msg_failure="<img src='/1px' class='png-icon i-exclamation' alt=''  title=\"tooltip:<span class='warning'>%%</span>\" />";FPS.prototype.params.eval_failure="fps.setFieldFailureStyle(data);try{new Tooltip().bound()}catch(e){}";FPS.prototype.params.eval_success="fps.setFieldNormalStyle(data);";FPS.prototype.params.handle_focus="field.parentNode";FPS.prototype.params.prefix_focus="field";new XCom("xcmd").init("/xcmd.php?cmd=",true);new XCom("rpc").init("/xcmd.php?cmd=",true);function initPage()
{new Tooltip("a,b,p,input,textarea,select,div,span,img");try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}
startGA("UA-1251656-7","kemenceepites.hu");try{SeigiMap.show();}catch(e){};}
function gallery_cb(igal)
{igal.getBgNode().title="tooltip:common:click_to_zoom";igal.getBgNode().onclick=function(){igal.advancedZoom('l')};igal.getBgNode().style.cursor="pointer";new Tooltip().bound();}
function gbook_add()
{kemenceepites_gbook_add();}
function kemenceepites_gbook_add()
{try{Scroller('content').stop();}catch(e){};loadSubWin('GBOOK:ADD',{},'gbook_add',{width:540,title:"gbook:write",icon:"book.open",closable:true,locked:true});}
function kemenceepites_gbook_cancel()
{if(SubWin('gbook_add'))
SubWin('gbook_add').close();}
function fadeIn(obj)
{if(obj&&obj.id)
try{new Tween(obj.id).manip("OUT2:0-10/0.3",[obj,"style.marginLeft","%%px"]);}catch(e){}}
function fadeOut(obj)
{if(obj&&obj.id)
try{new Tween(obj.id).manip("OUT2:10-0/0.3",[obj,"style.marginLeft","%%px"]);}catch(e){}}
function fTweenIn(s)
{return false;var obj=gId("lightbulb");if(obj.style.opacity!==0)
var o=(obj.style.opacity)?obj.style.opacity:1;else
var o=0;switch(s)
{case 1:new Tween(obj.id).manip("OUT2:"+o+"-1/0.3",[obj,"style.opacity"],[window,"fTweenIn"],2);break;case 2:new Tween(obj.id).manip("OUT2:"+o+"-0/0.3",[obj,"style.opacity"],[window,"fTweenIn"],1);break;}}
function fTweenOut()
{return false;try{Tween("lightbulb").stop();}catch(e){};}
