Hébergeur de fichiers indépendant

double craft.js

À propos

Type de fichier
Fichier JS de 104 Ko (text/plain)
Confidentialité
Fichier public, envoyé le 8 novembre 2012 à 15:53, depuis l'adresse IP 2.6.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 3 jours
Statistiques
La présente page de téléchargement a été vue 661 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


var RESIZEABLE_CANVAS=false;if(typeof FuncOL==='undefined'){FuncOL = new Array();function StkFunc(Obj){FuncOL[FuncOL.length] = Obj;}}window.onload=function(){for(i=0;i<FuncOL.length;i++){FuncOL[i]();}}

StkFunc(p269);function p269(){if(RESIZEABLE_CANVAS)window.onresize=function(){var a=document.getElementById("double-craft"),c=window.innerHeight;a.width=document.body.clientWidth;a.height=c},window.onresize(null);p2692=document.getElementById("double-craft");p2693=document.getElementById("GameConsole");try{p2697Init(),p2697Main(),p2694!=null&&p2694()}catch(a){showError(a)}};var p2692,p2693,p2694,p2695="[double craft_m.jpg];type=image/jpg;width=800;height=255;\n[p_255255255.png];type=image/png;width=64;height=16;\n[t1.png];type=image/png;width=245;height=31;\n[t2.png];type=image/png;width=58;height=27;\n[t3.png];type=image/png;width=213;height=27;\n[t5.png];type=image/png;width=127;height=27;\n[t6.png];type=image/png;width=130;height=27;\n[t7.png];type=image/png;width=287;height=36;\n[stamp.png];type=image/png;width=126;height=17;\n";
function p2698(a,b){var c=p2695.indexOf("["+a+"]");if(c==-1)return"";c+=a.length+2;var d=p2695.indexOf("\n",c);if(d==-1)d=p2695.length;c=p2695.indexOf(";"+b+"=",c);if(c==-1||c>=d)return"";c+=b.length+2;d=p2695.indexOf(";",c);return d==-1?"":p2695.slice(c,d)}function loadString(){return""}
function p2696(a,b){if(p2698(a,"type").indexOf("image/")!=0)return null;var c=new Image;c.meta_width=parseInt(p2698(a,"width"));c.meta_height=parseInt(p2698(a,"height"));c.onload=b;for(var d=document.getElementsByTagName("script"),e="",f=0;f<d.length;f++)if(d[f].src.indexOf("double-craft")!=-1){e=d[f].src.split("?")[0];break}d=e.split("/").slice(0,-1).join("/")+"/";c.src=d+"double-craft.data/"+a;return c}function loadAudio(a){return new Audio("data/"+a)}
var D2R=0.017453292519943295,R2D=57.29577951308232,err_info="",err_stack=[];function push_err(){err_stack.push(err_info)}function pop_err(){err_info=err_stack.pop()}function stackTrace(){var a="";push_err();err_stack.reverse();for(var b=0;b<err_stack.length;++b)a+=err_stack[b]+"\n";err_stack.reverse();pop_err();return a}
function print(a){if(p2693)p2693.value+=a+"\n",p2693.scrollTop=p2693.scrollHeight-p2693.clientHeight;window.console!=void 0&&window.console.log(a)}function showError(a){a.length&&alert("Monkey runtime error: "+a+"\n"+stackTrace())}function error(a){throw a;}function dbg_object(a){if(a)return a;error("Null object access")}function dbg_array(a,b){if(b>=0&&b<a.length)return a;error("Array index out of range")}
function new_bool_array(a){for(var b=Array(a),c=0;c<a;++c)b[c]=false;return b}function new_number_array(a){for(var b=Array(a),c=0;c<a;++c)b[c]=0;return b}function new_string_array(a){for(var b=Array(a),c=0;c<a;++c)b[c]="";return b}function new_array_array(a){for(var b=Array(a),c=0;c<a;++c)b[c]=[];return b}function new_object_array(a){for(var b=Array(a),c=0;c<a;++c)b[c]=null;return b}
function resize_bool_array(a,b){var c=a.length,a=a.slice(0,b);if(b<=c)return a;for(a.length=b;c<b;)a[c++]=false;return a}function resize_number_array(a,b){var c=a.length,a=a.slice(0,b);if(b<=c)return a;for(a.length=b;c<b;)a[c++]=0;return a}function resize_string_array(a,b){var c=a.length,a=a.slice(0,b);if(b<=c)return a;for(a.length=b;c<b;)a[c++]="";return a}function resize_array_array(a,b){var c=a.length,a=a.slice(0,b);if(b<=c)return a;for(a.length=b;c<b;)a[c++]=[];return a}
function resize_object_array(a,b){var c=a.length,a=a.slice(0,b);if(b<=c)return a;for(a.length=b;c<b;)a[c++]=null;return a}function string_compare(a,b){var c=Math.min(a.length,b.length),d,e;for(d=0;d<c;++d)if(e=a.charCodeAt(d)-b.charCodeAt(d))return e;return a.length-b.length}function string_replace(a,b,c){for(var d=0;;){d=a.indexOf(b,d);if(d==-1)return a;a=a.substring(0,d)+c+a.substring(d+b.length);d+=c.length}}
function string_trim(a){for(var b=0,c=a.length;b<c&&a.charCodeAt(b)<=32;)b+=1;for(;c>b&&a.charCodeAt(c-1)<=32;)c-=1;return a.slice(b,c)}function string_starts_with(a,b){return b.length<=a.length&&a.slice(0,b.length)==b}function string_ends_with(a,b){return b.length<=a.length&&a.slice(a.length-b.length,a.length)==b}function object_downcast(a,b){return a instanceof b?a:null}function object_implements(a,b){return a&&a.implments&&a.implments[b]?a:null}
function extend_class(a){var b=function(){};b.prototype=a.prototype;return new b}var dead=false,KEY_LMB=1,KEY_RMB=2,KEY_MMB=3,KEY_TOUCH0=384;function eatEvent(a){a.stopPropagation?(a.stopPropagation(),a.preventDefault()):(a.cancelBup2697le=true,a.returnValue=false)}function keyToChar(a){switch(a){case 8:case 9:case 13:case 27:case 32:return a;case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 45:return a|65536;case 46:return 127}return 0}
function p2699App(){this.graphics=new p2699Graphics(this,p2692);this.input=new p2699Input(this);this.audio=new p2699Audio(this);this.updateRate=this.maxloading=this.loading=0;this.startMillis=(new Date).getTime();this.suspended=false;var a=this,b=p2692;p2694=function(){var c=a.input;b.onkeydown=function(a){c.OnKeyDown(a.keyCode);var b=keyToChar(a.keyCode);b&&c.PutChar(b);(a.keyCode<48||a.keyCode>111&&a.keyCode<122)&&eatEvent(a)};b.onkeyup=function(a){c.OnKeyUp(a.keyCode)};b.onkeypress=
function(a){a.charCode?c.PutChar(a.charCode):a.which&&c.PutChar(a.which)};b.onmousedown=function(a){switch(a.button){case 0:c.OnKeyDown(KEY_LMB);break;case 1:c.OnKeyDown(KEY_MMB);break;case 2:c.OnKeyDown(KEY_RMB)}eatEvent(a)};b.onmouseup=function(a){switch(a.button){case 0:c.OnKeyUp(KEY_LMB);break;case 1:c.OnKeyUp(KEY_MMB);break;case 2:c.OnKeyUp(KEY_RMB)}eatEvent(a)};b.onmouseout=function(a){c.OnKeyUp(KEY_LMB);c.OnKeyUp(KEY_MMB);c.OnKeyUp(KEY_RMB);eatEvent(a)};b.onmousemove=function(a){for(var e=
a.clientX+document.body.scrollLeft,f=a.clientY+document.body.scrollTop,g=b;g;)e-=g.offsetLeft,f-=g.offsetTop,g=g.offsetParent;c.OnMouseMove(e,f);eatEvent(a)};b.onfocus=function(){};b.onblur=function(){};b.ontouchstart=function(a){for(var e=0;e<a.changedTouches.length;++e){for(var f=a.changedTouches[e],g=f.pageX,h=f.pageY,i=b;i;)g-=i.offsetLeft,h-=i.offsetTop,i=i.offsetParent;c.OnTouchStart(f.identifier,g,h)}eatEvent(a)};b.ontouchmove=function(a){for(var e=0;e<a.changedTouches.length;++e){for(var f=
a.changedTouches[e],g=f.pageX,h=f.pageY,i=b;i;)g-=i.offsetLeft,h-=i.offsetTop,i=i.offsetParent;c.OnTouchMove(f.identifier,g,h)}eatEvent(a)};b.ontouchend=function(a){for(var b=0;b<a.changedTouches.length;++b)c.OnTouchEnd(a.changedTouches[b].identifier);eatEvent(a)};window.ondevicemotion=function(a){var b=a.accelerationIncludingGravity.x/9.81,f=a.accelerationIncludingGravity.y/9.81,g,h;switch(window.orientation){case 0:g=+b;h=-f;break;case 180:g=-b;h=+f;break;case 90:g=-f;h=-b;break;case -90:g=+f,h=
+b}c.OnDeviceMotion(g,h,void 0);eatEvent(a)};b.focus();a.InvokeOnCreate();a.InvokeOnRender()}}var p269b=0;p2699App.prototype.SetFrameRate=function(a){function b(){if(c==p269b){for(var a=0;;){f+=e;d.InvokeOnUpdate();if(c!=p269b)return;if(f>(new Date).getTime())break;if(++a==7){f=(new Date).getTime();break}}d.InvokeOnRender();c==p269b&&(a=f-(new Date).getTime(),setTimeout(b,a>0?a:0))}}var c=++p269b;if(a){var d=this,e=1E3/a,f=(new Date).getTime()+e;setTimeout(b,e)}};
p2699App.prototype.IncLoading=function(){++this.loading;if(this.loading>this.maxloading)this.maxloading=this.loading;this.loading==1&&this.SetFrameRate(0)};p2699App.prototype.DecLoading=function(){--this.loading;if(this.loading==0)this.maxloading=0,this.SetFrameRate(this.updateRate)};p2699App.prototype.GetMetaData=function(a,b){return p2698(a,b)};p2699App.prototype.Die=function(a){dead=true;this.audio.OnSuspend();showError(a)};p2699App.prototype.InvokeOnCreate=function(){if(!dead)try{this.OnCreate()}catch(a){this.Die(a)}};
p2699App.prototype.InvokeOnUpdate=function(){if(!dead&&!this.suspended&&this.updateRate&&!this.loading)try{this.input.BeginUpdate(),this.OnUpdate(),this.input.EndUpdate()}catch(a){this.Die(a)}};p2699App.prototype.InvokeOnSuspend=function(){if(!dead&&!this.suspended)try{this.suspended=true,this.OnSuspend(),this.audio.OnSuspend()}catch(a){this.Die(a)}};p2699App.prototype.InvokeOnResume=function(){if(!dead&&this.suspended)try{this.audio.OnResume(),this.OnResume(),this.suspended=false}catch(a){this.Die(a)}};
p2699App.prototype.InvokeOnRender=function(){if(!dead&&!this.suspended)try{this.graphics.BeginRender(),this.loading?this.OnLoading():this.OnRender(),this.graphics.EndRender()}catch(a){this.Die(a)}};p2699App.prototype.GraphicsDevice=function(){return this.graphics};p2699App.prototype.InputDevice=function(){return this.input};p2699App.prototype.AudioDevice=function(){return this.audio};p2699App.prototype.AppTitle=function(){return document.URL};
p2699App.prototype.LoadState=function(){if(document.URL.toLowerCase().substr(0,7)=="file://"&&(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("MSIE")!=-1)){var a=document.cookie.split(";");if(a.length!=1)return"";a=a[0].split("=");return a.length!=2||a[0]!=".mojostate"?"":unescape(a[1])}else if(a=localStorage.getItem(".mojostate@"+document.URL))return a;return""};
p2699App.prototype.SaveState=function(a){if(document.URL.toLowerCase().substr(0,7)=="file://"&&(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("MSIE")!=-1)){var b=new Date;b.setDate(b.getDate()+3650);document.cookie=".mojostate="+escape(a)+"; expires="+b.toUTCString()}else localStorage.setItem(".mojostate@"+document.URL,a)};p2699App.prototype.LoadString=function(a){return loadString(a)};p2699App.prototype.SetUpdateRate=function(a){this.updateRate=a;this.loading||this.SetFrameRate(a)};
p2699App.prototype.MilliSecs=function(){return(new Date).getTime()-this.startMillis|0};p2699App.prototype.Loading=function(){return this.loading};p2699App.prototype.OnCreate=function(){};p2699App.prototype.OnUpdate=function(){};p2699App.prototype.OnSuspend=function(){};p2699App.prototype.OnResume=function(){};p2699App.prototype.OnRender=function(){};p2699App.prototype.OnLoading=function(){};
function p2699Graphics(a,b){this.app=a;this.canvas=b;this.gc=b.getContext("2d");this.tmpCanvas=null;this.g=this.b=this.r=255;this.white=true;this.color="rgb(255,255,255)";this.alpha=1;this.blend="source-over";this.ix=1;this.jx=this.iy=0;this.jy=1;this.ty=this.tx=0;this.tformed=false;this.scissorHeight=this.scissorWidth=this.scissorY=this.scissorX=0;this.clipped=false}p2699Graphics.prototype.BeginRender=function(){this.gc.save()};p2699Graphics.prototype.EndRender=function(){this.gc.restore()};
p2699Graphics.prototype.Width=function(){return this.canvas.width};p2699Graphics.prototype.Height=function(){return this.canvas.height};p2699Graphics.prototype.LoadSurface=function(a){var b=this.app;b.IncLoading();if(a=p2696(a,function(){b.DecLoading()}))return new p2699Surface(a,this);b.DecLoading();return null};p2699Graphics.prototype.SetAlpha=function(a){this.alpha=a;this.gc.globalAlpha=a};
p2699Graphics.prototype.SetColor=function(a,b,c){this.r=a;this.g=b;this.b=c;this.white=a==255&&b==255&&c==255;this.color="rgb("+(a|0)+","+(b|0)+","+(c|0)+")";this.gc.fillStyle=this.color;this.gc.strokeStyle=this.color};p2699Graphics.prototype.SetBlend=function(a){switch(a){case 1:this.blend="lighter";break;default:this.blend="source-over"}this.gc.globalCompositeOperation=this.blend};
p2699Graphics.prototype.SetScissor=function(a,b,c,d){this.scissorX=a;this.scissorY=b;this.scissorWidth=c;this.scissorHeight=d;this.clipped=a!=0||b!=0||c!=this.canvas.width||d!=this.canvas.height;this.gc.restore();this.gc.save();this.clipped&&(this.gc.beginPath(),this.gc.rect(a,b,c,d),this.gc.clip(),this.gc.closePath());this.gc.fillStyle=this.color;this.gc.strokeStyle=this.color;this.tformed&&this.gc.setTransform(this.ix,this.iy,this.jx,this.jy,this.tx,this.ty)};
p2699Graphics.prototype.SetMatrix=function(a,b,c,d,e,f){this.ix=a;this.iy=b;this.jx=c;this.jy=d;this.tx=e;this.ty=f;this.gc.setTransform(a,b,c,d,e,f);this.tformed=a!=1||b!=0||c!=0||d!=1||e!=0||f!=0};
p2699Graphics.prototype.Cls=function(a,b,c){this.tformed&&this.gc.setTransform(1,0,0,1,0,0);this.gc.fillStyle="rgb("+(a|0)+","+(b|0)+","+(c|0)+")";this.gc.globalAlpha=p2697_BEPlayer_Player.m_GetFile().m_getBackgroundA()==0?0:1;this.gc.globalCompositeOperation=p2697_BEPlayer_Player.m_GetFile().m_getBackgroundA()==0?"copy":"source-over";this.gc.fillRect(0,0,this.canvas.width,this.canvas.height);this.gc.fillStyle=this.color;this.gc.globalAlpha=this.alpha;this.gc.globalCompositeOperation=this.blend;this.tformed&&
this.gc.setTransform(this.ix,this.iy,this.jx,this.jy,this.tx,this.ty)};p2699Graphics.prototype.DrawPoint=function(a,b){if(this.tformed){var c=a,a=c*this.ix+b*this.jx+this.tx,b=c*this.iy+b*this.jy+this.ty;this.gc.setTransform(1,0,0,1,0,0);this.gc.fillRect(a,b,1,1);this.gc.setTransform(this.ix,this.iy,this.jx,this.jy,this.tx,this.ty)}else this.gc.fillRect(a,b,1,1)};p2699Graphics.prototype.DrawRect=function(a,b,c,d){c<0&&(a+=c,c=-c);d<0&&(b+=d,d=-d);c<=0||d<=0||this.gc.fillRect(a,b,c,d)};
p2699Graphics.prototype.DrawLine=function(a,b,c,d){if(this.tformed){var e=a*this.ix+b*this.jx+this.tx,a=a*this.iy+b*this.jy+this.ty,b=c*this.ix+d*this.jx+this.tx,c=c*this.iy+d*this.jy+this.ty;this.gc.setTransform(1,0,0,1,0,0);this.gc.beginPath();this.gc.moveTo(e,a);this.gc.lineTo(b,c);this.gc.stroke();this.gc.closePath();this.gc.setTransform(this.ix,this.iy,this.jx,this.jy,this.tx,this.ty)}else this.gc.beginPath(),this.gc.moveTo(a,b),this.gc.lineTo(c,d),this.gc.stroke(),this.gc.closePath()};
p2699Graphics.prototype.DrawOval=function(a,b,c,d){c<0&&(a+=c,c=-c);d<0&&(b+=d,d=-d);c<=0||d<=0||(c/=2,d/=2,this.gc.save(),this.gc.translate(a+c,b+d),this.gc.scale(c,d),this.gc.beginPath(),this.gc.arc(0,0,1,0,Math.PI*2,false),this.gc.fill(),this.gc.closePath(),this.gc.restore())};p2699Graphics.prototype.DrawPoly=function(a){if(!(a.length<6)){this.gc.beginPath();this.gc.moveTo(a[0],a[1]);for(var b=2;b<a.length;b+=2)this.gc.lineTo(a[b],a[b+1]);this.gc.fill();this.gc.closePath()}};
p2699Graphics.prototype.DrawSurface=function(a,b,c){a.image.complete&&(this.white?this.gc.drawImage(a.image,b,c):this.DrawImageTinted(a.image,b,c,0,0,a.swidth,a.sheight))};p2699Graphics.prototype.DrawSurface2=function(a,b,c,d,e,f,g){a.image.complete&&(f<0&&(d+=f,f=-f),g<0&&(e+=g,g=-g),f<=0||g<=0||(this.white?this.gc.drawImage(a.image,d,e,f,g,b,c,f,g):this.DrawImageTinted(a.image,b,c,d,e,f,g)))};
p2699Graphics.prototype.DrawImageTinted=function(a,b,c,d,e,f,g){if(!this.tmpCanvas)this.tmpCanvas=document.createElement("canvas");if(f>this.tmpCanvas.width||g>this.tmpCanvas.height)this.tmpCanvas.width=Math.max(f,this.tmpCanvas.width),this.tmpCanvas.height=Math.max(g,this.tmpCanvas.height);var h=this.tmpCanvas.getContext("2d");h.globalCompositeOperation="copy";h.drawImage(a,d,e,f,g,0,0,f,g);var a=h.getImageData(0,0,f,g),d=a.data,e=f*g*4,i;for(i=0;i<e;i+=4)d[i]=d[i]*this.r/255,d[i+1]=d[i+1]*this.g/
255,d[i+2]=d[i+2]*this.b/255;h.putImageData(a,0,0);this.gc.drawImage(this.tmpCanvas,0,0,f,g,b,c,f,g)};function p2699Surface(a,b){this.image=a;this.graphics=b;this.swidth=a.meta_width;this.sheight=a.meta_height}p2699Surface.prototype.Discard=function(){if(this.image)this.image=null};p2699Surface.prototype.Width=function(){return this.swidth};p2699Surface.prototype.Height=function(){return this.sheight};p2699Surface.prototype.Loaded=function(){return this.image.complete};
function p2699Input(a){this.app=a;this.keyStates=Array(512);this.charQueue=Array(32);this.joyZ=this.joyY=this.joyX=this.mouseY=this.mouseX=this.charGet=this.charPut=0;this.touchIds=Array(32);this.touchXs=Array(32);this.touchYs=Array(32);for(a=this.accelZ=this.accelY=this.accelX=0;a<512;++a)this.keyStates[a]=0;for(a=0;a<32;++a)this.touchIds[a]=-1,this.touchXs[a]=0,this.touchYs[a]=0}p2699Input.prototype.BeginUpdate=function(){};
p2699Input.prototype.EndUpdate=function(){for(var a=0;a<512;++a)this.keyStates[a]&=256;this.charPut=this.charGet=0};p2699Input.prototype.OnKeyDown=function(a){(this.keyStates[a]&256)==0&&(this.keyStates[a]|=256,++this.keyStates[a],a==KEY_LMB?(this.keyStates[KEY_TOUCH0]|=256,++this.keyStates[KEY_TOUCH0]):a==KEY_TOUCH0&&(this.keyStates[KEY_LMB]|=256,++this.keyStates[KEY_LMB]))};
p2699Input.prototype.OnKeyUp=function(a){this.keyStates[a]&=255;a==KEY_LMB?this.keyStates[KEY_TOUCH0]&=255:a==KEY_TOUCH0&&(this.keyStates[KEY_LMB]&=255)};p2699Input.prototype.PutChar=function(a){this.charPut-this.charGet<32&&(this.charQueue[this.charPut&31]=a,this.charPut+=1)};p2699Input.prototype.OnMouseMove=function(a,b){this.mouseX=a;this.mouseY=b;this.touchXs[0]=a;this.touchYs[0]=b};
p2699Input.prototype.OnTouchStart=function(a,b,c){for(var d=0;d<32;++d)if(this.touchIds[d]==-1){this.touchIds[d]=a;this.touchXs[d]=b;this.touchYs[d]=c;if(d==0)this.mouseX=b,this.mouseY=c;this.OnKeyDown(KEY_TOUCH0+d);break}};p2699Input.prototype.OnTouchMove=function(a,b,c){for(var d=0;d<32;++d)if(this.touchIds[d]==a){this.touchXs[d]=b;this.touchYs[d]=c;if(d==0)this.mouseX=b,this.mouseY=c;break}};
p2699Input.prototype.OnTouchEnd=function(a){for(var b=0;b<32;++b)if(this.touchIds[b]==a){this.touchIds[b]=-1;this.OnKeyUp(KEY_TOUCH0+b);break}};p2699Input.prototype.OnDeviceMotion=function(a,b,c){this.accelX=a;this.accelY=b;this.accelZ=c};p2699Input.prototype.SetKeyboardEnabled=function(){return 0};p2699Input.prototype.KeyDown=function(a){return a>0&&a<512?this.keyStates[a]>>8:0};p2699Input.prototype.KeyHit=function(a){return a>0&&a<512?this.keyStates[a]&255:0};
p2699Input.prototype.GetChar=function(){if(this.charPut!=this.charGet){var a=this.charQueue[this.charGet&31];this.charGet+=1;return a}return 0};p2699Input.prototype.MouseX=function(){return this.mouseX};p2699Input.prototype.MouseY=function(){return this.mouseY};p2699Input.prototype.JoyX=function(){return this.joyX};p2699Input.prototype.JoyY=function(){return this.joyY};p2699Input.prototype.JoyZ=function(){return this.joyZ};p2699Input.prototype.TouchX=function(a){return this.touchXs[a]};
p2699Input.prototype.TouchY=function(a){return this.touchYs[a]};p2699Input.prototype.AccelX=function(){return this.accelX};p2699Input.prototype.AccelY=function(){return this.accelY};p2699Input.prototype.AccelZ=function(){return this.accelZ};function p2699Channel(){this.sample=this.audio=null;this.volume=1;this.pan=0;this.rate=1}function p2699Audio(a){this.app=a;this.okay=typeof Audio!="undefined";this.nextchan=0;this.music=null;this.channels=Array(33);for(a=0;a<33;++a)this.channels[a]=new p2699Channel}
p2699Audio.prototype.OnSuspend=function(){var a;for(a=0;a<33;++a){var b=this.channels[a];b.audio&&b.audio.pause()}};p2699Audio.prototype.OnResume=function(){var a;for(a=0;a<33;++a){var b=this.channels[a];b.audio&&b.audio.play()}};p2699Audio.prototype.LoadSample=function(a){return(a=loadAudio(a))?new p2699Sample(a):null};
p2699Audio.prototype.PlaySample=function(a,b,c){if(this.okay)if(b=this.channels[b],b.sample==a&&b.audio){b.audio.loop=(c&1)!=0;b.audio.volume=b.volume;try{b.audio.currentTime=0}catch(d){}b.audio.play()}else{b.audio&&b.audio.pause();var e=a.AllocAudio();if(e){for(var f=0;f<33;++f)if(this.channels[f].audio==e){this.channels[f].audio=null;break}e.loop=(c&1)!=0;e.volume=b.volume;e.play()}b.audio=e;b.sample=a}};p2699Audio.prototype.StopChannel=function(a){a=this.channels[a];a.audio&&a.audio.pause()};
p2699Audio.prototype.ChannelState=function(a){a=this.channels[a];return a.audio&&!a.audio.paused&&!a.audio.ended?1:0};p2699Audio.prototype.SetVolume=function(a,b){var c=this.channels[a];if(c.audio)c.audio.volume=b;c.volume=b};p2699Audio.prototype.SetPan=function(a,b){this.channels[a].pan=b};p2699Audio.prototype.SetRate=function(a,b){this.channels[a].rate=b};p2699Audio.prototype.PlayMusic=function(a,b){this.StopMusic();(this.music=this.LoadSample(a))&&this.PlaySample(this.music,32,b)};
p2699Audio.prototype.StopMusic=function(){this.StopChannel(32);if(this.music)this.music.Discard(),this.music=null};p2699Audio.prototype.MusicState=function(){return this.ChannelState(32)};p2699Audio.prototype.SetMusicVolume=function(a){this.SetVolume(32,a)};function p2699Sample(a){this.audio=a;this.insts=Array(8);this.insts[0]=a}p2699Sample.prototype.Discard=function(){if(this.audio){this.audio=null;for(var a=0;a<8;++a)this.insts[a]=null}};
p2699Sample.prototype.AllocAudio=function(){for(var a=0;a<8;++a){var b=this.insts[a];if(b)if(b.paused){if(b.currentTime==0)return b;b.currentTime=0}else b.ended&&b.pause();else return b=new Audio(this.audio.src),this.insts[a]=b}return null};function p2697_app_App(){Object.call(this)}function p2697_app_App_new(){p2697_app_device=p2697_app_AppDevice_new.call(new p2697_app_AppDevice,this);return this}p2697_app_App.prototype.m_OnCreate=function(){return 0};p2697_app_App.prototype.m_OnUpdate=function(){return 0};
p2697_app_App.prototype.m_OnSuspend=function(){return 0};p2697_app_App.prototype.m_OnResume=function(){return 0};p2697_app_App.prototype.m_OnRender=function(){return 0};p2697_app_App.prototype.m_OnLoading=function(){return 0};
function p2697_BEPlayer_BEPlayer(){p2697_app_App.call(this);this.f__file=this.f__particles=this.f__previousSlide=this.f__currentSlide=null;this.f__backgroundB=this.f__backgroundG=this.f__backgroundR=0;this.f__startTime=this.f__currentSlideIndex=-1;this.f__previousSlideTime=this.f__slideTime=0;this.f__clickedForTransition=this.f__handCursor=this.f__lastMouseClick=this.f__mouseClick=this.f__clickOnObject=false;this.f__clickedForTransitionNextSlide=this.f__timeOfClick=-1;this.f__previousOnTop=true}
p2697_BEPlayer_BEPlayer.prototype=extend_class(p2697_app_App);function p2697_BEPlayer_BEPlayer_new(){p2697_app_App_new.call(this);return this}p2697_BEPlayer_BEPlayer.prototype.m_GetFile=function(){return this.f__file};p2697_BEPlayer_BEPlayer.prototype.m_myMillisecs=function(){return p2697_app_Millisecs()};
p2697_BEPlayer_BEPlayer.prototype.m_setCurrentSlide=function(a){a<0&&(a=0);a>=this.f__file.f__slides.length&&(a=this.f__file.m_getLoop()==true?0:this.f__file.f__slides.length-1);if(a==this.f__currentSlideIndex){if(this.f__file.f__slides.length==1)this.f__slideTime=this.m_myMillisecs()-this.f__startTime}else{if(this.f__currentSlide!=null)this.f__previousSlide=this.f__currentSlide;this.f__currentSlideIndex=a;this.f__currentSlide=this.f__file.f__slides[this.f__currentSlideIndex];this.f__previousSlideTime=
this.f__slideTime;this.f__slideTime=this.m_myMillisecs()-this.f__startTime;if(this.f__previousSlide!=null)this.f__currentSlide.f__startTransition=this.f__previousSlide.f__endTransition,this.f__currentSlide.f__startTransitionId=this.f__previousSlide.f__endTransitionId}};p2697_BEPlayer_BEPlayer.prototype.m_play=function(){this.m_setCurrentSlide(0)};
p2697_BEPlayer_BEPlayer.prototype.m_OnCreate=function(){p2697_graphics_Image_DefaultFlags=1;this.f__previousSlide=this.f__currentSlide=null;this.f__particles=p2697_Particles_ParticleManager_new.call(new p2697_Particles_ParticleManager);p2697_BEPlayer__stampTrial=p2697_graphics_LoadImage("stamp.png",1,p2697_graphics_Image_DefaultFlags);this.f__file=p2697_SEFile_SEFile_new.call(new p2697_SEFile_SEFile);this.f__file.m_Load3();this.f__backgroundR=this.f__file.m_getBackgroundR();this.f__backgroundG=this.f__file.m_getBackgroundG();
this.f__backgroundB=this.f__file.m_getBackgroundB();this.m_GetFile();this.f__file.m_getBackgroundA();p2697_app_SetUpdateRate(this.f__file.m_getFps());this.m_play();return 0};p2697_BEPlayer_BEPlayer.prototype.m_OpenRealUrl=function(a,b){a==""?window.clickTag.apply(this,null):b?window.open(a):window.location=a};p2697_BEPlayer_BEPlayer.prototype.m_CallJavascript=function(a,b){for(var c=a.split("."),d=c.pop(),e=0;e<c.length;e++)window=window[c[e]];return window[d].apply(this,b)};
p2697_BEPlayer_BEPlayer.prototype.m_transitionToSlide=function(a){if(this.f__clickedForTransition!=true)this.f__timeOfClick=this.m_myMillisecs()-this.f__startTime,this.f__clickedForTransition=true,this.f__clickedForTransitionNextSlide=a};
p2697_BEPlayer_BEPlayer.prototype.m_OpenUrl=function(a,b){if(b==1)this.m_OpenRealUrl(a,true);else if(b==2)this.m_OpenRealUrl(a,false);else if(b==3){for(var c=a.indexOf("(",0),d=a.lastIndexOf(")"),e=a.slice(0,c),c=a.slice(c+1,d),d=[],f=false;!f;){var g=c.indexOf('"',0),h=c.indexOf("'",0);g==-1&&(g=h);g>h&&g!=-1&&h!=-1&&(g=h);h=c.indexOf(",",0);if((g<h||h==-1)&&g!=-1){var h=c.indexOf('"',g+1),i=c.indexOf("'",g+1);h==-1&&(h=i);h!=-1&&i!=-1&&i<h&&(h=i);d[d.length]=c.slice(g+1,h);c=c.slice(h+1);g=c.indexOf(",",
0);g!=-1?c=c.slice(g+1):f=true}else h!=-1?(d[d.length]=c.slice(0,h),c=c.slice(h+1)):(d[d.length]=c,f=true)}this.m_CallJavascript(e,d)}else b==4&&this.m_transitionToSlide(parseInt(a,10)-1)};p2697_BEPlayer_BEPlayer.prototype.m_CallMSAdvertisingFunction=function(){};function setCursorByID(a,b){var c;if(document.getElementById&&(c=document.getElementById(a))&&c.style)c.style.cursor=b}
p2697_BEPlayer_BEPlayer.prototype.m_SetHandCursor=function(a){a?setCursorByID("double-craft","pointer"):setCursorByID("double-craft","auto")};
p2697_BEPlayer_BEPlayer.prototype.m_OnRender=function(){if(this.f__startTime==-1)this.f__startTime=this.m_myMillisecs();var a=p2697_app_Millisecs()-this.f__startTime,b=a;this.f__mouseClick=this.f__clickOnObject=false;if(this.f__lastMouseClick==false&&p2697_input_MouseDown(0)==1)this.f__lastMouseClick=this.f__mouseClick=true;if(p2697_input_MouseDown(0)==0)this.f__lastMouseClick=false;p2697_graphics_Cls(this.f__backgroundR,this.f__backgroundG,this.f__backgroundB);this.f__handCursor=false;this.f__particles.m_PreUpdate();
this.f__currentSlide!=null&&this.f__currentSlide.f__duration>0&&a-this.f__slideTime>this.f__currentSlide.f__duration&&this.m_setCurrentSlide(this.f__currentSlideIndex+1);if(this.f__clickedForTransition==true&&a-this.f__timeOfClick>this.f__currentSlide.f__endTransition.f__endDuration)this.m_setCurrentSlide(this.f__clickedForTransitionNextSlide),this.f__clickedForTransition=false;b=a-this.f__slideTime;this.f__previousOnTop=this.f__currentSlide.f__startTransition.m_GetPreviousOnTop(b);this.f__previousOnTop==
false&&this.f__previousSlide!=null&&a-this.f__slideTime<this.f__currentSlide.f__startTransition.f__startDuration&&this.f__previousSlide.m_UpdatePrevious(a-this.f__previousSlideTime,a-this.f__slideTime,this.f__currentSlide.f__startTransition);this.f__currentSlide!=null&&this.f__currentSlide.m_Update(b);this.f__previousOnTop==true&&this.f__previousSlide!=null&&a-this.f__slideTime<this.f__currentSlide.f__startTransition.f__startDuration&&this.f__previousSlide.m_UpdatePrevious(a-this.f__previousSlideTime,
a-this.f__slideTime,this.f__currentSlide.f__startTransition);this.f__particles.m_Update2();if(this.f__file.m_getClickTarget()>0)this.f__handCursor=true,this.f__mouseClick==true&&!this.f__clickOnObject&&(this.f__file.m_getClickTarget()==5?this.m_OpenUrl("",1):this.f__file.m_getClickTarget()==6?this.m_CallMSAdvertisingFunction():this.m_OpenUrl(this.f__file.m_getClickUrl(),this.f__file.m_getClickTarget()));this.m_SetHandCursor(this.f__handCursor);p2697_graphics_DrawText("Time:"+String(a)+" [ms] Current Slide:"+
String(this.f__currentSlideIndex),0,0,0,0);p2697_graphics_DrawText("Debug: "+p2697_BEPlayer_DebugString,0,12,0,0);p2697_graphics_DrawText("Error: "+p2697_BEPlayer_ErrorString,0,24,0,0);p2697_graphics_DrawImage(p2697_BEPlayer__stampTrial,this.f__file.f__width-(p2697_BEPlayer__stampTrial.m_Width()/2|0),this.f__file.f__height-(p2697_BEPlayer__stampTrial.m_Height()/2|0)+0.5,0);return 0};function p2697_app_AppDevice(){p2699App.call(this);this.f_app=null;this.f_updateRate=0}p2697_app_AppDevice.prototype=extend_class(p2699App);
function p2697_app_AppDevice_new(a){this.f_app=a;p2697_graphics_SetGraphicsContext(p2697_graphics_GraphicsContext_new.call(new p2697_graphics_GraphicsContext,this.GraphicsDevice()));p2697_input_SetInputDevice(this.InputDevice());p2697_audio_SetAudioDevice(this.AudioDevice());return this}function p2697_app_AppDevice_new2(){return this}p2697_app_AppDevice.prototype.OnCreate=function(){p2697_graphics_SetFont(null,32);return this.f_app.m_OnCreate()};p2697_app_AppDevice.prototype.OnUpdate=function(){return this.f_app.m_OnUpdate()};
p2697_app_AppDevice.prototype.OnSuspend=function(){return this.f_app.m_OnSuspend()};p2697_app_AppDevice.prototype.OnResume=function(){return this.f_app.m_OnResume()};p2697_app_AppDevice.prototype.OnRender=function(){p2697_graphics_BeginRender();var a=this.f_app.m_OnRender();p2697_graphics_EndRender();return a};p2697_app_AppDevice.prototype.OnLoading=function(){p2697_graphics_BeginRender();var a=this.f_app.m_OnLoading();p2697_graphics_EndRender();return a};
p2697_app_AppDevice.prototype.SetUpdateRate=function(a){p2699App.prototype.SetUpdateRate.call(this,a);this.f_updateRate=a;return 0};
function p2697_graphics_GraphicsContext(){Object.call(this);this.f_font=this.f_defaultFont=this.f_device=null;this.f_matrixSp=this.f_firstChar=0;this.f_ix=1;this.f_jx=this.f_iy=0;this.f_jy=1;this.f_scissor_height=this.f_scissor_width=this.f_scissor_y=this.f_scissor_x=this.f_blend=this.f_alpha=this.f_color_b=this.f_color_g=this.f_color_r=this.f_matDirty=this.f_tformed=this.f_ty=this.f_tx=0;this.f_matrixStack=new_number_array(192)}
function p2697_graphics_GraphicsContext_new(a){this.f_device=a;return this}function p2697_graphics_GraphicsContext_new2(){return this}var p2697_graphics_context;function p2697_graphics_SetGraphicsContext(a){p2697_graphics_context=a;return 0}var p2697_input_device;function p2697_input_SetInputDevice(a){p2697_input_device=a;return 0}var p2697_audio_device;function p2697_audio_SetAudioDevice(a){p2697_audio_device=a;return 0}var p2697_app_device,p2697_BEPlayer_Player;
function p2697Main(){p2697_BEPlayer_Player=p2697_BEPlayer_BEPlayer_new.call(new p2697_BEPlayer_BEPlayer);return 0}function p2697_graphics_Image(){Object.call(this);this.f_surface=null;this.f_height=this.f_width=0;this.f_frames=[];this.f_ty=this.f_tx=this.f_flags=0;this.f_source=null}var p2697_graphics_Image_DefaultFlags;function p2697_graphics_Image_new(){return this}p2697_graphics_Image.prototype.m_SetHandle=function(a,b){this.f_tx=a;this.f_ty=b;this.f_flags&=-2;return 0};
p2697_graphics_Image.prototype.m_ApplyFlags=function(a){this.f_flags=a;if((this.f_flags&2)!=0){for(var a=this.f_frames,b=0;b<a.length;){var c=a[b];b+=1;c.f_x+=1}this.f_width-=2}if((this.f_flags&4)!=0){a=this.f_frames;for(b=0;b<a.length;)c=a[b],b+=1,c.f_y+=1;this.f_height-=2}(this.f_flags&1)!=0&&this.m_SetHandle(this.f_width/2,this.f_height/2);this.f_frames.length==1&&this.f_frames[0].f_x==0&&this.f_frames[0].f_y==0&&this.f_width==this.f_surface.Width()&&this.f_height==this.f_surface.Height()&&(this.f_flags|=
65536);return 0};p2697_graphics_Image.prototype.m_Load=function(a,b,c){this.f_surface=p2697_graphics_context.f_device.LoadSurface(a);if(this.f_surface==null)return null;this.f_width=this.f_surface.Width()/b|0;this.f_height=this.f_surface.Height();this.f_frames=new_object_array(b);for(a=0;a<b;a+=1)this.f_frames[a]=p2697_graphics_Frame_new.call(new p2697_graphics_Frame,a*this.f_width,0);this.m_ApplyFlags(c);return this};
p2697_graphics_Image.prototype.m_Grab=function(a,b,c,d,e,f,g){this.f_source=g;this.f_surface=g.f_surface;this.f_width=c;this.f_height=d;this.f_frames=new_object_array(e);a+=g.f_frames[0].f_x;b+=g.f_frames[0].f_y;for(c=0;c<e;c+=1){if(a+this.f_width>g.f_width)a=g.f_frames[0].f_x,b+=this.f_height;(a+this.f_width>g.f_width||b+this.f_height>g.f_height)&&error("Image frame outside surface");this.f_frames[c]=p2697_graphics_Frame_new.call(new p2697_graphics_Frame,a,b);a+=this.f_width}this.m_ApplyFlags(f);return this};
p2697_graphics_Image.prototype.m_GrabImage=function(a,b,c,d,e,f){return this.f_frames.length!=1?null:p2697_graphics_Image_new.call(new p2697_graphics_Image).m_Grab(a,b,c,d,e,f,this)};p2697_graphics_Image.prototype.m_Width=function(){return this.f_width};p2697_graphics_Image.prototype.m_Height=function(){return this.f_height};p2697_graphics_Image.prototype.m_Frames=function(){return this.f_frames.length};function p2697_graphics_Frame(){Object.call(this);this.f_y=this.f_x=0}
function p2697_graphics_Frame_new(a,b){this.f_x=a;this.f_y=b;return this}function p2697_graphics_Frame_new2(){return this}function p2697_graphics_LoadImage(a,b,c){return p2697_graphics_Image_new.call(new p2697_graphics_Image).m_Load(a,b,c)}function p2697_graphics_LoadImage2(a,b,c,d,e){a=p2697_graphics_Image_new.call(new p2697_graphics_Image).m_Load(a,1,0);return a!=null?a.m_GrabImage(0,0,b,c,d,e):null}
function p2697_graphics_SetFont(a,b){if(a==null){if(p2697_graphics_context.f_defaultFont==null)p2697_graphics_context.f_defaultFont=p2697_graphics_LoadImage("mojo_font.png",96,2);a=p2697_graphics_context.f_defaultFont;b=32}p2697_graphics_context.f_font=a;p2697_graphics_context.f_firstChar=b;return 0}var p2697_graphics_renderDevice;
function p2697_graphics_SetMatrix(a,b,c,d,e,f){p2697_graphics_context.f_ix=a;p2697_graphics_context.f_iy=b;p2697_graphics_context.f_jx=c;p2697_graphics_context.f_jy=d;p2697_graphics_context.f_tx=e;p2697_graphics_context.f_ty=f;p2697_graphics_context.f_tformed=a!=1||b!=0||c!=0||d!=1||e!=0||f!=0?1:0;p2697_graphics_context.f_matDirty=1;return 0}function p2697_graphics_SetMatrix2(a){p2697_graphics_SetMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);return 0}
function p2697_graphics_SetColor(a,b,c){p2697_graphics_context.f_color_r=a;p2697_graphics_context.f_color_g=b;p2697_graphics_context.f_color_b=c;p2697_graphics_context.f_device.SetColor(a,b,c);return 0}function p2697_graphics_SetAlpha(a){p2697_graphics_context.f_alpha=a;p2697_graphics_context.f_device.SetAlpha(a);return 0}function p2697_graphics_SetBlend(a){p2697_graphics_context.f_blend=a;p2697_graphics_context.f_device.SetBlend(a);return 0}function p2697_graphics_DeviceWidth(){return p2697_graphics_context.f_device.Width()}
function p2697_graphics_DeviceHeight(){return p2697_graphics_context.f_device.Height()}function p2697_graphics_SetScissor(a,b,c,d){p2697_graphics_context.f_scissor_x=a;p2697_graphics_context.f_scissor_y=b;p2697_graphics_context.f_scissor_width=c;p2697_graphics_context.f_scissor_height=d;p2697_graphics_context.f_device.SetScissor(a|0,b|0,c|0,d|0);return 0}
function p2697_graphics_BeginRender(){p2697_graphics_renderDevice=p2697_graphics_context.f_device;p2697_graphics_context.f_matrixSp=0;p2697_graphics_SetMatrix(1,0,0,1,0,0);p2697_graphics_SetColor(255,255,255);p2697_graphics_SetAlpha(1);p2697_graphics_SetBlend(0);p2697_graphics_SetScissor(0,0,p2697_graphics_DeviceWidth(),p2697_graphics_DeviceHeight());return 0}function p2697_graphics_EndRender(){p2697_graphics_renderDevice=null;return 0}
function p2697_SESlide_SESlide(){Object.call(this);this.f__keyTransition=this.f__timeTransition=this.f__duration=this.f__endTransitionId=this.f__startTransitionId=this.f__backgroundId=this.f__id=0;this.f__background=this.f__endTransition=this.f__startTransition=null}function p2697_SESlide_SESlide_new(){return this}
p2697_SESlide_SESlide.prototype.m_Load2=function(a,b){this.f__id=parseInt(a[b+0],10);this.f__backgroundId=parseInt(a[b+1],10);this.f__startTransitionId=parseInt(a[b+2],10);this.f__endTransitionId=parseInt(a[b+3],10);this.f__duration=parseInt(a[b+4],10);this.f__timeTransition=parseInt(a[b+5],10);this.f__keyTransition=parseInt(a[b+6],10);for(var c=0;c<=p2697_BEPlayer_Player.f__file.f__transitions.length-1;c+=1){if(p2697_BEPlayer_Player.f__file.f__transitions[c].f__id==this.f__startTransitionId)this.f__startTransition=
p2697_BEPlayer_Player.f__file.f__transitions[c];if(p2697_BEPlayer_Player.f__file.f__transitions[c].f__id==this.f__endTransitionId)this.f__endTransition=p2697_BEPlayer_Player.f__file.f__transitions[c]}for(c=0;c<=p2697_BEPlayer_Player.f__file.f__backgrounds.length-1;c+=1)if(p2697_BEPlayer_Player.f__file.f__backgrounds[c].f__id==this.f__backgroundId)this.f__background=p2697_BEPlayer_Player.f__file.f__backgrounds[c];return b+7};
p2697_SESlide_SESlide.prototype.m_UpdatePrevious=function(a,b,c){p2697_graphics_PushMatrix();c.m_UpdatePrevious2(b);p2697_graphics_SetScissor(0,0,p2697_BEPlayer_Player.f__file.m_getWidth(),p2697_BEPlayer_Player.f__file.m_getHeight());this.f__background.m_Update3(a,c.f__alpha);for(b=0;b<=p2697_BEPlayer_Player.f__file.f__objects.length-1;b+=1)if(p2697_BEPlayer_Player.f__file.f__objects[b].f__slideId==this.f__id&&a>=p2697_BEPlayer_Player.f__file.f__objects[b].f__startOffset&&(p2697_BEPlayer_Player.f__file.f__objects[b].f__duration==
0||a<p2697_BEPlayer_Player.f__file.f__objects[b].f__startOffset+p2697_BEPlayer_Player.f__file.f__objects[b].f__duration+p2697_BEPlayer_Player.f__file.f__objects[b].f__endEffect.f__duration))p2697_BEPlayer_Player.f__file.f__objects[b].f__alphaTransition=c.f__alpha,p2697_BEPlayer_Player.f__file.f__objects[b].m_Update(a-p2697_BEPlayer_Player.f__file.f__objects[b].f__startOffset);p2697_graphics_PopMatrix()};
p2697_SESlide_SESlide.prototype.m_Update=function(a){p2697_graphics_PushMatrix();p2697_graphics_SetScissor(0,0,p2697_BEPlayer_Player.f__file.m_getWidth(),p2697_BEPlayer_Player.f__file.m_getHeight());var b=1;p2697_BEPlayer_DebugString="";if(a<this.f__startTransition.f__startDuration)this.f__startTransition.m_Update4(a,true),b=this.f__startTransition.f__alpha,p2697_BEPlayer_DebugString="start tr";else{if(a>this.f__duration-this.f__endTransition.f__endDuration)this.f__endTransition.m_Update4(a-(this.f__duration-this.f__endTransition.f__endDuration),
false),b=this.f__endTransition.f__alpha;if(p2697_BEPlayer_Player.f__clickedForTransition==true)this.f__endTransition.m_Update4(a+p2697_BEPlayer_Player.f__slideTime-p2697_BEPlayer_Player.f__timeOfClick,false),b=this.f__endTransition.f__alpha}this.f__background.m_Update3(a,b);for(var c=0;c<=p2697_BEPlayer_Player.f__file.f__objects.length-1;c+=1)if(p2697_BEPlayer_Player.f__file.f__objects[c].f__slideId==this.f__id&&a>=p2697_BEPlayer_Player.f__file.f__objects[c].f__startOffset&&(p2697_BEPlayer_Player.f__file.f__objects[c].f__duration==
0||a<p2697_BEPlayer_Player.f__file.f__objects[c].f__startOffset+p2697_BEPlayer_Player.f__file.f__objects[c].f__duration+p2697_BEPlayer_Player.f__file.f__objects[c].f__endEffect.f__duration))p2697_BEPlayer_Player.f__file.f__objects[c].f__alphaTransition=b,p2697_BEPlayer_Player.f__file.f__objects[c].m_Update(a-p2697_BEPlayer_Player.f__file.f__objects[c].f__startOffset);p2697_graphics_PopMatrix()};function p2697_Particles_ParticleManager(){Object.call(this);this.f__pe=[]}
function p2697_Particles_ParticleManager_new(){return this}p2697_Particles_ParticleManager.prototype.m_PreUpdate=function(){for(var a=this.f__pe,b=0;b<a.length;){var c=a[b];b+=1;c.f__flagUpdate=false}};p2697_Particles_ParticleManager.prototype.m_Update2=function(){for(var a=this.f__pe,b=0;b<a.length;){var c=a[b];b+=1;c.f__slideIndex==p2697_BEPlayer_Player.f__currentSlideIndex&&c.m_Update2()}};
p2697_Particles_ParticleManager.prototype.m_Add=function(a,b){a.f__slideIndex=b;var c=this.f__pe.length;resize_object_array(this.f__pe,c+1);this.f__pe[c]=a};var p2697_BEPlayer__stampTrial;function p2697_SEFile_SEFile(){Object.call(this);this.f__dataString="";this.f__data=[];this.f__height=this.f__width=0;this.f__objects=[];this.f__backgrounds=[];this.f__transitions=[];this.f__slides=[]}function p2697_SEFile_SEFile_new(){return this}p2697_SEFile_SEFile.prototype.p2691=function(){return"True|800|255|30||0|0|0|0|255|O|1|0|5|0|8000|1|255|255|255|100|2000|1|255|255|255|100|2000|t1.png<][>0<][>0<][>1<][>31<][>|1000|595|185|0|255|255|255|100|100|0|0|0||O|2|0|5|0|3000|511|255|255|255|100|100|512|255|255|255|100|100|t2.png<][>0<][>0<][>1<][>27<][>|1000|107|212|0|255|255|255|100|100|1|0|0||O|3|0|5|0|3000|511|255|255|255|100|100|512|255|255|255|100|100|t3.png<][>0<][>0<][>1<][>27<][>|1000|246|212|0|255|255|255|100|100|2|0|1|http://double-craft.tk/|O|5|0|5|5000|3000|511|255|255|255|100|100|512|255|255|255|100|100|t5.png<][>0<][>0<][>1<][>27<][>|1000|244|213|0|255|255|255|100|100|4|0|0||O|6|0|5|5000|3000|511|255|255|255|100|100|514|255|255|255|100|100|t6.png<][>0<][>0<][>1<][>27<][>|1000|114|212|0|255|255|255|100|100|5|0|0||O|7|0|5|10000|2000|400|255|255|255|100|4000|401|255|255|255|100|4000|t7.png<][>0<][>0<][>1<][>36<][>|1000|301|179|0|255|255|255|100|100|6|0|0||B|0|0|255<][>255<][>255<][>1<][>double craft_m.jpg<][>0<][>0<][>0<][>0<][>0<][>0<][>0<][>255<][>255<][>255<][>1<][>0<][>0<][>5<][>0<][>0<][>0<][>|T|0|0||0|True|T|1|0||0|False|S|0|0|0|1|18000|True|False"};
p2697_SEFile_SEFile.prototype.m_getWidth=function(){return this.f__width};p2697_SEFile_SEFile.prototype.m_getHeight=function(){return this.f__height};
p2697_SEFile_SEFile.prototype.m_Load3=function(){this.f__dataString=this.p2691();this.f__data=this.f__dataString.split("|");this.f__width=parseInt(this.f__data[1],10);this.f__height=parseInt(this.f__data[2],10);for(var a=10;a<this.f__data.length-1;){var b=this.f__data[a];a+=1;if(b=="O")parseInt(this.f__data[a+2],10),b=p2697_SEObject_SEObject_new.call(new p2697_SEObject_SEObject),a=b.m_Load2(this.f__data,a),b.f__startEffect.m_Init(),b.f__endEffect.m_Init(),this.f__objects=resize_object_array(this.f__objects,
this.f__objects.length+1),this.f__objects[this.f__objects.length-1]=b;else if(b=="B")b=p2697_SEBackground_SEBackground_new.call(new p2697_SEBackground_SEBackground),a=b.m_Load2(this.f__data,a),this.f__backgrounds=resize_object_array(this.f__backgrounds,this.f__backgrounds.length+1),this.f__backgrounds[this.f__backgrounds.length-1]=b;else if(b=="T")b=p2697_SETransition_SETransition_CreateTransition(this.f__data,a),a=b.m_Load2(this.f__data,a),this.f__transitions=resize_object_array(this.f__transitions,this.f__transitions.length+
1),this.f__transitions[this.f__transitions.length-1]=b;else if(b=="S")b=p2697_SESlide_SESlide_new.call(new p2697_SESlide_SESlide),a=b.m_Load2(this.f__data,a),this.f__slides=resize_object_array(this.f__slides,this.f__slides.length+1),this.f__slides[this.f__slides.length-1]=b}};p2697_SEFile_SEFile.prototype.m_getBackgroundR=function(){return parseInt(this.f__data[6],10)};p2697_SEFile_SEFile.prototype.m_getBackgroundG=function(){return parseInt(this.f__data[7],10)};
p2697_SEFile_SEFile.prototype.m_getBackgroundB=function(){return parseInt(this.f__data[8],10)};p2697_SEFile_SEFile.prototype.m_getBackgroundA=function(){return parseInt(this.f__data[9],10)};p2697_SEFile_SEFile.prototype.m_getFps=function(){return parseInt(this.f__data[3],10)};p2697_SEFile_SEFile.prototype.m_getLoop=function(){return this.f__data[0]=="False"?false:true};p2697_SEFile_SEFile.prototype.m_getClickTarget=function(){return parseInt(this.f__data[5],10)};p2697_SEFile_SEFile.prototype.m_getClickUrl=function(){return this.f__data[4]};
function p2697_SEBase_SEBase(){Object.call(this);this.f__id=0;this.f__parameters=""}function p2697_SEBase_SEBase_new(){return this}p2697_SEBase_SEBase.prototype.m_getParamString=function(){var a=this.f__parameters.indexOf("<][>",0);if(a==-1)return this.f__parameters;else{var b=this.f__parameters.slice(0,a);this.f__parameters=this.f__parameters.slice(a+4);return b}};p2697_SEBase_SEBase.prototype.m_getParamInt=function(){return parseInt(this.m_getParamString(),10)};
p2697_SEBase_SEBase.prototype.m_getParamBool=function(){return this.m_getParamInt()==1?true:false};
function p2697_SEObject_SEObject(){p2697_SEBase_SEBase.call(this);this.f__endEffectId=this.f__startEffectId=this.f__duration=this.f__startOffset=this.f__typeId=this.f__slideId=0;this.f__endEffect=this.f__startEffect=null;this.f__animEffectId=this.f__y=this.f__x=this.f__scale=0;this.f__animEffect=null;this.f__clickTarget=this.f__angle=this.f__zOrder=0;this.f__imageFilename=this.f__clickUrl="";this.f__reflexion=this.f__shadow=0;this.f__image=this.f__imageShadow=null;this.f__height=this.f__width=0;this.f__opacity=
1;this.f__nLines=0;this.f__heights=[];this.f__scaleEffectsY=this.f__scaleEffectsX=this.f__alpha=this.f__alphaTransition=1;this.f__rectH2=this.f__rectW2=this.f__rectY2=this.f__rectX2=this.f__rectYd2=this.f__rectXd2=this.f__rectH1=this.f__rectW1=this.f__rectY1=this.f__rectX1=this.f__rectNumber=this.f__effectAngle=this.f__effectY=this.f__effectX=0}p2697_SEObject_SEObject.prototype=extend_class(p2697_SEBase_SEBase);function p2697_SEObject_SEObject_new(){p2697_SEBase_SEBase_new.call(this);return this}
p2697_SEObject_SEObject.prototype.m_Load2=function(a,b){this.f__id=parseInt(a[b],10);this.f__slideId=parseInt(a[b+1],10);this.f__typeId=parseInt(a[b+2],10);this.f__startOffset=parseInt(a[b+3],10);this.f__duration=parseInt(a[b+4],10);this.f__startEffectId=parseInt(a[b+5],10);this.f__startEffect=p2697_BaseStartEndEffect_BaseStartEndEffect_CreateEffect(this,true);this.f__startEffect.f__r=parseInt(a[b+6],10);this.f__startEffect.f__g=parseInt(a[b+7],10);this.f__startEffect.f__b=parseInt(a[b+8],10);this.f__startEffect.f__amplitude=
parseInt(a[b+9],10);this.f__startEffect.f__duration=parseInt(a[b+10],10);this.f__endEffectId=parseInt(a[b+11],10);this.f__endEffect=p2697_BaseStartEndEffect_BaseStartEndEffect_CreateEffect(this,false);this.f__endEffect.f__r=parseInt(a[b+12],10);this.f__endEffect.f__g=parseInt(a[b+13],10);this.f__endEffect.f__b=parseInt(a[b+14],10);this.f__endEffect.f__amplitude=parseInt(a[b+15],10);this.f__endEffect.f__duration=parseInt(a[b+16],10);this.f__parameters=a[b+17];this.f__scale=parseFloat(a[b+18])/1E3;this.f__x=
parseInt(a[b+19],10);this.f__y=parseInt(a[b+20],10);this.f__animEffectId=parseInt(a[b+21],10);this.f__animEffect=p2697_BaseAnimEffect_BaseAnimEffect_CreateEffect(this);this.f__animEffect.f__r=parseInt(a[b+22],10);this.f__animEffect.f__g=parseInt(a[b+23],10);this.f__animEffect.f__b=parseInt(a[b+24],10);this.f__animEffect.f__amplitude=parseInt(a[b+25],10);this.f__animEffect.f__speed=parseInt(a[b+26],10);this.f__zOrder=parseInt(a[b+27],10);this.f__angle=parseInt(a[b+28],10);this.f__clickTarget=parseInt(a[b+
29],10);this.f__clickUrl=a[b+30];this.f__imageFilename=this.m_getParamString();this.f__shadow=this.m_getParamInt();this.f__reflexion=this.m_getParamInt();this.f__imageShadow=null;if(this.f__imageFilename!="")this.f__image=p2697_graphics_LoadImage(this.f__imageFilename,1,p2697_graphics_Image_DefaultFlags),this.f__imageShadow=p2697_graphics_LoadImage("[JS]_sh"+String(this.f__id)+".png",1,p2697_graphics_Image_DefaultFlags),this.f__width=this.f__image.m_Width(),this.f__height=this.f__image.m_Height();if(this.f__typeId==
5){this.f__opacity=1;this.f__nLines=this.m_getParamInt();for(var c=0;c<=this.f__nLines;c+=1)this.f__heights[c]=this.m_getParamInt()}else this.f__opacity=this.m_getParamInt()/100,this.f__nLines=1,this.f__heights[0]=this.f__height;return b+31};
p2697_SEObject_SEObject.prototype.m_BeginUpdate=function(a){this.f__scaleEffectsY=this.f__scaleEffectsX=this.f__alpha=1;this.f__rectNumber=this.f__effectAngle=this.f__effectY=this.f__effectX=0;this.f__animEffect.m_Update(a);a<=this.f__startEffect.f__duration&&this.f__startEffect.m_Update(a);this.f__duration>0&&a>=this.f__duration&&this.f__endEffect.m_Update(a-this.f__duration);p2697_graphics_SetAlpha(this.f__alpha*this.f__alphaTransition)};
p2697_SEObject_SEObject.prototype.m_DrawShadowImage=function(a,b,c,d,e){p2697_graphics_SetAlpha(this.f__alphaTransition*this.f__alpha);p2697_graphics_DrawImage2(this.f__imageShadow,a,b,c,d,e,0)};p2697_SEObject_SEObject.prototype.m_Intt=function(a,b){var c=p2697_Tools_Round(a);((b|0)/2|0)*2!=b&&(c+=0.5);return c};
p2697_SEObject_SEObject.prototype.m_DrawShadowImageRect=function(a,b,c,d,e,f,g,h,i){p2697_graphics_SetAlpha(this.f__alphaTransition*this.f__alpha);p2697_graphics_DrawImageRect2(this.f__imageShadow,a,b,c,d,e,f,g,h,i,0)};
p2697_SEObject_SEObject.prototype.m_Draw=function(){if(this.f__rectNumber==0){if(this.f__shadow>0){var a=p2697_graphics_GetAlpha();p2697_graphics_SetAlpha(this.f__alpha*this.f__alphaTransition*0.4*this.f__opacity);this.m_DrawShadowImage(this.f__x+this.f__effectX+this.f__shadow*this.f__scale*this.f__scaleEffectsX,this.f__y+this.f__effectY+this.f__shadow*this.f__scale*this.f__scaleEffectsY,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY);p2697_graphics_SetAlpha(a*
this.f__opacity)}p2697_graphics_SetColor(255,255,255);p2697_graphics_DrawImage2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y,this.f__height)+this.f__effectY,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY,0)}else if(this.f__rectNumber==1)this.f__shadow>0&&(a=p2697_graphics_GetAlpha(),p2697_graphics_SetAlpha(this.f__alpha*this.f__alphaTransition*0.4*this.f__opacity),this.m_DrawShadowImageRect(this.f__x+this.f__effectX+
this.f__shadow*this.f__scale*this.f__scaleEffectsX,this.f__y+this.f__effectY+this.f__shadow*this.f__scale*this.f__scaleEffectsY,this.f__rectX1,this.f__rectY1,this.f__rectW1,this.f__rectH1,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY),p2697_graphics_SetAlpha(a*this.f__opacity)),p2697_graphics_SetColor(255,255,255),p2697_graphics_DrawImageRect2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y,this.f__height)+
this.f__effectY,this.f__rectX1,this.f__rectY1,this.f__rectW1,this.f__rectH1,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY,0);else{this.f__shadow>0&&(a=p2697_graphics_GetAlpha(),p2697_graphics_SetAlpha(this.f__alpha*this.f__alphaTransition*0.4*this.f__opacity),this.m_DrawShadowImageRect(this.f__x+this.f__effectX+this.f__shadow*this.f__scale*this.f__scaleEffectsX,this.f__y+this.f__effectY+this.f__shadow*this.f__scale*this.f__scaleEffectsY,this.f__rectX1,
this.f__rectY1,this.f__rectW1,this.f__rectH1,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY),this.m_DrawShadowImageRect(this.f__x+this.f__effectX+this.f__shadow*this.f__scale*this.f__scaleEffectsX+this.f__rectXd2,this.f__y+this.f__effectY+this.f__rectYd2+this.f__shadow*this.f__scale*this.f__scaleEffectsY,this.f__rectX2,this.f__rectY2,this.f__rectW2,this.f__rectH2,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*
this.f__scaleEffectsY),p2697_graphics_SetAlpha(a*this.f__opacity));p2697_graphics_SetColor(255,255,255);p2697_graphics_DrawImageRect2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y,this.f__height)+this.f__effectY,this.f__rectX1,this.f__rectY1,this.f__rectW1,this.f__rectH1,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY,0);var a=this.m_Intt(this.f__x,this.f__width)+this.f__effectX,b=this.m_Intt(this.f__y,this.f__height)+
this.f__effectY;p2697_graphics_DrawImageRect2(this.f__image,a+this.f__rectXd2,b+this.f__rectYd2,this.f__rectX2,this.f__rectY2,this.f__rectW2,this.f__rectH2,this.f__angle+this.f__effectAngle,this.f__scale*this.f__scaleEffectsX,this.f__scale*this.f__scaleEffectsY,0)}this.f__reflexion>0&&(a=Math.sin(this.f__angle*D2R)*this.f__width*this.f__scale/2+Math.cos(this.f__angle*D2R)*this.f__height*this.f__scale/2,b=p2697_graphics_GetAlpha(),p2697_graphics_SetAlpha(this.f__alpha*this.f__alphaTransition*0.3*this.f__opacity),
this.f__rectNumber==0?p2697_graphics_DrawImage2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y+2*a,this.f__height)+this.f__effectY,-(this.f__angle+this.f__effectAngle),this.f__scale*this.f__scaleEffectsX,-this.f__scale*this.f__scaleEffectsY,0):this.f__rectNumber==1?p2697_graphics_DrawImageRect2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y+2*a,this.f__height)+this.f__effectY,this.f__rectX1,this.f__rectY1,this.f__rectW1,
this.f__rectH1,-(this.f__angle+this.f__effectAngle),this.f__scale*this.f__scaleEffectsX,-this.f__scale*this.f__scaleEffectsY,0):(p2697_graphics_DrawImageRect2(this.f__image,this.m_Intt(this.f__x,this.f__width)+this.f__effectX,this.m_Intt(this.f__y+2*a,this.f__height)+this.f__effectY,this.f__rectX1,this.f__rectY1,this.f__rectW1,this.f__rectH1,-(this.f__angle+this.f__effectAngle),this.f__scale*this.f__scaleEffectsX,-this.f__scale*this.f__scaleEffectsY,0),p2697_graphics_DrawImageRect2(this.f__image,this.m_Intt(this.f__x,
this.f__width)+this.f__effectX+this.f__rectXd2,this.m_Intt(this.f__y+2*a,this.f__height)+this.f__effectY-this.f__rectYd2,this.f__rectX2,this.f__rectY2,this.f__rectW2,this.f__rectH2,-(this.f__angle+this.f__effectAngle),this.f__scale*this.f__scaleEffectsX,-this.f__scale*this.f__scaleEffectsY,0)),p2697_graphics_SetAlpha(b));p2697_graphics_SetColor(255,255,255);p2697_graphics_SetAlpha(1)};
p2697_SEObject_SEObject.prototype.m_EndUpdate=function(){p2697_graphics_SetAlpha(1);var a=this.f__width*this.f__scale,b=this.f__height*this.f__scale;p2697_graphics_PushMatrix();p2697_graphics_Translate(this.f__x,this.f__y);p2697_graphics_Rotate(this.f__angle);p2697_graphics_Translate(-this.f__x,-this.f__y);var c=p2697_graphics_InvTransform([p2697_input_MouseX(),p2697_input_MouseY()]),d=c[0]-this.f__x|0,c=c[1]-this.f__y|0;p2697_graphics_PopMatrix();if(this.f__clickUrl!=""&&this.f__clickTarget>0&&d>=-a/2&&d<=a/2&&c>=-b/2&&c<=b/
2&&(p2697_BEPlayer_Player.f__handCursor=true,p2697_BEPlayer_Player.f__mouseClick==true))p2697_BEPlayer_Player.m_OpenUrl(this.f__clickUrl,this.f__clickTarget),p2697_BEPlayer_Player.f__clickOnObject=true};p2697_SEObject_SEObject.prototype.m_Update=function(a){this.m_BeginUpdate(a);this.m_Draw();this.m_EndUpdate(a)};p2697_SEObject_SEObject.prototype.m_ChangeAlpha=function(a){this.f__alpha*=a};p2697_SEObject_SEObject.prototype.m_ChangeScale=function(a){this.f__scaleEffectsX*=a;this.f__scaleEffectsY*=a};
p2697_SEObject_SEObject.prototype.m_ChangeRotation=function(a){this.f__effectAngle+=a};p2697_SEObject_SEObject.prototype.m_ChangeX=function(a){this.f__effectX+=a};p2697_SEObject_SEObject.prototype.m_ChangeY=function(a){this.f__effectY+=a};function p2697_BaseStartEndEffect_BaseStartEndEffect(){Object.call(this);this.f__start=false;this.f__object=null;this.f__duration=this.f__amplitude=this.f__b=this.f__g=this.f__r=0}
function p2697_BaseStartEndEffect_BaseStartEndEffect_new(a,b){this.f__start=b;this.f__object=a;return this}function p2697_BaseStartEndEffect_BaseStartEndEffect_new2(){return this}
function p2697_BaseStartEndEffect_BaseStartEndEffect_CreateEffect(a,b){var c=0,c=b==true?a.f__startEffectId:a.f__endEffectId,d=null,e=c;e==0?d=p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(new p2697_BaseStartEndEffect_BaseStartEndEffect,a,b):e==1?d=p2697_FadeEffect_FadeEffect_new.call(new p2697_FadeEffect_FadeEffect,a,b):e==2?d=p2697_BoingEffect_BoingEffect_new.call(new p2697_BoingEffect_BoingEffect,a,b):e==18?d=p2697_RotateEffect_RotateEffect_new.call(new p2697_RotateEffect_RotateEffect,a,b,c):e==19?d=p2697_RotateEffect_RotateEffect_new.call(new p2697_RotateEffect_RotateEffect,
a,b,c):e==10?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==11?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==12?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==13?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==14?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==15?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==16?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,
a,b,c):e==17?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==20?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==21?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==22?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==23?d=p2697_MoveEffect_MoveEffect_new.call(new p2697_MoveEffect_MoveEffect,a,b,c):e==400?d=p2697_DriftEffect_DriftEffect_new.call(new p2697_DriftEffect_DriftEffect,a,b,0):e==401?d=p2697_DriftEffect_DriftEffect_new.call(new p2697_DriftEffect_DriftEffect,
a,b,1):e==402?d=p2697_DriftEffect_DriftEffect_new.call(new p2697_DriftEffect_DriftEffect,a,b,2):e==500?d=p2697_BlurEffect_BlurEffect_new.call(new p2697_BlurEffect_BlurEffect,a,b,0):e==501?d=p2697_BlurEffect_BlurEffect_new.call(new p2697_BlurEffect_BlurEffect,a,b,1):e==502?d=p2697_BlurEffect_BlurEffect_new.call(new p2697_BlurEffect_BlurEffect,a,b,2):e==510?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,0):e==511?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,
a,b,1):e==512?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,2):e==513?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,3):e==514?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,4):e==515?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,5):e==516?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,6):e==517?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,
a,b,7):e==518?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,8):e==519?d=p2697_ParticleEffect_ParticleEffect_new.call(new p2697_ParticleEffect_ParticleEffect,a,b,9):e==530?d=p2697_ZoomEffect_ZoomEffect_new.call(new p2697_ZoomEffect_ZoomEffect,a,b,0):e==531&&(d=p2697_ZoomEffect_ZoomEffect_new.call(new p2697_ZoomEffect_ZoomEffect,a,b,1));return d}p2697_BaseStartEndEffect_BaseStartEndEffect.prototype.m_Init=function(){};p2697_BaseStartEndEffect_BaseStartEndEffect.prototype.m_Update=function(){};
p2697_BaseStartEndEffect_BaseStartEndEffect.prototype.m_ChangeAlpha2=function(a,b){var c=0;this.f__start==false&&(a=this.f__duration-a);c=(1+b)*a/this.f__duration;c>1&&(c=1);this.f__object.m_ChangeAlpha(c)};function p2697_FadeEffect_FadeEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this)}p2697_FadeEffect_FadeEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);function p2697_FadeEffect_FadeEffect_new(a,b){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);return this}
function p2697_FadeEffect_FadeEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}p2697_FadeEffect_FadeEffect.prototype.m_Update=function(a){this.m_ChangeAlpha2(a,0)};function p2697_BoingEffect_BoingEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this)}p2697_BoingEffect_BoingEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);function p2697_BoingEffect_BoingEffect_new(a,b){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);return this}
function p2697_BoingEffect_BoingEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}p2697_BoingEffect_BoingEffect.prototype.m_Update=function(a){var b=0;this.m_ChangeAlpha2(a,4);b=this.f__start?p2697_Tools_SC_Ease(11,a,0.01*this.f__amplitude/100,1,this.f__duration):p2697_Tools_SC_Ease(10,a,1,0.01*this.f__amplitude/100,this.f__duration);this.f__object.m_ChangeScale(b)};function p2697_RotateEffect_RotateEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__id=0}
p2697_RotateEffect_RotateEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);function p2697_RotateEffect_RotateEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);this.f__id=c;return this}function p2697_RotateEffect_RotateEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}
p2697_RotateEffect_RotateEffect.prototype.m_Update=function(a){this.m_ChangeAlpha2(a,1);this.f__start||(a=this.f__duration-a);var b=0,b=this.f__id==18?p2697_Tools_SC_Ease(16,a,-90*this.f__amplitude/100,0,this.f__duration):p2697_Tools_SC_Ease(11,a,-180*this.f__amplitude/100,0,this.f__duration);this.f__object.m_ChangeRotation(b|0)};function p2697_MoveEffect_MoveEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__id=0}p2697_MoveEffect_MoveEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);
function p2697_MoveEffect_MoveEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);this.f__id=c;return this}function p2697_MoveEffect_MoveEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}
p2697_MoveEffect_MoveEffect.prototype.m_Update=function(a){this.m_ChangeAlpha2(a,2);this.f__start||(a=this.f__duration-a);var b=16;this.f__id<14&&(b=11);this.f__id>=20&&(b=2);a=p2697_Tools_SC_Ease(b,a,1,0,this.f__duration);a=-a*500/this.f__object.f__scale;(this.f__id==20||this.f__id==10||this.f__id==14)&&this.f__object.m_ChangeX(a|0);(this.f__id==21||this.f__id==11||this.f__id==15)&&this.f__object.m_ChangeX(-a|0);(this.f__id==22||this.f__id==12||this.f__id==16)&&this.f__object.m_ChangeY(a|0);(this.f__id==
23||this.f__id==13||this.f__id==17)&&this.f__object.m_ChangeY(-a|0)};function p2697_DriftEffect_DriftEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__mode=0}p2697_DriftEffect_DriftEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);function p2697_DriftEffect_DriftEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);this.f__mode=c;return this}
function p2697_DriftEffect_DriftEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}
p2697_DriftEffect_DriftEffect.prototype.m_Update=function(a){var b=0,c=0,d=0;if(this.f__start)if(c=this.f__duration*0.1|0,d=this.f__duration*0.9|0,a<c)d=this.f__mode,d==0?b=p2697_Tools_SC_Ease(1,a,10,1.2,c):d==1?b=p2697_Tools_SC_Ease(1,a,0.1,0.8,c):d==2&&(b=p2697_Tools_SC_Ease(1,a,10,0.8,c));else{var e=this.f__mode;e==0?b=p2697_Tools_SC_Ease(2,a-c,1.2,1,d):e==1?b=p2697_Tools_SC_Ease(2,a-c,0.8,1,d):e==2&&(b=p2697_Tools_SC_Ease(2,a-c,0.8,1,d))}else c=this.f__duration*0.9|0,d=this.f__duration*0.1|0,a<c?(d=this.f__mode,d==
0?b=p2697_Tools_SC_Ease(1,a,1,1.2,c):d==1?b=p2697_Tools_SC_Ease(1,a,1,0.8,c):d==2&&(b=p2697_Tools_SC_Ease(1,a,1,0.8,c))):(e=this.f__mode,e==0?b=p2697_Tools_SC_Ease(2,a-c,1.2,10,d):e==1?b=p2697_Tools_SC_Ease(2,a-c,0.8,0.1,d):e==2&&(b=p2697_Tools_SC_Ease(2,a-c,0.8,10,d)));this.f__object.m_ChangeScale(b);this.m_ChangeAlpha2(a,6)};function p2697_BlurEffect_BlurEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__mode=0}p2697_BlurEffect_BlurEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);
function p2697_BlurEffect_BlurEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);this.f__mode=c;return this}function p2697_BlurEffect_BlurEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}
p2697_BlurEffect_BlurEffect.prototype.m_Update=function(a){var b=p2697_Tools_SC_Ease(3,a/this.f__duration,0,1,1);this.f__start&&(b=1-b);var c=this.f__amplitude/100,d=this.f__object.f__alpha,e=this.f__mode;if(e==0)this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsY=1+b*0.6*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsY=1+b*0.4*c,this.f__object.m_Draw(),
this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsY=1+b*0.2*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsY=1+b*0.1*c,this.f__object.m_Draw();else if(e==1)this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.6*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,
p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.4*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.2*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.1*c,this.f__object.m_Draw();else if(e==2)this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),
this.f__object.f__scaleEffectsX=1+b*0.6*c,this.f__object.f__scaleEffectsY=1+b*0.6*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.4*c,this.f__object.f__scaleEffectsY=1+b*0.4*c,this.f__object.m_Draw(),this.f__object.f__alpha=0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.2*c,this.f__object.f__scaleEffectsY=1+b*0.2*c,this.f__object.m_Draw(),this.f__object.f__alpha=
0.1,p2697_graphics_SetAlpha(0.1*this.f__object.f__alphaTransition),this.f__object.f__scaleEffectsX=1+b*0.1*c,this.f__object.f__scaleEffectsY=1+b*0.1*c,this.f__object.m_Draw();this.f__object.f__alpha=d;p2697_graphics_SetAlpha(d);this.f__object.f__scaleEffectsX=1;this.f__object.f__scaleEffectsY=1;this.m_ChangeAlpha2(a,0)};function p2697_ParticleEffect_ParticleEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__particles=this.f__mode=0;this.f__pe=null}
p2697_ParticleEffect_ParticleEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);function p2697_ParticleEffect_ParticleEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);c<5?(this.f__mode=0,this.f__particles=c):(this.f__mode=1,this.f__particles=c-5);return this}function p2697_ParticleEffect_ParticleEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}
p2697_ParticleEffect_ParticleEffect.prototype.m_Init=function(){this.f__duration=this.f__mode==0?this.f__object.f__nLines*this.f__object.f__width*this.f__object.f__scale*500/this.f__duration|0:this.f__object.f__height*this.f__object.f__scale*1E3/this.f__duration|0};
p2697_ParticleEffect_ParticleEffect.prototype.m_Update=function(a){var b=p2697_Tools_SC_Ease(0,a/this.f__duration,0,1,1),a=this.f__object.f__scaleEffectsX*this.f__object.f__scale,c=this.f__object.f__scaleEffectsY*this.f__object.f__scale;if(this.f__pe==null&&this.f__particles>0){var d=1;if(this.f__particles==3||this.f__particles==1)d=2;this.f__pe=this.f__mode==0?this.f__particles==1?p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,0,0,1.5,this.f__particles-1,-1,false,false,1,0.1,0,
this.f__object.f__heights[0]*this.f__object.f__scale|0,20,d,this.f__r,this.f__g,this.f__b):p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,0,0,1.5,this.f__particles-1,1,false,false,1,0.1,0,this.f__object.f__heights[0]*this.f__object.f__scale|0,50,d,this.f__r,this.f__g,this.f__b):this.f__particles==1?p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,0,0,1.5,this.f__particles-1,-1,false,false,1,0.05,this.f__object.f__width*this.f__object.f__scale|0,0,50,d,
this.f__r,this.f__g,this.f__b):p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,0,0,3.5,this.f__particles-1,1,false,true,1,0.1,this.f__object.f__width*this.f__object.f__scale|0,0,50,d,this.f__r,this.f__g,this.f__b);p2697_BEPlayer_Player.f__particles.m_Add(this.f__pe,p2697_BEPlayer_Player.f__currentSlideIndex)}this.f__start||(b=1-b);if(this.f__mode==0)if(b*=this.f__object.f__nLines,b<=1){if(this.f__object.f__rectNumber=1,this.f__object.f__rectX1=0,this.f__object.f__rectY1=0,this.f__object.f__rectW1=
b*this.f__object.f__width|0,this.f__object.f__rectH1=this.f__object.f__heights[0],this.f__pe!=null)this.f__pe.f__x=this.f__object.f__x+(this.f__object.f__rectW1-(this.f__object.f__width/2|0))*a|0,this.f__pe.f__y=this.f__object.f__y-this.f__object.f__height*c/2+this.f__object.f__heights[0]*c/2|0}else{this.f__object.f__rectNumber=2;d=b|0;this.f__object.f__rectX1=0;this.f__object.f__rectY1=0;this.f__object.f__rectW1=this.f__object.f__width;for(var e=0,f=0;f<=d-1;f+=1)e+=this.f__object.f__heights[f];
this.f__object.f__rectH1=e;this.f__object.f__rectX2=0;this.f__object.f__rectY2=e;this.f__object.f__rectW2=(b-d)*this.f__object.f__width|0;this.f__object.f__rectH2=this.f__object.f__heights[d];this.f__object.f__rectXd2=0;this.f__object.f__rectYd2=e*c;var f=this.f__object.f__rectXd2,g=this.f__object.f__rectYd2,b=Math.cos((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*f-Math.sin((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*g,f=Math.cos((-this.f__object.f__angle-this.f__object.f__effectAngle)*
D2R)*g+Math.sin((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*f;this.f__object.f__rectXd2=b;this.f__object.f__rectYd2=f;if(this.f__pe!=null)this.f__pe.f__x=this.f__object.f__x+(this.f__object.f__rectW2-(this.f__object.f__width/2|0))*a|0,this.f__pe.f__y=this.f__object.f__y-this.f__object.f__height*c/2+e*c+this.f__object.f__heights[d]*c/2|0}else if(this.f__object.f__rectNumber=1,this.f__object.f__rectX1=0,this.f__object.f__rectY1=0,this.f__object.f__rectH1=b*this.f__object.f__height|
0,this.f__object.f__rectW1=this.f__object.f__width,this.f__pe!=null)this.f__pe.f__x=this.f__object.f__x,this.f__pe.f__y=this.f__object.f__y+(this.f__object.f__rectH1-(this.f__object.f__height/2|0))*c|0;if(this.f__pe!=null)c=this.f__pe.f__x-this.f__object.f__x,d=this.f__pe.f__y-this.f__object.f__y,a=Math.cos((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*c-Math.sin((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*d|0,c=Math.cos((-this.f__object.f__angle-this.f__object.f__effectAngle)*
D2R)*d+Math.sin((-this.f__object.f__angle-this.f__object.f__effectAngle)*D2R)*c|0,this.f__pe.f__x=a+this.f__object.f__x,this.f__pe.f__y=c+this.f__object.f__y,this.f__pe.f__flagUpdate=true,this.f__pe.f__angle=-this.f__object.f__angle-this.f__object.f__effectAngle};function p2697_ZoomEffect_ZoomEffect(){p2697_BaseStartEndEffect_BaseStartEndEffect.call(this);this.f__mode=0}p2697_ZoomEffect_ZoomEffect.prototype=extend_class(p2697_BaseStartEndEffect_BaseStartEndEffect);
function p2697_ZoomEffect_ZoomEffect_new(a,b,c){p2697_BaseStartEndEffect_BaseStartEndEffect_new.call(this,a,b);this.f__mode=c;return this}function p2697_ZoomEffect_ZoomEffect_new2(){p2697_BaseStartEndEffect_BaseStartEndEffect_new2.call(this);return this}p2697_ZoomEffect_ZoomEffect.prototype.m_Update=function(a){var b=p2697_Tools_SC_Ease(3,a/this.f__duration,0,1,1);this.f__start&&(b=1-b);this.f__mode==0?this.f__object.m_ChangeScale(b*5+1):this.f__object.m_ChangeScale(1-b*0.8);this.m_ChangeAlpha2(a,0)};
function p2697_BaseAnimEffect_BaseAnimEffect(){Object.call(this);this.f__object=null;this.f__speed=this.f__amplitude=this.f__b=this.f__g=this.f__r=0}function p2697_BaseAnimEffect_BaseAnimEffect_new(a){this.f__object=a;return this}function p2697_BaseAnimEffect_BaseAnimEffect_new2(){return this}
function p2697_BaseAnimEffect_BaseAnimEffect_CreateEffect(a){var b=null,c=a.f__animEffectId;c==0?b=p2697_BaseAnimEffect_BaseAnimEffect_new.call(new p2697_BaseAnimEffect_BaseAnimEffect,a):c==9?b=p2697_RockingEffect_RockingEffect_new.call(new p2697_RockingEffect_RockingEffect,a):c==10?b=p2697_BlinkEffect_BlinkEffect_new.call(new p2697_BlinkEffect_BlinkEffect,a):c==20?b=p2697_ScaleEffect_ScaleEffect_new.call(new p2697_ScaleEffect_ScaleEffect,a,0):c==21?b=p2697_ScaleEffect_ScaleEffect_new.call(new p2697_ScaleEffect_ScaleEffect,a,1):
c==22?b=p2697_ScaleEffect_ScaleEffect_new.call(new p2697_ScaleEffect_ScaleEffect,a,2):c==23?b=p2697_ScaleEffect_ScaleEffect_new.call(new p2697_ScaleEffect_ScaleEffect,a,3):c==24?b=p2697_ScaleEffect_ScaleEffect_new.call(new p2697_ScaleEffect_ScaleEffect,a,4):c==30?b=p2697_FlaresEffect_FlaresEffect_new.call(new p2697_FlaresEffect_FlaresEffect,a,1):c==31?b=p2697_FlaresEffect_FlaresEffect_new.call(new p2697_FlaresEffect_FlaresEffect,a,2):c==32?b=p2697_FlaresEffect_FlaresEffect_new.call(new p2697_FlaresEffect_FlaresEffect,a,3):c==40&&(b=
p2697_ShakeEffect_ShakeEffect_new.call(new p2697_ShakeEffect_ShakeEffect,a));return b}p2697_BaseAnimEffect_BaseAnimEffect.prototype.m_Update=function(){};function p2697_RockingEffect_RockingEffect(){p2697_BaseAnimEffect_BaseAnimEffect.call(this)}p2697_RockingEffect_RockingEffect.prototype=extend_class(p2697_BaseAnimEffect_BaseAnimEffect);function p2697_RockingEffect_RockingEffect_new(a){p2697_BaseAnimEffect_BaseAnimEffect_new.call(this,a);return this}
function p2697_RockingEffect_RockingEffect_new2(){p2697_BaseAnimEffect_BaseAnimEffect_new2.call(this);return this}p2697_RockingEffect_RockingEffect.prototype.m_Update=function(a){this.f__object.m_ChangeRotation(Math.sin(a*this.f__speed/400*D2R)*15*this.f__amplitude/100|0)};function p2697_BlinkEffect_BlinkEffect(){p2697_BaseAnimEffect_BaseAnimEffect.call(this)}p2697_BlinkEffect_BlinkEffect.prototype=extend_class(p2697_BaseAnimEffect_BaseAnimEffect);
function p2697_BlinkEffect_BlinkEffect_new(a){p2697_BaseAnimEffect_BaseAnimEffect_new.call(this,a);return this}function p2697_BlinkEffect_BlinkEffect_new2(){p2697_BaseAnimEffect_BaseAnimEffect_new2.call(this);return this}p2697_BlinkEffect_BlinkEffect.prototype.m_Update=function(a){this.f__object.m_ChangeAlpha(Math.sin(a*this.f__speed/200*D2R)/2+0.5)};function p2697_ScaleEffect_ScaleEffect(){p2697_BaseAnimEffect_BaseAnimEffect.call(this);this.f__mode=0}p2697_ScaleEffect_ScaleEffect.prototype=extend_class(p2697_BaseAnimEffect_BaseAnimEffect);
function p2697_ScaleEffect_ScaleEffect_new(a,b){p2697_BaseAnimEffect_BaseAnimEffect_new.call(this,a);this.f__mode=b;return this}function p2697_ScaleEffect_ScaleEffect_new2(){p2697_BaseAnimEffect_BaseAnimEffect_new2.call(this);return this}
p2697_ScaleEffect_ScaleEffect.prototype.m_Update=function(a){var b=this.f__mode;if(b==0)this.f__object.m_ChangeScale(Math.sin(a*this.f__speed/400*D2R)*this.f__amplitude/400+1);else if(b==1)this.f__object.f__scaleEffectsX=Math.sin(a*this.f__speed/400*D2R)*this.f__amplitude/400+1;else if(b==2)this.f__object.f__scaleEffectsX=Math.sin(a*this.f__speed/400*D2R);else if(b==3)this.f__object.f__scaleEffectsY=Math.sin(a*this.f__speed/400*D2R)*this.f__amplitude/400+1;else if(b==4)this.f__object.f__scaleEffectsY=
Math.sin(a*this.f__speed/400*D2R)};function p2697_FlaresEffect_FlaresEffect(){p2697_BaseAnimEffect_BaseAnimEffect.call(this);this.f__mode=0;this.f__pe=null}p2697_FlaresEffect_FlaresEffect.prototype=extend_class(p2697_BaseAnimEffect_BaseAnimEffect);function p2697_FlaresEffect_FlaresEffect_new(a,b){p2697_BaseAnimEffect_BaseAnimEffect_new.call(this,a);this.f__mode=b;return this}function p2697_FlaresEffect_FlaresEffect_new2(){p2697_BaseAnimEffect_BaseAnimEffect_new2.call(this);return this}
p2697_FlaresEffect_FlaresEffect.prototype.m_Update=function(){if(this.f__pe==null){var a=1;if(this.f__mode==2||this.f__mode==3)a=3;a=a*this.f__amplitude/100;this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,0,0,0,this.f__mode,0,true,true,3,0.03*this.f__speed/100,this.f__object.f__width*this.f__object.f__scale|0,this.f__object.f__height*this.f__object.f__scale|0,5,a,this.f__r,this.f__g,this.f__b);p2697_BEPlayer_Player.f__particles.m_Add(this.f__pe,p2697_BEPlayer_Player.f__currentSlideIndex)}this.f__pe.f__flagUpdate=
true;this.f__pe.f__x=this.f__object.f__x;this.f__pe.f__y=this.f__object.f__y;this.f__pe.f__angle=-this.f__object.f__angle-this.f__object.f__effectAngle};function p2697_ShakeEffect_ShakeEffect(){p2697_BaseAnimEffect_BaseAnimEffect.call(this);this.f__rpos=[1,5,7,2,-4,3,-7,-4,2,0,4,-6,-3]}p2697_ShakeEffect_ShakeEffect.prototype=extend_class(p2697_BaseAnimEffect_BaseAnimEffect);function p2697_ShakeEffect_ShakeEffect_new(a){p2697_BaseAnimEffect_BaseAnimEffect_new.call(this,a);return this}
function p2697_ShakeEffect_ShakeEffect_new2(){p2697_BaseAnimEffect_BaseAnimEffect_new2.call(this);return this}p2697_ShakeEffect_ShakeEffect.prototype.m_Update=function(a){a=a*this.f__speed/2E4|0;a%=12;this.f__object.m_ChangeX(this.f__rpos[a]*this.f__amplitude/100|0);this.f__object.m_ChangeY(this.f__rpos[11-a]*this.f__amplitude/100|0)};
function p2697_SEBackground_SEBackground(){p2697_SEBase_SEBase.call(this);this.f__blue=this.f__green=this.f__red=this.f__typeId=0;this.f__imageEnabled=false;this.f__imageFilename="";this.f__gradient=false;this.f__particles=this.f__particleScale=this.f__particleB=this.f__particleG=this.f__particleR=this.f__particleMode=this.f__imageMode=this.f__gradientMode=this.f__gradientB=this.f__gradientG=this.f__gradientR=0;this.f__border=false;this.f__borderB=this.f__borderG=this.f__borderR=this.f__borderWidth=0;this.f__image=
null;this.f__scaleY=this.f__scaleX=0;this.f__pe=this.f__gradientImage=null}p2697_SEBackground_SEBackground.prototype=extend_class(p2697_SEBase_SEBase);function p2697_SEBackground_SEBackground_new(){p2697_SEBase_SEBase_new.call(this);return this}
p2697_SEBackground_SEBackground.prototype.m_Load2=function(a,b){var c=p2697_BEPlayer_Player.f__file.m_getWidth(),d=p2697_BEPlayer_Player.f__file.m_getHeight();this.f__id=parseInt(a[b+0],10);this.f__typeId=parseInt(a[b+1],10);this.f__parameters=a[b+2];this.f__red=this.m_getParamInt();this.f__green=this.m_getParamInt();this.f__blue=this.m_getParamInt();this.f__imageEnabled=this.m_getParamBool();this.f__imageFilename=this.m_getParamString();this.f__gradient=this.m_getParamBool();this.f__gradientR=this.m_getParamInt();
this.f__gradientG=this.m_getParamInt();this.f__gradientB=this.m_getParamInt();this.f__gradientMode=this.m_getParamInt();this.f__imageMode=this.m_getParamInt();this.f__particleMode=this.m_getParamInt();this.f__particleR=this.m_getParamInt();this.f__particleG=this.m_getParamInt();this.f__particleB=this.m_getParamInt();this.f__particleScale=this.m_getParamInt()*0.5+0.5;this.f__particles=this.m_getParamInt();this.f__border=this.m_getParamBool();this.f__borderWidth=this.m_getParamInt();this.f__borderR=
this.m_getParamInt();this.f__borderG=this.m_getParamInt();this.f__borderB=this.m_getParamInt();this.f__image=null;if(this.f__imageFilename!=""&&this.f__imageEnabled==true)this.f__image=p2697_graphics_LoadImage(this.f__imageFilename,1,0),this.f__scaleX=c/this.f__image.m_Width(),this.f__scaleY=d/this.f__image.m_Height();if(this.f__gradient)this.f__gradientImage=p2697_graphics_LoadImage("g_"+String(this.f__red)+String(this.f__green)+String(this.f__blue)+String(this.f__gradientR)+String(this.f__gradientG)+
String(this.f__gradientB)+String(this.f__gradientMode)+".jpg",1,0);return b+3};
p2697_SEBackground_SEBackground.prototype.m_Update3=function(a,b){var c=p2697_BEPlayer_Player.f__file.m_getWidth(),d=p2697_BEPlayer_Player.f__file.m_getHeight();p2697_graphics_SetAlpha(b);p2697_graphics_SetColor(this.f__red,this.f__green,this.f__blue);p2697_BEPlayer_Player.f__file.m_getBackgroundA()!=0&&p2697_graphics_DrawRect(0,0,c,d);p2697_graphics_SetColor(255,255,255);p2697_BEPlayer_Player.f__file.m_getBackgroundA()!=0&&this.f__gradient&&this.f__gradientImage!=null&&(this.f__gradientMode==0||this.f__gradientMode==2?p2697_graphics_DrawImage2(this.f__gradientImage,
0,0,0,c,d/256,0):p2697_graphics_DrawImage2(this.f__gradientImage,0,0,0,c/256,d,0));if(this.f__image!=null){var e=this.f__imageMode;e==0?p2697_graphics_DrawImage2(this.f__image,0,0,0,this.f__scaleX,this.f__scaleY,0):e==1?p2697_graphics_DrawImage(this.f__image,(c-this.f__image.m_Width())/2|0,(d-this.f__image.m_Height())/2|0,0):e==2?p2697_graphics_DrawImage(this.f__image,0,0,0):e==3?p2697_graphics_DrawImage(this.f__image,(c-this.f__image.m_Width())/2|0,0,0):e==4?p2697_graphics_DrawImage(this.f__image,c-this.f__image.m_Width(),
0,0):e==5?p2697_graphics_DrawImage(this.f__image,c-this.f__image.m_Width(),(d-this.f__image.m_Height())/2|0,0):e==6?p2697_graphics_DrawImage(this.f__image,c-this.f__image.m_Width(),d-this.f__image.m_Height(),0):e==7?p2697_graphics_DrawImage(this.f__image,(c-this.f__image.m_Width())/2|0,d-this.f__image.m_Height(),0):e==8?p2697_graphics_DrawImage(this.f__image,0,d-this.f__image.m_Height(),0):e==9&&p2697_graphics_DrawImage(this.f__image,0,(d-this.f__image.m_Height())/2|0,0)}if(this.f__pe==null&&this.f__particleMode>
0)if(e=this.f__particleMode,e==1)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,0,1.5,this.f__particles,2,false,false,1,0,c,0,30,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==2)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,d,1.5,this.f__particles,-2,false,false,1,0,c,0,30,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==3)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,
c/2|0,d/2|0,0,this.f__particles,0,true,true,1,0.01,c,d,30,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==4)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,d/2|0,8.5,this.f__particles,0,false,true,1,0,0,0,60,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==5)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,d/2|0,0.5,this.f__particles,0,true,
true,1,0.02,0,0,400,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==6)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,d/2|0,0.5,this.f__particles,0,true,true,1,0.02,0,0,400,this.f__particleScale,this.f__particleR,this.f__particleG,this.f__particleB);else if(e==7)this.f__pe=p2697_Particles_ParticleEmitter_new.call(new p2697_Particles_ParticleEmitter,c/2|0,d/2|0,0.5,this.f__particles,0,true,true,1,0.02,0,0,400,this.f__particleScale,
this.f__particleR,this.f__particleG,this.f__particleB);if(this.f__pe!=null){e=this.f__particleMode;if(e==5)this.f__pe.f__x=Math.sin(a/10*D2R)*c/3+c/2|0,this.f__pe.f__y=Math.cos(a/10*D2R)*d/3+d/2|0;else if(e==6)this.f__pe.f__x=Math.sin(a/20*D2R)*c/3+c/2|0,this.f__pe.f__y=Math.sin(a/10*D2R)*d/3+d/2|0;else if(e==7)this.f__pe.f__x=Math.sin(a/10*D2R)*c/3+c/2|0,this.f__pe.f__y=Math.sin(a/20*D2R)*d/3+d/2|0;this.f__pe.f__flagUpdate=true;this.f__pe.m_Update2()}this.f__border&&(p2697_graphics_SetAlpha(1),p2697_graphics_SetColor(this.f__borderR,
this.f__borderG,this.f__borderB),p2697_graphics_DrawRect(0,0,c,this.f__borderWidth),p2697_graphics_DrawRect(0,0,this.f__borderWidth,d),p2697_graphics_DrawRect(c-this.f__borderWidth,0,this.f__borderWidth,d),p2697_graphics_DrawRect(0,d-this.f__borderWidth,c,this.f__borderWidth),p2697_graphics_SetColor(255,255,255));p2697_graphics_SetAlpha(1)};function p2697_SETransition_SETransition(){p2697_SEBase_SEBase.call(this);this.f__endDuration=this.f__typeId=0;this.f__previousOnTop=true;this.f__startDuration=0;this.f__alpha=1}
p2697_SETransition_SETransition.prototype=extend_class(p2697_SEBase_SEBase);function p2697_SETransition_SETransition_new(){p2697_SEBase_SEBase_new.call(this);return this}
function p2697_SETransition_SETransition_CreateTransition(a,b){var c=null,d=parseInt(a[b+1],10);d==0?c=p2697_SETransition_SETransition_new.call(new p2697_SETransition_SETransition):d==20?c=p2697_T3DFlip_T3DFlip_new.call(new p2697_T3DFlip_T3DFlip):d==21?c=p2697_T3DFlip_T3DFlip_new.call(new p2697_T3DFlip_T3DFlip):d==22?c=p2697_T3DFlip_T3DFlip_new.call(new p2697_T3DFlip_T3DFlip):d==23?c=p2697_T3DFlip_T3DFlip_new.call(new p2697_T3DFlip_T3DFlip):d==24?c=p2697_T3DFlip_T3DFlip_new.call(new p2697_T3DFlip_T3DFlip):d==50?c=p2697_Panning_Panning_new.call(new p2697_Panning_Panning):
d==100?c=p2697_RingEffect_RingEffect_new.call(new p2697_RingEffect_RingEffect):d==130?c=p2697_FallDown_FallDown_new.call(new p2697_FallDown_FallDown):d==140?c=p2697_Crossfade_Crossfade_new.call(new p2697_Crossfade_Crossfade):d==200?c=p2697_Scissor_Scissor_new.call(new p2697_Scissor_Scissor):d==210&&(c=p2697_Zoom_Zoom_new.call(new p2697_Zoom_Zoom));return c}p2697_SETransition_SETransition.prototype.m_OnLoad=function(){};
p2697_SETransition_SETransition.prototype.m_Load2=function(a,b){this.f__id=parseInt(a[b+0],10);this.f__typeId=parseInt(a[b+1],10);this.f__parameters=a[b+2];this.m_OnLoad();return b+4};p2697_SETransition_SETransition.prototype.m_GetPreviousOnTop=function(){return this.f__previousOnTop};p2697_SETransition_SETransition.prototype.m_UpdatePrevious2=function(){};p2697_SETransition_SETransition.prototype.m_Update4=function(){};function p2697_T3DFlip_T3DFlip(){p2697_SETransition_SETransition.call(this);this.f__ease=0}
p2697_T3DFlip_T3DFlip.prototype=extend_class(p2697_SETransition_SETransition);function p2697_T3DFlip_T3DFlip_new(){p2697_SETransition_SETransition_new.call(this);return this}p2697_T3DFlip_T3DFlip.prototype.m_OnLoad=function(){this.f__previousOnTop=false;this.f__endDuration=this.f__startDuration=1E3;this.m_getParamInt();this.m_getParamInt();this.m_getParamInt();this.m_getParamInt();this.m_getParamString();this.m_getParamInt();this.m_getParamInt();this.m_getParamInt();this.f__ease=this.m_getParamInt()};
p2697_T3DFlip_T3DFlip.prototype.m_Update4=function(a,b){var c=p2697_BEPlayer_Player.f__file.m_getWidth(),d=p2697_BEPlayer_Player.f__file.m_getHeight(),e=0;b?(this.f__ease==0&&(e=5),this.f__ease==1&&(e=14),this.f__ease==2&&(e=16)):(this.f__ease==0&&(e=4),this.f__ease==1&&(e=13),this.f__ease==2&&(e=1));var f=p2697_Tools_SC_Ease(e,a,0,1,this.f__startDuration);b==true&&(f=1-f);e=1-f;e<0.1&&(e=0.1);var g=this.f__typeId;g==20?(p2697_graphics_Translate(c/2|0,d/2|0),p2697_graphics_Scale(1,e),p2697_graphics_Translate(-c/2|0,-d/
2|0)):g==21?(p2697_graphics_Translate(c/2|0,d/2|0),p2697_graphics_Scale(e,1),p2697_graphics_Translate(-c/2|0,-d/2|0)):g==22?b?(p2697_graphics_Translate(c,0),p2697_graphics_Scale(e,1),p2697_graphics_Translate(-c,0)):p2697_graphics_Scale(e,1):g==23?(p2697_graphics_Translate(c/2|0,d/2|0),p2697_graphics_Scale(e,1),p2697_graphics_Rotate(90*f),p2697_graphics_Translate(-c/2|0,-d/2|0)):g==24&&(p2697_graphics_Translate(c/2|0,d/2|0),f*=360,p2697_graphics_Scale(e,e),p2697_graphics_Rotate(f),p2697_graphics_Translate(-c/2|0,-d/2|0));this.f__alpha=e};
p2697_T3DFlip_T3DFlip.prototype.m_UpdatePrevious2=function(){p2697_graphics_Translate(1E4,1E4)};function p2697_Panning_Panning(){p2697_SETransition_SETransition.call(this);this.f__ease=this.f__scroll=this.f__mode=0}p2697_Panning_Panning.prototype=extend_class(p2697_SETransition_SETransition);function p2697_Panning_Panning_new(){p2697_SETransition_SETransition_new.call(this);return this}
p2697_Panning_Panning.prototype.m_OnLoad=function(){this.f__previousOnTop=false;this.f__startDuration=2E3;this.f__endDuration=0;this.f__mode=this.m_getParamInt();this.f__scroll=this.m_getParamInt();this.f__ease=this.m_getParamInt();if(this.f__ease==0)this.f__ease=3;if(this.f__ease==1)this.f__ease=14;if(this.f__ease==2)this.f__ease=16};
p2697_Panning_Panning.prototype.m_Update4=function(a){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),d=0,e=0,f=0,g=0,h=b,i=c,a=p2697_Tools_SC_Ease(this.f__ease,a/this.f__startDuration,0,1,1),j=this.f__mode;j==0?(f=d=b-b*a|0,h=b-f):j==1?(d=-b+b*a|0,h=b*a|0):j==2?(e=-c+c*a|0,i=c*a|0):j==3?(g=e=c-c*a|0,i=c-g):j==4?(d=-b+b*a|0,e=c-c*a|0,h=b*a|0,g=e,i=c-g):j==5?(d=b-b*a|0,e=c-c*a|0,f=d,h=b-f,g=e,i=c-g):j==6?(d=b-b*a|0,e=-c+c*a|0,f=d,h=b-f,i=c*a|0):j==7&&(d=-b+b*a|0,
e=-c+c*a|0,h=b*a|0,i=c*a|0);this.f__scroll!=1?p2697_graphics_Translate(d,e):p2697_graphics_SetScissor(f,g,h,i)};
p2697_Panning_Panning.prototype.m_UpdatePrevious2=function(a){if(this.f__scroll==2){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),d=0,e=0,a=p2697_Tools_SC_Ease(this.f__ease,a/this.f__startDuration,0,1,1),f=this.f__mode;f==0?d=-b*a|0:f==1?d=+b*a|0:f==2?e=+c*a|0:f==3?e=-c*a|0:f==4?(d=+b*a|0,e=-c*a|0):f==5?(d=-b*a|0,e=-c*a|0):f==6?(d=-b*a|0,e=+c*a|0):f==7&&(d=+b*a|0,e=+c*a|0);p2697_graphics_Translate(d,e)}};
function p2697_RingEffect_RingEffect(){p2697_SETransition_SETransition.call(this);this.f__mode=0}p2697_RingEffect_RingEffect.prototype=extend_class(p2697_SETransition_SETransition);function p2697_RingEffect_RingEffect_new(){p2697_SETransition_SETransition_new.call(this);return this}p2697_RingEffect_RingEffect.prototype.m_OnLoad=function(){this.f__previousOnTop=true;this.f__startDuration=2E3;this.f__endDuration=0;this.f__mode=this.m_getParamInt()};
p2697_RingEffect_RingEffect.prototype.m_GetPreviousOnTop=function(a){this.f__previousOnTop=true;if(p2697_Tools_SC_Ease(3,a/this.f__startDuration,0,1,1)>0.5)this.f__previousOnTop=false;return this.f__previousOnTop};
p2697_RingEffect_RingEffect.prototype.m_Update4=function(a){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),d=0,e=0,a=p2697_Tools_SC_Ease(3,a/this.f__startDuration,0,1,1),f=1;p2697_graphics_Translate(b/2,c/2);this.f__mode==0?(f=-Math.cos(a*180*D2R)*0.25+0.75,d=-Math.sin(a*180*D2R)*b/2|0):(this.f__mode==1?f=-Math.cos(a*180*D2R)*0.25+0.75:(f=-Math.cos(a*180*D2R)*0.25+0.75,d=-Math.sin(a*180*D2R)*b/2|0),e=-Math.sin(a*180*D2R)*c/2|0);p2697_graphics_Translate(d,e);p2697_graphics_Scale(f,
f);p2697_graphics_Translate(-b/2,-c/2)};
p2697_RingEffect_RingEffect.prototype.m_UpdatePrevious2=function(a){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),d=0,e=0,a=p2697_Tools_SC_Ease(3,a/this.f__startDuration,0,1,1),f=1;p2697_graphics_Translate(b/2,c/2);this.f__mode==0?(f=Math.cos(a*180*D2R)*0.25+0.75,d=Math.sin(a*180*D2R)*b/2|0):(this.f__mode==1?f=Math.cos(a*180*D2R)*0.25+0.75:(f=Math.cos(a*180*D2R)*0.25+0.75,d=Math.sin(a*180*D2R)*b/2|0),e=Math.sin(a*180*D2R)*c/2|0);p2697_graphics_Translate(d,e);p2697_graphics_Scale(f,
f);p2697_graphics_Translate(-b/2,-c/2)};function p2697_FallDown_FallDown(){p2697_SETransition_SETransition.call(this);this.f__ease=this.f__corner=this.f__mode=0}p2697_FallDown_FallDown.prototype=extend_class(p2697_SETransition_SETransition);function p2697_FallDown_FallDown_new(){p2697_SETransition_SETransition_new.call(this);return this}
p2697_FallDown_FallDown.prototype.m_OnLoad=function(){this.f__previousOnTop=false;this.f__startDuration=2E3;this.f__endDuration=0;this.f__mode=this.m_getParamInt();this.f__corner=this.m_getParamInt();if(this.f__mode==0)this.f__ease=16;if(this.f__mode==1)this.f__ease=5;if(this.f__mode==2)this.f__ease=11;if(this.f__mode==3)this.f__ease=14};
p2697_FallDown_FallDown.prototype.m_Update4=function(a){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),a=90*p2697_Tools_SC_Ease(this.f__ease,a,0,1,this.f__startDuration),d=this.f__corner;d==0?a=90-a:d==1?(p2697_graphics_Translate(b,0),a-=90):d==2?(p2697_graphics_Translate(b,c),a=90-a):d==3&&(p2697_graphics_Translate(0,c),a-=90);p2697_graphics_Rotate(a);a=this.f__corner;a!=0&&(a==1?p2697_graphics_Translate(-b,0):a==2?p2697_graphics_Translate(-b,-c):a==3&&p2697_graphics_Translate(0,-c))};
function p2697_Crossfade_Crossfade(){p2697_SETransition_SETransition.call(this)}p2697_Crossfade_Crossfade.prototype=extend_class(p2697_SETransition_SETransition);function p2697_Crossfade_Crossfade_new(){p2697_SETransition_SETransition_new.call(this);return this}p2697_Crossfade_Crossfade.prototype.m_OnLoad=function(){this.f__previousOnTop=false;this.f__startDuration=1E3;this.f__endDuration=0};p2697_Crossfade_Crossfade.prototype.m_Update4=function(a){this.f__alpha=p2697_Tools_SC_Ease(3,a/this.f__startDuration,0,1,1)};
p2697_Crossfade_Crossfade.prototype.m_UpdatePrevious2=function(a){this.f__alpha=1-p2697_Tools_SC_Ease(3,a/this.f__startDuration,0,1,1)};function p2697_Scissor_Scissor(){p2697_SETransition_SETransition.call(this);this.f__ease=this.f__mode=0}p2697_Scissor_Scissor.prototype=extend_class(p2697_SETransition_SETransition);function p2697_Scissor_Scissor_new(){p2697_SETransition_SETransition_new.call(this);return this}
p2697_Scissor_Scissor.prototype.m_OnLoad=function(){this.f__mode=this.m_getParamInt();this.f__ease=0;this.f__previousOnTop=false;this.f__startDuration=2E3;this.f__endDuration=0;if(this.f__ease==0)this.f__ease=3;if(this.f__ease==1)this.f__ease=14;if(this.f__ease==2)this.f__ease=16};
p2697_Scissor_Scissor.prototype.m_Update4=function(a){var b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight(),d=0,e=0,f=b,g=c,a=p2697_Tools_SC_Ease(this.f__ease,a/this.f__startDuration,0,1,1),h=this.f__mode;h==0?(e=(c/2|0)-(c/2|0)*a|0,g=((c/2|0)-e)*2):h==1?(d=(b/2|0)-(b/2|0)*a|0,f=((b/2|0)-d)*2):h==2&&(e=(c/2|0)-(c/2|0)*a|0,g=((c/2|0)-e)*2,d=(b/2|0)-(b/2|0)*a|0,f=((b/2|0)-d)*2);p2697_graphics_SetScissor(d,e,f,g)};
function p2697_Zoom_Zoom(){p2697_SETransition_SETransition.call(this);this.f__ease=this.f__mode=0}p2697_Zoom_Zoom.prototype=extend_class(p2697_SETransition_SETransition);function p2697_Zoom_Zoom_new(){p2697_SETransition_SETransition_new.call(this);return this}
p2697_Zoom_Zoom.prototype.m_OnLoad=function(){this.f__previousOnTop=false;this.f__startDuration=2E3;this.f__endDuration=0;this.f__mode=this.m_getParamInt();this.f__ease=0;if(this.f__ease==0)this.f__ease=3;if(this.f__ease==1)this.f__ease=14;if(this.f__ease==2)this.f__ease=16};
p2697_Zoom_Zoom.prototype.m_Update4=function(a){var a=p2697_Tools_SC_Ease(this.f__ease,a/this.f__startDuration,0,1,1),b=p2697_BEPlayer_Player.f__file.m_getWidth(),c=p2697_BEPlayer_Player.f__file.m_getHeight();p2697_graphics_Translate(b/2|0,c/2|0);var d=0,e=this.f__mode;e==0?d=(1-a)*3+1:e==1?(d=(1-a)*3+1,p2697_graphics_Rotate((1-a)*360)):e==2?d=(1-a)*-0.9+1:e==3&&(d=(1-a)*-0.9+1,p2697_graphics_Rotate((1-a)*360));p2697_graphics_Scale(d,d);p2697_graphics_Translate(-b/2|0,-c/2|0);this.f__alpha=a};
function p2697_app_SetUpdateRate(a){return p2697_app_device.SetUpdateRate(a)}function p2697_app_Millisecs(){return p2697_app_device.MilliSecs()}function p2697_input_MouseDown(a){return p2697_input_device.KeyDown(1+a)}function p2697_graphics_Cls(a,b,c){p2697_graphics_renderDevice.Cls(a,b,c);return 0}
function p2697_Particles_ParticleEmitter(){Object.call(this);this.f__flagUpdate=false;this.f__scatter=this.f__height=this.f__width=this.f__y=this.f__x=this.f__gravity=0;this.f__rotate=this.f__reduceSize=false;this.f__debit=this.f__decayRate=0;this.f__totalParticles=30;this.f__baseScale=this.f__b=this.f__g=this.f__r=this.f__frame=0;this.f__particleImage=null;this.f__remainingParticles=0;this.f__particles=p2697_list_List_new.call(new p2697_list_List);this.f__slideIndex=this.f__angle=0}
function p2697_Particles_ParticleEmitter_new(a,b,c,d,e,f,g,h,i,j,k,o,p,l,m,n){this.f__gravity=e;this.f__x=a;this.f__y=b;this.f__width=j;this.f__height=k;this.f__scatter=c;this.f__reduceSize=f;this.f__rotate=g;this.f__decayRate=i;this.f__debit=h;this.f__totalParticles=o;this.f__frame=d;this.f__r=l;this.f__g=m;this.f__b=n;this.f__baseScale=p;this.f__particleImage=p2697_graphics_LoadImage("p_"+String(l)+String(m)+String(n)+".png",4,1);this.f__remainingParticles=this.f__totalParticles;return this}
function p2697_Particles_ParticleEmitter_new2(){return this}
p2697_Particles_ParticleEmitter.prototype.m_Update2=function(){for(var a=p2697_list_List_new.call(new p2697_list_List),b=this.f__particles.m_ObjectEnumerator();b.m_HasNext();){var c=b.m_NextObject();c.m_Update5(this.f__gravity);c.f__age>0&&a.m_AddLast(c)}this.f__particles=a;this.f__remainingParticles=this.f__particles.m_Count();a=false;if(this.f__flagUpdate==true){if(this.f__remainingParticles<this.f__totalParticles&&p2697_random_Rnd3(this.f__debit)<1)for(b=0;b<=2;b+=1)this.f__particles.m_AddLast(p2697_Particles_Particle_new.call(new p2697_Particles_Particle,
this.f__x,this.f__y,this.f__scatter,this.f__decayRate,this.f__width,this.f__height,this.f__angle))}else this.f__remainingParticles==0&&(a=true);for(b=this.f__particles.m_ObjectEnumerator();b.m_HasNext();){c=b.m_NextObject();p2697_graphics_SetAlpha(c.f__age);p2697_graphics_SetColor(255,255,255);var d=0;this.f__rotate&&(d=c.f__age*90);var e=this.f__baseScale;this.f__reduceSize&&(e=e*c.f__age/2+0.5);p2697_graphics_DrawImage2(this.f__particleImage,c.f__x,c.f__y,d,e,e,this.f__frame);p2697_graphics_SetColor(255,255,
255);p2697_graphics_SetAlpha(1)}return a};
function p2697_graphics_PushMatrix(){var a=p2697_graphics_context.f_matrixSp;p2697_graphics_context.f_matrixStack[a+0]=p2697_graphics_context.f_ix;p2697_graphics_context.f_matrixStack[a+1]=p2697_graphics_context.f_iy;p2697_graphics_context.f_matrixStack[a+2]=p2697_graphics_context.f_jx;p2697_graphics_context.f_matrixStack[a+3]=p2697_graphics_context.f_jy;p2697_graphics_context.f_matrixStack[a+4]=p2697_graphics_context.f_tx;p2697_graphics_context.f_matrixStack[a+5]=p2697_graphics_context.f_ty;p2697_graphics_context.f_matrixSp=a+6;return 0}
function p2697_graphics_ValidateMatrix(){if(p2697_graphics_context.f_matDirty!=0)p2697_graphics_context.f_device.SetMatrix(p2697_graphics_context.f_ix,p2697_graphics_context.f_iy,p2697_graphics_context.f_jx,p2697_graphics_context.f_jy,p2697_graphics_context.f_tx,p2697_graphics_context.f_ty),p2697_graphics_context.f_matDirty=0;return 0}function p2697_graphics_DrawRect(a,b,c,d){p2697_graphics_ValidateMatrix();p2697_graphics_renderDevice.DrawRect(a,b,c,d);return 0}
function p2697_graphics_Transform(a,b,c,d,e,f){p2697_graphics_SetMatrix(a*p2697_graphics_context.f_ix+b*p2697_graphics_context.f_jx,a*p2697_graphics_context.f_iy+b*p2697_graphics_context.f_jy,c*p2697_graphics_context.f_ix+d*p2697_graphics_context.f_jx,c*p2697_graphics_context.f_iy+d*p2697_graphics_context.f_jy,e*p2697_graphics_context.f_ix+f*p2697_graphics_context.f_jx+p2697_graphics_context.f_tx,e*p2697_graphics_context.f_iy+f*p2697_graphics_context.f_jy+p2697_graphics_context.f_ty);return 0}
function p2697_graphics_Transform2(a){for(var b=new_number_array(a.length),c=0;c<a.length-1;c+=2){var d=a[c],e=a[c+1];b[c]=d*p2697_graphics_context.f_ix+e*p2697_graphics_context.f_jx+p2697_graphics_context.f_tx;b[c+1]=d*p2697_graphics_context.f_iy+e*p2697_graphics_context.f_jy+p2697_graphics_context.f_ty}return b}function p2697_graphics_Translate(a,b){p2697_graphics_Transform(1,0,0,1,a,b);return 0}
function p2697_graphics_PopMatrix(){var a=p2697_graphics_context.f_matrixSp-6;p2697_graphics_SetMatrix(p2697_graphics_context.f_matrixStack[a+0],p2697_graphics_context.f_matrixStack[a+1],p2697_graphics_context.f_matrixStack[a+2],p2697_graphics_context.f_matrixStack[a+3],p2697_graphics_context.f_matrixStack[a+4],p2697_graphics_context.f_matrixStack[a+5]);p2697_graphics_context.f_matrixSp=a;return 0}
function p2697_graphics_DrawImage(a,b,c,d){d=a.f_frames[d];p2697_graphics_context.f_tformed!=0?(p2697_graphics_PushMatrix(),p2697_graphics_Translate(b-a.f_tx,c-a.f_ty),p2697_graphics_ValidateMatrix(),(a.f_flags&65536)!=0?p2697_graphics_context.f_device.DrawSurface(a.f_surface,0,0):p2697_graphics_context.f_device.DrawSurface2(a.f_surface,0,0,d.f_x,d.f_y,a.f_width,a.f_height),p2697_graphics_PopMatrix()):(p2697_graphics_ValidateMatrix(),(a.f_flags&65536)!=0?p2697_graphics_context.f_device.DrawSurface(a.f_surface,b-a.f_tx,c-a.f_ty):
p2697_graphics_context.f_device.DrawSurface2(a.f_surface,b-a.f_tx,c-a.f_ty,d.f_x,d.f_y,a.f_width,a.f_height));return 0}function p2697_graphics_Rotate(a){p2697_graphics_Transform(Math.cos(a*D2R),-Math.sin(a*D2R),Math.sin(a*D2R),Math.cos(a*D2R),0,0);return 0}function p2697_graphics_Scale(a,b){p2697_graphics_Transform(a,0,0,b,0,0);return 0}
function p2697_graphics_DrawImage2(a,b,c,d,e,f,g){g=a.f_frames[g];p2697_graphics_PushMatrix();p2697_graphics_Translate(b,c);p2697_graphics_Rotate(d);p2697_graphics_Scale(e,f);p2697_graphics_Translate(-a.f_tx,-a.f_ty);p2697_graphics_ValidateMatrix();(a.f_flags&65536)!=0?p2697_graphics_context.f_device.DrawSurface(a.f_surface,0,0):p2697_graphics_context.f_device.DrawSurface2(a.f_surface,0,0,g.f_x,g.f_y,a.f_width,a.f_height);p2697_graphics_PopMatrix();return 0}
function p2697_Particles_Particle(){Object.call(this);this.f__y=this.f__yd=this.f__x=this.f__xd=0;this.f__age=1;this.f__decayRate=0}p2697_Particles_Particle.prototype.m_Update5=function(a){this.f__x+=this.f__xd;this.f__y+=this.f__yd+a;if(this.f__x<0||this.f__x>p2697_graphics_DeviceWidth())this.f__age=0;if(this.f__y<0||this.f__y>p2697_graphics_DeviceHeight())this.f__age=0;this.f__age-=this.f__decayRate};
function p2697_Particles_Particle_new(a,b,c,d,e,f,g){var e=p2697_random_Rnd2(-e/2|0,e/2|0),h=p2697_random_Rnd2(-f/2|0,f/2|0),f=Math.cos(g*D2R)*e-Math.sin(g*D2R)*h,g=Math.cos(g*D2R)*h+Math.sin(g*D2R)*e;this.f__x=a+f;this.f__y=b+g;this.f__xd=p2697_random_Rnd2(-c,c);this.f__yd=p2697_random_Rnd2(-c,c);this.f__age=p2697_random_Rnd();this.f__decayRate=p2697_random_Rnd2(d/2,d);return this}function p2697_Particles_Particle_new2(){return this}
function p2697_list_List(){Object.call(this);this.f__head=p2697_list_HeadNode_new.call(new p2697_list_HeadNode)}function p2697_list_List_new(){return this}p2697_list_List.prototype.m_AddLast=function(a){return p2697_list_Node_new.call(new p2697_list_Node,this.f__head,this.f__head.f__pred,a)};function p2697_list_List_new2(a){for(var b=0;b<a.length;){var c=a[b];b+=1;this.m_AddLast(c)}return this}p2697_list_List.prototype.m_ObjectEnumerator=function(){return p2697_list_Enumerator_new.call(new p2697_list_Enumerator,this)};
p2697_list_List.prototype.m_Count=function(){for(var a=0,b=this.f__head.f__succ;b!=this.f__head;)b=b.f__succ,a+=1;return a};function p2697_list_Node(){Object.call(this);this.f__data=this.f__pred=this.f__succ=null}function p2697_list_Node_new(a,b,c){this.f__succ=a;this.f__pred=b;this.f__succ.f__pred=this;this.f__pred.f__succ=this;this.f__data=c;return this}function p2697_list_Node_new2(){return this}function p2697_list_HeadNode(){p2697_list_Node.call(this)}p2697_list_HeadNode.prototype=extend_class(p2697_list_Node);
function p2697_list_HeadNode_new(){p2697_list_Node_new2.call(this);this.f__succ=this;this.f__pred=this;return this}function p2697_list_Enumerator(){Object.call(this);this.f__curr=this.f__list=null}function p2697_list_Enumerator_new(a){this.f__list=a;this.f__curr=a.f__head.f__succ;return this}function p2697_list_Enumerator_new2(){return this}p2697_list_Enumerator.prototype.m_HasNext=function(){for(;this.f__curr.f__succ.f__pred!=this.f__curr;)this.f__curr=this.f__curr.f__succ;return this.f__curr!=this.f__list.f__head};
p2697_list_Enumerator.prototype.m_NextObject=function(){var a=this.f__curr.f__data;this.f__curr=this.f__curr.f__succ;return a};var p2697_random_Seed;function p2697_random_Rnd(){p2697_random_Seed=p2697_random_Seed*1664525+1013904223|0;return(p2697_random_Seed>>8&16777215)/16777216}function p2697_random_Rnd2(a,b){return p2697_random_Rnd3(b-a)+a}function p2697_random_Rnd3(a){return p2697_random_Rnd()*a}function p2697_graphics_GetAlpha(){return p2697_graphics_context.f_alpha}
function p2697_Tools_Round(a){var b=a|0;return a-(b/2|0)*2>=0.5?b+1:b}
function p2697_graphics_DrawImageRect(a,b,c,d,e,f,g,h){h=a.f_frames[h];p2697_graphics_context.f_tformed!=0?(p2697_graphics_PushMatrix(),p2697_graphics_Translate(-a.f_tx+b,-a.f_ty+c),p2697_graphics_ValidateMatrix(),p2697_graphics_context.f_device.DrawSurface2(a.f_surface,0,0,d+h.f_x,e+h.f_y,f,g),p2697_graphics_PopMatrix()):(p2697_graphics_ValidateMatrix(),p2697_graphics_context.f_device.DrawSurface2(a.f_surface,-a.f_tx+b,-a.f_ty+c,d+h.f_x,e+h.f_y,f,g));return 0}
function p2697_graphics_DrawImageRect2(a,b,c,d,e,f,g,h,i,j,k){k=a.f_frames[k];p2697_graphics_PushMatrix();p2697_graphics_Translate(b,c);p2697_graphics_Rotate(h);p2697_graphics_Scale(i,j);p2697_graphics_Translate(-a.f_tx,-a.f_ty);p2697_graphics_ValidateMatrix();p2697_graphics_context.f_device.DrawSurface2(a.f_surface,0,0,d+k.f_x,e+k.f_y,f,g);p2697_graphics_PopMatrix();return 0}function p2697_input_MouseX(){return p2697_input_device.MouseX()}function p2697_input_MouseY(){return p2697_input_device.MouseY()}
function p2697_graphics_InvTransform(a){for(var b=p2697_graphics_context.f_ix,c=p2697_graphics_context.f_jx,d=p2697_graphics_context.f_tx,e=p2697_graphics_context.f_iy,f=p2697_graphics_context.f_jy,g=p2697_graphics_context.f_ty,h=1/(b*f-e*c),i=f*h,j=-c*h,c=(c*g-f*d)*h,f=-e*h,k=b*h,b=(e*d-b*g)*h,d=new_number_array(a.length),e=0;e<a.length-1;e+=2)g=a[e],h=a[e+1],d[e]=g*i+h*j+c,d[e+1]=g*f+h*k+b;return d}var p2697_BEPlayer_DebugString;
function p2697_graphics_DrawText(a,b,c,d,e){if(p2697_graphics_context.f_font==null)return 0;var f=p2697_graphics_context.f_font.m_Width(),g=p2697_graphics_context.f_font.m_Height();b-=f*a.length*d;c-=g*e;for(d=0;d<a.length;d+=1)e=a.charCodeAt(d)-p2697_graphics_context.f_firstChar,e>=0&&e<p2697_graphics_context.f_font.m_Frames()&&p2697_graphics_DrawImage(p2697_graphics_context.f_font,b+d*f,c,e);return 0}var p2697_BEPlayer_ErrorString;
function p2697_Tools_SC_Ease(a,b,c,d,e){var f=0,g=f=f=0;d-=c;if(a==0)return c+b/e*d;else if(a==16)return b/=e,b<0.363636?d*7.5625*b*b+c:b<0.727273?(b-=0.545455,d*(7.5625*b*b+0.75)+c):b<0.909091?(b-=0.818182,d*(7.5625*b*b+0.9375)+c):(b-=0.954545,d*(7.5625*b*b+0.984375)+c);else if(a==15){g=2.59491;b/=e/2;if(b<1)return d/2*b*b*((g+1)*b-g)+c;b-=2;return d/2*(b*b*((g+1)*b+g)+2)+c}else if(a==14)return g=1.70158,b=b/e-1,d*(b*b*((g+1)*b+g)+1)+c;else if(a==13)return g=1.70158,b/=e,d*b*b*((g+1)*b-g)+c;else if(a==
12){if(b==0)return c;b/=e/2;if(b==2)return c+d;f=e*0.45;g=f/4;if(b<1)return b-=1,f=(b*e-g)*6.2831853/f*180/3.14159265,-0.5*d*Math.pow(2,10*b)*Math.sin(f*D2R)+c;b-=1;f=(b*e-g)*6.2831853/f;return d*Math.pow(2,-10*b)*Math.sin(f*D2R)*0.5+d+c}else if(a==11){if(b==0)return c;b/=e;if(b==1)return c+d;f=e*0.3;f=(b*e-f/4)*6.2831853/f*180/3.14159265;return d*Math.pow(2,-10*b)*Math.sin(f*D2R)+d+c}else if(a==10){if(b==0)return c;b/=e;if(b==1)return c+d;f=e*0.3;b-=1;f=(b*e-f/4)*6.2831853/f*180/3.14159265;return-(d*
Math.pow(2,10*b)*Math.sin(f*D2R))+c}else if(a==9){if(b==0)return c;if(b==e)return c+d;b/=e/2;f=10*(b-1);if(b<1)return d/2*Math.pow(2,f)+c;b-=1;return d/2*(-Math.pow(2,-10*b)+2)+c}else if(a==8)return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c;else if(a==7)return b==0?c:d*Math.pow(2,10*(b/e-1))+c;else if(a==6){b/=e/2;if(b<1)return d/2*b*b*b*b*b+c;b-=2;return d/2*(b*b*b*b*b+2)+c}else if(a==5)return b=b/e-1,d*(b*b*b*b*b+1)+c;else if(a==4)return b/=e,d*b*b*b*b*b+c;else if(a==3){b/=e/2;if(b<1)return d/2*b*b*
b*b+c;b-=2;return-d/2*(b*b*b*b-2)+c}else if(a==2)return b=b/e-1,-d*(b*b*b*b-1)+c;else if(a==1)return b/=e,d*b*b*b*b+c;return 0}function p2697Init(){p2697_BEPlayer_Player=p2697_app_device=p2697_audio_device=p2697_input_device=p2697_graphics_context=null;p2697_graphics_Image_DefaultFlags=0;p2697_BEPlayer__stampTrial=p2697_graphics_renderDevice=null;p2697_random_Seed=1234;p2697_BEPlayer_ErrorString=p2697_BEPlayer_DebugString=""};


Partager le fichier


Télécharger double-craft.js


Télécharger double-craft.js