document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write('FlightRight_120x600_EN<\/title>'); document.writeln(''); document.write('<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> '); document.writeln(''); document.write('<meta http-equiv="X-UA-Compatible" content="IE=edge">'); document.writeln(''); document.write('<!-- DoubleClick ad size meta tag -->'); document.writeln(''); document.write('<meta name="ad.size" content="width=120,height=600">'); document.writeln(''); document.write('<style>'); document.writeln(''); document.write('html, body{'); document.writeln(''); document.write(' margin: 0;'); document.writeln(''); document.write(' padding: 0;'); document.writeln(''); document.write(' background-color: #FFFFFF;'); document.writeln(''); document.write('}'); document.writeln(''); document.write('#canvas{'); document.writeln(''); document.write(' position: absolute;'); document.writeln(''); document.write(' top: 0px;'); document.writeln(''); document.write(' left: 0px;'); document.writeln(''); document.write(' -moz-user-select: none;'); document.writeln(''); document.write(' -webkit-user-select: none;'); document.writeln(''); document.write(' -ms-user-select: none;'); document.writeln(''); document.write(' user-select: none;'); document.writeln(''); document.write(' -webkit-tap-highlight-color: rgba(0,0,0,0);'); document.writeln(''); document.write(' cursor: pointer;'); document.writeln(''); document.write('}'); document.writeln(''); document.write('<\/style>'); document.writeln(''); document.write('<script>'); document.writeln(''); document.write('var clickTAG = "http:\/\/www.adobe.com",'); document.writeln(''); document.write(' canvas,'); document.writeln(''); document.write(' stage,'); document.writeln(''); document.write(' exportRoot,'); document.writeln(''); document.write(' ad,'); document.writeln(''); document.write(' failCount = 1;'); document.writeln(''); document.write('function init() {'); document.writeln(''); document.write(' canvas = document.getElementById("canvas");'); document.writeln(''); document.write(' \/* uncomment if using AdHelper'); document.writeln(''); document.write(' if (!createjs.AdHelper.isSupported()) {'); document.writeln(''); document.write(' createjs.AdHelper.showAltImage(canvas, "backup_300x600.jpg", clickTAG, "Adobe Animate CC", "_blank");'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' *\/'); document.writeln(''); document.write(' var comp=AdobeAn.getComposition("5C6CFA4F82DD47E981ED2FFF06B3160B");'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' var loader = new createjs.LoadQueue(false);'); document.writeln(''); document.write(' loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});'); document.writeln(''); document.write(' loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' loader.loadManifest(lib.properties.manifest);'); document.writeln(''); document.write('}'); document.writeln(''); document.write('function handleFileLoad(evt, comp) {'); document.writeln(''); document.write(' var images=comp.getImages(); '); document.writeln(''); document.write(' if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; } '); document.writeln(''); document.write('}'); document.writeln(''); document.write('function handleComplete(evt,comp) {'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' var ss=comp.getSpriteSheet();'); document.writeln(''); document.write(' var queue = evt.target;'); document.writeln(''); document.write(' var ssMetadata = lib.ssMetadata;'); document.writeln(''); document.write(' for(i=0; i<ssMetadata.length; i++) {'); document.writeln(''); document.write(' ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' exportRoot = new lib.FlightRight_120x600_EN();'); document.writeln(''); document.write(' stage = new lib.Stage(canvas);'); document.writeln(''); document.write('createjs.Touch.enable(stage);'); document.writeln(''); document.write('stage.enableMouseOver();'); document.writeln(''); document.write('stage.snapToPixelEnabled = false;'); document.writeln(''); document.write('createjs.Ticker.timingMode = createjs.Ticker.RAF_SYNCHED;'); document.writeln(''); document.write('fnStartAnimation = function() {'); document.writeln(''); document.write(' stage.addChild(exportRoot);'); document.writeln(''); document.write(' createjs.Ticker.setFPS(lib.properties.fps);'); document.writeln(''); document.write(' createjs.Ticker.addEventListener("tick", stage)'); document.writeln(''); document.write(' stage.addEventListener("tick", handleTick)'); document.writeln(''); document.write(' function getProjectionMatrix(container, totalDepth) {'); document.writeln(''); document.write(' var focalLength = 528.25;'); document.writeln(''); document.write(' var projectionCenter = { x : lib.properties.width\/2, y : lib.properties.height\/2 };'); document.writeln(''); document.write(' var scale = (totalDepth + focalLength)\/focalLength;'); document.writeln(''); document.write(' var scaleMat = new createjs.Matrix2D;'); document.writeln(''); document.write(' scaleMat.a = 1\/scale;'); document.writeln(''); document.write(' scaleMat.d = 1\/scale;'); document.writeln(''); document.write(' var projMat = new createjs.Matrix2D;'); document.writeln(''); document.write(' projMat.tx = -projectionCenter.x;'); document.writeln(''); document.write(' projMat.ty = -projectionCenter.y;'); document.writeln(''); document.write(' projMat = projMat.prependMatrix(scaleMat);'); document.writeln(''); document.write(' projMat.tx += projectionCenter.x;'); document.writeln(''); document.write(' projMat.ty += projectionCenter.y;'); document.writeln(''); document.write(' return projMat;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' function handleTick(event) {'); document.writeln(''); document.write(' var cameraInstance = exportRoot.___camera___instance;'); document.writeln(''); document.write(' if(cameraInstance !== undefined && cameraInstance.pinToObject !== undefined)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' cameraInstance.x = cameraInstance.pinToObject.x + cameraInstance.pinToObject.pinOffsetX;'); document.writeln(''); document.write(' cameraInstance.y = cameraInstance.pinToObject.y + cameraInstance.pinToObject.pinOffsetY;'); document.writeln(''); document.write(' if(cameraInstance.pinToObject.parent !== undefined && cameraInstance.pinToObject.parent.depth !== undefined)'); document.writeln(''); document.write(' cameraInstance.depth = cameraInstance.pinToObject.parent.depth + cameraInstance.pinToObject.pinOffsetZ;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' applyLayerZDepth(exportRoot);'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' function applyLayerZDepth(parent)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' var cameraInstance = parent.___camera___instance;'); document.writeln(''); document.write(' var focalLength = 528.25;'); document.writeln(''); document.write(' var projectionCenter = { \'x\' : 0, \'y\' : 0};'); document.writeln(''); document.write(' if(parent === exportRoot)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' var stageCenter = { \'x\' : lib.properties.width\/2, \'y\' : lib.properties.height\/2 };'); document.writeln(''); document.write(' projectionCenter.x = stageCenter.x;'); document.writeln(''); document.write(' projectionCenter.y = stageCenter.y;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' for(child in parent.children)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' var layerObj = parent.children[child];'); document.writeln(''); document.write(' if(layerObj == cameraInstance)'); document.writeln(''); document.write(' continue;'); document.writeln(''); document.write(' applyLayerZDepth(layerObj, cameraInstance);'); document.writeln(''); document.write(' if(layerObj.layerDepth === undefined)'); document.writeln(''); document.write(' continue;'); document.writeln(''); document.write(' if(layerObj.currentFrame != layerObj.parent.currentFrame)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' layerObj.gotoAndPlay(layerObj.parent.currentFrame);'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' var matToApply = new createjs.Matrix2D;'); document.writeln(''); document.write(' var cameraMat = new createjs.Matrix2D;'); document.writeln(''); document.write(' var totalDepth = layerObj.layerDepth ? layerObj.layerDepth : 0;'); document.writeln(''); document.write(' var cameraDepth = 0;'); document.writeln(''); document.write(' if(cameraInstance && !layerObj.isAttachedToCamera)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' var mat = cameraInstance.getMatrix();'); document.writeln(''); document.write(' mat.tx -= projectionCenter.x;'); document.writeln(''); document.write(' mat.ty -= projectionCenter.y;'); document.writeln(''); document.write(' cameraMat = mat.invert();'); document.writeln(''); document.write(' cameraMat.prependTransform(projectionCenter.x, projectionCenter.y, 1, 1, 0, 0, 0, 0, 0);'); document.writeln(''); document.write(' cameraMat.appendTransform(-projectionCenter.x, -projectionCenter.y, 1, 1, 0, 0, 0, 0, 0);'); document.writeln(''); document.write(' if(cameraInstance.depth)'); document.writeln(''); document.write(' cameraDepth = cameraInstance.depth;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' if(layerObj.depth)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' totalDepth = layerObj.depth;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' \/\/Offset by camera depth'); document.writeln(''); document.write(' totalDepth -= cameraDepth;'); document.writeln(''); document.write(' if(totalDepth < -focalLength)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' matToApply.a = 0;'); document.writeln(''); document.write(' matToApply.d = 0;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' else'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' if(layerObj.layerDepth)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' var sizeLockedMat = getProjectionMatrix(parent, layerObj.layerDepth);'); document.writeln(''); document.write(' if(sizeLockedMat)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' sizeLockedMat.invert();'); document.writeln(''); document.write(' matToApply.prependMatrix(sizeLockedMat);'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' matToApply.prependMatrix(cameraMat);'); document.writeln(''); document.write(' var projMat = getProjectionMatrix(parent, totalDepth);'); document.writeln(''); document.write(' if(projMat)'); document.writeln(''); document.write(' {'); document.writeln(''); document.write(' matToApply.prependMatrix(projMat);'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' layerObj.transformMatrix = matToApply;'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' }'); document.writeln(''); document.write('\/\/ uncomment the following block if using AdHelper'); document.writeln(''); document.write('\/* '); document.writeln(''); document.write('ad = new createjs.AdHelper(stage)'); document.writeln(''); document.write(' .setSleep(15,0,0)'); document.writeln(''); document.write(' .timeSync()'); document.writeln(''); document.write(' .watchFPS(20, 1)'); document.writeln(''); document.write(' .highDPI(false);'); document.writeln(''); document.write(' ad.on("slow", function(evt) {'); document.writeln(''); document.write(' if (failCount === 0) {'); document.writeln(''); document.write(' evt.preventDefault(); '); document.writeln(''); document.write(' failCount++; '); document.writeln(''); document.write(' this.watchFPS(20, 1); '); document.writeln(''); document.write(' } else if (failCount === 1){'); document.writeln(''); document.write(' \/\/createjs.AdHelper.showAltImage(canvas, "backup_300x600.jpg", clickTAG, "BannerWave", "_blank");'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' });'); document.writeln(''); document.write(' \/\/ trace out AdHelper events for testing purposes'); document.writeln(''); document.write(' ad.on("sleep", trace);'); document.writeln(''); document.write(' ad.on("wake", trace);'); document.writeln(''); document.write(' ad.on("slow", trace);'); document.writeln(''); document.write(' function trace(evt) {'); document.writeln(''); document.write(' console.log("event: " + evt.type);'); document.writeln(''); document.write(' };'); document.writeln(''); document.write('*\/'); document.writeln(''); document.write(' function makeResponsive(isResp, respDim, isScale, scaleType) { '); document.writeln(''); document.write(' var lastW, lastH, lastS=1; '); document.writeln(''); document.write(' window.addEventListener(\'resize\', resizeCanvas); '); document.writeln(''); document.write(' resizeCanvas(); '); document.writeln(''); document.write(' function resizeCanvas() { '); document.writeln(''); document.write(' var w = lib.properties.width, h = lib.properties.height; '); document.writeln(''); document.write(' var iw = window.innerWidth, ih=window.innerHeight; '); document.writeln(''); document.write(' var pRatio = window.devicePixelRatio || 1, xRatio=iw\/w, yRatio=ih\/h, sRatio=1; '); document.writeln(''); document.write(' if(isResp) { '); document.writeln(''); document.write(' if((respDim==\'width\'&&lastW==iw) || (respDim==\'height\'&&lastH==ih)) { '); document.writeln(''); document.write(' sRatio = lastS; '); document.writeln(''); document.write(' } '); document.writeln(''); document.write(' else if(!isScale) { '); document.writeln(''); document.write(' if(iw<w || ih<h) '); document.writeln(''); document.write(' sRatio = Math.min(xRatio, yRatio); '); document.writeln(''); document.write(' } '); document.writeln(''); document.write(' else if(scaleType==1) { '); document.writeln(''); document.write(' sRatio = Math.min(xRatio, yRatio); '); document.writeln(''); document.write(' } '); document.writeln(''); document.write(' else if(scaleType==2) { '); document.writeln(''); document.write(' sRatio = Math.max(xRatio, yRatio); '); document.writeln(''); document.write(' } '); document.writeln(''); document.write(' } '); document.writeln(''); document.write(' canvas.width = w*pRatio*sRatio; '); document.writeln(''); document.write(' canvas.height = h*pRatio*sRatio;'); document.writeln(''); document.write(' canvas.style.width = w*sRatio+\'px\'; '); document.writeln(''); document.write(' canvas.style.height = h*sRatio+\'px\';'); document.writeln(''); document.write(' stage.scaleX = pRatio*sRatio; '); document.writeln(''); document.write(' stage.scaleY = pRatio*sRatio; '); document.writeln(''); document.write(' lastW = iw; lastH = ih; lastS = sRatio; '); document.writeln(''); document.write(' stage.tickOnUpdate = false; '); document.writeln(''); document.write(' stage.update(); '); document.writeln(''); document.write(' stage.tickOnUpdate = true; '); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' makeResponsive(false,\'both\',false,1); '); document.writeln(''); document.write(' AdobeAn.compositionLoaded(lib.properties.id);'); document.writeln(''); document.write(' fnStartAnimation();'); document.writeln(''); document.write('}'); document.writeln(''); document.write('<\/script>'); document.writeln(''); document.write('<\/head>'); document.writeln(''); document.write('<body onload="init();" >'); document.writeln(''); document.write('<div style="display: none; visibility: hidden;">'); document.writeln(''); document.write(' <img height="1" width="1" src="https:\/\/d.adtriba.com\/collect?atb_ptid=0b5e656a&atb_dpuid=awin&atb_dcaid=affiliates" \/>'); document.writeln(''); document.write('<\/div>'); document.writeln(''); document.write(' <canvas id="canvas" width="120" height="600" style="display: block; background-color:rgba(255, 255, 255, 1.00)"><\/canvas>'); document.writeln(''); document.write('<!-- DoubleClick GreenSock -->'); document.writeln(''); document.write('<script src="https:\/\/s0.2mdn.net\/ads\/studio\/cached_libs\/tweenmax_1.18.0_499ba64a23378545748ff12d372e59e9_min.js"><\/script>'); document.writeln(''); document.write('<!-- DoubleClick CreateJs -->'); document.writeln(''); document.write('<script src="https:\/\/s0.2mdn.net\/ads\/studio\/cached_libs\/createjs_2015.11.26_54e1c3722102182bb133912ad4442e19_min.js"><\/script>'); document.writeln(''); document.write('<!-- uncomment the following block if using AdHelper -->'); document.writeln(''); document.write('<!--'); document.writeln(''); document.write('<script>'); document.writeln(''); document.write('this.createjs=this.createjs||{},function(){"use strict";function e(e){this._stage=e,this.tickListener=null,this.awake=!0,this.sleepEnabled=!1,this.hidden=!1,this.pixelRatio=this._getBackingRatio(),this._time=0,this._awake=!0,this._sleepy=!1,this._sleepT=0,this._sleepMousedownT=null,this._sleepInBoundsT=null,this._sleepUseTicks=!1,this._mouseInDoc=!1,this._perfDelay=0,this._perfCount=0,this._perfThreshold=0,this._perfFPS=0,this._width=e.canvas.width,this._height=e.canvas.height,createjs.Ticker.on("tick",this)}var t=e.prototype;createjs.EventDispatcher&&(t=e.prototype=new createjs.EventDispatcher),e.isSupported=function(){return!!window.CanvasRenderingContext2D},e.showAltImage=function(t,i,s,n,h){return e.showAltHTML(t,(s?"<a target=\'"+(h||"_blank")+"\' href="https:\/\/www.awin1.com\/awclick.php?gid=353131&mid=15874&awinaffid=555370&linkid=2570428&clickref=&p=https:\/\/www.flightright.co.uk\/\'"+s+"\'">":"")+"<img src=\'"+i+"\' border=\'0\' alt=\'"+(n||"")+"\'>"+(s?"<\/a>":""))},e.showAltHTML=function(t,i){var s=document.createElement("div");return s.innerHTML=i||"",s.id="adAlt",e.showAlt(t,s)},e.showAlt=function(e,t){return"string"==typeof e&&(e=document.getElementById(e)),t.style.display="block",e.parentNode.replaceChild(t,e),t},t.timeSync=function(e){var t=void 0!==this._stage.masterFrameRate;if(this._stage.masterFrameRate=e||lib&&lib.properties&&lib.properties.fps||this._getTickerFPS(),t)return this;var i=createjs.Stage.prototype,s=createjs.MovieClip.prototype;return i.__tick=i._tick,i._tick=function(e){e.stage=this,this.__tick(e)},s.__tick=s._tick,s._tick=function(e){!this.ignoreMasterFrameRate&&e.stage&&(this.framerate=e.stage.masterFrameRate||null),this.__tick(e)},this},t.watchFPS=function(e,t){return this._perfFPS=e||.9*this._getTickerFPS()-1|0,this._perfThreshold=t||1,this._perfCount=0,this._perfDelay=5,this},t.highDPI=function(e,t){t=t||1;var i=this._getBackingRatio(),s=Math.max(1,(window.devicePixelRatio||1)\/i),n=this._stage,h=n.canvas,a=h.style,r=this._width\/t,o=this._height\/t;return e===!1&&(s=1\/i),h.width=r*s,h.height=o*s,a.width=r+"px",a.height=o+"px",n.scaleX=n.scaleY=s\/t,this.pixelRatio=(1===i?s:e===!1?1:i)\/t,this},t.setSleep=function(e,t,i,s,n){return null!=t&&stage.addEventListener("stagemousedown",this),null!=i&&(document.addEventListener("mouseout",this,!0),document.addEventListener("mousemove",this,!0)),this.tickListener=n||this._stage,this._sleepMousedownT=t,this._sleepInBoundsT=i,this._sleepUseTicks=!!s,this.sleepEnabled=!0,this._sleepy=!1,this._sleepT=null!=e?this._getTime()+1e3*e:0,this},t.sleep=function(e){return e?void(this._sleepT=this._getTime()+(e||0)):(this._sleepy=!1,this._sleepT=0,this._awake=!1,void this._sleep())},t.wake=function(e){this._sleepy=!1,null!=e?this._sleepT=Math.max(this._sleepT,this._getTime()+(e||0)):this._sleepT=0,this._awake=!0,this._wake()},t.handleEvent=function(e){if("tick"===e.type)this._tick(e);else if("stagemousedown"===e.type){var t=this._sleepMousedownT;this.sleepEnabled&&null!=t&&this.wake(1e3*t)}else"mousemove"===e.type?this._mouseInDoc=!0:"mouseout"===e.type&&(this._mouseInDoc=!1)},t._getTickerFPS=function(){return createjs.Ticker.timingMode==createjs.Ticker.RAF?60:createjs.Ticker.framerate},t._sleep=function(){this.awake&&(createjs.Ticker.paused=!0,this.tickListener&&createjs.Ticker.removeEventListener("tick",this.tickListener),window.TweenLite&&TweenLite.ticker&&TweenLite.ticker.sleep(),this.dispatchEvent("sleep"),this.awake=!1)},t._wake=function(){if(!this.awake){if(createjs.Ticker.paused=!1,this.tickListener&&createjs.Ticker.addEventListener("tick",this.tickListener),window.TweenLite){var e=TweenLite.ticker,t=e.frame;e.frame=1,e.wake(!0),e.frame=t}this.dispatchEvent("wake"),this.awake=!0}},t._tick=function(e){if(document.hidden||document.webkitHidden||document.mozHidden)return this.hidden=!0,this._sleep(),void(createjs.Sound&&(createjs.Sound.muted=!0));this.hidden&&(this.hidden=!1,this._awake&&this._wake(),this._perfDelay=3,createjs.Sound&&(createjs.Sound.muted=!1)),this._time+=this._sleepUseTicks?1:e.delta;var t;if(this._perfFPS&&--this._perfDelay<=0&&(t=createjs.Ticker.getMeasuredFPS(1))>-1){var i=1-Math.max(0,Math.min(1,t\/this._perfFPS));this._perfCount=Math.max(0,this._perfCount+(0===i?-.2:i*i*.5+.1)),this._perfCount>this._perfThreshold&&(this._perfFPS=0,this.dispatchEvent(new createjs.Event("slow",!1,!0))&&(this.sleep(),this.sleepEnabled=!1))}this.sleepEnabled&&(null!=this._sleepInBoundsT&&this._stage.mouseInBounds&&this._mouseInDoc&&this.wake(1e3*this._sleepInBoundsT),this._sleepy?this.sleep():this._sleepT&&this._getTime()>=this._sleepT&&(this._sleepy=!0))},t._getTime=function(){return this._time},t._getBackingRatio=function(){var e=this._stage.canvas.getContext("2d");return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1},createjs.AdHelper=e}();'); document.writeln(''); document.write('<\/script>'); document.writeln(''); document.write('-->'); document.writeln(''); document.write('<!-- Adobe Animate CC FLA JavaScript -->'); document.writeln(''); document.write('<!-- <script src="FlightRight_120x600_EN.js"><\/script> -->'); document.writeln(''); document.write('<script src="https:\/\/ad-server.eu\/affiliate\/FlightrightUK\/html\/Banner\/120x600\/FlightRight_120x600_EN.js"><\/script> '); document.writeln(''); document.write('<\/body>'); document.writeln(''); document.write('<\/html>');