var atalaWebImageViewerLoaded=true,atalaWebImageViewerChildVersion='5.0a',atalaShowErrors=parent.atalaShowErrors,_child=new atalaWebImageViewerChild(atalaId),_clipper=null,initTries=0;atalaInitChild();
function atalaInitChild(){
    if((eval('parent.'+atalaId)==null)&&initTries<10){
        initTries++;
        window.setTimeout('atalaInitChild();',100);
    }
    else{
        if(!_child.isInitialized()){
            if(eval('parent.'+atalaId)){
                eval('parent.'+atalaId+'.AtlasReload();');
            };
        };
    };
};
window.onunload=atalaDispose;
function atalaDispose(){if(_child!=null){_child.Dispose();_child=null;};};
function atalaWebImageViewerChild(atalaId){var _id=atalaId,_p,_rp,_init=false,_s=this,_vp=null,_db=document.body,_spX=0,_spY=0,_isW=0,_isH=0,_coX=0,_coY=0,_tiles,_tilesH,_tilesZ,_tsH=0,_tsW=0,_si='',_fi=0,_z=1,_ad=0,_tm=0,_prr=0,_ws,_sbs=new atalaSize(0,0),_rsz=false,_rnd=0,_rs=null,_f=null,_br=atalaCheckBrowser(),_traceLog;
function __tla(s){if(_traceLog==null){_traceLog=window.open('','atalaTraceLog');};_traceLog.document.writeln(_id+': '+s+'<br/>');};var __trace=__tla;this.Changed=function(){};
function __gfv(id){return window.parent.atalaGetFormValue(_f,id);};
function __gfvi(id){return window.parent.atalaGetFormValueInt(_f,id);};
function __gfvf(id){return window.parent.atalaGetFormValueFloat(_f,id);};
function __sfv(id,value){window.parent.atalaSetFormValue(_f,id,value);};this.BubbleParent=__bp;
function __bp(exp){return eval('window.parent.'+_id+'.'+exp);};this.FireEvent=__fe;
function __fe(en,e){atalaFireEvent(eval('window.parent.'+_id),en,e);};
function __gsbw(){return __gfvi(_id+'_sbw');};
function __gsbh(){return __gfvi(_id+'_sbh');};
function __ssbs(w,h){_sbs=new atalaSize(w,h);__sfv(_id+'_sbw',w);__sfv(_id+'_sbh',h);};this.Dispose=__d;
function __d(){if(_rs!=null){_rs.Dispose();_rs=null;};if(_tiles!=null){_tiles.Dispose();_tiles=null;};if(_tilesH!=null){_tilesH.Dispose();_tilesH=null;};if(_tilesZ!=null){_tilesZ.Dispose();_tilesZ=null;};_vp=null;_db=null;};this.Init=__i;
function __i(){if(_init==true)return false;_f=__bp('Form();');_p=__bp('getPagePath();');_rp=__bp('getPathToResources();');__setupScrollBars();if(_br==0){_vp=__csp(1,1);}else{_vp=document.createElement('div');};with(_vp.style){position='absolute';zIndex='10';left='0px';top='0px';width='1px';height='1px';visibility='visible';};_clipper=__createClipperDiv();_db.appendChild(_clipper);_clipper.appendChild(_vp);window.onscroll=__os;window.onresize=__or;_rs=new __rs();__mt();_init=true;return false;};this.Update=__uwiv;
function __uwiv(force){var sp=__bp('getScrollPosition();');var si=__bp('getImageUrl();');var is=__bp('getImageSize();');var ts=__bp('getTileSize();');var fi=__bp('getFrameIndex();');_z=__bp('getZoom();');_tm=__bp('getImageDisplayOrder();');_ad=__bp('getAntialiasDisplay();');_rnd=Math.round(Math.random()*100000000);if(si==''){if(is.Width==0)is.Width=ts.Width;if(is.Height==0)is.Height=ts.Width;};_isW=is.Width;_isH=is.Height;_tsW=ts.Width;_tsH=ts.Height;if(-sp.X!=_spX||-sp.Y!=_spY){var sw=__gsw(),sh=__gsh(),ws=__gws();_vp.style.width=sw+'px';_vp.style.height=sh+'px';_clipper.style.width=((sw>ws.Width)?sw:ws.Width)+'px';_clipper.style.height=((sh>ws.Height)?sh:ws.Height)+'px';__ssp(-sp.X,-sp.Y);};__pr();if(_si!=si||si==''||_fi!=fi||force==true){_si=si;_fi=fi;if(_tiles!=null){if(_tiles.HasTiles()==true){_tiles.Dispose();};_tiles=null;};if(_tilesH!=null){if(_tilesH.HasTiles()==true){_tilesH.Dispose();};_tilesH=null;};if(_tilesZ!=null){if(_tilesZ.HasTiles()==true){_tilesZ.Dispose();};_tilesZ=null;};_tiles=new __t(false);_tilesZ=new __t(true);__daz();__tcts();};__rr();_s.Changed();};
function __rp(){if(_prr==0){__daz();__uts();};};
function __uts(){if(_prr==0){__cvp();__uvp();__tpts();if(_tm==2||_ad!=0){__tst();};_rs.Synchronize();};};
function __uvp(){var sw=__gsw(),sh=__gsh();with(_vp.style){left=_coX+'px';top=_coY+'px';width=sw+'px';height=sh+'px';};with(_clipper.style){width=sw+'px';height=sh+'px';};var ws=__gvps();_clipper.style.width=((sw>ws.Width)?sw:ws.Width)+'px';_clipper.style.height=((sh>ws.Height)?sh:ws.Height)+'px';if(-_spX!=document.body.scrollLeft||-_spY!=document.body.scrollTop){__usp();};};
function __usp(){_spX=-document.body.scrollLeft;_spY=-document.body.scrollTop;};
function __csp(w,h){var s=document.createElement('img'),pfx=_rp;if(pfx==''){pfx='?atalaimg=';};s.src=pfx+'spacer.gif';s.style.width=w+'px';s.style.height=h+'px';return s;};function __createClipperDiv(){var c=document.createElement('div');with(c.style){position='absolute';left='0px';top='0px';visibility='visible';overflow='hidden';};return c;};function __cx(x){if(x>_coX+__gsw()-1)x=_coX+__gsw()-1;if(x<_coX)x=_coX;return x;};
function __cy(y){if(y>_coY+__gsh()-1)y=_coY+__gsh()-1;if(y<_coY)y=_coY;return y;};
function __cpt(p){p.X=__cx(p.X);p.Y=__cy(p.Y)};
function __doPostBack(s){window.parent.__doPostBack(_id,s);};
function __gsw(){return Math.round(_isW*_z);};
function __gsh(){return Math.round(_isH*_z);};
function __setupScrollBars(){var sv=__bp('getScrollBarVisibility();');if((__gsbw()==0||__gsbh()==0)&&sv!=1){if(_br!=2){_db.style.overflow='hidden';var vps=__gvps();_db.style.overflow='scroll';var nvps=__gvps();__ssbs(vps.Width-nvps.Width,vps.Height-nvps.Height);delete vps;delete nvps;}else{__ssbs(15,15);};};switch(sv){default:case 0:_db.style.overflow='auto';break;case 1:_db.style.overflow='hidden';break;case 2:_db.style.overflow='scroll';break;};};this.setBackColor=__sbgc;function __sbgc(s){if(s.indexOf('#')==-1)s='#'+s;_db.style.background=s;};this.Center=__cvp;
function __cvp(update){if(__bp('getCentered();')==true){var ws=__gws(),ssW=__gsw(),ssH=__gsh();if(ws.Width>ssW){if(ws.Height>=ssH)_coX=Math.round((ws.Width-ssW)/2);else _coX=Math.max(Math.round((ws.Width-_sbs.Width-ssW)/2),0);}else _coX=0;if(ws.Height>ssH){if(ws.Width>=ssW)_coY=Math.round((ws.Height-ssH)/2);else _coY=Math.max(Math.round((ws.Height-_sbs.Height-ssH)/2),0);}else _coY=0;}else{_coX=0;_coY=0;};if(update==true){__uts();};};function __daz(){var az=__bp('getAutoZoom();');__szm(az);};this.setZoomMode=__szm;function __szm(zt){var nZ=_z,vs=__gws(),vw=vs.Width,vh=vs.Height;switch(zt){case 1:case 2:if(_isW/vw==_isH/vh){nZ=Math.min(vw/_isW,vh/_isH);}else if(_isW/vw>_isH/vh){nZ=vw/_isW;}else{nZ=vh/_isH;};if(nZ>1&&zt==2){nZ=1;};break;case 3:nZ=vw/_isW;if(vh<Math.round(_isH*nZ)){nZ=(vw-__gsbw())/_isW;if(vh>=_isH*nZ){nZ=vh/_isH;};};break;case 4:nZ=vh/_isH;if(vw<Math.round(_isW*nZ)){nZ=(vh-__gsbh())/_isH;if(vw>=_isW*nZ){nZ=vw/_isW;};};break;};if(_z!=nZ){_z=nZ;__sfv(_id+'_z',_z);__uts();__fe('ZoomChanged',null);__vsp();};};this.PauseRefresh=__pr;
function __pr(){_prr++;};this.ResumeRefresh=__rr;
function __rr(){if(_prr==0)atalaThrowError('ResumeRefresh','','refresh has already resumed.','PauseRefresh() must be called before ResumeRefresh().');else _prr--;__rp();};
function __t(aa){var _ta=null,_tr=0,_tc=0,_tad=aa,_tz=_z,_ti,_th=false;if(_tad==true)_ti=3;else _ti=1;this.HasTiles=__tohts;
function __tohts(){if(_ta==null){return false;}else{return true;};};this.getZoom=__togz;
function __togz(){return _tz;};this.Hide=__toh;
function __toh(){if(_ta!=null){for(var i=0;i<_ta.length;i++){_ta[i].style.visibility='hidden';};};};this.Hybridize=__tohy;
function __tohy(){_th=true;_tad=false;_ti=2;if(_ta!=null){for(var i=0;i<_ta.length;i++){_ta[i].style.zIndex=2;};};__torts();};this.Dispose=__toda;
function __toda(){if(_ta!=null){for(var i=0;i<_ta.length;i++){_clipper.removeChild(_ta[i]);_ta[i]=null;};_ta=null;};};
function __toct(){var img=document.createElement('img');img.style.position='absolute';img.style.visibility='hidden';img.style.zIndex=_ti;img.v=false;_clipper.appendChild(img);return img;};this.Create=__tocts;function __tocts(){__toda();_ta=new Array();if(_tad==true){var sw=__gsw(),sh=__gsh();_tc=Math.ceil(sw/_tsW);_tr=Math.ceil(sh/_tsH);_tz=_z;}else{_tc=Math.ceil(_isW/_tsW);_tr=Math.ceil(_isH/_tsH);};var pfx=_rp;if(pfx==''){pfx='?atalaimg=';};for(var i=0;i<_tr*_tc;i++){_ta[i]=__toct();_ta[i].src=pfx+'spacer.gif';};};this.Reposition=__torts;
function __torts(){if(_ta==null)return;var ptw,pth;if(_tad==true){ptw=_tsW;pth=_tsH;}else if(_th==true){ptw=Math.round(_tsW*(_z/_tz));pth=Math.round(_tsH*(_z/_tz));}else{ptw=Math.round(_tsW*_z);pth=Math.round(_tsH*_z);};var n=0,ptx=_coX,pty=_coY,sw=__gsw(),sh=__gsh();for(var r=0;r<_tr;r++){for(var c=0;c<_tc;c++){var nw=ptw,nh=pth;if(ptx+ptw>_coX+sw){nw=_coX+sw-ptx;if(nw<1){nw=1;if(_ta[n].v==true){_ta[n].style.visibility='hidden';_ta[n].v=false;};};};if(pty+pth>_coY+sh){nh=_coY+sh-pty;if(nh<1){nh=1;if(_ta[n].v==true){_ta[n].style.visibility='hidden';_ta[n].v=false;};};};_ta[n].style.width=nw+'px';_ta[n].style.height=nh+'px';_ta[n].style.left=ptx+'px';_ta[n].style.top=pty+'px';ptx+=ptw;n++;};ptx=_coX;pty+=pth;};};this.Show=__tos;
function __tos(){if(_ta==null)return;switch(_tm){case 0:for(var i=0;i<_ta.length;i++){__tost(i);};break;case 1:__tosv();for(var i=0;i<_ta.length;i++){__tost(i);};break;case 2:__tosv();break;};};this.ShowVisible=__tosv;
function __tosv(){var vps=__gvps();__tosr(_spX,_spY,vps.Width-1,vps.Height-1);vps=null;};this.ShowRegion=__tosr;
function __tosr(x,y,w,h){if(_ta==null)return;var inw=__togia(-x,-y),ine=__togia(-x+w,-y),isw=__togia(-x,-y+h),ise=__togia(-x+w,-y+h),row=Math.ceil(inw/_tc),col=inw-(row*_tc),rows=Math.ceil(isw/_tc)-Math.ceil(inw/_tc)+1,cols=ine-inw+1;for(var r=0;r<rows;r++){for(var c=0;c<cols;c++){__tost(((r+row)*_tc)+c+col);};};};function __togia(x,y){var tw,th;if(_tad==true){tw=_tsW;th=_tsH;}else{tw=Math.round(_tsW*_z);th=Math.round(_tsH*_z)};var v=Math.floor((__cx(x)-_coX)/tw)+(Math.floor((__cy(y)-_coY)/th)*_tc);return Math.min(v,_ta.length-1);};function __tost(i){if(i<_ta.length){if(_tad==true&&_z<1){if(!_ta[i].v){__tostu(i);_ta[i].v=true;_ta[i].z=_z;_ta[i].style.visibility='visible';}else if(_tad==true&&_ta[i].z!=_z&&(_z<1||_ta[i].z!=1)){__tostu(i);_ta[i].z=(_z<1)?_z:1;};}else if(!_ta[i].v){__tostu(i);_ta[i].v=true;_ta[i].style.visibility='visible';};};};
function __tostu(i){var np;if(_si==''){if(_rp=='')np='?atalaimg=spacer.gif';else np=_rp+'spacer.gif';}else if(__bp('getPreCacheTiles();')==0||(_tad==true&&_z<1)){var r=Math.floor(i/_tc),c=i-(r*_tc),x=c*_tsW,y=r*_tsH;np=_p+'?atalagettile=true'+'&atala_id='+_id+'&atala_tx='+x+'&atala_ty='+y+'&atala_si='+_si+'&atala_fi='+_fi+'&atala_rnd='+_rnd;if(_tad==true&&_z<1){np+='&atala_z='+_z+'&atala_ad='+_ad;};if(_isW<x+_tsW){np+='&atala_tw='+(_isW-x);};if(_isH<y+_tsH){np+='&atala_th='+(_isH-y);};}else{var u=__bp('getPreCacheUrl();');if(u.length!=0)np=u.replace('{n}',i);};if(_tad==true&&_z<1){if(_ta[i].src.indexOf(np)<0)_ta[i].src=np;}else if(_ta[i].src.indexOf(np)<0)_ta[i].src=np;};};function __tcts(){if(_ad!=0&&_z<1){_tilesZ.Create();}else{_tiles.Create();};};function __tpts(){if(_ad!=0&&_z<1){if(_tilesZ.getZoom!=_z){if(_tilesH!=null){_tilesH.Dispose();_tilesH=null;};_tilesH=_tilesZ;_tilesH.Hybridize();_tilesZ=new __t(true);_tilesZ.Create();};_tilesZ.Reposition();}else{if(!_tiles.HasTiles()){_tiles.Create();};if(_tilesH!=null){_tilesH.Hide();};_tilesZ.Hide();};_tiles.Reposition();};function __tst(){if(_ad!=0&&_z<1){_tilesZ.Show();}else{_tiles.Show();};};function __ssp(x,y){self.scrollTo(x,y);};function __vsp(){var nX,nY;if(document.compatMode=='CSS1Compat'){nX=-document.documentElement.scrollLeft;nY=-document.documentElement.scrollTop;}else{nX=-_db.scrollLeft;nY=-_db.scrollTop;};if(nX!=_spX||nY!=_spY){_spX=nX;_spY=nY;__sfv(_id+'_ipx',-_spX);__sfv(_id+'_ipy',-_spY);__fe('ScrollPositionChanged',null);};if(_tm==2){__tst();};};
function __os(e){__vsp();};
function __or(e){if(_rsz==false){_rsz=true;window.setTimeout('_child.Resize();',500);};};this.Resize=__rz;
function __rz(){_ws=null;__uwiv();_rsz=false;};this.isInitialized=__ii;
function __ii(){return _init;};this.getViewPortSize=__gvps;
function __gvps(){var vs=new atalaSize(0,0);vs.Width=_db.clientWidth;vs.Height=_db.clientHeight;return vs;};this.getViewPortRectangle=__gvpr;
function __gvpr(){var vr=new atalaRectangle(0,0,0,0);vr.X=Math.round(Math.abs(_spX)/_z);vr.Y=Math.round(Math.abs(_spY)/_z);vr.Width=Math.round(_db.clientWidth/_z);vr.Height=Math.round(_db.clientHeight/_z);return vr;};this.getWindowSize=__gws;function __gws(){if(_sbs.Width==0&&_sbs.Height==0){__setupScrollBars();};if(_ws==null||_br==2){if(_br!=2){var of=_db.style.overflow;_db.style.overflow='hidden';_ws=__gvps();_db.style.overflow=of;__ssp(-_spX,-_spY);}else{var sv=__bp('getScrollBarVisibility();');_ws=__gvps();if(sv==0){if(document.body.scrollWidth>_ws.Width){_ws.Height+=_sbs.Height;};if(document.body.scrollHeight>_ws.Height){_ws.Width+=_sbs.Width;};};};};return _ws;};this.getViewPort=__gvp;function __gvp(){return _vp;};this.MouseTool=__mt;function __mt(){var _og=null,_end=null,_pan=false,ie55=false;if(navigator.userAgent.indexOf('MSIE 5.5')>0)ie55=true;document.ondragstart=__rf;document.onselectstart=__rf;document.onfocus=__rf;_vp.ondragstart=__rf;_vp.onselectstart=__rf;_vp.onfocus=__rf;__oce=__rf;__ocme=__rf;__omde=__rf;_vp.onclick=__oc;_vp.oncontextmenu=__ocm;_vp.ondblclick=__obc;_vp.onmousedown=__omd;_vp.onmousemove=__omm;_vp.onmouseout=__omo;_vp.onmouseover=__omov;_vp.onmouseup=__omu;function __oc(e){e=(e==null)?event:e;__fe('Clicked',e);return __oce(e);};function __ocm(e){e=(e==null)?event:e;__fe('RightClicked',e);return __ocme(e);};function __obc(e){e=(e==null)?event:e;__fe('DoubleClicked',e);};function __omd(e){e=(e==null)?event:e;if(e.button==2){__fe('MouseDownRight',e);__omdr(e);}else{__fe('MouseDownLeft',e);__omdl(e);};__fe('MouseDown',e);return __omde(e);};function __oce(e){};function __ocme(e){};function __omde(e){};function __omdl(e){};function __omdr(e){};function __omm(e){e=(e==null)?event:e;__fe('MouseMove',e);};function __omo(e){e=(e==null)?event:e;__fe('MouseOut',e);};
function __omov(e){e=(e==null)?event:e;__fe('MouseOver',e);};
function __omu(e){e=(e==null)?event:e;__fe('MouseUp',e);};var pfx=_rp;if(pfx==''){pfx='?atalacsr=';};switch(__gfvi(_id+'_mtl')){case 0:__oce=__rf;_vp.style.cursor='default';break;case 1:__oce=__cc;if(!ie55)_vp.style.cursor='pointer';else _vp.style.cursor='hand';break;case 2:__omdl=_rs.startSelect;_vp.style.cursor='crosshair';break;case 3:__oce=__czi;if(_br==1){_vp.style.cursor='-moz-zoom-in';}else{if(!ie55)_vp.style.cursor='url("'+pfx+'ZoomIn.cur")';else _vp.style.cursor='hand';};break;case 4:__oce=__czo;if(_br==1){_vp.style.cursor='-moz-zoom-out';}else{if(!ie55)_vp.style.cursor='url("'+pfx+'zo.cur")';else _vp.style.cursor='hand';};break;case 5:__omdl=_rs.startSelect;_vp.style.cursor='crosshair';break;case 6:__omdl=__stp;_vp.style.cursor='move';break;case 7:__oce=__rt;_vp.style.cursor='pointer';break;};switch(__gfvi(_id+'_mtr')){case 0:break;case 1:__ocme=__cc;break;case 2:__omdr=_rs.startSelect;break;case 3:__ocme=__czi;break;case 4:__ocme=__czo;break;case 5:__omdr=_rs.startSelect;break;case 6:__omdr=__stp;break;case 7:__ocme=__rt;break;};function __cc(e){var p=atalaGetMousePosition(e);__c(p.X,p.Y);return false;};function __c(x,y){var vps=__gvps();__ssp((x-Math.round(vps.Width/2)),(y-Math.round(vps.Height/2)));return false;};
function __czi(e){__cz(e,false);return false;};
function __czo(e){__cz(e,true);return false;};
function __cz(e,zo){if(__gfvi(_id+'_az')==0||__gfvi(_id+'_az')==5){var p=atalaGetMousePosition(e),zr=__gfvi(_id+'_zp'),z;if(zo)z=_z-_z*(zr/100);else z=_z+_z*(zr/100);p.X=Math.round(p.X/_z*z);p.Y=Math.round(p.Y/_z*z);_z=z;__sfv(_id+'_z',_z);__uts();__c(p.X,p.Y);__fe('ZoomChanged',null);}else{__cc(e);};return false;};function __stp(e){_og=new atalaPoint(0,0);_end=new atalaPoint(0,0);if(_br==0){_og.X=event.screenX;_og.Y=event.screenY;}else{_og.X=e.screenX;_og.Y=e.screenY;};_end.X=_og.X;_end.Y=_og.Y;document.onmousemove=__mp;document.onmouseup=__sp;return false;};function __mp(e){if(_br==0){window.scrollBy(_og.X-event.screenX,_og.Y-event.screenY);_og.X=event.screenX;_og.Y=event.screenY;}else{window.scrollBy(_og.X-e.screenX,_og.Y-e.screenY);_og.X=e.screenX;_og.Y=e.screenY;};return false;};function __sp(e){document.onmousemove=function(){};document.onmouseup=function(){};return false;};};this.getSelection=__gsr;function __gsr(){return _rs;};function __rs(){this.typeOf='atalaRubberBand';var _RSself=this,_svpr,_sa=false,_sv=false,_sl=false,_scs=0;var	_sop=new atalaPoint(0,0);var _rb,_ru,_gp,_tt,_mu,_mb,_ml,_mr,_sr,_sss,_st,_ssg,_sar,_scl,_sdm,_vr,_hr,_chg=false;this.Changing=function(){};this.Changed=function(){};__rsi();function __rsi(){__rsgfv();_rb=__rscb();_ru=__rscb();_rb.insertRow(0);_rb.rows[0].insertCell(0);_ru.insertRow(0);_ru.rows[0].insertCell(0);_mu=__rscm();_mb=__rscm();_ml=__rscm();_mr=__rscm();_tt=document.createElement('div');with(_tt.style){fontFamily='Arial, helvetica, san-serif';fontSize='8pt';padding='1px';backgroundColor='#FFFFE1';border='1px solid #000000';position='absolute';visibility='hidden';zIndex='100001';};_clipper.appendChild(_ru);_clipper.appendChild(_rb);_clipper.appendChild(_tt);_clipper.appendChild(_mu);_clipper.appendChild(_mb);_clipper.appendChild(_ml);_clipper.appendChild(_mr);_gp=new __rsgps();__RSrefreshStyle();if(__rsgv()){__rss();}else{__rsh();};if(__rsga()==true&&__rsgmc()==true){__rsa();};};this.Dispose=__rsd;function __rsd(){if(_gp!=null){_gp.Dispose();_gp=null;};_RSself=null;_svpr=null;_sop=null;_rb=null;_ru=null;_sr=null;_sss=null;_tt=null;_mu=null;_mb=null;_ml=null;_mr=null;};function __rsgfv(){_svpr=atalaGetBoundsRect(_vp);_sss=new atalaSize(__gsw(),__gsh());_sv=__rsgv();_ssg=__rsgsg();_sr=__rsgrt();_st=__rsgstt();_sa=__rsga();_sar=__rsgar();_sdm=__rsgdm();_scl=__rsgcl();};
function __rsgps(){var _c=new Array('move','nw','n','ne','w','e','sw','s','se'),_g=new Array(),_v=false,_gva=new Array(),_gsw=0,_gsh=0;for(var i=0;i<9;i++){_g[i]=new __gp(i);_clipper.appendChild(_g[i].grip);};this.Dispose=__gd;function __gd(){for(var i=0;i<9;i++){_g[i].Dispose();_g[i]=null;};_c=null;_g=null;_v=null;_gva=null;};__gpse();this.setRectangle=__gpsr;function __gpsr(x,y,w,h){_gsw=w;_gsh=h;_g[0].setPos(x,y);_g[1].setPos(x-4,y-4);_g[3].setPos(x+w-4,y-4);_g[6].setPos(x-4,y+h-4);_g[8].setPos(x+w-4,y+h-4);_g[0].setSize(w,h);if(_ssg){_g[2].setPos(x+Math.round(w/2)-4,y-4);_g[4].setPos(x-4,y+Math.round(h/2)-4);_g[5].setPos(x+w-4,y+Math.round(h/2)-4);_g[7].setPos(x+Math.round(w/2)-4,y+h-4);}else{_g[2].setPos(x+4,y-4);_g[4].setPos(x-4,y+4);_g[5].setPos(x+w-4,y+4);_g[7].setPos(x+4,y+h-4);_g[2].setSize(w-8,8);_g[4].setSize(8,h-8);_g[5].setSize(8,h-8);_g[7].setSize(w-8,8);};__gpsw();};this.resetColors=__gprc;function __gprc(){for(var i=0;i<9;i++){_g[i].resetColors();};};this.resetGrips=__gprg;function __gprg(){for(var i=0;i<9;i++){_g[i].resetGripSize();_g[i].resetColors();};};this.hide=__gph;function __gph(){for(var i=0;i<9;i++){_g[i].hide();};};this.show=__gps;function __gps(){for(var i=0;i<9;i++){if(_gva[i]==true){_g[i].show();}else{_g[i].hide();};};};this.showGrips=__gpsw;
function __gpsw(){for(var i=0;i<9;i++){_gva[i]=true;};_gva[0]=true;if(_gsw<8&&_gsh<8){_gva[1]=false;};if(_gsw<12||_gsh<12){_gva[3]=false;_gva[6]=false;};if(_gsw<16||_gsh<8){_gva[2]=false;_gva[7]=false;};if(_gsh<16||_gsw<8){_gva[4]=false;_gva[5]=false;};__gps();};this.resetEvents=__gpse;function __gpse(){if(__rsgm()==true){if(_scl){_g[0].grip.onclick=__rsm;}else{_g[0].grip.onmousedown=__rsm;};_g[0].grip.style.cursor='move';}else{_g[0].grip.onmousedown=__rf;_g[0].grip.style.cursor='default';};for(var i=1;i<9;i++){if(__rsgr()==true){if(_scl){_g[i].grip.onclick=_g[i].onResize;}else{_g[i].grip.onmousedown=_g[i].onResize;};_g[i].grip.style.cursor=_c[i]+'-resize';}else{_g[i].grip.onmousedown=__rf;_g[i].grip.style.cursor='default';};};};
function __gp(i){var _gps=this,_gr,_gs,_di=_c[i],_gv=false;if(_br==0){_gr=__csp(1,1);}else{_gr=document.createElement('div');};_gs=_gr.style;__gpsc();__gpsgs();this.grip=_gr;_gs.display='block';_gs.position='absolute';_gs.visibility='hidden';_gs.zIndex='100012';_gr.onclick=__rf;_gr.onselectstart=__rf;_gr.onselect=__rf;_gr.oncontextmenu=__rf;this.Dispose=__grd;
function __grd(){_gps=null;_gr=null;_gs=null;_di=null;};this.setPos=__gpsp;
function __gpsp(x,y){_gs.left=x+'px';_gs.top=y+'px';};this.setSize=__gpss;
function __gpss(w,h){if(__rsgsg()==true&&_di!='move'){w-=2;h-=2;};if(w<=0)w=1;if(h<=0)h=1;_gs.width=w+'px';_gs.height=h+'px';};this.hide=__gphg;
function __gphg(){if(_gv){_gs.visibility='hidden';_gv=false;};};this.show=__gpsg;
function __gpsg(){if(!_gv){_gs.visibility='visible';_gv=true;};};this.resetColors=__gpsc;
function __gpsc(){if(_di!='move'){if(_ssg==true){if(__rsgmc()==true){_gs.backgroundColor='#'+__rsgbgc();_gs.border='1px solid #'+__rsgfc();}else{_gs.backgroundColor='#'+__rsgfc();_gs.border='1px solid #'+__rsgfc();};}else{_gs.backgroundColor='';_gs.border='';};};};this.resetGripSize=__gpsgs;function __gpsgs(){if(_ssg==true){_gs.width='6px';_gs.height='6px';}else{_gs.width='8px';_gs.height='8px';};};this.onResize=__gpr;function __gpr(e){__rsre(e,_di);};};};function __rscb(){var t=document.createElement('table');t.border='0';t.cellPadding='0';t.cellSpacing='0';t.style.position='absolute';t.style.visibility='hidden';t.style.zIndex='100001';return t;};
function __rscm(){var pfx=_rp;if(pfx==''){pfx='?atalaimg=';};var d=atalaCreateMask(pfx+'mask.png');with(d.style){left='0px';top='0px';width='1px';height='1px';position='absolute';visibility='hidden';zIndex='100000';};d.appendChild(__csp(1,1));return d;};this.getAnimated=__rsga;function __rsga(){if(__gfv(_id+'_rsa').toLowerCase()=='true'){return true;}else{return false;};};this.getAspectRatio=__rsgar;
function __rsgar(){return __gfvf(_id+'_rsar');};this.getAutoPostBack=__rsgapb;
function __rsgapb(){if(__gfv(_id+'_rsp').toLowerCase()=='true'){return true;}else{return false;};};this.getBackColor=__rsgbgc;
function __rsgbgc(){return __gfv(_id+'_rsbc');};this.getClickLock=__rsgcl;
function __rsgcl(){if(__gfv(_id+'_rscl').toLowerCase()=='true'){return true;}else{return false;};};this.getDrawMask=__rsgdm;
function __rsgdm(){if(__gfv(_id+'_rsdm').toLowerCase()=='true'){return true;}else{return false;};};this.getForeColor=__rsgfc;
function __rsgfc(){return __gfv(_id+'_rsfc');};this.getHeight=__rsgh;function __rsgh(){return __gfvi(_id+'_rsh');};this.getMovable=__rsgm;
function __rsgm(){if(__gfv(_id+'_rsm').toLowerCase()=='true'){return true;}else{return false;};};this.getMultiColor=__rsgmc;
function __rsgmc(){if(__gfv(_id+'_rsmc').toLowerCase()=='true'){return true;}else{return false;};};this.getPosition=__rsgp;
function __rsgp(){return new atalaPoint(__gfvi(_id+'_rsx'),__gfvi(_id+'_rsy'));};this.getResizable=__rsgr;
function __rsgr(){if(__gfv(_id+'_rsr').toLowerCase()=='true'){return true;}else{return false;};};this.getSize=__rsgs;
function __rsgs(){return new atalaSize(__gfvi(_id+'_rsw'),__gfvi(_id+'_rsh'));};this.getShowGrips=__rsgsg;
function __rsgsg(){if(__gfv(_id+'_rsg').toLowerCase()=='true'){return true;}else{return false;};};this.getShowTooltip=__rsgstt;
function __rsgstt(){if(__gfv(_id+'_rst').toLowerCase()=='true'){return true;}else{return false;};};this.getVisible=__rsgv;
function __rsgv(){if(__gfv(_id+'_rsv').toLowerCase()=='true'){return true;}else{return false;};};this.getWidth=__rsgw;
function __rsgw(){return __gfvi(_id+'_rsw');};this.getRectangle=__rsgrc;
function __rsgrc(){return new atalaRectangle(__gfvi(_id+'_rsx'),__gfvi(_id+'_rsy'),__gfvi(_id+'_rsw'),__gfvi(_id+'_rsh'));};
function __rsgrt(){var p=__rsgp(),w=__rsgw(),h=__rsgh(),r=new atalaRectangle(p.X,p.Y,w,h);r.X=Math.round(r.X*_z);r.Y=Math.round(r.Y*_z);r.Width=Math.round(r.Width*_z);r.Height=Math.round(r.Height*_z);return r;};this.setAnimated=__rssa;
function __rssa(b){if(atalaCheckBool(b)==true){if(__rsga()!=b){__sfv(_id+'_rsa',b);if(b==true){_sa=true;__rsa();}else{_sa=false;};};}else{atalaThrowError('Selection.setAnimated',5,b,'');};};this.setAspectRatio=__rssar;function __rssar(f){if(f>=0){__sfv(_id+'_rsar',f);};};this.setAutoPostBack=__rssapb;
function __rssapb(b){if(atalaCheckBool(b)==true){if(__rsgapb()!=b){__sfv(_id+'_rsp',b);__rsue();};}else{atalaThrowError('Selection.setAutoPostBack',5,b,'');};};this.setBackColor=__rssbgc;function __rssbgc(s){__sfv(_id+'_rsbc',s);__RSrefreshStyle();};this.setClickLock=__rsscl;
function __rsscl(b){if(atalaCheckBool(b)==true){if(__rsgcl()!=b){__sfv(_id+'_rscl',b);};}else{atalaThrowError('Selection.setClickLock',5,b,'');};};this.setDrawMask=__rssdm;
function __rssdm(b){if(atalaCheckBool(b)==true){if(__rsgdm()!=b){__sfv(_id+'_rsdm',b);__rsu();};}else{atalaThrowError('Selection.setDrawMask',5,b,'');};};this.setForeColor=__rssfgc;
function __rssfgc(s){__sfv(_id+'_rsfc',s);__RSrefreshStyle();};this.setHeight=__rssh;
function __rssh(i){if(i>=0){var oh=__rsgh();if(i>_isH)i=_isH;if(i!=oh){__sfv(_id+'_rsh',i);if(_chg){try{_RSself.Changing();}catch(ex){atalaThrowError(_id+'.getSelection().Changing',-1,'\n'+_RSself.Changing,ex.message);};}else{try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()){__doPostBack('RubberBand');};};__rsu();};}else{atalaThrowError('Selection.setHeight',3,i,'Valid values are greater than or equal to 0.')};};this.setMovable=__rssm;
function __rssm(b){if(atalaCheckBool(b)==true){if(__rsgm()!=b){__sfv(_id+'_rsm',b);__rsue();};}else{atalaThrowError('Selection.setMovable',5,b,'');};};this.setMultiColor=__rssmc;
function __rssmc(b){if(atalaCheckBool(b)==true){__sfv(_id+'_rsmc',b);__RSrefreshStyle();}else{atalaThrowError('Selection.setMultiColor',5,b,'');};};this.setPosition=__rssp;function __rssp(p){if(p.typeOf=='atalaPoint'){__rssps(p.X,p.Y);}else{atalaThrowError('Selection.setPosition',4,p.typeOf,'atalaPoint expected.');};};
function __rssps(x,y){if(x>=0&&y>=0){__sfv(_id+'_rsx',x);__sfv(_id+'_rsy',y);_sr.X=Math.round(x*_z);_sr.Y=Math.round(y*_z);if(_chg){try{_RSself.Changing();}catch(ex){atalaThrowError(_id+'.getSelection().Changing',-1,'\n'+_RSself.Changing,ex.message);};}else{__rsur();try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()){__doPostBack('RubberBand');};};}else{atalaThrowError('Selection.setSize',3,x+'x'+y,'Position must be at least 0x0.');};};this.setResizable=__rssr;
function __rssr(b){if(atalaCheckBool(b)==true){if(__rsgr()!=b){__sfv(_id+'_rsr',b);__rsue()};}else{atalaThrowError('Selection.setResizable',5,b,'');};};this.setSize=__rsss;
function __rsss(s){if(s.typeOf=='atalaSize'){__rssso(s.Width,s.Height);}else{atalaThrowError('Selection.setSize',4,s.typeOf,'atalaSize expected.');};};function __rssso(w,h){if(w>=0&&h>=0){var ow=__gfvi(_id+'_rsw'),oh=__gfvi(_id+'_rsh');if(w>_isW)w=_isW;if(h>_isH)h=_isH;if(w!=ow||h!=oh){__sfv(_id+'_rsw',w);__sfv(_id+'_rsh',h);if(_chg){try{_RSself.Changing();}catch(ex){atalaThrowError(_id+'.getSelection().Changing',-1,'\n'+_RSself.Changing,ex.message);};}else{__rsu();try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()){__doPostBack('RubberBand');};};};}else{atalaThrowError('Selection.setSize',3,w+'x'+h,'Size must be at least 0x0.');};};this.setShowGrips=__rsssg;
function __rsssg(b){if(atalaCheckBool(b)==true){if(__rsgsg()!=b){__sfv(_id+'_rsg',b);__rsgfv();_gp.resetGrips();if(b){_gp.show();}else{_gp.hide();};__rsu();};}else{atalaThrowError('Selection.setShowGrips',5,b,'');};};this.setShowTooltip=__rssstt;function __rssstt(b){if(atalaCheckBool(b)==true){if(__rsgstt()!=b){__sfv(_id+'_rst',b);};}else{atalaThrowError('Selection.setShowTooltip',5,b,'');};};this.setVisibility=__rssv;
function __rssv(s){if(__rsgv()!=s){if(s=='visible'){__sfv(_id+'_rsv',true);__rsu();}else if(s=='hidden'){__sfv(_id+'_rsv',false);__rsu();}else{atalaThrowError('Selection.setVisibility',3,s,'Valid values are "hidden" or "visible".');};};};this.setWidth=__rssw;
function __rssw(i){if(i>=0){var ow=__rsgw();if(i>_isW)i=_isW;if(i!=ow){__sfv(_id+'_rsw',i);if(_chg){try{_RSself.Changing();}catch(ex){atalaThrowError(_id+'.getSelection().Changing',-1,'\n'+_RSself.Changing,ex.message);};}else{try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()){__doPostBack('RubberBand');};};__rsu();};}else{atalaThrowError('Selection.setWidth',3,i,'Valid values are greater than or equal to 0.')};};
function __rsdm(){
    if(!_sdm){
        _ml.style.visibility='hidden';
        _mr.style.visibility='hidden';
        _mu.style.visibility='hidden';
        _mb.style.visibility='hidden';
        return;
    };
    if(_sr.Y>0){
        with(_mu.style){
            left=_coX+'px';top=_coY+'px';width=_svpr.Width+'px';height=_sr.Y+'px';visibility='visible';};}else{_mu.style.visibility='hidden';};if(_sr.Y+_sr.Height<_svpr.Height){with(_mb.style){left=_coX+'px';top=_coY+_sr.Y+_sr.Height+'px';width=_svpr.Width+'px';height=(_svpr.Height-(_sr.Y+_sr.Height))+'px';visibility='visible';};}else{_mb.style.visibility='hidden';};if(_sr.X>0){with(_ml.style){left=_coX+'px';top=_coY+_sr.Y+'px';width=_sr.X+'px';height=_sr.Height+'px';visibility='visible';};}else{_ml.style.visibility='hidden';};if(_sr.X+_sr.Width<_svpr.Width){with(_mr.style){left=_coX+_sr.X+_sr.Width+'px';top=_coY+_sr.Y+'px';width=(_svpr.Width-(_sr.X+_sr.Width))+'px';height=_sr.Height+'px';visibility='visible';};}else{_mr.style.visibility='hidden';};};
