if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b)}};var $jw=jwplayer;jwplayer.version="5.9.2118 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array"}}else{b="null"}}return b};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a<f.length;a++){for(var b in f[a]){f[0][b]=f[a][b]}}return f[0]}return null};c.utils.clone=function(a){var h;var g=c.utils.clone["arguments"];if(g.length==1){switch(c.utils.typeOf(g[0])){case"object":h={};for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;case"array":h=[];for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;default:return g[0];break}}return h};c.utils.extension=function(a){if(!a){return""}a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()}return};c.utils.html=function(b,a){b.innerHTML=a};c.utils.wrap=function(b,a){if(b.parentNode){b.parentNode.replaceChild(a,b)}a.appendChild(b)};c.utils.ajax=function(a,b,k){var h;if(window.XMLHttpRequest){h=new XMLHttpRequest()}else{h=new ActiveXObject("Microsoft.XMLHTTP")}h.onreadystatechange=function(){if(h.readyState===4){if(h.status===200){if(b){if(!c.utils.exists(h.responseXML)){try{if(window.DOMParser){var f=(new DOMParser()).parseFromString(h.responseText,"text/xml");if(f){h=c.utils.extend({},h,{responseXML:f})}}else{f=new ActiveXObject("Microsoft.XMLDOM");f.async="false";f.loadXML(h.responseText);h=c.utils.extend({},h,{responseXML:f})}}catch(e){if(k){k(a)}}}b(h)}}else{if(k){k(a)}}}};try{h.open("GET",a,true);h.send(null)}catch(j){if(k){k(a)}}return h};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a()}}else{if(f){f()}}}}};c.utils.find=function(a,b){return a.getElementsByTagName(b)};c.utils.append=function(b,a){b.appendChild(a)};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};c.utils.userAgentMatch=function(a){var b=navigator.userAgent.toLowerCase();return(b.match(a)!==null)};c.utils.isIOS=function(){return c.utils.userAgentMatch(/iP(hone|ad|od)/i)};c.utils.isIPad=function(){return c.utils.userAgentMatch(/iPad/i)};c.utils.isIPod=function(){return c.utils.userAgentMatch(/iP(hone|od)/i)};c.utils.isAndroid=function(){return c.utils.userAgentMatch(/android/i)};c.utils.isLegacyAndroid=function(){return c.utils.userAgentMatch(/android 2.[012]/i)};c.utils.isBlackberry=function(){return c.utils.userAgentMatch(/blackberry/i)};c.utils.isMobile=function(){return c.utils.userAgentMatch(/(iP(hone|ad|od))|android/i)};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0]}else{a=f}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;b.provider=a.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube"}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp"}if(a.type){b.provider=a.type.toLowerCase()}}if(b.provider=="audio"){b.provider="sound"}return b};c.utils.getOuterHTML=function(b){if(b.outerHTML){return b.outerHTML}else{try{return new XMLSerializer().serializeToString(b)}catch(a){return""}}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h}else{var a=document.createElement("div");a.innerHTML=h;var k=document.createRange();k.selectNodeContents(a);var j=k.extractContents();b.parentNode.insertBefore(j,b);b.parentNode.removeChild(b)}};c.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(a){}}return false};c.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length)}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"))}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"))}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"))}return a};c.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"))}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"))}else{return a.substring(a.lastIndexOf("-")+1)}}}return""};c.utils.getAbsolutePath=function(b,l){if(!c.utils.exists(l)){l=document.location.href}if(!c.utils.exists(b)){return undefined}if(d(b)){return b}var a=l.substring(0,l.indexOf("://")+3);var m=l.substring(a.length,l.indexOf("/",a.length+1));var p;if(b.indexOf("/")===0){p=b.split("/")}else{var o=l.split("?")[0];o=o.substring(a.length+m.length+1,o.lastIndexOf("/"));p=o.split("/").concat(b.split("/"))}var q=[];for(var n=0;n<p.length;n++){if(!p[n]||!c.utils.exists(p[n])||p[n]=="."){continue}else{if(p[n]==".."){q.pop()}else{q.push(p[n])}}}return a+m+"/"+q.join("/")};function d(b){if(!c.utils.exists(b)){return}var a=b.indexOf("://");var f=b.indexOf("?");return(a>0&&(f<0||(f>a)))}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN}return c.utils.pluginPathType.RELATIVE};c.utils.mapEmpty=function(b){for(var a in b){return false}return true};c.utils.mapLength=function(b){var f=0;for(var a in b){f++}return f};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};c.utils.css=function(j,a,k){if(c.utils.exists(j)){for(var h in a){try{if(typeof a[h]==="undefined"){continue}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6)}else{a[h]=Math.ceil(a[h])+"px"}}}j.style[h]=a[h]}catch(b){}}}};c.utils.isYouTube=function(a){return(a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1)};c.utils.transform=function(k,l,m,b,a){if(!c.utils.exists(l)){l=1}if(!c.utils.exists(m)){m=1}if(!c.utils.exists(b)){b=0}if(!c.utils.exists(a)){a=0}if(l==1&&m==1&&b==0&&a==0){k.style.webkitTransform="";k.style.MozTransform="";k.style.OTransform=""}else{var j="scale("+l+","+m+") translate("+b+"px,"+a+"px)";k.style.webkitTransform=j;k.style.MozTransform=j;k.style.OTransform=j}};c.utils.stretch=function(v,a,b,y,s,x){if(typeof b=="undefined"||typeof y=="undefined"||typeof s=="undefined"||typeof x=="undefined"){return}var B=b/s;var z=y/x;var t=0;var u=0;var A=false;var C={};if(a.parentElement){a.parentElement.style.overflow="hidden"}c.utils.transform(a);switch(v.toUpperCase()){case c.utils.stretching.NONE:C.width=s;C.height=x;C.top=(y-C.height)/2;C.left=(b-C.width)/2;break;case c.utils.stretching.UNIFORM:if(B>z){C.width=s*z;C.height=x*z;if(C.width/b>0.95){A=true;B=Math.ceil(100*b/C.width)/100;z=1;C.width=b}}else{C.width=s*B;C.height=x*B;if(C.height/y>0.95){A=true;B=1;z=Math.ceil(100*y/C.height)/100;C.height=y}}C.top=(y-C.height)/2;C.left=(b-C.width)/2;break;case c.utils.stretching.FILL:if(B>z){C.width=s*B;C.height=x*B}else{C.width=s*z;C.height=x*z}C.top=(y-C.height)/2;C.left=(b-C.width)/2;break;case c.utils.stretching.EXACTFIT:C.width=s;C.height=x;var r=Math.round((s/2)*(1-1/B));var w=Math.round((x/2)*(1-1/z));A=true;C.top=C.left=0;break;default:break}if(A){c.utils.transform(a,B,z,r,w)}c.utils.css(a,C)};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};c.utils.deepReplaceKeyName=function(a,o,q){switch(c.utils.typeOf(a)){case"array":for(var m=0;m<a.length;m++){a[m]=c.utils.deepReplaceKeyName(a[m],o,q)}break;case"object":for(var n in a){var b,l;if(o instanceof Array&&q instanceof Array){if(o.length!=q.length){continue}else{b=o;l=q}}else{b=[o];l=[q]}var p=n;for(var m=0;m<b.length;m++){p=p.replace(new RegExp(o[m],"g"),q[m])}a[p]=c.utils.deepReplaceKeyName(a[n],o,q);if(n!=p){delete a[n]}}break}return a};c.utils.isInArray=function(a,b){if(!(a)||!(a instanceof Array)){return false}for(var f=0;f<a.length;f++){if(b===a[f]){return true}}return false};c.utils.exists=function(a){switch(typeof(a)){case"string":return(a.length>0);break;case"object":return(a!==null);case"undefined":return false}return true};c.utils.empty=function(a){if(typeof a.hasChildNodes=="function"){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}};c.utils.parseDimension=function(a){if(typeof a=="string"){if(a===""){return 0}else{if(a.lastIndexOf("%")>-1){return a}else{return parseInt(a.replace("px",""),10)}}}return a};c.utils.getDimensions=function(a){if(a&&a.style){return{x:c.utils.parseDimension(a.style.left),y:c.utils.parseDimension(a.style.top),width:c.utils.parseDimension(a.style.width),height:c.utils.parseDimension(a.style.height)}}else{return{}}};c.utils.getElementWidth=function(a){if(!a){return null}else{if(a==document.body){return c.utils.parentNode(a).clientWidth}else{if(a.clientWidth>0){return a.clientWidth}else{if(a.style){return c.utils.parseDimension(a.style.width)}else{return null}}}}};c.utils.getElementHeight=function(a){if(!a){return null}else{if(a==document.body){return c.utils.parentNode(a).clientHeight}else{if(a.clientHeight>0){return a.clientHeight}else{if(a.style){return c.utils.parseDimension(a.style.height)}else{return null}}}}};c.utils.timeFormat=function(a){str="00:00";if(a>0){str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":";str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)}return str};c.utils.useNativeFullscreen=function(){return(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)};c.utils.parentNode=function(a){if(!a){return docuemnt.body}else{if(a.parentNode){return a.parentNode}else{if(a.parentElement){return a.parentElement}else{return a}}}};c.utils.getBoundingClientRect=function(a){if(typeof a.getBoundingClientRect=="function"){return a.getBoundingClientRect()}else{return{left:a.offsetLeft+document.body.scrollLeft,top:a.offsetTop+document.body.scrollTop,width:a.offsetWidth,height:a.offsetHeight}}};c.utils.translateEventResponse=function(h,k){var a=c.utils.extend({},k);if(h==c.api.events.JWPLAYER_FULLSCREEN&&!a.fullscreen){a.fullscreen=a.message=="true"?true:false;delete a.message}else{if(typeof a.data=="object"){a=c.utils.extend(a,a.data);delete a.data}else{if(typeof a.metadata=="object"){c.utils.deepReplaceKeyName(a.metadata,["__dot__","__spc__","__dsh__"],["."," ","-"])}}}var j=["position","duration","offset"];for(var b in j){if(a[j[b]]){a[j[b]]=Math.round(a[j[b]]*1000)/1000}}return a};c.utils.saveCookie=function(b,a){document.cookie="jwplayer."+b+"="+a+"; path=/"};c.utils.getCookies=function(){var a={};var b=document.cookie.split("; ");for(var g=0;g<b.length;g++){var h=b[g].split("=");if(h[0].indexOf("jwplayer.")==0){a[h[0].substring(9,h[0].length)]=h[1]}}return a};c.utils.readCookie=function(a){return c.utils.getCookies()[a]}})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE="COMPLETE";b.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(!jwplayer.utils.exists(_listeners[type])){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){if(!_listeners[type]){return}try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][listenerIndex].listener.toString()==listener.toString()){_listeners[type].splice(listenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){if(!listener){return}try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].listener.toString()==listener.toString()){_globallisteners.splice(globalListenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(!jwplayer.utils.exists(data)){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;b.style.msTransform=a};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a;b.style.msTransformOrigin=a};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""))};d.utils.cancelAnimation=function(a){delete c[a.id]};d.utils.fadeTo=function(a,r,s,o,p,t){if(c[a.id]!=t&&d.utils.exists(t)){return}if(a.style.opacity==r){return}var u=new Date().getTime();if(t>u){setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},t-u)}if(a.style.display=="none"){a.style.display="block"}if(!d.utils.exists(o)){o=a.style.opacity===""?1:a.style.opacity}if(a.style.opacity==r&&a.style.opacity!==""&&d.utils.exists(t)){if(r===0){a.style.display="none"}return}if(!d.utils.exists(t)){t=u;c[a.id]=t}if(!d.utils.exists(p)){p=0}var n=(s>0)?((u-t)/(s*1000)):0;n=n>1?1:n;var b=r-o;var q=o+(n*b);if(q>1){q=1}else{if(q<0){q=0}}a.style.opacity=q;if(p>0){c[a.id]=t+p*1000;d.utils.fadeTo(a,r,s,o,0,c[a.id]);return}setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},10)}})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a<f.length;a++){if(f[a]==e){return a}}return -1};b.utils.arrays.remove=function(f,e){var a=b.utils.arrays.indexOf(f,e);if(a>-1){f.splice(a,1)}}})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(o){o.utils.mediaparser=function(){};var m={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var n={};o.utils.mediaparser.parseMedia=function(a){return p(a)};function q(a,b){if(!o.utils.exists(b)){b=m[a]}else{o.utils.extend(b,m[a])}return b}function p(f,d){if(n[f.tagName.toLowerCase()]&&!o.utils.exists(d)){return n[f.tagName.toLowerCase()](f)}else{d=q("element",d);var e={};for(var c in d){if(c!="length"){var a=f.getAttribute(c);if(o.utils.exists(a)){e[d[c]]=a}}}var b=f.style["#background-color"];if(b&&!(b=="transparent"||b=="rgba(0, 0, 0, 0)")){e.screencolor=b}return e}}function l(f,c){c=q("media",c);var b=[];var d=o.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(k(d[a]))}}var e=p(f,c);if(o.utils.exists(e.file)){b[0]={file:e.file}}e.levels=b;return e}function k(a,b){b=q("source",b);var c=p(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function j(a,b){b=q("video",b);var c=l(a,b);return c}n.media=l;n.audio=l;n.source=k;n.video=j})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR)};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f}};this.getStatus=function(){return e}}})(jwplayer);(function(b){b.utils.selectors=function(a,f){if(!b.utils.exists(f)){f=document}a=b.utils.strings.trim(a);var h=a.charAt(0);if(h=="#"){return f.getElementById(a.substr(1))}else{if(h=="."){if(f.getElementsByClassName){return f.getElementsByClassName(a.substr(1))}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1))}}else{if(a.indexOf(".")>0){var g=a.split(".");return b.utils.selectors.getElementsByTagAndClass(g[0],g[1])}else{return f.getElementsByTagName(a)}}}return null};b.utils.selectors.getElementsByTagAndClass=function(o,l,m){var k=[];if(!b.utils.exists(m)){m=document}var n=m.getElementsByTagName(o);for(var p=0;p<n.length;p++){if(b.utils.exists(n[p].className)){var q=n[p].className.split(" ");for(var a=0;a<q.length;a++){if(q[a]==l){k.push(n[p])}}}}return k}})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};b.utils.strings.pad=function(f,e,a){if(!a){a="0"}while(f.length<e){f=a+f}return f};b.utils.strings.serialize=function(a){if(a==null){return null}else{if(a=="true"){return true}else{if(a=="false"){return false}else{if(isNaN(Number(a))||a.length>5||a.length==0){return a}else{return Number(a)}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1))}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600}}else{f=Number(e)}}}}return f};b.utils.strings.xmlAttribute=function(a,f){for(var e=0;e<a.attributes.length;e++){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString()}}return""};b.utils.strings.jsonToString=function(l){var j=j||{};if(j&&j.stringify){return j.stringify(l)}var o=typeof(l);if(o!="object"||l===null){if(o=="string"){l='"'+l.replace(/"/g,'\\"')+'"'}else{return String(l)}}else{var k=[],a=(l&&l.constructor==Array);for(var n in l){var m=l[n];switch(typeof(m)){case"string":m='"'+m.replace(/"/g,'\\"')+'"';break;case"object":if(b.utils.exists(m)){m=b.utils.strings.jsonToString(m)}break}if(a){if(typeof(m)!="function"){k.push(String(m))}}else{if(typeof(m)!="function"){k.push('"'+n+'":'+String(m))}}}if(a){return"["+String(k)+"]"}else{return"{"+String(k)+"}"}}}})(jwplayer);(function(k){var j=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);k.utils.typechecker=function(a,b){b=!k.utils.exists(b)?f(a):b;return h(a,b)};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(j.test(b)){return"color"}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer"}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float"}}}}return"string"}function h(a,b){if(!k.utils.exists(b)){return a}switch(b){case"color":if(a.length>0){return g(a)}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true}else{if(a=="1"){return true}}return false}return a}function g(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)}return parseInt(a,16)}return parseInt("000000",16)}})(jwplayer);(function(b){b.utils.parsers=function(){};b.utils.parsers.localName=function(a){if(!a){return""}else{if(a.localName){return a.localName}else{if(a.baseName){return a.baseName}else{return""}}}};b.utils.parsers.textContent=function(a){if(!a){return""}else{if(a.textContent){return a.textContent}else{if(a.text){return a.text}else{return""}}}}})(jwplayer);(function(b){b.utils.parsers.jwparser=function(){};b.utils.parsers.jwparser.PREFIX="jwplayer";b.utils.parsers.jwparser.parseEntry=function(f,e){for(var a=0;a<f.childNodes.length;a++){if(f.childNodes[a].prefix==b.utils.parsers.jwparser.PREFIX){e[b.utils.parsers.localName(f.childNodes[a])]=b.utils.strings.serialize(b.utils.parsers.textContent(f.childNodes[a]));if(b.utils.parsers.localName(f.childNodes[a])=="file"&&e.levels){delete e.levels}}if(!e.file&&String(e.link).toLowerCase().indexOf("youtube")>-1){e.file=e.link}}return e};b.utils.parsers.jwparser.getProvider=function(d){if(d.type){return d.type}else{if(d.file.indexOf("youtube.com/w")>-1||d.file.indexOf("youtube.com/v")>-1||d.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(d.streamer&&d.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(d.streamer&&d.streamer.indexOf("http")==0){return"http"}else{var a=b.utils.strings.extension(d.file);if(extensions.hasOwnProperty(a)){return extensions[a]}}}}}return""}})(jwplayer);(function(b){b.utils.parsers.mediaparser=function(){};b.utils.parsers.mediaparser.PREFIX="media";b.utils.parsers.mediaparser.parseGroup=function(j,g){var h=false;for(var k=0;k<j.childNodes.length;k++){if(j.childNodes[k].prefix==b.utils.parsers.mediaparser.PREFIX){if(!b.utils.parsers.localName(j.childNodes[k])){continue}switch(b.utils.parsers.localName(j.childNodes[k]).toLowerCase()){case"content":if(!h){g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}if(b.utils.strings.xmlAttribute(j.childNodes[k],"duration")){g.duration=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"duration"))}if(b.utils.strings.xmlAttribute(j.childNodes[k],"start")){g.start=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"start"))}if(j.childNodes[k].childNodes&&j.childNodes[k].childNodes.length>0){g=b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g)}if(b.utils.strings.xmlAttribute(j.childNodes[k],"width")||b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate")||b.utils.strings.xmlAttribute(j.childNodes[k],"url")){if(!g.levels){g.levels=[]}g.levels.push({width:b.utils.strings.xmlAttribute(j.childNodes[k],"width"),bitrate:b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate"),file:b.utils.strings.xmlAttribute(j.childNodes[k],"url")})}break;case"title":g.title=b.utils.parsers.textContent(j.childNodes[k]);break;case"description":g.description=b.utils.parsers.textContent(j.childNodes[k]);break;case"keywords":g.tags=b.utils.parsers.textContent(j.childNodes[k]);break;case"thumbnail":g.image=b.utils.strings.xmlAttribute(j.childNodes[k],"url");break;case"credit":g.author=b.utils.parsers.textContent(j.childNodes[k]);break;case"player":var a=j.childNodes[k].url;if(a.indexOf("youtube.com")>=0||a.indexOf("youtu.be")>=0){h=true;g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}break;case"group":b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g);break}}}return g}})(jwplayer);(function(c){c.utils.parsers.rssparser=function(){};c.utils.parsers.rssparser.parse=function(a){var h=[];for(var b=0;b<a.childNodes.length;b++){if(c.utils.parsers.localName(a.childNodes[b]).toLowerCase()=="channel"){for(var g=0;g<a.childNodes[b].childNodes.length;g++){if(c.utils.parsers.localName(a.childNodes[b].childNodes[g]).toLowerCase()=="item"){h.push(d(a.childNodes[b].childNodes[g]))}}}}return h};function d(b){var a={};for(var f=0;f<b.childNodes.length;f++){if(!c.utils.parsers.localName(b.childNodes[f])){continue}switch(c.utils.parsers.localName(b.childNodes[f]).toLowerCase()){case"enclosure":a.file=c.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case"title":a.title=c.utils.parsers.textContent(b.childNodes[f]);break;case"pubdate":a.date=c.utils.parsers.textContent(b.childNodes[f]);break;case"description":a.description=c.utils.parsers.textContent(b.childNodes[f]);break;case"link":a.link=c.utils.parsers.textContent(b.childNodes[f]);break;case"category":if(a.tags){a.tags+=c.utils.parsers.textContent(b.childNodes[f])}else{a.tags=c.utils.parsers.textContent(b.childNodes[f])}break}}a=c.utils.parsers.mediaparser.parseGroup(b,a);a=c.utils.parsers.jwparser.parseEntry(b,a);return new c.html5.playlistitem(a)}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a]};e.plugins.registerPlugin=function(a,c,j){var k=e.utils.getPluginName(a);if(f[k]){f[k].registerPlugin(a,c,j)}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed()}}}})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f)}return a[e]}}})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(u){var s="http://lp.longtailvideo.com";var n=b.utils.loaderstatus.NEW;var m;var o;var a;var t=new b.events.eventdispatcher();b.utils.extend(this,t);function r(){switch(b.utils.getPluginPathType(u)){case b.utils.pluginPathType.ABSOLUTE:return u;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(u,window.location.href);case b.utils.pluginPathType.CDN:var d=b.utils.getPluginName(u);var e=b.utils.getPluginVersion(u);var c=(window.location.href.indexOf("https://")==0)?s.replace("http://","https://secure"):s;return c+"/"+b.version.split(".")[0]+"/"+d+"/"+d+(e!==""?("-"+e):"")+".js"}}function p(c){a=setTimeout(function(){n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)},1000)}function q(c){n=b.utils.loaderstatus.ERROR;t.sendEvent(b.events.ERROR)}this.load=function(){if(n==b.utils.loaderstatus.NEW){if(u.lastIndexOf(".swf")>0){m=u;n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE);return}n=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(r());c.addEventListener(b.events.COMPLETE,p);c.addEventListener(b.events.ERROR,q);c.load()}};this.registerPlugin=function(d,e,c){if(a){clearTimeout(a);a=undefined}if(e&&c){m=c;o=e}else{if(typeof e=="string"){m=e}else{if(typeof e=="function"){o=e}else{if(!e&&!c){m=d}}}}n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return n};this.getPluginName=function(){return b.utils.getPluginName(u)};this.getFlashPath=function(){if(m){switch(b.utils.getPluginPathType(m)){case b.utils.pluginPathType.ABSOLUTE:return m;case b.utils.pluginPathType.RELATIVE:if(u.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(m,window.location.href)}return b.utils.getAbsolutePath(m,r());case b.utils.pluginPathType.CDN:if(m.indexOf("-")>-1){return m+"h"}return m+"-h"}}return null};this.getJS=function(){return o};this.getPluginmode=function(){if(typeof m!="undefined"&&typeof o!="undefined"){return b.plugins.pluginmodes.HYBRID}else{if(typeof m!="undefined"){return b.plugins.pluginmodes.FLASH}else{if(typeof o!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(e,c,d){return new o(e,c,d)};this.getURL=function(){return u}}})(jwplayer);(function(b){b.plugins.pluginloader=function(m,p){var n={};var a=b.utils.loaderstatus.NEW;var q=false;var s=false;var r=new b.events.eventdispatcher();b.utils.extend(this,r);function o(){if(!s){s=true;a=b.utils.loaderstatus.COMPLETE;r.sendEvent(b.events.COMPLETE)}}function l(){if(!s){var c=0;for(plugin in n){var d=n[plugin].getStatus();if(d==b.utils.loaderstatus.LOADING||d==b.utils.loaderstatus.NEW){c++}}if(c==0){o()}}}this.setupPlugins=function(k,d,e){var c={length:0,plugins:{}};var h={length:0,plugins:{}};for(var j in n){var g=n[j].getPluginName();if(n[j].getFlashPath()){c.plugins[n[j].getFlashPath()]=d.plugins[j];c.plugins[n[j].getFlashPath()].pluginmode=n[j].getPluginmode();c.length++}if(n[j].getJS()){var f=document.createElement("div");f.id=k.id+"_"+g;f.style.position="absolute";f.style.zIndex=h.length+10;h.plugins[g]=n[j].getNewInstance(k,d.plugins[j],f);h.length++;if(typeof h.plugins[g].resize!="undefined"){k.onReady(e(h.plugins[g],f,true));k.onResize(e(h.plugins[g],f))}}}k.plugins=h.plugins;return c};this.load=function(){a=b.utils.loaderstatus.LOADING;q=true;for(var c in p){if(b.utils.exists(c)){n[c]=m.addPlugin(c);n[c].addEventListener(b.events.COMPLETE,l);n[c].addEventListener(b.events.ERROR,l)}}for(c in n){n[c].load()}q=false;l()};this.pluginFailed=function(){o()};this.getStatus=function(){return a}}})(jwplayer);(function(c){var d=[];c.api=function(E){this.container=E;this.id=E.id;var w={};var G={};var t={};var F=[];var B=undefined;var y=false;var A=[];var b=undefined;var u=c.utils.getOuterHTML(E);var a={};var z={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function D(e,f){return function(k,j,h,g){if(e.renderingMode=="flash"||e.renderingMode=="html5"){var l;if(j){z[k]=j;l="jwplayer('"+e.id+"').callback('"+k+"')"}else{if(!j&&z[k]){delete z[k]}}B.jwDockSetButton(k,l,h,g)}return f}}this.getPlugin=function(g){var e=this;var f={};if(g=="dock"){return c.utils.extend(f,{setButton:D(e,f),show:function(){e.callInternal("jwDockShow");return f},hide:function(){e.callInternal("jwDockHide");return f},onShow:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="controlbar"){return c.utils.extend(f,{show:function(){e.callInternal("jwControlbarShow");return f},hide:function(){e.callInternal("jwControlbarHide");return f},onShow:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="display"){return c.utils.extend(f,{show:function(){e.callInternal("jwDisplayShow");return f},hide:function(){e.callInternal("jwDisplayHide");return f},onShow:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{return this.plugins[g]}}}};this.callback=function(e){if(z[e]){return z[e]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){c.utils.deepReplaceKeyName(e,["__dot__","__spc__","__dsh__"],["."," ","-"])}for(var f=0;f<e.length;f++){if(!c.utils.exists(e[f].index)){e[f].index=f}}return e};this.getPlaylistItem=function(e){if(!c.utils.exists(e)){e=this.getCurrentItem()}return this.getPlaylist()[e]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",e)}return this};this.setMute=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",e)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(e){this.callInternal("jwLoad",e);return this};this.playlistItem=function(e){this.callInternal("jwPlaylistItem",e);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(f,g){if(this.renderingMode=="html5"){B.jwResize(f,g)}else{this.container.width=f;this.container.height=g;var e=document.getElementById(this.id+"_wrapper");if(e){e.style.width=f+"px";e.style.height=g+"px"}}return this};this.play=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",e)}return this};this.pause=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",e)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(e){this.callInternal("jwSeek",e);return this};this.setVolume=function(e){this.callInternal("jwSetVolume",e);return this};this.loadInstream=function(e,f){b=new c.api.instream(this,B,e,f);return b};this.onBufferChange=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,e)};this.onBufferFull=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,e)};this.onError=function(e){return this.eventListener(c.api.events.JWPLAYER_ERROR,e)};this.onFullscreen=function(e){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,e)};this.onMeta=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,e)};this.onMute=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,e)};this.onPlaylist=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,e)};this.onPlaylistItem=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,e)};this.onReady=function(e){return this.eventListener(c.api.events.API_READY,e)};this.onResize=function(e){return this.eventListener(c.api.events.JWPLAYER_RESIZE,e)};this.onComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,e)};this.onSeek=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_SEEK,e)};this.onTime=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,e)};this.onVolume=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,e)};this.onBeforePlay=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BEFOREPLAY,e)};this.onBeforeComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE,e)};this.onBuffer=function(e){return this.stateListener(c.api.events.state.BUFFERING,e)};this.onPause=function(e){return this.stateListener(c.api.events.state.PAUSED,e)};this.onPlay=function(e){return this.stateListener(c.api.events.state.PLAYING,e)};this.onIdle=function(e){return this.stateListener(c.api.events.state.IDLE,e)};this.remove=function(){w={};A=[];if(c.utils.getOuterHTML(this.container)!=u){c.api.destroyPlayer(this.id,u)}};this.setup=function(f){if(c.embed){var g=this.id;this.remove();var e=c(g);e.config=f;return new c.embed(e)}return this};this.registerPlugin=function(e,f,g){c.plugins.registerPlugin(e,f,g)};this.setPlayer=function(f,e){B=f;this.renderingMode=e};this.stateListener=function(f,e){if(!G[f]){G[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,C(f))}G[f].push(e);return this};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};function C(e){return function(h){var j=h.newstate,f=h.oldstate;if(j==e){var g=G[j];if(g){for(var k=0;k<g.length;k++){if(typeof g[k]=="function"){g[k].call(this,{oldstate:f,newstate:j})}}}}}}this.componentListener=function(g,f,e){if(!t[g]){t[g]={}}if(!t[g][f]){t[g][f]=[];this.eventListener(f,x(g,f))}t[g][f].push(e);return this};function x(f,e){return function(h){if(f==h.component){var j=t[f][e];if(j){for(var g=0;g<j.length;g++){if(typeof j[g]=="function"){j[g].call(this,h)}}}}}}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }')};this.eventListener=function(f,e){if(!w[f]){w[f]=[];if(B&&y){this.addInternalListener(B,f)}}w[f].push(e);return this};this.dispatchEvent=function(e){if(w[e]){var f=_utils.translateEventResponse(e,arguments[1]);for(var g=0;g<w[e].length;g++){if(typeof w[e][g]=="function"){w[e][g].call(this,f)}}}};this.dispatchInstreamEvent=function(e){if(b){b.dispatchEvent(e,arguments)}};this.callInternal=function(){if(y){var e=arguments[0],g=[];for(var f=1;f<arguments.length;f++){g.push(arguments[f])}if(typeof B!="undefined"&&typeof B[e]=="function"){if(g.length==2){return(B[e])(g[0],g[1])}else{if(g.length==1){return(B[e])(g[0])}else{return(B[e])()}}}return null}else{A.push(arguments)}};this.playerReady=function(e){y=true;if(!B){this.setPlayer(document.getElementById(e.id))}this.container=document.getElementById(this.id);for(var f in w){this.addInternalListener(B,f)}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(g){a={}});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(g){c.utils.extend(a,g.metadata)});this.dispatchEvent(c.api.events.API_READY);while(A.length>0){this.callInternal.apply(this,A.shift())}};this.getItemMeta=function(){return a};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function v(g,e,f){var j=[];if(!e){e=0}if(!f){f=g.length-1}for(var h=e;h<=f;h++){j.push(g[h])}return j}return this};c.api.selectPlayer=function(b){var f;if(!c.utils.exists(b)){b=0}if(b.nodeType){f=b}else{if(typeof b=="string"){f=document.getElementById(b)}}if(f){var a=c.api.playerById(f.id);if(a){return a}else{return c.api.addPlayer(new c.api(f))}}else{if(typeof b=="number"){return c.getPlayers()[b]}}return null};c.api.events={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_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b<d.length;b++){if(d[b].id==a){return d[b]}}return null};c.api.addPlayer=function(b){for(var a=0;a<d.length;a++){if(d[a]==b){return b}}d.push(b);return b};c.api.destroyPlayer=function(k,n){var l=-1;for(var a=0;a<d.length;a++){if(d[a].id==k){l=a;continue}}if(l>=0){var o=document.getElementById(d[l].id);if(document.getElementById(d[l].id+"_wrapper")){o=document.getElementById(d[l].id+"_wrapper")}if(o){if(n){c.utils.setOuterHTML(o,n)}else{var b=document.createElement("div");var m=o.id;if(o.id.indexOf("_wrapper")==o.id.length-8){newID=o.id.substring(0,o.id.length-8)}b.setAttribute("id",m);o.parentNode.replaceChild(b,o)}}d.splice(l,1)}return null};c.getPlayers=function(){return d.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c)}else{jwplayer.api.selectPlayer(c.id).playerReady(c)}if(_userPlayerReady){_userPlayerReady.call(this,c)}};(function(b){b.api.instream=function(D,x,t,a){var y=D;var E=x;var z=t;var w=a;var B={};var r={};function A(){y.callInternal("jwLoadInstream",t,a)}function u(d,c){E.jwInstreamAddEventListener(c,'function(dat) { jwplayer("'+y.id+'").dispatchInstreamEvent("'+c+'", dat); }')}function C(d,c){if(!B[d]){B[d]=[];u(E,d)}B[d].push(c);return this}function s(d,c){if(!r[d]){r[d]=[];C(b.api.events.JWPLAYER_PLAYER_STATE,v(d))}r[d].push(c);return this}function v(c){return function(g){var h=g.newstate,e=g.oldstate;if(h==c){var f=r[h];if(f){for(var d=0;d<f.length;d++){if(typeof f[d]=="function"){f[d].call(this,{oldstate:e,newstate:h,type:g.type})}}}}}}this.dispatchEvent=function(c,d){if(B[c]){var e=_utils.translateEventResponse(c,d[1]);for(var f=0;f<B[c].length;f++){if(typeof B[c][f]=="function"){B[c][f].call(this,e)}}}};this.onError=function(c){return C(b.api.events.JWPLAYER_ERROR,c)};this.onFullscreen=function(c){return C(b.api.events.JWPLAYER_FULLSCREEN,c)};this.onMeta=function(c){return C(b.api.events.JWPLAYER_MEDIA_META,c)};this.onMute=function(c){return C(b.api.events.JWPLAYER_MEDIA_MUTE,c)};this.onComplete=function(c){return C(b.api.events.JWPLAYER_MEDIA_COMPLETE,c)};this.onSeek=function(c){return C(b.api.events.JWPLAYER_MEDIA_SEEK,c)};this.onTime=function(c){return C(b.api.events.JWPLAYER_MEDIA_TIME,c)};this.onVolume=function(c){return C(b.api.events.JWPLAYER_MEDIA_VOLUME,c)};this.onBuffer=function(c){return s(b.api.events.state.BUFFERING,c)};this.onPause=function(c){return s(b.api.events.state.PAUSED,c)};this.onPlay=function(c){return s(b.api.events.state.PLAYING,c)};this.onIdle=function(c){return s(b.api.events.state.IDLE,c)};this.onInstreamClick=function(c){return C(b.api.events.JWPLAYER_INSTREAM_CLICK,c)};this.onInstreamDestroyed=function(c){return C(b.api.events.JWPLAYER_INSTREAM_DESTROYED,c)};this.play=function(c){E.jwInstreamPlay(c)};this.pause=function(c){E.jwInstreamPause(c)};this.seek=function(c){E.jwInstreamSeek(c)};this.destroy=function(){E.jwInstreamDestroy()};this.getState=function(){return E.jwInstreamGetState()};this.getDuration=function(){return E.jwInstreamGetDuration()};this.getPosition=function(){return E.jwInstreamGetPosition()};A()}})(jwplayer);(function(e){var f=e.utils;e.embed=function(c){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var l=f.mediaparser.parseMedia(c.container);var m=new e.embed.config(f.extend(a,l,c.config),this);var b=e.plugins.loadPlugins(c.id,m.plugins);function o(j,g){for(var h in g){if(typeof j[h]=="function"){(j[h]).call(j,g[h])}}}function n(){if(b.getStatus()==f.loaderstatus.COMPLETE){for(var u=0;u<m.modes.length;u++){if(m.modes[u].type&&e.embed[m.modes[u].type]){var j=m.modes[u].config;var x=m;if(j){x=f.extend(f.clone(m),j);var y=["file","levels","playlist"];for(var v=0;v<y.length;v++){var h=y[v];if(f.exists(j[h])){for(var w=0;w<y.length;w++){if(w!=v){var k=y[w];if(f.exists(x[k])&&!f.exists(j[k])){delete x[k]}}}}}}var g=new e.embed[m.modes[u].type](document.getElementById(c.id),m.modes[u],x,b,c);if(g.supportsConfig()){g.embed();o(c,m.events);return c}}}f.log("No suitable players found");new e.embed.logo(f.extend({hide:true},m.components.logo),"none",c.id)}}b.addEventListener(e.events.COMPLETE,n);b.addEventListener(e.events.ERROR,n);b.load();return c};function d(){if(!document.body){return setTimeout(d,15)}var c=f.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<c.length;b++){var a=c[b];if(a.id==""){a.id="jwplayer_"+Math.round(Math.random()*100000)}e(a.id).setup({})}}d()})(jwplayer);(function(q){var l=q.utils;function n(a){var b=[{type:"flash",src:a?a:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}];if(l.isAndroid()){b[0]=b.splice(1,1,b[0])[0]}return b}var u={players:"modes",autoplay:"autostart"};function t(c){var d=c.toLowerCase();var a=["left","right","top","bottom"];for(var b=0;b<a.length;b++){if(d==a[b]){return true}}return false}function s(a){var b=false;b=(a instanceof Array)||(typeof a=="object"&&!a.position&&!a.size);return b}function m(a){if(typeof a=="string"){if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1){return parseInt(a)}}return a}var o=["playlist","dock","controlbar","logo","display"];function p(b){var d={};switch(l.typeOf(b.plugins)){case"object":for(var e in b.plugins){d[l.getPluginName(e)]=e}break;case"string":var c=b.plugins.split(",");for(var a=0;a<c.length;a++){d[l.getPluginName(c[a])]=c[a]}break}return d}function r(d,e,f,b){if(l.typeOf(d[e])!="object"){d[e]={}}var a=d[e][f];if(l.typeOf(a)!="object"){d[e][f]=a={}}if(b){if(e=="plugins"){var c=l.getPluginName(f);a[b]=d[c+"."+b];delete d[c+"."+b]}else{a[b]=d[f+"."+b];delete d[f+"."+b]}}}q.embed.deserialize=function(a){var f=p(a);for(var b in f){r(a,"plugins",f[b])}for(var c in a){if(c.indexOf(".")>-1){var d=c.split(".");var e=d[0];var c=d[1];if(l.isInArray(o,e)){r(a,"components",e,c)}else{if(f[e]){r(a,"plugins",f[e],c)}}}}return a};q.embed.config=function(g,h){var j=l.extend({},g);var w;if(s(j.playlist)){w=j.playlist;delete j.playlist}j=q.embed.deserialize(j);j.height=m(j.height);j.width=m(j.width);if(typeof j.plugins=="string"){var f=j.plugins.split(",");if(typeof j.plugins!="object"){j.plugins={}}for(var b=0;b<f.length;b++){var a=l.getPluginName(f[b]);if(typeof j[a]=="object"){j.plugins[f[b]]=j[a];delete j[a]}else{j.plugins[f[b]]={}}}}for(var k=0;k<o.length;k++){var c=o[k];if(l.exists(j[c])){if(typeof j[c]!="object"){if(!j.components[c]){j.components[c]={}}if(c=="logo"){j.components[c].file=j[c]}else{j.components[c].position=j[c]}delete j[c]}else{if(!j.components[c]){j.components[c]={}}l.extend(j.components[c],j[c]);delete j[c]}}if(typeof j[c+"size"]!="undefined"){if(!j.components[c]){j.components[c]={}}j.components[c].size=j[c+"size"];delete j[c+"size"]}}if(typeof j.icons!="undefined"){if(!j.components.display){j.components.display={}}j.components.display.icons=j.icons;delete j.icons}for(var d in u){if(j[d]){if(!j[u[d]]){j[u[d]]=j[d]}delete j[d]}}var e;if(j.flashplayer&&!j.modes){e=n(j.flashplayer);delete j.flashplayer}else{if(j.modes){if(typeof j.modes=="string"){e=n(j.modes)}else{if(j.modes instanceof Array){e=j.modes}else{if(typeof j.modes=="object"&&j.modes.type){e=[j.modes]}}}delete j.modes}else{e=n()}}j.modes=e;if(w){j.playlist=w}return j}})(jwplayer);(function(b){b.embed.download=function(m,h,a,l,j){this.embed=function(){var x=b.utils.extend({},a);var d={};var y=a.width?a.width:480;if(typeof y!="number"){y=parseInt(y,10)}var v=a.height?a.height:320;if(typeof v!="number"){v=parseInt(v,10)}var A,f,g;var C={};if(a.playlist&&a.playlist.length){C.file=a.playlist[0].file;f=a.playlist[0].image;C.levels=a.playlist[0].levels}else{C.file=a.file;f=a.image;C.levels=a.levels}if(C.file){A=C.file}else{if(C.levels&&C.levels.length){A=C.levels[0].file}}g=A?"pointer":"auto";var w={display:{style:{cursor:g,width:y,height:v,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:((v-50)/2),left:((y-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:y,height:v,display:f?"block":"none",position:"absolute",cursor:g,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var z=function(p,n,q){var o=document.createElement(p);if(q){o.id=q}else{o.id=m.id+"_jwplayer_"+n}b.utils.css(o,w[n].style);return o};d.display=z("a","display",m.id);if(A){d.display.setAttribute("href",b.utils.getAbsolutePath(A))}d.display_image=z("img","display_image");d.display_image.setAttribute("alt","Click to download...");if(f){d.display_image.setAttribute("src",b.utils.getAbsolutePath(f))}if(true){d.display_icon=z("div","display_icon");d.display_iconBackground=z("div","display_iconBackground");d.display.appendChild(d.display_image);d.display_iconBackground.appendChild(d.display_icon);d.display.appendChild(d.display_iconBackground)}_css=b.utils.css;_hide=function(n){_css(n,{display:"none"})};function c(n){_imageWidth=d.display_image.naturalWidth;_imageHeight=d.display_image.naturalHeight;B()}function B(){b.utils.stretch(b.utils.stretching.UNIFORM,d.display_image,y,v,_imageWidth,_imageHeight)}d.display_image.onerror=function(n){_hide(d.display_image)};d.display_image.onload=c;m.parentNode.replaceChild(d.display,m);var e=(a.plugins&&a.plugins.logo)?a.plugins.logo:{};d.display.appendChild(new b.embed.logo(a.components.logo,"download",m.id));j.container=document.getElementById(j.id);j.setPlayer(d.display,"download")};this.supportsConfig=function(){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return k(c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&k(c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}};function k(f,d,g){if(g){return false}var e=["image","sound","youtube","http"];if(d&&(e.toString().indexOf(d)>-1)){return true}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true}}return false}}})(jwplayer);(function(b){b.embed.flash=function(s,r,n,t,p){function a(e,f,d){var c=document.createElement("param");c.setAttribute("name",f);c.setAttribute("value",d);e.appendChild(c)}function o(d,c,e){return function(h){if(e){document.getElementById(p.id+"_wrapper").appendChild(c)}var f=document.getElementById(p.id).getPluginConfig("display");d.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(c,g)}}function u(e){if(!e){return{}}var c={};for(var f in e){var g=e[f];for(var d in g){c[f+"."+d]=g[d]}}return c}function q(e,f){if(e[f]){var c=e[f];for(var g in c){var h=c[g];if(typeof h=="string"){if(!e[g]){e[g]=h}}else{for(var d in h){if(!e[g+"."+d]){e[g+"."+d]=h[d]}}}}delete e[f]}}function w(f){if(!f){return{}}var c={},d=[];for(var j in f){var g=b.utils.getPluginName(j);var h=f[j];d.push(j);for(var e in h){c[g+"."+e]=h[e]}}c.plugins=d.join(",");return c}function v(c){var e=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var d in c){if(typeof(c[d])=="object"){e+=d+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(c[d]))+"&"}else{e+=d+"="+encodeURIComponent(c[d])+"&"}}return e.substring(0,e.length-1)}this.embed=function(){n.id=p.id;var g;var c=b.utils.extend({},n);var f=c.width;var k=c.height;if(s.id+"_wrapper"==s.parentNode.id){g=document.getElementById(s.id+"_wrapper")}else{g=document.createElement("div");g.id=s.id+"_wrapper";b.utils.wrap(s,g);b.utils.css(g,{position:"relative",width:f,height:k})}var e=t.setupPlugins(p,c,o);if(e.length>0){b.utils.extend(c,w(e.plugins))}else{delete c.plugins}var E=["height","width","modes","events"];for(var B=0;B<E.length;B++){delete c[E[B]]}var d="opaque";if(c.wmode){d=c.wmode}q(c,"components");q(c,"providers");if(typeof c["dock.position"]!="undefined"){if(c["dock.position"].toString().toLowerCase()=="false"){c.dock=c["dock.position"];delete c["dock.position"]}}var l=b.utils.getCookies();for(var h in l){if(typeof(c[h])=="undefined"){c[h]=l[h]}}var j="#000000";var C;if(b.utils.isIE()){var m='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+j+'" width="100%" height="100%" id="'+s.id+'" name="'+s.id+'" tabindex=0"">';m+='<param name="movie" value="'+r.src+'">';m+='<param name="allowfullscreen" value="true">';m+='<param name="allowscriptaccess" value="always">';m+='<param name="seamlesstabbing" value="true">';m+='<param name="wmode" value="'+d+'">';m+='<param name="flashvars" value="'+v(c)+'">';m+="</object>";b.utils.setOuterHTML(s,m);C=document.getElementById(s.id)}else{var D=document.createElement("object");D.setAttribute("type","application/x-shockwave-flash");D.setAttribute("data",r.src);D.setAttribute("width","100%");D.setAttribute("height","100%");D.setAttribute("bgcolor","#000000");D.setAttribute("id",s.id);D.setAttribute("name",s.id);D.setAttribute("tabindex",0);a(D,"allowfullscreen","true");a(D,"allowscriptaccess","always");a(D,"seamlesstabbing","true");a(D,"wmode",d);a(D,"flashvars",v(c));s.parentNode.replaceChild(D,s);C=D}p.container=C;p.setPlayer(C,"flash")};this.supportsConfig=function(){if(b.utils.hasFlash()){if(n){var c=b.utils.getFirstPlaylistItemFromConfig(n);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return flashCanPlay(c.file,c.provider)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&flashCanPlay(c.levels[d].file,c.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(f,d){var e=["video","http","sound","image"];if(d&&(e.toString().indexOf(d)<0)){return true}var c=b.utils.extension(f);if(!c){return true}if(b.utils.exists(b.utils.extensionmap[c])&&!b.utils.exists(b.utils.extensionmap[c].flash)){return false}return true}}})(jwplayer);(function(b){b.embed.html5=function(m,h,a,l,j){function k(d,c,e){return function(g){var f=document.getElementById(m.id+"_displayarea");if(e){f.appendChild(c)}d.resize(f.clientWidth,f.clientHeight);c.left=f.style.left;c.top=f.style.top}}this.embed=function(){if(b.html5){l.setupPlugins(j,a,k);m.innerHTML="";var e=b.utils.extend({screencolor:"0x000000"},a);var f=["plugins","modes","events"];for(var d=0;d<f.length;d++){delete e[f[d]]}if(e.levels&&!e.sources){e.sources=a.levels}if(e.skin&&e.skin.toLowerCase().indexOf(".zip")>0){e.skin=e.skin.replace(/\.zip/i,".xml")}var c=new (b.html5(m)).setup(e);j.container=document.getElementById(j.id);j.setPlayer(c,"html5")}else{return null}};this.supportsConfig=function(){if(!!b.vid.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return html5CanPlay(b.vid,c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(b.vid,c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(e,f,d,g){if(g){return false}if(d&&d=="youtube"){return true}if(d&&d!="video"&&d!="http"&&d!="sound"){return false}if(navigator.userAgent.match(/BlackBerry/i)!==null){return false}var c=b.utils.extension(f);if(!b.utils.exists(c)||!b.utils.exists(b.utils.extensionmap[c])){return true}if(!b.utils.exists(b.utils.extensionmap[c].html5)){return false}if(b.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)){return true}return browserCanPlay(e,b.utils.extensionmap[c].html5)};browserCanPlay=function(c,d){if(!d){return true}if(c.canPlayType(d)){return true}else{if(d=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return c.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(b){b.embed.logo=function(s,t,A){var v={prefix:"http://l.longtailvideo.com/"+t+"/",file:"",link:"",linktarget:"_top",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=b.utils.css;var C;var w;u();function u(){q();B();y()}function q(){if(v.prefix){var c=b.version.split(/\W/).splice(0,2).join("/");if(v.prefix.indexOf(c)<0){v.prefix+=c+"/"}}w=b.utils.extend({},v,s)}function a(){var c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=w.hide?"none":"block";var d=w.position.toLowerCase().split("-");for(var e in d){c[d[e]]=w.margin}return c}function B(){C=document.createElement("img");C.id=A+"_jwplayer_logo";C.style.display="none";C.onload=function(c){_css(C,a());z()};if(!w.file){return}if(w.file.indexOf("http://")===0){C.src=w.file}else{C.src=w.prefix+w.file}}if(!w.file){return}function y(){if(w.link){C.onmouseover=x;C.onmouseout=z;C.onclick=r}else{this.mouseEnabled=false}}function r(c){if(typeof c!="undefined"){c.preventDefault();c.stopPropagation()}if(w.link){window.open(w.link,w.linktarget)}return}function z(c){if(w.link){C.style.opacity=w.out}return}function x(c){if(w.hide){C.style.opacity=w.over}return}return C}})(jwplayer);(function(b){b.html5=function(a){var d=a;this.setup=function(c){b.utils.extend(this,new b.html5.api(d,c));return this};return this}})(jwplayer);(function(e){var f=e.utils;var d=f.css;e.html5.view=function(V,X,ap){var ah=V;var ai=X;var ac=ap;var af;var ao;var b;var T;var a;var ab;var Q;var Z=false;var W,ad;var R,aq,ar;function Y(){af=document.createElement("div");af.id=ai.id;af.className=ai.className;_videowrapper=document.createElement("div");_videowrapper.id=af.id+"_video_wrapper";ai.id=af.id+"_video";d(af,{position:"relative",height:ac.height,width:ac.width,padding:0,backgroundColor:g(),zIndex:0});function g(){if(ah.skin.getComponentSettings("display")&&ah.skin.getComponentSettings("display").backgroundcolor){return ah.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}d(ai,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});d(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});f.wrap(ai,af);f.wrap(ai,_videowrapper);T=document.createElement("div");T.id=af.id+"_displayarea";af.appendChild(T);_instreamArea=document.createElement("div");_instreamArea.id=af.id+"_instreamarea";d(_instreamArea,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:100,background:"000000",display:"none"});af.appendChild(_instreamArea)}function al(){for(var h=0;h<ac.plugins.order.length;h++){var g=ac.plugins.order[h];if(f.exists(ac.plugins.object[g].getDisplayElement)){ac.plugins.object[g].height=f.parseDimension(ac.plugins.object[g].getDisplayElement().style.height);ac.plugins.object[g].width=f.parseDimension(ac.plugins.object[g].getDisplayElement().style.width);ac.plugins.config[g].currentPosition=ac.plugins.config[g].position}}N()}function aj(g){if(aq){return}if(ac.getMedia()&&ac.getMedia().hasChrome()){T.style.display="none"}else{switch(g.newstate){case g.newstate==e.api.events.state.PLAYING:T.style.display="none";break;default:T.style.display="block";break}}}function N(j){var g=ac.getMedia()?ac.getMedia().getDisplayElement():null;if(f.exists(g)){if(Q!=g){if(Q&&Q.parentNode){Q.parentNode.replaceChild(g,Q)}Q=g}for(var k=0;k<ac.plugins.order.length;k++){var h=ac.plugins.order[k];if(f.exists(ac.plugins.object[h].getDisplayElement)){ac.plugins.config[h].currentPosition=ac.plugins.config[h].position}}}am(ac.width,ac.height)}this.setup=function(){if(ac&&ac.getMedia()){ai=ac.getMedia().getDisplayElement()}Y();al();ah.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,aj);ah.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_LOADED,N);ah.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_META,function(h){aa()});var g;if(f.exists(window.onresize)){g=window.onresize}window.onresize=function(k){if(f.exists(g)){try{g(k)}catch(h){}}if(ah.jwGetFullscreen()){if(!U()){var j=f.getBoundingClientRect(document.body);ac.width=Math.abs(j.left)+Math.abs(j.right);ac.height=window.innerHeight;am(ac.width,ac.height)}}else{am(ac.width,ac.height)}}};function an(g){switch(g.keyCode){case 27:if(ah.jwGetFullscreen()){ah.jwSetFullscreen(false)}break;case 32:if(ah.jwGetState()!=e.api.events.state.IDLE&&ah.jwGetState()!=e.api.events.state.PAUSED){ah.jwPause()}else{ah.jwPlay()}break}}function am(r,h){if(af.style.display=="none"){return}var o=[].concat(ac.plugins.order);o.reverse();a=o.length+2;if(U()){try{if(ac.fullscreen&&!ac.getMedia().getDisplayElement().webkitDisplayingFullscreen){ac.fullscreen=false}}catch(l){}}if(!ac.fullscreen){ao=r;b=h;if(typeof r=="string"&&r.indexOf("%")>0){ao=f.getElementWidth(f.parentNode(af))*parseInt(r.replace("%"),"")/100}else{ao=r}if(typeof h=="string"&&h.indexOf("%")>0){b=f.getElementHeight(f.parentNode(af))*parseInt(h.replace("%"),"")/100}else{b=h}var n={top:0,bottom:0,left:0,right:0,width:ao,height:b,position:"absolute"};d(T,n);var g={};var k;try{k=ac.plugins.object.display.getDisplayElement()}catch(l){}if(k){g.width=f.parseDimension(k.style.width);g.height=f.parseDimension(k.style.height)}var j=f.extend({},n,g,{zIndex:_instreamArea.style.zIndex,display:_instreamArea.style.display});d(_instreamArea,j);d(af,{height:b,width:ao});var m=ae(P,o);if(m.length>0){a+=m.length;var p=m.indexOf("playlist"),q=m.indexOf("controlbar");if(p>=0&&q>=0){m[p]=m.splice(q,1,m[p])[0]}ae(ak,m,true)}W=f.getElementWidth(T);ad=f.getElementHeight(T)}else{if(!U()){ae(c,o,true)}}aa()}function ae(h,m,l){var k=[];for(var n=0;n<m.length;n++){var j=m[n];if(f.exists(ac.plugins.object[j].getDisplayElement)){if(ac.plugins.config[j].currentPosition!=e.html5.view.positions.NONE){var p=h(j,a--);if(!p){k.push(j)}else{var o=p.width;var g=p.height;if(l){delete p.width;delete p.height}d(ac.plugins.object[j].getDisplayElement(),p);ac.plugins.object[j].resize(o,g)}}else{d(ac.plugins.object[j].getDisplayElement(),{display:"none"})}}}return k}function P(h,g){if(f.exists(ac.plugins.object[h].getDisplayElement)){if(ac.plugins.config[h].position&&S(ac.plugins.config[h].position)){if(!f.exists(ac.plugins.object[h].getDisplayElement().parentNode)){af.appendChild(ac.plugins.object[h].getDisplayElement())}var j=at(h);j.zIndex=g;return j}}return false}function ak(h,g){if(!f.exists(ac.plugins.object[h].getDisplayElement().parentNode)){T.appendChild(ac.plugins.object[h].getDisplayElement())}return{position:"absolute",width:(f.getElementWidth(T)-f.parseDimension(T.style.left)-f.parseDimension(T.style.right)),height:(f.getElementHeight(T)-f.parseDimension(T.style.top)-f.parseDimension(T.style.bottom)),zIndex:g}}function c(h,g){return{position:"fixed",width:ac.width,height:ac.height,zIndex:g}}var aa=this.resizeMedia=function(){T.style.position="absolute";var g=ac.getMedia()?ac.getMedia().getDisplayElement():ar;if(!g){return}if(g&&g.tagName.toLowerCase()=="video"){if(!g.videoWidth||!g.videoHeight){return}g.style.position="absolute";f.fadeTo(g,1,0.25);if(g.parentNode){g.parentNode.style.left=T.style.left;g.parentNode.style.top=T.style.top}if(ac.fullscreen&&ah.jwGetStretching()==e.utils.stretching.EXACTFIT&&!f.isMobile()){var j=document.createElement("div");f.stretch(e.utils.stretching.UNIFORM,j,f.getElementWidth(T),f.getElementHeight(T),W,ad);f.stretch(e.utils.stretching.EXACTFIT,g,f.parseDimension(j.style.width),f.parseDimension(j.style.height),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300);d(g,{left:j.style.left,top:j.style.top})}else{f.stretch(ah.jwGetStretching(),g,f.getElementWidth(T),f.getElementHeight(T),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300)}}else{var h=ac.plugins.object.display.getDisplayElement();if(h){ac.getMedia().resize(f.parseDimension(h.style.width),f.parseDimension(h.style.height))}else{ac.getMedia().resize(f.parseDimension(T.style.width),f.parseDimension(T.style.height))}}};var at=this.getComponentPosition=function(h){var g={position:"absolute",margin:0,padding:0,top:null};var j=ac.plugins.config[h].currentPosition.toLowerCase();switch(j.toUpperCase()){case e.html5.view.positions.TOP:g.top=f.parseDimension(T.style.top);g.left=f.parseDimension(T.style.left);g.width=f.getElementWidth(T)-f.parseDimension(T.style.left)-f.parseDimension(T.style.right);g.height=ac.plugins.object[h].height;T.style[j]=f.parseDimension(T.style[j])+ac.plugins.object[h].height+"px";T.style.height=f.getElementHeight(T)-g.height+"px";break;case e.html5.view.positions.RIGHT:g.top=f.parseDimension(T.style.top);g.right=f.parseDimension(T.style.right);g.width=ac.plugins.object[h].width;g.height=f.getElementHeight(T)-f.parseDimension(T.style.top)-f.parseDimension(T.style.bottom);T.style.width=f.getElementWidth(T)-g.width+"px";break;case e.html5.view.positions.BOTTOM:g.bottom=f.parseDimension(T.style.bottom);g.left=f.parseDimension(T.style.left);g.width=f.getElementWidth(T)-f.parseDimension(T.style.left)-f.parseDimension(T.style.right);g.height=ac.plugins.object[h].height;T.style.height=f.getElementHeight(T)-g.height+"px";break;case e.html5.view.positions.LEFT:g.top=f.parseDimension(T.style.top);g.left=f.parseDimension(T.style.left);g.width=ac.plugins.object[h].width;g.height=f.getElementHeight(T)-f.parseDimension(T.style.top)-f.parseDimension(T.style.bottom);T.style[j]=f.parseDimension(T.style[j])+ac.plugins.object[h].width+"px";T.style.width=f.getElementWidth(T)-g.width+"px";break;default:break}return g};this.resize=am;var ag;this.fullscreen=function(j){var g;try{g=ac.getMedia().getDisplayElement()}catch(h){}if(U()&&g&&g.webkitSupportsFullscreen){if(j&&!g.webkitDisplayingFullscreen){try{f.transform(g);ag=T.style.display;T.style.display="none";g.webkitEnterFullscreen()}catch(k){}}else{if(!j){aa();if(g.webkitDisplayingFullscreen){try{g.webkitExitFullscreen()}catch(k){}}T.style.display=ag}}Z=false}else{if(j){document.onkeydown=an;clearInterval(ab);var l=f.getBoundingClientRect(document.body);ac.width=Math.abs(l.left)+Math.abs(l.right);ac.height=window.innerHeight;var m={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};d(af,m);m.zIndex=1;if(ac.getMedia()&&ac.getMedia().getDisplayElement()){d(ac.getMedia().getDisplayElement(),m)}m.zIndex=2;d(T,m);Z=true}else{document.onkeydown="";ac.width=ao;ac.height=b;d(af,{position:"relative",height:ac.height,width:ac.width,zIndex:0});Z=false}am(ac.width,ac.height)}};function S(g){return([e.html5.view.positions.TOP,e.html5.view.positions.RIGHT,e.html5.view.positions.BOTTOM,e.html5.view.positions.LEFT].toString().indexOf(g.toUpperCase())>-1)}function U(){if(ah.jwGetState()!=e.api.events.state.IDLE&&!Z&&(ac.getMedia()&&ac.getMedia().getDisplayElement()&&ac.getMedia().getDisplayElement().webkitSupportsFullscreen)&&f.useNativeFullscreen()){return true}return false}this.setupInstream=function(h,g){f.css(_instreamArea,{display:"block",position:"absolute"});T.style.display="none";_instreamArea.appendChild(h);ar=g;aq=true};var O=this.destroyInstream=function(){_instreamArea.style.display="none";_instreamArea.innerHTML="";T.style.display="block";ar=null;aq=false;am(ac.width,ac.height)}};e.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.html5.view.positions.BOTTOM,idlehide:false,hideplaylistcontrols:false,forcenextprev:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=d.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};d.html5.controlbar=function(ba,am){window.controlbar=this;var bb=ba;var aP=_utils.extend({},c,bb.skin.getComponentSettings("controlbar"),am);if(aP.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[aP.position]=="undefined"){return}if(_utils.mapLength(bb.skin.getComponentLayout("controlbar"))>0){aP.layout=bb.skin.getComponentLayout("controlbar")}var aM;var au;var aO;var aN;var a0="none";var be;var bc;var aL;var bf;var bg;var aX;var at={};var a6=false;var bj={};var aU;var bd=false;var a7;var bi;var ap=false;var aJ=false;var aH;var a=new d.html5.eventdispatcher();_utils.extend(this,a);function aB(){if(!aU){aU=bb.skin.getSkinElement("controlbar","background");if(!aU){aU={width:0,height:0,src:null}}}return aU}function aw(){aO=0;aN=0;au=0;if(!a6){var e={height:aB().height,backgroundColor:aP.backgroundcolor};aM=document.createElement("div");aM.id=bb.id+"_jwplayer_controlbar";_css(aM,e)}var f=(bb.skin.getSkinElement("controlbar","capLeft"));var g=(bb.skin.getSkinElement("controlbar","capRight"));if(f){aY("capLeft","left",false,aM)}aT("background",aM,{position:"absolute",height:aB().height,left:(f?f.width:0),zIndex:0},"img");if(aB().src){at.background.src=aB().src}aT("elements",aM,{position:"relative",height:aB().height,zIndex:1});if(g){aY("capRight","right",false,aM)}}this.getDisplayElement=function(){return aM};this.resize=function(e,g){ar();_utils.cancelAnimation(aM);bg=e;aX=g;if(aJ!=bb.jwGetFullscreen()){aJ=bb.jwGetFullscreen();if(!aJ){b()}bi=undefined}var f=aZ();aC({id:bb.id,duration:aL,position:bc});a1({id:bb.id,bufferPercent:bf});return f};this.show=function(){if(bd){bd=false;_show(aM);ao()}};this.hide=function(){if(!bd){bd=true;_hide(aM);aR()}};function a5(){var f=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var e in f){var g=f[e];if(typeof at[g]!="undefined"){bj[g]=_utils.getBoundingClientRect(at[g])}}}var bh;function b(e){if(bd){return}clearTimeout(a7);if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){switch(bb.jwGetState()){case d.api.events.state.PAUSED:case d.api.events.state.IDLE:if(aM&&aM.style.opacity<1&&(!aP.idlehide||_utils.exists(e))){bh=false;setTimeout(function(){if(!bh){an()}},100)}if(aP.idlehide){a7=setTimeout(function(){aV()},2000)}break;default:bh=true;if(e){an()}a7=setTimeout(function(){aV()},2000);break}}else{an()}}function aV(){if(!bd){aR();if(aM.style.opacity==1){_utils.cancelAnimation(aM);_utils.fadeTo(aM,0,0.1,1,0)}}}function an(){if(!bd){ao();if(aM.style.opacity==0){_utils.cancelAnimation(aM);_utils.fadeTo(aM,1,0.1,0,0)}}}function aF(e){return function(){if(ap&&bi!=e){bi=e;a.sendEvent(e,{component:"controlbar",boundingRect:av()})}}}var ao=aF(d.api.events.JWPLAYER_COMPONENT_SHOW);var aR=aF(d.api.events.JWPLAYER_COMPONENT_HIDE);function av(){if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){return _utils.getDimensions(aM)}else{return{x:0,y:0,width:0,height:0}}}function aT(e,f,g,j){var h;if(!a6){if(!j){j="div"}h=document.createElement(j);at[e]=h;h.id=aM.id+"_"+e;f.appendChild(h)}else{h=document.getElementById(aM.id+"_"+e)}if(_utils.exists(g)){_css(h,g)}return h}function ax(){if(bb.jwGetHeight()<=40){aP.layout=_utils.clone(aP.layout);for(var e=0;e<aP.layout.left.elements.length;e++){if(aP.layout.left.elements[e].name=="fullscreen"){aP.layout.left.elements.splice(e,1)}}for(e=0;e<aP.layout.right.elements.length;e++){if(aP.layout.right.elements[e].name=="fullscreen"){aP.layout.right.elements.splice(e,1)}}a8()}aA(aP.layout.left);aA(aP.layout.center);aA(aP.layout.right)}function aA(f,j){var e=f.position=="right"?"right":"left";var g=_utils.extend([],f.elements);if(_utils.exists(j)){g.reverse()}var f=aT(f.position+"Group",at.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var h=0;h<g.length;h++){aQ(g[h],e,f)}}function az(){return au++}function aQ(k,h,f){var l,n,m,o,e;if(!f){f=at.elements}if(k.type=="divider"){aY("divider"+az(),h,true,f,undefined,k.width,k.element);return}switch(k.name){case"play":aY("playButton",h,false,f);aY("pauseButton",h,true,f);aq("playButton","jwPlay");aq("pauseButton","jwPause");break;case"prev":aY("prevButton",h,true,f);aq("prevButton","jwPlaylistPrev");break;case"stop":aY("stopButton",h,true,f);aq("stopButton","jwStop");break;case"next":aY("nextButton",h,true,f);aq("nextButton","jwPlaylistNext");break;case"elapsed":aY("elapsedText",h,true,f,null,null,bb.skin.getSkinElement("controlbar","elapsedBackground"));break;case"time":n=!_utils.exists(bb.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:bb.skin.getSkinElement("controlbar","timeSliderCapLeft").width;m=!_utils.exists(bb.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:bb.skin.getSkinElement("controlbar","timeSliderCapRight").width;l=h=="left"?n:m;e={height:aB().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var j=aT("timeSlider",f,e);aY("timeSliderCapLeft",h,true,j,"relative");aY("timeSliderRail",h,false,j,"relative");aY("timeSliderBuffer",h,false,j,"absolute");aY("timeSliderProgress",h,false,j,"absolute");aY("timeSliderThumb",h,false,j,"absolute");aY("timeSliderCapRight",h,true,j,"relative");aW("time");break;case"fullscreen":aY("fullscreenButton",h,false,f);aY("normalscreenButton",h,true,f);aq("fullscreenButton","jwSetFullscreen",true);aq("normalscreenButton","jwSetFullscreen",false);break;case"volume":n=!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;m=!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapRight").width;l=h=="left"?n:m;o=bb.skin.getSkinElement("controlbar","volumeSliderRail").width+n+m;e={height:aB().height,position:"relative",width:o,"float":"left",styleFloat:"left",cssFloat:"left"};var g=aT("volumeSlider",f,e);aY("volumeSliderCapLeft",h,false,g,"relative");aY("volumeSliderRail",h,false,g,"relative");aY("volumeSliderProgress",h,false,g,"absolute");aY("volumeSliderThumb",h,false,g,"absolute");aY("volumeSliderCapRight",h,false,g,"relative");aW("volume");break;case"mute":aY("muteButton",h,false,f);aY("unmuteButton",h,true,f);aq("muteButton","jwSetMute",true);aq("unmuteButton","jwSetMute",false);break;case"duration":aY("durationText",h,true,f,null,null,bb.skin.getSkinElement("controlbar","durationBackground"));break}}function aY(m,j,o,f,l,p,n){if(_utils.exists(bb.skin.getSkinElement("controlbar",m))||m.indexOf("Text")>0||m.indexOf("divider")===0){var k={height:"100%",position:l?l:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((m.indexOf("next")===0||m.indexOf("prev")===0)&&(bb.jwGetPlaylist().length<2||aP.hideplaylistcontrols.toString()=="true")){if(aP.forcenextprev.toString()!="true"){o=false;k.display="none"}}var e;if(m.indexOf("Text")>0){m.innerhtml="00:00";k.font=aP.fontsize+"px/"+(aB().height+1)+"px "+aP.font;k.color=aP.fontcolor;k.textAlign="center";k.fontWeight=aP.fontweight;k.fontStyle=aP.fontstyle;k.cursor="default";if(n){k.background="url("+n.src+") no-repeat center";k.backgroundSize="100% "+aB().height+"px"}k.padding="0 5px"}else{if(m.indexOf("divider")===0){if(p){if(!isNaN(parseInt(p))){e=parseInt(p)}}else{if(n){var h=bb.skin.getSkinElement("controlbar",n);if(h){k.background="url("+h.src+") repeat-x center left";e=h.width}}else{k.background="url("+bb.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";e=bb.skin.getSkinElement("controlbar","divider").width}}}else{k.background="url("+bb.skin.getSkinElement("controlbar",m).src+") repeat-x center left";e=bb.skin.getSkinElement("controlbar",m).width}}if(j=="left"){if(o){aO+=e}}else{if(j=="right"){if(o){aN+=e}}}if(_utils.typeOf(f)=="undefined"){f=at.elements}k.width=e;if(a6){_css(at[m],k)}else{var g=aT(m,f,k);if(_utils.exists(bb.skin.getSkinElement("controlbar",m+"Over"))){g.onmouseover=function(q){g.style.backgroundImage=["url(",bb.skin.getSkinElement("controlbar",m+"Over").src,")"].join("")};g.onmouseout=function(q){g.style.backgroundImage=["url(",bb.skin.getSkinElement("controlbar",m).src,")"].join("")}}if(m.indexOf("divider")==0){g.setAttribute("class","divider")}g.innerHTML="&nbsp;"}}}function aK(){bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,aS);bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_ITEM,a3);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,a1);bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,a4);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,aC);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,aD);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,a9);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,ay)}function aS(){if(!aP.hideplaylistcontrols){if(bb.jwGetPlaylist().length>1||aP.forcenextprev.toString()=="true"){_show(at.nextButton);_show(at.prevButton)}else{_hide(at.nextButton);_hide(at.prevButton)}aZ();aI()}}function a3(e){aL=bb.jwGetPlaylist()[e.index].duration;aC({id:bb.id,duration:aL,position:0});a1({id:bb.id,bufferProgress:0})}function aI(){aC({id:bb.id,duration:bb.jwGetDuration(),position:0});a1({id:bb.id,bufferProgress:0});aD({id:bb.id,mute:bb.jwGetMute()});a4({id:bb.id,newstate:d.api.events.state.IDLE});a9({id:bb.id,volume:bb.jwGetVolume()})}function aq(f,e,g){if(a6){return}if(_utils.exists(bb.skin.getSkinElement("controlbar",f))){var h=at[f];if(_utils.exists(h)){_css(h,{cursor:"pointer"});if(e=="fullscreen"){h.onmouseup=function(j){j.stopPropagation();bb.jwSetFullscreen(!bb.jwGetFullscreen())}}else{h.onmouseup=function(j){j.stopPropagation();if(_utils.exists(g)){bb[e](g)}else{bb[e]()}}}}}}function aW(f){if(a6){return}var e=at[f+"Slider"];_css(at.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){a0=f};e.onmouseup=function(g){g.stopPropagation();aE(g.pageX)};e.onmousemove=function(h){if(a0=="time"){be=true;var g=h.pageX-bj[f+"Slider"].left-window.pageXOffset;_css(at[a0+"SliderThumb"],{left:g})}}}function aE(g){be=false;var h;if(a0=="time"){h=g-bj.timeSliderRail.left+window.pageXOffset;var e=h/bj.timeSliderRail.width*aL;if(e<0){e=0}else{if(e>aL){e=aL-3}}if(bb.jwGetState()==d.api.events.state.PAUSED||bb.jwGetState()==d.api.events.state.IDLE){bb.jwPlay()}bb.jwSeek(e)}else{if(a0=="volume"){h=g-bj.volumeSliderRail.left-window.pageXOffset;var f=Math.round(h/bj.volumeSliderRail.width*100);if(f<10){f=0}else{if(f>100){f=100}}if(bb.jwGetMute()){bb.jwSetMute(false)}bb.jwSetVolume(f)}}a0="none"}function a1(g){if(_utils.exists(g.bufferPercent)){bf=g.bufferPercent}if(bj.timeSliderRail){var e=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var f=bj.timeSliderRail.width;var h=isNaN(Math.round(f*bf/100))?0:Math.round(f*bf/100);_css(at.timeSliderBuffer,{width:h,left:e?e.width:0})}}function aD(e){if(e.mute){_hide(at.muteButton);_show(at.unmuteButton);_hide(at.volumeSliderProgress)}else{_show(at.muteButton);_hide(at.unmuteButton);_show(at.volumeSliderProgress)}}function a4(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(at.pauseButton);_hide(at.playButton)}else{_hide(at.pauseButton);_show(at.playButton)}b();if(e.newstate==d.api.events.state.IDLE){_hide(at.timeSliderBuffer);_hide(at.timeSliderProgress);_hide(at.timeSliderThumb);aC({id:bb.id,duration:bb.jwGetDuration(),position:0})}else{_show(at.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(at.timeSliderProgress);_show(at.timeSliderThumb)}}}function ay(e){a1({bufferPercent:0});aC(_utils.extend(e,{position:0,duration:aL}))}function aC(g){if(_utils.exists(g.position)){bc=g.position}if(_utils.exists(g.duration)){aL=g.duration}var j=(bc===aL===0)?0:bc/aL;var e=bj.timeSliderRail;if(e){var k=isNaN(Math.round(e.width*j))?0:Math.round(e.width*j);var f=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var h=k+(f?f.width:0);if(at.timeSliderProgress){_css(at.timeSliderProgress,{width:k,left:f?f.width:0});if(!be){if(at.timeSliderThumb){at.timeSliderThumb.style.left=h+"px"}}}}if(at.durationText){at.durationText.innerHTML=_utils.timeFormat(aL)}if(at.elapsedText){at.elapsedText.innerHTML=_utils.timeFormat(bc)}}function a8(){var k=at.elements.childNodes;var e,g;for(var h=0;h<k.length;h++){var f=k[h].childNodes;for(var j in f){if(isNaN(parseInt(j,10))){continue}if(f[j].id.indexOf(aM.id+"_divider")===0&&g&&g.id.indexOf(aM.id+"_divider")===0&&f[j].style.backgroundImage==g.style.backgroundImage){f[j].style.display="none"}else{if(f[j].id.indexOf(aM.id+"_divider")===0&&e&&e.style.display!="none"){f[j].style.display="block"}}if(f[j].style.display!="none"){g=f[j]}e=f[j]}}}function aG(){if(bb.jwGetFullscreen()){_show(at.normalscreenButton);_hide(at.fullscreenButton)}else{_hide(at.normalscreenButton);_show(at.fullscreenButton)}if(bb.jwGetState()==d.api.events.state.BUFFERING||bb.jwGetState()==d.api.events.state.PLAYING){_show(at.pauseButton);_hide(at.playButton)}else{_hide(at.pauseButton);_show(at.playButton)}if(bb.jwGetMute()==true){_hide(at.muteButton);_show(at.unmuteButton);_hide(at.volumeSliderProgress)}else{_show(at.muteButton);_hide(at.unmuteButton);_show(at.volumeSliderProgress)}}function aZ(){a8();aG();var m={width:bg};var e={"float":"left",styleFloat:"left",cssFloat:"left"};if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){m.left=aP.margin;m.width-=2*aP.margin;m.top=aX-aB().height-aP.margin;m.height=aB().height}var k=bb.skin.getSkinElement("controlbar","capLeft");var g=bb.skin.getSkinElement("controlbar","capRight");e.width=m.width-(k?k.width:0)-(g?g.width:0);var l=_utils.getBoundingClientRect(at.leftGroup).width;var h=_utils.getBoundingClientRect(at.rightGroup).width;var j=e.width-l-h-1;var n=j;var o=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var f=bb.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(o)){n-=o.width}if(_utils.exists(f)){n-=f.width}at.timeSlider.style.width=j+"px";at.timeSliderRail.style.width=n+"px";_css(aM,m);_css(at.elements,e);_css(at.background,e);a5();return m}function a9(f){if(_utils.exists(at.volumeSliderRail)){var j=isNaN(f.volume/100)?1:f.volume/100;var h=_utils.parseDimension(at.volumeSliderRail.style.width);var l=isNaN(Math.round(h*j))?0:Math.round(h*j);var e=_utils.parseDimension(at.volumeSliderRail.style.right);var k=(!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(at.volumeSliderProgress,{width:l,left:k});if(at.volumeSliderThumb){var g=(l-Math.round(_utils.parseDimension(at.volumeSliderThumb.style.width)/2));g=Math.min(Math.max(g,0),h-_utils.parseDimension(at.volumeSliderThumb.style.width));_css(at.volumeSliderThumb,{left:g})}if(_utils.exists(at.volumeSliderCapLeft)){_css(at.volumeSliderCapLeft,{left:0})}}}function ar(){try{var e=(bb.id.indexOf("_instream")>0?bb.id.replace("_instream",""):bb.id);aH=document.getElementById(e);aH.addEventListener("mousemove",b)}catch(f){_utils.log("Could not add mouse listeners to controlbar: "+f)}}function a2(){aw();ax();a5();a6=true;aK();aP.idlehide=(aP.idlehide.toString().toLowerCase()=="true");if(aP.position==d.html5.view.positions.OVER&&aP.idlehide){aM.style.opacity=0;ap=true}else{aM.style.opacity=1;setTimeout((function(){ap=true;ao()}),1)}ar();aI()}a2();return this}})(jwplayer);(function(d){var e=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var f=d.utils;d.html5.controller=function(av,Y,aD,aB){var aw=av,ax=aD,aA=aB,ak=Y,W=true,ac=-1,ai=false,aF=false,T,ag=[],at=false;var af=(f.exists(ax.config.debug)&&(ax.config.debug.toString().toLowerCase()=="console")),V=new d.html5.eventdispatcher(ak.id,af);f.extend(this,V);function X(g){if(at){V.sendEvent(g.type,g)}else{ag.push(g)}}function aq(j){if(!at){at=true;V.sendEvent(d.api.events.JWPLAYER_READY,j);if(d.utils.exists(window.playerReady)){playerReady(j)}if(d.utils.exists(window[aD.config.playerReady])){window[aD.config.playerReady](j)}while(ag.length>0){var g=ag.shift();V.sendEvent(g.type,g)}if(aD.config.autostart&&!d.utils.isIOS()){U()}while(al.length>0){var h=al.shift();ah(h.method,h.arguments)}}}ax.addGlobalListener(X);ax.addEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){ax.getMedia().play()});ax.addEventListener(d.api.events.JWPLAYER_MEDIA_TIME,function(g){if(g.position>=ax.playlist[ax.item].start&&ac>=0){ax.playlist[ax.item].start=ac;ac=-1}});ax.addEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,function(g){setTimeout(ae,25)});ax.addEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,U);ax.addEventListener(d.api.events.JWPLAYER_FULLSCREEN,au);function ad(){try{T=ad;if(!ai){ai=true;V.sendEvent(d.api.events.JWPLAYER_MEDIA_BEFOREPLAY);ai=false;if(aF){aF=false;T=null;return}}an(ax.item);if(ax.playlist[ax.item].levels[0].file.length>0){if(W||ax.state==d.api.events.state.IDLE){ax.getMedia().load(ax.playlist[ax.item]);W=false}else{if(ax.state==d.api.events.state.PAUSED){ax.getMedia().play()}}}return true}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g);T=null}return false}function aE(){try{if(ax.playlist[ax.item].levels[0].file.length>0){switch(ax.state){case d.api.events.state.PLAYING:case d.api.events.state.BUFFERING:if(ax.getMedia()){ax.getMedia().pause()}break;default:if(ai){aF=true}}}return true}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function aj(h){try{if(ax.playlist[ax.item].levels[0].file.length>0){if(typeof h!="number"){h=parseFloat(h)}switch(ax.state){case d.api.events.state.IDLE:if(ac<0){ac=ax.playlist[ax.item].start;ax.playlist[ax.item].start=h}if(!ai){ad()}break;case d.api.events.state.PLAYING:case d.api.events.state.PAUSED:case d.api.events.state.BUFFERING:ax.seek(h);break}}return true}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function am(h){T=null;if(!f.exists(h)){h=true}try{if((ax.state!=d.api.events.state.IDLE||h)&&ax.getMedia()){ax.getMedia().stop(h)}if(ai){aF=true}return true}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function az(){try{if(ax.playlist[ax.item].levels[0].file.length>0){if(ax.config.shuffle){an(a())}else{if(ax.item+1==ax.playlist.length){an(0)}else{an(ax.item+1)}}}if(ax.state!=d.api.events.state.IDLE){var g=ax.state;ax.state=d.api.events.state.IDLE;V.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}ad();return true}catch(h){V.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function aa(){try{if(ax.playlist[ax.item].levels[0].file.length>0){if(ax.config.shuffle){an(a())}else{if(ax.item===0){an(ax.playlist.length-1)}else{an(ax.item-1)}}}if(ax.state!=d.api.events.state.IDLE){var g=ax.state;ax.state=d.api.events.state.IDLE;V.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}ad();return true}catch(h){V.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function a(){var g=null;if(ax.playlist.length>1){while(!f.exists(g)){g=Math.floor(Math.random()*ax.playlist.length);if(g==ax.item){g=null}}}else{g=0}return g}function ab(h){if(!ax.playlist||!ax.playlist[h]){return false}try{if(ax.playlist[h].levels[0].file.length>0){var g=ax.state;if(g!==d.api.events.state.IDLE){if(ax.playlist[ax.item]&&ax.playlist[ax.item].provider==ax.playlist[h].provider){am(false)}else{am()}}an(h);ad()}return true}catch(j){V.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function an(g){if(!ax.playlist[g]){return}ax.setActiveMediaProvider(ax.playlist[g]);if(ax.item!=g){ax.item=g;W=true;V.sendEvent(d.api.events.JWPLAYER_PLAYLIST_ITEM,{index:g})}}function aC(h){try{an(ax.item);var g=ax.getMedia();switch(typeof(h)){case"number":g.volume(h);break;case"string":g.volume(parseInt(h,10));break}ax.setVolume(h);return true}catch(j){V.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ar(h){try{an(ax.item);var g=ax.getMedia();if(typeof h=="undefined"){g.mute(!ax.mute);ax.setMute(!ax.mute)}else{if(h.toString().toLowerCase()=="true"){g.mute(true);ax.setMute(true)}else{g.mute(false);ax.setMute(false)}}return true}catch(j){V.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function Z(h,j){try{ax.width=h;ax.height=j;aA.resize(h,j);V.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:ax.width,height:ax.height});return true}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ao(h,g){try{if(typeof h=="undefined"){h=!ax.fullscreen}if(typeof g=="undefined"){g=true}if(h!=ax.fullscreen){ax.fullscreen=(h.toString().toLowerCase()=="true");aA.fullscreen(ax.fullscreen);if(g){V.sendEvent(d.api.events.JWPLAYER_FULLSCREEN,{fullscreen:ax.fullscreen})}V.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:ax.width,height:ax.height})}return true}catch(j){V.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function b(h){try{am();if(ai){aF=false}ax.loadPlaylist(h);if(ax.playlist[ax.item].provider){an(ax.item);if(ax.config.autostart.toString().toLowerCase()=="true"&&!f.isIOS()&&!ai){ad()}return true}else{return false}}catch(g){V.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function U(g){if(!f.isIOS()){an(ax.item);if(ax.config.autostart.toString().toLowerCase()=="true"&&!f.isIOS()){ad()}}}function au(g){ao(g.fullscreen,false)}function ap(){try{return ax.getMedia().detachMedia()}catch(g){return null}}function ay(){try{var h=ax.getMedia().attachMedia();if(typeof T=="function"){T()}}catch(g){return null}}d.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function ae(){if(ax.state!=d.api.events.state.IDLE){return}T=ae;switch(ax.config.repeat.toUpperCase()){case d.html5.controller.repeatoptions.SINGLE:ad();break;case d.html5.controller.repeatoptions.ALWAYS:if(ax.item==ax.playlist.length-1&&!ax.config.shuffle){ab(0)}else{az()}break;case d.html5.controller.repeatoptions.LIST:if(ax.item==ax.playlist.length-1&&!ax.config.shuffle){am();an(0)}else{az()}break;default:am();break}}var al=[];function c(g){return function(){if(at){ah(g,arguments)}else{al.push({method:g,arguments:arguments})}}}function ah(g,h){var j=[];for(i=0;i<h.length;i++){j.push(h[i])}g.apply(this,j)}this.play=c(ad);this.pause=c(aE);this.seek=c(aj);this.stop=c(am);this.next=c(az);this.prev=c(aa);this.item=c(ab);this.setVolume=c(aC);this.setMute=c(ar);this.resize=c(Z);this.setFullscreen=c(ao);this.load=c(b);this.playerReady=aq;this.detachMedia=ap;this.attachMedia=ay;this.beforePlay=function(){return ai}}})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(b){_utils=b.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};b.html5.display=function(aL,ak){var aM={icons:true,showmute:false};var a=_utils.extend({},aM,ak);var aN=aL;var Y={};var aQ;var az;var aw;var ab;var aB;var ai;var aq;var ah=!_utils.exists(aN.skin.getComponentSettings("display").bufferrotation)?15:parseInt(aN.skin.getComponentSettings("display").bufferrotation,10);var aD=!_utils.exists(aN.skin.getComponentSettings("display").bufferinterval)?100:parseInt(aN.skin.getComponentSettings("display").bufferinterval,10);var ar=-1;var aA=b.api.events.state.IDLE;var ag=true;var aR;var at=false,Z=true;var aG="";var aO=false;var aH=false;var aJ;var ax,ad;var aj=new b.html5.eventdispatcher();_utils.extend(this,aj);var an={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:aI},display_icon:{style:{cursor:"pointer",position:"absolute",top:((aN.skin.getSkinElement("display","background").height-aN.skin.getSkinElement("display","playIcon").height)/2),left:((aN.skin.getSkinElement("display","background").width-aN.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((az-aN.skin.getSkinElement("display","background").height)/2),left:((aQ-aN.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",aN.skin.getSkinElement("display","background").src,")"]).join(""),width:aN.skin.getSkinElement("display","background").width,height:aN.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:aQ,height:az,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};aN.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,aF);aN.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,aF);aN.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,af);aN.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,aF);aN.jwAddEventListener(b.api.events.JWPLAYER_ERROR,aE);ae();function ae(){Y.display=ao("div","display");Y.display_text=ao("div","display_text");Y.display.appendChild(Y.display_text);Y.display_image=ao("img","display_image");Y.display_image.onerror=function(c){_hide(Y.display_image)};Y.display_image.onload=au;Y.display_icon=ao("div","display_icon");Y.display_iconBackground=ao("div","display_iconBackground");Y.display.appendChild(Y.display_image);Y.display_iconBackground.appendChild(Y.display_icon);Y.display.appendChild(Y.display_iconBackground);aP();setTimeout((function(){aH=true;if(a.icons.toString()=="true"){al()}}),1)}this.getDisplayElement=function(){return Y.display};this.resize=function(c,d){if(aN.jwGetFullscreen()&&_utils.useNativeFullscreen()){return}_css(Y.display,{width:c,height:d});_css(Y.display_text,{width:(c-10),top:((d-_utils.getBoundingClientRect(Y.display_text).height)/2)});_css(Y.display_iconBackground,{top:((d-aN.skin.getSkinElement("display","background").height)/2),left:((c-aN.skin.getSkinElement("display","background").width)/2)});if(aQ!=c||az!=d){aQ=c;az=d;aR=undefined;al()}if(!aN.jwGetFullscreen()){ax=c;ad=d}aS();aF({})};this.show=function(){if(aO){aO=false;aC(aN.jwGetState())}};this.hide=function(){if(!aO){ap();aO=true}};function au(c){aw=Y.display_image.naturalWidth;ab=Y.display_image.naturalHeight;aS();if(aN.jwGetState()==b.api.events.state.IDLE){_css(Y.display_image,{display:"block",opacity:0});_utils.fadeTo(Y.display_image,1,0.1)}at=false}function aS(){if(aN.jwGetFullscreen()&&aN.jwGetStretching()==b.utils.stretching.EXACTFIT){var c=document.createElement("div");_utils.stretch(b.utils.stretching.UNIFORM,c,aQ,az,ax,ad);_utils.stretch(b.utils.stretching.EXACTFIT,Y.display_image,_utils.parseDimension(c.style.width),_utils.parseDimension(c.style.height),aw,ab);_css(Y.display_image,{left:c.style.left,top:c.style.top})}else{_utils.stretch(aN.jwGetStretching(),Y.display_image,aQ,az,aw,ab)}}function ao(e,d){var c=document.createElement(e);c.id=aN.id+"_jwplayer_"+d;_css(c,an[d].style);return c}function aP(){for(var c in Y){if(_utils.exists(an[c].click)){Y[c].onclick=an[c].click}}}function aI(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(typeof aJ=="function"){aJ(c);return}else{if(aN.jwGetState()!=b.api.events.state.PLAYING){aN.jwPlay()}else{aN.jwPause()}}}function aa(c){if(aq){ap();return}Y.display_icon.style.backgroundImage=(["url(",aN.skin.getSkinElement("display",c).src,")"]).join("");_css(Y.display_icon,{width:aN.skin.getSkinElement("display",c).width,height:aN.skin.getSkinElement("display",c).height,top:(aN.skin.getSkinElement("display","background").height-aN.skin.getSkinElement("display",c).height)/2,left:(aN.skin.getSkinElement("display","background").width-aN.skin.getSkinElement("display",c).width)/2});aT();if(_utils.exists(aN.skin.getSkinElement("display",c+"Over"))){Y.display_icon.onmouseover=function(d){Y.display_icon.style.backgroundImage=["url(",aN.skin.getSkinElement("display",c+"Over").src,")"].join("")};Y.display_icon.onmouseout=function(d){Y.display_icon.style.backgroundImage=["url(",aN.skin.getSkinElement("display",c).src,")"].join("")}}else{Y.display_icon.onmouseover=null;Y.display_icon.onmouseout=null}}function ap(){if(a.icons.toString()=="true"){_hide(Y.display_icon);_hide(Y.display_iconBackground);ac()}}function aT(){if(!aO&&a.icons.toString()=="true"){_show(Y.display_icon);_show(Y.display_iconBackground);al()}}function aE(c){aq=true;ap();Y.display_text.innerHTML=c.message;_show(Y.display_text);Y.display_text.style.top=((az-_utils.getBoundingClientRect(Y.display_text).height)/2)+"px"}function am(){Z=false;Y.display_image.style.display="none"}function af(){aA=""}function aF(d){if((d.type==b.api.events.JWPLAYER_PLAYER_STATE||d.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&aq){aq=false;_hide(Y.display_text)}var c=aN.jwGetState();if(c==aA){return}aA=c;if(ar>=0){clearTimeout(ar)}if(ag||aN.jwGetState()==b.api.events.state.PLAYING||aN.jwGetState()==b.api.events.state.PAUSED){aC(aN.jwGetState())}else{ar=setTimeout(aK(aN.jwGetState()),500)}}function aK(c){return(function(){aC(c)})}function aC(c){if(_utils.exists(ai)){clearInterval(ai);ai=null;_utils.animations.rotate(Y.display_icon,0)}switch(c){case b.api.events.state.BUFFERING:if(_utils.isIPod()){am();ap()}else{if(aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()].provider=="sound"){ay()}aB=0;ai=setInterval(function(){aB+=ah;_utils.animations.rotate(Y.display_icon,aB%360)},aD);aa("bufferIcon");ag=true}break;case b.api.events.state.PAUSED:if(!_utils.isIPod()){if(aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()].provider!="sound"){_css(Y.display_image,{background:"transparent no-repeat center center"})}aa("playIcon");ag=true}break;case b.api.events.state.IDLE:if(aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()]&&aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()].image){ay()}else{am()}aa("playIcon");ag=true;break;default:if(aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()]&&aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()].provider=="sound"){if(_utils.isIPod()){am();ag=false}else{ay()}}else{am();ag=false}if(aN.jwGetMute()&&a.showmute){aa("muteIcon")}else{ap()}break}ar=-1}function ay(){if(aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()]){var c=aN.jwGetPlaylist()[aN.jwGetPlaylistIndex()].image;if(c){if(c!=aG){aG=c;Y.display_image.style.display="none";at=true;Y.display_image.src=_utils.getAbsolutePath(c)}else{if(!(at||Z)){Z=true;Y.display_image.style.opacity=0;Y.display_image.style.display="block";_utils.fadeTo(Y.display_image,1,0.1)}}}}}function av(c){return function(){if(!aH){return}if(!aO&&aR!=c){aR=c;aj.sendEvent(c,{component:"display",boundingRect:_utils.getDimensions(Y.display_iconBackground)})}}}var al=av(b.api.events.JWPLAYER_COMPONENT_SHOW);var ac=av(b.api.events.JWPLAYER_COMPONENT_HIDE);this.setAlternateClickHandler=function(c){aJ=c};this.revertAlternateClickHandler=function(){aJ=undefined};return this}})(jwplayer);(function(e){var f=e.utils;var d=f.css;e.html5.dock=function(H,P){function c(){return{align:e.html5.view.positions.RIGHT}}var X=f.extend({},c(),P);if(X.align=="FALSE"){return}var ab={};var V=[];var aa;var L;var ae=false;var Q=false;var ad={x:0,y:0,width:0,height:0};var a;var W;var b;var Y=new e.html5.eventdispatcher();f.extend(this,Y);var R=document.createElement("div");R.id=H.id+"_jwplayer_dock";R.style.opacity=1;U();H.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,T);this.getDisplayElement=function(){return R};this.setButton=function(g,k,j,h){if(!k&&ab[g]){f.arrays.remove(V,g);R.removeChild(ab[g].div);delete ab[g]}else{if(k){if(!ab[g]){ab[g]={}}ab[g].handler=k;ab[g].outGraphic=j;ab[g].overGraphic=h;if(!ab[g].div){V.push(g);ab[g].div=document.createElement("div");ab[g].div.style.position="absolute";R.appendChild(ab[g].div);ab[g].div.appendChild(document.createElement("div"));ab[g].div.childNodes[0].style.position="relative";ab[g].div.childNodes[0].style.width="100%";ab[g].div.childNodes[0].style.height="100%";ab[g].div.childNodes[0].style.zIndex=10;ab[g].div.childNodes[0].style.cursor="pointer";ab[g].div.appendChild(document.createElement("img"));ab[g].div.childNodes[1].style.position="absolute";ab[g].div.childNodes[1].style.left=0;ab[g].div.childNodes[1].style.top=0;if(H.skin.getSkinElement("dock","button")){ab[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}ab[g].div.childNodes[1].style.zIndex=9;ab[g].div.childNodes[1].style.cursor="pointer";ab[g].div.onmouseover=function(){if(ab[g].overGraphic){ab[g].div.childNodes[0].style.background=ac(ab[g].overGraphic)}if(H.skin.getSkinElement("dock","buttonOver")){ab[g].div.childNodes[1].src=H.skin.getSkinElement("dock","buttonOver").src}};ab[g].div.onmouseout=function(){if(ab[g].outGraphic){ab[g].div.childNodes[0].style.background=ac(ab[g].outGraphic)}if(H.skin.getSkinElement("dock","button")){ab[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}};if(H.skin.getSkinElement("dock","button")){ab[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}}if(ab[g].outGraphic){ab[g].div.childNodes[0].style.background=ac(ab[g].outGraphic)}else{if(ab[g].overGraphic){ab[g].div.childNodes[0].style.background=ac(ab[g].overGraphic)}}if(k){ab[g].div.onclick=function(l){l.preventDefault();e(H.id).callback(g);if(ab[g].overGraphic){ab[g].div.childNodes[0].style.background=ac(ab[g].overGraphic)}if(H.skin.getSkinElement("dock","button")){ab[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}}}}}Z(aa,L)};function ac(g){return"url("+g+") no-repeat center center"}function N(g){}function Z(u,h){U();if(V.length>0){var t=10;var j=t;var m=-1;var l=H.skin.getSkinElement("dock","button").height;var n=H.skin.getSkinElement("dock","button").width;var p=u-n-t;var k,q;if(X.align==e.html5.view.positions.LEFT){m=1;p=t}for(var s=0;s<V.length;s++){var g=Math.floor(j/h);if((j+l+t)>((g+1)*h)){j=((g+1)*h)+t;g=Math.floor(j/h)}var r=ab[V[s]].div;r.style.top=(j%h)+"px";r.style.left=(p+(H.skin.getSkinElement("dock","button").width+t)*g*m)+"px";var o={x:f.parseDimension(r.style.left),y:f.parseDimension(r.style.top),width:n,height:l};if(!k||(o.x<=k.x&&o.y<=k.y)){k=o}if(!q||(o.x>=q.x&&o.y>=q.y)){q=o}r.style.width=n+"px";r.style.height=l+"px";j+=H.skin.getSkinElement("dock","button").height+t}ad={x:k.x,y:k.y,width:q.x-k.x+q.width,height:k.y-q.y+q.height}}if(Q!=H.jwGetFullscreen()||aa!=u||L!=h){aa=u;L=h;Q=H.jwGetFullscreen();a=undefined;setTimeout(O,1)}}function ag(g){return function(){if(!ae&&a!=g&&V.length>0){a=g;Y.sendEvent(g,{component:"dock",boundingRect:ad})}}}function T(g){if(f.isMobile()){if(g.newstate==e.api.events.state.IDLE){I()}else{af()}}else{S()}}function S(g){if(ae){return}clearTimeout(b);if(P.position==e.html5.view.positions.OVER||H.jwGetFullscreen()){switch(H.jwGetState()){case e.api.events.state.PAUSED:case e.api.events.state.IDLE:if(R&&R.style.opacity<1&&(!P.idlehide||f.exists(g))){M()}if(P.idlehide){b=setTimeout(function(){K()},2000)}break;default:if(f.exists(g)){M()}b=setTimeout(function(){K()},2000);break}}else{M()}}var O=ag(e.api.events.JWPLAYER_COMPONENT_SHOW);var J=ag(e.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=Z;var I=function(){d(R,{display:"block"});if(ae){ae=false;O()}};var af=function(){d(R,{display:"none"});if(!ae){J();ae=true}};function K(){if(!ae){J();if(R.style.opacity==1){f.cancelAnimation(R);f.fadeTo(R,0,0.1,1,0)}}}function M(){if(!ae){O();if(R.style.opacity==0){f.cancelAnimation(R);f.fadeTo(R,1,0.1,0,0)}}}function U(){try{W=document.getElementById(H.id);W.addEventListener("mousemove",S)}catch(g){f.log("Could not add mouse listeners to dock: "+g)}}this.hide=af;this.show=I;return this}})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(!b.utils.exists(c)){c={}}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c)}}})(jwplayer);(function(d){var c=d.utils;d.html5.instream=function(K,af,M,a){var U={controlbarseekable:"always",controlbarpausable:true,controlbarstoppable:true,playlistclickable:true};var Q,ac,X=K,T=af,ai=M,O=a,Y,N,ad,P,am,al,ak,ag,aa,aj=false,ah,an,ae=this;this.load=function(g,f){ao();aj=true;ac=c.extend(U,f);Q=d.html5.playlistitem(g);S();an=document.createElement("div");an.id=ae.id+"_instream_container";O.detachMedia();Y=ak.getDisplayElement();al=T.playlist[T.item];am=X.jwGetState();if(am==d.api.events.state.BUFFERING||am==d.api.events.state.PLAYING){Y.pause()}N=Y.src?Y.src:Y.currentSrc;ad=Y.innerHTML;P=Y.currentTime;aa=new d.html5.display(ae,c.extend({},T.plugins.config.display));aa.setAlternateClickHandler(function(h){if(_fakemodel.state==d.api.events.state.PAUSED){ae.jwInstreamPlay()}else{V(d.api.events.JWPLAYER_INSTREAM_CLICK,h)}});an.appendChild(aa.getDisplayElement());if(!c.isMobile()){ag=new d.html5.controlbar(ae,c.extend({},T.plugins.config.controlbar,{}));if(T.plugins.config.controlbar.position==d.html5.view.positions.OVER){an.appendChild(ag.getDisplayElement())}else{var e=T.plugins.object.controlbar.getDisplayElement().parentNode;e.appendChild(ag.getDisplayElement())}}ai.setupInstream(an,Y);ab();ak.load(Q)};this.jwInstreamDestroy=function(f){if(!aj){return}aj=false;if(am!=d.api.events.state.IDLE){ak.load(al,false);ak.stop(false)}else{ak.stop(true)}ak.detachMedia();ai.destroyInstream();if(ag){try{ag.getDisplayElement().parentNode.removeChild(ag.getDisplayElement())}catch(e){}}V(d.api.events.JWPLAYER_INSTREAM_DESTROYED,{reason:(f?"complete":"destroyed")},true);O.attachMedia();if(am==d.api.events.state.BUFFERING||am==d.api.events.state.PLAYING){Y.play();if(T.playlist[T.item]==al){T.getMedia().seek(P)}}return};this.jwInstreamAddEventListener=function(f,e){ah.addEventListener(f,e)};this.jwInstreamRemoveEventListener=function(f,e){ah.removeEventListener(f,e)};this.jwInstreamPlay=function(){if(!aj){return}ak.play(true)};this.jwInstreamPause=function(){if(!aj){return}ak.pause(true)};this.jwInstreamSeek=function(e){if(!aj){return}ak.seek(e)};this.jwInstreamGetState=function(){if(!aj){return undefined}return _fakemodel.state};this.jwInstreamGetPosition=function(){if(!aj){return undefined}return _fakemodel.position};this.jwInstreamGetDuration=function(){if(!aj){return undefined}return _fakemodel.duration};this.playlistClickable=function(){return(!aj||ac.playlistclickable.toString().toLowerCase()=="true")};function W(){_fakemodel=new d.html5.model(this,T.getMedia()?T.getMedia().getDisplayElement():T.container,T);ah=new d.html5.eventdispatcher();X.jwAddEventListener(d.api.events.JWPLAYER_RESIZE,ab);X.jwAddEventListener(d.api.events.JWPLAYER_FULLSCREEN,ab)}function ao(){_fakemodel.setMute(T.mute);_fakemodel.setVolume(T.volume)}function S(){if(!ak){ak=new d.html5.mediavideo(_fakemodel,T.getMedia()?T.getMedia().getDisplayElement():T.container);ak.addGlobalListener(L);ak.addEventListener(d.api.events.JWPLAYER_MEDIA_META,b);ak.addEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,R);ak.addEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL,Z)}ak.attachMedia()}function L(e){if(aj){V(e.type,e)}}function Z(e){if(aj){ak.play()}}function R(e){if(aj){setTimeout(function(){ae.jwInstreamDestroy(true)},10)}}function b(e){if(e.metadata.width&&e.metadata.height){ai.resizeMedia()}}function V(f,e,g){if(aj||g){ah.sendEvent(f,e)}}function ab(){var f=T.plugins.object.display.getDisplayElement().style;if(ag){var e=T.plugins.object.controlbar.getDisplayElement().style;ag.resize(c.parseDimension(f.width),c.parseDimension(e.height));_css(ag.getDisplayElement(),c.extend({},e,{zIndex:1001,opacity:1}))}if(aa){aa.resize(c.parseDimension(f.width),c.parseDimension(f.height));_css(aa.getDisplayElement(),c.extend({},f,{zIndex:1000}))}if(ai){ai.resizeMedia()}}this.jwPlay=function(e){if(ac.controlbarpausable.toString().toLowerCase()=="true"){this.jwInstreamPlay()}};this.jwPause=function(e){if(ac.controlbarpausable.toString().toLowerCase()=="true"){this.jwInstreamPause()}};this.jwStop=function(){if(ac.controlbarstoppable.toString().toLowerCase()=="true"){this.jwInstreamDestroy();X.jwStop()}};this.jwSeek=function(e){switch(ac.controlbarseekable.toLowerCase()){case"always":this.jwInstreamSeek(e);break;case"backwards":if(_fakemodel.position>e){this.jwInstreamSeek(e)}break}};this.jwGetPosition=function(){};this.jwGetDuration=function(){};this.jwGetWidth=X.jwGetWidth;this.jwGetHeight=X.jwGetHeight;this.jwGetFullscreen=X.jwGetFullscreen;this.jwSetFullscreen=X.jwSetFullscreen;this.jwGetVolume=function(){return T.volume};this.jwSetVolume=function(e){ak.volume(e);X.jwSetVolume(e)};this.jwGetMute=function(){return T.mute};this.jwSetMute=function(e){ak.mute(e);X.jwSetMute(e)};this.jwGetState=function(){return _fakemodel.state};this.jwGetPlaylist=function(){return[Q]};this.jwGetPlaylistIndex=function(){return 0};this.jwGetStretching=function(){return T.config.stretching};this.jwAddEventListener=function(e,f){ah.addEventListener(e,f)};this.jwRemoveEventListener=function(e,f){ah.removeEventListener(e,f)};this.skin=X.skin;this.id=X.id+"_instream";W();return this}})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",linktarget:"_top",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(A,w){var x=A;var a;var J;var b;var F=false;G();function G(){z();x.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,E);K();C()}function z(){if(c.prefix){var f=A.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(f)<0){c.prefix+=f+"/"}}if(w.position==d.html5.view.positions.OVER){w.position=c.position}try{if(window.location.href.indexOf("https")==0){c.prefix=c.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com")}}catch(e){}J=d.utils.extend({},c,w)}function K(){b=document.createElement("img");b.id=x.id+"_jwplayer_logo";b.style.display="none";b.onload=function(e){_css(b,D());y()};if(!J.file){return}if(J.file.indexOf("/")>=0){b.src=J.file}else{b.src=J.prefix+J.file}}if(!J.file){return}this.resize=function(e,f){};this.getDisplayElement=function(){return b};function C(){if(J.link){b.onmouseover=H;b.onmouseout=y;b.onclick=v}else{this.mouseEnabled=false}}function v(e){if(typeof e!="undefined"){e.stopPropagation()}if(!F){return}x.jwPause();x.jwSetFullscreen(false);if(J.link){window.open(J.link,J.linktarget)}return}function y(e){if(J.link&&F){b.style.opacity=J.out}return}function H(e){if(F){b.style.opacity=J.over}return}function D(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=(J.hide.toString()=="true"&&!F)?"none":"block";var f=J.position.toLowerCase().split("-");for(var g in f){e[f[g]]=parseInt(J.margin)}return e}function B(){if(J.hide.toString()=="true"){b.style.display="block";b.style.opacity=0;d.utils.fadeTo(b,J.out,0.1,parseFloat(b.style.opacity));a=setTimeout(function(){I()},J.timeout*1000)}F=true}function I(){F=false;if(J.hide.toString()=="true"){d.utils.fadeTo(b,0,0.1,parseFloat(b.style.opacity))}}function E(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(a);B()}}return this}})(jwplayer);(function(f){var j={ended:f.api.events.state.IDLE,playing:f.api.events.state.PLAYING,pause:f.api.events.state.PAUSED,buffering:f.api.events.state.BUFFERING};var h=f.utils;var g=h.isMobile();var k={};f.html5.mediavideo=function(aB,ad){var Z={abort:ak,canplay:au,canplaythrough:au,durationchange:ao,emptied:ak,ended:au,error:av,loadeddata:ao,loadedmetadata:ao,loadstart:au,pause:au,play:ak,playing:au,progress:af,ratechange:ak,seeked:au,seeking:au,stalled:au,suspend:au,timeupdate:V,volumechange:ay,waiting:au,canshowcurrentframe:ak,dataunavailable:ak,empty:ak,load:aC,loadedfirstframe:ak,webkitfullscreenchange:az};var Y=new f.html5.eventdispatcher();h.extend(this,Y);var aA=aB,ah=ad,ax,aD,ag,a,ae,W,X=false,ap=false,al=false,aa,ac,d;c();this.load=function(m,l){if(typeof l=="undefined"){l=true}if(!ap){return}a=m;al=(a.duration>0);aA.duration=a.duration;h.empty(ax);d=0;at(m.levels);if(m.levels&&m.levels.length>0){if(m.levels.length==1||h.isIOS()){ax.src=m.levels[0].file}else{if(ax.src){ax.removeAttribute("src")}for(var n=0;n<m.levels.length;n++){var o=ax.ownerDocument.createElement("source");o.src=m.levels[n].file;ax.appendChild(o);d++}}}else{ax.src=m.file}ax.style.display="block";ax.style.opacity=1;ax.volume=aA.volume/100;ax.muted=aA.mute;if(g){e()}aa=ac=ag=false;aA.buffer=0;if(!h.exists(m.start)){m.start=0}W=(m.start>0)?m.start:-1;aq(f.api.events.JWPLAYER_MEDIA_LOADED);if((!g&&m.levels.length==1)||!X){ax.load()}X=false;if(l){am(f.api.events.state.BUFFERING);aq(f.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});ai()}if(ax.videoWidth>0&&ax.videoHeight>0){ao()}};this.play=function(){if(!ap){return}ai();if(ac){am(f.api.events.state.PLAYING)}else{am(f.api.events.state.BUFFERING)}ax.play()};this.pause=function(){if(!ap){return}ax.pause();am(f.api.events.state.PAUSED)};this.seek=function(l){if(!ap){return}if(!ag&&ax.readyState>0){if(!(aA.duration<=0||isNaN(aA.duration))&&!(aA.position<=0||isNaN(aA.position))){ax.currentTime=l;ax.play()}}else{W=l}};var aj=this.stop=function(n){if(!ap){return}if(!h.exists(n)){n=true}ar();if(n){ac=false;var m=navigator.userAgent;if(ax.webkitSupportsFullscreen){try{ax.webkitExitFullscreen()}catch(l){}}ax.style.opacity=0;an();if(h.isIE()){ax.src=""}else{ax.removeAttribute("src")}h.empty(ax);ax.load();X=true}am(f.api.events.state.IDLE)};this.fullscreen=function(l){if(l===true){this.resize("100%","100%")}else{this.resize(aA.config.width,aA.config.height)}};this.resize=function(l,m){};this.volume=function(l){if(!g){ax.volume=l/100;aq(f.api.events.JWPLAYER_MEDIA_VOLUME,{volume:(l/100)})}};this.mute=function(l){if(!g){ax.muted=l;aq(f.api.events.JWPLAYER_MEDIA_MUTE,{mute:l})}};this.getDisplayElement=function(){return ax};this.hasChrome=function(){return g&&(aD==f.api.events.state.PLAYING)};this.detachMedia=function(){ap=false;return this.getDisplayElement()};this.attachMedia=function(){ap=true};function ab(l,m){return function(n){if(h.exists(n.target.parentNode)){m(n)}}}function c(){aD=f.api.events.state.IDLE;ap=true;ax=aw();ax.setAttribute("x-webkit-airplay","allow");if(ah.parentNode){ah.parentNode.replaceChild(ax,ah)}}function aw(){var m;if(!k[aA.id]){if(ah.tagName.toLowerCase()=="video"){m=ah}else{m=document.createElement("video")}k[aA.id]=m;if(!m.id){m.id=ah.id}for(var l in Z){m.addEventListener(l,ab(l,Z[l]),true)}}return k[aA.id]}function am(m){if(m==f.api.events.state.PAUSED&&aD==f.api.events.state.IDLE){return}if(g){switch(m){case f.api.events.state.PLAYING:e();break;case f.api.events.state.BUFFERING:case f.api.events.state.PAUSED:an();break}}if(aD!=m){var l=aD;aA.state=aD=m;aq(f.api.events.JWPLAYER_PLAYER_STATE,{oldstate:l,newstate:m})}}function ak(l){}function ay(m){var l=Math.round(ax.volume*100);aq(f.api.events.JWPLAYER_MEDIA_VOLUME,{volume:l},true);aq(f.api.events.JWPLAYER_MEDIA_MUTE,{mute:ax.muted},true)}function af(l){if(!ap){return}var m;if(h.exists(l)&&l.lengthComputable&&l.total){m=l.loaded/l.total*100}else{if(h.exists(ax.buffered)&&(ax.buffered.length>0)){var n=ax.buffered.length-1;if(n>=0){m=ax.buffered.end(n)/ax.duration*100}}}if(h.useNativeFullscreen()&&h.exists(ax.webkitDisplayingFullscreen)){if(aA.fullscreen!=ax.webkitDisplayingFullscreen){aq(f.api.events.JWPLAYER_FULLSCREEN,{fullscreen:ax.webkitDisplayingFullscreen},true)}}if(ac===false&&aD==f.api.events.state.BUFFERING){aq(f.api.events.JWPLAYER_MEDIA_BUFFER_FULL);ac=true}if(!aa){if(m==100){aa=true}if(h.exists(m)&&(m>aA.buffer)){aA.buffer=Math.round(m);aq(f.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(m)})}}}function V(l){if(!ap){return}if(h.exists(l)&&h.exists(l.target)){if(al>0){if(!isNaN(l.target.duration)&&(isNaN(aA.duration)||aA.duration<1)){if(l.target.duration==Infinity){aA.duration=0}else{aA.duration=Math.round(l.target.duration*10)/10}}}if(!ag&&ax.readyState>0){am(f.api.events.state.PLAYING)}if(aD==f.api.events.state.PLAYING){if(ax.readyState>0&&(W>-1||!ag)){ag=true;try{if(ax.currentTime!=W&&W>-1){ax.currentTime=W;W=-1}}catch(m){}ax.volume=aA.volume/100;ax.muted=aA.mute}aA.position=aA.duration>0?(Math.round(l.target.currentTime*10)/10):0;aq(f.api.events.JWPLAYER_MEDIA_TIME,{position:aA.position,duration:aA.duration});if(aA.position>=aA.duration&&(aA.position>0||aA.duration>0)){U();return}}}af(l)}function aC(l){}function au(l){if(!ap){return}if(j[l.type]){if(l.type=="ended"){U()}else{am(j[l.type])}}}function ao(m){if(!ap){return}var n=Math.round(ax.duration*10)/10;var l={height:ax.videoHeight,width:ax.videoWidth,duration:n};if(!al){if((aA.duration<n||isNaN(aA.duration))&&ax.duration!=Infinity){aA.duration=n}}aq(f.api.events.JWPLAYER_MEDIA_META,{metadata:l})}function av(l){if(!ap){return}if(aD==f.api.events.state.IDLE){return}var m="There was an error: ";if((l.target.error&&l.target.tagName.toLowerCase()=="video")||l.target.parentNode.error&&l.target.parentNode.tagName.toLowerCase()=="video"){var n=!h.exists(l.target.error)?l.target.parentNode.error:l.target.error;switch(n.code){case n.MEDIA_ERR_ABORTED:h.log("User aborted the video playback.");return;case n.MEDIA_ERR_NETWORK:m="A network error caused the video download to fail part-way: ";break;case n.MEDIA_ERR_DECODE:m="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case n.MEDIA_ERR_SRC_NOT_SUPPORTED:m="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:m="An unknown error occurred: ";break}}else{if(l.target.tagName.toLowerCase()=="source"){d--;if(d>0){return}if(h.userAgentMatch(/firefox/i)){h.log("The video could not be loaded, either because the server or network failed or because the format is not supported.");aj(false);return}else{m="The video could not be loaded, either because the server or network failed or because the format is not supported: "}}else{h.log("An unknown error occurred.  Continuing...");return}}aj(false);m+=b();_error=true;aq(f.api.events.JWPLAYER_ERROR,{message:m});return}function b(){var l="";for(var m in a.levels){var n=a.levels[m];var o=ah.ownerDocument.createElement("source");l+=f.utils.getAbsolutePath(n.file);if(m<(a.levels.length-1)){l+=", "}}return l}function ai(){if(!h.exists(ae)){ae=setInterval(function(){af()},100)}}function ar(){clearInterval(ae);ae=null}function U(){if(aD==f.api.events.state.PLAYING){aj(false);aq(f.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE);aq(f.api.events.JWPLAYER_MEDIA_COMPLETE)}}function az(l){if(h.exists(ax.webkitDisplayingFullscreen)){if(aA.fullscreen&&!ax.webkitDisplayingFullscreen){aq(f.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false},true)}}}function at(l){if(l.length>0&&h.userAgentMatch(/Safari/i)){var n=-1;for(var m=0;m<l.length;m++){switch(h.extension(l[m].file)){case"mp4":if(n<0){n=m}break;case"webm":l.splice(m,1);break}}if(n>0){var o=l.splice(n,1)[0];l.unshift(o)}}}function e(){setTimeout(function(){ax.setAttribute("controls","controls")},100)}function an(){setTimeout(function(){ax.removeAttribute("controls")},250)}function aq(n,l,m){if(ap||m){if(l){Y.sendEvent(n,l)}else{Y.sendEvent(n)}}}}})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediayoutube=function(r,v){var u=new e.html5.eventdispatcher();e.utils.extend(this,u);var p=r;var s=document.getElementById(v.id);var t=e.api.events.state.IDLE;var b,c;function q(h){if(t!=h){var g=t;p.state=h;t=h;u.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:h})}}this.getDisplayElement=this.detachMedia=function(){return s};this.attachMedia=function(){};this.play=function(){if(t==e.api.events.state.IDLE){u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);q(e.api.events.state.PLAYING)}else{if(t==e.api.events.state.PAUSED){q(e.api.events.state.PLAYING)}}};this.pause=function(){q(e.api.events.state.PAUSED)};this.seek=function(g){};this.stop=function(g){if(!_utils.exists(g)){g=true}p.position=0;q(e.api.events.state.IDLE);if(g){d(s,{display:"none"})}};this.volume=function(g){p.setVolume(g);u.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){s.muted=g;u.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g})};this.resize=function(g,h){if(g*h>0&&b){b.width=c.width=g;b.height=c.height=h}};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(p.config.width,p.config.height)}};this.load=function(g){a(g);d(b,{display:"block"});q(e.api.events.state.BUFFERING);u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});u.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(t!=e.api.events.state.IDLE)};function a(g){var k=g.levels[0].file;k=["http://www.youtube.com/v/",w(k),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");b=document.createElement("object");b.id=s.id;b.style.position="absolute";var h={movie:k,allowfullscreen:"true",allowscriptaccess:"always"};for(var n in h){var j=document.createElement("param");j.name=n;j.value=h[n];b.appendChild(j)}c=document.createElement("embed");b.appendChild(c);var m={src:k,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:b.width,height:b.height};for(var l in m){c.setAttribute(l,m[l])}b.appendChild(c);b.style.zIndex=2147483000;if(s!=b&&s.parentNode){s.parentNode.replaceChild(b,s)}s=b}function w(j){var k=j.split(/\?|\#\!/);var g="";for(var h=0;h<k.length;h++){if(k[h].substr(0,2)=="v="){g=k[h].substr(2)}}if(g==""){if(j.indexOf("/v/")>=0){g=j.substr(j.indexOf("/v/")+3)}else{if(j.indexOf("youtu.be")>=0){g=j.substr(j.indexOf("youtu.be/")+9)}else{g=j}}}if(g.indexOf("?")>-1){g=g.substr(0,g.indexOf("?"))}if(g.indexOf("&")>-1){g=g.substr(0,g.indexOf("&"))}return g}this.embed=c;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];var _utils=jwplayer.utils;jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _cookies=_utils.getCookies();var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,container:_container,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:_cookies.volume?_cookies.volume:90,mute:_cookies.mute&&_cookies.mute.toString().toLowerCase()=="true"?true:false,fullscreen:false,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(!jwplayer.utils.exists(config[path[edge]])){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(jwplayer.utils.isMobile()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}var playlistVisible=false;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{if(pluginName=="playlist"){playlistVisible=true}_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(_model.plugins.config.controlbar&&playlistVisible){_model.plugins.config.controlbar.hideplaylistcontrols=true}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}if(typeof _model.plugins.config.dock.idlehide=="undefined"){try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_model.position=0;_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0;_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);_model.item=_model.config.item>=0?_model.config.item:0;if(!_model.playlist[0].provider&&_model.playlist[0].file){_loadExternal(_model.playlist[0].file)}else{_loadComplete()}};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(result)){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){switch(evt.type){case jwplayer.api.events.JWPLAYER_MEDIA_LOADED:_container=_media.getDisplayElement();break;case jwplayer.api.events.JWPLAYER_MEDIA_MUTE:this.mute=evt.mute;break;case jwplayer.api.events.JWPLAYER_MEDIA_VOLUME:this.volume=evt.volume;break}_eventDispatcher.sendEvent(evt.type,evt)}var _mediaProviders={};_model.setActiveMediaProvider=function(playlistItem){if(playlistItem.provider=="audio"){playlistItem.provider="sound"}var provider=playlistItem.provider;var current=_media?_media.getDisplayElement():null;if(provider=="sound"||provider=="http"||provider==""){provider="video"}if(!jwplayer.utils.exists(_mediaProviders[provider])){switch(provider){case"video":_media=new jwplayer.html5.mediavideo(_model,current?current:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,current?current:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[provider]=_media}else{if(_media!=_mediaProviders[provider]){if(_media){_media.stop()}_media=_mediaProviders[provider]}}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setVolume=function(newVol){_utils.saveCookie("volume",newVol);_model.volume=newVol};_model.setMute=function(state){_utils.saveCookie("mute",state);_model.mute=state};_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0){jwplayer.utils.log("No plugins to set up");return _model}for(var i=0;i<_model.plugins.order.length;i++){try{var pluginName=_model.plugins.order[i];if(jwplayer.utils.exists(jwplayer.html5[pluginName])){if(pluginName=="playlist"){_model.plugins.object[pluginName]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[pluginName])}else{_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[pluginName].addGlobalListener=="function"){_model.plugins.object[pluginName].addGlobalListener(forward)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]))}}}else{e.push(new b.html5.playlistitem(a))}return e}})(jwplayer);(function(e){var f={size:180,position:e.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var d={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=e.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};e.html5.playlistcomponent=function(L,K){var c=L;var Z=e.utils.extend({},f,c.skin.getComponentSettings("playlist"),K);if(Z.position==e.html5.view.positions.NONE||typeof e.html5.view.positions[Z.position]=="undefined"){return}var b;var T;var J;var aa;var X;var Y;var U=-1;var W={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return b};this.resize=function(g,j){T=g;J=j;if(c.jwGetFullscreen()){_hide(b)}else{var h={display:"block",width:T,height:J};_css(b,h)}};this.show=function(){_show(b)};this.hide=function(){_hide(b)};function V(){b=document.createElement("div");b.id=c.id+"_jwplayer_playlistcomponent";b.style.overflow="hidden";switch(Z.position){case e.html5.view.positions.RIGHT:case e.html5.view.positions.LEFT:b.style.width=Z.size+"px";break;case e.html5.view.positions.TOP:case e.html5.view.positions.BOTTOM:b.style.height=Z.size+"px";break}M();if(W.item){Z.itemheight=W.item.height}b.style.backgroundColor="#C6C6C6";c.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_LOADED,I);c.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_ITEM,F);c.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,S)}function P(){var g=document.createElement("ul");_css(g,{width:b.style.width,minWidth:b.style.width,height:b.style.height,backgroundColor:Z.backgroundcolor,backgroundImage:W.background?"url("+W.background.src+")":"",color:Z.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:d[Z.font]?d[Z.font]:d._sans,fontSize:(Z.fontsize?Z.fontsize:11)+"px",fontStyle:Z.fontstyle,fontWeight:Z.fontweight,overflowY:"auto"});return g}function a(g){return function(){var k=Y.getElementsByClassName("item")[g];var j=Z.fontcolor;var h=W.item?"url("+W.item.src+")":"";if(g==c.jwGetPlaylistIndex()){if(Z.activecolor!==""){j=Z.activecolor}if(W.itemActive){h="url("+W.itemActive.src+")"}}_css(k,{color:Z.overcolor!==""?Z.overcolor:j,backgroundImage:W.itemOver?"url("+W.itemOver.src+")":h})}}function Q(g){return function(){var k=Y.getElementsByClassName("item")[g];var j=Z.fontcolor;var h=W.item?"url("+W.item.src+")":"";if(g==c.jwGetPlaylistIndex()){if(Z.activecolor!==""){j=Z.activecolor}if(W.itemActive){h="url("+W.itemActive.src+")"}}_css(k,{color:j,backgroundImage:h})}}function N(o){var g=aa[o];var h=document.createElement("li");h.className="item";_css(h,{height:Z.itemheight,display:"block",cursor:"pointer",backgroundImage:W.item?"url("+W.item.src+")":"",backgroundSize:"100% "+Z.itemheight+"px"});h.onmouseover=a(o);h.onmouseout=Q(o);var n=document.createElement("div");var r=new Image();var m=0;var l=0;var k=0;if(E()&&(g.image||g["playlist.image"]||W.itemImage)){r.className="image";if(W.itemImage){m=(Z.itemheight-W.itemImage.height)/2;l=W.itemImage.width;k=W.itemImage.height}else{l=Z.itemheight*4/3;k=Z.itemheight}_css(n,{height:k,width:l,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:m+"px",position:"relative"});_css(r,{position:"relative"});n.appendChild(r);r.onload=function(){e.utils.stretch(e.utils.stretching.FILL,r,l,k,this.naturalWidth,this.naturalHeight)};if(g["playlist.image"]){r.src=g["playlist.image"]}else{if(g.image){r.src=g.image}else{if(W.itemImage){r.src=W.itemImage.src}}}h.appendChild(n)}var s=T-l-m*2;if(J<Z.itemheight*aa.length){s-=15}var t=document.createElement("div");_css(t,{position:"relative",height:"100%",overflow:"hidden"});var q=document.createElement("span");if(g.duration>0){q.className="duration";_css(q,{fontSize:(Z.fontsize?Z.fontsize:11)+"px",fontWeight:(Z.fontweight?Z.fontweight:"bold"),width:"40px",height:Z.fontsize?Z.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});q.innerHTML=_utils.timeFormat(g.duration);t.appendChild(q)}var j=document.createElement("span");j.className="title";_css(j,{padding:"5px 5px 0 "+(m?0:"5px"),height:Z.fontsize?Z.fontsize+10:20,lineHeight:Z.fontsize?Z.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((g.duration>0)?s-50:s)-10+"px",fontSize:(Z.fontsize?Z.fontsize:13)+"px",fontWeight:(Z.fontweight?Z.fontweight:"bold")});j.innerHTML=g?g.title:"";t.appendChild(j);if(g.description){var p=document.createElement("span");p.className="description";_css(p,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:j.style.paddingLeft,paddingRight:j.style.paddingRight,lineHeight:(Z.fontsize?Z.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});p.innerHTML=g.description;t.appendChild(p)}h.appendChild(t);return h}function I(j){b.innerHTML="";aa=H();if(!aa){return}items=[];Y=P();for(var h=0;h<aa.length;h++){var k=N(h);k.onclick=O(h);Y.appendChild(k);items.push(k)}U=c.jwGetPlaylistIndex();Q(U)();b.appendChild(Y);if(_utils.isIOS()&&window.iScroll){Y.style.height=Z.itemheight*aa.length+"px";var g=new iScroll(b.id)}}function H(){var h=c.jwGetPlaylist();var g=[];for(var j=0;j<h.length;j++){if(!h[j]["ova.hidden"]){g.push(h[j])}}return g}function O(g){return function(){c.jwPlaylistItem(g);c.jwPlay(true)}}function R(){Y.scrollTop=c.jwGetPlaylistIndex()*Z.itemheight}function E(){return Z.thumbs.toString().toLowerCase()=="true"}function F(g){if(U>=0){Q(U)();U=g.index}Q(g.index)();R()}function S(){if(Z.position==e.html5.view.positions.OVER){switch(c.jwGetState()){case e.api.events.state.IDLE:_show(b);break;default:_hide(b);break}}}function M(){for(var g in W){W[g]=G(g)}}function G(g){return c.skin.getSkinElement("playlist",g)}V();return this}})(jwplayer);(function(c){c.html5.playlistitem=function(b){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var f=c.utils.extend({},a,b);if(f.type){f.provider=f.type;delete f.type}if(f.levels.length===0){f.levels[0]=new c.html5.playlistitemlevel(f)}if(!f.provider){f.provider=d(f.levels[0])}else{f.provider=f.provider.toLowerCase()}return f};function d(b){if(c.utils.isYouTube(b.file)){return"youtube"}else{var a=c.utils.extension(b.file);var h;if(a&&c.utils.extensionmap[a]){if(a=="m3u8"){return"video"}h=c.utils.extensionmap[a].html5}else{if(b.type){h=b.type}}if(h){var g=h.split("/")[0];if(g=="audio"){return"sound"}else{if(g=="video"){return g}}}}return""}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(b.utils.exists(a[f])){e[f]=a[f]}}return e}})(jwplayer);(function(b){b.html5.playlistloader=function(){var f=new b.html5.eventdispatcher();b.utils.extend(this,f);this.load=function(c){b.utils.ajax(c,e,a)};function e(d){var j=[];try{var j=b.utils.parsers.rssparser.parse(d.responseXML.firstChild);f.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new b.html5.playlist({playlist:j})})}catch(c){a("Could not parse the playlist")}}function a(c){f.sendEvent(b.api.events.JWPLAYER_ERROR,{message:c?c:"Could not load playlist an unknown reason."})}}})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c()},function(){new b.html5.skinloader("",function(e){d=true;a=e;c()})})};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g]}catch(c){b.utils.log("No such skin component / element: ",[h,g])}}return null};this.getComponentSettings=function(c){if(d&&a&&a[c]){return a[c].settings}return null};this.getComponentLayout=function(c){if(d){return a[c].layout}return null}}})(jwplayer);(function(b){b.html5.skinloader=function(D,u,z){var v={};var G=u;var y=z;var E=true;var A;var w=D;var I=false;function x(){if(typeof w!="string"||w===""){F(b.html5.defaultSkin().xml)}else{b.utils.ajax(b.utils.getAbsolutePath(w),function(d){try{if(b.utils.exists(d.responseXML)){F(d.responseXML);return}}catch(c){B()}F(b.html5.defaultSkin().xml)},function(c){F(b.html5.defaultSkin().xml)})}}function F(m){var U=m.getElementsByTagName("component");if(U.length===0){return}for(var p=0;p<U.length;p++){var W=U[p].getAttribute("name");var X={settings:{},elements:{},layout:{}};v[W]=X;var s=U[p].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var S=0;S<s.length;S++){H(s[S],W)}var k=U[p].getElementsByTagName("settings")[0];if(k&&k.childNodes.length>0){var j=k.getElementsByTagName("setting");for(var d=0;d<j.length;d++){var c=j[d].getAttribute("name");var n=j[d].getAttribute("value");var o=/color$/.test(c)?"color":null;v[W].settings[c]=b.utils.typechecker(n,o)}}var h=U[p].getElementsByTagName("layout")[0];if(h&&h.childNodes.length>0){var g=h.getElementsByTagName("group");for(var q=0;q<g.length;q++){var Y=g[q];v[W].layout[Y.getAttribute("position")]={elements:[]};for(var e=0;e<Y.attributes.length;e++){var V=Y.attributes[e];v[W].layout[Y.getAttribute("position")][V.name]=V.value}var f=Y.getElementsByTagName("*");for(var r=0;r<f.length;r++){var T=f[r];v[W].layout[Y.getAttribute("position")].elements.push({type:T.tagName});for(var R=0;R<T.attributes.length;R++){var l=T.attributes[R];v[W].layout[Y.getAttribute("position")].elements[r][l.name]=l.value}if(!b.utils.exists(v[W].layout[Y.getAttribute("position")].elements[r].name)){v[W].layout[Y.getAttribute("position")].elements[r].name=T.tagName}}}}E=false;a()}}function a(){clearInterval(A);if(!I){A=setInterval(function(){t()},100)}}function H(k,d){var e=new Image();var h=k.getAttribute("name");var f=k.getAttribute("src");var c;if(f.indexOf("data:image/png;base64,")===0){c=f}else{var g=b.utils.getAbsolutePath(w);var j=g.substr(0,g.lastIndexOf("/"));c=[j,d,f].join("/")}v[d].elements[h]={height:0,width:0,src:"",ready:false,image:e};e.onload=function(l){C(e,h,d)};e.onerror=function(l){I=true;a();y()};e.src=c}function B(){for(var f in v){var d=v[f];for(var g in d.elements){var c=d.elements[g];var e=c.image;e.onload=null;e.onerror=null;delete c.image;delete d.elements[g]}delete v[f]}}function t(){for(var d in v){if(d!="properties"){for(var c in v[d].elements){if(!v[d].elements[c].ready){return}}}}if(E===false){clearInterval(A);G(v)}}function C(e,c,d){if(v[d]&&v[d].elements[c]){v[d].elements[c].height=e.height;v[d].elements[c].width=e.width;v[d].elements[c].src=e.src;v[d].elements[c].ready=true;a()}else{b.utils.log("Loaded an image for a missing element: "+d+"."+c)}}x()}})(jwplayer);(function(b){b.html5.api=function(B,a){var r={};var x=document.createElement("div");B.parentNode.replaceChild(x,B);x.id=B.id;r.version=b.version;r.id=x.id;var s=new b.html5.model(r,x,a);var u=new b.html5.view(r,x,s);var t=new b.html5.controller(r,x,s,u);r.skin=new b.html5.skin();r.jwPlay=function(c){if(typeof c=="undefined"){y()}else{if(c.toString().toLowerCase()=="true"){t.play()}else{t.pause()}}};r.jwPause=function(c){if(typeof c=="undefined"){y()}else{if(c.toString().toLowerCase()=="true"){t.pause()}else{t.play()}}};function y(){if(s.state==b.api.events.state.PLAYING||s.state==b.api.events.state.BUFFERING){t.pause()}else{t.play()}}r.jwStop=t.stop;r.jwSeek=t.seek;r.jwPlaylistItem=function(c){if(A){if(A.playlistClickable()){A.jwInstreamDestroy();return t.item(c)}}else{return t.item(c)}};r.jwPlaylistNext=t.next;r.jwPlaylistPrev=t.prev;r.jwResize=t.resize;r.jwLoad=t.load;r.jwDetachMedia=t.detachMedia;r.jwAttachMedia=t.attachMedia;function v(c){return function(){return s[c]}}function z(e,c,d){return function(){var f=s.plugins.object[e];if(f&&f[c]&&typeof f[c]=="function"){f[c].apply(f,d)}}}r.jwGetPlaylistIndex=v("item");r.jwGetPosition=v("position");r.jwGetDuration=v("duration");r.jwGetBuffer=v("buffer");r.jwGetWidth=v("width");r.jwGetHeight=v("height");r.jwGetFullscreen=v("fullscreen");r.jwSetFullscreen=t.setFullscreen;r.jwGetVolume=v("volume");r.jwSetVolume=t.setVolume;r.jwGetMute=v("mute");r.jwSetMute=t.setMute;r.jwGetStretching=function(){return s.stretching.toUpperCase()};r.jwGetState=v("state");r.jwGetVersion=function(){return r.version};r.jwGetPlaylist=function(){return s.playlist};r.jwAddEventListener=t.addEventListener;r.jwRemoveEventListener=t.removeEventListener;r.jwSendEvent=t.sendEvent;r.jwDockSetButton=function(c,f,e,d){if(s.plugins.object.dock&&s.plugins.object.dock.setButton){s.plugins.object.dock.setButton(c,f,e,d)}};r.jwControlbarShow=z("controlbar","show");r.jwControlbarHide=z("controlbar","hide");r.jwDockShow=z("dock","show");r.jwDockHide=z("dock","hide");r.jwDisplayShow=z("display","show");r.jwDisplayHide=z("display","hide");var A;r.jwLoadInstream=function(c,d){if(!A){A=new b.html5.instream(r,s,u,t)}setTimeout(function(){A.load(c,d)},10)};r.jwInstreamDestroy=function(){if(A){A.jwInstreamDestroy()}};r.jwInstreamAddEventListener=q("jwInstreamAddEventListener");r.jwInstreamRemoveEventListener=q("jwInstreamRemoveEventListener");r.jwInstreamGetState=q("jwInstreamGetState");r.jwInstreamGetDuration=q("jwInstreamGetDuration");r.jwInstreamGetPosition=q("jwInstreamGetPosition");r.jwInstreamPlay=q("jwInstreamPlay");r.jwInstreamPause=q("jwInstreamPause");r.jwInstreamSeek=q("jwInstreamSeek");function q(c){return function(){if(A&&typeof A[c]=="function"){return A[c].apply(this,arguments)}else{_utils.log("Could not call instream method - instream API not initialized")}}}r.jwGetLevel=function(){};r.jwGetBandwidth=function(){};r.jwGetLockState=function(){};r.jwLock=function(){};r.jwUnlock=function(){};function C(){if(s.config.playlistfile){s.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,w);s.loadPlaylist(s.config.playlistfile)}else{if(typeof s.config.playlist=="string"){s.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,w);s.loadPlaylist(s.config.playlist)}else{s.loadPlaylist(s.config);setTimeout(w,25)}}}function w(c){s.removeEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,w);s.setupPlugins();u.setup();var c={id:r.id,version:r.version};t.playerReady(c)}if(s.config.chromeless&&!b.utils.isIOS()){C()}else{r.skin.load(s.config.skin,C)}return r}})(jwplayer)};			document.write('<div id="c47655639fc9099e6e3655afb7a04db5-container" style="position: relative;"><div id="c47655639fc9099e6e3655afb7a04db5"><a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="http://www.streamotor.com/player/images/flash.jpg" title="Install/Upgrade Adobe Flash Player" alt="Install/Upgrade Adobe Flash Player" border="0"/></a></div></div>');
			jwplayer("c47655639fc9099e6e3655afb7a04db5").setup({
				abouttext: "STREAMOTOR",
				aboutlink: "http://www.streamotor.com/",
				height: 169,
				width: 300,
				skin: "http://www.streamotor.com/player/skins/glow/glow.zip",				modes: [{
                    type: "flash",
					provider: "rtmp",
                    src: "http://www.streamotor.com/player/mediaplayer-5.9-licensed/player.swf",
					config: {
						playlist: [
												{
							title: "St Johns Golf & Country Club",
							description: "",
							image: "http://streamo.vo.llnwd.net/o41/sm/St-Johns-Golf-Country-Club/c47655639fc9099e6e3655afb7a04db5-640.jpg",
							streamer: "rtmp://streamo.fcod.llnwd.net/a5128/o41",
							levels: [{ bitrate: 1596, file: "sm/St-Johns-Golf-Country-Club/c47655639fc9099e6e3655afb7a04db5-640-1596.mp4", width: 640 },{ bitrate: 900, file: "sm/St-Johns-Golf-Country-Club/c47655639fc9099e6e3655afb7a04db5-640-900.mp4", width: 640 }]	
						}
												]
					}
                },{
                    type: "html5",
                    config: {
						skin: "",
						playlist: [
												{
							provider: "video",
							title: "St Johns Golf & Country Club",
							description: "",
							image: "http://streamo.vo.llnwd.net/o41/sm/St-Johns-Golf-Country-Club/c47655639fc9099e6e3655afb7a04db5-640.jpg",
							file: "http://streamo.vo.llnwd.net/o41/sm/St-Johns-Golf-Country-Club/c47655639fc9099e6e3655afb7a04db5-640-900.mp4"
						}
												]
                    }
                }]
			});
			
