if(typeofjwplayer=="undefined"){jwplayer=function(a){if(jwplayer.api){returnjwplayer.api.selectPlayer(a)}};jwplayer.version="6.1.2972";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(d){varj=document,g=window,b=navigator,h="undefined",f="string",c="object";vark=d.utils=function(){};k.exists=function(m){switch(typeof(m)){casef:return(m.length>0);break;casec:return(m!==null);caseh:returnfalse}returntrue};k.styleDimension=function(m){returnm+(m.toString().indexOf("%")>0?"":"px")};k.getAbsolutePath=function(s,r){if(!k.exists(r)){r=j.location.href}if(!k.exists(s)){returnundefined}if(a(s)){returns}vart=r.substring(0,r.indexOf("://")+3);varq=r.substring(t.length,r.indexOf("/",t.length+1));varn;if(s.indexOf("/")===0){n=s.split("/")}else{varo=r.split("?")[0];o=o.substring(t.length+q.length+1,o.lastIndexOf("/"));n=o.split("/").concat(s.split("/"))}varm=[];for(varp=0;p<n.length;p++){if(!n[p]||!k.exists(n[p])||n[p]=="."){continue}else{if(n[p]==".."){m.pop()}else{m.push(n[p])}}}returnt+q+"/"+m.join("/")};functiona(n){if(!k.exists(n)){return}varo=n.indexOf("://");varm=n.indexOf("?");return(o>0&&(m<0||(m>o)))}k.extend=function(){varm=k.extend["arguments"];if(m.length>1){for(varo=1;o<m.length;o++){for(varninm[o]){try{if(k.exists(m[o][n])){m[0][n]=m[o][n]}}catch(p){}}}returnm[0]}returnnull};k.log=function(n,m){if(typeofconsole!=h&&typeofconsole.log!=h){if(m){console.log(n,m)}else{console.log(n)}}};vare=k.userAgentMatch=function(n){varm=b.userAgent.toLowerCase();return(m.match(n)!==null)};functionl(m){returnfunction(){returne(m)}}k.isIE=l(/msie/i);k.isFF=l(/firefox/i);k.isChrome=l(/chrome/i);k.isIOS=l(/iP(hone|ad|od)/i);k.isIPod=l(/iP(hone|od)/i);k.isIPad=l(/iPad/i);k.isAndroid=function(m){if(m){returne(newRegExp("android.*"+m,"i"))}else{returne(/android/i)}};k.isMobile=function(){returnk.isIOS()||k.isAndroid()};k.saveCookie=function(m,n){j.cookie="jwplayer."+m+"="+n+"; path=/"};k.getCookies=function(){varp={};varo=j.cookie.split("; ");for(varn=0;n<o.length;n++){varm=o[n].split("=");if(m[0].indexOf("jwplayer.")==0){p[m[0].substring(9,m[0].length)]=m[1]}}returnp};k.typeOf=function(n){varm=typeofn;if(m==="object"){if(!n){return"null"}return(ninstanceofArray)?"array":m}else{returnm}};k.translateEventResponse=function(o,m){varq=k.extend({},m);if(o==d.events.JWPLAYER_FULLSCREEN&&!q.fullscreen){q.fullscreen=q.message=="true"?true:false;deleteq.message}else{if(typeofq.data==c){q=k.extend(q,q.data);deleteq.data}else{if(typeofq.metadata==c){k.deepReplaceKeyName(q.metadata,["__dot__","__spc__","__dsh__"],["."," ","-"])}}}varn=["position","duration","offset"];for(varpinn){if(q[n[p]]){q[n[p]]=Math.round(q[n[p]]*1000)/1000}}returnq};k.flashVersion=function(){if(k.isAndroid()){return0}varm=b.plugins,n;if(m!=h){n=m["Shockwave Flash"];if(n){returnparseInt(n.description.replace(/\D+(\d+)\..*/,"$1"))}}if(typeofg.ActiveXObject!=h){try{n=newActiveXObject("ShockwaveFlash.ShockwaveFlash");if(n){returnparseInt(n.GetVariable("$version").split(" ")[1].split(",")[0])}}catch(o){}}return0};k.getScriptPath=function(o){varm=j.getElementsByTagName("script");for(varn=0;n<m.length;n++){varp=m[n].src;if(p&&p.indexOf(o)>=0){returnp.substr(0,p.indexOf(o))}}return""};k.deepReplaceKeyName=function(t,o,m){switch(d.utils.typeOf(t)){case"array":for(varq=0;q<t.length;q++){t[q]=d.utils.deepReplaceKeyName(t[q],o,m)}break;casec:for(varpint){vars,r;if(oinstanceofArray&&minstanceofArray){if(o.length!=m.length){continue}else{s=o;r=m}}else{s=[o];r=[m]}varn=p;for(varq=0;q<s.length;q++){n=n.replace(newRegExp(o[q],"g"),m[q])}t[n]=d.utils.deepReplaceKeyName(t[p],o,m);if(p!=n){deletet[p]}}break}returnt};vari=k.pluginPathType={ABSOLUTE:0,RELATIVE:1,CDN:2};k.getPluginPathType=function(n){if(typeofn!=f){return}n=n.split("?")[0];varo=n.indexOf("://");if(o>0){returni.ABSOLUTE}varm=n.indexOf("/");varp=k.extension(n);if(o<0&&m<0&&(!p||!isNaN(p))){returni.CDN}returni.RELATIVE};k.getPluginName=function(m){returnm.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};k.getPluginVersion=function(m){returnm.replace(/[^-]*-?([^\.]*).*$/,"$1")};k.isYouTube=function(m){return(m.indexOf("youtube.com")>-1||m.indexOf("youtu.be")>-1)};k.isRtmp=function(m,n){return(m.indexOf("rtmp")==0||n=="rtmp")};k.foreach=function(o,n){for(varmino){if(o.hasOwnProperty(m)){n(m)}}};k.isHTTPS=function(){return(g.location.href.indexOf("https")==0)}})(jwplayer);(function(o){vard="video/",i="audio/",g="image",j="mp4",c="webm",n="ogg",b="aac",k="mp3",l="vorbis",m={mp4:d+j,vorbis:i+n,ogg:d+n,webm:d+c,aac:i+j,mp3:i+"mpeg",hls:"application/vnd.apple.mpegurl"},h={mp4:m[j],f4v:m[j],m4v:m[j],mov:m[j],m4a:m[b],f4a:m[b],aac:m[b],mp3:m[k],ogv:m[n],ogg:m[l],oga:m[l],webm:m[c],m3u8:m.hls},d="video",f={flv:d,f4v:d,mov:d,m4a:d,m4v:d,mp4:d,aac:d,f4a:d,mp3:"sound",smil:"rtmp",m3u8:"hls"};vara=o.extensionmap={};for(vareinh){a[e]={html5:h[e]}}for(einf){if(!a[e]){a[e]={}}a[e].flash=f[e]}a.types=m;a.mimeType=function(q){for(varpinm){if(m[p]==q){returnp}}};a.extType=function(p){returna.mimeType(h[p])}})(jwplayer.utils);(function(b){vara=b.loaderstatus={NEW:0,LOADING:1,ERROR:2,COMPLETE:3},c=document;b.scriptloader=function(e){varf=a.NEW,h=jwplayer.events,d=newh.eventdispatcher();b.extend(this,d);this.load=function(){vark=b.scriptloader.loaders[e];if(k&&(k.getStatus()==a.NEW||k.getStatus()==a.LOADING)){k.addEventListener(h.ERROR,g);k.addEventListener(h.COMPLETE,i);return}b.scriptloader.loaders[e]=this;if(f==a.NEW){f=a.LOADING;varj=c.createElement("script");if(j.addEventListener){j.onload=i;j.onerror=g}else{if(j.readyState){j.onreadystatechange=function(){if(j.readyState=="loaded"||j.readyState=="complete"){i()}}}}c.getElementsByTagName("head")[0].appendChild(j);j.src=e}};functiong(j){f=a.ERROR;d.sendEvent(h.ERROR)}functioni(j){f=a.COMPLETE;d.sendEvent(h.COMPLETE)}this.getStatus=function(){returnf}};b.scriptloader.loaders={}})(jwplayer.utils);(function(a){a.trim=function(b){returnb.replace(/^\s*/,"").replace(/\s*$/,"")};a.pad=function(c,d,b){if(!b){b="0"}while(c.length<d){c=b+c}returnc};a.xmlAttribute=function(b,c){for(vard=0;d<b.attributes.length;d++){if(b.attributes[d].name&&b.attributes[d].name.toLowerCase()==c.toLowerCase()){returnb.attributes[d].value.toString()}}return""};a.extension=function(b){if(!b||b.substr(0,4)=="rtmp"){return""}b=b.substring(b.lastIndexOf("/")+1,b.length).split("?")[0].split("#")[0];if(b.lastIndexOf(".")>-1){returnb.substr(b.lastIndexOf(".")+1,b.length).toLowerCase()}};a.stringToColor=function(b){b=b.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(b.length==3){b=b.charAt(0)+b.charAt(0)+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2)}returnparseInt(b,16)}})(jwplayer.utils);(function(a){varc="invalid",b="36QXq4W@GSBV^teR";a.key=function(h){varg,i,e;functionf(j){if(!a.exists(j)){j=""}try{j=d(j);varl=j.split("/");g=l[0];if(!g){g="free"}else{if(a.key.valid.indexOf(g)<0){g=c}}i=l[1];if(l[2]&&parseInt(l[2])>0){e=newDate();e.setTime(String(l[2]))}}catch(k){g=c}}functiond(j){returna.tea.decrypt(j,b)}this.edition=function(){if(e&&e.getTime()<(newDate()).getTime()){returnc}returng};this.token=function(){returni};f(h)};a.key.valid=["free","pro"]})(jwplayer.utils);(function(b){varc=b.tea={};c.encrypt=function(h,w){if(h.length==0){return("")}varx=c.strToLongs(a.encode(h));if(x.length<=1){x[1]=0}varl=c.strToLongs(a.encode(w).slice(0,16)),i=x.length,r=x[i-1],s=x[0],u=2654435769,t,o,f=Math.floor(6+52/i),m=0;while(f-->0){m+=u;o=m>>>2&3;for(varg=0;g<i;g++){s=x[(g+1)%i];t=(r>>>5^s<<2)+(s>>>3^r<<4)^(m^s)+(l[g&3^o]^r);r=x[g]+=t}}varj=c.longsToStr(x);returnd.encode(j)};c.decrypt=function(j,w){if(j.length==0){return("")}varx=c.strToLongs(d.decode(j)),l=c.strToLongs(a.encode(w).slice(0,16)),i=x.length,r=x[i-1],s=x[0],u=2654435769,t,o,f=Math.floor(6+52/i),m=f*u;while(m!=0){o=m>>>2&3;for(varh=i-1;h>=0;h--){r=x[h>0?h-1:i-1];t=(r>>>5^s<<2)+(s>>>3^r<<4)^(m^s)+(l[h&3^o]^r);s=x[h]-=t}m-=u}varg=c.longsToStr(x);g=g.replace(/\0+$/,"");returna.decode(g)};c.strToLongs=function(g){vare=newArray(Math.ceil(g.length/4));for(varf=0;f<e.length;f++){e[f]=g.charCodeAt(f*4)+(g.charCodeAt(f*4+1)<<8)+(g.charCodeAt(f*4+2)<<16)+(g.charCodeAt(f*4+3)<<24)}returne};c.longsToStr=function(f){vare=newArray(f.length);for(varg=0;g<f.length;g++){e[g]=String.fromCharCode(f[g]&255,f[g]>>>8&255,f[g]>>>16&255,f[g]>>>24&255)}returne.join("")};vard={};d.code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(q,s){s=(typeofs=="undefined")?false:s;varj,g,f,u,r,n,m,k,l=[],i="",p,t,o;varh=d.code;t=s?a.encode(q):q;p=t.length%3;if(p>0){while(p++<3){i+="=";t+="\0"}}for(p=0;p<t.length;p+=3){j=t.charCodeAt(p);g=t.charCodeAt(p+1);f=t.charCodeAt(p+2);u=j<<16|g<<8|f;r=u>>18&63;n=u>>12&63;m=u>>6&63;k=u&63;l[p/3]=h.charAt(r)+h.charAt(n)+h.charAt(m)+h.charAt(k)}o=l.join("");o=o.slice(0,o.length-i.length)+i;returno};d.decode=function(p,g){g=(typeofg=="undefined")?false:g;vari,f,e,q,m,k,j,s,l=[],r,o;varh=d.code;o=g?a.decode(p):p;for(varn=0;n<o.length;n+=4){q=h.indexOf(o.charAt(n));m=h.indexOf(o.charAt(n+1));k=h.indexOf(o.charAt(n+2));j=h.indexOf(o.charAt(n+3));s=q<<18|m<<12|k<<6|j;i=s>>>16&255;f=s>>>8&255;e=s&255;l[n/4]=String.fromCharCode(i,f,e);if(j==64){l[n/4]=String.fromCharCode(i,f)}if(k==64){l[n/4]=String.fromCharCode(i)}}r=l.join("");returng?a.decode(r):r};vara={};a.encode=function(e){varf=e.replace(/[\u0080-\u07ff]/g,function(h){varg=h.charCodeAt(0);returnString.fromCharCode(192|g>>6,128|g&63)});f=f.replace(/[\u0800-\uffff]/g,function(h){varg=h.charCodeAt(0);returnString.fromCharCode(224|g>>12,128|g>>6&63,128|g&63)});returnf};a.decode=function(f){vare=f.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(h){varg=((h.charCodeAt(0)&15)<<12)|((h.charCodeAt(1)&63)<<6)|(h.charCodeAt(2)&63);returnString.fromCharCode(g)});e=e.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(h){varg=(h.charCodeAt(0)&31)<<6|h.charCodeAt(1)&63;returnString.fromCharCode(g)});returne}})(jwplayer.utils);(function(a){a.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_MEDIA_LEVELS:"jwplayerMediaLevels",JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete",JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick",JWPLAYER_CONTROLS:"jwplayerViewControls",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"}})(jwplayer);(function(a){varb=jwplayer.utils;a.eventdispatcher=function(h,c){vare=h,g=c,f,d;this.resetEventListeners=function(){f={};d=[]};this.resetEventListeners();this.addEventListener=function(i,l,k){try{if(!b.exists(f[i])){f[i]=[]}if(b.typeOf(l)=="string"){l=(newFunction("return "+l))()}f[i].push({listener:l,count:k})}catch(j){b.log("error",j)}returnfalse};this.removeEventListener=function(j,l){if(!f[j]){return}try{for(vari=0;i<f[j].length;i++){if(f[j][i].listener.toString()==l.toString()){f[j].splice(i,1);break}}}catch(k){b.log("error",k)}returnfalse};this.addGlobalListener=function(k,j){try{if(b.typeOf(k)=="string"){k=(newFunction("return "+k))()}d.push({listener:k,count:j})}catch(i){b.log("error",i)}returnfalse};this.removeGlobalListener=function(k){if(!k){return}try{for(vari=0;i<d.length;i++){if(d[i].listener.toString()==k.toString()){d.splice(i,1);break}}}catch(j){b.log("error",j)}returnfalse};this.sendEvent=function(k,m){if(!b.exists(m)){m={}}b.extend(m,{id:e,version:jwplayer.version,type:k});if(g){b.log(k,m)}if(b.typeOf(f[k])!="undefined"){for(varj=0;j<f[k].length;j++){try{f[k][j].listener(m)}catch(l){b.log("There was an error while handling a listener: "+l.toString(),f[k][j].listener)}if(f[k][j]){if(f[k][j].count===1){deletef[k][j]}else{if(f[k][j].count>0){f[k][j].count=f[k][j].count-1}}}}}vari;for(i=0;i<d.length;i++){try{d[i].listener(m)}catch(l){b.log("There was an error while handling a listener: "+l.toString(),d[i].listener)}if(d[i]){if(d[i].count===1){deleted[i]}else{if(d[i].count>0){d[i].count=d[i].count-1}}}}}}})(jwplayer.events);(function(a){varc={},b={};a.plugins=function(){};a.plugins.loadPlugins=function(e,d){b[e]=newa.plugins.pluginloader(newa.plugins.model(c),d);returnb[e]};a.plugins.registerPlugin=function(h,g,f,e){vard=a.utils.getPluginName(h);if(!c[d]){c[d]=newa.plugins.plugin(h)}c[d].registerPlugin(h,g,f,e)}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(c){vard=a.utils.getPluginName(c);if(!b[d]){b[d]=newa.plugins.plugin(c)}returnb[d]};this.getPlugins=function(){returnb}}})(jwplayer);(function(b){vara=jwplayer.utils,c=jwplayer.events,d="undefined";b.pluginmodes={FLASH:0,JAVASCRIPT:1,HYBRID:2};b.plugin=function(e){varl=a.loaderstatus.NEW,m,k,f,n;varg=newc.eventdispatcher();a.extend(this,g);functionh(){switch(a.getPluginPathType(e)){casea.pluginPathType.ABSOLUTE:returne;casea.pluginPathType.RELATIVE:returna.getAbsolutePath(e,window.location.href)}}functionj(o){n=setTimeout(function(){l=a.loaderstatus.COMPLETE;g.sendEvent(c.COMPLETE)},1000)}functioni(o){l=a.loaderstatus.ERROR;g.sendEvent(c.ERROR)}this.load=function(){if(l==a.loaderstatus.NEW){if(e.lastIndexOf(".swf")>0){m=e;l=a.loaderstatus.COMPLETE;g.sendEvent(c.COMPLETE);return}else{if(a.getPluginPathType(e)==a.pluginPathType.CDN){l=a.loaderstatus.COMPLETE;g.sendEvent(c.COMPLETE);return}}l=a.loaderstatus.LOADING;varo=newa.scriptloader(h());o.addEventListener(c.COMPLETE,j);o.addEventListener(c.ERROR,i);o.load()}};this.registerPlugin=function(r,q,p,o){if(n){clearTimeout(n);n=undefined}f=q;if(p&&o){m=o;k=p}else{if(typeofp=="string"){m=p}else{if(typeofp=="function"){k=p}else{if(!p&&!o){m=r}}}}l=a.loaderstatus.COMPLETE;g.sendEvent(c.COMPLETE)};this.getStatus=function(){returnl};this.getPluginName=function(){returna.getPluginName(e)};this.getFlashPath=function(){if(m){switch(a.getPluginPathType(m)){casea.pluginPathType.ABSOLUTE:returnm;casea.pluginPathType.RELATIVE:if(e.lastIndexOf(".swf")>0){returna.getAbsolutePath(m,window.location.href)}returna.getAbsolutePath(m,h())}}returnnull};this.getJS=function(){returnk};this.getTarget=function(){returnf};this.getPluginmode=function(){if(typeofm!=d&&typeofk!=d){returnb.pluginmodes.HYBRID}else{if(typeofm!=d){returnb.pluginmodes.FLASH}else{if(typeofk!=d){returnb.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(p,o,q){returnnewk(p,o,q)};this.getURL=function(){returne}}})(jwplayer.plugins);(function(b){vara=b.utils,c=b.events;b.plugins.pluginloader=function(i,h){varo=a.loaderstatus.NEW,g=false,d=false,k=false,l,m=h,e=newc.eventdispatcher();a.extend(this,e);functionf(){if(k){e.sendEvent(c.ERROR,{message:l})}else{if(!d){d=true;o=a.loaderstatus.COMPLETE;e.sendEvent(c.COMPLETE)}}}functionn(){if(!m){f()}if(!d&&!k){varr=0,q=i.getPlugins();for(varsinm){vart=a.getPluginName(s),w=q[t],v=w.getJS(),u=w.getTarget(),p=w.getStatus();if(p==a.loaderstatus.LOADING||p==a.loaderstatus.NEW){r++}else{if(v&&(!u||parseFloat(u)>parseFloat(b.version))){k=true;l="Incompatible player version";f()}}}if(r==0){f()}}}this.setupPlugins=function(x,s,A){varr={length:0,plugins:{}},v={length:0,plugins:{}},u=i.getPlugins();for(varwins.plugins){vary=a.getPluginName(w),z=u[y],B=z.getFlashPath(),C=z.getJS(),p=z.getURL();if(B){r.plugins[B]=a.extend({},s.plugins[w]);r.plugins[B].pluginmode=z.getPluginmode();r.length++}try{if(C&&s.plugins&&s.plugins[p]){varq=document.createElement("div");q.id=x.id+"_"+y;q.style.position="absolute";q.style.top=0;q.style.zIndex=v.length+10;v.plugins[y]=z.getNewInstance(x,a.extend({},s.plugins[p]),q);v.length++;x.onReady(A(v.plugins[y],q,true));x.onResize(A(v.plugins[y],q))}}catch(t){console.log("ERROR: Failed to load "+y+".")}}x.plugins=v.plugins;returnr};this.load=function(){if(a.exists(h)&&a.typeOf(h)!="object"){n();return}o=a.loaderstatus.LOADING;g=true;for(varqinh){if(a.exists(q)){varr=i.addPlugin(q);r.addEventListener(c.COMPLETE,n);r.addEventListener(c.ERROR,j)}}varp=i.getPlugins();for(qinp){p[q].load()}g=false;n()};varj=this.pluginFailed=function(p){if(!k){k=true;l="File not found";f()}};this.getStatus=function(){returno}}})(jwplayer);(function(a){a.playlist=function(c){vard=[];if(a.utils.typeOf(c)=="array"){for(varb=0;b<c.length;b++){d.push(newa.playlist.item(c[b]))}}else{d.push(newa.playlist.item(c))}returnd}})(jwplayer);(function(b){vara=b.item=function(d){varc=jwplayer.utils.extend({},a.defaults,d);if(c.sources.length==0){c.sources=[newb.source(c)]}for(vare=0;e<c.sources.length;e++){c.sources[e]=newb.source(c.sources[e])}returnc};a.defaults={description:"",image:"",mediaid:"",title:"",tags:"",duration:-1,sources:[]}})(jwplayer.playlist);(function(d){varb=undefined,a=jwplayer.utils,c={file:b,label:b,bitrate:b,width:b,height:b,type:b};d.source=function(f){vare=a.extend({},c);for(varginc){if(a.exists(f[g])){e[g]=f[g];deletef[g]}}if(e.type&&e.type.indexOf("/")>0){e.type=a.extensionmap.mimeType(e.type)}returne}})(jwplayer.playlist);(function(b){vara=b.utils,c=b.events,d=document;vare=b.embed=function(u){varq=newe.config(u.config),j,l,h,k=q.width,m=q.height,o="Error loading player: ",i=b.plugins.loadPlugins(u.id,q.plugins);if(q.fallbackDiv){h=q.fallbackDiv;deleteq.fallbackDiv}q.id=u.id;l=d.getElementById(u.id);j=d.createElement("div");j.id=l.id;j.style.width=k.toString().indexOf("%")>0?k:(k+"px");j.style.height=m.toString().indexOf("%")>0?m:(m+"px");l.parentNode.replaceChild(j,l);functionn(x,w){for(varvinw){if(typeofx[v]=="function"){(x[v]).call(x,w[v])}}}functionf(){if(a.typeOf(q.playlist)=="array"&&q.playlist.length<2){if(q.playlist.length==0||!q.playlist[0].sources||q.playlist[0].sources.length==0){s();return}}if(i.getStatus()==a.loaderstatus.COMPLETE){for(varx=0;x<q.modes.length;x++){if(q.modes[x].type&&e[q.modes[x].type]){varv=a.extend({},q),w=newe[q.modes[x].type](j,q.modes[x],v,i,u);if(w.supportsConfig()){w.addEventListener(c.ERROR,g);w.embed();n(u,v.events);returnu}}}if(q.fallback){a.log("No suitable players found and fallback enabled");newe.download(j,q,s)}else{a.log("No suitable players found and fallback disabled");r()}}}functionr(){j.parentNode.replaceChild(h,j)}functiong(v){t(j,o+v.message)}functionp(v){t(j,"Could not load plugins: "+v.message)}functions(){t(j,o+"No playable sources found")}functiont(v,x){if(!q.fallback){return}varw=v.style;w.backgroundColor="#000";w.color="#FFF";w.width=a.styleDimension(q.width);w.height=a.styleDimension(q.height);w.display="table";w.opacity=1;varz=document.createElement("p"),y=z.style;y.verticalAlign="middle";y.textAlign="center";y.display="table-cell";y.font="15px/20px Arial, Helvetica, sans-serif";z.innerHTML=x.replace(":",":<br>");v.innerHTML="";v.appendChild(z)}b.embed.errorScreen=t;i.addEventListener(c.COMPLETE,f);i.addEventListener(c.ERROR,p);i.load();returnu}})(jwplayer);(function(d){vara=d.utils,h=d.embed,b=d.playlist.item,f=undefined;varc=h.config=function(j){varl={fallback:true,height:270,primary:"html5",width:480,base:j.base?j.base:a.getScriptPath("jwplayer.js")},k=a.extend(l,j),i={html5:{type:"html5",src:k.base+"jwplayer.html5.js"},flash:{type:"flash",src:k.base+"jwplayer.flash.swf"}};k.modes=(k.primary=="flash")?[i.flash,i.html5]:[i.html5,i.flash];if(k.listbar){k.playlistsize=k.listbar.size;k.playlistposition=k.listbar.position}e(k);returnk};c.addConfig=function(i,j){e(j);returna.extend(i,j)};functione(l){if(!l.playlist){varn={};for(varkinb.defaults){g(l,n,k)}if(!n.sources){if(l.levels){n.sources=l.levels;deletel.levels}else{varj={};g(l,j,"file");g(l,j,"type");n.sources=j.file?[j]:[]}}l.playlist=[n]}else{for(varm=0;m<l.playlist.length;m++){l.playlist[m]=newb(l.playlist[m])}}}functiong(k,i,j){if(a.exists(k[j])){i[j]=k[j];deletek[j]}}})(jwplayer);(function(e){varg=e.embed,j=e.utils,i=document,h="pointer",c="none",a="block",f="100%",d="relative",b="absolute";g.download=function(n,y,l){varq=j.extend({},y),u,o=q.width?q.width:480,r=q.height?q.height:320,z,s,k=y.logo?y.logo:{prefix:"http://p.jwpcdn.com/",file:"logo.png",margin:10};functionx(){varE,F,D,G,C=q.playlist,J,B,G,H=["mp4","aac","mp3"];if(C&&C.length){J=C[0];B=J.sources;for(G=0;G<B.length;G++){varA=B[G],I=A.type?A.type:j.extensionmap.extType(j.extension(A.file));if(A.file){for(GinH){if(I==H[G]){E=A.file;F=J.image}else{if(j.isYouTube(A.file)){D=A.file}}}if(E||D){continue}}}}else{return}if(E){z=E;s=F;if(k.prefix){if(j.isHTTPS()){k.prefix=k.prefix.replace("http://","https://ssl.")}k.prefix+=e.version.split(/\W/).splice(0,2).join("/")}t();p()}else{if(D){m(D)}else{l()}}}functiont(){if(n){u=v("a","display",n);v("div","icon",u);v("div","logo",u);if(z){u.setAttribute("href",j.getAbsolutePath(z))}}}functionw(A,C){varD=i.querySelectorAll(A);for(varB=0;B<D.length;B++){for(varEinC){D[B].style[E]=C[E]}}}functionp(){varA="#"+n.id+" .jwdownload";n.style.width="";n.style.height="";w(A+"display",{width:j.styleDimension(Math.max(320,o)),height:j.styleDimension(Math.max(180,r)),background:"black center no-repeat "+(s?"url("+s+")":""),backgroundSize:"contain",position:d,border:c,display:a});w(A+"display div",{position:b,width:f,height:f});w(A+"logo",{top:k.margin+"px",right:k.margin+"px",background:"top right no-repeat url("+k.prefix+k.file+")"});w(A+"icon",{background:"center no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgNJREFUeNrs28lqwkAYB/CZqNVDDj2r6FN41QeIy8Fe+gj6BL275Q08u9FbT8ZdwVfotSBYEPUkxFOoks4EKiJdaDuTjMn3wWBO0V/+sySR8SNSqVRKIR8qaXHkzlqS9jCfzzWcTCYp9hF5o+59sVjsiRzcegSckFzcjT+ruN80TeSlAjCAAXzdJSGPFXRpAAMYwACGZQkSdhG4WCzehMNhqV6vG6vVSrirKVEw66YoSqDb7cqlUilE8JjHd/y1MQefVzqdDmiaJpfLZWHgXMHn8F6vJ1cqlVAkEsGuAn83J4gAd2RZymQygX6/L1erVQt+9ZPWb+CDwcCC2zXGJaewl/DhcHhK3DVj+KfKZrMWvFarcYNLomAv4aPRSFZVlTlcSPA5fDweW/BoNIqFnKV53JvncjkLns/n/cLdS+92O7RYLLgsKfv9/t8XlDn4eDyiw+HA9Jyz2eyt0+kY2+3WFC5hluej0Ha7zQQq9PPwdDq1Et1sNsx/nFBgCqWJ8oAK1aUptNVqcYWewE4nahfU0YQnk4ntUEfGMIU2m01HoLaCKbTRaDgKtaVLk9tBYaBcE/6Artdr4RZ5TB6/dC+9iIe/WgAMYADDpAUJAxjAAAYwgGFZgoS/AtNNTF7Z2bL0BYPBV3Jw5xFwwWcYxgtBP5OkE8i9G7aWGOOCruvauwADALMLMEbKf4SdAAAAAElFTkSuQmCC)"})}functionv(A,D,C){varB=i.createElement(A);if(D){B.className="jwdownload"+D}if(C){C.appendChild(B)}returnB}functionm(A){varB=v("embed","",n);B.src="http://www.youtube.com/v/"+(/v[=\/](\w*)|\/(\w+)$|^(\w+)$/i).exec(A).slice(1).join("");B.type="application/x-shockwave-flash";B.width=o;B.height=r}x()}})(jwplayer);(function(c){varb=c.utils,d=c.events,a={};vare=c.embed.flash=function(l,m,p,k,n){varh=newc.events.eventdispatcher(),i=b.flashVersion();b.extend(this,h);functionq(s,r,t){varu=document.createElement("param");u.setAttribute("name",r);u.setAttribute("value",t);s.appendChild(u)}functiono(s,t,r){returnfunction(u){try{if(r){document.getElementById(n.id+"_wrapper").appendChild(t)}varw=document.getElementById(n.id).getPluginConfig("display");if(typeofs.resize=="function"){s.resize(w.width,w.height)}t.style.left=w.x;t.style.top=w.h}catch(v){}}}functionj(t){if(!t){return{}}varv={};for(varsint){varr=t[s];for(varuinr){v[s+"."+u]=r[u]}}returnv}functiong(u){if(!u){return{}}varx={},w=[];for(varrinu){vart=b.getPluginName(r);vars=u[r];w.push(r);for(varvins){x[t+"."+v]=s[v]}}x.plugins=w.join(",");returnx}this.embed=function(){p.id=n.id;if(i<10){h.sendEvent(d.ERROR,{message:"Flash version must be 10.0 or greater"});returnfalse}varC;varv=b.extend({},p);if(l.id+"_wrapper"==l.parentNode.id){C=document.getElementById(l.id+"_wrapper")}else{C=document.createElement("div");C.id=l.id+"_wrapper";C.style.position="relative";C.style.width=b.styleDimension(v.width);C.style.height=b.styleDimension(v.height);l.parentNode.replaceChild(C,l);C.appendChild(l)}vart=k.setupPlugins(n,v,o);if(t.length>0){b.extend(v,g(t.plugins))}else{deletev.plugins}if(typeofv["dock.position"]!="undefined"){if(v["dock.position"].toString().toLowerCase()=="false"){v.dock=v["dock.position"];deletev["dock.position"]}}varD="#000000",y,u=v.wmode?v.wmode:(v.height&&v.height<=40?"transparent":"opaque"),w=["height","width","modes","events","primary","base","fallback","volume"];for(varz=0;z<w.length;z++){deletev[w[z]]}varB=b.getCookies();for(varsinB){if(typeof(v[s])=="undefined"){v[s]=B[s]}}varr=window.location.pathname.split("/");r.splice(r.length-1,1);r=r.join("/");v.base=r+"/";a[l.id]=v;if(b.isIE()){varA='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width="100%" height="100%" id="'+l.id+'" name="'+l.id+'" tabindex=0"">';A+='<param name="movie" value="'+m.src+'">';A+='<param name="allowfullscreen" value="true">';A+='<param name="allowscriptaccess" value="always">';A+='<param name="seamlesstabbing" value="true">';A+='<param name="wmode" value="'+u+'">';A+='<param name="bgcolor" value="'+D+'">';A+="</object>";l.outerHTML=A;y=document.getElementById(l.id)}else{varx=document.createElement("object");x.setAttribute("type","application/x-shockwave-flash");x.setAttribute("data",m.src);x.setAttribute("width","100%");x.setAttribute("height","100%");x.setAttribute("bgcolor",D);x.setAttribute("id",l.id);x.setAttribute("name",l.id);x.setAttribute("tabindex",0);q(x,"allowfullscreen","true");q(x,"allowscriptaccess","always");q(x,"seamlesstabbing","true");q(x,"wmode",u);l.parentNode.replaceChild(x,l);y=x}n.container=y;n.setPlayer(y,"flash")};this.supportsConfig=function(){if(i){if(p){if(b.typeOf(p.playlist)=="string"){returntrue}try{vart=p.playlist[0],r=t.sources;if(typeofr=="undefined"){returntrue}else{for(vars=0;s<r.length;s++){if(r[s].file&&f(r[s].file,r[s].type)){returntrue}}}}catch(u){returnfalse}}else{returntrue}}returnfalse};functionf(r,s){if(b.isYouTube(r)){returntrue}if(b.isRtmp(r,s)){returntrue}if(s=="hls"){returntrue}vart=b.extensionmap[s?s:b.extension(r)];if(!t){returnfalse}return!!(t.flash)}};e.getVars=function(f){returna[f]}})(jwplayer);(function(c){vara=c.utils,b=a.extensionmap,d=c.events;c.embed.html5=function(g,h,o,f,k){varj=this,e=newd.eventdispatcher();a.extend(j,e);functionl(q,r,p){returnfunction(s){try{vart=document.querySelector("#"+g.id+" .jwmain");if(p){t.appendChild(r)}if(typeofq.resize=="function"){q.resize(t.clientWidth,t.clientHeight);setTimeout(function(){q.resize(t.clientWidth,t.clientHeight)},400)}r.left=t.style.left;r.top=t.style.top}catch(u){}}}j.embed=function(){if(c.html5){f.setupPlugins(k,o,l);g.innerHTML="";varp=c.utils.extend({},o);deletep.volume;varq=newc.html5.player(p);k.container=document.getElementById(k.id);k.setPlayer(q,"html5")}else{varr=newa.scriptloader(h.src);r.addEventListener(d.ERROR,i);r.addEventListener(d.COMPLETE,j.embed);r.load()}};functioni(p){j.sendEvent(p.type,{message:"HTML5 player not found"})}j.supportsConfig=function(){if(!!c.vid.canPlayType){try{if(a.typeOf(o.playlist)=="string"){returntrue}else{varp=o.playlist[0].sources;for(varr=0;r<p.length;r++){varq=p[r].file,s=p[r].type;if(n(q,s)){returntrue}}}}catch(t){returnfalse}}returnfalse};functionn(p,q){if(navigator.userAgent.match(/BlackBerry/i)!==null){returnfalse}if(a.isAndroid()&&(a.extension(p)=="m3u"||a.extension(p)=="m3u8")){returnfalse}if(a.isRtmp(p,q)){returnfalse}varr=b[q?q:a.extension(p)];if(!r){returnfalse}if(r.flash&&!r.html5){returnfalse}returnm(r.html5)}functionm(p){varq=c.vid;if(!p){returntrue}try{if(q.canPlayType(p)){returntrue}else{returnfalse}}catch(r){returnfalse}}}})(jwplayer);(function(c){varb=c.embed,a=c.utils,d=a.extend(function(k){varj=(a.isHTTPS()?"https://ssl.":"http://")+"p.jwpcdn.com/"+c.version.replace(/(\d+)\.(\d+).*/,"$1/$2/"),g=k.config,e=g.plugins,f=g.analytics,i=j+"jwpsrv.js",h=newc.utils.key(c.key);if(h.edition()=="ads"&&g.advertising){g.plugins[j+g.advertising.client+(g.primary=="flash"?".swf":".js")]=g.advertising}deleteg.advertising;g.key=c.key;deleteg.analytics;e=e?e:{};e[i]=f?f:{};g.plugins=e;returnnewb(k)},b);c.embed=d})(jwplayer);(function(d){varc=[],a=d.utils,e=d.events,b=e.state,g=document;varf=d.api=function(t){varx=this,h={},l={},A={},o=[],i=undefined,D=false,p=[],y=undefined,s={},n={};x.container=t;x.id=t.id;x.getBuffer=function(){returnw("jwGetBuffer")};x.getContainer=function(){returnx.container};x.addButton=function(H,F,G,K){try{n[K]=G;varJ="jwplayer('"+x.id+"').callback('"+K+"')";w("jwDockAddButton",H,F,J,K)}catch(I){a.log("Could not add dock button"+I.message)}};x.removeButton=function(F){w("jwDockRemoveButton",F)},x.callback=function(F){if(n[F]){n[F]()}};x.getDuration=function(){returnw("jwGetDuration")};x.getFullscreen=function(){returnw("jwGetFullscreen")};x.getStretching=function(){returnw("jwGetStretching")};x.getHeight=function(){returnw("jwGetHeight")};x.getLockState=function(){returnw("jwGetLockState")};x.getMeta=function(){returnx.getItemMeta()};x.getMute=function(){returnw("jwGetMute")};x.getPlaylist=function(){varG=w("jwGetPlaylist");if(x.renderingMode=="flash"){a.deepReplaceKeyName(G,["__dot__","__spc__","__dsh__"],["."," ","-"])}for(varF=0;F<G.length;F++){if(!a.exists(G[F].index)){G[F].index=F}}returnG};x.getPlaylistItem=function(F){if(!a.exists(F)){F=x.getCurrentItem()}returnx.getPlaylist()[F]};x.getPosition=function(){returnw("jwGetPosition")};x.getRenderingMode=function(){returnx.renderingMode};x.getState=function(){returnw("jwGetState")};x.getVolume=function(){returnw("jwGetVolume")};x.getWidth=function(){returnw("jwGetWidth")};x.setFullscreen=function(F){if(!a.exists(F)){w("jwSetFullscreen",!w("jwGetFullscreen"))}else{w("jwSetFullscreen",F)}returnx};x.setStretching=function(F){w("jwSetStretching",F);returnx};x.setMute=function(F){if(!a.exists(F)){w("jwSetMute",!w("jwGetMute"))}else{w("jwSetMute",F)}returnx};x.lock=function(){returnx};x.unlock=function(){returnx};x.load=function(F){w("jwLoad",F);returnx};x.playlistItem=function(F){w("jwPlaylistItem",parseInt(F));returnx};x.playlistPrev=function(){w("jwPlaylistPrev");returnx};x.playlistNext=function(){w("jwPlaylistNext");returnx};x.resize=function(G,F){if(x.renderingMode!="flash"){w("jwResize",G,F)}else{varH=g.getElementById(x.id+"_wrapper");if(H){H.style.width=a.styleDimension(G);H.style.height=a.styleDimension(F)}}returnx};x.play=function(F){if(typeofF=="undefined"){F=x.getState();if(F==b.PLAYING||F==b.BUFFERING){w("jwPause")}else{w("jwPlay")}}else{w("jwPlay",F)}returnx};x.pause=function(F){if(typeofF=="undefined"){F=x.getState();if(F==b.PLAYING||F==b.BUFFERING){w("jwPause")}else{w("jwPlay")}}else{w("jwPause",F)}returnx};x.stop=function(){w("jwStop");returnx};x.seek=function(F){w("jwSeek",F);returnx};x.setVolume=function(F){w("jwSetVolume",F);returnx};x.loadInstream=function(G,F){y=newf.instream(this,i,G,F);returny};x.getQualityLevels=function(){returnw("jwGetQualityLevels")};x.getCurrentQuality=function(){returnw("jwGetCurrentQuality")};x.setCurrentQuality=function(F){w("jwSetCurrentQuality",F)};x.getCaptionsList=function(){returnw("jwGetCaptionsList")};x.getCurrentCaptions=function(){returnw("jwGetCurrentCaptions")};x.setCurrentCaptions=function(F){w("jwSetCurrentCaptions",F)};x.getControls=function(){returnw("jwGetControls")};x.getSafeRegion=function(){returnw("jwGetSafeRegion")};x.setControls=function(F){w("jwSetControls",F)};x.destroyPlayer=function(){w("jwPlayerDestroy")};varr={onBufferChange:e.JWPLAYER_MEDIA_BUFFER,onBufferFull:e.JWPLAYER_MEDIA_BUFFER_FULL,onError:e.JWPLAYER_ERROR,onFullscreen:e.JWPLAYER_FULLSCREEN,onMeta:e.JWPLAYER_MEDIA_META,onMute:e.JWPLAYER_MEDIA_MUTE,onPlaylist:e.JWPLAYER_PLAYLIST_LOADED,onPlaylistItem:e.JWPLAYER_PLAYLIST_ITEM,onPlaylistComplete:e.JWPLAYER_PLAYLIST_COMPLETE,onReady:e.API_READY,onResize:e.JWPLAYER_RESIZE,onComplete:e.JWPLAYER_MEDIA_COMPLETE,onSeek:e.JWPLAYER_MEDIA_SEEK,onTime:e.JWPLAYER_MEDIA_TIME,onVolume:e.JWPLAYER_MEDIA_VOLUME,onBeforePlay:e.JWPLAYER_MEDIA_BEFOREPLAY,onBeforeComplete:e.JWPLAYER_MEDIA_BEFORECOMPLETE,onDisplayClick:e.JWPLAYER_DISPLAY_CLICK,onControls:e.JWPLAYER_CONTROLS,onQualityLevels:e.JWPLAYER_MEDIA_LEVELS,onQualityChange:e.JWPLAYER_MEDIA_LEVEL_CHANGED,onCaptionsList:e.JWPLAYER_CAPTIONS_LIST,onCaptionsChange:e.JWPLAYER_CAPTIONS_CHANGED};a.foreach(r,function(F){x[F]=C(r[F],z)});varv={onBuffer:b.BUFFERING,onPause:b.PAUSED,onPlay:b.PLAYING,onIdle:b.IDLE};a.foreach(v,function(F){x[F]=C(v[F],q)});functionC(F,G){returnfunction(H){returnG(F,H)}}x.remove=function(){if(!D){throw"Cannot call remove() before player is ready";return}m(this)};functionm(F){p=[];f.destroyPlayer(F.id)}x.setup=function(F){if(d.embed){varG=g.getElementById(x.id);if(G){F.fallbackDiv=G}m(x);varH=d(x.id);H.config=F;returnnewd.embed(H)}returnx};x.registerPlugin=function(I,H,G,F){d.plugins.registerPlugin(I,H,G,F)};x.setPlayer=function(F,G){i=F;x.renderingMode=G};x.detachMedia=function(){if(x.renderingMode=="html5"){returnw("jwDetachMedia")}};x.attachMedia=function(){if(x.renderingMode=="html5"){returnw("jwAttachMedia")}};functionq(F,G){if(!l[F]){l[F]=[];z(e.JWPLAYER_PLAYER_STATE,E(F))}l[F].push(G);returnx}functionE(F){returnfunction(H){varG=H.newstate,J=H.oldstate;if(G==F){varI=l[G];if(I){for(varK=0;K<I.length;K++){if(typeofI[K]=="function"){I[K].call(this,{oldstate:J,newstate:G})}}}}}}functionB(F,G,H){if(!A[F]){A[F]={}}if(!A[F][G]){A[F][G]=[];z(G,k(F,G))}A[F][G].push(H);returnx}functionk(F,G){returnfunction(I){if(F==I.component){varH=A[F][G];if(H){for(varJ=0;J<H.length;J++){if(typeofH[J]=="function"){H[J].call(this,I)}}}}}}functionj(F,G){try{F.jwAddEventListener(G,'function(dat) { jwplayer("'+x.id+'").dispatchEvent("'+G+'", dat); }')}catch(H){a.log("Could not add internal listener")}}functionz(F,G){if(!h[F]){h[F]=[];if(i&&D){j(i,F)}}h[F].push(G);returnx}x.dispatchEvent=function(H){if(h[H]){varG=a.translateEventResponse(H,arguments[1]);for(varF=0;F<h[H].length;F++){if(typeofh[H][F]=="function"){h[H][F].call(this,G)}}}};x.dispatchInstreamEvent=function(F){if(y){y.dispatchEvent(F,arguments)}};functionw(){if(D){varH=arguments[0],F=[];for(varG=1;G<arguments.length;G++){F.push(arguments[G])}if(typeofi!="undefined"&&typeofi[H]=="function"){switch(F.length){case4:return(i[H])(F[0],F[1],F[2],F[3]);case3:return(i[H])(F[0],F[1],F[2]);case2:return(i[H])(F[0],F[1]);case1:return(i[H])(F[0]);default:return(i[H])()}}returnnull}else{p.push(arguments)}}x.playerReady=function(F){D=true;if(!i){x.setPlayer(g.getElementById(F.id))}x.container=g.getElementById(x.id);a.foreach(h,function(G){j(i,G)});z(e.JWPLAYER_PLAYLIST_ITEM,function(G){s={}});z(e.JWPLAYER_MEDIA_META,function(G){a.extend(s,G.metadata)});x.dispatchEvent(e.API_READY);while(p.length>0){w.apply(this,p.shift())}};x.getItemMeta=function(){returns};x.getCurrentItem=function(){returnw("jwGetPlaylistIndex")};functionu(H,J,I){varF=[];if(!J){J=0}if(!I){I=H.length-1}for(varG=J;G<=I;G++){F.push(H[G])}returnF}returnx};f.selectPlayer=function(i){varh;if(!a.exists(i)){i=0}if(i.nodeType){h=i}else{if(typeofi=="string"){h=g.getElementById(i)}}if(h){varj=f.playerById(h.id);if(j){returnj}else{returnf.addPlayer(newf(h))}}else{if(typeofi=="number"){returnc[i]}}returnnull};f.playerById=function(i){for(varh=0;h<c.length;h++){if(c[h].id==i){returnc[h]}}returnnull};f.addPlayer=function(h){for(vari=0;i<c.length;i++){if(c[i]==h){returnh}}c.push(h);returnh};f.destroyPlayer=function(j){vari=-1,k;for(varm=0;m<c.length;m++){if(c[m].id==j){i=m;k=c[m];continue}}if(i>=0){varn=k.id,h=g.getElementById(n+(k.renderingMode=="flash"?"_wrapper":""));if(a.clearCss){a.clearCss("#"+n)}if(h){if(k.renderingMode=="html5"){k.destroyPlayer()}varl=g.createElement("div");l.id=n;h.parentNode.replaceChild(l,h)}c.splice(i,1)}returnnull};d.playerReady=function(i){varh=d.api.playerById(i.id);if(h){h.playerReady(i)}else{d.api.selectPlayer(i.id).playerReady(i)}}})(jwplayer);(function(b){varc=b.events,a=c.state;b.api.instream=function(e,k,o,r){varj=e,d=k,i=o,l=r,g={},q={};functionh(){j.callInternal("jwLoadInstream",o,r)}functionn(s,t){d.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+j.id+'").dispatchInstreamEvent("'+t+'", dat); }')}functionf(s,t){if(!g[s]){g[s]=[];n(d,s)}g[s].push(t);returnthis}functionp(s,t){if(!q[s]){q[s]=[];f(c.JWPLAYER_PLAYER_STATE,m(s))}q[s].push(t);returnthis}functionm(s){returnfunction(u){vart=u.newstate,w=u.oldstate;if(t==s){varv=q[t];if(v){for(varx=0;x<v.length;x++){if(typeofv[x]=="function"){v[x].call(this,{oldstate:w,newstate:t,type:u.type})}}}}}}this.dispatchEvent=function(v,u){if(g[v]){vart=_utils.translateEventResponse(v,u[1]);for(vars=0;s<g[v].length;s++){if(typeofg[v][s]=="function"){g[v][s].call(this,t)}}}};this.onError=function(s){returnf(c.JWPLAYER_ERROR,s)};this.onFullscreen=function(s){returnf(c.JWPLAYER_FULLSCREEN,s)};this.onMeta=function(s){returnf(c.JWPLAYER_MEDIA_META,s)};this.onMute=function(s){returnf(c.JWPLAYER_MEDIA_MUTE,s)};this.onComplete=function(s){returnf(c.JWPLAYER_MEDIA_COMPLETE,s)};this.onSeek=function(s){returnf(c.JWPLAYER_MEDIA_SEEK,s)};this.onTime=function(s){returnf(c.JWPLAYER_MEDIA_TIME,s)};this.onVolume=function(s){returnf(c.JWPLAYER_MEDIA_VOLUME,s)};this.onBuffer=function(s){returnp(a.BUFFERING,s)};this.onPause=function(s){returnp(a.PAUSED,s)};this.onPlay=function(s){returnp(a.PLAYING,s)};this.onIdle=function(s){returnp(a.IDLE,s)};this.onInstreamClick=function(s){returnf(c.JWPLAYER_INSTREAM_CLICK,s)};this.onInstreamDestroyed=function(s){returnf(c.JWPLAYER_INSTREAM_DESTROYED,s)};this.play=function(s){d.jwInstreamPlay(s)};this.pause=function(s){d.jwInstreamPause(s)};this.seek=function(s){d.jwInstreamSeek(s)};this.destroy=function(){d.jwInstreamDestroy()};this.getState=function(){returnd.jwInstreamGetState()};this.getDuration=function(){returnd.jwInstreamGetDuration()};this.getPosition=function(){returnd.jwInstreamGetPosition()};h()}})(jwplayer);(function(a){varb=a.api,c=b.selectPlayer;b.selectPlayer=function(d){vare=c(d);if(e){returne}else{return{registerPlugin:function(i,h,g,f){a.plugins.registerPlugin(i,h,g)}}}}})(jwplayer)};
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.isAndroid=function(a){returna?c(RegExp("android.*"+a,"i")):c(/android/i)};b.isMobile=function(){returnb.isIOS()||b.isAndroid()};b.saveCookie=function(a,b){l.cookie="jwplayer."+a+"\x3d"+b+"; path\x3d/"};b.getCookies=function(){for(vara={},b=l.cookie.split("; "),c=0;c<b.length;c++){vard=b[c].split("\x3d");
(d={});a.extend(d,{id:f,version:jwplayer.version,type:c});e&&a.log(c,d);if("undefined"!=a.typeOf(j[c]))for(varg=0;g<j[c].length;g++){try{j[c][g].listener(d)}catch(q){a.log("There was an error while handling a listener: "+q.toString(),j[c][g].listener)}j[c][g]&&(1===j[c][g].count?deletej[c][g]:0<j[c][g].count&&(j[c][g].count-=1))}for(g=0;g<b.length;g++){try{b[g].listener(d)}catch(m){a.log("There was an error while handling a listener: "+m.toString(),b[g].listener)}b[g]&&(1===b[g].count?deleteb[g]:
functiond(){k||c();if(!q&&!m){varb=0,d=j.getPlugins();a.foreach(k,function(g){g=a.getPluginName(g);vare=d[g];g=e.getJS();varh=e.getTarget(),e=e.getStatus();if(e==a.loaderstatus.LOADING||e==a.loaderstatus.NEW)b++;elseif(g&&(!h||parseFloat(h)>parseFloat(f.version)))m=!0,n="Incompatible player version",c()});0==b&&c()}}varg=a.loaderstatus.NEW,q=!1,m=!1,n,k=b,h=newl.eventdispatcher;a.extend(this,h);this.setupPlugins=function(b,d,c){varg={length:0,plugins:{}},h=0,f={},r=j.getPlugins();e(d.plugins,
function(e,j){vark=a.getPluginName(e),l=r[k],m=l.getFlashPath(),n=l.getJS(),q=l.getURL();m&&(g.plugins[m]=a.extend({},j),g.plugins[m].pluginmode=l.getPluginmode(),g.length++);try{if(n&&d.plugins&&d.plugins[q]){varv=document.createElement("div");v.id=b.id+"_"+k;v.style.position="absolute";v.style.top=0;v.style.zIndex=h+10;f[k]=l.getNewInstance(b,a.extend({},d.plugins[q]),v);h++;b.onReady(c(f[k],v,!0));b.onResize(c(f[k],v))}}catch(B){a.log("ERROR: Failed to load "+k+".")}});b.plugins=f;returng};
this.load=function(){if(!(a.exists(b)&&"object"!=a.typeOf(b))){g=a.loaderstatus.LOADING;e(b,function(b){a.exists(b)&&(b=j.addPlugin(b),b.addEventListener(l.COMPLETE,d),b.addEventListener(l.ERROR,r))});varc=j.getPlugins();e(c,function(a,b){b.load()})}d()};varr=this.pluginFailed=function(){m||(m=!0,n="File not found",c())};this.getStatus=function(){returng}}}(jwplayer),function(f){f.playlist=function(a){varl=[];if("array"==f.utils.typeOf(a))for(vare=0;e<a.length;e++)l.push(newf.playlist.item(a[e]));
!m.playlist[0].sources||0==m.playlist[0].sources.length))g();elseif(s.getStatus()==a.loaderstatus.COMPLETE){for(vare=0;e<m.modes.length;e++)if(m.modes[e].type&&j[m.modes[e].type]){varf=a.extend({},m),r=newj[m.modes[e].type](n,m.modes[e],f,s,b);if(r.supportsConfig())returnr.addEventListener(l.ERROR,d),r.embed(),c(b,f.events),b}m.fallback?(a.log("No suitable players found and fallback enabled"),newj.download(n,m,g)):(a.log("No suitable players found and fallback disabled"),n.parentNode.replaceChild(h,
n))}});s.addEventListener(l.ERROR,function(a){q(n,"Could not load plugins: "+a.message)});s.load();returnb}}(jwplayer),function(f){functiona(a){if(a.playlist)for(varc=0;c<a.playlist.length;c++)a.playlist[c]=newj(a.playlist[c]);else{vard={};e.foreach(j.defaults,function(c){l(a,d,c)});d.sources||(a.levels?(d.sources=a.levels,deletea.levels):(c={},l(a,c,"file"),l(a,c,"type"),d.sources=c.file?[c]:[]));a.playlist=[newj(d)]}}functionl(a,c,d){e.exists(a[d])&&(c[d]=a[d],deletea[d])}vare=f.utils,
document.getElementById(g.id).getPluginConfig("display");"function"==typeofa.resize&&a.resize(c.width,c.height);b.style.left=c.x;b.style.top=c.h}catch(e){}}}functionn(b){if(!b)return{};vard={},c=[];a.foreach(b,function(b,g){vare=a.getPluginName(b);c.push(b);a.foreach(g,function(a,b){d[e+"."+a]=b})});d.plugins=c.join(",");returnd}vark=newf.events.eventdispatcher,h=a.flashVersion();a.extend(this,k);this.embed=function(){c.id=g.id;if(10>h)returnk.sendEvent(l.ERROR,{message:"Flash version must be 10.0 or greater"}),
c.appendChild(b);"function"==typeofa.resize&&(a.resize(c.clientWidth,c.clientHeight),setTimeout(function(){a.resize(c.clientWidth,c.clientHeight)},400));b.left=c.style.left;b.top=c.style.top}catch(g){}}}functionm(a){n.sendEvent(a.type,{message:"HTML5 player not found"})}varn=this,k=newe.eventdispatcher;a.extend(n,k);n.embed=function(){if(f.html5){d.setupPlugins(g,c,q);j.innerHTML="";varh=f.utils.extend({},c);deleteh.volume;h=newf.html5.player(h);g.container=document.getElementById(g.id);g.setPlayer(h,
if(d==a){varc=p[d];if(c)for(varg=0;g<c.length;g++)"function"==typeofc[g]&&c[g].call(this,{oldstate:b,newstate:d})}}));p[a].push(b);returnh}functionm(a,b){try{a.jwAddEventListener(b,'function(dat) { jwplayer("'+h.id+'").dispatchEvent("'+b+'", dat); }')}catch(d){l.log("Could not add internal listener")}}functionn(a,b){r[a]||(r[a]=[],t&&s&&m(t,a));r[a].push(b);returnh}functionk(){if(s){for(vara=arguments[0],b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);if("undefined"!=typeoft&&"function"==
typeoft[a])switch(b.length){case4:returnt[a](b[0],b[1],b[2],b[3]);case3:returnt[a](b[0],b[1],b[2]);case2:returnt[a](b[0],b[1]);case1:returnt[a](b[0]);default:returnt[a]()}returnnull}u.push(arguments)}varh=this,r={},p={},t=void0,s=!1,u=[],w=void0,x={},y={};h.container=a;h.id=a.id;h.getBuffer=function(){returnk("jwGetBuffer")};h.getContainer=function(){returnh.container};h.addButton=function(a,b,d,c){try{y[c]=d,k("jwDockAddButton",a,b,"jwplayer('"+h.id+"').callback('"+c+"')",c)}catch(g){l.log("Could not add dock button"+
function(){if(!s)throw"Cannot call remove() before player is ready";u=[];c.destroyPlayer(this.id)};h.setup=function(a){if(f.embed){vard=b.getElementById(h.id);d&&(a.fallbackDiv=d);d=h;u=[];c.destroyPlayer(d.id);d=f(h.id);d.config=a;returnnewf.embed(d)}returnh};h.registerPlugin=function(a,b,d,c){f.plugins.registerPlugin(a,b,d,c)};h.setPlayer=function(a,b){t=a;h.renderingMode=b};h.detachMedia=function(){if("html5"==h.renderingMode)returnk("jwDetachMedia")};h.attachMedia=function(a){if("html5"==
h.renderingMode)returnk("jwAttachMedia",a)};h.dispatchEvent=function(a,b){if(r[a])for(vard=l.translateEventResponse(a,b),c=0;c<r[a].length;c++)if("function"==typeofr[a][c])try{a==e.JWPLAYER_PLAYLIST_LOADED&&l.deepReplaceKeyName(d.playlist,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]),r[a][c].call(this,d)}catch(g){l.log("There was an error calling back an event handler")}};h.dispatchInstreamEvent=function(a){w&&w.dispatchEvent(a,arguments)};h.callInternal=k;h.playerReady=