// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var cr={plugins:{},behaviors:{}};
(function(){cr.RGB=function(b,a,h){return Math.max(Math.min(b,255),0)|Math.max(Math.min(a,255),0)<<8|Math.max(Math.min(h,255),0)<<16};cr.vector2=function(b,a){this.x=b;this.y=a};var c=cr.vector2.prototype;c.offset=function(b){this.x+=b.x;this.y+=b.y;return this};c.neg=function(){return new cr.vector2(-this.x,-this.y)};c.mul=function(b){this.x*=b.x;this.y*=b.y;return this};cr.segments_intersect=function(b,a,h,e){var j=h.x-b.x+e.x-a.x,c=h.y-b.y+e.y-a.y,d=a.x-b.x,b=a.y-b.y,a=e.x-h.x,h=e.y-h.y,e=Math.abs(b*
a-h*d);return Math.abs(a*c-h*j)<e&&Math.abs(d*c-b*j)<e};cr.rect=function(b,a,h,e){this.left=b;this.top=a;this.right=h;this.bottom=e};c=cr.rect.prototype;c.width=function(){return this.right-this.left};c.height=function(){return this.bottom-this.top};c.topleft=function(){return new cr.vector2(this.left,this.top)};c.topright=function(){return new cr.vector2(this.right,this.top)};c.bottomright=function(){return new cr.vector2(this.right,this.bottom)};c.bottomleft=function(){return new cr.vector2(this.left,
this.bottom)};c.offset=function(b){this.left+=b.x;this.top+=b.y;this.right+=b.x;this.bottom+=b.y;return this};c.intersects_rect=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};c.contains_pt=function(b){return b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom};c.to_quad=function(){return new cr.quad(this.topleft(),this.topright(),this.bottomright(),this.bottomleft())};c.rotate_to_quad=function(b){if(b==0)return this.to_quad();else{var a=
Math.sin(b),h=Math.cos(b),b=this.left*a,e=this.top*a,j=this.right*a;a*=this.bottom;var c=this.left*h,d=this.top*h,f=this.right*h;h*=this.bottom;return new cr.quad(new cr.vector2(c-e,d+b),new cr.vector2(f-e,d+j),new cr.vector2(f-a,h+j),new cr.vector2(c-a,h+b))}};cr.quad=function(b,a,h,e){this.tl=b;this.tr=a;this.br=h;this.bl=e};c=cr.quad.prototype;c.offset=function(b){this.tl.offset(b);this.tr.offset(b);this.br.offset(b);this.bl.offset(b);return this};c.bounding_box=function(){return new cr.rect(Math.min(this.tl.x,
this.tr.x,this.br.x,this.bl.x),Math.min(this.tl.y,this.tr.y,this.br.y,this.bl.y),Math.max(this.tl.x,this.tr.x,this.br.x,this.bl.x),Math.max(this.tl.y,this.tr.y,this.br.y,this.bl.y))};c.contains_pt=function(b){var a=this.tl.neg().offset(this.tr),h=this.tl.neg().offset(this.br),b=this.tl.neg().offset(b),e=cr.dot2(a,a),j=cr.dot2(a,h),c=cr.dot2(a,b),d=cr.dot2(h,h),f=cr.dot2(h,b),g=1/(e*d-j*j),a=(d*c-j*f)*g,e=(e*f-j*c)*g;if(a>=0&&e>0&&a+e<1)return!0;a=this.tl.neg().offset(this.bl);e=cr.dot2(a,a);j=cr.dot2(a,
h);c=cr.dot2(a,b);g=1/(e*d-j*j);a=(d*c-j*f)*g;e=(e*f-j*c)*g;return a>=0&&e>0&&a+e<1};c.at=function(b){b%=4;b<0&&(b+=4);switch(b){case 0:return this.tl;case 1:return this.tr;case 2:return this.br;case 3:return this.bl;default:return this.tl}};c.intersects_quad=function(b){var a=new cr.vector2((b.tl.x+b.tr.x+b.br.x+b.bl.x)/4,(b.tl.y+b.tr.y+b.br.y+b.bl.y)/4);if(this.contains_pt(a))return!0;a.x=(this.tl.x+this.tr.x+this.br.x+this.bl.x)/4;a.y=(this.tl.y+this.tr.y+this.br.y+this.bl.y)/4;if(b.contains_pt(a))return!0;
for(var h,a=0;a<4;a++)for(h=0;h<4;h++)if(cr.segments_intersect(this.at(a),this.at(a+1),b.at(h),b.at(h+1)))return!0;return!1};cr.dot2=function(b,a){return b.x*a.x+b.y*a.y};cr.shallowCopy=function(b,a){for(var h in a)a.hasOwnProperty(h)&&(b[h]=a[h])};cr.arrayRemove=function(b,a){var h;a<1?b.shift():(h=b.slice(a+1),b.length=a,b.push.apply(b,h))};cr.arrayFindRemove=function(b,a){var h=jQuery.inArray(a,b);cr.arrayRemove(b,h)};cr.clamp=function(b,a,h){return b<a?a:b>h?h:b};cr.to_radians=function(b){return b/
(180/Math.PI)};cr.to_degrees=function(b){return b*(180/Math.PI)};cr.clamp_angle_degrees=function(b){b%=360;b<0&&(b+=360);return b};cr.clamp_angle=function(b){b%=2*Math.PI;b<0&&(b+=2*Math.PI);return b};cr.to_clamped_degrees=function(b){return cr.clamp_angle_degrees(cr.to_degrees(b))};cr.to_clamped_radians=function(b){return cr.clamp_angle(cr.to_radians(b))};cr.angleDiff=function(b,a){return b===a?0:Math.acos(Math.sin(b)*Math.sin(a)+Math.cos(b)*Math.cos(a))};cr.angleRotate=function(b,a,h){var e=Math.sin(b),
j=Math.cos(b),c=Math.sin(a),d=Math.cos(a);return Math.acos(e*c+j*d)>h?j*c-e*d>0?cr.clamp_angle(b+h):cr.clamp_angle(b-h):cr.clamp_angle(a)};cr.angleClockwise=function(b,a){return Math.cos(b)*Math.sin(a)-Math.sin(b)*Math.cos(a)<=0};cr.xor=function(b,a){return!b!=!a};cr.lerp=function(b,a,h){return b+(a-b)*h};cr.ObjectSet=function(){this.items={};this.item_count=0;this.values_cache=[];this.cache_valid=!0};c=cr.ObjectSet.prototype;c.contains=function(b){return this.items.hasOwnProperty(b.toString())};
c.add=function(b){if(!this.contains(b))this.items[b.toString()]=b,this.item_count++,this.cache_valid=!1;return this};c.remove=function(b){if(this.contains(b))delete this.items[b.toString()],this.item_count--,this.cache_valid=!1;return this};c.clear=function(){this.items={};this.item_count=0;this.values_cache=[];this.cache_valid=!0;return this};c.isEmpty=function(){return this.item_count===0};c.count=function(){return this.item_count};c.values=function(){if(!this.cache_valid){this.values_cache=[];
for(var b in this.items)this.items.hasOwnProperty(b)&&this.values_cache.push(this.items[b]);this.cache_valid=!0}return this.values_cache.slice(0)};cr.KahanAdder=function(){this.sum=this.t=this.y=this.c=0};c=cr.KahanAdder.prototype;c.add=function(b){this.y=b-this.c;this.t=this.sum+this.y;this.c=this.t-this.sum-this.y;this.sum=this.t};c.reset=function(){this.sum=this.t=this.y=this.c=0}})();
(function(){cr.runtime=function(a){if(a&&a.getContext)this.canvas=a,this.ctx=a.getContext("2d"),a.c2runtime=this,this.width=a.width,this.height=a.height,this.redraw=!0,this.deathRow=new cr.ObjectSet,this.dt1=this.dt=0,this.timescale=1,this.kahanTime=new cr.KahanAdder,this.last_tick_time=0,this.measuring_dt=!0,this.objectcount=this.framecount=this.tickcount=this.fps=0,this.changelayout=null,this.destroycallbacks=[],this.event_stack=[],this.pushEventStack(null),this.loop_stack=[],this.next_uid=0,this.objects_to_tick=
new cr.ObjectSet,this.activeGroups={}};var c=cr.runtime.prototype;c.load=function(){if(this.ctx){cr.shallowCopy(this,cr.projectmodel);var a,b,e,j,c;this.system=new cr.system_object(this);var d={};a=0;for(b=this.plugins.length;a<b;a++){c=this.plugins[a].idstr;var f=new cr.plugins[c](this);cr.shallowCopy(f,this.plugins[a]);cr.add_common_aces(f);if(f.onCreate)f.onCreate();d[c]=f}this.plugins=d;this.wait_for_textures=[];this.types_by_index=[];d={};this.behaviors={};this.behaviors_by_index=[];a=0;for(b=
this.types.length;a<b;a++){var f=this.plugins[this.types[a].plugin_id],g=new f.Type(f);cr.shallowCopy(g,this.types[a]);g.index=a;g.instances=[];g.solstack=[new cr.selection(g)];g.cur_sol=0;g.stale_iids=!0;g.updateIIDs=cr.type_updateIIDs;g.getFirstPicked=cr.type_getFirstPicked;g.getPairedInstance=cr.type_getPairedInstance;g.getCurrentSol=cr.type_getCurrentSol;g.pushCleanSol=cr.type_pushCleanSol;g.pushCopySol=cr.type_pushCopySol;g.popSol=cr.type_popSol;g.getBehaviorByName=cr.type_getBehaviorByName;
g.getBehaviorIndexByName=cr.type_getBehaviorIndexByName;var k=[];e=0;for(j=g.behaviors.length;e<j;e++){var m=g.behaviors[e];c=m.behavior_id;var l;if(!this.behaviors[c]){l=new cr.behaviors[c](this);l.my_instances=new cr.ObjectSet;if(l.onCreate)l.onCreate();this.behaviors[c]=l;this.behaviors_by_index.push(l)}l=this.behaviors[c];c=new this.behaviors[m.behavior_id].Type(l,g);cr.shallowCopy(c,m);c.onCreate();k.push(c)}g.behaviors=k;g.onCreate();d[g.name]=g;this.types_by_index.push(g);if(f.singleglobal)f=
new f.Instance(g),f.uid=this.next_uid,this.next_uid++,f.iid=0,f.get_iid=cr.inst_get_iid,f.toString=cr.inst_toString,f.onCreate(),g.instances.push(f)}this.types=d;f={};this.layouts_by_index=[];a=0;for(b=this.layouts.length;a<b;a++)d=new cr.layout(this),cr.shallowCopy(d,this.layouts[a]),d.init(),f[d.name]=d,this.layouts_by_index.push(d);this.layouts=f;f={};this.eventsheets_by_index=[];this.triggers_to_postinit=[];a=0;for(b=this.eventsheets.length;a<b;a++)d=new cr.eventsheet(this),cr.shallowCopy(d,this.eventsheets[a]),
d.init(),f[this.eventsheets[a].name]=d,this.eventsheets_by_index.push(d);this.eventsheets=f;a=0;for(b=this.eventsheets_by_index.length;a<b;a++)this.eventsheets_by_index[a].postInit();a=0;for(b=this.triggers_to_postinit.length;a<b;a++)this.triggers_to_postinit[a].postInit();delete this.triggers_to_postinit;this.start_time=(new Date).getTime()}};c.areAllTexturesLoaded=function(){var a=0,b=0,e=!0,j,c;j=0;for(c=this.wait_for_textures.length;j<c;j++){var d=this.wait_for_textures[j].cr_filesize;if(!d||
d<=0)d=5E4;a+=d;this.wait_for_textures[j].complete?b+=d:e=!1}this.progress=a==0?0:b/a;return e};c.go=function(){if(this.ctx)if(this.progress=0,this.last_progress=-1,this.areAllTexturesLoaded())this.go_textures_done();else{if((new Date).getTime()-this.start_time>=500&&this.last_progress!=this.progress)this.ctx.clearRect(0,0,this.width,this.height),this.ctx.font="20pt Arial",this.ctx.textBaseline="top",this.ctx.fillStyle="rgb(0,0,0)",this.ctx.fillText("Loading ("+Math.round(this.progress*100)+"%)",
10,10),this.last_progress=this.progress;setTimeout(function(a){return function(){a.go()}}(this),16)}};c.go_textures_done=function(){this.first_layout?this.layouts[this.first_layout].startRunning():this.layouts_by_index[0].startRunning();this.last_fps_time=this.start_time=(new Date).getTime();this.tick();setInterval(function(a){return function(){a.tick()}}(this),16)};c.tick=function(){this.logic();if(this.redraw)this.draw(),this.redraw=!1;this.tickcount++;this.framecount++};c.logic=function(){var a,
b,e,j,c,d;a=(new Date).getTime();if(a-this.last_fps_time>=1E3)this.last_fps_time+=1E3,this.fps=this.framecount,this.framecount=0;if(this.measuring_dt){if(this.last_tick_time!=0)if(b=a-this.last_tick_time,b==0)this.measuring_dt=!1,this.dt1=1/60;else if(this.dt1=b/1E3,this.dt1>0.1)this.dt1=0.1;this.last_tick_time=a}this.dt=this.dt1*this.timescale;this.kahanTime.add(this.dt);this.ClearDeathRow();if(this.changelayout)this.running_layout.stopRunning(),this.changelayout.startRunning(),this.changelayout=
null,this.redraw=!0;a=0;for(b=this.types_by_index.length;a<b;a++){var f=this.types_by_index[a];e=0;for(j=f.instances.length;e<j;e++){var g=f.instances[e];if(g.behavior_insts){c=0;for(d=g.behavior_insts.length;c<d;c++)g.behavior_insts[c].tick()}}}e=this.objects_to_tick.values();a=0;for(b=e.length;a<b;a++)e[a].tick();a=0;for(b=this.eventsheets_by_index.length;a<b;a++)this.eventsheets_by_index[a].hasRun=!1;this.running_layout.event_sheet&&this.running_layout.event_sheet.run()};c.tickMe=function(a){this.objects_to_tick.add(a)};
c.getDt=function(a){return!a||a.my_timescale===-1?this.dt:this.dt1*a.my_timescale};c.draw=function(){this.running_layout.draw(this.ctx)};c.addDestroyCallback=function(a){a&&this.destroycallbacks.push(a)};c.DestroyInstance=function(a){this.deathRow.add(a)};c.ClearDeathRow=function(){var a,b,e,j,c,d,f=this.deathRow.values();e=0;for(c=f.length;e<c;e++){a=f[e];b=a.type.instances;j=0;for(d=this.destroycallbacks.length;j<d;j++)this.destroycallbacks[j](a);cr.arrayFindRemove(b,a);a.layer&&cr.arrayFindRemove(a.layer.instances,
a);if(a.behavior_insts){j=0;for(d=a.behavior_insts.length;j<d;j++)a.behavior_insts[j].behavior.my_instances.remove(a)}this.objects_to_tick.remove(a);this.objectcount--}if(!this.deathRow.isEmpty())this.redraw=!0;this.deathRow.clear()};c.createInstance=function(a,b){return this.createInstanceFromInit(a.default_instance,b,!1)};c.createInstanceFromInit=function(a,b){var e=a.type,j=a.type.plugin.is_world,c=new e.plugin.Instance(e);cr.shallowCopy(c,a,!0);c.uid=this.next_uid;this.next_uid++;c.iid=0;c.get_iid=
cr.inst_get_iid;e.stale_iids=!0;if(a.instance_vars)c.instance_vars=a.instance_vars.slice(0);if(j&&!c.hasOwnProperty("opacity"))c.opacity=1;this.objectcount++;e.instances.push(c);if(j)c.bbox_changed_callbacks=[],c.set_bbox_changed=cr.set_bbox_changed,c.add_bbox_changed_callback=cr.add_bbox_changed_callback,c.contains_pt=cr.inst_contains_pt,c.bbox_changed=!0,c.update_bbox=cr.update_bbox,c.visible=!0,c.my_timescale=-1,c.layer=b;c.toString=cr.inst_toString;c.behavior_insts=[];var d,f;d=0;for(f=e.behaviors.length;d<
f;d++){var g=e.behaviors[d],k=new g.behavior.Instance(g,c);k.properties={};cr.shallowCopy(k.properties,a.init_behaviors[d]);k.onCreate();c.behavior_insts.push(k);g.behavior.my_instances.add(c)}c.onCreate();b&&b.instances.push(c);if(j)this.redraw=!0;return c};c.getLayerByName=function(a){var b,e;b=0;for(e=this.running_layout.layers.length;b<e;b++){var j=this.running_layout.layers[b];if(j.name===a)return j}return null};c.getLayerByNumber=function(a){a=Math.floor(a);a<0&&(a=0);a>=this.running_layout.layers.length&&
(a=this.running_layout.layers.length-1);return this.running_layout.layers[a]};cr.layout=function(a){this.runtime=a};var b=cr.layout.prototype;b.init=function(){var a,b;a=0;for(b=this.layers.length;a<b;a++){var e=new cr.layer(this);cr.shallowCopy(e,this.layers[a]);e.init();this.layers[a]=e}a=0;for(b=this.initial_nonworld.length;a<b;a++)if(e=this.initial_nonworld[a],e.type=this.runtime.types[e.type_name],!e.type.default_instance)e.type.default_instance=e};b.startRunning=function(){if(this.sheetname)this.event_sheet=
this.runtime.eventsheets[this.sheetname];this.runtime.running_layout=this;this.scrollY=this.scrollX=0;var a,b;a=0;for(b=this.layers.length;a<b;a++)this.layers[a].createInitialInstances();a=0;for(b=this.initial_nonworld.length;a<b;a++)this.runtime.createInstanceFromInit(this.initial_nonworld[a],null,!0);this.runtime.trigger("OnLayoutStart",null)};b.stopRunning=function(){this.runtime.trigger("OnLayoutEnd",null);var a,b,e,j,c,d;a=0;for(b=this.layers.length;a<b;a++)this.layers[a].instances.length=0;
var f=this.runtime.destroycallbacks;a=0;for(b=this.runtime.types_by_index.length;a<b;a++){var g=this.runtime.types_by_index[a];if(!g.plugin.singleglobal){this.runtime.objectcount-=g.instances.length;e=0;for(j=g.instances.length;e<j;e++){c=0;for(d=f.length;c<d;c++)f[c](g.instances[e]);delete g.instances[e]}g.instances.length=0}}a=0;for(b=this.runtime.behaviors_by_index.length;a<b;a++)this.runtime.behaviors_by_index[a].my_instances.clear()};b.draw=function(a){a.clearRect(0,0,this.runtime.width,this.runtime.height);
this.windowRight=this.scrollX+this.runtime.width;this.windowBottom=this.scrollY+this.runtime.height;var b,e;b=0;for(e=this.layers.length;b<e;b++)this.layers[b].visible&&this.layers[b].draw(a)};b.scrollToX=function(a){a-=this.runtime.width/2;a>this.width-this.runtime.width&&(a=this.width-this.runtime.width);a<0&&(a=0);if(this.scrollX!==a)this.scrollX=a,this.runtime.redraw=!0};b.scrollToY=function(a){a-=this.runtime.height/2;a>this.height-this.runtime.height&&(a=this.height-this.runtime.height);a<0&&
(a=0);if(this.scrollY!==a)this.scrollY=a,this.runtime.redraw=!0};cr.layer=function(a){this.layout=a;this.runtime=a.runtime;this.instances=[];this.visible=!0};b=cr.layer.prototype;b.init=function(){this.visible=this.initially_visible;var a,b;a=0;for(b=this.initial_instances.length;a<b;a++){var e=this.initial_instances[a];e.type=this.runtime.types[e.type_name];if(!e.type.default_instance)e.type.default_instance=e}};b.createInitialInstances=function(){var a,b;a=0;for(b=this.initial_instances.length;a<
b;a++)this.runtime.createInstanceFromInit(this.initial_instances[a],this,!0)};b.draw=function(a){var b=this.forceOwnTexture||this.opacity!=1,e=this.runtime.canvas,c=a;if(b){if(!this.runtime.layer_canvas)this.runtime.layer_canvas=document.createElement("canvas"),e=this.runtime.layer_canvas,e.width=this.runtime.width,e.height=this.runtime.height,this.runtime.layer_ctx=e.getContext("2d");e=this.runtime.layer_canvas;c=this.runtime.layer_ctx;if(e.width!=this.runtime.width)e.width=this.runtime.width;if(e.height!=
this.runtime.height)e.height=this.runtime.height;this.transparent&&c.clearRect(0,0,this.runtime.width,this.runtime.height)}if(!this.transparent)c.fillStyle=this.background_color,c.fillRect(0,0,this.runtime.width,this.runtime.height);c.save();var i=this.layout.scrollX*this.parallaxX,d=this.layout.scrollY*this.parallaxY;c.translate(-i,-d);var f=i+this.runtime.width,g=d+this.runtime.height,k,m;k=0;for(m=this.instances.length;k<m;k++){var l=this.instances[k];l.visible&&(l.update_bbox(),l.bbox.right<i||
l.bbox.bottom<d||l.bbox.left>f||l.bbox.top>g||this.instances[k].draw(c))}c.restore();if(b)a.globalAlpha=this.opacity,a.drawImage(e,0,0),a.globalAlpha=1};b.canvasToLayer=function(a){return new cr.vector2(this.layout.scrollX*this.parallaxX+a.x,this.layout.scrollY*this.parallaxY+a.y)};c.flip=function(a){var b=a.width,e=a.height,c=document.createElement("canvas");c.width=b;c.height=e;var i=c.getContext("2d");i.drawImage(a,0,0);var a=i.getImageData(0,0,b,e),d=i.createImageData(b,e),f=b*4,g,k,m,l;for(k=
0;k<e;k++)for(g=0;g<b;g++)m=k*f+g*4,l=(e-1-k)*f+g*4,d.data[l+0]=a.data[m+0],d.data[l+1]=a.data[m+1],d.data[l+2]=a.data[m+2],d.data[l+3]=a.data[m+3];i.putImageData(d,0,0);b=new Image;b.src=c.toDataURL();return b}})();
(function(){cr.eventsheet=function(a){this.runtime=a;this.triggers={};this.hasRun=!1;this.includes=new cr.ObjectSet};var c=cr.eventsheet.prototype;c.toString=function(){return this.name};c.init_event=function(a,b,c){a.type==="block"?(b=new cr.eventblock(this,b),cr.shallowCopy(b,a),b.init(),b.is_trigger()?this.init_trigger(b):c.push(b)):a.type==="variable"?(b=new cr.eventvariable(this,b),cr.shallowCopy(b,a),b.init(),c.push(b)):a.type==="include"&&(b=new cr.eventinclude(this,b),cr.shallowCopy(b,a),
b.init(),c.push(b))};c.init=function(){var b=[],a,c;a=0;for(c=this.events.length;a<c;a++)this.init_event(this.events[a],null,b);this.events=b};c.postInit=function(){var a,b;a=0;for(b=this.events.length;a<b;a++)this.events[a].postInit()};c.run=function(){this.hasRun=!0;var a,b;a=0;for(b=this.events.length;a<b;a++){var c=this.events[a];c.run();this.runtime.clearSol(c.solModifiers)}};cr.selection=function(a){this.type=a;this.instances=[];this.select_all=!0};var b=cr.selection.prototype;b.hasObjects=
function(){return this.select_all?this.type.instances.length:this.instances.length};b.getObjects=function(){return this.select_all?this.type.instances:this.instances};b.pick=function(a){this.select_all?(this.select_all=!1,this.instances=[a]):jQuery.inArray(a,this.instances)===-1&&this.instances.push(a)};b=cr.runtime.prototype;b.clearSol=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].getCurrentSol().select_all=!0};b.pushCleanSol=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].pushCleanSol()};
b.pushCopySol=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].pushCopySol()};b.popSol=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].popSol()};cr.eventblock=function(a,b){this.sheet=a;this.parent=b;this.runtime=a.runtime;this.solModifiers=[]};var a=cr.eventblock.prototype;a.init=function(){this.group&&this.active_on_start&&(this.runtime.activeGroups[this.group_name]=!0);var a,b;a=0;for(b=this.conditions.length;a<b;a++){var c=new cr.condition(this);cr.shallowCopy(c,this.conditions[a]);c.init();
this.conditions[a]=c;this.addSolModifier(c.type)}a=0;for(b=this.actions.length;a<b;a++)c=new cr.action(this),cr.shallowCopy(c,this.actions[a]),c.init(),this.actions[a]=c;if(this.subevents){c=[];a=0;for(b=this.subevents.length;a<b;a++)this.sheet.init_event(this.subevents[a],this,c);this.subevents=c}};a.postInit=function(){var a,b;a=0;for(b=this.conditions.length;a<b;a++)this.conditions[a].postInit();a=0;for(b=this.actions.length;a<b;a++)this.actions[a].postInit();if(this.subevents){a=0;for(b=this.subevents.length;a<
b;a++)this.subevents[a].postInit()}};a.addSolModifier=function(a){a&&jQuery.inArray(a,this.solModifiers)===-1&&this.solModifiers.push(a)};a.is_trigger=function(){return this.conditions.length?this.conditions[0].trigger:!1};a.run=function(){var a,b=this.runtime.getCurrentEventStack();b.current_event=this;b.cndindex=0;for(a=this.conditions.length;b.cndindex<a;b.cndindex++)if(!this.conditions[b.cndindex].run())return!1;this.run_actions_and_subevents()};a.run_actions_and_subevents=function(){var a,b,
c,i,d;a=0;for(b=this.actions.length;a<b;a++)this.actions[a].run();if(this.subevents){c=this.subevents.length-1;a=0;for(b=this.subevents.length;a<b;a++)i=this.subevents[a],(d=!this.group&&a<c)&&this.runtime.pushCopySol(i.solModifiers),i.run(),d?this.runtime.popSol(i.solModifiers):this.runtime.clearSol(i.solModifiers)}};a.run_pretrigger=function(){var a,b;a=0;for(b=this.conditions.length;a<b;a++)if(!this.conditions[a].run())return!1;return!0};a.retrigger=function(){var a=this.runtime.getCurrentEventStack().cndindex,
b=this.runtime.pushEventStack(this);b.cndindex=a+1;for(a=this.conditions.length;b.cndindex<a;b.cndindex++)if(!this.conditions[b.cndindex].run())return this.runtime.popEventStack(),!1;this.run_actions_and_subevents();this.runtime.popEventStack()};cr.condition=function(a){this.block=a;this.sheet=a.sheet;this.runtime=a.runtime};a=cr.condition.prototype;a.init=function(){this.type=="system"?(this.type=null,this.func=this.runtime.system.cnds[this.method],this.run=this.run_system):(this.type=this.runtime.types[this.type],
this.run=this.isstatic?this.run_static:this.run_object,this.behaviortype?(this.beh_index=this.type.getBehaviorIndexByName(this.behaviortype),this.behaviortype=this.type.getBehaviorByName(this.behaviortype),this.func=this.behaviortype.behavior.cnds[this.method]):(this.func=this.type.plugin.cnds[this.method],this.beh_index=-1));if(this.parameters){var a,b;a=0;for(b=this.parameters.length;a<b;a++){var c=new cr.parameter(this);cr.shallowCopy(c,this.parameters[a]);c.init();this.parameters[a]=c}this.results=
Array(this.parameters.length)}else this.results=[]};a.postInit=function(){var a,b;if(this.parameters){a=0;for(b=this.parameters.length;a<b;a++)this.parameters[a].postInit()}};a.run_system=function(){var a,b;if(this.parameters){a=0;for(b=this.parameters.length;a<b;a++)this.results[a]=this.parameters[a].get()}return cr.xor(this.func.apply(this.runtime.system,this.results),this.inverted)};a.run_static=function(){var a,b;if(this.parameters){a=0;for(b=this.parameters.length;a<b;a++)this.results[a]=this.parameters[a].get()}return this.func.apply(this.runtime,
this.results)};a.run_object=function(){var a,b,c,i,d,f=this.type.getCurrentSol();if(f.select_all){a=f.instances.length=0;for(c=this.type.instances.length;a<c;a++){d=this.type.instances[a];if(this.parameters){b=0;for(i=this.parameters.length;b<i;b++)this.results[b]=this.parameters[b].get(a)}b=this.beh_index>-1?this.func.apply(d.behavior_insts[this.beh_index],this.results):this.func.apply(d,this.results);cr.xor(b,this.inverted)&&f.instances.push(d)}f.select_all=!1}else{var g=0;a=0;for(c=f.instances.length;a<
c;a++){d=f.instances[a];if(this.parameters){b=0;for(i=this.parameters.length;b<i;b++)this.results[b]=this.parameters[b].get(a)}b=this.beh_index>-1?this.func.apply(d.behavior_insts[this.beh_index],this.results):this.func.apply(d,this.results);cr.xor(b,this.inverted)&&(f.instances[g]=d,g++)}f.instances.length=g}return f.hasObjects()};cr.action=function(a){this.block=a;this.sheet=a.sheet;this.runtime=a.runtime};a=cr.action.prototype;a.init=function(){this.type=="system"?(this.type=null,this.func=this.runtime.system.acts[this.method],
this.run=this.run_system):(this.type=this.runtime.types[this.type],this.run=this.run_object,this.behaviortype?(this.beh_index=this.type.getBehaviorIndexByName(this.behaviortype),this.behaviortype=this.type.getBehaviorByName(this.behaviortype),this.func=this.behaviortype.behavior.acts[this.method]):(this.func=this.type.plugin.acts[this.method],this.beh_index=-1));if(this.parameters){var a,b;a=0;for(b=this.parameters.length;a<b;a++){var c=new cr.parameter(this);cr.shallowCopy(c,this.parameters[a]);
c.init();this.parameters[a]=c}this.results=Array(this.parameters.length)}else this.results=[]};a.postInit=function(){var a,b;if(this.parameters){a=0;for(b=this.parameters.length;a<b;a++)this.parameters[a].postInit()}};a.run_system=function(){var a,b;if(this.parameters){a=0;for(b=this.parameters.length;a<b;a++)this.results[a]=this.parameters[a].get()}this.func.apply(this.runtime.system,this.results)};a.run_object=function(){var a=this.type.getCurrentSol().getObjects(),b,c,i,d;b=0;for(i=a.length;b<
i;b++){if(this.parameters){c=0;for(d=this.parameters.length;c<d;c++)this.results[c]=this.parameters[c].get(b)}this.beh_index>-1?this.func.apply(a[b].behavior_insts[this.beh_index],this.results):this.func.apply(a[b],this.results)}};cr.parameter=function(a){this.owner=a;this.block=a.block;this.sheet=a.sheet;this.runtime=a.runtime};a=cr.parameter.prototype;a.init=function(){switch(this.type){case "number":case "string":case "any":this.make_exp_node(this.expression);this.get=this.get_exp;this.temp=new cr.expvalue;
break;case "layer":this.make_exp_node(this.expression);this.get=this.get_layer;this.temp=new cr.expvalue;break;case "combo":case "cmp":this.get=this.get_combosel;break;case "layout":this.layout=this.runtime.layouts[this.layout];this.get=this.get_layout;break;case "keyb":this.get=this.get_key;break;case "object":var a=this.runtime.types[this.object];this.object=a;this.get=this.get_object;this.block.addSolModifier(a);break;case "instvar":this.get=this.get_instvar;break;case "eventvar":this.get=this.get_eventvar;
break;case "audiofile":this.get=this.get_audiofile}};a.postInit=function(){if(this.type==="eventvar")this.eventvar=this.runtime.getEventVariableByName(this.varname,this.block.parent);this.expression&&this.expression.postInit()};a.get_exp=function(a){this.solindex=a||0;this.expression.get(this.temp);return this.temp.data};a.get_object=function(){return this.object};a.get_combosel=function(){return this.combosel};a.get_layer=function(a){this.solindex=a||0;this.expression.get(this.temp);return this.temp.is_number()?
this.runtime.getLayerByNumber(this.temp.data):this.runtime.getLayerByName(this.temp.data)};a.get_layout=function(){return this.layout};a.get_key=function(){return this.key};a.get_instvar=function(){return this.index};a.get_eventvar=function(){return this.eventvar};a.get_audiofile=function(){return this.file};cr.eventvariable=function(a,b){this.sheet=a;this.parent=b;this.runtime=a.runtime;this.solModifiers=[]};a=cr.eventvariable.prototype;a.init=function(){this.data=this.initial};a.postInit=function(){};
a.run=function(){if(this.parent)this.data=this.initial};cr.eventinclude=function(a,b){this.sheet=a;this.parent=b;this.runtime=a.runtime;this.solModifiers=[]};a=cr.eventinclude.prototype;a.init=function(){};a.postInit=function(){var a=this.runtime.eventsheets[this.include_sheet];this.include_sheet=a;this.sheet.includes.add(a)};a.run=function(){this.parent&&this.runtime.pushCleanSol(this.runtime.types_by_index);this.include_sheet.hasRun||this.include_sheet.run();this.parent&&this.runtime.popSol(this.runtime.types_by_index)};
b.testAndSelectCanvasPointOverlap=function(a,b,c){var i=a.getCurrentSol(),d,f,g,k;if(i.select_all){i.select_all=!1;d=i.instances.length=0;for(g=a.instances.length;d<g;d++)f=a.instances[d],f.update_bbox(),k=f.layer.canvasToLayer(b),cr.xor(f.contains_pt(k),c)&&i.instances.push(f)}else{d=a=0;for(g=i.instances.length;d<g;d++)f=i.instances[d],f.update_bbox(),k=f.layer.canvasToLayer(b),cr.xor(f.contains_pt(k),c)&&(i.instances[a]=i.instances[d],a++);i.instances.length=a}return i.hasObjects()};b.testOverlap=
function(a,b){if(a===b)return!1;a.update_bbox();b.update_bbox();return!a.bbox.intersects_rect(b.bbox)?!1:a.bquad.intersects_quad(b.bquad)};b.testOverlapSolid=function(a){var b=this.behaviors.solid;if(b){var c,i=b.my_instances.values(),b=0;for(c=i.length;b<c;++b)if(this.testOverlap(a,i[b]))return!0;return!1}};b.pushOutSolid=function(a,b,c,i){var i=i||50,d=a.x,f=a.y,g;for(g=0;g<i;g++)if(a.x=d+b*g,a.y=f+c*g,a.set_bbox_changed(),!this.testOverlapSolid(a))return!0;a.x=d;a.y=f;a.set_bbox_changed();return!1};
b.pushOutSolidNearest=function(a){var b=1,c=a.x,i=a.y,d=0,f=0,g=0;do{switch(d){case 0:f=1;break;case 1:g=f=1;break;case 2:g=1;break;case 3:f=-1;g=1;break;case 4:f=-1;break;case 5:g=f=-1;break;case 6:g=-1;break;case 7:f=1,g=-1}a.x=c+f*b;a.y=i+g*b;a.set_bbox_changed();d=(d+1)%8;b++}while(this.testOverlapSolid(a))};c.init_trigger=function(a){this.runtime.triggers_to_postinit.push(a);var b;b=a.conditions[0].type?a.conditions[0].type.name:"system";this.triggers[b]||(this.triggers[b]={});b=this.triggers[b];
var c=a.conditions[0].method;b[c]||(b[c]=[]);b[c].push(a)};b.trigger=function(a,b){var c=this.running_layout.event_sheet;return!c?!1:this.triggerOnSheet(a,b,c,new cr.ObjectSet)};b.triggerOnSheet=function(a,b,c,i){if(i.contains(c))return!1;i.add(c);for(var d=c.includes.values(),f=!1,g=0,k=d.length;g<k;g++)var m=this.triggerOnSheet(a,b,d[g],i),f=f||m;g=b?b.type.name:"system";if(!c.triggers[g])return f;g=c.triggers[g];if(!g[a])return f;var a=g[a],g,k,l;g=0;for(k=a.length;g<k;g++){c=a[g];this.pushCleanSol(c.solModifiers);
if(b)i=b.type.getCurrentSol(),i.select_all=!1,i.instances=[b];i=!0;if(c.parent){d=[];for(m=c.parent;m;)d.push(m),m=m.parent;d.reverse();m=0;for(l=d.length;m<l;m++)if(!d[m].run_pretrigger()){i=!1;break}}i&&(c.run(),f=!0);this.popSol(c.solModifiers)}return f};b.getCurrentCondition=function(){var a=this.getCurrentEventStack();return a.current_event.conditions[a.cndindex]};b.pushEventStack=function(a){this.event_stack.push({current_event:a,cndindex:0});return this.getCurrentEventStack()};b.popEventStack=
function(){this.event_stack.pop()};b.getCurrentEventStack=function(){return this.event_stack[this.event_stack.length-1]};b.pushLoopStack=function(a){this.loop_stack.push({name:a,index:0});return this.getCurrentLoop()};b.popLoopStack=function(){this.loop_stack.pop()};b.getCurrentLoop=function(){return this.loop_stack[this.loop_stack.length-1]};b.getEventVariableByName=function(a,b){for(var c,i,d,f,g,k;b;){c=0;for(i=b.subevents.length;c<i;c++)if(k=b.subevents[c],k.type==="variable"&&a.toLowerCase()===
k.name.toLowerCase())return k;b=b.parent}c=0;for(i=this.eventsheets_by_index.length;c<i;c++){g=this.eventsheets_by_index[c];d=0;for(f=g.events.length;d<f;d++)if(k=g.events[d],k.type==="variable"&&a.toLowerCase()===k.name.toLowerCase())return k}return null}})();
(function(){cr.parameter.prototype.make_exp_node=function(b){b.owner=this;b.postInit=cr.exp_node_postInit;if(b.type==="system_exp")b.func=this.runtime.system.exps[b.name],b.parameters?(b.results=Array(b.parameters.length+1),b.temp=new cr.expvalue):b.results=Array(1),b.runtime=this.runtime,b.get=cr.exp_eval_system_exp;else if(b.type==="object_exp"||b.type==="behavior_exp"){var a=b.type;b.type=this.runtime.types[b.object];b.results=b.parameters?Array(b.parameters.length+1):Array(1);if(b.parameters||
b.instance_expr)b.temp=new cr.expvalue;b.get=cr.exp_eval_object_behavior_exp;b.runtime=this.runtime;a==="object_exp"?(b.beh_index=-1,b.func=b.type.plugin.exps[b.expname]):(b.beh_index=b.type.getBehaviorIndexByName(b.behavior_type),b.func=b.type.getBehaviorByName(b.behavior_type).behavior.exps[b.expname])}else if(b.type==="instvar_exp"){b.type=this.runtime.types[b.object];if(b.instance_expr)b.temp=new cr.expvalue;b.runtime=this.runtime;b.get=cr.exp_eval_instvar_exp}else b.get=cr["exp_eval_"+b.type];
b.first&&this.make_exp_node(b.first);b.second&&this.make_exp_node(b.second);b.third&&this.make_exp_node(b.third);b.instance_expr&&this.make_exp_node(b.instance_expr);if(b.parameters){var c,a=0;for(c=b.parameters.length;a<c;a++)this.make_exp_node(b.parameters[a])}};cr.exp_node_postInit=function(){if(this.type==="eventvar_exp")this.eventvar=this.owner.runtime.getEventVariableByName(this.varname,this.owner.block.parent);this.first&&this.first.postInit();this.second&&this.second.postInit();this.third&&
this.third.postInit();this.instance_expr&&this.instance_expr.postInit();if(this.parameters){var b,a;b=0;for(a=this.parameters.length;b<a;b++)this.parameters[b].postInit()}};cr.exp_eval_system_exp=function(b){this.results[0]=b;if(this.parameters){var a,b=0;for(a=this.parameters.length;b<a;b++)this.parameters[b].get(this.temp),this.results[b+1]=this.temp.data}this.func.apply(this.runtime.system,this.results)};cr.exp_eval_object_behavior_exp=function(b){var a=this.type.getCurrentSol().getObjects();if(a.length){this.results[0]=
b;if(this.parameters){var c,b=0;for(c=this.parameters.length;b<c;b++)this.parameters[b].get(this.temp),this.results[b+1]=this.temp.data}b=this.owner.solindex;if(this.instance_expr&&(this.instance_expr.get(this.temp),this.temp.is_number()))b=this.temp.data,a=this.type.instances;b%=a.length;b<0&&(b+=a.length);this.beh_index>-1?this.func.apply(a[b].behavior_insts[this.beh_index],this.results):this.func.apply(a[b],this.results)}else b.set_int(0)};cr.exp_eval_instvar_exp=function(b){var a=this.type.getCurrentSol().getObjects();
if(a.length){var c=this.owner.solindex;if(this.instance_expr&&(this.instance_expr.get(this.temp),this.temp.is_number())){c=this.temp.data;a=this.type.instances;c%=a.length;c<0&&(c+=a.length);c=a[c].instance_vars[this.varindex];typeof c==="string"?b.set_string(c):b.set_float(c);return}c%=a.length;c<0&&(c+=a.length);c=a[c].instance_vars[this.varindex];typeof c==="string"?b.set_string(c):b.set_float(c)}else b.set_int(0)};cr.exp_eval_int=function(b){b.type=cr.exptype.Integer;b.data=this.value};cr.exp_eval_float=
function(b){b.type=cr.exptype.Float;b.data=this.value};cr.exp_eval_string=function(b){b.type=cr.exptype.String;b.data=this.value};cr.exp_eval_unaryminus=function(b){this.first.get(b);if(b.is_number())b.data=-b.data};cr.exp_eval_add=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&(b.data+=a.data,a.is_float()&&b.make_float())};cr.exp_eval_subtract=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&
(b.data-=a.data,a.is_float()&&b.make_float())};cr.exp_eval_multiply=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&(b.data*=a.data,a.is_float()&&b.make_float())};cr.exp_eval_divide=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&(b.data/=a.data,b.make_float())};cr.exp_eval_mod=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&(b.data%=a.data,
a.is_float()&&b.make_float())};cr.exp_eval_power=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);if(b.is_number()&&a.is_number())b.data=Math.pow(b.data,a.data),a.is_float()&&b.make_float()};cr.exp_eval_and=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.is_number()?a.is_string()?b.set_string(b.data.toString()+a.data):b.data&&a.data?b.set_int(1):b.set_int(0):b.is_string()&&(b.data+=a.data.toString())};cr.exp_eval_or=function(b){this.first.get(b);var a=
new cr.expvalue;this.second.get(a);b.is_number()&&a.is_number()&&(b.data||a.data?b.set_int(1):b.set_int(0))};cr.exp_eval_conditional=function(b){this.first.get(b);b.data?this.second.get(b):this.third.get(b)};cr.exp_eval_equal=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.set_int(b.data===a.data?1:0)};cr.exp_eval_notequal=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.set_int(b.data!==a.data?1:0)};cr.exp_eval_less=function(b){this.first.get(b);var a=
new cr.expvalue;this.second.get(a);b.set_int(b.data<a.data?1:0)};cr.exp_eval_lessequal=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.set_int(b.data<=a.data?1:0)};cr.exp_eval_greater=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.set_int(b.data>a.data?1:0)};cr.exp_eval_greaterequal=function(b){this.first.get(b);var a=new cr.expvalue;this.second.get(a);b.set_int(b.data>=a.data?1:0)};cr.exp_eval_eventvar_exp=function(b){typeof this.eventvar.data===
"number"?b.set_float(this.eventvar.data):b.set_string(this.eventvar.data)};cr.expvalue=function(b,a){this.type=b||cr.exptype.Integer;this.data=a||0;if(this.type==cr.exptype.Integer)this.data=Math.floor(this.data)};var c=cr.expvalue.prototype;c.is_int=function(){return this.type===cr.exptype.Integer};c.is_float=function(){return this.type===cr.exptype.Float};c.is_number=function(){return this.type===cr.exptype.Integer||this.type===cr.exptype.Float};c.is_string=function(){return this.type===cr.exptype.String};
c.make_int=function(){if(!this.is_int()){if(this.is_float())this.data=Math.floor(this.data);else if(this.is_string())this.data=parseInt(this.data,10);this.type=cr.exptype.Integer}};c.make_float=function(){if(!this.is_float()){if(this.is_string())this.data=parseFloat(this.data);this.type=cr.exptype.Float}};c.make_string=function(){if(!this.is_string())this.data=this.data.toString(),this.type=cr.exptype.String};c.set_int=function(b){this.type=cr.exptype.Integer;this.data=Math.floor(b)};c.set_float=
function(b){this.type=cr.exptype.Float;this.data=b};c.set_string=function(b){this.type=cr.exptype.String;this.data=b};c.set_any=function(b){typeof b==="number"?(this.type=cr.exptype.Float,this.data=b):typeof b==="string"?(this.type=cr.exptype.String,this.data=b.toString()):(this.type=cr.exptype.Integer,this.data=0)};cr.exptype={Integer:0,Float:1,String:2}})();cr.system_object=function(c){this.runtime=c};cr.system_object.prototype.cnds={};cr.system_object.prototype.acts={};
cr.system_object.prototype.exps={};
(function(){var c=cr.system_object.prototype.cnds;c.EveryTick=function(){return!0};c.OnLayoutStart=function(){return!0};c.OnLayoutEnd=function(){return!0};c.Compare=function(b,a,c){return cr.do_cmp(b,a,c)};c.CompareTime=function(b,a){var c=this.runtime.kahanTime.sum;if(b===0){var e=this.runtime.getCurrentCondition();return!e.CompareTime_executed&&c>=a?e.CompareTime_executed=!0:!1}return cr.do_cmp(c,b,a)};c.LayerVisible=function(b){return b?b.visible:!1};c.Repeat=function(b){var a=this.runtime.getCurrentEventStack().current_event,
c=this.runtime.pushLoopStack(),e;for(e=0;e<b;e++)this.runtime.pushCopySol(a.solModifiers),c.index=e,a.retrigger(),this.runtime.popSol(a.solModifiers);this.runtime.popLoopStack();return!1};c.For=function(b,a,c){for(var e=this.runtime.getCurrentEventStack().current_event,b=this.runtime.pushLoopStack(b);a<=c;a++)this.runtime.pushCopySol(e.solModifiers),b.index=a,e.retrigger(),this.runtime.popSol(e.solModifiers);this.runtime.popLoopStack();return!1};c.ForEach=function(b){var a=b.getCurrentSol(),c=a.getObjects().slice(0),
e=this.runtime.getCurrentEventStack().current_event,j=this.runtime.pushLoopStack(),i,d;i=0;for(d=c.length;i<d;i++)this.runtime.pushCopySol(e.solModifiers),a=b.getCurrentSol(),a.select_all=!1,a.instances=[c[i]],j.index=i,e.retrigger(),this.runtime.popSol(e.solModifiers);this.runtime.popLoopStack();return!1};c.TriggerOnce=function(){var b=this.runtime.getCurrentCondition(),a=b.TriggerOnce_lastTick||0,c=this.runtime.tickcount;b.TriggerOnce_lastTick=c;return a!==c-1};c.Every=function(b){var a=this.runtime.getCurrentCondition(),
c=this.runtime.kahanTime.sum;return c>=(a.Every_lastTime||0)+b?(a.Every_lastTime=c,!0):!1};c.PickNth=function(b,a){if(!b)return!1;var c=b.getCurrentSol(),e=c.getObjects(),a=Math.floor(a);if(a<0||a>=e.length)return!1;e=e[a];c.select_all=!1;c.instances=[e];return!0};c.CompareVar=function(b,a,c){return cr.do_cmp(b.data,a,c)};c.IsGroupActive=function(b){return this.runtime.activeGroups.hasOwnProperty(b)};c=cr.system_object.prototype.acts;c.GoToLayout=function(b){this.runtime.changelayout=b};c.CreateObject=
function(b,a,c,e){if(a&&b)b=this.runtime.createInstance(b,a),b.x=c,b.y=e,c=b.type.getCurrentSol(),c.select_all=!1,c.instances=[b]};c.SetLayerVisible=function(b,a){if(b)b.visible=a,this.runtime.redraw=!0};c.ScrollX=function(b){this.runtime.running_layout.scrollToX(b)};c.ScrollY=function(b){this.runtime.running_layout.scrollToY(b)};c.Scroll=function(b,a){this.runtime.running_layout.scrollToX(b);this.runtime.running_layout.scrollToY(a)};c.ScrollToObject=function(b){if(b=b.getFirstPicked())this.runtime.running_layout.scrollToX(b.x),
this.runtime.running_layout.scrollToY(b.y)};c.SetVar=function(b,a){if(b.vartype===0)b.data=typeof a==="number"?a:parseFloat(a);else if(b.vartype===1)b.data=a.toString()};c.AddVar=function(b,a){b.vartype===0?b.data+=typeof a==="number"?a:parseFloat(a):b.vartype===1&&(b.data+=a.toString())};c.SubVar=function(b,a){b.vartype===0&&(b.data-=typeof a==="number"?a:parseFloat(a))};c.SetGroupActive=function(b,a){var c=this.runtime.activeGroups;switch(a){case 0:delete c[b];break;case 1:c[b]=!0;break;case 2:c[b]?
delete c[b]:c[b]=!0}};c.SetTimescale=function(b){b<0&&(b=0);this.runtime.timescale=b};c.SetObjectTimescale=function(b,a){var c=a;c<0&&(c=0);if(b){var e=b.getCurrentSol().getObjects(),j,i;j=0;for(i=e.length;j<i;j++)e[j].my_timescale=c}};c.RestoreObjectTimescale=function(b){if(!b)return!1;var b=b.getCurrentSol().getObjects(),a,c;a=0;for(c=b.length;a<c;a++)b[a].my_timescale=-1};c=cr.system_object.prototype.exps;c["int"]=function(b,a){if(typeof a==="string"){if(b.set_int(parseInt(a,10)),isNaN(b.data))b.data=
0}else b.set_int(a)};c["float"]=function(b,a){if(typeof a==="string"){if(b.set_float(parseFloat(a)),isNaN(b.data))b.data=0}else b.set_float(a)};c.str=function(b,a){typeof a==="string"?b.set_string(a):b.set_string(a.toString())};c.len=function(b,a){b.set_int(a.length)};c.random=function(b,a,c){c===void 0?b.set_float(Math.random()*a):b.set_float(Math.random()*(c-a)+a)};c.sqrt=function(b,a){b.set_float(Math.sqrt(a))};c.abs=function(b,a){b.set_float(Math.abs(a))};c.round=function(b,a){b.set_int(Math.round(a))};
c.floor=function(b,a){b.set_int(Math.floor(a))};c.ceil=function(b,a){b.set_int(Math.ceil(a))};c.sin=function(b,a){b.set_float(Math.sin(cr.to_radians(a)))};c.cos=function(b,a){b.set_float(Math.cos(cr.to_radians(a)))};c.tan=function(b,a){b.set_float(Math.tan(cr.to_radians(a)))};c.asin=function(b,a){b.set_float(cr.to_degrees(Math.asin(a)))};c.acos=function(b,a){b.set_float(cr.to_degrees(Math.acos(a)))};c.atan=function(b,a){b.set_float(cr.to_degrees(Math.atan(a)))};c.exp=function(b,a){b.set_float(Math.exp(a))};
c.ln=function(b,a){b.set_float(Math.log(a))};c.log10=function(b,a){b.set_float(Math.log(a)/Math.LN10)};c.max=function(b){var a=Array(arguments.length-1),c,e;c=0;for(e=arguments.length-1;c<e;c++)a[c]=arguments[c+1];b.set_float(Math.max.apply(null,a))};c.min=function(b){var a=Array(arguments.length-1),c,e;c=0;for(e=arguments.length-1;c<e;c++)a[c]=arguments[c+1];b.set_float(Math.min.apply(null,a))};c.dt=function(b){b.set_float(this.runtime.dt)};c.timescale=function(b){b.set_float(this.runtime.timescale)};
c.wallclocktime=function(b){b.set_float(((new Date).getTime()-this.runtime.start_time)/1E3)};c.time=function(b){b.set_float(this.runtime.kahanTime.sum)};c.tickcount=function(b){b.set_int(this.runtime.tickcount)};c.objectcount=function(b){b.set_int(this.runtime.objectcount)};c.fps=function(b){b.set_int(this.runtime.fps)};c.loopindex=function(b,a){if(this.runtime.loop_stack.length)if(a){var c,e;c=0;for(e=this.runtime.loop_stack.length;c<e;c++){var j=this.runtime.loop_stack[c];if(j.name===a){b.set_int(j.index);
return}}b.set_int(0)}else b.set_int(this.runtime.getCurrentLoop().index);else b.set_int(0)};c.distance=function(b,a,c,e,j){a=e-a;c=j-c;b.set_float(Math.sqrt(a*a+c*c))};c.angle=function(b,a,c,e,j){b.set_float(cr.to_degrees(Math.atan2(j-c,e-a)))};c.scrollx=function(b){b.set_float(this.runtime.running_layout.scrollX+this.runtime.width/2)};c.scrolly=function(b){b.set_float(this.runtime.running_layout.scrollY+this.runtime.height/2)};c.newline=function(b){b.set_string("\n")};c.lerp=function(b,a,c,e){b.set_float(cr.lerp(a,
c,e))};c.windowwidth=function(b){b.set_int(this.runtime.width)};c.windowheight=function(b){b.set_int(this.runtime.height)};c.uppercase=function(b,a){b.set_string(a.toUpperCase())};c.lowercase=function(b,a){b.set_string(a.toLowerCase())};c.clamp=function(b,a,c,e){a<c?b.set_float(c):a>e?b.set_float(e):b.set_float(a)}})();
cr.add_common_aces=function(c){if(!c.cnds)c.cnds={};if(!c.acts)c.acts={};if(!c.exps)c.exps={};var b=c.cnds,a=c.acts,h=c.exps;if(c.position_aces)b.CompareX=function(a,b){return cr.do_cmp(this.x,a,b)},b.CompareY=function(a,b){return cr.do_cmp(this.y,a,b)},b.IsOnScreen=function(){this.update_bbox();var a=this.bbox,b=this.runtime.running_layout;return!(a.right<b.scrollX||a.bottom<b.scrollY||a.left>b.windowRight||a.top>b.windowBottom)},b.IsOutsideLayout=function(){this.update_bbox();var a=this.bbox,b=
this.runtime.running_layout;return a.right<0||a.bottom<0||a.left>b.width||a.top>b.height},a.SetX=function(a){if(this.x!==a)this.x=a,this.set_bbox_changed()},a.SetY=function(a){if(this.y!==a)this.y=a,this.set_bbox_changed()},a.SetPos=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.set_bbox_changed()},a.SetPosToObject=function(a){if((a=a.getPairedInstance(this))&&(this.x!==a.x||this.y!==a.y))this.x=a.x,this.y=a.y,this.set_bbox_changed()},a.MoveForward=function(a){a!==0&&(this.x+=Math.cos(this.angle)*
a,this.y+=Math.sin(this.angle)*a,this.set_bbox_changed())},a.MoveAtAngle=function(a,b){b!==0&&(this.x+=Math.cos(cr.to_radians(a))*b,this.y+=Math.sin(cr.to_radians(a))*b,this.set_bbox_changed())},h.X=function(a){a.set_float(this.x)},h.Y=function(a){a.set_float(this.y)},h.dt=function(a){a.set_float(this.runtime.getDt(this))};if(c.size_aces)b.CompareWidth=function(a,b){return cr.do_cmp(this.width,a,b)},b.CompareHeight=function(a,b){return cr.do_cmp(this.height,a,b)},a.SetWidth=function(a){a<0&&(a=-a);
if(this.width!==a)this.width=a,this.set_bbox_changed()},a.SetHeight=function(a){a<0&&(a=-a);if(this.height!==a)this.height=a,this.set_bbox_changed()},a.SetSize=function(a,b){var c=a,d=b;c<0&&(c=-c);d<0&&(d=-d);if(this.width!==c||this.height!==d)this.width=c,this.height=d,this.set_bbox_changed()},h.Width=function(a){a.set_float(this.width)},h.Height=function(a){a.set_float(this.height)};if(c.angle_aces)b.AngleWithin=function(a,b){return cr.angleDiff(this.angle,cr.to_radians(b))<=cr.to_radians(a)},
b.IsClockwiseFrom=function(a){return cr.angleClockwise(this.angle,cr.to_radians(a))},b.IsBetweenAngles=function(a,b){var c=cr.to_clamped_radians(a),d=cr.to_clamped_radians(b),f=cr.clamp_angle(this.angle);return cr.angleClockwise(f,c)&&!cr.angleClockwise(f,d)},a.SetAngle=function(a){a=cr.to_radians(cr.clamp_angle_degrees(a));if(!isNaN(a)&&this.angle!==a)this.angle=a,this.set_bbox_changed()},a.RotateClockwise=function(a){if(a!==0&&!isNaN(a))this.angle+=cr.to_radians(a),this.angle=cr.clamp_angle(this.angle),
this.set_bbox_changed()},a.RotateCounterclockwise=function(a){if(a!==0&&!isNaN(a))this.angle-=cr.to_radians(a),this.angle=cr.clamp_angle(this.angle),this.set_bbox_changed()},a.RotateTowardAngle=function(a,b){var c=cr.angleRotate(this.angle,cr.to_radians(b),cr.to_radians(a));if(!isNaN(c)&&this.angle!==c)this.angle=c,this.set_bbox_changed()},a.RotateTowardPosition=function(a,b,c){a=cr.angleRotate(this.angle,Math.atan2(c-this.y,b-this.x),cr.to_radians(a));if(!isNaN(a)&&this.angle!==a)this.angle=a,this.set_bbox_changed()},
a.SetTowardPosition=function(a,b){var c=Math.atan2(b-this.y,a-this.x);if(!isNaN(c)&&this.angle!==c)this.angle=c,this.set_bbox_changed()},h.Angle=function(a){a.set_float(cr.to_clamped_degrees(this.angle))};if(!c.singleglobal)b.CompareInstanceVar=function(a,b,c){return cr.do_cmp(this.instance_vars[a],b,c)},b.IsBoolInstanceVarSet=function(a){return this.instance_vars[a]},b.PickByUID=function(a){return this.uid===a},a.SetInstanceVar=function(a,b){typeof this.instance_vars[a]==="number"?this.instance_vars[a]=
typeof b==="number"?b:parseFloat(b):typeof this.instance_vars[a]==="string"&&(this.instance_vars[a]=typeof b==="string"?b:b.toString())},a.AddInstanceVar=function(a,b){typeof this.instance_vars[a]==="number"?this.instance_vars[a]+=typeof b==="number"?b:parseFloat(b):typeof this.instance_vars[a]==="string"&&(this.instance_vars[a]+=typeof b==="string"?b:b.toString())},a.SubInstanceVar=function(a,b){typeof this.instance_vars[a]==="number"&&(this.instance_vars[a]-=typeof b==="number"?b:parseFloat(b))},
a.SetBoolInstanceVar=function(a,b){this.instance_vars[a]=b},a.ToggleBoolInstanceVar=function(a){this.instance_vars[a]=!this.instance_vars[a]},a.Destroy=function(){this.runtime.DestroyInstance(this)},h.Count=function(a){a.set_int(this.type.instances.length)},h.UID=function(a){a.set_int(this.uid)};if(c.appearance_aces)b.IsVisible=function(){return this.visible},a.SetVisible=function(a){this.visible=a},b.CompareOpacity=function(a,b){return cr.do_cmp(this.opacity,a,b)},a.SetOpacity=function(a){a/=100;
a<0?a=0:a>1&&(a=1);if(a!==this.opacity)this.opacity=a,this.runtime.redraw=!0},h.Opacity=function(a){a.set_float(this.opacity*100)}};cr.set_bbox_changed=function(){this.bbox_changed=!0;this.runtime.redraw=!0;var c,b;c=0;for(b=this.bbox_changed_callbacks.length;c<b;c++)this.bbox_changed_callbacks[c](this)};cr.add_bbox_changed_callback=function(c){c&&this.bbox_changed_callbacks.push(c)};
cr.update_bbox=function(){if(this.bbox_changed){var c=new cr.rect(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(new cr.vector2(-this.hotspotX*this.width,-this.hotspotY*this.height));!this.angle||this.angle==0?(this.bbox=c,this.bquad=c.to_quad()):(c.offset(new cr.vector2(-this.x,-this.y)),this.bquad=c.rotate_to_quad(this.angle),this.bquad.offset(new cr.vector2(this.x,this.y)),this.bbox=this.bquad.bounding_box());this.bbox_changed=!1}};
cr.inst_contains_pt=function(c){return this.bbox.contains_pt(c)?this.bquad.contains_pt(c):!1};cr.inst_get_iid=function(){this.type.updateIIDs();return this.iid};cr.inst_toString=function(){return"inst:"+this.type.name+"#"+this.uid};cr.type_getFirstPicked=function(){var c=this.getCurrentSol().getObjects();return c.length?c[0]:null};cr.type_getPairedInstance=function(c){var b=this.getCurrentSol().getObjects();return b.length?b[c.get_iid()%b.length]:null};
cr.type_updateIIDs=function(){if(this.stale_iids){var c,b;c=0;for(b=this.instances.length;c<b;c++)this.instances[c].iid=c;this.stale_iids=!1}};cr.type_getCurrentSol=function(){return this.solstack[this.cur_sol]};cr.type_pushCleanSol=function(){this.cur_sol++;this.cur_sol===this.solstack.length?this.solstack.push(new cr.selection(this)):this.solstack[this.cur_sol].select_all=!0};
cr.type_pushCopySol=function(){this.cur_sol++;this.cur_sol===this.solstack.length&&this.solstack.push(new cr.selection(this));var c=this.solstack[this.cur_sol],b=this.solstack[this.cur_sol-1];b.select_all?c.select_all=!0:(c.select_all=!1,c.instances=b.instances.slice(0))};cr.type_popSol=function(){this.cur_sol--};cr.type_getBehaviorByName=function(c){var b,a;b=0;for(a=this.behaviors.length;b<a;b++)if(c===this.behaviors[b].name)return this.behaviors[b];return null};
cr.type_getBehaviorIndexByName=function(c){var b,a;b=0;for(a=this.behaviors.length;b<a;b++)if(c===this.behaviors[b].name)return b;return-1};cr.do_cmp=function(c,b,a){switch(b){case 0:return c===a;case 1:return c!==a;case 2:return c<a;case 3:return c<=a;case 4:return c>a;case 5:return c>=a;default:return!1}};
cr.projectmodel={name:"Bed and Breakfast Da Rosa",first_layout:"Sito",plugins:[{idstr:"Mouse",singleglobal:!0,is_world:!1,position_aces:!1,size_aces:!1,angle_aces:!1,appearance_aces:!1},{idstr:"Sprite",singleglobal:!1,is_world:!0,position_aces:!0,size_aces:!0,angle_aces:!0,appearance_aces:!0},{idstr:"TiledBg",singleglobal:!1,is_world:!0,position_aces:!0,size_aces:!0,angle_aces:!0,appearance_aces:!0},{idstr:"Text",singleglobal:!1,is_world:!0,position_aces:!0,size_aces:!0,angle_aces:!1,appearance_aces:!0}],
types:[{name:"Sfondo_Solferino",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/sfondo_solferino-default-000.png",texture_filesize:567889,duration:1}]}]},{name:"Scelte_Back",plugin_id:"TiledBg",behaviors:[],texture_file:"images/scelte_back.png",texture_filesize:225},{name:"PulsOspit",plugin_id:"Text",behaviors:[]},{name:"PulsTerr",plugin_id:"Text",behaviors:[]},{name:"PulsPren",plugin_id:"Text",behaviors:[]},
{name:"PulsDove",plugin_id:"Text",behaviors:[]},{name:"Mouse",plugin_id:"Mouse",behaviors:[]},{name:"Flash",plugin_id:"TiledBg",behaviors:[],texture_file:"images/flash.png",texture_filesize:141},{name:"Ospit",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/ospit-default-000.png",texture_filesize:16834,duration:1}]}]},{name:"OspitFoto1",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,
loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/ospitfoto1-default-000.png",texture_filesize:93014,duration:1}]}]},{name:"OspitFoto2",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/ospitfoto2-default-000.png",texture_filesize:92976,duration:1}]}]},{name:"OspitFoto3",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,
frames:[{texture_file:"images/ospitfoto3-default-000.png",texture_filesize:95654,duration:1}]}]},{name:"Titolo",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/titolo-default-000.png",texture_filesize:43358,duration:1}]}]},{name:"Terr",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/terr-default-000.png",texture_filesize:34336,
duration:1}]}]},{name:"TerrFoto",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/terrfoto-default-000.png",texture_filesize:88969,duration:1}]}]},{name:"OspitFotoClick",plugin_id:"TiledBg",behaviors:[],texture_file:"images/ospitfotoclick.png",texture_filesize:141},{name:"FotoExt",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoext-default-000.png",
texture_filesize:13846,duration:1}]}]},{name:"FotoExtX",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextx-default-000.png",texture_filesize:902,duration:1}]}]},{name:"FotoExtOspit1",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextospit1-default-000.png",texture_filesize:903428,duration:1}]}]},{name:"FotoExtOspit2",
plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextospit2-default-000.png",texture_filesize:855372,duration:1}]}]},{name:"FotoExtOspit3",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextospit3-default-000.png",texture_filesize:910716,duration:1}]}]},{name:"TerrFoto2",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",
speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/terrfoto2-default-000.png",texture_filesize:81589,duration:1}]}]},{name:"TerrFotoClick",plugin_id:"TiledBg",behaviors:[],texture_file:"images/terrfotoclick.png",texture_filesize:141},{name:"FotoExtDx",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextdx-default-000.png",texture_filesize:638,duration:1}]}]},{name:"FotoExtSx",
plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextsx-default-000.png",texture_filesize:659,duration:1}]}]},{name:"Terr2",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/terr2-default-000.png",texture_filesize:157728,duration:1}]}]},{name:"NextEsplo",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",
speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/nextesplo-default-000.png",texture_filesize:3114,duration:1}]}]},{name:"PrevTerr",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/prevterr-default-000.png",texture_filesize:2604,duration:1}]}]},{name:"FotoExtTerr1",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,
frames:[{texture_file:"images/fotoextterr1-default-000.png",texture_filesize:417294,duration:1}]}]},{name:"FotoExtTerr2",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/fotoextterr2-default-000.png",texture_filesize:792272,duration:1}]}]},{name:"PrevEsplo",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/prevesplo-default-000.png",
texture_filesize:3092,duration:1}]}]},{name:"NextParchi",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/nextparchi-default-000.png",texture_filesize:2999,duration:1}]}]},{name:"Terr3",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/terr3-default-000.png",texture_filesize:204753,duration:1}]}]},{name:"Offerta",
plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/offerta-default-000.png",texture_filesize:114113,duration:1}]}]},{name:"Dovesiamo",plugin_id:"Sprite",behaviors:[],animations:[{name:"Default",speed:5,loop:!1,repeatcount:1,repeatto:0,pingpong:!1,frames:[{texture_file:"images/dovesiamo-default-000.png",texture_filesize:44091,duration:1}]}]}],layouts:[{name:"Sito",width:800,height:600,sheetname:"Eventi",layers:[{name:"Windows",
index:0,initially_visible:!0,background_color:"rgb(255, 255, 255)",transparent:!0,parallaxX:1,parallaxY:1,opacity:1,forceOwnTexture:!1,initial_instances:[{type_name:"Scelte_Back",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)",Hotspot:"Top-left"},x:49,y:536,z:0,width:702,height:32,depth:0,angle:0,opacity:1,hotspotX:0,hotspotY:0},{type_name:"PulsDove",instance_vars:[0],properties:{Text:"DOVE SIAMO","Initial visibility":"Visible",Font:"12pt Times New Roman",Color:"rgb(255,255,255)",
"Horizontal alignment":"Center"},x:570,y:543,z:0,width:170,height:22,depth:0,opacity:1,hotspotX:0,hotspotY:0},{type_name:"PulsPren",instance_vars:[0],properties:{Text:"ALLOGGI","Initial visibility":"Visible",Font:"12pt Times New Roman",Color:"rgb(255,255,255)","Horizontal alignment":"Center"},x:400,y:543,z:0,width:170,height:22,depth:0,opacity:1,hotspotX:0,hotspotY:0},{type_name:"PulsTerr",instance_vars:[0],properties:{Text:"IL TERRITORIO","Initial visibility":"Visible",Font:"12pt Times New Roman",
Color:"rgb(255,255,255)","Horizontal alignment":"Center"},x:230,y:543,z:0,width:170,height:22,depth:0,opacity:1,hotspotX:0,hotspotY:0},{type_name:"PulsOspit",instance_vars:[0],properties:{Text:"L'OSPITALIT\u00c0","Initial visibility":"Visible",Font:"12pt Times New Roman",Color:"rgb(255,255,255)","Horizontal alignment":"Center"},x:60,y:543,z:0,width:170,height:22,depth:0,opacity:1,hotspotX:0,hotspotY:0},{type_name:"Sfondo_Solferino",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)",
"Auto mirror/flip":"(none)"},x:400,y:340,z:0,width:704,height:327,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Flash",instance_vars:[0,0],properties:{"Initial visibility":"Visible",Effect:"(none)",Hotspot:"Top-left"},x:49,y:178,z:0,width:702,height:323,depth:0,angle:0,opacity:0.6,hotspotX:0,hotspotY:0},{type_name:"NextEsplo",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1390,y:491,z:0,width:231,height:44,depth:0,angle:0,
opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Ospit",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1206,y:350,z:0,width:633,height:201,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"OspitFoto1",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1024,y:344,z:0,width:234,height:159,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"OspitFoto2",instance_vars:[0],
properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1024,y:344,z:0,width:234,height:159,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"OspitFoto3",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1024,y:344,z:0,width:234,height:159,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Titolo",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},
x:405,y:85,z:0,width:276,height:126,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Terr",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1206,y:350,z:0,width:633,height:279,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"TerrFoto",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:224,y:344,z:0,width:234,height:159,depth:0,angle:0,opacity:1,hotspotX:0.5,
hotspotY:0.5},{type_name:"OspitFotoClick",properties:{"Initial visibility":"Visible",Effect:"(none)",Hotspot:"Top-left"},x:110,y:266,z:0,width:224,height:150,depth:0,angle:0,opacity:0.5,hotspotX:0,hotspotY:0},{type_name:"TerrFoto2",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:224,y:344,z:0,width:234,height:159,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"TerrFotoClick",properties:{"Initial visibility":"Visible",Effect:"(none)",
Hotspot:"Top-left"},x:110,y:266,z:0,width:224,height:150,depth:0,angle:0,opacity:0.5,hotspotX:0,hotspotY:0},{type_name:"PrevTerr",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1028,y:491,z:0,width:231,height:44,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"PrevEsplo",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1028,y:491,z:0,width:231,height:44,depth:0,angle:0,
opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"NextParchi",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1390,y:491,z:0,width:231,height:44,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Terr2",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1210,y:350,z:0,width:633,height:279,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Terr3",instance_vars:[0],
properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1210,y:350,z:0,width:633,height:279,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Offerta",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1210,y:350,z:0,width:633,height:279,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExt",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},
x:2203,y:305,z:0,width:794,height:550,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtOspit1",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2200,y:300,z:0,width:735,height:490,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtOspit2",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2200,y:300,z:0,width:735,height:490,depth:0,angle:0,
opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtOspit3",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2200,y:300,z:0,width:735,height:490,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtSx",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1818,y:300,z:0,width:25,height:28,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtDx",
instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2582,y:300,z:0,width:25,height:28,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtX",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2578,y:46,z:0,width:30,height:30,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtTerr1",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)",
"Auto mirror/flip":"(none)"},x:2200,y:300,z:0,width:439,height:490,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"FotoExtTerr2",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:2200,y:300,z:0,width:735,height:490,depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5},{type_name:"Dovesiamo",instance_vars:[0],properties:{"Initial visibility":"Visible",Effect:"(none)","Auto mirror/flip":"(none)"},x:1210,y:350,z:0,width:633,height:279,
depth:0,angle:0,opacity:1,hotspotX:0.5,hotspotY:0.5}]}],initial_nonworld:[]}],eventsheets:[{name:"Eventi",events:[{type:"variable",name:"start",vartype:0,initial:0},{type:"variable",name:"alarm0",vartype:0,initial:0},{type:"variable",name:"alarm1",vartype:0,initial:0},{type:"variable",name:"alarm2",vartype:0,initial:0},{type:"variable",name:"alarm3",vartype:0,initial:0},{type:"variable",name:"menuindex",vartype:0,initial:0},{type:"variable",name:"ospitindex",vartype:0,initial:1},{type:"variable",
name:"terrindex",vartype:0,initial:1},{type:"variable",name:"photoactiveospit",vartype:0,initial:0},{type:"variable",name:"photoactiveterr",vartype:0,initial:0},{type:"variable",name:"fotoindexospit",vartype:0,initial:0},{type:"variable",name:"fotoindexterr",vartype:0,initial:0},{type:"variable",name:"fotoactive",vartype:0,initial:0},{type:"block",group:!0,active_on_start:!0,group_name:"Inizializza",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",
expression:{type:"string",value:"Inizializza"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"OnLayoutStart",trigger:!0,looping:!1,inverted:!1,isstatic:!1}],actions:[{type:"PulsOspit",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:-140}}]},{type:"PulsTerr",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:-190}}]},{type:"PulsPren",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:-240}}]},{type:"PulsDove",method:"SetX",
parameters:[{type:"number",expression:{type:"int",value:-290}}]},{type:"PulsDove",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PulsOspit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PulsPren",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Sfondo_Solferino",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Sfondo_Solferino",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:-400}}]},{type:"Scelte_Back",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Scelte_Back",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:-351}}]},{type:"Flash",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Ospit",method:"SetX",parameters:[{type:"number",
expression:{type:"int",value:1110}}]},{type:"Ospit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"OspitFoto1",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:924}}]},{type:"OspitFoto2",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:924}}]},{type:"OspitFoto3",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:924}}]},{type:"OspitFoto1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",
value:0}}]},{type:"OspitFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"OspitFoto3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Titolo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Titolo",method:"SetY",parameters:[{type:"number",expression:{type:"int",value:-15}}]},{type:"Terr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Terr",
method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1110}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"TerrFoto",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:924}}]},{type:"FotoExt",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1003}}]},{type:"FotoExt",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtX",method:"SetX",parameters:[{type:"number",
expression:{type:"int",value:1378}}]},{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtOspit1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtOspit1",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1E3}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"TerrFoto2",method:"SetX",parameters:[{type:"number",expression:{type:"int",
value:924}}]},{type:"FotoExtOspit2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtOspit2",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1E3}}]},{type:"FotoExtOspit3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtOspit3",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1E3}}]},{type:"FotoExtDx",method:"SetX",parameters:[{type:"number",expression:{type:"int",
value:1380}}]},{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtSx",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:620}}]},{type:"Terr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Terr2",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1110}}]},{type:"NextEsplo",
method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1290}}]},{type:"NextEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PrevTerr",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:928}}]},{type:"FotoExtTerr1",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1E3}}]},{type:"FotoExtTerr1",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtTerr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"FotoExtTerr2",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1E3}}]},{type:"NextParchi",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"NextParchi",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1290}}]},{type:"Terr3",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"int",value:0}}]},{type:"Terr3",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1110}}]},{type:"PrevEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"PrevEsplo",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:928}}]},{type:"Offerta",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Offerta",method:"SetX",parameters:[{type:"number",expression:{type:"int",
value:1110}}]},{type:"Dovesiamo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"Dovesiamo",method:"SetX",parameters:[{type:"number",expression:{type:"int",value:1110}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Sfondo",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Sfondo"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,
group_name:"Entrata sfondo",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Entrata sfondo"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"start"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"Sfondo_Solferino",method:"MoveAtAngle",
parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:25}}]},{type:"Sfondo_Solferino",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"float",value:3.125}}]},{type:"Sfondo_Solferino",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"Sfondo_Solferino",varindex:0}}]},{type:"Titolo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:90}},{type:"number",
expression:{type:"float",value:3.125}}]},{type:"Titolo",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"float",value:3.125}}]},{type:"Titolo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"Titolo",varindex:0}}]}]},{type:"block",conditions:[{type:"Sfondo_Solferino",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:400}}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"start"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"start"},{type:"any",expression:{type:"int",value:1}}]},{type:"Sfondo_Solferino",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Flash",conditions:[{type:"system",
method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Flash"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"start"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm1"},
{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"alarm1"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm1"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"Flash",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"instvar",index:1},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:10}}]}],actions:[{type:"Flash",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:6}}]},{type:"Flash",method:"AddInstanceVar",parameters:[{type:"instvar",index:1},{type:"any",expression:{type:"int",value:1}}]},{type:"Flash",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"Flash",varindex:0}}]}]},{type:"block",
conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm1"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"Flash",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:1},{type:"cmp",combosel:5},{type:"any",expression:{type:"int",value:10}}]},{type:"Flash",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",
index:1},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:20}}]}],actions:[{type:"Flash",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:6}}]},{type:"Flash",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"Flash",varindex:0}}]},{type:"Flash",method:"AddInstanceVar",parameters:[{type:"instvar",index:1},{type:"any",expression:{type:"int",value:1}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,
group_name:"Men\u00f9",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Men\u00f9"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Scelte men\u00f9",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Scelte men\u00f9"}}]}],actions:[],subevents:[{type:"block",
group:!0,active_on_start:!0,group_name:"Men\u00f9 Ospitalit\u00e0",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Men\u00f9 Ospitalit\u00e0"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Allarme2",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Allarme2"}}]}],
actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm2"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:200}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",
varname:"alarm2"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm2"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:200}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:3}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"ospitindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm2"},{type:"any",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm2"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:200}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",
combosel:0},{type:"any",expression:{type:"int",value:3}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"ospitindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm2"},{type:"any",expression:{type:"int",value:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretto foto Ospit",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",
expression:{type:"string",value:"Quadretto foto Ospit"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"EntrataFotina",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"EntrataFotina"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},
{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"Ospit",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],actions:[{type:"Ospit",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Ospit",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",
value:5}}]},{type:"Ospit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Ospit",varindex:0},second:{type:"float",value:1.1}}}]},{type:"OspitFoto1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"OspitFoto1",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto1",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto1",varindex:0}}]},{type:"OspitFoto2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"OspitFoto3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"Ospit",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Ospit",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Ospit",method:"SubInstanceVar",parameters:[{type:"instvar",
index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Ospit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Ospit",varindex:0},second:{type:"float",value:1.1}}}]},{type:"OspitFoto1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"OspitFoto2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",
value:35}}]},{type:"OspitFoto3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"Ospit",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"OspitFoto1",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto1",
varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"Ospit",method:"CompareX",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"OspitFoto2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto2",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"Ospit",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"OspitFoto3",method:"SubInstanceVar",
parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto3",varindex:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretti",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Quadretti"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"OspitFoto1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"OspitFoto1",method:"CompareOpacity",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",
value:100}}]},{type:"OspitFoto1",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:0},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:100}}]}],actions:[{type:"OspitFoto1",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto1",varindex:0}}]},{type:"OspitFoto3",
method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto3",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"OspitFoto2",method:"CompareX",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"OspitFoto2",method:"CompareOpacity",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:100}}]},{type:"OspitFoto2",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:0},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:100}}]}],
actions:[{type:"OspitFoto2",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto2",varindex:0}}]},{type:"OspitFoto1",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto1",
varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"ospitindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:3}}]},{type:"OspitFoto3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"OspitFoto3",method:"CompareOpacity",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:100}}]},{type:"OspitFoto3",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:0},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:100}}]}],actions:[{type:"OspitFoto3",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",
object:"OspitFoto3",varindex:0}}]},{type:"OspitFoto2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"OspitFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"OspitFoto2",varindex:0}}]}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Men\u00f9 Territorio",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",
expression:{type:"string",value:"Men\u00f9 Territorio"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Allarme3",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Allarme3"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm3"},{type:"cmp",
combosel:2},{type:"any",expression:{type:"int",value:200}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"alarm3"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"alarm3"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:200}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",
value:2}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"terrindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm3"},{type:"any",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm3"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:200}}]},
{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"terrindex"},{type:"any",
expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm3"},{type:"any",expression:{type:"int",value:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretto foto Terr",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Quadretto foto Terr"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"EntrataFotina",
conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"EntrataFotina"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"Terr",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],actions:[{type:"Terr",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Terr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr",varindex:0},
second:{type:"float",value:1.1}}}]},{type:"TerrFoto",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"TerrFoto",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"TerrFoto",varindex:0}}]},{type:"TerrFoto2",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"NextEsplo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"NextEsplo",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"NextEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextEsplo",varindex:0},
second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"Terr",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Terr",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",
value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Terr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr",varindex:0},second:{type:"float",value:1.1}}}]},{type:"TerrFoto",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},
{type:"TerrFoto2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"NextEsplo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"NextEsplo",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"NextEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",
first:{type:"instvar_exp",object:"NextEsplo",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"Terr",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]},{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"TerrFoto",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"TerrFoto",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,
looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"Terr",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:2}}]}],actions:[{type:"TerrFoto2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"TerrFoto2",varindex:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretti",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Quadretti"}}]}],
actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"TerrFoto",method:"CompareOpacity",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:100}}]},{type:"TerrFoto",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:0},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:100}}]}],actions:[{type:"TerrFoto",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",
object:"TerrFoto",varindex:0}}]},{type:"TerrFoto2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"TerrFoto2",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"terrindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:2}}]},{type:"TerrFoto2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"TerrFoto2",method:"CompareOpacity",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:100}}]},{type:"TerrFoto2",method:"CompareInstanceVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"instvar",index:0},{type:"cmp",combosel:2},
{type:"any",expression:{type:"int",value:100}}]}],actions:[{type:"TerrFoto",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"TerrFoto",varindex:0}}]},{type:"TerrFoto2",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"instvar_exp",object:"TerrFoto2",varindex:0}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretto foto Esplo",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Quadretto foto Esplo"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"EntrataFotina",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"EntrataFotina"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],
actions:[{type:"Terr2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr2",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Terr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr2",varindex:0},second:{type:"float",value:1.1}}}]},{type:"PrevTerr",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"PrevTerr",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevTerr",varindex:0},second:{type:"int",value:2}}}]},{type:"NextParchi",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",
expression:{type:"int",value:35}}]},{type:"NextParchi",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"NextParchi",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextParchi",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},
{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Terr2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",
value:5}}]},{type:"Terr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr2",varindex:0},second:{type:"float",value:1.1}}}]},{type:"PrevTerr",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"PrevTerr",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"divide",first:{type:"instvar_exp",object:"PrevTerr",varindex:0},second:{type:"int",value:2}}}]},{type:"NextParchi",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"NextParchi",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"NextParchi",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",
object:"NextParchi",varindex:0},second:{type:"int",value:2}}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Quadretto foto Parchi",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Quadretto foto Parchi"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"EntrataFotina",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"EntrataFotina"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.3}}]},{type:"Terr3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],
actions:[{type:"Terr3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr3",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Terr3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr3",varindex:0},second:{type:"float",value:1.1}}}]},{type:"PrevEsplo",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"PrevEsplo",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PrevEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevEsplo",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.3}}]},{type:"Terr3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Terr3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Terr3",method:"SubInstanceVar",parameters:[{type:"instvar",
index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Terr3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Terr3",varindex:0},second:{type:"float",value:1.1}}}]},{type:"PrevEsplo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"PrevEsplo",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},
{type:"PrevEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevEsplo",varindex:0},second:{type:"int",value:2}}}]}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Men\u00f9 Offerta",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Men\u00f9 Offerta"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,
group_name:"Entrata",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Entrata"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:3}}]},{type:"Offerta",method:"CompareX",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],actions:[{type:"Offerta",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Offerta",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Offerta",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Offerta",
varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:3}}]},{type:"Offerta",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Offerta",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Offerta",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Offerta",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Offerta",varindex:0},second:{type:"float",value:1.1}}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Men\u00f9 Dovesiamo",conditions:[{type:"system",method:"IsGroupActive",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Men\u00f9 Dovesiamo"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Entrata",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Entrata"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:4}}]},{type:"Dovesiamo",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:410}}]}],actions:[{type:"Dovesiamo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:35}}]},{type:"Dovesiamo",method:"AddInstanceVar",
parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Dovesiamo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"Dovesiamo",varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:4}}]},{type:"Dovesiamo",
method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1110}}]}],actions:[{type:"Dovesiamo",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:35}}]},{type:"Dovesiamo",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Dovesiamo",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"divide",first:{type:"instvar_exp",object:"Dovesiamo",varindex:0},second:{type:"float",value:1.1}}}]}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Visualizza selezione",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Visualizza selezione"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"PulsOspit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"PulsTerr",
method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]}],actions:[{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,
looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.3}}]}],actions:[{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:3}}]}],
actions:[{type:"PulsPren",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:4}}]}],actions:[{type:"PulsDove",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:100}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Entrata men\u00f9",
conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Entrata men\u00f9"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"start"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"alarm0"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:12}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"alarm0"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"alarm0"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:12}}]},{type:"Scelte_Back",
method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:49}}]}],actions:[{type:"PulsDove",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PulsOspit",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PulsPren",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",
expression:{type:"int",value:5}}]},{type:"PulsTerr",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"Scelte_Back",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"PulsDove",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsDove",varindex:0},second:{type:"float",value:1.6}}}]},{type:"PulsOspit",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsOspit",varindex:0},second:{type:"float",value:1.6}}}]},{type:"PulsPren",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsPren",varindex:0},second:{type:"float",value:1.6}}}]},{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsTerr",varindex:0},second:{type:"float",value:1.6}}}]},
{type:"Scelte_Back",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"Scelte_Back",varindex:0}}]},{type:"Scelte_Back",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:20}}]},{type:"PulsOspit",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:10}}]},{type:"PulsTerr",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:21}}]},{type:"PulsPren",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:32}}]},{type:"PulsDove",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:43}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Comandi del men\u00f9",conditions:[{type:"system",method:"IsGroupActive",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Comandi del men\u00f9"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Premi",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Premi"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"FotoExt",conditions:[{type:"system",method:"IsGroupActive",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"FotoExt"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"FotoExtX"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},
{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoactive"},{type:"any",expression:{type:"int",value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"any",expression:{type:"int",value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"any",expression:{type:"int",value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",
varname:"photoactiveterr"},{type:"any",expression:{type:"int",value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"any",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:2},{type:"any",
expression:{type:"int",value:3}}]}],actions:[{type:"system",method:"AddVar",parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:4},{type:"any",expression:{type:"int",value:1}}]}],
actions:[{type:"system",method:"SubVar",parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},
{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"system",method:"AddVar",
parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:4},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"system",method:"SubVar",parameters:[{type:"eventvar",varname:"fotoindexterr"},
{type:"any",expression:{type:"int",value:1}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Terr",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Terr"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"TerrFotoClick"}]},
{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},
{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoactive"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"any",expression:{type:"int",value:1}}]}]},{type:"block",conditions:[{type:"Mouse",
method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"NextEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"float",
value:2.2}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PrevEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",
varname:"menuindex"},{type:"any",expression:{type:"float",value:2.2}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"NextParchi"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",
method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"float",value:2.3}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PrevTerr"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"terrindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm3"},{type:"any",expression:{type:"int",value:0}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},
{type:"TerrFoto",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:0}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"TerrFoto2",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Ospit",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"string",expression:{type:"string",value:"Ospit"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"OspitFotoClick"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:1}}]},{type:"OspitFoto1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"any",expression:{type:"int",
value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoactive"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"any",expression:{type:"int",value:1}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Menu",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Menu"}}]}],
actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"OnClick",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:2},{type:"combo",combosel:0}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"int",
value:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnClick",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:2},{type:"combo",combosel:0}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"any",expression:{type:"int",
value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"fotoactive"},{type:"any",expression:{type:"int",value:0}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"any",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PulsDove"}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:4}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"int",
value:4}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PulsOspit"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"ospitindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm2"},{type:"any",expression:{type:"int",
value:0}}]},{type:"OspitFoto1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"OspitFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"OspitFoto3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"OspitFoto1",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:0}}]},{type:"OspitFoto2",method:"SetInstanceVar",parameters:[{type:"instvar",
index:0},{type:"any",expression:{type:"int",value:0}}]},{type:"OspitFoto3",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PulsPren"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"menuindex"},{type:"any",expression:{type:"int",value:3}}]}]},{type:"block",conditions:[{type:"Mouse",method:"OnObjectClicked",trigger:!0,
looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"combo",combosel:0},{type:"combo",combosel:0},{type:"object",object:"PulsTerr"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",
expression:{type:"float",value:2.2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"system",method:"SetVar",parameters:[{type:"eventvar",
varname:"menuindex"},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"terrindex"},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"SetVar",parameters:[{type:"eventvar",varname:"alarm3"},{type:"any",expression:{type:"int",value:0}}]},{type:"TerrFoto",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"TerrFoto",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",
expression:{type:"int",value:0}}]},{type:"TerrFoto2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"TerrFoto2",method:"SetInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:0}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Illumina",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Illumina"}}]}],
actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"FotoExt",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"FotoExt"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"FotoExtX"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtX",varindex:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"FotoExtX"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtX",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",
expression:{type:"int",value:0}}]}],actions:[{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtX",varindex:0},second:{type:"int",value:2}}}]},{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:2}}}]},{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",
object:"FotoExtDx",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Ospit",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Ospit"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},
{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:3}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtDx",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:3}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtDx",varindex:0},
second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:3}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtDx",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",
conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},
{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:4},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtSx",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:0},{type:"any",
expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},
{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:4},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",
method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:2}}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Terr",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Terr"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtDx",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",
expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtDx",varindex:0},second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"FotoExtDx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:2},{type:"any",expression:{type:"int",value:2}}]}],actions:[{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",
object:"FotoExtDx",varindex:0},second:{type:"int",value:2}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:4},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtSx",varindex:0}}]}]},{type:"block",conditions:[{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"fotoindexterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"FotoExtSx"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",
combosel:4},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:2}}}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Menu",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Menu"}}]}],actions:[],subevents:[{type:"block",
conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"PulsOspit"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},
{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsOspit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"PulsOspit",varindex:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"PulsPren"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",
expression:{type:"int",value:3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsPren",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"PulsPren",varindex:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",
object:"PulsDove"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:4}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsDove",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",
object:"PulsDove",varindex:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"PulsTerr"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],
actions:[{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"PulsTerr",varindex:0}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"PulsOspit"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsOspit",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsOspit",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",
object:"PulsPren"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsPren",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",
first:{type:"instvar_exp",object:"PulsPren",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"PulsDove"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:4}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsDove",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsDove",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"PulsTerr"}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"float",value:2.3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PulsTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PulsTerr",varindex:0},second:{type:"float",value:1.6}}}]}]}]},{type:"block",
group:!0,active_on_start:!0,group_name:"Ospit",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Ospit"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"OspitFotoClick"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"OspitFoto1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"OspitFotoClick",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"int",value:50}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"OspitFotoClick"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"OspitFoto1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"OspitFotoClick",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"OspitFotoClick",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"Terr",
conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Terr"}}]}],actions:[],subevents:[{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"TerrFotoClick"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},
{type:"any",expression:{type:"int",value:2}}]},{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"TerrFotoClick",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",
value:50}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"TerrFotoClick"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",
expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"TerrFotoClick",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},
{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"TerrFotoClick",method:"SetOpacity",parameters:[{type:"number",expression:{type:"int",value:0}}]},{type:"NextEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",
object:"NextEsplo",varindex:0},second:{type:"float",value:1.6}}}]},{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevTerr",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"NextEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"NextEsplo",method:"SetOpacity",
parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextEsplo",varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"NextEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},
{type:"TerrFoto",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:224}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"NextEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextEsplo",
varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"PrevTerr"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",
combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevTerr",varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"Mouse",
method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"PrevTerr"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",
method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PrevTerr",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevTerr",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",
object:"NextParchi"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"NextParchi",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextParchi",varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"NextParchi"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.2}}]},{type:"Terr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:0}}]}],actions:[{type:"NextParchi",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"NextParchi",varindex:0},second:{type:"float",value:1.6}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"object",object:"PrevEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",
combosel:0},{type:"any",expression:{type:"float",value:2.3}}]},{type:"Terr3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PrevEsplo",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"divide",first:{type:"instvar_exp",object:"PrevEsplo",varindex:0},second:{type:"float",value:1.1}}}]}]},{type:"block",conditions:[{type:"Mouse",method:"IsOverObject",trigger:!1,looping:!1,inverted:!0,isstatic:!1,parameters:[{type:"object",object:"PrevEsplo"}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"menuindex"},{type:"cmp",combosel:0},{type:"any",expression:{type:"float",value:2.3}}]},{type:"Terr3",method:"CompareX",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:0},{type:"number",expression:{type:"int",value:410}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"PrevEsplo",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"PrevEsplo",varindex:0},second:{type:"float",
value:1.6}}}]}]}]}]}]}]},{type:"block",group:!0,active_on_start:!0,group_name:"FotoLayer",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"FotoLayer"}}]}],actions:[],subevents:[{type:"block",group:!0,active_on_start:!0,group_name:"Comparsa",conditions:[{type:"system",method:"IsGroupActive",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"string",expression:{type:"string",value:"Comparsa"}}]}],
actions:[],subevents:[{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"FotoExt",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:403}}]}],actions:[{type:"FotoExt",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",
value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExt",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExt",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExt",varindex:0}}]},{type:"FotoExtX",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtX",method:"AddInstanceVar",
parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtX",varindex:0},second:{type:"int",value:2}}}]},{type:"FotoExtDx",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtDx",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",
expression:{type:"int",value:5}}]},{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtDx",varindex:0},second:{type:"int",value:6}}}]},{type:"FotoExtSx",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtSx",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtSx",
method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]},{type:"FotoExt",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},
{type:"number",expression:{type:"int",value:1003}}]}],actions:[{type:"FotoExt",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExt",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExt",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExt",varindex:0}}]},{type:"FotoExtX",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtX",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtX",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtX",varindex:0},second:{type:"int",value:2}}}]},{type:"FotoExtDx",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",
expression:{type:"int",value:30}}]},{type:"FotoExtDx",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtDx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtDx",varindex:0},second:{type:"int",value:6}}}]},{type:"FotoExtSx",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtSx",
method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtSx",method:"SetOpacity",parameters:[{type:"number",expression:{type:"divide",first:{type:"instvar_exp",object:"FotoExtSx",varindex:0},second:{type:"int",value:6}}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:1}}]},{type:"FotoExtOspit1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:400}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},
{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit1",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit1",varindex:0}}]}]},
{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"FotoExtOspit1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",
varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit1",method:"SubInstanceVar",
parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit1",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]},{type:"FotoExtOspit1",method:"CompareX",trigger:!1,
looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]}],actions:[{type:"FotoExtOspit1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit1",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",
object:"FotoExtOspit1",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"FotoExtOspit2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:400}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",
value:30}}]},{type:"FotoExtOspit2",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit2",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",
value:2}}]},{type:"FotoExtOspit2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},
{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit2",varindex:0}}]}]},
{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]},{type:"FotoExtOspit2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]}],actions:[{type:"FotoExtOspit2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",
value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit2",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",
combosel:0},{type:"any",expression:{type:"int",value:3}}]},{type:"FotoExtOspit3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:400}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,
isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit3",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit3",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"instvar_exp",object:"FotoExtOspit3",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexospit"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:3}}]},{type:"FotoExtOspit3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",
trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveospit"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtOspit3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",
expression:{type:"int",value:30}}]},{type:"FotoExtOspit3",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit3",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit3",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",
value:0}}]},{type:"FotoExtOspit3",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]}],actions:[{type:"FotoExtOspit3",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtOspit3",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtOspit3",
method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtOspit3",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"FotoExtTerr1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",
value:400}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtTerr1",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr1",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtTerr1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtTerr1",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},
{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:1}}]},{type:"FotoExtTerr1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,
inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtTerr1",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr1",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtTerr1",method:"SetOpacity",parameters:[{type:"number",
expression:{type:"instvar_exp",object:"FotoExtTerr1",varindex:0}}]}]},{type:"block",conditions:[{type:"FotoExtTerr1",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"FotoExtTerr1",
method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr1",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtTerr1",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtTerr1",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,
parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:2}}]},{type:"FotoExtTerr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:4},{type:"number",expression:{type:"int",value:400}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},
{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtTerr2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:180}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr2",method:"AddInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},
{type:"FotoExtTerr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtTerr2",varindex:0}}]}]},{type:"block",conditions:[{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoindexterr"},{type:"cmp",combosel:1},{type:"any",expression:{type:"int",value:2}}]},{type:"FotoExtTerr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",
expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"photoactiveterr"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:1}}]}],actions:[{type:"FotoExtTerr2",method:"MoveAtAngle",parameters:[{type:"number",
expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",value:5}}]},{type:"FotoExtTerr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtTerr2",varindex:0}}]}]},{type:"block",conditions:[{type:"FotoExtTerr2",method:"CompareX",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"cmp",combosel:2},{type:"number",
expression:{type:"int",value:1E3}}]},{type:"system",method:"CompareVar",trigger:!1,looping:!1,inverted:!1,isstatic:!1,parameters:[{type:"eventvar",varname:"fotoactive"},{type:"cmp",combosel:0},{type:"any",expression:{type:"int",value:0}}]}],actions:[{type:"FotoExtTerr2",method:"MoveAtAngle",parameters:[{type:"number",expression:{type:"int",value:0}},{type:"number",expression:{type:"int",value:30}}]},{type:"FotoExtTerr2",method:"SubInstanceVar",parameters:[{type:"instvar",index:0},{type:"any",expression:{type:"int",
value:5}}]},{type:"FotoExtTerr2",method:"SetOpacity",parameters:[{type:"number",expression:{type:"instvar_exp",object:"FotoExtTerr2",varindex:0}}]}]}]}]}]}],files:[],files_subfolder:"media/"};cr.plugins.Mouse=function(c){this.runtime=c};
(function(){var c=cr.plugins.Mouse.prototype;c.Type=function(a){this.plugin=a;this.runtime=a.runtime};c.Type.prototype.onCreate=function(){};c.Instance=function(a){this.type=a;this.runtime=a.runtime;this.buttonMap=Array(4);this.mouseYcanvas=this.mouseXcanvas=0};var b=c.Instance.prototype;b.onCreate=function(){jQuery(document).mousemove(function(a){return function(b){a.onMouseMove(b)}}(this));jQuery(document).mousedown(function(a){return function(b){a.onMouseDown(b)}}(this));jQuery(document).mouseup(function(a){return function(b){a.onMouseUp(b)}}(this));
jQuery(document).dblclick(function(a){return function(b){a.onDoubleClick(b)}}(this))};b.onMouseMove=function(a){var b=jQuery(this.runtime.canvas).offset();this.mouseXcanvas=a.pageX-b.left;this.mouseYcanvas=a.pageY-b.top};b.onMouseDown=function(a){this.buttonMap[a.which]=!0;this.runtime.trigger("OnAnyClick",this);this.triggerButton=a.which-1;this.triggerType=0;this.runtime.trigger("OnClick",this);this.runtime.trigger("OnObjectClicked",this)};b.onMouseUp=function(a){this.buttonMap[a.which]=!1;this.triggerButton=
a.which-1;this.runtime.trigger("OnRelease",this)};b.onDoubleClick=function(a){this.triggerButton=a.which-1;this.triggerType=1;this.runtime.trigger("OnClick",this);this.runtime.trigger("OnObjectClicked",this)};c.cnds={};b=c.cnds;b.OnClick=function(a,b){return a===this.triggerButton&&b===this.triggerType};b.OnAnyClick=function(){return!0};b.IsButtonDown=function(a){return this.buttonMap[a+1]};b.OnRelease=function(a){return a===this.triggerButton};b.IsOverObject=function(a){var b=this.runtime.getCurrentCondition();
if(typeof b.mouseOverInverted==="undefined")b.mouseOverInverted=b.inverted,b.inverted=!1;return this.runtime.testAndSelectCanvasPointOverlap(a,new cr.vector2(this.mouseXcanvas,this.mouseYcanvas),b.mouseOverInverted)};b.OnObjectClicked=function(a,b,c){return a!==this.triggerButton||b!==this.triggerType?!1:this.runtime.testAndSelectCanvasPointOverlap(c,new cr.vector2(this.mouseXcanvas,this.mouseYcanvas),!1)};c.exps={};c=c.exps;c.X=function(a){a.set_float(this.mouseXcanvas+this.runtime.running_layout.scrollX)};
c.Y=function(a){a.set_float(this.mouseYcanvas+this.runtime.running_layout.scrollY)};c.AbsoluteX=function(a){a.set_float(this.mouseXcanvas)};c.AbsoluteY=function(a){a.set_float(this.mouseYcanvas)}})();cr.plugins.Sprite=function(c){this.runtime=c};
(function(){function c(a,b,c){var d,f=0,g,h;d=0;for(g=a.length;d<g;d++)h=a[d],h[0]===b&&h[1]===c||h[0]===c&&h[1]===b||(a[f]=a[d],f++);a.length=f}function b(a,b,c){var d,f,g;d=0;for(f=a.length;d<f;d++)if(g=a[d],g[0]===b&&g[1]===c||g[0]===c&&g[1]===b)return!0;return!1}var a=cr.plugins.Sprite.prototype;a.Type=function(a){this.plugin=a;this.runtime=a.runtime};a.Type.prototype.onCreate=function(){var a,b,c,d,f,g;a=0;for(b=this.animations.length;a<b;a++){f=this.animations[a];c=0;for(d=f.frames.length;c<
d;c++)g=f.frames[c],g.texture_img=new Image,g.texture_img.src=g.texture_file,g.texture_img.cr_filesize=g.texture_filesize,this.runtime.wait_for_textures.push(g.texture_img)}};a.Instance=function(a){this.type=a;this.runtime=a.runtime};var h=a.Instance.prototype;h.effectToCompositeOp=function(a){a=a.toLowerCase().replace(" ","-");a=="(none)"?a="source-over":a=="additive"&&(a="lighter");return a};h.onCreate=function(){this.visible=this.properties["Initial visibility"]==="Visible";this.compositeOp=this.effectToCompositeOp(this.properties.Effect);
this.autoMirror=this.properties["Auto mirror/flip"]==="Auto mirror";this.autoFlip=this.properties["Auto mirror/flip"]==="Auto flip";this.cur_animation=this.type.animations[0];this.cur_frame=0;this.cur_anim_speed=this.type.animations[0].speed;this.type.animations.length===1&&this.type.animations[0].frames.length===1||this.runtime.tickMe(this);this.frameStart=this.runtime.kahanTime.sum;this.animPlaying=!0;this.animRepeats=0;this.animForwards=!0;this.animTriggerName=""};h.tick=function(){var a=this.runtime.kahanTime.sum,
b=this.cur_animation,c=b.frames[this.cur_frame],d=c.duration/this.cur_anim_speed;if(this.animPlaying&&a>=this.frameStart+d){this.animForwards?this.cur_frame++:this.cur_frame--;this.frameStart+=d;if(this.cur_frame>=b.frames.length)b.loop?b.pingpong?(this.animForwards=!1,this.cur_frame=b.frames.length-2):this.cur_frame=b.repeatto:(this.animRepeats++,this.animRepeats>=b.repeatcount?(this.cur_frame=b.frames.length-1,this.animPlaying=!1,this.animTriggerName=b.name,this.runtime.trigger("OnAnyAnimFinished",
this),this.runtime.trigger("OnAnimFinished",this)):b.pingpong?(this.animForwards=!1,this.cur_frame=b.frames.length-2):this.cur_frame=b.repeatto);if(this.cur_frame<0)this.cur_frame=1,this.animForwards=!0;if(this.cur_frame<0)this.cur_frame=0;else if(this.cur_frame>=b.frames.length)this.cur_frame=b.frames.length-1;this.OnFrameChanged(c,b.frames[this.cur_frame]);this.runtime.redraw=!0}};h.OnFrameChanged=function(a,b){var c=a.texture_img.width,d=a.texture_img.height,f=b.texture_img.width,g=b.texture_img.height;
c!=f&&(this.width*=f/c,this.set_bbox_changed());d!=g&&(this.height*=g/d,this.set_bbox_changed());this.runtime.trigger("OnFrameChanged",this)};h.draw=function(a){if(this.opacity!==1)a.globalAlpha=this.opacity;if(this.compositeOp!="source-over")a.globalCompositeOperation=this.compositeOp;var b=this.cur_animation.frames[this.cur_frame],c=b.texture_img;if(this.autoMirror){var d=cr.clamp_angle(this.angle);if(d>Math.PI/2&&d<=Math.PI*3/2){if(!b.mirrored_img)b.mirrored_img=this.runtime.flip(b.texture_img);
c=b.mirrored_img}}if(this.autoFlip&&(d=cr.clamp_angle(this.angle),d>=Math.PI)){if(!b.flipped_img)b.flipped_img=this.runtime.flip(b.texture_img);c=b.flipped_img}this.angle==0?a.drawImage(c,this.x-this.hotspotX*this.width,this.y-this.hotspotY*this.height,this.width,this.height):(a.save(),a.translate(this.x,this.y),a.rotate(this.angle),a.drawImage(c,0-this.hotspotX*this.width,0-this.hotspotY*this.height,this.width,this.height),a.restore());if(this.compositeOp!="source-over")a.globalCompositeOperation=
"source-over";if(this.opacity!==1)a.globalAlpha=1};a.cnds={};h=a.cnds;h.OnCollision=function(a){if(!a)return!1;var h=this.getCurrentCondition(),i=h.type;if(!h.collmemory)h.collmemory=[],this.addDestroyCallback(function(a){return function(b){var c,e=0,d,f;c=0;for(d=a.length;c<d;c++)f=a[c],f[0]!==b&&f[1]!==b&&(a[e]=a[c],e++);a.length=e}}(h.collmemory));var d=i.getCurrentSol(),f=a.getCurrentSol(),g=d.getObjects(),k=f.getObjects(),m,l,n,q,o,p;d.select_all=!1;d.instances.length=1;f.select_all=!1;f.instances.length=
1;var r=this.getCurrentEventStack().current_event;m=0;for(l=g.length;m<l;m++){n=g[m];q=0;for(o=k.length;q<o;q++)if(p=k[q],this.testOverlap(n,p)){if(!b(h.collmemory,n,p))h.collmemory.push([n,p]),i===a?(d.instances.length=2,d.instances[0]=n,d.instances[1]=p):(d.instances[0]=n,f.instances[0]=p),this.pushCopySol(r.solModifiers),r.retrigger(),this.popSol(r.solModifiers)}else c(h.collmemory,n,p)}return!1};h.IsOverlapping=function(a){if(!a)return!1;var c=this.getCurrentCondition(),h=c.type,d=h.getCurrentSol(),
f=a.getCurrentSol(),g=d.getObjects(),k=f.getObjects(),m,l,n,q,o;if(c.inverted){h=[];c=0;for(m=g.length;c<m;c++){l=g[c];a=!1;n=0;for(q=k.length;n<q;n++)if(o=k[n],this.testOverlap(l,o)){a=!0;break}a||h.push(l)}d.select_all=!1;d.instances=h;return d.instances.length}else{d.select_all=!1;d.instances.length=1;f.select_all=!1;f.instances.length=1;var p=this.getCurrentEventStack().current_event,r=[],c=0;for(m=g.length;c<m;c++){l=g[c];n=0;for(q=k.length;n<q;n++)if(o=k[n],this.testOverlap(l,o)){if(h===a)if(b(r,
l,o))continue;else r.push([l,o]),d.instances.length=2,d.instances[0]=l,d.instances[1]=o;else d.instances[0]=l,f.instances[0]=o;this.pushCopySol(p.solModifiers);p.retrigger();this.popSol(p.solModifiers)}}return!1}};h.IsAnimPlaying=function(a){return this.cur_animation.name.toLowerCase()===a.toLowerCase()};h.CompareFrame=function(a,b){return cr.do_cmp(this.cur_frame,a,b)};h.OnAnimFinished=function(a){return this.animTriggerName.toLowerCase()===a.toLowerCase()};h.OnAnyAnimFinished=function(){return!0};
h.OnFrameChanged=function(){return!0};a.acts={};h=a.acts;h.Spawn=function(a,b){if(a&&b){var c=this.runtime.createInstance(a,b);c.x=this.x;c.y=this.y;c.angle=this.angle;var d=a.getCurrentSol();d.select_all=!1;d.instances=[c]}};h.SetEffect=function(a){this.compositeOp=["source-over","lighter","xor","copy","destination-over","source-in","destination-in","source-out","destination-out","source-atop","destination-atop"][a];this.runtime.redraw=!0};h.StopAnim=function(){this.animPlaying=!1};h.StartAnim=function(a){this.animPlaying=
!0;this.frameStart=this.runtime.kahanTime.sum;if(a===1&&this.cur_frame!==0)a=this.cur_animation.frames[this.cur_frame],this.cur_frame=0,this.OnFrameChanged(a,this.cur_animation.frames[0])};h.SetAnim=function(a,b){var c=this.cur_animation.frames[this.cur_frame],d,f,g,h=null;d=0;for(f=this.type.animations.length;d<f;d++)if(g=this.type.animations[d],g.name.toLowerCase()===a.toLowerCase()){h=g;break}if(h&&h.name.toLowerCase()!==this.cur_animation.name.toLowerCase()){this.cur_animation=h;this.cur_anim_speed=
h.speed;if(this.cur_frame<0)this.cur_frame=0;if(this.cur_frame>=this.cur_animation.frames.length)this.cur_frame=this.cur_animation.frames.length-1;if(b===1)this.cur_frame=0;this.animPlaying=!0;this.frameStart=this.runtime.kahanTime.sum;this.animForwards=!0;this.OnFrameChanged(c,this.cur_animation.frames[this.cur_frame])}};h.SetAnimFrame=function(a){var b=this.cur_animation.frames[this.cur_frame],c=this.cur_frame;this.cur_frame=Math.floor(a);if(this.cur_frame<0)this.cur_frame=0;if(this.cur_frame>=
this.cur_animation.frames.length)this.cur_frame=this.cur_animation.frames.length-1;if(c!==this.cur_frame)this.OnFrameChanged(b,this.cur_animation.frames[this.cur_frame]),this.frameStart=this.runtime.kahanTime.sum};h.SetAnimSpeed=function(a){this.cur_anim_speed=a;this.frameStart=this.runtime.kahanTime.sum};a.exps={};a=a.exps;a.AnimationFrame=function(a){a.set_int(this.cur_frame)};a.AnimationFrameCount=function(a){a.set_int(this.cur_animation.frames.length)};a.AnimationName=function(a){a.set_string(this.cur_animation.name)};
a.AnimationSpeed=function(a){a.set_float(this.cur_anim_speed)}})();cr.plugins.Text=function(c){this.runtime=c};
(function(){var c=cr.plugins.Text.prototype;c.onCreate=function(){c.acts.SetWidth=function(a){if(this.width!==a)this.width=a,this.text_changed=!0,this.set_bbox_changed()}};c.Type=function(a){this.plugin=a;this.runtime=a.runtime};c.Type.prototype.onCreate=function(){};c.Instance=function(a){this.type=a;this.runtime=a.runtime;this.lines=[];this.text_changed=!0};var b=c.Instance.prototype;b.onCreate=function(){this.font=this.properties.Font;this.text=this.properties.Text;this.color=this.properties.Color;
this.halign=this.properties["Horizontal alignment"];this.visible=this.properties["Initial visibility"]==="Visible";for(var a=this.font.split(" "),b=0,b=0;b<a.length;b++)if(a[b].substr(a[b].length-2,2)==="pt"){b=parseInt(a[b].substr(0,a[b].length-2));this.pxHeight=Math.ceil(b/72*96)+4;break}};b.draw=function(a){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;if(this.opacity!==1)a.globalAlpha=this.opacity;if(this.text_changed)this.lines=cr.plugins.Text.WordWrap(this.text,a,this.width),
this.text_changed=!1;var b=this.x-this.hotspotX*this.width,c=this.y-this.hotspotY*this.height,j=c+this.height,i=this.pxHeight,d,f;for(f=0;f<this.lines.length;f++)if(d=b,this.halign==="Center"?d=b+(this.width-this.lines[f].width)/2:this.halign==="Right"&&(d=b+(this.width-this.lines[f].width)),a.fillText(this.lines[f].text,d,c),c+=i,c>=j-i)break;if(this.opacity!==1)a.globalAlpha=1};cr.plugins.Text.TokeniseWords=function(a){for(var b=[],c="",j,i=0;i<a.length;)if(j=a.charAt(i),j==="\n")c.length&&(b.push(c),
c=""),b.push("\n"),++i;else if(j===" "||j==="\t"||j==="-"){do c+=a.charAt(i),i++;while(i<a.length&&(a.charAt(i)===" "||a.charAt(i)==="\t"));b.push(c);c=""}else i<a.length&&(c+=j,i++);c.length&&b.push(c);return b};cr.plugins.Text.WordWrap=function(a,b,c){return!a||!a.length?[]:c<=2?[]:cr.plugins.Text.WordWrapByWord(a,b,c)};cr.plugins.Text.WordWrapByWord=function(a,b,c){var a=cr.plugins.Text.TokeniseWords(a),j=[],i="",d,f,g;for(g=0;g<a.length;g++)if(a[g]==="\n")f={},f.text=i,f.width=b.measureText(i).width,
j.push(f),i="";else if(d=i,i+=a[g],f=b.measureText(i).width,f>=c)f={},f.text=d,f.width=b.measureText(d).width,j.push(f),i=a[g];if(i.length)f={},f.text=i,f.width=b.measureText(i).width,j.push(f);return j};c.cnds={};c.cnds.CompareText=function(a,b){return b?this.text==a:this.text.toLowerCase()==a.toLowerCase()};c.acts={};b=c.acts;b.SetText=function(a){a=a.toString();if(this.text!==a)this.text=a,this.text_changed=!0,this.runtime.redraw=!0};b.AppendText=function(a){if(a=a.toString())this.text+=a,this.text_changed=
!0,this.runtime.redraw=!0};c.exps={};c.exps.Text=function(a){a.set_string(this.text)}})();cr.plugins.TiledBg=function(c){this.runtime=c};
(function(){var c=cr.plugins.TiledBg.prototype;c.Type=function(a){this.plugin=a;this.runtime=a.runtime};c.Type.prototype.onCreate=function(){this.texture_img=new Image;this.texture_img.src=this.texture_file;this.texture_img.cr_filesize=this.texture_filesize;this.runtime.wait_for_textures.push(this.texture_img)};c.Instance=function(a){this.type=a;this.runtime=a.runtime};var b=c.Instance.prototype;b.effectToCompositeOp=function(a){a=a.toLowerCase().replace(" ","-");a=="(none)"?a="source-over":a=="additive"&&
(a="lighter");return a};b.onCreate=function(){this.visible=this.properties["Initial visibility"]==="Visible";this.compositeOp=this.effectToCompositeOp(this.properties.Effect)};b.draw=function(a){if(!this.type.pattern)this.type.pattern=a.createPattern(this.type.texture_img,"repeat");a.save();a.globalAlpha=this.opacity;a.globalCompositeOperation=this.compositeOp;a.fillStyle=this.type.pattern;var b=-(this.hotspotX*this.width)%this.type.texture_img.width,c=-(this.hotspotY*this.height)%this.type.texture_img.height;
a.translate(this.x+b,this.y+c);this.angle!==0&&a.rotate(this.angle);a.fillRect(-b-this.hotspotX*this.width,-c-this.hotspotY*this.height,this.width,this.height);a.restore()};c.acts={};c.acts.SetEffect=function(a){this.compositeOp=["source-over","lighter","xor","copy","destination-over","source-in","destination-in","source-out","destination-out","source-atop","destination-atop"][a];this.runtime.redraw=!0}})();

