if(typeof jwplayer=="undefined"){jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};jwplayer.version="6.8.";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(g){var c=document,r=window,o=navigator,s="undefined",h="string",f="object",d=true,j=false;var q=g.utils=function(){};q.exists=function(t){switch(typeof(t)){case h:return(t.length>0);case f:return(t!==null);case s:return j}return d};q.styleDimension=function(t){return t+(t.toString().indexOf("%")>0?"":"px")};q.getAbsolutePath=function(z,y){if(!q.exists(y)){y=c.location.href}if(!q.exists(z)){return}if(i(z)){return z}var A=y.substring(0,y.indexOf("://")+3);var x=y.substring(A.length,y.indexOf("/",A.length+1));var u;if(z.indexOf("/")===0){u=z.split("/")}else{var v=y.split("?")[0];v=v.substring(A.length+x.length+1,v.lastIndexOf("/"));u=v.split("/").concat(z.split("/"))}var t=[];for(var w=0;w0&&(t<0||(t>v)))}q.extend=function(){var t=q.extend["arguments"];if(t.length>1){for(var u=1;u=0){return w.substr(0,w.indexOf(v))}}return""};q.deepReplaceKeyName=function(w,u,t){switch(g.utils.typeOf(w)){case"array":for(var v=0;v0){return b.ABSOLUTE}var t=u.indexOf("/");var w=q.extension(u);if(v<0&&t<0&&(!w||!isNaN(w))){return b.CDN}return b.RELATIVE};q.getPluginName=function(t){return t.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};q.getPluginVersion=function(t){return t.replace(/[^-]*-?([^\.]*).*$/,"$1")};q.isYouTube=function(t){return/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(t)};q.youTubeID=function(u){try{return(/v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i).exec(u).slice(1).join("").replace("?","")}catch(t){return""}};q.isRtmp=function(t,u){return(t.indexOf("rtmp")===0||u=="rtmp")};q.foreach=function(u,t){var v,w;for(v in u){if(q.typeOf(u.hasOwnProperty)=="function"){if(u.hasOwnProperty(v)){w=u[v];t(v,w)}}else{w=u[v];t(v,w)}}};q.isHTTPS=function(){return(r.location.href.indexOf("https")===0)};q.repo=function(){var t="http://p.jwpcdn.com/"+g.version.split(/\W/).splice(0,2).join("/")+"/";try{if(q.isHTTPS()){t=t.replace("http://","https://ssl.")}}catch(u){}return t};q.ajax=function(x,v,t,w){var u;if(x.indexOf("#")>0){x=x.replace(/#.*$/,"")}if(n(x)&&q.exists(r.XDomainRequest)){u=new r.XDomainRequest();u.onload=p(u,x,v,t,w);u.ontimeout=u.onprogress=function(){};u.timeout=5000}else{if(q.exists(r.XMLHttpRequest)){u=new r.XMLHttpRequest();u.onreadystatechange=a(u,x,v,t,w)}else{if(t){t()}return u}}if(u.overrideMimeType){u.overrideMimeType("text/xml")}u.onerror=e(t,x,u);setTimeout(function(){try{u.open("GET",x,d);u.send()}catch(y){if(t){t(x)}}},0);return u};function n(t){return(t&&t.indexOf("://")>=0)&&(t.split("/")[2]!=r.location.href.split("/")[2])}function e(t,v,u){return function(){t("Error loading file")}}function a(u,x,v,t,w){return function(){if(u.readyState===4){switch(u.status){case 200:p(u,x,v,t,w)();break;case 404:t("File not found")}}}}function p(u,x,v,t,w){return function(){var y,B;if(w){v(u)}else{try{y=u.responseXML;if(y){B=y.firstChild;if(y.lastChild&&y.lastChild.nodeName==="parsererror"){if(t){t("Invalid XML")}return}}}catch(A){}if(y&&B){return v(u)}var z=q.parseXML(u.responseText);if(z&&z.firstChild){u=q.extend({},u,{responseXML:z})}else{if(t){t(u.responseText?"Invalid XML":x)}return}v(u)}}}q.parseXML=function(t){var u;try{if(r.DOMParser){u=(new r.DOMParser()).parseFromString(t,"text/xml");if(u.childNodes&&u.childNodes.length&&u.childNodes[0].firstChild.nodeName=="parsererror"){return}}else{u=new r.ActiveXObject("Microsoft.XMLDOM");u.async="false";u.loadXML(t)}}catch(v){return}return u};q.filterPlaylist=function(z,t){var w=[],v,x,u,y;for(v=0;v0){for(u=0;u0){for(u=0;u1){u=parseFloat(t[t.length-1]);u+=parseFloat(t[t.length-2])*60;if(t.length==3){u+=parseFloat(t[t.length-3])*3600}}else{u=parseFloat(v)}}}}return u};q.serialize=function(t){if(t==null){return null}else{if(t.toString().toLowerCase()=="true"){return d}else{if(t.toString().toLowerCase()=="false"){return j}else{if(isNaN(Number(t))||t.length>5||t.length===0){return t}else{return Number(t)}}}}}})(jwplayer);(function(o){var e="video/",i="audio/",g="image",j="mp4",c="webm",n="ogg",b="aac",k="mp3",l="vorbis",d=o.foreach,m={mp4:e+j,vorbis:i+n,ogg:e+n,webm:e+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,hls:m.hls},e="video",f={flv:e,f4v:e,mov:e,m4a:e,m4v:e,mp4:e,aac:e,f4a:e,mp3:"sound",smil:"rtmp",m3u8:"hls",hls:"hls"};var a=o.extensionmap={};d(h,function(p,q){a[p]={html5:q}});d(f,function(p,q){if(!a[p]){a[p]={}}a[p].flash=q});a.types=m;a.mimeType=function(q){var p;d(m,function(r,s){if(!p&&s==q){p=r}});return p};a.extType=function(p){return a.mimeType(h[p])}})(jwplayer.utils);(function(b){var a=b.loaderstatus={NEW:0,LOADING:1,ERROR:2,COMPLETE:3},c=document;b.scriptloader=function(e){var f=a.NEW,h=jwplayer.events,d=new h.eventdispatcher();b.extend(this,d);this.load=function(){var k=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;var j=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}};function g(j){f=a.ERROR;d.sendEvent(h.ERROR)}function i(j){f=a.COMPLETE;d.sendEvent(h.COMPLETE)}this.getStatus=function(){return f}};b.scriptloader.loaders={}})(jwplayer.utils);(function(a){a.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};a.pad=function(d,c,b){if(!b){b="0"}while(d.length-1){return b.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)}return parseInt(b,16)}})(jwplayer.utils);(function(b){var c="touchmove",d="touchstart",a="touchend",e="touchcancel";b.touch=function(f){var q=f,k=false,g={},i=null,l=false,j=b.touchEvents;document.addEventListener(c,h);document.addEventListener(a,n);document.addEventListener(e,h);f.addEventListener(d,h);f.addEventListener(a,h);function n(r){if(k){if(l){o(j.DRAG_END,r)}}l=false;k=false;i=null}function h(r){if(r.type==d){k=true;i=p(j.DRAG_START,r)}else{if(r.type==c){if(k){if(l){o(j.DRAG,r)}else{o(j.DRAG_START,r,i);l=true;o(j.DRAG,r)}}}else{if(k){if(l){o(j.DRAG_END,r)}else{r.cancelBubble=true;o(j.TAP,r)}}l=false;k=false;i=null}}}function o(s,t,u){if(g[s]){m(t);var r=u?u:p(s,t);if(r){g[s](r)}}}function p(s,u){var v=null;if(u.touches&&u.touches.length){v=u.touches[0]}else{if(u.changedTouches&&u.changedTouches.length){v=u.changedTouches[0]}}if(!v){return null}var t=q.getBoundingClientRect();var r={type:s,target:q,x:((v.pageX-window.pageXOffset)-t.left),y:v.pageY,deltaX:0,deltaY:0};if(s!=j.TAP&&i){r.deltaX=r.x-i.x;r.deltaY=r.y-i.y}return r}function m(r){if(r.preventManipulation){r.preventManipulation()}if(r.preventDefault){r.preventDefault()}}this.addEventListener=function(s,r){g[s]=r};this.removeEventListener=function(r){delete g[r]};return this}})(jwplayer.utils);(function(a){a.touchEvents={DRAG:"jwplayerDrag",DRAG_START:"jwplayerDragStart",DRAG_END:"jwplayerDragEnd",TAP:"jwplayerTap"}})(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_SETUP_ERROR:"jwplayerSetupError",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_CAPTIONS_LOADED:"jwplayerCaptionsLoaded",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_USER_ACTION:"jwplayerUserAction",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed",JWPLAYER_AD_TIME:"jwplayerAdTime",JWPLAYER_AD_ERROR:"jwplayerAdError",JWPLAYER_AD_CLICK:"jwplayerAdClicked",JWPLAYER_AD_COMPLETE:"jwplayerAdComplete",JWPLAYER_AD_IMPRESSION:"jwplayerAdImpression",JWPLAYER_AD_COMPANIONS:"jwplayerAdCompanions",JWPLAYER_AD_SKIPPED:"jwplayerAdSkipped"}})(jwplayer);(function(a){var b=a.events,c=a.utils;b.eventdispatcher=function(j,d){var f=j,h=d,g,e;this.resetEventListeners=function(){g={};e=[]};this.resetEventListeners();this.addEventListener=function(k,n,m){try{if(!c.exists(g[k])){g[k]=[]}if(c.typeOf(n)=="string"){n=(new Function("return "+n))()}g[k].push({listener:n,count:m||null})}catch(l){c.log("error",l)}return false};this.removeEventListener=function(l,n){if(!g[l]){return}try{for(var k=0;k0){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;var o=new a.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(typeof p=="string"){m=p}else{if(typeof p=="function"){k=p}else{if(!p&&!o){m=r}}}}l=a.loaderstatus.COMPLETE;g.sendEvent(c.COMPLETE)};this.getStatus=function(){return l};this.getPluginName=function(){return a.getPluginName(e)};this.getFlashPath=function(){if(m){switch(a.getPluginPathType(m)){case a.pluginPathType.ABSOLUTE:return m;case a.pluginPathType.RELATIVE:if(e.lastIndexOf(".swf")>0){return a.getAbsolutePath(m,window.location.href)}return a.getAbsolutePath(m,h())}}return null};this.getJS=function(){return k};this.getTarget=function(){return f};this.getPluginmode=function(){if(typeof m!=d&&typeof k!=d){return b.pluginmodes.HYBRID}else{if(typeof m!=d){return b.pluginmodes.FLASH}else{if(typeof k!=d){return b.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(p,o,q){return new k(p,o,q)};this.getURL=function(){return e}}})(jwplayer.plugins);(function(b){var a=b.utils,c=b.events,d=a.foreach;b.plugins.pluginloader=function(j,i){var p=a.loaderstatus.NEW,h=false,e=false,l=false,m,n=i,f=new c.eventdispatcher();a.extend(this,f);function g(){if(l){f.sendEvent(c.ERROR,{message:m})}else{if(!e){e=true;p=a.loaderstatus.COMPLETE;f.sendEvent(c.COMPLETE)}}}function o(){if(!n){g()}if(!e&&!l){var r=0,q=j.getPlugins();a.foreach(n,function(t,x){var u=a.getPluginName(t),y=q[u],w=y.getJS(),v=y.getTarget(),s=y.getStatus();if(s==a.loaderstatus.LOADING||s==a.loaderstatus.NEW){r++}else{if(w&&(!v||parseFloat(v)>parseFloat(b.version))){l=true;m="Incompatible player version";g()}}});if(r==0){g()}}}this.setupPlugins=function(t,r,v){var s={length:0,plugins:{}},u={length:0,plugins:{}},q=j.getPlugins();d(r.plugins,function(z,B){var A=a.getPluginName(z),C=q[A],D=C.getFlashPath(),E=C.getJS(),w=C.getURL();if(D){s.plugins[D]=a.extend({},B);s.plugins[D].pluginmode=C.getPluginmode();s.length++}try{if(E&&r.plugins&&r.plugins[w]){var x=document.createElement("div");x.id=t.id+"_"+A;x.style.position="absolute";x.style.top=0;x.style.zIndex=u.length+10;u.plugins[A]=C.getNewInstance(t,a.extend({},r.plugins[w]),x);u.length++;t.onReady(v(u.plugins[A],x,true));t.onResize(v(u.plugins[A],x))}}catch(y){a.log("ERROR: Failed to load "+A+".")}});t.plugins=u.plugins;return s};this.load=function(){if(a.exists(i)&&a.typeOf(i)!="object"){o();return}p=a.loaderstatus.LOADING;h=true;d(i,function(r,s){if(a.exists(r)){var t=j.addPlugin(r);t.addEventListener(c.COMPLETE,o);t.addEventListener(c.ERROR,k)}});var q=j.getPlugins();d(q,function(r,s){s.load()});h=false;o()};var k=this.pluginFailed=function(q){if(!l){l=true;m="File not found";g()}};this.getStatus=function(){return p}}})(jwplayer);(function(a){jwplayer.parsers={localName:function(b){if(!b){return""}else{if(b.localName){return b.localName}else{if(b.baseName){return b.baseName}else{return""}}}},textContent:function(b){if(!b){return""}else{if(b.textContent){return jwplayer.utils.trim(b.textContent)}else{if(b.text){return jwplayer.utils.trim(b.text)}else{return""}}}},getChildNode:function(c,b){return c.childNodes[b]},numChildren:function(b){if(b.childNodes){return b.childNodes.length}else{return 0}}}})(jwplayer);(function(b){var a=b.parsers;var d=a.jwparser=function(){};var c="jwplayer";d.parseEntry=function(l,p){var e=[],n=[],m=b.utils.xmlAttribute,f="default",q="label",j="file",o="type";for(var k=0;k0){e[k][f]=(e[k][f]=="true")?true:false;if(!e[k].label.length){delete e[k].label}p.sources.push(e[k])}}}if(n.length){p.tracks=[];for(k=0;k0){n[k][f]=(n[k][f]=="true")?true:false;n[k].kind=(!n[k].kind.length)?"captions":n[k].kind;if(!n[k].label.length){delete n[k].label}p.tracks.push(n[k])}}}return p}})(jwplayer);(function(e){var b=jwplayer.utils,h=b.xmlAttribute,c=e.localName,a=e.textContent,d=e.numChildren;var g=e.mediaparser=function(){};var f="media";g.parseGroup=function(m,q){var k,n,p="tracks",o=[];function l(i){var s={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"};if(s[i]){return s[i]}return i}for(n=0;n0){q=g.parseGroup(k,q)}if(h(k,"url")){if(!q.sources){q.sources=[]}q.sources.push({file:h(k,"url"),type:h(k,"type"),width:h(k,"width"),label:h(k,"label")})}break;case"title":q.title=a(k);break;case"description":q.description=a(k);break;case"guid":q.mediaid=a(k);break;case"thumbnail":if(!q.image){q.image=h(k,"url")}break;case"player":var j=k.url;break;case"group":g.parseGroup(k,q);break;case"subtitle":var r={};r.file=h(k,"url");r.kind="captions";if(h(k,"lang").length>0){r.label=l(h(k,"lang"))}o.push(r)}}}if(!q.hasOwnProperty(p)){q[p]=[]}for(n=0;n0){e.type=a.extensionmap.mimeType(e.type)}if(e.type=="m3u8"){e.type="hls"}if(e.type=="smil"){e.type="rtmp"}return e}})(jwplayer.playlist);(function(d){var b=undefined,a=jwplayer.utils,c={file:b,label:b,kind:"captions","default":false};d.track=function(e){var f=a.extend({},c);if(!e){e={}}a.foreach(c,function(h,g){if(a.exists(e[h])){f[h]=e[h];delete e[h]}});return f}})(jwplayer.playlist);(function(c){var b=c.utils,e=c.events,d=true,f=false,g=document;var h=c.embed=function(s){var m=new h.config(s.config),n,u,A,k=m.width,B=m.height,j="Error loading player: ",C=c.plugins.loadPlugins(s.id,m.plugins),q=f,y=f,t=null,v=this;if(m.fallbackDiv){A=m.fallbackDiv;delete m.fallbackDiv}m.id=s.id;u=g.getElementById(s.id);if(m.aspectratio){s.config.aspectratio=m.aspectratio}else{delete s.config.aspectratio}n=g.createElement("div");n.id=u.id;n.style.width=k.toString().indexOf("%")>0?k:(k+"px");n.style.height=B.toString().indexOf("%")>0?B:(B+"px");u.parentNode.replaceChild(n,u);function w(E,D){b.foreach(D,function(F,G){if(typeof E[F]=="function"){(E[F]).call(E,G)}})}v.embed=function(){if(y){return}C.addEventListener(e.COMPLETE,p);C.addEventListener(e.ERROR,o);C.load()};function p(){if(y){return}if(b.typeOf(m.playlist)=="array"&&m.playlist.length<2){if(m.playlist.length==0||!m.playlist[0].sources||m.playlist[0].sources.length==0){r();return}}if(q){return}if(b.typeOf(m.playlist)=="string"){var E=new c.playlist.loader();E.addEventListener(e.JWPLAYER_PLAYLIST_LOADED,function(I){m.playlist=I.playlist;q=f;p()});E.addEventListener(e.JWPLAYER_ERROR,function(I){q=f;r(I)});q=d;E.load(m.playlist);return}if(C.getStatus()==b.loaderstatus.COMPLETE){for(var H=0;H");i.innerHTML="";i.appendChild(n)}c.embed.errorScreen=a})(jwplayer);(function(e){var i=e.utils,h=e.embed,j=e.playlist.item,g=undefined;var a=h.config=function(l){var n={fallback:true,height:270,primary:"html5",width:480,base:l.base?l.base:i.getScriptPath("jwplayer.js"),aspectratio:""},m=i.extend(n,e.defaults,l),k={html5:{type:"html5",src:m.base+"jwplayer.html5.js"},flash:{type:"flash",src:m.base+"jwplayer.flash.swf"}};m.modes=(m.primary=="flash")?[k.flash,k.html5]:[k.html5,k.flash];if(m.listbar){m.playlistsize=m.listbar.size;m.playlistposition=m.listbar.position;m.playlistlayout=m.listbar.layout}if(m.flashplayer){k.flash.src=m.flashplayer}if(m.html5player){k.html5.src=m.html5player}d(m);f(m);return m};function f(l){var k=l.aspectratio,m=b(k);if(l.width.toString().indexOf("%")==-1){delete l.aspectratio}else{if(!m){delete l.aspectratio}else{l.aspectratio=m}}}function b(l){if(typeof l!="string"||!i.exists(l)){return 0}var m=l.indexOf(":");if(m==-1){return 0}var k=parseFloat(l.substr(0,m)),n=parseFloat(l.substr(m+1));if(k<=0||n<=0){return 0}return(n/k*100)+"%"}a.addConfig=function(k,l){d(l);return i.extend(k,l)};function d(l){if(!l.playlist){var n={};i.foreach(j.defaults,function(o,p){c(l,n,o)});if(!n.sources){if(l.levels){n.sources=l.levels;delete l.levels}else{var k={};c(l,k,"file");c(l,k,"type");n.sources=k.file?[k]:[]}}l.playlist=[new j(n)]}else{for(var m=0;m0){b.extend(x,g(s.plugins))}else{delete x.plugins}if(typeof x["dock.position"]!="undefined"){if(x["dock.position"].toString().toLowerCase()=="false"){x.dock=x["dock.position"];delete x["dock.position"]}}var F="#000000",A,t=x.wmode?x.wmode:(x.height&&x.height<=40?"transparent":"opaque"),w=["height","width","modes","events","primary","base","fallback","volume"];for(var z=0;z';B+='';B+='';B+='';B+='';B+='';B+='';B+="";l.outerHTML=B;A=document.getElementById(l.id)}else{var y=document.createElement("object");y.setAttribute("type","application/x-shockwave-flash");y.setAttribute("data",m.src);y.setAttribute("width","100%");y.setAttribute("height","100%");y.setAttribute("bgcolor",F);y.setAttribute("id",l.id);y.setAttribute("name",l.id);y.setAttribute("tabindex",0);q(y,"allowfullscreen","true");q(y,"allowscriptaccess","always");q(y,"seamlesstabbing","true");q(y,"wmode",t);l.parentNode.replaceChild(y,l);A=y}if(n.config.aspectratio){A.style.position="absolute"}n.container=A;n.setPlayer(A,"flash")};this.supportsConfig=function(){if(i){if(p){if(b.typeOf(p.playlist)=="string"){return true}try{var t=p.playlist[0],r=t.sources;if(typeof r=="undefined"){return true}else{for(var s=0;s0){u.apply(this,o.shift())}};v.getItemMeta=function(){return r};v.isBeforePlay=function(){return u("jwIsBeforePlay")};v.isBeforeComplete=function(){return u("jwIsBeforeComplete")};return v};f.selectPlayer=function(j){var i;if(!a.exists(j)){j=0}if(j.nodeType){i=j}else{if(typeof j=="string"){i=g.getElementById(j)}}if(i){var k=f.playerById(i.id);if(k){return k}else{return f.addPlayer(new f(i))}}else{if(typeof j=="number"){return c[j]}}return null};f.playerById=function(j){for(var i=0;i=0){var o=l.id,i=g.getElementById(o+(l.renderingMode=="flash"?"_wrapper":""));if(a.clearCss){a.clearCss("#"+o)}if(i){if(l.renderingMode=="html5"){l.destroyPlayer()}var m=g.createElement("div");m.id=o;i.parentNode.replaceChild(m,i)}c.splice(j,1)}return null};d.playerReady=function(j){var i=d.api.playerById(j.id);if(i){i.playerReady(j)}else{d.api.selectPlayer(j.id).playerReady(j)}}})(window.jwplayer);(function(c){var d=c.events,a=c.utils,b=d.state;c.api.instream=function(j,e){var i,k,h={},o={},f=this;function m(q,p){e.jwInstreamAddEventListener(p,'function(dat) { jwplayer("'+q+'").dispatchInstreamEvent("'+p+'", dat); }')}function g(p,q){if(!h[p]){h[p]=[];m(j.id,p)}h[p].push(q);return this}function n(p,q){if(!o[p]){o[p]=[];g(d.JWPLAYER_PLAYER_STATE,l(p))}o[p].push(q);return this}function l(p){return function(r){var q=r.newstate,u=r.oldstate;if(q==p){var t=o[q];if(t){for(var v=0;v<t.length;v++){var s=t[v];if(typeof s=="function"){s.call(this,{oldstate:u,newstate:q,type:r.type})}}}}}}f.type="instream";f.init=function(){j.callInternal("jwInitInstream");return f};f.loadItem=function(q,p){i=q;k=p||{};if(a.typeOf(q)=="array"){j.callInternal("jwLoadArrayInstream",i,k)}else{j.callInternal("jwLoadItemInstream",i,k)}};f.removeEvents=function(){h=o={}};f.removeEventListener=function(r,s){var q=h[r];if(q){for(var p=q.length;p--;){if(q[p]===s){q.splice(p,1)}}}};f.dispatchEvent=function(u,t){var s=h[u];if(s){s=s.slice(0);var q=a.translateEventResponse(u,t[1]);for(var p=0;p<s.length;p++){var r=s[p];if(typeof r=="function"){r.call(this,q)}}}};f.onError=function(p){return g(d.JWPLAYER_ERROR,p)};f.onMediaError=function(p){return g(d.JWPLAYER_MEDIA_ERROR,p)};f.onFullscreen=function(p){return g(d.JWPLAYER_FULLSCREEN,p)};f.onMeta=function(p){return g(d.JWPLAYER_MEDIA_META,p)};f.onMute=function(p){return g(d.JWPLAYER_MEDIA_MUTE,p)};f.onComplete=function(p){return g(d.JWPLAYER_MEDIA_COMPLETE,p)};f.onPlaylistComplete=function(p){return g(d.JWPLAYER_PLAYLIST_COMPLETE,p)};f.onPlaylistItem=function(p){return g(d.JWPLAYER_PLAYLIST_ITEM,p)};f.onTime=function(p){return g(d.JWPLAYER_MEDIA_TIME,p)};f.onBuffer=function(p){return n(b.BUFFERING,p)};f.onPause=function(p){return n(b.PAUSED,p)};f.onPlay=function(p){return n(b.PLAYING,p)};f.onIdle=function(p){return n(b.IDLE,p)};f.onClick=function(p){return g(d.JWPLAYER_INSTREAM_CLICK,p)};f.onInstreamDestroyed=function(p){return g(d.JWPLAYER_INSTREAM_DESTROYED,p)};f.onAdSkipped=function(p){return g(d.JWPLAYER_AD_SKIPPED,p)};f.play=function(p){e.jwInstreamPlay(p)};f.pause=function(p){e.jwInstreamPause(p)};f.hide=function(){j.callInternal("jwInstreamHide")};f.destroy=function(){f.removeEvents();j.callInternal("jwInstreamDestroy")};f.setText=function(p){e.jwInstreamSetText(p?p:"")};f.getState=function(){return e.jwInstreamState()};f.setClick=function(p){if(e.jwInstreamClick){e.jwInstreamClick(p)}}}})(window.jwplayer)};