// SIMMPA12B Package / (c) Archimed'2015 / JSE v0.6.3.1 / Cached for 140.77.250.69 (expires 23/10/2015 09:25:24) // // packages.acknowledge('SIMMPA12B'); // ---------------------------------------------- function bc(eid) {history.back(); } function spanMain_onmousedown(tobj,e) { if (!e) e=window.event; if(e.button==1) { posX=e.x; posY=e.y; dragOn=true; getElementById(tobj).style.cursor="hand"; } } function spanMain_onmousemove(tobj,e) { if (!e) e=window.event; if(e.button==1) { if(dragOn) { getElementById(tobj).scrollLeft += posX-e.x; getElementById(tobj).scrollTop += posY-e.y; posX=e.x; posY=e.y; } } else { dragOn=false; getElementById(tobj).style.cursor=""; } } function spanMain_onmouseup(tobj) { dragOn=false; getElementById(tobj).style.cursor=""; } function HOLDER_RELOAD() { getElementById(this.imgEID).src=this.viewer+"?INSTANCE="+escape(this.strInstance)+"&EIDMPA="+escape(this.strEIDMPA)+"&Zoom="+escape((this.zoom==1)?"":this.zoom)+"&Angle="+escape(this.angle)+((this.width!=-1)?("&Width="+this.width):"")+((this.width!=-1)?("&Height="+this.height):"")+"&Page="+this.page; } function HOLDER_ROTRIGHT() { this.angle+=45; this.Reload(); } function HOLDER_ROTLEFT() { this.angle-=45; this.Reload(); } function HOLDER_ZOOMPLUS() { if(this.zoom>=4) return; if(this.zoom>=1) this.zoom++; else this.zoom*=2; this.Reload(); } function HOLDER_ZOOMOFF() { this.zoom=1; this.width=-1; this.height=-1; this.Reload(); } function HOLDER_ZOOMMOINS() { if(this.zoom<=0.125) return; if(this.zoom>1) this.zoom--; else this.zoom/=2; this.Reload(); } function HOLDER_FITTOSCREEN() { var width = getElementById(this.imgEID).parentNode.style.width; var height = getElementById(this.imgEID).parentNode.style.height; this.width=width.substring(0,width.length - 2); this.height=height.substring(0,width.length - 2); this.zoom=1; this.angle=0; this.Reload(); this.width=-1; this.height=-1; } function HOLDER_FULLSCREEN() { window.open(this.viewer+"?INSTANCE="+escape(this.strInstance)+"&EIDMPA="+escape(this.strEIDMPA)+"&Page="+this.page); } function HOLDER_DOWNLOADDPI(dpi) { if(dpi=="0") return; if(dpi=="NATIF") window.open(this.viewer+"?INSTANCE="+escape(this.strInstance)+"&EIDMPA="+escape(this.strEIDMPA)+"&Page="+this.page); else window.open(this.viewer+"?INSTANCE="+escape(this.strInstance)+"&EIDMPA="+escape(this.strEIDMPA)+"&Page="+this.page+"&DPI="+dpi); } function HOLDER_CHANGEPAGE(p) { this.page=p; if(this.width==-1) { this.width = this.parentWidth; this.height = this.parentHeight; this.zoom=1; this.angle=0; this.Reload(); this.width=-1; this.height=-1; } else this.Reload(); } function HOLDER_ZOOM(niveauzoom) { this.zoom=niveauzoom; this.width=-1; this.height=-1; this.Reload(); } function Holder(strInstance,strEIDMPA,viewer,parentWidth,parentHeight) { this.strInstance = strInstance; this.strEIDMPA=strEIDMPA; this.imgEID="IMAGE_"+strEIDMPA; this.viewer=viewer; this.parentWidth=parentWidth; this.parentHeight=parentHeight; this.zoom=1; this.angle=0; this.width=-1; this.height=-1; this.page=1; this.FullScreen=HOLDER_FULLSCREEN; this.ZoomPlus=HOLDER_ZOOMPLUS; this.ZoomMoins=HOLDER_ZOOMMOINS; this.ZoomOff=HOLDER_ZOOMOFF; this.Zoom=HOLDER_ZOOM; this.RotRight=HOLDER_ROTRIGHT; this.RotLeft=HOLDER_ROTLEFT; this.FitToScreen=HOLDER_FITTOSCREEN; this.ChangePage=HOLDER_CHANGEPAGE; this.Reload=HOLDER_RELOAD; this.DownloadDPI=HOLDER_DOWNLOADDPI; } // --- [EOF] --- //This package is loaded. packages.complete('SIMMPA12B'); // Served in 46,875 ms