//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2024 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 18.1.20.0 //********************************************************************************************************** EO18120.g.asu=0;EO18120.g.asv=1;EO18120.g.asw=0;EO18120.g.asx=1;EO18120.g.asy=2;EO18120.f.acvx=function(a){this.afz(a[0]);this.acti(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17]);};EO18120.f.acvy=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){this.actj=a;this.ari=b;this.arj=c?c:20;this.actk=d?d:"";this.actl=e?e:EO18120.g.asu;this.actm=f?f:300;this.actn=g;this.acto=h;this.actp=i;this.actq=j;this.actr=k?k:EO18120.g.asw;this.acts=l?l:EO18120.g.asw;this.aew=m?m:0;this.aex=n?n:0;this.aanm=o;this.actt=p?p:"";this.actu=q;};EO18120.f.acvz=function(a){this.ahd(a);this.bky=EO18120.f.aqn(this.aag);this.actv=document.createElement("DIV");this.actw=document.createElement("IMG");this.actx=EO18120.f.aqn(this.aag+"_zp");this.actv.style.position="absolute";this.actv.style.display="none";this.actw.style.position="absolute";this.actw.style.display="none";this.actx.style.position="absolute";this.actv.style.zIndex=EO18120.f.apd()-2;this.actw.style.zIndex=EO18120.f.apd()-1;this.actx.style.zIndex=EO18120.f.apd();if(this.bky){EO18120.f.alc(this.bky,EO18120.g.abi,this);EO18120.f.aqo(this.bky,"eo_zoom_in_cur",true);}this.actv.className=this.actu;var b=this.adm();this.actx.parentNode.removeChild(this.actx);b.appendChild(this.actv);b.appendChild(this.actw);b.appendChild(this.actx);cell=this.actx.rows[0].cells[0];cell.innerHTML=this.ahm(this.actt);cell.className=this.actu;};EO18120.f.acwa=function(){if(this.aanm){this.acty=EO18120.f.aqn(this.aanm);if(this.acty){this.acty.style.display="none";this.acty.style.position="absolute";this.acty.style.zIndex=EO18120.f.apd();var a=this;this.acty.onclick=function(){a.actz();}}}};EO18120.f.acwb=function(){this.acua(true);this.ahe();this.aef();EO18120.f.baj(this);EO18120.f.alk(this.bky);if(this.acub)this.acub.apq();};EO18120.f.acwc=function(){return this.bky;};EO18120.f.acwd=function(a){this.acuc();};EO18120.f.acwe=function(a){if(this.acub)return;if(this.act("ClientSideBeforeZoomIn",this.actn,[this])==false)return;if(this.ari){EO18120.f.bah();EO18120.f.bak(this,EO18120.f.apd()-2);}EO18120.f.bai(this,this.ari,this.arj,true);this.acub=new EO18120.f.acwm(this,a);this.acub.ael();if(!this.acud&&this.acty){var b=this;EO18120.f.aqr(this.acty,function(c,d){b.acub.acue(c,d);});}};EO18120.f.acwf=function(a){if(a){var b=EO18120.f.acn(null,"ImageZoom");if(b&&b.length){for(var c=0;c",[this.aag,"zpimg",this.actk]);}else if(a=="description"){return this.actk;}return this.ahn(a,b);};EO18120.f.acwi=function(a){this.actz();};EO18120.f.acwj=function(){if(!this.acub)return;this.acub.actz();};EO18120.f.acwk=function(a){EO18120.f.baj(this);if(this.acub){this.acub.apq();this.acub=null;}if(!a){this.act("ClientSideAfterZoomOut",this.actq,[this]);}};EO18120.f.acvx.prototype=new EO18120.f.any();EO18120.f.acvx.prototype.acti=EO18120.f.acvy;EO18120.f.acvx.prototype.ael=EO18120.f.acvz;EO18120.f.acvx.prototype.aan=EO18120.f.acwc;EO18120.f.acvx.prototype.abi=EO18120.f.acwa;EO18120.f.acvx.prototype.acu=EO18120.f.acwb;EO18120.f.acvx.prototype.aff=EO18120.f.acwd;EO18120.f.acvx.prototype.acuf=EO18120.f.acwg;EO18120.f.acvx.prototype.agw=EO18120.f.acwh;EO18120.f.acvx.prototype.acuc=EO18120.f.acwe;EO18120.f.acvx.prototype.actz=EO18120.f.acwj;EO18120.f.acvx.prototype.are=EO18120.f.acwi;EO18120.f.acvx.prototype.acua=EO18120.f.acwk;EO18120.f.acwl=function(){if(!this.acub)return"normal";switch(this.acub.ami){case EO18120.g.asz:return"zooming_in";case EO18120.g.ata:return"zoomed_in";case EO18120.g.atb:return"zooming_out";}};EO18120.f.acvx.prototype.zoomIn=EO18120.f.acwe;EO18120.f.acvx.prototype.getState=EO18120.f.acwl;EO18120.f.acvx.prototype.zoomOut=EO18120.f.acwj;EO18120.g.asz=1;EO18120.g.ata=2;EO18120.g.atb=3;EO18120.g.atc=null;EO18120.f.acwm=function(a,b){if(EO18120.g.atc)EO18120.g.atc.actz();EO18120.g.atc=a;var c=this;this.acug=a;this.acuh=b;this.actw=a.actw;a.actw.onclick=function(){a.actz();};this.acui=EO18120.f.aqn(a.aag+"_zpimg");EO18120.f.alc(this.acui,EO18120.g.abi,this);if(this.acui)EO18120.f.aqo(this.acui,"eo_zoom_out_cur",true);this.ami=EO18120.g.asz;this.acuj(false);};EO18120.f.acwn=function(a){var b=this.acug;var c=this.acuh;if(!c)c=b.bky;this.acuk=EO18120.f.akt(c);this.acul=new EO18120.f.ajc(EO18120.f.ake(c),EO18120.f.akf(c));if(a){var d=EO18120.f.ajx(document.body);var e=EO18120.f.ajv(window);var f=0;var g=0;switch(b.actr){case EO18120.g.asw:f=e.aeo+Math.round((d.aeo-this.acum.aeo)/2);break;case EO18120.g.asx:f=this.acuk.aeo+Math.round((this.acul.aeo-this.acum.aeo)/2);break;case EO18120.g.asy:f=this.acuk.aeo+b.aew;break;}switch(b.acts){case EO18120.g.asw:g=e.aep+Math.round((d.aep-this.acum.aep)/2);break;case EO18120.g.asx:g=this.acuk.aep+Math.round((this.acul.aep-this.acum.aep)/2);break;case EO18120.g.asy:g=this.acuk.aep+b.aex;break;}this.acun=new EO18120.f.ajc(f,g);}};EO18120.f.acwo=function(){var a=this;var b=this.acug;b.actv.style.width="";b.actv.style.height="";b.actv.innerHTML="
";EO18120.f.aqp(b.actv);if(b.actv.clientWidth){this.acuo=new EO18120.f.ajc(EO18120.f.ake(b.actv)-100,EO18120.f.akf(b.actv)-100);}b.actv.innerHTML="";EO18120.f.aqq(b.actv);EO18120.f.aqp(b.actx);if(!this.acui.eo_acx){this.acui.eo_acx=true;this.acui.onload=function(){b.acud=true;if(a.acup)b.acua(true);else{if(a.acuq){var c=a.acuq.ab();if(c<300){setTimeout(function(){if(a.acup)b.acua(true);else a.acuc();},300-c);}else a.acuc();}else a.acuc();}};this.acui.src=b.actj;}else if(b.acud){if(a.acup)b.acua(true);else a.acuc();}};EO18120.f.acwp=function(){this.acue();EO18120.f.alk(this.acui);EO18120.f.ala(this,EO18120.g.aap);};EO18120.f.acwq=function(){this.acur=true;this.acuj(true);this.av=new EO18120.f.aar();this.acus=this.acug.actm/30;EO18120.f.aky(this,EO18120.g.aap,30,true);this.acut=false;};EO18120.f.acwr=function(a){this.actz();};EO18120.f.acws=function(){if(this.ami==EO18120.g.asz){if(this.acug.acud){var a=this.acuu;EO18120.f.ala(this,EO18120.g.aap);this.acuv=null;if(a>0){this.acuv=this.acus-a;if(this.acuv<0)this.acuv=null;}if(this.acum)this.ami=EO18120.g.ata;else{this.acup=true;return;}}else{this.acup=true;this.acug.acua(true);return;}}if(this.ami==EO18120.g.ata){this.ami=EO18120.g.atb;this.acug.act("ClientSideBeforeZoomOut",this.acug.actp,[this]);this.aacj();}};EO18120.f.acwt=function(a,b){var c=this.acug.acty;if(c){if((a!=null)&&(b!=null)){var d=Math.round(this.acuk.aeo+(this.acul.aeo-a)/2);var e=Math.round(this.acuk.aep+(this.acul.aep-b)/2);c.style.left=EO18120.f.aal(d);c.style.top=EO18120.f.aal(e);this.acuq=new EO18120.f.aar();}else{c.style.display="none";this.acuq=null;}}};EO18120.f.acwu=function(){if(this.ami!=EO18120.g.asz)return;this.acue();this.acum=new EO18120.f.ajc(EO18120.f.ake(this.acug.actx),EO18120.f.akf(this.acug.actx));this.acuw=EO18120.f.ake(this.acui)/this.acum.aeo;this.acux=EO18120.f.akf(this.acui)/this.acum.aep;var a=EO18120.f.aks(this.acui,this.acug.actx);this.acuy=a.aeo/this.acum.aeo;this.acuz=a.aep/this.acum.aep;this.actw.src=this.acug.actj;this.aacj();};EO18120.f.acwv=function(){var a=1;var b=this.acug;var c=Math.round(this.av.ab()/30);if(this.acuv!=null)c+=this.acuv;this.acuu=c;if(this.acut||(c>=this.acus))EO18120.f.ala(this,EO18120.g.aap);else a=c/this.acus;if(a==1){if(this.ami==EO18120.g.atb){b.actv.style.display="none";b.actw.style.display="none";b.acua();}else{this.ami=EO18120.g.ata;b.actv.style.display="none";b.actw.style.display="none";b.actx.style.left=EO18120.f.aal(this.acun.aeo);b.actx.style.top=EO18120.f.aal(this.acun.aep);b.actx.style.display="";EO18120.f.aqo(b.actx,"eo_transparent",false);b.act("ClientSideAfterZoomIn",b.acto,[this]);}}else{if(this.ami==EO18120.g.atb)a=1-a;if(b.actl==EO18120.g.asu){var d=this.acul.aeo+Math.round((this.acum.aeo-this.acul.aeo)*a);var e=this.acul.aep+Math.round((this.acum.aep-this.acul.aep)*a);var f=this.acuk.aeo+Math.round((this.acun.aeo-this.acuk.aeo)*a);var g=this.acuk.aep+Math.round((this.acun.aep-this.acuk.aep)*a);this.acva(f,g,d,e);}else{var h=Math.round(a*100);EO18120.f.ape(b.actv,h);EO18120.f.ape(b.actw,h);if(this.acur){this.acva(this.acun.aeo,this.acun.aep,this.acum.aeo,this.acum.aep);}}if(this.acur){this.acur=false;b.actx.style.display="none";b.actv.style.display="";b.actw.style.display="";}}};EO18120.f.acww=function(a,b,c,d){var e=Math.round(c*this.acuw);var f=Math.round(d*this.acux);this.actw.style.width=EO18120.f.aal(e);this.actw.style.height=EO18120.f.aal(f);this.actw.style.left=EO18120.f.aal(a+Math.round(this.acuy*c));this.actw.style.top=EO18120.f.aal(b+Math.round(this.acuz*d));if(this.acuo){c-=this.acuo.aeo;d-=this.acuo.aep;}var g=this.acug;g.actv.style.width=EO18120.f.aal(c);g.actv.style.height=EO18120.f.aal(d);g.actv.style.left=EO18120.f.aal(a);g.actv.style.top=EO18120.f.aal(b);};EO18120.f.acwx=function(){this.acuj(true);this.aey();};EO18120.f.acwm.prototype.ael=EO18120.f.acwo;EO18120.f.acwm.prototype.apq=EO18120.f.acwp;EO18120.f.acwm.prototype.acue=EO18120.f.acwt;EO18120.f.acwm.prototype.acuc=EO18120.f.acwu;EO18120.f.acwm.prototype.actz=EO18120.f.acws;EO18120.f.acwm.prototype.aacj=EO18120.f.acwq;EO18120.f.acwm.prototype.acuj=EO18120.f.acwn;EO18120.f.acwm.prototype.aff=EO18120.f.acwr;EO18120.f.acwm.prototype.aey=EO18120.f.acwv;EO18120.f.acwm.prototype.acva=EO18120.f.acww;EO18120.f.acwm.prototype.acuf=EO18120.f.acwx;EO18120.g.d.j("iz");