function VFXCore(){}
VFXCore.inWhichTdIs=function(aa,ba,ca){if(aa==null||aa==ba){return null;}
else{if(aa.colSpan!=null)ca=aa;if(aa.parentNode==ba){return ca;}
else{return VFXCore.inWhichTdIs(aa.parentNode,ba,ca);}}}
VFXCore.alignTwo=function(da,ea,fa,ga,ha){var ia={"x":da.getX(),"y":da.getY(),"w":da.offsetWidth,"h":da.offsetHeight};var ja={"x":ea.getX(),"y":ea.getY(),"w":ea.offsetWidth,"h":ea.offsetHeight};var ka=Math.geomAlign(ia,ja,fa,ga,ha);da.style["left"]=ka["x"]+"px";da.style["top"]=ka["y"]+"px";}
VFXCore.progEffect=function(la,ma,na,oa,pa,qa,ra,sa,ta){if(la.$vfx_arr_proge==null)la.$vfx_arr_proge=[];VFXCore.progEffectExe(la,ma,na,oa,pa,qa,ra,sa,ta);}
VFXCore.progEffectExe=function(ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da){if(Da==null){if(za(ua)>ya){Da="decrease";}
else{Da="increase";}}
if(Da=="decrease"){if(za(ua)>ya){if(za(ua)-xa<ya){Aa(ua,ya);}
else{Aa(ua,za(ua)-xa);}
if(Ba!=null)Ba(ua);ua.$vfx_arr_proge[va]=window.setTimeout(function(){VFXCore.progEffectExe(ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da);},wa);}
else{if(Ba!=null)Ba(ua);if(Ca!=null)Ca(ua);}}
else{if(za(ua)<ya){if(za(ua)+xa>ya){Aa(ua,ya);}
else{Aa(ua,za(ua)+xa);}
if(Ba!=null)Ba(ua);ua.$vfx_arr_proge[va]=window.setTimeout(function(){VFXCore.progEffectExe(ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da);},wa);}
else{if(Ba!=null)Ba(ua);if(Ca!=null)Ca(ua);}}}
VFXCore.progEffectStop=function(Ea,Fa){if(Ea.$vfx_arr_proge!=null&&Ea.$vfx_arr_proge[Fa]!=null){window.clearTimeout(Ea.$vfx_arr_proge[Fa]);}}
VFXCore.vanish=function(Ga,Ha,Ia,Ja,Ka,La){VFXCore.progEffect(Ga,"vanish",Ha,Ia,Ja,VFXCore.$vanishGetter,VFXCore.$vanishSetter,Ka,La);}
VFXCore.$vanishGetter=function(Ma){return Ma.cssGetOpacity();}
VFXCore.$vanishSetter=function(Na,_q){Na.cssSetOpacity(_q);}
VFXCore.vanishStop=function(Oa){VFXCore.progEffectStop(Oa,"vanish");}
VFXCore.move=function(Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa){if(Ra!=null&&Sa!=null)VFXCore.progEffect(Pa,"move_x",Qa,Ra,Sa,VFXCore.$moveGetterX,VFXCore.$moveSetterX,Va,Wa);if(Ta!=null&&Ua!=null)VFXCore.progEffect(Pa,"move_y",Qa,Ta,Ua,VFXCore.$moveGetterY,VFXCore.$moveSetterY,Va,Wa);}
VFXCore.$moveGetterX=function(Xa){return document.cssPxValueToInt(Xa.cssGetCompStyle()["left"]);}
VFXCore.$moveSetterX=function(Ya,_x){Ya.style["left"]=_x+"px";}
VFXCore.$moveGetterY=function(Za){return document.cssPxValueToInt(Za.cssGetCompStyle()["top"]);}
VFXCore.$moveSetterY=function($a,_y){$a.style["top"]=_y+"px";}
VFXCore.moveStop=function(ab){VFXCore.progEffectStop(ab,"move_x");VFXCore.progEffectStop(ab,"move_y");}
VFXCore.resize=function(bb,cb,db,eb,fb,gb,hb,ib){if(db!=null&&eb!=null)VFXCore.progEffect(bb,"resize_w",cb,db,eb,VFXCore.$resizeGetterW,VFXCore.$resizeSetterW,hb,ib);if(fb!=null&&gb!=null)VFXCore.progEffect(bb,"resize_h",cb,fb,gb,VFXCore.$resizeGetterH,VFXCore.$resizeSetterH,hb,ib);}
VFXCore.$resizeGetterW=function(jb){return document.cssPxValueToInt(jb.cssGetCompStyle()["width"]);}
VFXCore.$resizeSetterW=function(kb,_w){kb.style["width"]=_w+"px";}
VFXCore.$resizeGetterH=function(lb){return document.cssPxValueToInt(lb.cssGetCompStyle()["height"]);}
VFXCore.$resizeSetterH=function(mb,_h){mb.style["height"]=_h+"px";}
VFXCore.resizeStop=function(nb){VFXCore.progEffectStop(nb,"resize_w");VFXCore.progEffectStop(nb,"resize_h");}
function VFXClick(){}
VFXClick.set=function(ob,pb){ob.$vfx_click_func=pb;ob.eventSet("click",VFXClick.$onClick);ob.eventSet("keydown",VFXClick.$onClick);}
VFXClick.$onClick=function(_e){if(_e.type=="click"||(_e.type=="keydown"&&_e.keyCode==window.EVENT_KEY_ENTER))_e.currentTarget.$vfx_click_func(_e);}
function VFXButtonStandarizer(){}
VFXButtonStandarizer.set=function(qb){if(qb==null)qb=POW(window.document.body);var rb=qb.getByTag("button");for(var i=0;i<rb.length;i++){rb[i].cssSet({"position":"relative","left":"0px","top":"0px","zIndex":"1"});var x=0;var y=0;if(CliWin.getEngine()==CliWin.ENGINE_GECKO){x=-2-document.cssPxValueToInt(rb[i].cssGetCompStyle()["borderLeftWidth"]);;y=Math.round(-25*rb[i].offsetHeight/50);}
else if(CliWin.getEngine()==CliWin.ENGINE_PRESTO){x=-1*rb[i].offsetLeft;y=-1*rb[i].offsetTop;}
var sb=document.buildElem("div");sb.cssSet({"position":"absolute","left":x+"px","top":y+"px","width":"100%","height":"100%","zIndex":"2"});sb.innerHTML=rb[i].innerHTML;rb[i].innerHTML="";sb=rb[i].appendChild(sb);}}
function VFXEscClose(){}
VFXEscClose.set=function(tb){if(tb==null)tb=window;tb.document.eventSet("keydown",VFXEscClose.$keyDown);}
VFXEscClose.$keyDown=function(_e){if(_e.keyCode==window.EVENT_KEY_ESC&&_e.currentTarget.getWin().opener!=null){var ub=window.loadXML($INIT.getSysPath()+"lang/"+$INIT.getLang().toLowerCase()+".xml");var vb=XGET(ub,"/ lang [1] / vfx [1] / escclose [1] / text () [1]")[0].nodeValue;if(confirm(vb))_e.currentTarget.getWin().close();}}