function(e,g){try{b.exists(g)&&(a[0][e]=g)}catch(c){}});returna[0]}returnnull};b.log=function(b,a){"undefined"!=typeofconsole&&"undefined"!=typeofconsole.log&&(a?console.log(b,a):console.log(b))};varc=b.userAgentMatch=function(b){returnnull!==j.userAgent.toLowerCase().match(b)};b.isIE=a(/msie/i);b.isFF=a(/firefox/i);b.isChrome=a(/chrome/i);b.isIOS=a(/iP(hone|ad|od)/i);b.isIPod=a(/iP(hone|od)/i);b.isIPad=a(/iPad/i);b.isSafari602=a(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i);b.isSafari=function(){returnc(/safari/i)&&
(a=a.replace(/#.*$/,""));varh;h=(h=a)&&0<=h.indexOf("://")&&h.split("/")[2]!=e.location.href.split("/")[2]?!0:!1;if(h&&b.exists(e.XDomainRequest))g=newXDomainRequest,g.onload=f(g,a,c,j),g.onerror=k(j,a,g);elseif(b.exists(e.XMLHttpRequest)){vard=g=newXMLHttpRequest,t=a;g.onreadystatechange=function(){if(4===d.readyState)switch(d.status){case200:f(d,t,c,j)();break;case404:j("File not found")}};g.onerror=k(j,a)}elsej&&j();try{g.open("GET",a,!0),g.send(null)}catch(n){j&&j(a)}returng};b.parseXML=
this.addGlobalListener=function(f,b){try{"string"==a.typeOf(f)&&(f=(newFunction("return "+f))()),e.push({listener:f,count:b})}catch(c){a.log("error",c)}return!1};this.removeGlobalListener=function(f){if(f){try{for(varb=0;b<e.length;b++)if(e[b].listener.toString()==f.toString()){e.splice(b,1);break}}catch(c){a.log("error",c)}return!1}};this.sendEvent=function(j,b){a.exists(b)||(b={});a.extend(b,{id:d,version:jwplayer.version,type:j});f&&a.log(j,b);if("undefined"!=a.typeOf(h[j]))for(varc=0;c<h[j].length;c++){try{h[j][c].listener(b)}catch(n){a.log("There was an error while handling a listener: "+
n.toString(),h[j][c].listener)}h[j][c]&&(1===h[j][c].count?deleteh[j][c]:0<h[j][c].count&&(h[j][c].count-=1))}for(c=0;c<e.length;c++){try{e[c].listener(b)}catch(m){a.log("There was an error while handling a listener: "+m.toString(),e[c].listener)}e[c]&&(1===e[c].count?deletee[c]:0<e[c].count&&(e[c].count-=1))}}}}(jwplayer.events),function(d){vara={},k={};d.plugins=function(){};d.plugins.loadPlugins=function(f,h){k[f]=newd.plugins.pluginloader(newd.plugins.model(a),h);returnk[f]};d.plugins.registerPlugin=
function(d){vara=d.utils,k=d.events,f=a.foreach;d.plugins.pluginloader=function(h,e){functionj(){m?g.sendEvent(k.ERROR,{message:p}):n||(n=!0,c=a.loaderstatus.COMPLETE,g.sendEvent(k.COMPLETE))}functionb(){l||j();if(!n&&!m){varb=0,c=h.getPlugins();a.foreach(l,function(e){e=a.getPluginName(e);varf=c[e];e=f.getJS();varg=f.getTarget(),f=f.getStatus();if(f==a.loaderstatus.LOADING||f==a.loaderstatus.NEW)b++;elseif(e&&(!g||parseFloat(g)>parseFloat(d.version)))m=!0,p="Incompatible player version",j()});
j+10;d[k]=l.getNewInstance(b,a.extend({},c.plugins[p]),A);j++;b.onReady(e(d[k],A,!0));b.onResize(e(d[k],A))}}catch(D){a.log("ERROR: Failed to load "+k+".")}});b.plugins=d;returng};this.load=function(){if(!(a.exists(e)&&"object"!=a.typeOf(e))){c=a.loaderstatus.LOADING;f(e,function(c){a.exists(c)&&(c=h.addPlugin(c),c.addEventListener(k.COMPLETE,b),c.addEventListener(k.ERROR,q))});varg=h.getPlugins();f(g,function(a,b){b.load()})}b()};varq=this.pluginFailed=function(){m||(m=!0,p="File not found",j())};
m),w.embed(),c(b,u.events),b}if(r.fallback){varx="No suitable players found and fallback enabled";C=setTimeout(function(){q(x,f)},10);a.log(x);newj.download(t,r,p)}elsex="No suitable players found and fallback disabled",q(x,h),a.log(x),t.parentNode.replaceChild(v,t)}}functionm(a){g(t,B+a.message)}functionp(a){a&&a.message?g(t,"Error loading playlist: "+a.message):g(t,B+"No playable sources found")}functionl(){g(t,"Adobe SiteCatalyst Error: Could not find Media Module")}functiong(b,c){if(r.fallback){vare=
n);y.addEventListener(k.ERROR,function(a){g(t,"Could not load plugins: "+a.message)});y.load();returnb}}(jwplayer),function(d){functiona(a){if(a.playlist)for(vard=0;d<a.playlist.length;d++)a.playlist[d]=newh(a.playlist[d]);else{varb={};f.foreach(h.defaults,function(c){k(a,b,c)});b.sources||(a.levels?(b.sources=a.levels,deletea.levels):(d={},k(a,d,"file"),k(a,d,"type"),b.sources=d.file?[d]:[]));a.playlist=[newh(b)]}}functionk(a,d,b){f.exists(a[b])&&(d[b]=a[b],deletea[b])}varf=d.utils,h=d.playlist.item;
"function"==typeofa.resize&&a.resize(e.width,e.height);b.style.left=e.x;b.style.top=e.h}catch(d){}}}functionl(b){if(!b)return{};varc={},e=[];a.foreach(b,function(b,d){varg=a.getPluginName(b);e.push(b);a.foreach(d,function(a,b){c[g+"."+a]=b})});c.plugins=e.join(",");returnc}varg=newd.events.eventdispatcher,q=a.flashVersion();a.extend(this,g);this.embed=function(){b.id=n.id;if(10>q)returng.sendEvent(k.ERROR,{message:"Flash version must be 10.0 or greater"}),!1;vard,h,u=n.config.listbar,v=a.extend({},
d.clientHeight)},400));b.left=d.style.left;b.top=d.style.top}catch(e){}}}functionm(a){p.sendEvent(a.type,{message:"HTML5 player not found"})}varp=this,l=newf.eventdispatcher;a.extend(p,l);p.embed=function(){if(d.html5){b.setupPlugins(c,j,n);h.innerHTML="";varg=d.utils.extend({},j);deleteg.volume;g=newd.html5.player(g);c.container=document.getElementById(c.id);c.setPlayer(g,"html5")}elseg=newa.scriptloader(e.src),g.addEventListener(f.ERROR,m),g.addEventListener(f.COMPLETE,p.embed),g.load()};
b,c,d){try{B[d]=c,l("jwDockAddButton",a,b,"jwplayer('"+g.id+"').callback('"+d+"')",d)}catch(e){k.log("Could not add dock button"+e.message)}};g.removeButton=function(a){l("jwDockRemoveButton",a)};g.callback=function(a){if(B[a])B[a]()};g.forceState=function(a){l("jwForceState",a);returng};g.releaseState=function(){returnl("jwReleaseState")};g.getDuration=function(){returnl("jwGetDuration")};g.getFullscreen=function(){returnl("jwGetFullscreen")};g.getHeight=function(){returnl("jwGetHeight")};g.getLockState=
onAdError:f.JWPLAYER_AD_ERROR,onAdClick:f.JWPLAYER_AD_CLICK,onAdImpression:f.JWPLAYER_AD_IMPRESSION,onAdTime:f.JWPLAYER_AD_TIME,onAdComplete:f.JWPLAYER_AD_COMPLETE,onAdCompanions:f.JWPLAYER_AD_COMPANIONS};k.foreach(y,function(a){g[a]=c(y[a],p)});varz={onBuffer:h.BUFFERING,onPause:h.PAUSED,onPlay:h.PLAYING,onIdle:h.IDLE};k.foreach(z,function(a){g[a]=c(z[a],n)});g.remove=function(){if(!u)throw"Cannot call remove() before player is ready";v=[];j.destroyPlayer(this.id)};g.setup=function(a){if(d.embed){varb=
typeofq[a][d])try{a==f.JWPLAYER_PLAYLIST_LOADED&&k.deepReplaceKeyName(c.playlist,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]),q[a][d].call(this,c)}catch(e){k.log("There was an error calling back an event handler")}};g.dispatchInstreamEvent=function(a){w&&w.dispatchEvent(a,arguments)};g.callInternal=l;g.playerReady=function(a){u=!0;t||g.setPlayer(e.getElementById(a.id));g.container=e.getElementById(g.id);k.foreach(q,function(a){m(t,a)});p(f.JWPLAYER_PLAYLIST_ITEM,function(){x=