function __rsdtt(){_tt.style.left=_sr.X+_sr.Width+8+'px';_tt.style.top=_sr.Y+_sr.Height+4+'px';_tt.innerHTML=Math.round(_sr.Width/_z)+'x'+Math.round(_sr.Height/_z);if(_tt.style.visibility!='visible')_tt.style.visibility='visible';};
function __rss(){_ru.style.visibility='visible';_rb.style.visibility='visible';};
function __rsh(){_gp.hide();_ru.style.visibility='hidden';_rb.style.visibility='hidden';};
function __RSrefreshStyle(){var s='solid';if(__rsgmc()==true){s='dashed';};var bg='1px solid #'+__rsgbgc(),fg='1px '+s+' #'+__rsgfc();_ru.style.border=bg;_rb.style.border=fg;_gp.resetColors();};this.Synchronize=__rsu;
function __rsu(){__rsgfv();__rsur();};
function __rsue(){_gp.resetEvents();};
function __rsur(){var nx=_sr.X,ny=_sr.Y,iw=Math.round(_isW*_z),ih=Math.round(_isH*_z);if(nx>=iw||nx+_sr.Width>iw){nx=iw-_sr.Width;if(nx<0)nx=0;};if(ny>=ih||ny+_sr.Height>ih){ny=ih-_sr.Height;if(ny<0)ny=0;};if(nx!=_sr.X||ny!=_sr.Y){__sfv(_id+'_rsx',Math.round(nx/_z));__sfv(_id+'_rsy',Math.round(ny/_z));_sr.X=Math.round(nx*_z);_sr.Y=Math.round(ny*_z);};var rx=_coX+_sr.X,ry=_coY+_sr.Y,rw=_sr.Width,rh=_sr.Height;__rsscp(rx,ry);__rsscs(rw,rh);_gp.setRectangle(rx,ry,rw,rh);if(_sv){__rss();__rsdm();}else{__rsh();};};
function __rsscp(x,y){_ru.style.left=x+'px';_rb.style.left=x+'px';_ru.style.top=y+'px';_rb.style.top=y+'px';};function __rsscs(w,h){if(w==0){w=1;};_ru.style.width=w+'px';_rb.style.width=w+'px';_ru.style.height=h+'px';_rb.style.height=h+'px';};this.startSelect=__rssrbs;
function __rssrbs(e){if(_scl){if(_sl){_sl=false;return false;}else{_sl=true;};};var p=atalaGetMousePosition(e);__rsgfv();__rssv('visible');_sop=new atalaPoint(p.X,p.Y);_sr.X=p.X-_svpr.X;_sr.Y=p.Y-_svpr.Y;_sr.Width=1;_sr.Height=1;_chg=true;_vr=0;_hr=0;__rsur();if(_st==true){__rsdtt();};if(__gfvi(_id+'_mtl')==5||__gfvi(_id+'_mtr')==5){document.onmouseup=__rsfz;if(_br==1)window.parent.document.onmouseup=__rsfz;}else{document.onmouseup=__rsf;if(_br==1)window.parent.document.onmouseup=__rsf;};document.onmousemove=__rssrb;if(_br==1)window.parent.document.onmousemove=__rssrb;return false;};
function __rssrb(e){var ep=atalaGetMousePosition(e);__cpt(ep);var nx=_sop.X,ny=_sop.Y,nw=Math.abs(ep.X-_sop.X),nh=Math.abs(ep.Y-_sop.Y);if(_sar>0){var r=Math.abs((ep.Y-_sop.Y)/(ep.X-_sop.X));if(r>1/_sar&&_hr==0||_vr==1){nw=Math.round(nh*_sar);}else{nh=Math.round(nw/_sar);};};if(ep.X<_sop.X){nx=_sop.X-nw;if(nx-_svpr.X<0){nw=_sop.X-_svpr.X;if(_sar>0){nh=Math.round(nw/_sar);};nx=_sop.X-nw;};}else if(nx+nw>_sss.Width+_svpr.X){nw=_sss.Width-nx+_svpr.X;if(_sar>0){nh=Math.round(nw/_sar);};};if(ep.Y<_sop.Y){ny=_sop.Y-nh;if(ny-_svpr.Y<0){nh=_sop.Y-_svpr.Y;if(_sar>0){nw=Math.round(nh*_sar);};ny=_sop.Y-nh;if(ep.X<_sop.X){nx=_sop.X-nw;};};}else if(ny+nh>_sss.Height+_svpr.Y){nh=_sss.Height-ny+_svpr.Y;if(_sar>0){nw=Math.round(nh*_sar);};if(ep.X<_sop.X){nx=_sop.X-nw;};};if(_vr==0||_sar>0){_sr.X=nx-_svpr.X;_sr.Width=nw;};if(_hr==0||_sar>0){_sr.Y=ny-_svpr.Y;_sr.Height=nh;};__rsur();__rssps(Math.round(_sr.X/_z),Math.round(_sr.Y/_z));__rssso(Math.round(_sr.Width*_z),Math.round(_sr.Height*_z));if(_st==true){__rsdtt();};return false;};
function __rsre(e,d){if(_scl){if(_sl){_sl=false;return false;}else{_sl=true;};};var p=atalaGetMousePosition(e);__rsgfv();_vr=0;_hr=0;_chg=true;switch(d){case'nw':_sop.X=_sr.X+_sr.Width;_sop.Y=_sr.Y+_sr.Height;break;case'n':_sop.X=_sr.X;_sop.Y=_sr.Y+_sr.Height;_vr=1;break;case'ne':_sop.X=_sr.X;_sop.Y=_sr.Y+_sr.Height;break;case'w':_sop.X=_sr.X+_sr.Width;_sop.Y=_sr.Y+_sr.Height;_hr=1;break;case'e':_sop.X=_sr.X;_sop.Y=_sr.Y+_sr.Height;_hr=1;break;case'sw':_sop.X=_sr.X+_sr.Width;_sop.Y=_sr.Y;break;case's':_sop.X=_sr.X;_sop.Y=_sr.Y;_vr=1;break;case'se':_sop.X=_sr.X;_sop.Y=_sr.Y;break;};_sop.X+=_coX;_sop.Y+=_coY;__rsur();if(_st==true){__rsdtt();};document.onmouseup=__rsf;document.onmousemove=__rssrb;if(_br==1){window.parent.document.onmouseup=__rsf;window.parent.document.onmousemove=__rssrb;};return false;};
function __rsm(e){if(_scl){if(_sl){_sl=false;return false;}else{_sl=true;};};var p=atalaGetMousePosition(e);__rsgfv();_chg=true;_sop=new atalaPoint(p.X-_sr.X,p.Y-_sr.Y);document.onmouseup=__rsf;document.onmousemove=__rsmg;if(_br==1){window.parent.document.onmouseup=__rsf;window.parent.document.onmousemove=__rsmg;};if(_br==0){return false;};return;};
function __rsmg(e){var mp=atalaGetMousePosition(e),np=new atalaPoint(0,0);np.X=Math.round((mp.X-_sop.X)/_z);np.Y=Math.round((mp.Y-_sop.Y)/_z);if(np.X>_isW-Math.round(_sr.Width/_z))np.X=_isW-Math.round(_sr.Width/_z);if(np.X<0)np.X=0;if(np.Y>_isH-Math.round(_sr.Height/_z))np.Y=_isH-Math.round(_sr.Height/_z);if(np.Y<0)np.Y=0;__rssp(np);__rsur();return false;};
function __rsf(e){if(_scl&&_sl){return false;};var np=new atalaPoint(0,0),ns=new atalaSize(0,0);np.X=Math.round(_sr.X/_z);np.Y=Math.round(_sr.Y/_z);ns.Width=Math.round(_sr.Width/_z);ns.Height=Math.round(_sr.Height/_z);if(_sr.Width>1&&_sr.Height>1){__rssp(np);__rsss(ns);}else{_chg=false;};if(_st==true){_tt.style.visibility='hidden';};if(_chg){_chg=false;try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()&&__gfvi(_id+'_mtl')!=5&&__gfvi(_id+'_mtr')!=5){__doPostBack('RubberBand');};};document.onmousemove=null;document.onmouseup=null;if(_br==1){window.parent.document.onmousemove=null;window.parent.document.onmouseup=null;};return false;};
function __rsfz(e){if(_scl&&_sl){return false;};__rsf(e);__rsh();__rssv('hidden');if(_sr.Width>1&&_sr.Height>1){var nz,vps=__gvps(),npx=0,npy=0;if(vps.Width/_sr.Width==vps.Height/_sr.Height){nz=Math.min(vps.Width/_sr.Width,vps.Height/_sr.Height);npx=-Math.round(_sr.X/_z*nz);npy=-Math.round(_sr.Y/_z*nz);}else if(vps.Width/_sr.Width<vps.Height/_sr.Height){nz=_z*(vps.Width/_sr.Width);npx=-Math.round(_sr.X/_z*nz);npy=-Math.round((_sr.Y/_z*nz)-(vps.Height-_sr.Height/_z*nz)/2);}else{nz=_z*(vps.Height/_sr.Height);npx=-Math.round((_sr.X/_z*nz)-(vps.Width-_sr.Width/_z*nz)/2);npy=-Math.round(_sr.Y/_z*nz);};__bp('setZoom('+nz+');');__bp('setScrollPosition(new atalaPoint('+npx+','+npy+'));');};if(_chg){_chg=false;try{_RSself.Changed();}catch(ex){atalaThrowError(_id+'.getSelection().Changed',-1,'\n'+_RSself.Changed,ex.message);};if(__rsgapb()){__doPostBack('RubberBand');};};return false;};
function __rsa(){if(_scs==0){_rb.style.border='1px dashed #'+__rsgbgc();_ru.style.border='1px solid #'+__rsgfc();_scs=1;}else{_rb.style.border='1px dashed #'+__rsgfc();_ru.style.border='1px solid #'+__rsgbgc();_scs=0;};if(_sa==true){setTimeout(__rsa,75);}else{_rb.style.border='1px dashed #'+__rsgfc();_ru.style.border='1px solid #'+__rsgbgc();};};};};

