ADG=window.ADG||{},Array.prototype.indexOf||(Array.prototype.indexOf=function(a){for(var b=this,c=0;ch;h+=1)d=e[h],(!f||f.test(d.nodeName))&&g.push(d);return g}:document.evaluate?function(a,b,c){b=b||"*",c=c||document;for(var d,e,f=a.split(" "),g="",h="http://www.w3.org/1999/xhtml",i=document.documentElement.namespaceURI===h?h:null,j=[],k=0,l=f.length;l>k;k+=1)g+="[contains(concat(' ', @class, ' '), ' "+f[k]+" ')]";try{d=document.evaluate(".//"+b+g,c,i,0,null)}catch(m){d=document.evaluate(".//"+b+g,c,null,0,null)}for(;e=d.iterateNext();)j.push(e);return j}:function(a,b,c){b=b||"*",c=c||document;for(var d,e,f=a.split(" "),g=[],h="*"===b&&c.all?c.all:c.getElementsByTagName(b),i=[],j=0,k=f.length;k>j;j+=1)g.push(new RegExp("(^|\\s)"+f[j]+"(\\s|$)"));for(var l=0,m=h.length;m>l;l+=1){d=h[l],e=!1;for(var n=0,o=g.length;o>n&&(e=g[n].test(d.className),e);n+=1);e&&i.push(d)}return i})(a,b,c)}function c(a,c){var d,e=a.substring(0,1),f=[];if(("#"===e||"."===e)&&(a=a.substring(1)),null==c&&(c=document),"#"===e)return document.getElementById(a);if("."===e){var g=a.split(".");return g=g[0],b(g)}for(d=c.getElementsByTagName(a),i=0;i0?f:d}function d(a,b){var c=b.parentNode;c.lastchild===b?c.appendChild(a):c.insertBefore(a,b.nextSibling)}function e(a){if(!a)return 0;var b=0;do b+=a.offsetTop||0,a=a.offsetParent;while(a);return b}function f(a){if(a){var b=a.getBoundingClientRect().left||0,c=a.getBoundingClientRect().top||0,d=b+"x"+c;return d}}function g(a){if(!a)return!1;var b=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,f=d+b,g=e(a),h=g+a.offsetHeight,i=a.getBoundingClientRect().left||0,j=a.getBoundingClientRect().right||a.offsetWidth,k=document.documentElement.scrollLeft>document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,l=k+c,m=f>=h&&g>=d,n=a.offsetWidthk&&l>j;return m&&n}function h(a){if(!a)return!1;var b=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=document.documentElement.scrollTop>document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,d=c+b,f=e(a),g=f+a.offsetHeight;return Math.round(f-(d-c-(g-f))/2)}function j(a){a||(a=window.event),a.preventDefault&&a.preventDefault(),a.returnValue=!1}function k(){document.onmousewheel=function(){j()},document.addEventListener&&document.addEventListener("DOMMouseScroll",j,!1)}function l(){document.onmousewheel=null,document.addEventListener&&document.removeEventListener("DOMMouseScroll",j,!1)}return{getPosition:f,attachElementToHead:a,getElementsByClassName:b,insertAfter:d,isElementFullyVisible:g,getCenterPosition:h,disableMouseWheel:k,enableMouseWheel:l,$:c}}(),ADG.Logger=function(){function a(a){"undefined"!=typeof a.enabled&&(l=a.enabled),"undefined"!=typeof a.level&&(m=a.level)}function b(){return m}function c(a){m=a}function d(){return l}function e(a,b){if(d())switch(b){case"performance":g(a);break;case"debug":g(a);break;case"info":h(a);break;case"warn":i(a);break;case"error":j(a);break;default:h(a)}}function f(a){d()&&console.log(a)}function g(a){d()&&log_levels.debug>=log_levels[m]&&("object"==typeof a?console.dir(a):console.debug("[DEBUG] - [ADG] - "+a))}function h(a){d()&&log_levels.info>=log_levels[m]&&console.info("[INFO] - [ADG] - "+a)}function i(a){d()&&log_levels.warn>=log_levels[m]&&console.warn("[WARNING] - [ADG] - "+a)}function j(a){d()&&log_levels.error>=log_levels[m]&&console.error("[ERROR] - [ADG] - "+a)}function k(a){!d()||log_levels[m]1&&c[1]||""}var d,e=c(/(ipod|iphone|ipad)/i).toLowerCase(),f=/like android/i.test(a),g=!f&&/android/i.test(a),h=c(/version\/(\d+(\.\d+)?)/i),i=/tablet/i.test(a),j=!i&&/[^-]mobi/i.test(a);/opera|opr/i.test(a)?d={name:"Opera",opera:b,version:h||c(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(a)?d={name:"Windows Phone",windowsphone:b,msie:b,version:c(/iemobile\/(\d+(\.\d+)?)/i)}:/msie|trident/i.test(a)?d={name:"IE",msie:b,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome|crios|crmo/i.test(a)?d={name:"Chrome",chrome:b,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:e?(d={name:"Safari"},h&&(d.version=h)):/sailfish/i.test(a)?d={name:"Sailfish",sailfish:b,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?d={name:"SeaMonkey",seamonkey:b,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(a)?(d={name:"Firefox",firefox:b,version:c(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(d.firefoxos=b)):/silk/i.test(a)?d={name:"Amazon Silk",silk:b,version:c(/silk\/(\d+(\.\d+)?)/i)}:g?d={name:"Android",version:h}:/phantom/i.test(a)?d={name:"PhantomJS",phantom:b,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?d={name:"BlackBerry",blackberry:b,version:h||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(a)?(d={name:"WebOS",webos:b,version:h||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(d.touchpad=b)):d=/bada/i.test(a)?{name:"Bada",bada:b,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(a)?{name:"Tizen",tizen:b,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||h}:/safari/i.test(a)?{name:"Safari",safari:b,version:h}:{},/(apple)?webkit/i.test(a)?(d.name=d.name||"Webkit",d.webkit=b,!d.version&&h&&(d.version=h)):!d.opera&&/gecko\//i.test(a)&&(d.name=d.name||"Gecko",d.gecko=b,d.version=d.version||c(/gecko\/(\d+(\.\d+)?)/i)),g||d.silk?d.android=b:e&&(d[e]=b,d.ios=b);var k="";e?(k=c(/os (\d+([_\s]\d+)*) like mac os x/i),k=k.replace(/[_\s]/g,".")):g?k=c(/android[ \/-](\d+(\.\d+)*)/i):d.windowsphone?k=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):d.webos?k=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):d.blackberry?k=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):d.bada?k=c(/bada\/(\d+(\.\d+)*)/i):d.tizen&&(k=c(/tizen[\/\s](\d+(\.\d+)*)/i)),k&&(d.osversion=k);var l=k.split(".")[0];i||"ipad"===e||g&&(3===l||4===l&&!j)||d.silk?d.tablet=b:(j||"iphone"===e||"ipod"===e||g||d.blackberry||d.webos||d.bada)&&(d.mobile=b),d.msie&&d.version>=10||d.chrome&&d.version>=20||d.firefox&&d.version>=20||d.safari&&d.version>=6||d.opera&&d.version>=10||d.ios&&d.osversion&&d.osversion.split(".")[0]>=6||d.blackberry&&d.version>=10.1?d.a=b:d.msie&&d.version<10||d.chrome&&d.version<20||d.firefox&&d.version<20||d.safari&&d.version<6||d.opera&&d.version<10||d.ios&&d.osversion&&d.osversion.split(".")[0]<6?d.c=b:d.x=b;var m="-",n=navigator.userAgent,o=navigator.appVersion,p=m,q=[{s:"Windows 3.11",r:/Win16/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows ME",r:/Windows ME/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var r in q){var s=q[r];if(s.r.test(n)){p=s.s;break}}switch(/Windows/.test(p)&&(k=/Windows (.*)/.exec(p)[1],p="Windows"),p){case"Mac OS X":k=/Mac OS X (10[\.\_\d]+)/.exec(n)[1];break;case"Android":k=/Android ([\.\_\d]+)/.exec(n)[1];break;case"iOS":k=/OS (\d+)_(\d+)_?(\d+)?/.exec(o),k=k[1]+"."+k[2]+"."+(0|k[3])}var t;if(d.mobile){t=d.iphone?"iphone":d.ipod?"ipod":d.android?"android":d.windowsphone?"windowsphone":d.blackberry?"blackberry":d.webos?"webos":d.bada?"bada":d.silk?"silk":0;var u="unknown mobile platform";d.deviceType=t||u}else d.ipad?d.deviceType="ipad":d.deviceType="desktop";return d.tablet=d.tablet&&"desktop"!==d.deviceType,d.os=p,d.osVersion=k,d}var b=!0,c=a("undefined"!=typeof navigator?navigator.userAgent:"");return c._detect=a,c}(),ADG.XDomainRequest=function(){function a(a,b,c){var d=new XDomainRequest;return a.url?(d.open(a.method||"GET",a.url),c&&(d.onerror=c),d.onload=function(){b&&b(d.responseText)},d.onprogress=function(){},d.ontimeout=function(){},void setTimeout(function(){d.send(a.data||null)},0)):void ADG.Logger.warn("ADG.XDomainRequest - AJAX: URL not present")}return{load:a}},ADG.XMLHttpRequest=function(){function a(a,b,c){var d=new XMLHttpRequest;if(!a.url)return void ADG.Logger.warn("ADG.XMLHttpRequest - AJAX: URL not present");if(d.open(a.method||"GET",a.url),a.headers)for(var e=a.headers.length-1;e>=0;e--)header=a.headers[e],header.name&&header.value&&d.setRequestHeader(header.name,header.value);c&&(d.onerror=c),d.onreadystatechange=function(){4===this.readyState&&b&&b(this.response)},d.send(a.data||null)}return{load:a}},ADG.Close=function(){function a(){l={enabled:!0,active:!1},ADG.Logger.debug("[Close Button] Initialized"),l.enabled=ADG.SettingsHandler.get("close_button")!==!1&&c(),j=new ADG.Subject,k=new ADG.Observer,k.notify=d,ADG.PlayerEvents.getSubject().addObserver(k),!l.enabled}function b(){if(l.enabled&&!l.active){var a;a=l,a.event="closeActive",a.active=!0,j.notify(a),i=(new Date).getTime(),ADG.Logger.debug("[Close Button]- Notifying active")}}function c(){return 3===ADG.SettingsHandler.get("placement")&&ADG.SettingsHandler.get("close_button")?!0:!1}function d(a){switch(a.event){case"adStarted":c&&b()}}function e(a){return l[a]}function f(){return l.active}function g(){return j}function h(){return l}var i,j,k,l={};return{init:a,isActive:f,playerObserver:k,getSubject:g,get:e,getAll:h,activateClose:b}}(),ADG.ExternalInterface=function(){function a(){q=q||{},q.all=q.all||[],k=new ADG.Observer,k.notify=c,ADG.PlayerEvents.getSubject().addObserver(k),l=new ADG.Observer,ADG.Skip.getSubject().addObserver(l),l.notify=c,m=new ADG.Observer,ADG.Close.getSubject().addObserver(m),m.notify=c,n=new ADG.Observer,ADG.UnitWrapper.getSubject().addObserver(n),n.notify=c,templateObserver=new ADG.Observer,ADG.TemplateHandler.getSubject().addObserver(templateObserver),templateObserver.notify=c,o=new ADG.Observer,ADG.PassbackHandler.getSubject().addObserver(o),o.notify=c,p=new ADG.Observer,ADG.FreeViewHandler.getSubject().addObserver(p),p.notify=c}function b(){ADG.UnitWrapper.getSubject().removeObserver(n)}function c(a){try{r.push(a),f(q.all,a),q[a.event]&&f(q[a.event],a)}catch(b){ADG.Logger.debug("[ExternalInterface] Error calling callback")}}function d(a,b){if("function"==typeof a){if(q=q||{},b){if("string"==typeof b)e(a,b);else if(b.constructor===Array)for(var c=0;c-1}function g(){return a("intercept_id").toString().match(/^2.*|3.*$/gi)?!0:!1}var h={autoplay:!0,includeMobile:!1,filter_referrers:[],is_white_list:!1,referral_categories:[],ad_url:"",skip_time:"",css_path:"",intercept_id:"1001",excluded_browsers:[],autoplay_muted:!1,countdown_after_play:!0,placement_id:"",enable_moat_player:!1,volume:"unmuted",elements_blacklist:[],dynamic_skip:!1,frequency_cap:-1,max_skip_time:45,mode:"video",moat_account:"",branding:!0,pub_custom_params:[],comscore_id:"16170130",comscore_name:"adg"};return{get:a,getAll:b,set:d,isInpage:g}}(),ADG.SetupHandler=function(){function a(){ADG.Performance.record("adgLoaded"),ADG.Logger.log("[SetupHandler] ADG loaded on the page : "+ADG.version),ADG.Logger.log("[SetupHandler] Attaching message listener for windows","debug"),ADG.Browser.addEvent(window,"message",ADG.API.invoke),"function"==typeof onADGReady&&onADGReady()}function b(){var a=(ADG.SettingsHandler.get("autoplay_muted"),ADG.SettingsHandler.get("placement"),ADG.SettingsHandler.get("ad_url"));a=c(ADG.Utils.trim(a));var b={parentID:"adgPlayerWrapper",flashvars:{retailTag:encodeURIComponent(a),backfillTag:"",legacyMode:!1,locking:3!==ADG.SettingsHandler.get("placement"),timeOut:ADG.SettingsHandler.get("timeOut")||12,pauseOnLoad:ADG.SettingsHandler.isInpage(),volume:"muted"===ADG.SettingsHandler.get("volume")||ADG.SettingsHandler.get("autoplay_muted")?0:.1,muteOnStart:"muted"===ADG.SettingsHandler.get("volume")||ADG.SettingsHandler.get("autoplay_muted")?!0:!1,enableMoat:ADG.SettingsHandler.get("enable_moat_player"),moatAccount:""!==ADG.SettingsHandler.get("moat_account")?ADG.SettingsHandler.get("moat_account"):""},height:"100%"};ADG.PlayerAdapter.setup(b),ADG.Performance.record("playerSetup")}function c(a){var b,c,d,e=ADG.SettingsHandler.getAll(),f=a,g=[{macro:/st\%3D__KVST__;/gi,value:""},{macro:/__KVIID__/gi,value:e.intercept_id},{macro:/__KVCAP__/gi,value:e.countdown_after_play},{macro:/__KVAP__/gi,value:e.autoplay},{macro:/__KVAPM__/gi,value:e.autoplay_muted},{macro:/\[timestamp\]/gi,value:(new Date).getTime()},{macro:/ps=./gi,value:"ps=10"},{macro:/vcn=c/gi,value:"vcn=s"}],h={};""!==e.placement_id&&g.push({macro:/_GM_PLACEMENT_ID_/gi,value:e.placement_id});for(var i=0;i0&&(b.event="skipCalculated",b.skipMessage=b.initialSkipMessage,y.notify(b),ADG.Logger.debug("[Skip]- Notifying calculated"))}}function f(a){var b,c=ADG.SettingsHandler.get("skip_time"),d=ADG.SettingsHandler.get("max_skip_time");"none"===c?A.effectiveSkipTime=-1:""===c?A.effectiveSkipTime=Math.min(d,a)||-1:u()&&ADG.ExternalInterface.isParAvailable()?(b=GMData.PARHandler.get("score"),b>=.85?c>a?0===a||void 0===a?A.effectiveSkipTime=c||-1:A.effectiveSkipTime=Math.min(d,a):a>0?A.effectiveSkipTime=Math.min(d,a):A.effectiveSkipTime=c||-1:("undefined"!=typeof a&&0!==a?A.effectiveSkipTime=Math.min(d,Math.max(c,a*b)):A.effectiveSkipTime=c,ADG.Logger.debug("[Skip] pubSkipTime : "+c+"\n assetLength : "+a+"\n retentionRank :"+b+"\n dynamicSkip : "+A.effectiveSkipTime),x=!0)):A.effectiveSkipTime=Math.min(Number(c),Math.round(a)||9999),a&&A.effectiveSkipTime>a&&(A.effectiveSkipTime=a),A.effectiveSkipTime===a&&A.effectiveSkipTime++,A.effectiveSkipTime=Math.round(A.effectiveSkipTime),(A.enabled||A.active)&&(A.calculatedSkipTime=Math.round(A.effectiveSkipTime))}function g(){var a=ADG.SettingsHandler.get("countdown_after_play");a?a&&A.effectiveSkipTime>0?A.countdownOnStart=!1:a&&0===A.effectiveSkipTime&&(A.countdownOnStart=ADG.SettingsHandler.get("autoplay")):A.countdownOnStart=!0}function h(){A.effectiveSkipTime>0&&(A.countdown=!0,A.initialSkipMessage=b())}function i(){if(A.enabled&&!A.active){var a;A.countdown?(skipTime=A.effectiveSkipTime,a=A,a.skipTime=Math.round(skipTime),a.skipMessage=A.initialSkipMessage,a.event="skipTimeChange",y.notify(a),v=(new Date).getTime(),w&&clearInterval(w),w=setInterval(ADG.Skip.calculateSkipTime,500)):(skipMessage=b(),a=A,a.skipMessage=skipMessage,a.skipTime=0,a.event="skipActive",a.active=!0,a.effectiveSkipTime=A.effectiveSkipTime,y.notify(a),ADG.Logger.debug("[Skip]- Notifying active"))}}function j(){var a=(new Date).getTime(),d=A;a-1;)(f=l[b[k]]||new m(b[k],[])).gsClass?(e[k]=f.gsClass,n--):d&&f.sc.push(this);if(0===n&&c)for(g=("ADG.com.greensock."+a).split("."),i=g.pop(),j=h(g.join("."))[i]=this.gsClass=c.apply(c,e),k=0;k-1;)for(f=j[k],e=d?o("easing."+f,null,!0):i.easing[f]||{},g=l.length;--g>-1;)h=l[g],s[f+"."+h]=s[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(d=r.prototype,d._calcEnd=!1,d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},b=["Linear","Quad","Cubic","Quart","Quint,Strong"],c=b.length;--c>-1;)d=b[c]+",Power"+c,t(new r(null,null,1,c),d,"easeOut",!0),t(new r(null,null,2,c),d,"easeIn"+(0===c?",easeNone":"")),t(new r(null,null,3,c),d,"easeInOut");s.linear=i.easing.Linear.easeIn,s.swing=i.easing.Quad.easeInOut;var u=o("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});d=u.prototype,d.addEventListener=function(a,b,c,d,g){g=g||0;var h,i,j=this._listeners[a],k=0; for(null==j&&(this._listeners[a]=j=[]),i=j.length;--i>-1;)h=j[i],h.c===b&&h.s===c?j.splice(i,1):0===k&&h.pr-1;)if(d[c].c===b)return void d.splice(c,1)},d.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,c=this._eventTarget;--b>-1;)d=e[b],d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c)};var v=a.requestAnimationFrame,w=a.cancelAnimationFrame,x=Date.now||function(){return(new Date).getTime()},y=x();for(b=["ms","moz","webkit","o"],c=b.length;--c>-1&&!v;)v=a[b[c]+"RequestAnimationFrame"],w=a[b[c]+"CancelAnimationFrame"]||a[b[c]+"CancelRequestAnimationFrame"];o("Ticker",function(a,b){var c,d,g,h,i,j=this,l=x(),m=b!==!1&&v,n=function(a){y=x(),j.time=(y-l)/1e3;var b,e=j.time-i;(!c||e>0||a===!0)&&(j.frame++,i+=e+(e>=h?.004:h-e),b=!0),a!==!0&&(g=d(n)),b&&j.dispatchEvent("tick")};u.call(j),j.time=j.frame=0,j.tick=function(){n(!0)},j.sleep=function(){null!=g&&(m&&w?w(g):clearTimeout(g),d=k,g=null,j===e&&(f=!1))},j.wake=function(){null!==g&&j.sleep(),d=0===c?k:m&&v?v:function(a){return setTimeout(a,1e3*(i-j.time)+1|0)},j===e&&(f=!0),n(2)},j.fps=function(a){return arguments.length?(c=a,h=1/(c||60),i=this.time+h,void j.wake()):c},j.useRAF=function(a){return arguments.length?(j.sleep(),m=a,void j.fps(c)):m},j.fps(a),setTimeout(function(){m&&(!g||j.frame<5)&&j.useRAF(!1)},1500)}),d=i.Ticker.prototype=new i.events.EventDispatcher,d.constructor=i.Ticker;var z=o("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,M){f||e.wake();var c=this.vars.useFrames?L:M;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});e=z.ticker=new i.Ticker,d=z.prototype,d._dirty=d._gc=d._initted=d._paused=!1,d._totalTime=d._time=0,d._rawPrevTime=-1,d._next=d._last=d._onUpdate=d._timeline=d.timeline=null,d._paused=!1;var A=function(){x()-y>2e3&&e.wake(),setTimeout(A,2e3)};A(),d.play=function(a,b){return arguments.length&&this.seek(a,b),this.reversed(!1).paused(!1)},d.pause=function(a,b){return arguments.length&&this.seek(a,b),this.paused(!0)},d.resume=function(a,b){return arguments.length&&this.seek(a,b),this.paused(!1)},d.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},d.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},d.reverse=function(a,b){return arguments.length&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},d.render=function(a,b,c){},d.invalidate=function(){return this},d._enabled=function(a,b){return f||e.wake(),this._gc=!a,this._active=a&&!this._paused&&this._totalTime>0&&this._totalTime-1;)"{self}"===a[b]&&(c[b]=this);return c},d.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=c instanceof Array&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},d.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},d.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},d.totalTime=function(a,b,c){if(f||e.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,g=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:g._time)-(this._reversed?d-a:a)/this._timeScale,g._dirty||this._uncache(!1),g._timeline)for(;g._timeline;)g._timeline._time!==(g._startTime+g._totalTime)/g._timeScale&&g.totalTime(g._totalTime,!0),g=g._timeline}this._gc&&this._enabled(!0,!1),this._totalTime!==a&&this.render(a,b,!1)}return this},d.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},d.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||1e-6,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},d.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0)),this):this._reversed},d.paused=function(a){if(!arguments.length)return this._paused;if(a!=this._paused&&this._timeline){f||a||e.wake();var b=this._timeline,c=b.rawTime(),d=c-this._pauseTime;!a&&b.smoothChildTiming&&(this._startTime+=d,this._uncache(!1)),this._pauseTime=a?c:null,this._paused=a,this._active=!a&&this._totalTime>0&&this._totalTimef;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._timeline&&this._uncache(!0),this},d._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0)),this},d.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},d.rawTime=function(){return f||e.wake(),this._totalTime};var C=o("TweenLite",function(b,c,d){if(z.call(this,c,d),this.render=C.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:C.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?K[C.defaultOverwrite]:"number"==typeof i?i>>0:K[i],(h||b instanceof Array)&&"number"!=typeof b[0])for(this._targets=g=j.call(b,0),this._propLookup=[],this._siblings=[],e=0;e1&&O(f,this,null,1,this._siblings[e])):(f=g[e--]=C.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=N(b,this,!1),1===i&&this._siblings.length>1&&O(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&this.render(-this._delay,!1,!0)},!0),D=function(b){return b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},E=function(a,b){var c,d={};for(c in a)J[c]||c in b&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!G[c]||G[c]&&G[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};d=C.prototype=new z,d.constructor=C,d.kill()._gc=!1,d.ratio=0,d._firstPT=d._targets=d._overwrittenProps=d._startAt=null,d._notifyPluginsOfEnabled=!1,C.version="1.10.3",C.defaultEase=d._ease=new r(null,null,1,1),C.defaultOverwrite="auto",C.ticker=e,C.autoSleep=!0,C.selector=a.$||a.jQuery||function(b){return a.$?(C.selector=a.$,a.$(b)):a.document?a.document.getElementById("#"===b.charAt(0)?b.substr(1):b):b};var F=C._internals={},G=C._plugins={},H=C._tweenLookup={},I=0,J=F.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1},K={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},L=z._rootFramesTimeline=new B,M=z._rootTimeline=new B;M._startTime=e.time,L._startTime=e.frame,M._active=L._active=!0,z._updateRoot=function(){if(M.render((e.time-M._startTime)*M._timeScale,!1,!1),L.render((e.frame-L._startTime)*L._timeScale,!1,!1),!(e.frame%120)){var a,b,c;for(c in H){for(b=H[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete H[c]}if(c=M._first,(!c||c._paused)&&C.autoSleep&&!L._first&&1===e._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||e.sleep()}}},e.addEventListener("tick",z._updateRoot);var N=function(a,b,c){var d,e,f=a._gsTweenID;if(H[f||(a._gsTweenID=f="t"+I++)]||(H[f]={target:a,tweens:[]}),b&&(d=H[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return H[f].tweens},O=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._enabled(!1,!1)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+1e-10,l=[],m=0,n=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||P(b,0,n),0===P(h,j,n)&&(l[m++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale+1e-10>k&&((n||!h._initted)&&k-h._startTime<=2e-10||(l[m++]=h)));for(f=m;--f>-1;)h=l[f],2===d&&h._kill(c,a)&&(g=!0),(2!==d||!h._firstPT&&h._initted)&&h._enabled(!1,!1)&&(g=!0);return g},P=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime,g=1e-10;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*g>f-b?g:(f+=a.totalDuration()/a._timeScale/e)>b+g?0:f-b-g};d._init=function(){var a,b,c,d,e=this.vars,f=this._overwrittenProps,g=this._duration,h=e.immediateRender,i=e.ease;if(e.startAt){if(this._startAt&&this._startAt.render(-1,!0),e.startAt.overwrite=0,e.startAt.immediateRender=!0,this._startAt=C.to(this.target,0,e.startAt),h)if(this._time>0)this._startAt=null;else if(0!==g)return}else if(e.runBackwards&&e.immediateRender&&0!==g)if(this._startAt)this._startAt.render(-1,!0),this._startAt=null;else if(0===this._time){c={};for(d in e)J[d]&&"autoCSS"!==d||(c[d]=e[d]);return c.overwrite=0,void(this._startAt=C.to(this.target,0,c))}if(i?i instanceof r?this._ease=e.easeParams instanceof Array?i.config.apply(i,e.easeParams):i:this._ease="function"==typeof i?new r(i,e.easeParams):s[i]||C.defaultEase:this._ease=C.defaultEase,this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length;--a>-1;)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],f?f[a]:null)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,f);if(b&&C._onPluginEvent("_onInitAllProps",this),f&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),e.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=e.onUpdate,this._initted=!0},d._initProps=function(b,c,d,e){var f,g,h,i,j,k;if(null==b)return!1;this.vars.css||b.style&&b!==a&&b.nodeType&&G.css&&this.vars.autoCSS!==!1&&E(this.vars,b);for(f in this.vars){if(k=this.vars[f],J[f])k instanceof Array&&-1!==k.join("").indexOf("{self}")&&(this.vars[f]=k=this._swapSelfInParams(k,this));else if(G[f]&&(i=new G[f])._onInitTween(b,this.vars[f],this)){for(this._firstPT=j={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority},g=i._overwriteProps.length;--g>-1;)c[i._overwriteProps[g]]=this._firstPT;(i._priority||i._onInitAllProps)&&(h=!0),(i._onDisable||i._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=c[f]=j={_next:this._firstPT,t:b,p:f,f:"function"==typeof b[f],n:f,pg:!1,pr:0},j.s=j.f?b[f.indexOf("set")||"function"!=typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(b[f]),j.c="string"==typeof k&&"="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*Number(k.substr(2)):Number(k)-j.s||0;j&&j._next&&(j._next._prev=j)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):this._overwrite>1&&this._firstPT&&d.length>1&&O(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):h},d.render=function(a,b,c){var d,e,f,g=this._time;if(a>=this._duration)this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete"),0===this._duration&&((0===a||this._rawPrevTime<0)&&this._rawPrevTime!==a&&(c=!0,this._rawPrevTime>0&&(e="onReverseComplete",b&&(a=-1))),this._rawPrevTime=a);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==g||0===this._duration&&this._rawPrevTime>0)&&(e="onReverseComplete",d=this._reversed),0>a?(this._active=!1,0===this._duration&&(this._rawPrevTime>=0&&(c=!0),this._rawPrevTime=a)):this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,i=this._easeType,j=this._easePower;(1===i||3===i&&h>=.5)&&(h=1-h),3===i&&(h*=2),1===j?h*=h:2===j?h*=h*h:3===j?h*=h*h*h:4===j&&(h*=h*h*h*h),1===i?this.ratio=1-h:2===i?this.ratio=h:a/this._duration<.5?this.ratio=h/2:this.ratio=1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==g||c){if(!this._initted){if(this._init(),!this._initted)return;this._time&&!d?this.ratio=this._ease.getRatio(this._time/this._duration):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._active||!this._paused&&this._time!==g&&a>=0&&(this._active=!0),0===g&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===this._duration)&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||q))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&this._startAt.render(a,b,c),b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||q)),e&&(this._gc||(0>a&&this._startAt&&!this._onUpdate&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||q)))}},d._kill=function(a,b){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:C.selector(b)||b;var c,d,e,f,g,h,i,j;if((b instanceof Array||D(b))&&"number"!=typeof b[0])for(c=b.length;--c>-1;)this._kill(a,b[c])&&(h=!0);else{if(this._targets){for(c=this._targets.length;--c>-1;)if(b===this._targets[c]){g=this._propLookup[c]||{},this._overwrittenProps=this._overwrittenProps||[],d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._propLookup,d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g){i=a||g,j=a!==d&&"all"!==d&&a!==g&&(null==a||a._tempKill!==!0);for(e in i)(f=g[e])&&(f.pg&&f.t._kill(i)&&(h=!0),f.pg&&0!==f.t._overwriteProps.length||(f._prev?f._prev._next=f._next:f===this._firstPT&&(this._firstPT=f._next),f._next&&(f._next._prev=f._prev),f._next=f._prev=null),delete g[e]),j&&(d[e]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return h},d.invalidate=function(){return this._notifyPluginsOfEnabled&&C._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=!1,this._propLookup=this._targets?{}:[],this},d._enabled=function(a,b){if(f||e.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=N(d[c],this,!0);else this._siblings=N(this.target,this,!0)}return z.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?C._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},C.to=function(a,b,c){return new C(a,b,c)},C.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new C(a,b,c)},C.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new C(a,b,d)},C.delayedCall=function(a,b,c,d,e){return new C(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})},C.set=function(a,b){return new C(a,0,b)},C.killTweensOf=C.killDelayedCallsTo=function(a,b){for(var c=C.getTweensOf(a),d=c.length;--d>-1;)c[d]._kill(b,a)},C.getTweensOf=function(a){if(null==a)return[];a="string"!=typeof a?a:C.selector(a)||a;var b,c,d,e;if((a instanceof Array||D(a))&&"number"!=typeof a[0]){for(b=a.length,c=[];--b>-1;)c=c.concat(C.getTweensOf(a[b]));for(b=c.length;--b>-1;)for(e=c[b],d=b;--d>-1;)e===c[d]&&c.splice(b,1)}else for(c=N(a).concat(),b=c.length;--b>-1;)c[b]._gc&&c.splice(b,1);return c};var Q=o("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=Q.prototype},!0);if(d=Q.prototype,Q.version="1.10.1",Q.API=2,d._firstPT=null,d._addTween=function(a,b,c,d,e,f){var g,h;return null!=d&&(g="number"==typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1",10)*Number(d.substr(2)))?(this._firstPT=h={_next:this._firstPT,t:a,p:b,s:c,c:g,f:"function"==typeof a[b],n:e||b,r:f},h._next&&(h._next._prev=h),h):void 0},d.setRatio=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.c*a+c.s,c.r?b=b+(b>0?.5:-.5)|0:d>b&&b>-d&&(b=0),c.f?c.t[c.p](b):c.t[c.p]=b,c=c._next},d._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},d._roundProps=function(a,b){for(var c=this._firstPT;c;)(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])&&(c.r=b),c=c._next},C._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},Q.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===Q.API&&(G[(new a[b])._propName]=a[b]);return!0},n.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},g=o("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){Q.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new Q(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,Q.activate([g]),g},b=a._gsQueue){for(c=0;c3),n=l&&Number(N.substr(N.indexOf("Version/")+8,1))<6,m=-1!==N.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(N),o=parseFloat(RegExp.$1),c.innerHTML="a",a=c.getElementsByTagName("a")[0],a?/^0.55/.test(a.style.opacity):!1}(),P=function(a){return u.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(a){window.console&&console.log(a)},R="",S="",T=function(a,b){b=b||K;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(S=3===d?"ms":c[d],R="-"+S.toLowerCase()+"-",S+a):null},U=J.defaultView?J.defaultView.getComputedStyle:function(){},V=g.getStyle=function(a,b,c,d,e){var f;return O||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||U(a,null))?(a=c.getPropertyValue(b.replace(y,"-$1").toLowerCase()),f=a||c.length?a:c[b]):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):P(a)},W=function(a,b,c,d,e){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var f,g=C.test(b),h=a,i=K.style,j=0>c;return j&&(c=-c),"%"===d&&-1!==b.indexOf("border")?f=c/100*(g?a.clientWidth:a.clientHeight):(i.cssText="border-style:solid;border-width:0;position:absolute;line-height:0;","%"!==d&&h.appendChild?i[g?"borderLeftWidth":"borderTopWidth"]=c+d:(h=a.parentNode||J.body,i[g?"width":"height"]=c+d),h.appendChild(K),f=parseFloat(K[g?"offsetWidth":"offsetHeight"]),h.removeChild(K),0!==f||e||(f=W(a,b,c,d,!0))),j?-f:f},X=function(a,b,c){if("absolute"!==V(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=V(a,"margin"+d,c);return a["offset"+d]-(W(a,b,parseFloat(e),e.replace(t,""))||0)},Y=function(a,b){var c,d,e={};if(b=b||U(a,null))if(c=b.length)for(;--c>-1;)e[b[c].replace(z,B)]=b.getPropertyValue(b[c]);else for(c in b)e[c]=b[c];else if(b=a.currentStyle||a.style)for(c in b)e[c.replace(z,B)]=b[c];return O||(e.opacity=P(a)),d=xa(a,b,!1),e.rotation=d.rotation*H,e.skewX=d.skewX*H,e.scaleX=d.scaleX,e.scaleY=d.scaleY,e.x=d.x,e.y=d.y,wa&&(e.z=d.z,e.rotationX=d.rotationX*H,e.rotationY=d.rotationY*H,e.scaleZ=d.scaleZ),e.filters&&delete e.filters,e},Z=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(s,"")?f:0:X(a,g),void 0!==j[g]&&(h=new la(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},$={width:["Left","Right"],height:["Top","Bottom"]},_=["marginLeft","marginRight","marginTop","marginBottom"],aa=function(a,b,c){var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=$[b],f=e.length;for(c=c||U(a,null);--f>-1;)d-=parseFloat(V(a,"padding"+e[f],c,!0))||0,d-=parseFloat(V(a,"border"+e[f]+"Width",c,!0))||0;return d},ba=function(a,b){(null==a||""===a||"auto"===a||"auto auto"===a)&&(a="0 0");var c=a.split(" "),d=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":c[0],e=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":c[1];return null==e?e="0":"center"===e&&(e="50%"),("center"===d||isNaN(parseFloat(d))&&-1===(d+"").indexOf("="))&&(d="50%"),b&&(b.oxp=-1!==d.indexOf("%"),b.oyp=-1!==e.indexOf("%"),b.oxr="="===d.charAt(1),b.oyr="="===e.charAt(1),b.ox=parseFloat(d.replace(s,"")),b.oy=parseFloat(e.replace(s,""))),d+" "+e+(c.length>2?" "+c[2]:"")},ca=function(a,b){return"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},da=function(a,b){return null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*Number(a.substr(2))+b:parseFloat(a)},ea=function(a,b,c,d){var e,f,g,h,i=1e-6;return null==a?h=b:"number"==typeof a?h=a*G:(e=2*Math.PI,f=a.split("_"),g=Number(f[0].replace(s,""))*(-1===a.indexOf("rad")?G:1)-("="===a.charAt(1)?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),i>h&&h>-i&&(h=0),h},fa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ga=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},ha=function(a){var b,c,d,e,f,g;return a&&""!==a?"number"==typeof a?[a>>16,a>>8&255,255&a]:(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),fa[a]?fa[a]:"#"===a.charAt(0)?(4===a.length&&(b=a.charAt(1),c=a.charAt(2),d=a.charAt(3),a="#"+b+b+c+c+d+d),a=parseInt(a.substr(1),16),[a>>16,a>>8&255,255&a]):"hsl"===a.substr(0,3)?(a=a.match(p),e=Number(a[0])%360/360,f=Number(a[1])/100,g=Number(a[2])/100,c=.5>=g?g*(f+1):g+f-g*f,b=2*g-c,a.length>3&&(a[3]=Number(a[3])),a[0]=ga(e+1/3,b,c),a[1]=ga(e,b,c),a[2]=ga(e-1/3,b,c),a):(a=a.match(p)||fa.transparent,a[0]=Number(a[0]),a[1]=Number(a[1]),a[2]=Number(a[2]),a.length>3&&(a[3]=Number(a[3])),a)):fa.black},ia="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in fa)ia+="|"+i+"\\b";ia=new RegExp(ia+")","gi");var ja=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(ia)||[""])[0]:"",g=a.split(f).join("").match(r)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(p,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&F.test(a)){for(o=a.replace(F,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},la=(M._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f=this.data,g=f.proxy,h=f.firstMPT,i=1e-6;h;)b=g[h.v],h.r?b=b>0?b+.5|0:b-.5|0:i>b&&b>-i&&(b=0),h.t[h.p]=b,h=h._next;if(f.autoRotate&&(f.autoRotate.rotation=g.rotation),1===a)for(h=f.firstMPT;h;){if(c=h.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new la(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},M.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ma||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),na=g.parseComplex=function(a,b,c,d,e,f,g,h,i,k){c=c||f||"",g=new ma(a,b,0,0,g,k?2:1,null,!1,h,c,d),d+="";var l,m,n,o,r,s,t,u,v,w,y,z,A=c.split(", ").join(",").split(" "),B=d.split(", ").join(",").split(" "),C=A.length,D=j!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(A=A.join(" ").replace(F,", ").split(" "),B=B.join(" ").replace(F,", ").split(" "),C=A.length),C!==B.length&&(A=(f||"").split(" "),C=A.length),g.plugin=i,g.setRatio=k,l=0;C>l;l++)if(o=A[l],r=B[l],u=parseFloat(o),u||0===u)g.appendXtra("",u,ca(r,u),r.replace(q,""),D&&-1!==r.indexOf("px"),!0);else if(e&&("#"===o.charAt(0)||fa[o]||x.test(o)))z=","===r.charAt(r.length-1)?"),":")",o=ha(o),r=ha(r),v=o.length+r.length>6,v&&!O&&0===r[3]?(g["xs"+g.l]+=g.l?" transparent":"transparent",g.e=g.e.split(B[l]).join("transparent")):(O||(v=!1),g.appendXtra(v?"rgba(":"rgb(",o[0],r[0]-o[0],",",!0,!0).appendXtra("",o[1],r[1]-o[1],",",!0).appendXtra("",o[2],r[2]-o[2],v?",":z,!0),v&&(o=o.length<4?1:o[3],g.appendXtra("",o,(r.length<4?1:r[3])-o,z,!1)));else if(s=o.match(p)){if(t=r.match(q),!t||t.length!==s.length)return g;for(n=0,m=0;m0;)i["xn"+oa]=0,i["xs"+oa]="";i.xs0="",i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null,i.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&h?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ma(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var pa=function(a,b){b=b||{},this.p=b.prefix?T(a)||a:a,h[a]=h[this.p]=this,this.format=b.formatter||ja(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue, this.pr=b.priority||0},qa=M._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(c=-1===l?i:h,c[g]+=" "+m));b=h.join(", "),c=i.join(", ")}return na(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},i.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(V(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){qa(a,{parser:function(a,d,e,f,g,h,i){var j=new ma(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})};var sa="scaleX,scaleY,scaleZ,x,y,z,skewX,rotation,rotationX,rotationY,perspective".split(","),ta=T("transform"),ua=R+"transform",va=T("transformOrigin"),wa=null!==T("perspective"),xa=function(a,b,c,d){if(a._gsTransform&&c&&!d)return a._gsTransform;var e,f,h,i,j,k,l,m,n,o,p,q,r,s=c?a._gsTransform||{skewY:0}:{skewY:0},t=s.scaleX<0,u=2e-5,v=1e5,w=-Math.PI+1e-4,x=Math.PI-1e-4,y=wa?parseFloat(V(a,va,b,!1,"0 0 0").split(" ")[2])||s.zOrigin||0:0;for(ta?e=V(a,ua,b,!0):a.currentStyle&&(e=a.currentStyle.filter.match(D),e=e&&4===e.length?[e[0].substr(4),Number(e[2].substr(4)),Number(e[1].substr(4)),e[3].substr(4),s.x||0,s.y||0].join(","):""),f=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],h=f.length;--h>-1;)i=Number(f[h]),f[h]=(j=i-(i|=0))?(j*v+(0>j?-.5:.5)|0)/v+i:i;if(16===f.length){var z=f[8],A=f[9],B=f[10],C=f[12],E=f[13],F=f[14];if(s.zOrigin&&(F=-s.zOrigin,C=z*F-f[12],E=A*F-f[13],F=B*F+s.zOrigin-f[14]),!c||d||null==s.rotationX){var G,H,I,J,K,L,M,N=f[0],O=f[1],P=f[2],Q=f[3],R=f[4],S=f[5],T=f[6],U=f[7],W=f[11],X=s.rotationX=Math.atan2(T,B),Y=w>X||X>x;X&&(J=Math.cos(-X),K=Math.sin(-X),G=R*J+z*K,H=S*J+A*K,I=T*J+B*K,z=R*-K+z*J,A=S*-K+A*J,B=T*-K+B*J,W=U*-K+W*J,R=G,S=H,T=I),X=s.rotationY=Math.atan2(z,N),X&&(L=w>X||X>x,J=Math.cos(-X),K=Math.sin(-X),G=N*J-z*K,H=O*J-A*K,I=P*J-B*K,A=O*K+A*J,B=P*K+B*J,W=Q*K+W*J,N=G,O=H,P=I),X=s.rotation=Math.atan2(O,S),X&&(M=w>X||X>x,J=Math.cos(-X),K=Math.sin(-X),N=N*J+R*K,H=O*J+S*K,S=O*-K+S*J,T=P*-K+T*J,O=H),M&&Y?s.rotation=s.rotationX=0:M&&L?s.rotation=s.rotationY=0:L&&Y&&(s.rotationY=s.rotationX=0),s.scaleX=(Math.sqrt(N*N+O*O)*v+.5|0)/v,s.scaleY=(Math.sqrt(S*S+A*A)*v+.5|0)/v,s.scaleZ=(Math.sqrt(T*T+B*B)*v+.5|0)/v,s.skewX=0,s.perspective=W?1/(0>W?-W:W):0,s.x=C,s.y=E,s.z=F}}else if((!wa||d||!f.length||s.x!==f[4]||s.y!==f[5]||!s.rotationX&&!s.rotationY)&&(void 0===s.x||"none"!==V(a,"display",b))){var Z=f.length>=6,$=Z?f[0]:1,_=f[1]||0,aa=f[2]||0,ba=Z?f[3]:1;s.x=f[4]||0,s.y=f[5]||0,k=Math.sqrt($*$+_*_),l=Math.sqrt(ba*ba+aa*aa),m=$||_?Math.atan2(_,$):s.rotation||0,n=aa||ba?Math.atan2(aa,ba)+m:s.skewX||0,o=k-Math.abs(s.scaleX||0),p=l-Math.abs(s.scaleY||0),Math.abs(n)>Math.PI/2&&Math.abs(n)<1.5*Math.PI&&(t?(k*=-1,n+=0>=m?Math.PI:-Math.PI,m+=0>=m?Math.PI:-Math.PI):(l*=-1,n+=0>=n?Math.PI:-Math.PI)),q=(m-s.rotation)%Math.PI,r=(n-s.skewX)%Math.PI,(void 0===s.skewX||o>u||-u>o||p>u||-u>p||q>w&&x>q&&q*v|!1||r>w&&x>r&&r*v|!1)&&(s.scaleX=k,s.scaleY=l,s.rotation=m,s.skewX=n),wa&&(s.rotationX=s.rotationY=s.z=0,s.perspective=parseFloat(g.defaultTransformPerspective)||0,s.scaleZ=1)}s.zOrigin=y;for(h in s)s[h]-u&&(s[h]=0);return c&&(a._gsTransform=s),s},ya=function(a){var b,c,d=this.data,e=-d.rotation,f=e+d.skewX,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,p,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,w=d.x,x=d.y;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,p=(d.oyp?r*d.oy*.01:d.oy)-r/2,w+=n-(n*h+p*i),x+=p-(n*j+p*k)),s?(n=q/2,p=r/2,v+=", Dx="+(n-(n*h+p*i)+w)+", Dy="+(p-(n*j+p*k)+x)+")"):v+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(E,v):l.filter=v+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===v.indexOf("Dx=0, Dy=0")||u.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>o?1:-1;for(n=d.ieOffsetX||0,p=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+w),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+x),oa=0;4>oa;oa++)z=_[oa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):W(this.t,z,parseFloat(y),y.replace(t,""))||0,A=c!==d[z]?2>oa?-d.ieOffsetX:-d.ieOffsetY:2>oa?n-d.ieOffsetX:p-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===oa||2===oa?1:B)))+"px"}}},za=function(a){var b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C=this.data,D=this.t.style,E=C.rotation,F=C.scaleX,G=C.scaleY,H=C.scaleZ,I=C.perspective;if(m&&(z=D.top?"top":D.bottom?"bottom":parseFloat(V(this.t,"top",null,!1))?"bottom":"top",v=V(this.t,z,null,!1),A=parseFloat(v)||0,B=v.substr((A+"").length)||"px",C._ffFix=!C._ffFix,D[z]=(C._ffFix?A+.05:A-.05)+B),E||C.skewX)t=Math.cos(E),u=Math.sin(E),b=t,f=u,C.skewX&&(E-=C.skewX,t=Math.cos(E),u=Math.sin(E)),c=-u,g=t;else{if(!(C.rotationY||C.rotationX||1!==H||I))return void(D[ta]="translate3d("+C.x+"px,"+C.y+"px,"+C.z+"px)"+(1!==F||1!==G?" scale("+F+","+G+")":""));b=g=1,c=f=0}l=1,d=e=h=i=j=k=n=o=p=0,q=I?-1/I:0,r=C.zOrigin,s=1e5,E=C.rotationY,E&&(t=Math.cos(E),u=Math.sin(E),j=l*-u,o=q*-u,d=b*u,h=f*u,l*=t,q*=t,b*=t,f*=t),E=C.rotationX,E&&(t=Math.cos(E),u=Math.sin(E),v=c*t+d*u,w=g*t+h*u,x=k*t+l*u,y=p*t+q*u,d=c*-u+d*t,h=g*-u+h*t,l=k*-u+l*t,q=p*-u+q*t,c=v,g=w,k=x,p=y),1!==H&&(d*=H,h*=H,l*=H,q*=H),1!==G&&(c*=G,g*=G,k*=G,p*=G),1!==F&&(b*=F,f*=F,j*=F,o*=F),r&&(n-=r,e=d*n,i=h*n,n=l*n+r),e=(v=(e+=C.x)-(e|=0))?(v*s+(0>v?-.5:.5)|0)/s+e:e,i=(v=(i+=C.y)-(i|=0))?(v*s+(0>v?-.5:.5)|0)/s+i:i,n=(v=(n+=C.z)-(n|=0))?(v*s+(0>v?-.5:.5)|0)/s+n:n,D[ta]="matrix3d("+[(b*s|0)/s,(f*s|0)/s,(j*s|0)/s,(o*s|0)/s,(c*s|0)/s,(g*s|0)/s,(k*s|0)/s,(p*s|0)/s,(d*s|0)/s,(h*s|0)/s,(l*s|0)/s,(q*s|0)/s,e,i,n,I?1+-n/I:1].join(",")+")"},Aa=function(a){var b,c,d,e,f,g,h,i,j,k=this.data,l=this.t,n=l.style;m&&(b=n.top?"top":n.bottom?"bottom":parseFloat(V(l,"top",null,!1))?"bottom":"top",c=V(l,b,null,!1),d=parseFloat(c)||0,e=c.substr((d+"").length)||"px",k._ffFix=!k._ffFix,n[b]=(k._ffFix?d+.05:d-.05)+e),k.rotation||k.skewX?(f=k.rotation,g=f-k.skewX,h=1e5,i=k.scaleX*h,j=k.scaleY*h,n[ta]="matrix("+(Math.cos(f)*i|0)/h+","+(Math.sin(f)*i|0)/h+","+(Math.sin(g)*-j|0)/h+","+(Math.cos(g)*j|0)/h+","+k.x+","+k.y+")"):n[ta]="matrix("+k.scaleX+",0,0,"+k.scaleY+","+k.x+","+k.y+")"};qa("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D",{parser:function(a,b,c,d,f,g,h){if(d._transform)return f;var i,j,k,l,m,n,o,p=d._transform=xa(a,e,!0,h.parseTransform),q=a.style,r=1e-6,s=sa.length,t=h,u={};if("string"==typeof t.transform&&ta)k=q.cssText,q[ta]=t.transform,q.display="block",i=xa(a,null,!1),q.cssText=k;else if("object"==typeof t){if(i={scaleX:da(null!=t.scaleX?t.scaleX:t.scale,p.scaleX),scaleY:da(null!=t.scaleY?t.scaleY:t.scale,p.scaleY),scaleZ:da(null!=t.scaleZ?t.scaleZ:t.scale,p.scaleZ),x:da(t.x,p.x),y:da(t.y,p.y),z:da(t.z,p.z),perspective:da(t.transformPerspective,p.perspective)},o=t.directionalRotation,null!=o)if("object"==typeof o)for(k in o)t[k]=o[k];else t.rotation=o;i.rotation=ea("rotation"in t?t.rotation:"shortRotation"in t?t.shortRotation+"_short":"rotationZ"in t?t.rotationZ:p.rotation*H,p.rotation,"rotation",u),wa&&(i.rotationX=ea("rotationX"in t?t.rotationX:"shortRotationX"in t?t.shortRotationX+"_short":p.rotationX*H||0,p.rotationX,"rotationX",u),i.rotationY=ea("rotationY"in t?t.rotationY:"shortRotationY"in t?t.shortRotationY+"_short":p.rotationY*H||0,p.rotationY,"rotationY",u)),i.skewX=null==t.skewX?p.skewX:ea(t.skewX,p.skewX),i.skewY=null==t.skewY?p.skewY:ea(t.skewY,p.skewY),(j=i.skewY-p.skewY)&&(i.skewX+=j,i.rotation+=j)}for(null!=t.force3D&&(p.force3D=t.force3D,n=!0),m=p.force3D||p.z||p.rotationX||p.rotationY||i.z||i.rotationX||i.rotationY||i.perspective,m||null==t.scale||(i.scaleZ=1);--s>-1;)c=sa[s],l=i[c]-p[c],(l>r||-r>l||null!=I[c])&&(n=!0,f=new ma(p,c,p[c],l,f),c in u&&(f.e=u[c]),f.xs0=0,f.plugin=g,d._overwriteProps.push(f.n));return l=t.transformOrigin,(l||wa&&m&&p.zOrigin)&&(ta?(n=!0,c=va,l=(l||V(a,c,e,!1,"50% 50%"))+"",f=new ma(q,c,0,0,f,-1,"transformOrigin"),f.b=q[c],f.plugin=g,wa?(k=p.zOrigin,l=l.split(" "),p.zOrigin=(l.length>2&&(0===k||"0px"!==l[2])?parseFloat(l[2]):k)||0,f.xs0=f.e=q[c]=l[0]+" "+(l[1]||"50%")+" 0px",f=new ma(p,"zOrigin",0,0,f,-1,f.n),f.b=k,f.xs0=f.e=p.zOrigin):f.xs0=f.e=q[c]=l):ba(l+"",p)),n&&(d._transformType=m||3===this._transformType?3:2),f},prefix:!0}),qa("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),qa("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=W(a,"borderLeft",o,t),w=W(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=W(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=na(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:ja("0px 0px 0px 0px",!1,!0)}),qa("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",p=e||U(a,null),q=this.format((p?o?p.getPropertyValue(n+"-x")+" "+p.getPropertyValue(n+"-y"):p.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&(m=V(a,"backgroundImage").replace(A,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),L.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-L.width:a.offsetHeight-L.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ba}),qa("backgroundSize",{defaultValue:"0 0",formatter:ba}),qa("perspective",{defaultValue:"0px",prefix:!0}),qa("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),qa("transformStyle",{prefix:!0}),qa("backfaceVisibility",{prefix:!0}),qa("margin",{parser:ka("marginTop,marginRight,marginBottom,marginLeft")}),qa("padding",{parser:ka("paddingTop,paddingRight,paddingBottom,paddingLeft")}),qa("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>o?(i=a.currentStyle,j=8>o?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(V(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),qa("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),qa("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),qa("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){return this.parseComplex(a.style,this.format(V(a,"borderTopWidth",e,!1,"0px")+" "+V(a,"borderTopStyle",e,!1,"solid")+" "+V(a,"borderTopColor",e,!1,"#000")),this.format(b),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(ia)||["#000"])[0]}}),qa("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ma(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ba=function(a){var b,c=this.t,d=c.filter||V(this.data,"filter"),e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!V(this.data,"filter")):(c.filter=d.replace(w,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("opacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(u,"opacity="+e))};qa("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(V(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return b=parseFloat(b),j&&1===h&&"hidden"===V(a,"visibility",e)&&0!==b&&(h=0),O?f=new ma(i,"opacity",h,b-h,f):(f=new ma(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ba),j&&(f=new ma(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Ca=function(a,b){b&&(a.removeProperty?a.removeProperty(b.replace(y,"-$1").toLowerCase()):a.removeAttribute(b))},Da=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.className=0===a?this.b:this.e;for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Ca(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.className!==this.e&&(this.t.className=this.e)};qa("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.className,p=a.style.cssText;if(g=f._classNamePT=new ma(a,d,0,0,g,2),g.setRatio=Da,g.pr=-11,c=!0,g.b=o,k=Y(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("\\s*\\b"+b.substr(2)+"\\b"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),f._tween._duration&&(a.className=g.e,j=Z(a,k,Y(a),i,m),a.className=o,g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)),g}});var Ea=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration){var b,c,d,e,f=this.t.style,g=h.transform.parse;if("all"===this.e)f.cssText="",e=!0;else for(b=this.e.split(","),d=b.length;--d>-1;)c=b[d],h[c]&&(h[c].parse===g?e=!0:c="transformOrigin"===c?va:h[c].p),Ca(f,c);e&&(Ca(f,ta),this.t._gsTransform&&delete this.t._gsTransform)}};for(qa("clearProps",{parser:function(a,b,d,e,f){return f=new ma(a,d,0,0,f,2),f.setRatio=Ea,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),i="bezier,throwProps,physicsProps,physics2D".split(","),oa=i.length;oa--;)ra(i[oa]);i=g.prototype,i._firstPT=null,i._onInitTween=function(a,b,h){if(!a.nodeType)return!1;this._target=a,this._tween=h,this._vars=b,j=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=U(a,""),f=this._overwriteProps;var i,m,o,p,q,r,s,t,u,w=a.style;if(k&&""===w.zIndex&&(i=V(a,"zIndex",e),("auto"===i||""===i)&&(w.zIndex=0)),"string"==typeof b&&(p=w.cssText,i=Y(a,e),w.cssText=p+";"+b,i=Z(a,i,Y(a)).difs,!O&&v.test(b)&&(i.opacity=parseFloat(RegExp.$1)),b=i,w.cssText=p),this._firstPT=m=this.parse(a,b,null),this._transformType){for(u=3===this._transformType,ta?l&&(k=!0,""===w.zIndex&&(s=V(a,"zIndex",e),("auto"===s||""===s)&&(w.zIndex=0)),n&&(w.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):w.zoom=1,o=m;o&&o._next;)o=o._next;t=new ma(a,"transform",0,0,null,2),this._linkCSSP(t,null,o),t.setRatio=u&&wa?za:ta?Aa:ya,t.data=this._transform||xa(a,e,!0),f.pop()}if(c){for(;m;){for(r=m._next,o=p;o&&o.pr>m.pr;)o=o._next;(m._prev=o?o._prev:q)?m._prev._next=m:p=m,(m._next=o)?o._prev=m:q=m,m=r}this._firstPT=p}return!0},i.parse=function(a,b,c,f){var g,i,k,l,m,n,o,p,q,r,s=a.style;for(g in b)n=b[g],i=h[g],i?c=i.parse(a,n,g,this,c,f,b):(m=V(a,g,e)+"",q="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||q&&x.test(n)?(q||(n=ha(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=na(s,g,m,n,!0,"transparent",c,0,f)):!q||-1===n.indexOf(" ")&&-1===n.indexOf(",")?(k=parseFloat(m),o=k||0===k?m.substr((k+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(k=aa(a,g,e),o="px"):"left"===g||"top"===g?(k=X(a,g,e),o="px"):(k="opacity"!==g?0:1,o="")),r=q&&"="===n.charAt(1),r?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(t,"")):(l=parseFloat(n),p=q?n.substr((l+"").length)||"":""),""===p&&(p=d[g]||o),n=l||0===l?(r?l+k:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&(k||0===k)&&(k=W(a,g,k,o),"%"===p?(k/=W(a,g,100,"%")/100,k>100&&(k=100),b.strictUnits!==!0&&(m=k+"%")):"em"===p?k/=W(a,g,1,"em"):(l=W(a,g,l,p),p="px"),r&&(l||0===l)&&(n=l+k+p)),r&&(l+=k),!k&&0!==k||!l&&0!==l?void 0!==s[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ma(s,g,l||k||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):Q("invalid "+g+" tween value: "+b[g]):(c=new ma(s,g,k,l-k,c,0,g,j!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p)):c=na(s,g,m,n,!0,null,c,0,f)),f&&c&&!c.plugin&&(c.plugin=f);return c},i.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=b>0?b+.5|0:b-.5|0:f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)Fa(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(Y(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Fa(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h=b.to(a,c,d),i=[h],j=[],k=[],l=[],m=b._internals.reservedProps;for(a=h._targets||h.target,Fa(a,j,l),h.render(c,!0),Fa(a,k),h.render(0,!0),h._enabled(!0),e=l.length;--e>-1;)if(f=Z(l[e],j[e],k[e]),f.firstMPT){f=f.difs;for(g in d)m[g]&&(f[g]=d[g]);i.push(b.to(l[e],c,f))}return i},a.activate([g]),g},!0)}),window._gsDefine&&window._gsQueue.pop()(),ADG.Utils=function(){function a(a,b){var c=new Image,d=a+("undefined"!=typeof b?"?"+b:"");c.src=d,ADG.Logger.debug("[ADG.Utils] Shot pixel with src: "+d)}function b(b){a(b)}function c(a){return a.replace(/^\s+|\s+$/g,"")}function d(){var a=[],b=ADG.Utils.getURLWithoutProtocol(!0),c=b.match(/(^(\w+)\.(\w+)\.(\w{1,3}))/);c&&c.length>2&&a.push(c[2]);var d=b.match(/(\/([\w|-]*(?=\/|\?)))/gi);return d&&d.length>0&&a.push(d[0].replace(/\//gi,"")),a}function e(){var a=ADG.Utils.getURLWithoutProtocol(!0),b=a.match(/(\/([\w|-]*(?=\/|\?)))/gi);return b&&b.length>0?b[0].replace(/\//gi,""):""}function f(a){return a?document.location.href.split("?")[0].replace(/(http:\/\/|https:\/\/|http:\/\/www\\.|https:\/\/www\\.|www\.)/gi,""):document.location.href.split("?")[0].replace(/.*?:\/\//g,"")}function g(a,b,c){var d,e,f,g=!!a.match(/adtech/gi),h=!!a.match(/genesismedia/gi),i=encodeURIComponent("=");if(g){for(d in b)b.hasOwnProperty(d)&&"undefined"!==b[d]&&(a+=b[d]instanceof Array?";KV"+d+"="+b[d].join(","):";KV"+d+"="+b[d]);if(c)for(d in c)c.hasOwnProperty(d)&&c[d]&&(a+=c[d]instanceof Array?";KV"+d+"="+c[d].join(","):";KV"+d+"="+c[d])}else if(h){for(d in b)if(b.hasOwnProperty(d)&&"undefined"!==b[d])if(b[d]instanceof Array)for(e=b[d],f=0;f0?(new Date).getTime()-D:0},n.abandonCB=function(b){var c;ADG.PlayerSingleton.isPlayerReady()&&(c=Math.round(ADG.PlayerSingleton.getTime())),G.notify(a({event:"pageAbandoned",visibleDuration:ADG.UnitWrapper.getVisibleDuration(),calculatedSkipTime:ADG.Skip.get("calculatedSkipTime"),playbackDuration:1e3*c}))},n}(),ADG.Overlay=function(){var a=new ADG.HtmlElement;return a.adg_overlay="",a.template_id="adg_overlay",a.template_data={},a.components_collection=[],a.added_to_dom=!1,a.init=function(){return ADG.Logger.debug("[Overlay] - Init function"),2!==ADG.SettingsHandler.get("placement")?void ADG.Logger.debug("[Overlay] Not rendering overlay because of non locking option"):void this.render()},a.isAddedToDom=function(){return this.added_to_dom},a.render=function(){ADG.Logger.debug("[Overlay] - Rendering Overlay");var a=ADG.DomHandler.$("body")[0];if(a){var b=this.getDOMElement();b&&a.insertBefore(b,a.firstChild),this.added_to_dom=!0}else ADG.Logger.warn("[Overlay] - Trying to render overlay wrapper but body doesn't exist")},a}(),ADG.TemplateHandler=function(){function a(a){return"undefined"==typeof a?(ADG.Logger.error("[TemplateHandler] There is no interceptId value."),!1):(d(),ADG.Logger.debug("[TemplateHandler] Loading template. InterceptId: "+a),b("adg_"+a+".min.css"),c("TemplateVars_"+a+".js"),!0)}function b(a){var b=ADG.DomHandler.$("head")[0],c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.media="all",c.href=ADG.root_url+ADG.env.get("style_files")+a,b.appendChild(c)}function c(a){var b,c=document.createElement("script"),d=!1,f=ADG.root_url+ADG.env.get("template");c.src=f+a,c.onload=c.onreadystatechange=function(){if(!(d||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){for(d=!0,ADG.Logger.debug("[TemplateHandler] Attaching template to DOM"),ADG.Performance.record("templatesFetched"),b=0;ba?n:a>o?o:a}function c(a){q=a}function d(a){n=a}function e(a){o=a}function f(){return b()*p}function g(){return f()*m+parseInt(ADG.PlayerAdapter.getFlashSettings().progressBarThickness,10)}function h(a){m=a,ADG.Resize.setSize()}function i(){return ADG.DomHandler.$("#adgSlate").offsetWidth*m+parseInt(ADG.PlayerAdapter.getFlashSettings().progressBarThickness,10)}function j(){var a,b,c=0,d=0;ADG.DomHandler.$("#adgPlayerWrapper")&&(ADG.DomHandler.$("#adgHeader")&&(a=ADG.DomHandler.$("#adgHeader"),c=4===ADG.SettingsHandler.get("placement")?0:a.clientHeight),ADG.DomHandler.$("#adgFooter")&&(b=ADG.DomHandler.$("#adgFooter"),d=b.clientHeight),1===ADG.SettingsHandler.get("placement")||4===ADG.SettingsHandler.get("placement")?(ADG.DomHandler.$("#adgPlayerWrapper").style.height=Math.ceil(g())+"px",ADG.DomHandler.$("#adgSlate").style.width=Math.ceil(f())+"px",ADG.DomHandler.$("#adgSlate").style.height=Math.ceil(g()+c+d)+"px",4===ADG.SettingsHandler.get("placement")&&ADG.DomHandler.$("#adgWrapper")&&(ADG.DomHandler.$("#adgWrapper").style.height=Math.ceil(g())+"px")):(ADG.DomHandler.$("#adgSlate").style.height=Math.ceil(i()+c+d)+"px",ADG.DomHandler.$("#adgPlayerWrapper").style.height=Math.ceil(i())+"px",ADG.DomHandler.$("#adgControls")&&(ADG.DomHandler.$("#adgControls").style.height=Math.ceil(i())+"px")))}function k(){return Math.ceil(g())}function l(){return Math.ceil(f())}var m=9/16,n=600,o=1e3,p=.75,q=0;return{setSize:j,onResize:a,widthWithOffset:f,setAlternateAspectRatio:h,setMinWidth:d,setMaxWidth:e,getHeight:k,getWidth:l,setWidthResizeThreshold:c}}(),function(){!function(){function a(a){return"".trim?a.trim():a.replace(/^\s+/,"").replace(/\s+$/,"")}var b=this;ADG.ich={VERSION:"0.10.2",templates:{},$:"undefined"!=typeof window?window.jQuery||window.Zepto||null:null,addTemplate:function(b,c){if("object"!=typeof b)ADG.ich[b]?console.error("Invalid name: "+b+"."):ADG.ich.templates[b]?console.error('Template "'+b+' " exists'):(ADG.ich.templates[b]=c,ADG.ich[b]=function(c,d){c=c||{};var e=ADG.Mustache.to_html(ADG.ich.templates[b],c,ADG.ich.templates);return ADG.ich.$&&!d?ADG.ich.$(a(e)):e});else for(var d in b)this.addTemplate(d,b[d])},clearAll:function(){for(var a in ADG.ich.templates)delete ADG.ich[a];ADG.ich.templates={}},refresh:function(){ADG.ich.clearAll(),ADG.ich.grabTemplates()},grabTemplates:function(){var b,c,d,e=document.getElementsByTagName("script"),f=[];for(b=0,c=e.length;c>b;b++)d=e[b],d&&d.innerHTML&&d.id&&("text/html"===d.type||"text/x-icanhaz"===d.type)&&(ADG.ich.addTemplate(d.id,a(d.innerHTML)),f.unshift(d));for(b=0,c=f.length;c>b;b++)f[b].parentNode.removeChild(f[b])}},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=ADG.ich),exports.ich=ADG.ich):b.ich=ADG.ich}()}(),function(a,b){"object"==typeof exports&&exports?b(exports):(ADG.Mustache={},b(ADG.Mustache),"function"==typeof define&&define.amd?define(ADG.Mustache):a.ADG.Mustache=ADG.Mustache)}(this,function(a){function b(a,b){return n.call(a,b)}function c(a){return!b(o,a)}function d(a){return"function"==typeof a}function e(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function f(a){return String(a).replace(/[&<>"'\/]/g,function(a){return r[a]})}function g(a){if(!q(a)||2!==a.length)throw new Error("Invalid tags: "+a);return[new RegExp(e(a[0])+"\\s*"),new RegExp("\\s*"+e(a[1]))]}function h(b,d){function f(){if(A&&!B)for(;z.length;)delete y[z.pop()];else z=[];A=!1,B=!1}d=d||a.tags,b=b||"","string"==typeof d&&(d=d.split(t));for(var h,l,m,n,o,p,q=g(d),r=new k(b),x=[],y=[],z=[],A=!1,B=!1;!r.eos();){if(h=r.pos,m=r.scanUntil(q[0]))for(var C=0,D=m.length;D>C;++C)n=m.charAt(C),c(n)?z.push(y.length):B=!0,y.push(["text",n,h,h+1]),h+=1,"\n"===n&&f();if(!r.scan(q[0]))break;if(A=!0,l=r.scan(w)||"name",r.scan(s),"="===l?(m=r.scanUntil(u),r.scan(u),r.scanUntil(q[1])):"{"===l?(m=r.scanUntil(new RegExp("\\s*"+e("}"+d[1]))),r.scan(v),r.scanUntil(q[1]),l="&"):m=r.scanUntil(q[1]),!r.scan(q[1]))throw new Error("Unclosed tag at "+r.pos);if(o=[l,m,h,r.pos],y.push(o),"#"===l||"^"===l)x.push(o);else if("/"===l){if(p=x.pop(),!p)throw new Error('Unopened section "'+m+'" at '+h);if(p[1]!==m)throw new Error('Unclosed section "'+p[1]+'" at '+h)}else"name"===l||"{"===l||"&"===l?B=!0:"="===l&&(q=g(d=m.split(t)))}if(p=x.pop())throw new Error('Unclosed section "'+p[1]+'" at '+r.pos);return j(i(y))}function i(a){for(var b,c,d=[],e=0,f=a.length;f>e;++e)b=a[e],b&&("text"===b[0]&&c&&"text"===c[0]?(c[1]+=b[1],c[3]=b[3]):(d.push(b),c=b));return d}function j(a){for(var b,c,d=[],e=d,f=[],g=0,h=a.length;h>g;++g)switch(b=a[g],b[0]){case"#":case"^":e.push(b),f.push(b),e=b[4]=[];break;case"/":c=f.pop(),c[5]=b[2],e=f.length>0?f[f.length-1][4]:d;break;default:e.push(b)}return d}function k(a){this.string=a,this.tail=a,this.pos=0}function l(a,b){this.view=null==a?{}:a,this.cache={".":this.view},this.parent=b}function m(){this.cache={}}var n=RegExp.prototype.test,o=/\S/,p=Object.prototype.toString,q=Array.isArray||function(a){return"[object Array]"===p.call(a)},r={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},s=/\s*/,t=/\s+/,u=/\s*=/,v=/\s*\}/,w=/#|\^|\/|>|\{|&|=|!/;k.prototype.eos=function(){return""===this.tail},k.prototype.scan=function(a){var b=this.tail.match(a);if(b&&0===b.index){var c=b[0];return this.tail=this.tail.substring(c.length),this.pos+=c.length,c}return""},k.prototype.scanUntil=function(a){var b,c=this.tail.search(a);switch(c){case-1:b=this.tail,this.tail="";break;case 0:b="";break;default:b=this.tail.substring(0,c),this.tail=this.tail.substring(c)}return this.pos+=b.length,b},l.prototype.push=function(a){return new l(a,this)},l.prototype.lookup=function(a){var b;if(a in this.cache)b=this.cache[a];else{for(var c=this;c;){if(a.indexOf(".")>0){b=c.view;for(var e=a.split("."),f=0;null!=b&&fl;++l)switch(h=b[l],h[0]){case"#":if(i=c.lookup(h[1]),!i)continue;if(q(i))for(var n=0,o=i.length;o>n;++n)j+=this.renderTokens(h[4],c.push(i[n]),e,f);else if("object"==typeof i||"string"==typeof i)j+=this.renderTokens(h[4],c.push(i),e,f);else if(d(i)){if("string"!=typeof f)throw new Error("Cannot use higher-order sections without the original template");i=i.call(c.view,f.slice(h[3],h[5]),g),null!=i&&(j+=i)}else j+=this.renderTokens(h[4],c,e,f);break;case"^":i=c.lookup(h[1]),(!i||q(i)&&0===i.length)&&(j+=this.renderTokens(h[4],c,e,f));break;case">":if(!e)continue;i=d(e)?e(h[1]):e[h[1]],null!=i&&(j+=this.renderTokens(this.parse(i),c,e,i));break;case"&":i=c.lookup(h[1]),null!=i&&(j+=i);break;case"name":i=c.lookup(h[1]),null!=i&&(j+=a.escape(i));break;case"text":j+=h[1]}return j},a.name="mustache.js",a.version="0.8.1",a.tags=["{{","}}"];var x=new m;a.clearCache=function(){return x.clearCache()},a.parse=function(a,b){return x.parse(a,b)},a.render=function(a,b,c){return x.render(a,b,c)},a.to_html=function(b,c,e,f){var g=a.render(b,c,e);return d(f)?void f(g):g},a.escape=f,a.Scanner=k,a.Context=l,a.Writer=m}),ADG.VendorAdapter=function(){function a(){c=new ADG.Observer,c.notify=b,ADG.PlayerEvents.getSubject().addObserver(c),ADG.ExternalInterface.isDataTagLoaded()||(ADG.Logger.debug("[VendorAdapter] data tag not defined, firing mediaMetrix"),d.executeMediaMetrix())}function b(a){if(a&&a.event&&!ADG.ExternalInterface.isDataTagLoaded())switch(a.event){case"adVideoStart":ADG.Logger.debug("[VendorAdapter] data tag not defined, firing adVideoStart"),d.executeComscore({id:ADG.SettingsHandler.get("comscore_id"),name:ADG.SettingsHandler.get("comscore_name")});break;case"adStarted":ADG.Logger.debug("[VendorAdapter] data tag not defined, firing adStarted"),e.load()}}var c,d=function(){function a(a,b){var c=new Image;c.src=b?a+"?"+b:a}function b(a){var b=f.replace("##id##",a.id||h);return b=b.replace("##c3##",a.name||i)}function c(c){var d=b(c);a(d)}function d(){var a=g.replace("##id##",h);return a=a.replace("##c3##",j)}function e(){var b=d();a(b)}var f="http://b.scorecardresearch.com/p?c1=1&c2=##id##&c3=##c3##&c5=01&cv=2.0&cj=1",g="http://b.scorecardresearch.com/p?c1=7&c2=##id##&c3=##c3##&cv=2.0&cj=1",h="16170130",i="adg",j="7109298320131093";return{executeComscore:c,executeMediaMetrix:e}}(),e=function(){function a(a){var b=document.createElement("script");b.type="text/javascript",b.src=a,document.getElementsByTagName("head")[0].appendChild(b)}function b(){g.gmSiteID=document.location.host,"undefined"!=typeof ADG?(g.gmAdId=ADG.PlayerAdapter.getAdId(),g.gmInsertionId=ADG.PlayerEvents.getInsertionId(),g.environment="ad"):g.environment="data";var b=e();a(b)}function c(a){return g.hasOwnPorperty(a)?g[a]:""}function d(a){for(var b in a)g.hasOwnProperty(b)&&(g[b]=a[b])}function e(){var a=f.replace("[CAMPAIGNID]",g.gmAdId||g.gmInsertionId);return a=a.replace("[DATAORAD]",g.environment),a=a.replace("[GENESISDOMAIN]",g.gmSiteID)}var f="http://b.voicefive.com/c2/19765422/rs.js#c1=3&c3=19765422_vme&c4=[CAMPAIGNID]&c5=[DATAORAD]|[GENESISDOMAIN]&c6=&c10=1&c11=&c13=&c16=gen&ax_vme=2&",g={gmSiteID:"",gmAdId:"",gmInsertionId:"",environment:"data"};return{load:b,set:d,get:c,buildMdotUrl:e}}();return{init:a}}(),ADG.BlackListFilter=function(a){function b(){return d}var c=[],d=!1;c=a;for(var e=0;e-1&&c(filterCategories[a]))return i=h?!1:!0,void(h?ADG.Logger.info("[CategoryFilter] Referral URL '"+f+"' matches white list defined for categories '"+g+"'"):ADG.Logger.info("[CategoryFilter] Referral URL '"+f+"' matches black list defined for categories '"+g+"'"));i=h?!0:!1}}function e(){return i}filterCategories={search:["google*","bing.com","*search.yahoo*","*ask.com"],social:["*facebook*","t.co","twitter.com","pinterest.com","linkedin.com","pinterest.com","plus.google*"]};var f="",g=[],h=!1,i=!1;return{init:a,setConfig:b,evaluate:d,isUrlExcluded:e}}(),ADG.FilterHandler=function(){function a(){ADG.Logger.info("[FilterHandler] Init"),ADG.UrlFilter.init({filterReferrers:ADG.SettingsHandler.get("filter_referrers"),whiteList:ADG.SettingsHandler.get("is_white_list")}),ADG.CategoryFilter.init({referralCategories:ADG.SettingsHandler.get("referral_categories"),whiteList:ADG.SettingsHandler.get("is_white_list")}),d=new ADG.BrowserFilter({excludedBrowsers:ADG.SettingsHandler.get("excluded_browsers"),includeMobile:ADG.SettingsHandler.get("includeMobile")}),ADG.FrequencyFilter.init({frequencyCap:ADG.SettingsHandler.get("frequency_cap")}),f=new ADG.BlackListFilter(ADG.SettingsHandler.get("elements_blacklist"))}function b(){return ADG.UrlFilter.isUrlExcluded()?(ADG.Logger.info("[FilterHandler] UrlFilter: referral url is excluded. Filter doesn't pass."),e="referralUrl",!1):ADG.CategoryFilter.isUrlExcluded()?(ADG.Logger.info("[FilterHandler] CategoryFilter: referral categories are excluded. Filter doesn't pass."),e="referralCategory",!1):d.isExcludedBrowser()?(ADG.Logger.info("[FilterHandler] BrowserFilter: browser is excluded. Filter doesn't pass."),e="unsupportedBrowser",!1):d.isExcludedDevice()?(ADG.Logger.info("[FilterHandler] BrowserFilter: device is excluded. Filter doesn't pass."),e="excludedDevice",!1):ADG.flash.available?f.isInBlacklist()?(ADG.Logger.info("[FilterHandler] BlackListFilter: One or more of the elements defined on the blacklist list are present on the page. Filter doesn't pass."),e="domBlacklist",!1):ADG.FrequencyFilter.shouldLockUnitByFrequency()?(ADG.Logger.info("[FilterHandler] FrequencyFilter: Exceeded the number of times allowed to show the unit in 24hs period. Filter doesn't pass."),e="frequencyBlocked",!1):(ADG.Logger.info("[FilterHandler] All filters passed."),!0):(ADG.Logger.info("[FilterHandler] FlashFilter: flash is not available. Filter doesn't pass."),e="noFlash",!1)}function c(){return e}var d,e,f;return{init:a,passesFilters:b,getReason:c}}(),ADG.FrequencyFilter=function(){function a(a){c=a.frequencyCap}function b(){return ADG.Logger.info("[FrequencyFilter] Frequency Cap: "+c+" VS User Current Frequency: "+ADG.ExternalInterface.getUserCurrentFrequency()),-1!==c&&void 0!==ADG.ExternalInterface.getUserCurrentFrequency()?c>ADG.ExternalInterface.getUserCurrentFrequency()?!1:!0:!1}var c;return{init:a,shouldLockUnitByFrequency:b}}(),ADG.PianoHandler=function(){function a(){g=!1,h=!1,i=!1,j=!1,k=!1}function b(){ADG.Logger.debug("[PianoHandler] - Piano waiting enabled."),g=!0,d()}function c(){return g?!g||h||i?h?"end":i?"continue":void 0:"waiting":"continue"}function d(){var a;ADG.ExternalInterface.isDataTagLoaded()&&(a=GMData.PianoEventHandler.getEvents(),GMData.PianoEventHandler.addCallbacks(e,["meterOn","pressPlusLightboxOpen","pressPlusLightboxNotOpen"]),j=!0,a.length>0&&(h=a.indexOf("pressPlusLightboxOpen")>-1,i=a.indexOf("pressPlusLightboxNotOpen")>-1,k=a.indexOf("pressPlusMeterOn")>-1,j=!(h||i)))}function e(a){ADG.Logger.debug(a),a.event&&("pressPlusMeterOn"===a.event?k=!0:"pressPlusLightboxOpen"===a.event?(h=!0,j=!1,i=!1):"pressPlusLightboxNotOpen"===a.event&&(h=!1,i=!0,j=!1))}function f(){return j}var g=!1,h=!1,i=!1,j=!1,k=!1;return{init:a,getStatus:c,enable:b,waitForPiano:f}}(),ADG.Selector=function(a){function b(a){var b,e,g=document;if(!a)return f;for(b=a.split(">"),e=0;e0:!!f}return{get:b,getElementFromDom:d,mainElement:f,isFound:e}},ADG.UrlFilter=function(){function a(a){var d=ADG.UrlFilter.getReferrer();a.url=d.split("?")[0]?d.split("?")[0]:"",b(a),c()}function b(a){f="undefined"!=typeof a.url?a.url:"",g="undefined"!=typeof a.filterReferrers?a.filterReferrers:[],h="undefined"!=typeof a.whiteList?a.whiteList:!1}function c(){if(0!==g.length){for(var a=0;a-1||(ADG.PlayerEvents[b]?ADG.PlayerEvents[b](c):ADG.Logger.warn("PlayerAdapter.processEvents "+b+" unrecognized!"))}function j(a,b){ADG.Logger.log("PlayerAdapter.playerLogs ::: Received msg: "+a),ADG.Logger.logObject(b)}function k(a){return a?n[a]:n}var l,m=["playerSizeChange","playerDataReady","adDurationChange","playerVolumeChange","playerDataReady","playerLocked","playerReady","displayReady","playerUnmuted","playerMuted","mouseLeft","adSizeChange","adTimeChange","adVolumeChange","adImpression","adSkipped"],n={backgroundColor:"0xFFFFFF",controlBarColor:"0xFFFFFF",controlBarAlpha:"0",controlBarAlign:"top",controlBarHeight:"84",progressBarThickness:"4"},o="",p=!1,q=!1,r=!1,s=!1;return{setup:g,createPlayerWrapper:h,processEvents:i,playerLogs:j,getFlashSettings:k,setAdExchange:c,getAdExchange:d,isLiverailMode:e,isTremor:f,getAdId:a,setAdId:b}}(),ADG.PlayerEvents=function(){function a(a,b){return a.adId&&(H=a.adId,ADG.PlayerAdapter.setAdId(a.adId),b.adId=a.adId),a.adExchange&&(ADG.PlayerAdapter.setAdExchange(a.adExchange),I=a.adExchange,b.adExchange=a.adExchange),a.bannerId&&(K=a.bannerId,b.bannerId=a.bannerId),a.insertionId&&(L=a.insertionId,b.insertionId=a.insertionId),a.creativeId&&(M=a.creativeId,b.creativeId=a.creativeId),a.campaignId&&(N=a.campaignId,b.campaignId=a.campaignId),a.pageId&&(O=a.pageId,b.pageId=a.pageId),a.advertiserid&&(adVertiserId=a.advertiserid,b.adVertiserId=a.advertiserid),b}function b(a){return H&&(a.adId=H),I&&(a.adExchange=I),K&&(a.bannerId=K),L&&(a.insertionId=L),M&&(a.creativeId=M),N&&(a.campaignId=N),O&&(a.pageId=O),P&&(a.advertiserId=P),Q&&(a.sequenceId=Q),a}function c(a){ADG.Logger.info("[PlayerEvents] AD Opportunity"),S.notify({event:"adOpportunity"})}function d(a){ADG.Logger.info("[PlayerEvents] AD Response Success"),S.notify({event:"adResponseSuccess",timeToLoad:a.time||""})}function e(){ADG.Logger.info("[PlayerEvents] adPlaying"),S.notify(b({event:"adPlaying"}))}function f(a){ADG.Logger.info("[PlayerEvents] AD Request"),a||(a={}),P=a.advertiserid,Q=a.sequence,L=a.insertionid,N=a.campaignid,M=a.creativeid,O=a.pageId,S.notify({event:"adRequest",advertiserId:a.advertiserid||"",sequenceId:a.sequence||"",insertionId:a.insertionid||"",campaignId:a.campaignid||"",creativeId:a.creativeid||"",pageId:a.pageid||""})}function g(a){ADG.Logger.info("[PlayerEvents] Inner Ad Load Failure"),S.notify(b({event:"innerAdLoadFailure",timeToFail:a.time,adFailureReason:"innerAdLoadFailure"}))}function h(b){ADG.Logger.info("[PlayerEvents] Retail Data ready adExchange : "+b.adExchange),S.notify(a(b,{event:"dataReady"}))}function i(){ADG.Logger.info("[PlayerEvents] Eligible Ad Playback Time Reached"),T===!0&&S.notify(b({event:"eligibleAdPlayback"}))}function j(){if(3!==ADG.SettingsHandler.get("placement")){if(ADG.Skip.get("effectiveSkipTime")<14)return void ADG.Logger.info("[PlayerEvents] Non Eligible Ad Start ::: Reason: insufficent effective skip time set");if(ADG.SettingsHandler.get("autoplay")===!1&&ADG.Skip.get("countdownOnStart")&&ADG.Skip.getRemainingTimeInSeconds()<14)return void ADG.Logger.info("[PlayerEvents] Non Eligible Ad Start ::: Reason: insufficent skip time remaining. Is countdown after play set to false?")}T=!0,ADG.Logger.info("[PlayerEvents] Eligible Ad Start"),S.notify(b({event:"eligibleAdStart"}))}function k(){ADG.Logger.info("[PlayerEvents] AD Response failed"),S.notify({event:"adResponseFailed"})}function l(a){ADG.Logger.info("[PlayerEvents] User Interactions start"),S.notify(b({event:"userInteractionStart",visibleDuration:ADG.UnitWrapper.getVisibleDuration()}))}function m(){ADG.Logger.info("[PlayerEvents] User Interaction After start"),S.notify(b({event:"userInteractionAfterStart"}))}function n(a){ADG.Logger.info("[PlayerEvents] Retail ad load ready"),ADG.PlayerSingleton.getDuration(),S.notify(b({event:"retailAdLoadReady",assetLength:J,timeToLoad:R||""}))}function o(a){ADG.Logger.info("[PlayerEvents] Retail ad ready"),S.notify({event:"retailAdReady"})}function p(a){ADG.Logger.info("[PlayerEvents] Ad Loaded"),R=a.time,S.notify(b({event:"adLoaded"}))}function q(a){ADG.Logger.info("[PlayerEvents] Ad Started"),ADG.PlayerSingleton.isPlayerReady()&&!J&&(J=ADG.PlayerSingleton.getDuration()),S.notify(b({event:"adStarted",assetLength:J,visibleDuration:ADG.UnitWrapper.getVisibleDuration()}))}function r(a){ADG.Logger.info("[PlayerEvents] Ad Click Through");var c;ADG.PlayerSingleton.isPlayerReady()&&(J=J||ADG.PlayerSingleton.getDuration(),c=Math.round(ADG.PlayerSingleton.getTime())),S.notify(b({event:"adClickThrough",assetLength:J,visibleDuration:ADG.UnitWrapper.getVisibleDuration(),playbackDuration:1e3*c}))}function s(){S.notify(b({event:"adStopped"}))}function t(a){ADG.Logger.info("[PlayerEvents] Ad Stopped"),setTimeout(s,500)}function u(){return S}function v(a){ADG.Logger.info("[PlayerEvents] Retail ad error"),S.notify(b({event:"retailAdError",adFailureReason:"innerAdLoadFailure",timeToFail:a.time}))}function w(a){ADG.Logger.info("[PlayerEvents] Retail data error"),S.notify({event:"retailDataError",adFailureReason:"opportunityDefault",timeToFail:a.time})}function x(){var a;ADG.Logger.info("[PlayerEvents] Hover"),ADG.PlayerSingleton.isPlayerReady()&&(a=Math.round(ADG.PlayerSingleton.getTime())),S.notify(b({event:"hover",visibleDuration:ADG.UnitWrapper.getVisibleDuration(), playbackDuration:1e3*a}))}function y(a){ADG.Logger.info("[PlayerEvents] Ad Video Start"),ADG.PlayerSingleton.isPlayerReady()&&!J&&(J=ADG.PlayerSingleton.getDuration()),S.notify(b({event:"adVideoStart",assetLength:J}))}function z(a){ADG.Logger.info("[PlayerEvents] First Quartile"),S.notify(b({event:"adVideoFirstQuartile"}))}function A(a){ADG.Logger.info("[PlayerEvents]Second quartile"),S.notify(b({event:"adVideoMidpoint"}))}function B(a){ADG.Logger.info("[PlayerEvents] Third Quartile"),S.notify(b({event:"adVideoThirdQuartile"}))}function C(){ADG.Logger.info("[PlayerEvents] adPaused"),S.notify(b({event:"adPaused"}))}function D(a){ADG.Logger.info("[PlayerEvents] Mute Clicked"),S.notify(b({event:"muteClicked",muteState:!a.muteValue}))}function E(a){ADG.Logger.info("[PlayerEvents] Ad Video Complete"),S.notify(b({event:"adVideoComplete",calculatedSkipTime:ADG.Skip.get("calculatedSkipTime")}))}function F(a){"undefined"!=typeof a&&a.hasOwnProperty("pixel")&&ADG.Utils.shootPixel(a.pixel)}function G(){return L}var H,I,J,K,L,M,N,O,P,Q,R,S=new ADG.Subject,T=!1;return{adOpportunity:c,retailDataReady:h,retailAdLoadReady:n,retailAdReady:o,adRequest:f,adLoaded:p,innerAdLoadFailure:g,adResponseSuccess:d,adResponseFailed:k,userInteractionStart:l,adStarted:q,adVideoStart:y,retailAdError:v,retailDataError:w,adVideoFirstQuartile:z,adVideoMidpoint:A,adVideoThirdQuartile:B,adVideoComplete:E,adPaused:C,adPlaying:e,adStopped:t,adClickThrough:r,eligibleAdPlayback:i,eligibleAdStart:j,hover:x,muteClick:D,getSubject:u,userInteractionAfterStart:m,firePixel:F,getInsertionId:G}}(),ADG.PlayerSingleton=function(){function a(){return CUPlayerInstance.autoplayBlacklist()}function b(){CUPlayerInstance.pageLocked()}function c(){CUPlayerInstance.pauseAd()}function d(){"undefined"!=typeof CUPlayerInstance&&CUPlayerInstance.resumeAd&&CUPlayerInstance.resumeAd()}function e(){return!!CUPlayerInstance.pageLocked}function f(){return"undefined"!=typeof CUPlayerInstance}function g(){return CUPlayerInstance.playingAd()}function h(){"undefined"!=typeof CUPlayerInstance&&CUPlayerInstance.skip&&CUPlayerInstance.skip()}function i(){return f()?CUPlayerInstance.duration():0}function j(){return CUPlayerInstance.time()}function k(){"undefined"!=typeof CUPlayerInstance&&CUPlayerInstance.resize&&CUPlayerInstance.resize()}function l(){"undefined"!=typeof CUPlayerInstance&&(CUPlayerInstance.removePlayerReferences(),ADG.SwfObject.removeSWF("CUPlayerInstance"))}return{pageLocked:b,pauseAd:c,resumeAd:d,isPageLocked:e,isPlayerReady:f,destroyPlayer:l,isPlayingAd:g,getDuration:i,getTime:j,autoplayBlacklist:a,resize:k,skip:h}}(),ADG.SwfObject=function(){function a(){if(!R){try{var a=K.getElementsByTagName("body")[0].appendChild(q("span"));a.parentNode.removeChild(a)}catch(b){return}R=!0;for(var c=N.length,d=0;c>d;d++)N[d]()}}function b(a){R?a():N[N.length]=a}function c(a){if(typeof J.addEventListener!=C)J.addEventListener("load",a,!1);else if(typeof K.addEventListener!=C)K.addEventListener("load",a,!1);else if(typeof J.attachEvent!=C)r(J,"onload",a);else if("function"==typeof J.onload){var b=J.onload;J.onload=function(){b(),a()}}else J.onload=a}function d(){M?e():f()}function e(){var a=K.getElementsByTagName("body")[0],b=q(D);b.setAttribute("type",G);var c=a.appendChild(b);if(c){var d=0;!function(){if(typeof c.GetVariable!=C){var e=c.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),U.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(10>d)return d++,void setTimeout(arguments.callee,10);a.removeChild(b),c=null,f()}()}else f()}function f(){var a=O.length;if(a>0)for(var b=0;a>b;b++){var c=O[b].id,d=O[b].callbackFn,e={success:!1,id:c};if(U.pv[0]>0){var f=p(c);if(f)if(!s(O[b].swfVersion)||U.wk&&U.wk<312)if(O[b].expressInstall&&h()){var k={};k.data=O[b].expressInstall,k.width=f.getAttribute("width")||"0",k.height=f.getAttribute("height")||"0",f.getAttribute("class")&&(k.styleclass=f.getAttribute("class")),f.getAttribute("align")&&(k.align=f.getAttribute("align"));for(var l={},m=f.getElementsByTagName("param"),n=m.length,o=0;n>o;o++)"movie"!=m[o].getAttribute("name").toLowerCase()&&(l[m[o].getAttribute("name")]=m[o].getAttribute("value"));i(k,l,c,d)}else j(f),d&&d(e);else u(c,!0),d&&(e.success=!0,e.ref=g(c),d(e))}else if(u(c,!0),d){var q=g(c);q&&typeof q.SetVariable!=C&&(e.success=!0,e.ref=q),d(e)}}}function g(a){var b=null,c=p(a);if(c&&"OBJECT"==c.nodeName)if(typeof c.SetVariable!=C)b=c;else{var d=c.getElementsByTagName(D)[0];d&&(b=d)}return b}function h(){return!S&&s("6.0.65")&&(U.win||U.mac)&&!(U.wk&&U.wk<312)}function i(a,b,c,d){S=!0,y=d||null,z={success:!1,id:c};var e=p(c);if(e){"OBJECT"==e.nodeName?(w=k(e),x=null):(w=e,x=c),a.id=H,(typeof a.width==C||!/%$/.test(a.width)&&parseInt(a.width,10)<310)&&(a.width="310"),(typeof a.height==C||!/%$/.test(a.height)&&parseInt(a.height,10)<137)&&(a.height="137"),K.title=K.title.slice(0,47)+" - Flash Player Installation";var f=U.ie&&U.win?"ActiveX":"PlugIn",g="MMredirectURL="+encodeURI(window.location).toString().replace(/&/g,"%26")+"&MMplayerType="+f+"&MMdoctitle="+K.title;if(typeof b.flashvars!=C?b.flashvars+="&"+g:b.flashvars=g,U.ie&&U.win&&4!=e.readyState){var h=q("div");c+="SWFObjectNew",h.setAttribute("id",c),e.parentNode.insertBefore(h,e),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}l(a,b,c)}}function j(a){if(U.ie&&U.win&&4!=a.readyState){var b=q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(k(a),b),a.style.display="none",function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(k(a),a)}function k(a){var b=q("div");if(U.win&&U.ie)b.innerHTML=a.innerHTML;else{var c=a.getElementsByTagName(D)[0];if(c){var d=c.childNodes;if(d)for(var e=d.length,f=0;e>f;f++)1==d[f].nodeType&&"PARAM"==d[f].nodeName||8==d[f].nodeType||b.appendChild(d[f].cloneNode(!0))}}return b}function l(a,b,c){var d,e=p(c);if(U.wk&&U.wk<312)return d;if(e)if(typeof a.id==C&&(a.id=c),U.ie&&U.win){var f="";for(var g in a)a[g]!=Object.prototype[g]&&("data"==g.toLowerCase()?b.movie=a[g]:"styleclass"==g.toLowerCase()?f+=' class="'+a[g]+'"':"classid"!=g.toLowerCase()&&(f+=" "+g+'="'+a[g]+'"'));var h="";for(var i in b)b[i]!=Object.prototype[i]&&(h+='');e.outerHTML='"+h+"",P[P.length]=a.id,d=p(a.id)}else{var j=q(D);j.setAttribute("type",G);for(var k in a)a[k]!=Object.prototype[k]&&("styleclass"==k.toLowerCase()?j.setAttribute("class",a[k]):"classid"!=k.toLowerCase()&&j.setAttribute(k,a[k]));for(var l in b)b[l]!=Object.prototype[l]&&"movie"!=l.toLowerCase()&&m(j,l,b[l]);e.parentNode.replaceChild(j,e),d=j}return d}function m(a,b,c){var d=q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function n(a){var b=p(a);b&&"OBJECT"==b.nodeName&&(U.ie&&U.win?(b.style.display="none",function(){4==b.readyState?o(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function o(a){var b=p(a);if(b){for(var c in b)"function"==typeof b[c]&&(b[c]=null);b.parentNode.removeChild(b)}}function p(a){var b=null;try{b=K.getElementById(a)}catch(c){}return b}function q(a){return K.createElement(a)}function r(a,b,c){a.attachEvent(b,c),Q[Q.length]=[a,b,c]}function s(a){var b=U.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function t(a,b,c,d){if(!U.ie||!U.mac){var e=K.getElementsByTagName("head")[0];if(e){var f=c&&"string"==typeof c?c:"screen";if(d&&(A=null,B=null),!A||B!=f){var g=q("style");g.setAttribute("type","text/css"),g.setAttribute("media",f),A=e.appendChild(g),U.ie&&U.win&&typeof K.styleSheets!=C&&K.styleSheets.length>0&&(A=K.styleSheets[K.styleSheets.length-1]),B=f}U.ie&&U.win?A&&typeof A.addRule==D&&A.addRule(a,b):A&&typeof K.createTextNode!=C&&A.appendChild(K.createTextNode(a+" {"+b+"}"))}}}function u(a,b){if(T){var c=b?"visible":"hidden";R&&p(a)?p(a).style.visibility=c:t("#"+a,"visibility:"+c)}}function v(a){var b=/[\\\"<>\.;]/,c=null!=b.exec(a);return c&&typeof encodeURIComponent!=C?encodeURIComponent(a):a}var w,x,y,z,A,B,C="undefined",D="object",E="Shockwave Flash",F="ShockwaveFlash.ShockwaveFlash",G="application/x-shockwave-flash",H="SWFObjectExprInst",I="onreadystatechange",J=window,K=document,L=navigator,M=!1,N=[d],O=[],P=[],Q=[],R=!1,S=!1,T=!0,U=function(){var a=typeof K.getElementById!=C&&typeof K.getElementsByTagName!=C&&typeof K.createElement!=C,b=L.userAgent.toLowerCase(),c=L.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b),e=c?/mac/.test(c):/mac/.test(b),f=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!1,h=[0,0,0],i=null;if(typeof L.plugins!=C&&typeof L.plugins[E]==D)i=L.plugins[E].description,!i||typeof L.mimeTypes!=C&&L.mimeTypes[G]&&!L.mimeTypes[G].enabledPlugin||(M=!0,g=!1,i=i.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),h[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10),h[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10),h[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof J.ActiveXObject!=C)try{var j=new ActiveXObject(F);j&&(i=j.GetVariable("$version"),i&&(g=!0,i=i.split(" ")[1].split(","),h=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]))}catch(k){}return{w3:a,pv:h,wk:f,ie:g,win:d,mac:e}}();(function(){U.w3&&((typeof K.readyState!=C&&"complete"==K.readyState||typeof K.readyState==C&&(K.getElementsByTagName("body")[0]||K.body))&&a(),R||(typeof K.addEventListener!=C&&K.addEventListener("DOMContentLoaded",a,!1),U.ie&&U.win&&(K.attachEvent(I,function(){"complete"==K.readyState&&(K.detachEvent(I,arguments.callee),a())}),J==top&&!function(){if(!R){try{K.documentElement.doScroll("left")}catch(b){return void setTimeout(arguments.callee,0)}a()}}()),U.wk&&!function(){return R?void 0:/loaded|complete/.test(K.readyState)?void a():void setTimeout(arguments.callee,0)}(),c(a)))})(),function(){U.ie&&U.win&&window.attachEvent("onunload",function(){for(var a=Q.length,b=0;a>b;b++)Q[b][0].detachEvent(Q[b][1],Q[b][2]);for(var c=P.length,d=0;c>d;d++)n(P[d]);for(var e in U)U[e]=null;U=null;for(var f in ADG.SwfObject)ADG.SwfObject[f]=null;ADG.SwfObject=null})}();return{registerObject:function(a,b,c,d){if(U.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,O[O.length]=e,u(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){return U.w3?g(a):void 0},embedSWF:function(a,b,c,d,e,f,g,j,k,m){var n={success:!1,id:b};if(U.w3&&!(U.wk&&U.wk<312)&&a&&b&&c&&d&&e){u(b,!1),c+="",d+="";var o={};if(k&&typeof k===D)for(var p in k)o[p]=k[p];o.data=a,o.width=c,o.height=d;var q={};if(j&&typeof j===D)for(var r in j)q[r]=j[r];if(g&&typeof g===D)for(var t in g)typeof q.flashvars!=C?q.flashvars+="&"+t+"="+g[t]:q.flashvars=t+"="+g[t];if(s(e)){var v=l(o,q,b);o.id==b&&u(b,!0),n.success=!0,n.ref=v}else{if(f&&h())return o.data=f,void i(o,q,b,m);u(b,!0)}m&&m(n)}else m&&m(n)},switchOffAutoHideShow:function(){T=!1},ua:U,getFlashPlayerVersion:function(){return{major:U.pv[0],minor:U.pv[1],release:U.pv[2]}},hasFlashPlayerVersion:s,createSWF:function(a,b,c){return U.w3?l(a,b,c):void 0},showExpressInstall:function(a,b,c,d){U.w3&&h()&&i(a,b,c,d)},removeSWF:function(a){U.w3&&n(a)},createCSS:function(a,b,c,d){U.w3&&t(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=K.location.search||K.location.hash;if(b){if(/\?/.test(b)&&(b=b.split("?")[1]),null==a)return v(b);for(var c=b.split("&"),d=0;d