if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};var $jw=jwplayer;jwplayer.version="5.7.1894 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(b){b.utils=function(){};b.utils.typeOf=function(d){var c=typeof d;if(c==="object"){if(d){if(d instanceof Array){c="array"}}else{c="null"}}return c};b.utils.extend=function(){var e=b.utils.extend["arguments"];if(e.length>1){for(var d=1;d<e.length;d++){for(var c in e[d]){e[0][c]=e[d][c]}}return e[0]}return null};b.utils.clone=function(d){var e;var f=b.utils.clone["arguments"];if(f.length==1){switch(b.utils.typeOf(f[0])){case"object":e={};for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;case"array":e=[];for(var c in f[0]){e[c]=b.utils.clone(f[0][c])}break;default:return f[0];break}}return e};b.utils.extension=function(c){if(!c){return""}c=c.substring(c.lastIndexOf("/")+1,c.length);c=c.split("?")[0];if(c.lastIndexOf(".")>-1){return c.substr(c.lastIndexOf(".")+1,c.length).toLowerCase()}return};b.utils.html=function(c,d){c.innerHTML=d};b.utils.wrap=function(c,d){if(c.parentNode){c.parentNode.replaceChild(d,c)}d.appendChild(c)};b.utils.ajax=function(d,c,e){var g;if(window.XMLHttpRequest){g=new XMLHttpRequest()}else{g=new ActiveXObject("Microsoft.XMLHTTP")}g.onreadystatechange=function(){if(g.readyState===4){if(g.status===200){if(c){c(g)}}else{if(e){e(d)}}}};try{g.open("GET",d,true);g.send(null)}catch(f){if(e){e(d)}}return g};b.utils.load=function(c,d,e){c.onreadystatechange=function(){if(c.readyState===4){if(c.status===200){if(d){d()}}else{if(e){e()}}}}};b.utils.find=function(d,c){return d.getElementsByTagName(c)};b.utils.append=function(c,d){c.appendChild(d)};b.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};b.utils.isLegacyAndroid=function(){var c=navigator.userAgent.toLowerCase();return(c.match(/android 2.[012]/i)!==null)};b.utils.isIOS=function(d){if(typeof d=="undefined"){d=/iP(hone|ad|od)/i}var c=navigator.userAgent.toLowerCase();return(c.match(d)!==null)};b.utils.isIPad=function(){return b.utils.isIOS(/iPad/i)};b.utils.isIPod=function(){return b.utils.isIOS(/iP(hone|od)/i)};b.utils.getFirstPlaylistItemFromConfig=function(e){var c={};var d;if(e.playlist&&e.playlist.length){d=e.playlist[0]}else{d=e}c.file=d.file;c.levels=d.levels;c.streamer=d.streamer;c.playlistfile=d.playlistfile;c.provider=d.provider;if(!c.provider){if(c.file&&(c.file.toLowerCase().indexOf("youtube.com")>-1||c.file.toLowerCase().indexOf("youtu.be")>-1)){c.provider="youtube"}if(c.streamer&&c.streamer.toLowerCase().indexOf("rtmp://")==0){c.provider="rtmp"}if(d.type){c.provider=d.type.toLowerCase()}}if(c.provider=="audio"){c.provider="sound"}return c};b.utils.getOuterHTML=function(c){if(c.outerHTML){return c.outerHTML}else{try{return new XMLSerializer().serializeToString(c)}catch(d){return""}}};b.utils.setOuterHTML=function(c,g){if(c.outerHTML){c.outerHTML=g}else{var d=document.createElement("div");d.innerHTML=g;var e=document.createRange();e.selectNodeContents(d);var f=e.extractContents();c.parentNode.insertBefore(f,c);c.parentNode.removeChild(c)}};b.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(c){}}return false};b.utils.getPluginName=function(c){if(c.lastIndexOf("/")>=0){c=c.substring(c.lastIndexOf("/")+1,c.length)}if(c.lastIndexOf("-")>=0){c=c.substring(0,c.lastIndexOf("-"))}if(c.lastIndexOf(".swf")>=0){c=c.substring(0,c.lastIndexOf(".swf"))}if(c.lastIndexOf(".js")>=0){c=c.substring(0,c.lastIndexOf(".js"))}return c};b.utils.getPluginVersion=function(c){if(c.lastIndexOf("-")>=0){if(c.lastIndexOf(".js")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".js"))}else{if(c.lastIndexOf(".swf")>=0){return c.substring(c.lastIndexOf("-")+1,c.lastIndexOf(".swf"))}else{return c.substring(c.lastIndexOf("-")+1)}}}return""};b.utils.getAbsolutePath=function(d,f){if(!b.utils.exists(f)){f=document.location.href}if(!b.utils.exists(d)){return undefined}if(a(d)){return d}var e=f.substring(0,f.indexOf("://")+3);var c=f.substring(e.length,f.indexOf("/",e.length+1));var h;if(d.indexOf("/")===0){h=d.split("/")}else{var j=f.split("?")[0];j=j.substring(e.length+c.length+1,j.lastIndexOf("/"));h=j.split("/").concat(d.split("/"))}var g=[];for(var k=0;k<h.length;k++){if(!h[k]||!b.utils.exists(h[k])||h[k]=="."){continue}else{if(h[k]==".."){g.pop()}else{g.push(h[k])}}}return e+c+"/"+g.join("/")};function a(c){if(!b.utils.exists(c)){return}var d=c.indexOf("://");var e=c.indexOf("?");return(d>0&&(e<0||(e>d)))}b.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};b.utils.getPluginPathType=function(f){if(typeof f!="string"){return}f=f.split("?")[0];var c=f.indexOf("://");if(c>0){return b.utils.pluginPathType.ABSOLUTE}var e=f.indexOf("/");var d=b.utils.extension(f);if(c<0&&e<0&&(!d||!isNaN(d))){return b.utils.pluginPathType.CDN}return b.utils.pluginPathType.RELATIVE};b.utils.mapEmpty=function(c){for(var d in c){return false}return true};b.utils.mapLength=function(c){var e=0;for(var d in c){e++}return e};b.utils.log=function(d,c){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(c){console.log(d,c)}else{console.log(d)}}};b.utils.css=function(f,d,e){if(b.utils.exists(f)){for(var g in d){try{if(typeof d[g]==="undefined"){continue}else{if(typeof d[g]=="number"&&!(g=="zIndex"||g=="opacity")){if(isNaN(d[g])){continue}if(g.match(/color/i)){d[g]="#"+b.utils.strings.pad(d[g].toString(16),6)}else{d[g]=Math.ceil(d[g])+"px"}}}f.style[g]=d[g]}catch(c){}}}};b.utils.isYouTube=function(c){return(c.indexOf("youtube.com")>-1||c.indexOf("youtu.be")>-1)};b.utils.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d};b.utils.stretch=function(c,h,g,m,f,n){if(typeof g=="undefined"||typeof m=="undefined"||typeof f=="undefined"||typeof n=="undefined"){return}var k=g/f;var l=m/n;var e=0;var d=0;h.style.overflow="hidden";b.utils.transform(h,"");var j={};switch(c.toUpperCase()){case b.utils.stretching.NONE:j.width=f;j.height=n;break;case b.utils.stretching.UNIFORM:if(k>l){j.width=f*l;j.height=n*l}else{j.width=f*k;j.height=n*k}break;case b.utils.stretching.FILL:if(k>l){j.width=f*k;j.height=n*k}else{j.width=f*l;j.height=n*l}break;case b.utils.stretching.EXACTFIT:b.utils.transform(h,["scale(",k,",",l,")"," translate(0px,0px)"].join(""));j.width=f;j.height=n;break;default:break}j.top=(m-j.height)/2;j.left=(g-j.width)/2;b.utils.css(h,j)};b.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};b.utils.deepReplaceKeyName=function(f,g,d){switch(b.utils.typeOf(f)){case"array":for(var c=0;c<f.length;c++){f[c]=b.utils.deepReplaceKeyName(f[c],g,d)}break;case"object":for(var h in f){var e=h.replace(new RegExp(g,"g"),d);f[e]=b.utils.deepReplaceKeyName(f[h],g,d);if(h!=e){delete f[h]}}break}return f};b.utils.isInArray=function(d,c){if(!(d)||!(d instanceof Array)){return false}for(var e=0;e<d.length;e++){if(c===d[e]){return true}}return false};b.utils.exists=function(c){switch(typeof(c)){case"string":return(c.length>0);break;case"object":return(c!==null);case"undefined":return false}return true};b.utils.empty=function(c){if(typeof c.hasChildNodes=="function"){while(c.hasChildNodes()){c.removeChild(c.firstChild)}}};b.utils.parseDimension=function(c){if(typeof c=="string"){if(c===""){return 0}else{if(c.lastIndexOf("%")>-1){return c}else{return parseInt(c.replace("px",""),10)}}}return c};b.utils.getDimensions=function(c){if(c&&c.style){return{x:b.utils.parseDimension(c.style.left),y:b.utils.parseDimension(c.style.top),width:b.utils.parseDimension(c.style.width),height:b.utils.parseDimension(c.style.height)}}else{return{}}};b.utils.timeFormat=function(c){str="00:00";if(c>0){str=Math.floor(c/60)<10?"0"+Math.floor(c/60)+":":Math.floor(c/60)+":";str+=Math.floor(c%60)<10?"0"+Math.floor(c%60):Math.floor(c%60)}return str}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.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(!_globallisteners[type]){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(a){var b={};a.utils.animations=function(){};a.utils.animations.transform=function(c,d){c.style.webkitTransform=d;c.style.MozTransform=d;c.style.OTransform=d;c.style.msTransform=d};a.utils.animations.transformOrigin=function(c,d){c.style.webkitTransformOrigin=d;c.style.MozTransformOrigin=d;c.style.OTransformOrigin=d;c.style.msTransformOrigin=d};a.utils.animations.rotate=function(c,d){a.utils.animations.transform(c,["rotate(",d,"deg)"].join(""))};a.utils.cancelAnimation=function(c){delete b[c.id]};a.utils.fadeTo=function(j,c,m,f,e,l){if(b[j.id]!=l&&a.utils.exists(l)){return}if(j.style.opacity==c){return}var k=new Date().getTime();if(l>k){setTimeout(function(){a.utils.fadeTo(j,c,m,f,0,l)},l-k)}if(j.style.display=="none"){j.style.display="block"}if(!a.utils.exists(f)){f=j.style.opacity===""?1:j.style.opacity}if(j.style.opacity==c&&j.style.opacity!==""&&a.utils.exists(l)){if(c===0){j.style.display="none"}return}if(!a.utils.exists(l)){l=k;b[j.id]=l}if(!a.utils.exists(e)){e=0}var g=(m>0)?((k-l)/(m*1000)):0;g=g>1?1:g;var h=c-f;var d=f+(g*h);if(d>1){d=1}else{if(d<0){d=0}}j.style.opacity=d;if(e>0){b[j.id]=l+e*1000;a.utils.fadeTo(j,c,m,f,0,b[j.id]);return}setTimeout(function(){a.utils.fadeTo(j,c,m,f,0,l)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(c,d){for(var b=0;b<c.length;b++){if(c[b]==d){return b}}return -1};a.utils.arrays.remove=function(c,d){var b=a.utils.arrays.indexOf(c,d);if(b>-1){c.splice(b,1)}}})(jwplayer);(function(a){a.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(g){g.utils.mediaparser=function(){};var a={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 h={};g.utils.mediaparser.parseMedia=function(j){return f(j)};function e(k,j){if(!g.utils.exists(j)){j=a[k]}else{g.utils.extend(j,a[k])}return j}function f(l,n){if(h[l.tagName.toLowerCase()]&&!g.utils.exists(n)){return h[l.tagName.toLowerCase()](l)}else{n=e("element",n);var m={};for(var o in n){if(o!="length"){var k=l.getAttribute(o);if(g.utils.exists(k)){m[n[o]]=k}}}var j=l.style["#background-color"];if(j&&!(j=="transparent"||j=="rgba(0, 0, 0, 0)")){m.screencolor=j}return m}}function b(l,o){o=e("media",o);var j=[];var n=g.utils.selectors("source",l);for(var k in n){if(!isNaN(k)){j.push(c(n[k]))}}var m=f(l,o);if(g.utils.exists(m.file)){j[0]={file:m.file}}m.levels=j;return m}function c(k,j){j=e("source",j);var l=f(k,j);l.width=l.width?l.width:0;l.bitrate=l.bitrate?l.bitrate:0;return l}function d(k,j){j=e("video",j);var l=b(k,j);return l}h.media=b;h.audio=b;h.source=c;h.video=d})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(c){var d=a.utils.loaderstatus.NEW;var b=new a.events.eventdispatcher();a.utils.extend(this,b);this.load=function(){if(d==a.utils.loaderstatus.NEW){d=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(f){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)};e.onerror=function(f){d=a.utils.loaderstatus.ERROR;b.sendEvent(a.events.ERROR)};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){d=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(e);e.src=c}};this.getStatus=function(){return d}}})(jwplayer);(function(a){a.utils.selectors=function(b,e){if(!a.utils.exists(e)){e=document}b=a.utils.strings.trim(b);var c=b.charAt(0);if(c=="#"){return e.getElementById(b.substr(1))}else{if(c=="."){if(e.getElementsByClassName){return e.getElementsByClassName(b.substr(1))}else{return a.utils.selectors.getElementsByTagAndClass("*",b.substr(1))}}else{if(b.indexOf(".")>0){var d=b.split(".");return a.utils.selectors.getElementsByTagAndClass(d[0],d[1])}else{return e.getElementsByTagName(b)}}}return null};a.utils.selectors.getElementsByTagAndClass=function(h,d,b){var e=[];if(!a.utils.exists(b)){b=document}var j=b.getElementsByTagName(h);for(var g=0;g<j.length;g++){if(a.utils.exists(j[g].className)){var f=j[g].className.split(" ");for(var c=0;c<f.length;c++){if(f[c]==d){e.push(j[g])}}}}return e}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(c,d,b){if(!b){b="0"}while(c.length<d){c=b+c}return c};a.utils.strings.serialize=function(b){if(b==null){return null}else{if(b=="true"){return true}else{if(b=="false"){return false}else{if(isNaN(Number(b))||b.length>5||b.length==0){return b}else{return Number(b)}}}}};a.utils.strings.seconds=function(d){d=d.replace(",",".");var b=d.split(":");var c=0;if(d.substr(-1)=="s"){c=Number(d.substr(0,d.length-1))}else{if(d.substr(-1)=="m"){c=Number(d.substr(0,d.length-1))*60}else{if(d.substr(-1)=="h"){c=Number(d.substr(0,d.length-1))*3600}else{if(b.length>1){c=Number(b[b.length-1]);c+=Number(b[b.length-2])*60;if(b.length==3){c+=Number(b[b.length-3])*3600}}else{c=Number(d)}}}}return c};a.utils.strings.xmlAttribute=function(b,c){for(var d=0;d<b.attributes.length;d++){if(b.attributes[d].name&&b.attributes[d].name.toLowerCase()==c.toLowerCase()){return b.attributes[d].value.toString()}}return""};a.utils.strings.jsonToString=function(d){var f=f||{};if(f&&f.stringify){return f.stringify(d)}var g=typeof(d);if(g!="object"||d===null){if(g=="string"){d='"'+d+'"'}else{return String(d)}}else{var e=[],c=(d&&d.constructor==Array);for(var h in d){var b=d[h];switch(typeof(b)){case"string":b='"'+b+'"';break;case"object":if(a.utils.exists(b)){b=a.utils.strings.jsonToString(b)}break}if(c){if(typeof(b)!="function"){e.push(String(b))}}else{if(typeof(b)!="function"){e.push('"'+h+'":'+String(b))}}}if(c){return"["+String(e)+"]"}else{return"{"+String(e)+"}"}}}})(jwplayer);(function(a){var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(g,f){f=!a.utils.exists(f)?e(g):f;return c(g,f)};function e(f){var g=["true","false","t","f"];if(g.toString().indexOf(f.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(b.test(f)){return"color"}else{if(!isNaN(parseInt(f,10))&&parseInt(f,10).toString().length==f.length){return"integer"}else{if(!isNaN(parseFloat(f))&&parseFloat(f).toString().length==f.length){return"float"}}}}return"string"}function c(g,f){if(!a.utils.exists(f)){return g}switch(f){case"color":if(g.length>0){return d(g)}return null;case"integer":return parseInt(g,10);case"float":return parseFloat(g);case"boolean":if(g.toLowerCase()=="true"){return true}else{if(g=="1"){return true}}return false}return g}function d(f){switch(f.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:f=f.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(f.length==3){f=f.charAt(0)+f.charAt(0)+f.charAt(1)+f.charAt(1)+f.charAt(2)+f.charAt(2)}return parseInt(f,16)}return parseInt("000000",16)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(b){if(!b){return""}else{if(b.localName){return b.localName}else{if(b.baseName){return b.baseName}else{return""}}}};a.utils.parsers.textContent=function(b){if(!b){return""}else{if(b.textContent){return b.textContent}else{if(b.text){return b.text}else{return""}}}}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX="jwplayer";a.utils.parsers.jwparser.parseEntry=function(c,d){for(var b=0;b<c.childNodes.length;b++){if(c.childNodes[b].prefix==a.utils.parsers.jwparser.PREFIX){d[a.utils.parsers.localName(c.childNodes[b])]=a.utils.strings.serialize(a.utils.parsers.textContent(c.childNodes[b]))}if(!d.file&&String(d.link).toLowerCase().indexOf("youtube")>-1){d.file=d.link}}return d};a.utils.parsers.jwparser.getProvider=function(c){if(c.type){return c.type}else{if(c.file.indexOf("youtube.com/w")>-1||c.file.indexOf("youtube.com/v")>-1||c.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(c.streamer&&c.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(c.streamer&&c.streamer.indexOf("http")==0){return"http"}else{var b=a.utils.strings.extension(c.file);if(extensions.hasOwnProperty(b)){return extensions[b]}}}}}return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(d,f){var e=false;for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].prefix==a.utils.parsers.mediaparser.PREFIX){if(!a.utils.parsers.localName(d.childNodes[c])){continue}switch(a.utils.parsers.localName(d.childNodes[c]).toLowerCase()){case"content":if(!e){f.file=a.utils.strings.xmlAttribute(d.childNodes[c],"url")}if(a.utils.strings.xmlAttribute(d.childNodes[c],"duration")){f.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(d.childNodes[c],"duration"))}if(a.utils.strings.xmlAttribute(d.childNodes[c],"start")){f.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(d.childNodes[c],"start"))}if(d.childNodes[c].childNodes&&d.childNodes[c].childNodes.length>0){f=a.utils.parsers.mediaparser.parseGroup(d.childNodes[c],f)}if(a.utils.strings.xmlAttribute(d.childNodes[c],"width")||a.utils.strings.xmlAttribute(d.childNodes[c],"bitrate")||a.utils.strings.xmlAttribute(d.childNodes[c],"url")){if(!f.levels){f.levels=[]}f.levels.push({width:a.utils.strings.xmlAttribute(d.childNodes[c],"width"),bitrate:a.utils.strings.xmlAttribute(d.childNodes[c],"bitrate"),file:a.utils.strings.xmlAttribute(d.childNodes[c],"url")})}break;case"title":f.title=a.utils.parsers.textContent(d.childNodes[c]);break;case"description":f.description=a.utils.parsers.textContent(d.childNodes[c]);break;case"keywords":f.tags=a.utils.parsers.textContent(d.childNodes[c]);break;case"thumbnail":f.image=a.utils.strings.xmlAttribute(d.childNodes[c],"url");break;case"credit":f.author=a.utils.parsers.textContent(d.childNodes[c]);break;case"player":var b=d.childNodes[c].url;if(b.indexOf("youtube.com")>=0||b.indexOf("youtu.be")>=0){e=true;f.file=a.utils.strings.xmlAttribute(d.childNodes[c],"url")}break;case"group":a.utils.parsers.mediaparser.parseGroup(d.childNodes[c],f);break}}}return f}})(jwplayer);(function(b){b.utils.parsers.rssparser=function(){};b.utils.parsers.rssparser.parse=function(d){var e=[];for(var c=0;c<d.childNodes.length;c++){if(b.utils.parsers.localName(d.childNodes[c]).toLowerCase()=="channel"){for(var f=0;f<d.childNodes[c].childNodes.length;f++){if(b.utils.parsers.localName(d.childNodes[c].childNodes[f]).toLowerCase()=="item"){e.push(a(d.childNodes[c].childNodes[f]))}}}}return e};function a(c){var d={};for(var e=0;e<c.childNodes.length;e++){if(!b.utils.parsers.localName(c.childNodes[e])){continue}switch(b.utils.parsers.localName(c.childNodes[e]).toLowerCase()){case"enclosure":d.file=b.utils.strings.xmlAttribute(c.childNodes[e],"url");break;case"title":d.title=b.utils.parsers.textContent(c.childNodes[e]);break;case"pubdate":d.date=b.utils.parsers.textContent(c.childNodes[e]);break;case"description":d.description=b.utils.parsers.textContent(c.childNodes[e]);break;case"link":d.link=b.utils.parsers.textContent(c.childNodes[e]);break;case"category":if(d.tags){d.tags+=b.utils.parsers.textContent(c.childNodes[e])}else{d.tags=b.utils.parsers.textContent(c.childNodes[e])}break}}d=b.utils.parsers.mediaparser.parseGroup(c,d);d=b.utils.parsers.jwparser.parseEntry(c,d);return new b.html5.playlistitem(d)}})(jwplayer);(function(b){var a={};var c={};b.plugins=function(){};b.plugins.loadPlugins=function(e,d){c[e]=new b.plugins.pluginloader(new b.plugins.model(a),d);return c[e]};b.plugins.registerPlugin=function(e,h,g){var f=b.utils.getPluginName(e);if(a[f]){a[f].registerPlugin(e,h,g)}else{b.utils.log("A plugin ("+e+") was registered with the player that was not loaded. Please check your configuration.");for(var d in c){c[d].pluginFailed()}}}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);if(!b[d]){b[d]=new a.plugins.plugin(c)}return b[d]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(j){var l="http://lp.longtailvideo.com";var f=a.utils.loaderstatus.NEW;var g;var e;var h;var k=new a.events.eventdispatcher();a.utils.extend(this,k);function b(){switch(a.utils.getPluginPathType(j)){case a.utils.pluginPathType.ABSOLUTE:return j;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(j,window.location.href);case a.utils.pluginPathType.CDN:var m=a.utils.getPluginName(j);var n=a.utils.getPluginVersion(j);return l+"/"+a.version.split(".")[0]+"/"+m+"/"+m+(n!==""?("-"+n):"")+".js"}}function d(m){h=setTimeout(function(){f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE)},1000)}function c(m){f=a.utils.loaderstatus.ERROR;k.sendEvent(a.events.ERROR)}this.load=function(){if(f==a.utils.loaderstatus.NEW){if(j.lastIndexOf(".swf")>0){g=j;f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE);return}f=a.utils.loaderstatus.LOADING;var m=new a.utils.scriptloader(b());m.addEventListener(a.events.COMPLETE,d);m.addEventListener(a.events.ERROR,c);m.load()}};this.registerPlugin=function(n,m,o){if(h){clearTimeout(h);h=undefined}if(m&&o){g=o;e=m}else{if(typeof m=="string"){g=m}else{if(typeof m=="function"){e=m}else{if(!m&&!o){g=n}}}}f=a.utils.loaderstatus.COMPLETE;k.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return f};this.getPluginName=function(){return a.utils.getPluginName(j)};this.getFlashPath=function(){if(g){switch(a.utils.getPluginPathType(g)){case a.utils.pluginPathType.ABSOLUTE:return g;case a.utils.pluginPathType.RELATIVE:if(j.lastIndexOf(".swf")>0){return a.utils.getAbsolutePath(g,window.location.href)}return a.utils.getAbsolutePath(g,b());case a.utils.pluginPathType.CDN:if(g.indexOf("-")>-1){return g+"h"}return g+"-h"}}return null};this.getJS=function(){return e};this.getPluginmode=function(){if(typeof g!="undefined"&&typeof e!="undefined"){return a.plugins.pluginmodes.HYBRID}else{if(typeof g!="undefined"){return a.plugins.pluginmodes.FLASH}else{if(typeof e!="undefined"){return a.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(m,o,n){return new e(m,o,n)};this.getURL=function(){return j}}})(jwplayer);(function(a){a.plugins.pluginloader=function(g,d){var f={};var j=a.utils.loaderstatus.NEW;var c=false;var k=false;var b=new a.events.eventdispatcher();a.utils.extend(this,b);function e(){if(!k){k=true;j=a.utils.loaderstatus.COMPLETE;b.sendEvent(a.events.COMPLETE)}}function h(){if(!k){var m=0;for(plugin in f){var l=f[plugin].getStatus();if(l==a.utils.loaderstatus.LOADING||l==a.utils.loaderstatus.NEW){m++}}if(m==0){e()}}}this.setupPlugins=function(l,r,q){var s={length:0,plugins:{}};var n={length:0,plugins:{}};for(var m in f){var o=f[m].getPluginName();if(f[m].getFlashPath()){s.plugins[f[m].getFlashPath()]=r.plugins[m];s.plugins[f[m].getFlashPath()].pluginmode=f[m].getPluginmode();s.length++}if(f[m].getJS()){var p=document.createElement("div");p.id=l.id+"_"+o;p.style.position="absolute";p.style.zIndex=n.length+10;n.plugins[o]=f[m].getNewInstance(l,r.plugins[m],p);n.length++;if(typeof n.plugins[o].resize!="undefined"){l.onReady(q(n.plugins[o],p,true));l.onResize(q(n.plugins[o],p))}}}l.plugins=n.plugins;return s};this.load=function(){j=a.utils.loaderstatus.LOADING;c=true;for(var l in d){if(a.utils.exists(l)){f[l]=g.addPlugin(l);f[l].addEventListener(a.events.COMPLETE,h);f[l].addEventListener(a.events.ERROR,h)}}for(l in f){f[l].load()}c=false;h()};this.pluginFailed=function(){e()};this.getStatus=function(){return j}}})(jwplayer);(function(b){var a=[];b.api=function(s){this.container=s;this.id=s.id;var n={};var p={};var j={};var r=[];var f=undefined;var l=false;var g=[];var q=b.utils.getOuterHTML(s);var k={};var h={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function c(u,t){return function(w,x,y,z){if(u.renderingMode=="flash"||u.renderingMode=="html5"){var v;if(x){h[w]=x;v="jwplayer('"+u.id+"').callback('"+w+"')"}else{if(!x&&h[w]){delete h[w]}}f.jwDockSetButton(w,v,y,z)}return t}}this.getPlugin=function(t){var v=this;var u={};if(t=="dock"){return b.utils.extend(u,{setButton:c(v,u),show:function(){v.callInternal("jwDockShow");return u},hide:function(){v.callInternal("jwDockHide");return u},onShow:function(w){v.componentListener("dock",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("dock",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{if(t=="controlbar"){return b.utils.extend(u,{show:function(){v.callInternal("jwControlbarShow");return u},hide:function(){v.callInternal("jwControlbarHide");return u},onShow:function(w){v.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{if(t=="display"){return b.utils.extend(u,{show:function(){v.callInternal("jwDisplayShow");return u},hide:function(){v.callInternal("jwDisplayHide");return u},onShow:function(w){v.componentListener("display",b.api.events.JWPLAYER_COMPONENT_SHOW,w);return u},onHide:function(w){v.componentListener("display",b.api.events.JWPLAYER_COMPONENT_HIDE,w);return u}})}else{return this.plugins[t]}}}};this.callback=function(t){if(h[t]){return h[t]()}};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 u=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){b.utils.deepReplaceKeyName(u,"__dot__",".")}for(var t=0;t<u.length;t++){if(!b.utils.exists(u[t].index)){u[t].index=t}}return u};this.getPlaylistItem=function(t){if(!b.utils.exists(t)){t=this.getCurrentItem()}return this.getPlaylist()[t]};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(t){if(!b.utils.exists(t)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",t)}return this};this.setMute=function(t){if(!b.utils.exists(t)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",t)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(t){this.callInternal("jwLoad",t);return this};this.playlistItem=function(t){this.callInternal("jwPlaylistItem",t);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(u,t){if(this.renderingMode=="html5"){f.jwResize(u,t)}else{this.container.width=u;this.container.height=t}return this};this.play=function(t){if(typeof t=="undefined"){t=this.getState();if(t==b.api.events.state.PLAYING||t==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",t)}return this};this.pause=function(t){if(typeof t=="undefined"){t=this.getState();if(t==b.api.events.state.PLAYING||t==b.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",t)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(t){this.callInternal("jwSeek",t);return this};this.setVolume=function(t){this.callInternal("jwSetVolume",t);return this};this.onBufferChange=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,t)};this.onBufferFull=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)};this.onError=function(t){return this.eventListener(b.api.events.JWPLAYER_ERROR,t)};this.onFullscreen=function(t){return this.eventListener(b.api.events.JWPLAYER_FULLSCREEN,t)};this.onMeta=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_META,t)};this.onMute=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_MUTE,t)};this.onPlaylist=function(t){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t)};this.onPlaylistItem=function(t){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,t)};this.onReady=function(t){return this.eventListener(b.api.events.API_READY,t)};this.onResize=function(t){return this.eventListener(b.api.events.JWPLAYER_RESIZE,t)};this.onComplete=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,t)};this.onSeek=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_SEEK,t)};this.onTime=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_TIME,t)};this.onVolume=function(t){return this.eventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,t)};this.onBuffer=function(t){return this.stateListener(b.api.events.state.BUFFERING,t)};this.onPause=function(t){return this.stateListener(b.api.events.state.PAUSED,t)};this.onPlay=function(t){return this.stateListener(b.api.events.state.PLAYING,t)};this.onIdle=function(t){return this.stateListener(b.api.events.state.IDLE,t)};this.remove=function(){n={};g=[];if(b.utils.getOuterHTML(this.container)!=q){b.api.destroyPlayer(this.id,q)}};this.setup=function(u){if(b.embed){var t=this.id;this.remove();var v=b(t);v.config=u;return new b.embed(v)}return this};this.registerPlugin=function(v,u,t){b.plugins.registerPlugin(v,u,t)};this.setPlayer=function(t,u){f=t;this.renderingMode=u};this.stateListener=function(t,u){if(!p[t]){p[t]=[];this.eventListener(b.api.events.JWPLAYER_PLAYER_STATE,e(t))}p[t].push(u);return this};function e(t){return function(w){var v=w.newstate,y=w.oldstate;if(v==t){var x=p[v];if(x){for(var u=0;u<x.length;u++){if(typeof x[u]=="function"){x[u].call(this,{oldstate:y,newstate:v})}}}}}}this.componentListener=function(t,u,v){if(!j[t]){j[t]={}}if(!j[t][u]){j[t][u]=[];this.eventListener(u,m(t,u))}j[t][u].push(v);return this};function m(t,u){return function(w){if(t==w.component){var v=j[t][u];if(v){for(var x=0;x<v.length;x++){if(typeof v[x]=="function"){v[x].call(this,w)}}}}}}this.addInternalListener=function(t,u){t.jwAddEventListener(u,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+u+'", dat); }')};this.eventListener=function(t,u){if(!n[t]){n[t]=[];if(f&&l){this.addInternalListener(f,t)}}n[t].push(u);return this};this.dispatchEvent=function(v){if(n[v]){var u=d(v,arguments[1]);for(var t=0;t<n[v].length;t++){if(typeof n[v][t]=="function"){n[v][t].call(this,u)}}}};function d(v,t){var x=b.utils.extend({},t);if(v==b.api.events.JWPLAYER_FULLSCREEN&&!x.fullscreen){x.fullscreen=x.message=="true"?true:false;delete x.message}else{if(typeof x.data=="object"){x=b.utils.extend(x,x.data);delete x.data}}var u=["position","duration","offset"];for(var w in u){if(x[u[w]]){x[u[w]]=Math.round(x[u[w]]*1000)/1000}}return x}this.callInternal=function(u,t){if(l){if(typeof f!="undefined"&&typeof f[u]=="function"){if(b.utils.exists(t)){return(f[u])(t)}else{return(f[u])()}}return null}else{g.push({method:u,parameters:t})}};this.playerReady=function(v){l=true;if(!f){this.setPlayer(document.getElementById(v.id))}this.container=document.getElementById(this.id);for(var t in n){this.addInternalListener(f,t)}this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,function(w){k={}});this.eventListener(b.api.events.JWPLAYER_MEDIA_META,function(w){b.utils.extend(k,w.metadata)});this.dispatchEvent(b.api.events.API_READY);while(g.length>0){var u=g.shift();this.callInternal(u.method,u.parameters)}};this.getItemMeta=function(){return k};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function o(v,x,w){var t=[];if(!x){x=0}if(!w){w=v.length-1}for(var u=x;u<=w;u++){t.push(v[u])}return t}return this};b.api.selectPlayer=function(c){var e;if(!b.utils.exists(c)){c=0}if(c.nodeType){e=c}else{if(typeof c=="string"){e=document.getElementById(c)}}if(e){var d=b.api.playerById(e.id);if(d){return d}else{return b.api.addPlayer(new b.api(e))}}else{if(typeof c=="number"){return b.getPlayers()[c]}}return null};b.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",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"};b.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};b.api.playerById=function(d){for(var c=0;c<a.length;c++){if(a[c].id==d){return a[c]}}return null};b.api.addPlayer=function(c){for(var d=0;d<a.length;d++){if(a[d]==c){return c}}a.push(c);return c};b.api.destroyPlayer=function(g,j){var f=-1;for(var e=0;e<a.length;e++){if(a[e].id==g){f=e;continue}}if(f>=0){var h=document.getElementById(a[f].id);if(document.getElementById(a[f].id+"_wrapper")){h=document.getElementById(a[f].id+"_wrapper")}if(h){if(j){b.utils.setOuterHTML(h,j)}else{var d=document.createElement("div");var c=h.id;if(h.id.indexOf("_wrapper")==h.id.length-8){newID=h.id.substring(0,h.id.length-8)}d.setAttribute("id",c);h.parentNode.replaceChild(d,h)}}a.splice(f,1)}return null};b.getPlayers=function(){return a.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(b){var a=jwplayer.api.playerById(b.id);if(a){a.playerReady(b)}else{jwplayer.api.selectPlayer(b.id).playerReady(b)}if(_userPlayerReady){_userPlayerReady.call(this,b)}};(function(a){a.embed=function(g){var f={width:400,height:300,components:{controlbar:{position:"over"}}};var e=a.utils.mediaparser.parseMedia(g.container);var d=new a.embed.config(a.utils.extend(f,e,g.config),this);var c=a.plugins.loadPlugins(g.id,d.plugins);function h(m,l){for(var k in l){if(typeof m[k]=="function"){(m[k]).call(m,l[k])}}}function j(){if(c.getStatus()==a.utils.loaderstatus.COMPLETE){for(var m=0;m<d.modes.length;m++){if(d.modes[m].type&&a.embed[d.modes[m].type]){var k=d;if(d.modes[m].config){k=a.utils.extend(a.utils.clone(d),d.modes[m].config)}var l=new a.embed[d.modes[m].type](document.getElementById(g.id),d.modes[m],k,c,g);if(l.supportsConfig()){l.embed();h(g,d.events);return g}}}a.utils.log("No suitable players found");new a.embed.logo(a.utils.extend({hide:true},d.components.logo),"none",g.id)}}c.addEventListener(a.events.COMPLETE,j);c.addEventListener(a.events.ERROR,j);c.load();return g};function b(){if(!document.body){return setTimeout(b,15)}var e=a.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var c=0;c<e.length;c++){var d=e[c];a(d.id).setup({})}}b()})(jwplayer);(function(d){function g(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var j={players:"modes",autoplay:"autostart"};function a(m){var l=m.toLowerCase();var k=["left","right","top","bottom"];for(var n=0;n<k.length;n++){if(l==k[n]){return true}}return false}function b(l){var k=false;k=(l instanceof Array)||(typeof l=="object"&&!l.position&&!l.size);return k}function h(k){if(typeof k=="string"){if(parseInt(k).toString()==k||k.toLowerCase().indexOf("px")>-1){return parseInt(k)}}return k}var f=["playlist","dock","controlbar","logo","display"];function e(o){var m={};switch(d.utils.typeOf(o.plugins)){case"object":for(var l in o.plugins){m[d.utils.getPluginName(l)]=l}break;case"string":var n=o.plugins.split(",");for(var k=0;k<n.length;k++){m[d.utils.getPluginName(n[k])]=n[k]}break}return m}function c(n,m,l,p){if(d.utils.typeOf(n[m])!="object"){n[m]={}}var k=n[m][l];if(d.utils.typeOf(k)!="object"){n[m][l]=k={}}if(p){if(m=="plugins"){var o=d.utils.getPluginName(l);k[p]=n[o+"."+p];delete n[o+"."+p]}else{k[p]=n[l+"."+p];delete n[l+"."+p]}}}d.embed.deserialize=function(k){var l=e(k);for(var p in l){c(k,"plugins",l[p])}for(var o in k){if(o.indexOf(".")>-1){var n=o.split(".");var m=n[0];var o=n[1];if(d.utils.isInArray(f,m)){c(k,"components",m,o)}else{if(l[m]){c(k,"plugins",l[m],o)}}}}return k};d.embed.config=function(l,k){var u=d.utils.extend({},l);var s;if(b(u.playlist)){s=u.playlist;delete u.playlist}u=d.embed.deserialize(u);u.height=h(u.height);u.width=h(u.width);if(typeof u.plugins=="string"){var m=u.plugins.split(",");if(typeof u.plugins!="object"){u.plugins={}}for(var q=0;q<m.length;q++){var r=d.utils.getPluginName(m[q]);if(typeof u[r]=="object"){u.plugins[m[q]]=u[r];delete u[r]}else{u.plugins[m[q]]={}}}}for(var t=0;t<f.length;t++){var p=f[t];if(d.utils.exists(u[p])){if(typeof u[p]!="object"){if(!u.components[p]){u.components[p]={}}if(p=="logo"){u.components[p].file=u[p]}else{u.components[p].position=u[p]}delete u[p]}else{if(!u.components[p]){u.components[p]={}}d.utils.extend(u.components[p],u[p]);delete u[p]}}if(typeof u[p+"size"]!="undefined"){if(!u.components[p]){u.components[p]={}}u.components[p].size=u[p+"size"];delete u[p+"size"]}}if(typeof u.icons!="undefined"){if(!u.components.display){u.components.display={}}u.components.display.icons=u.icons;delete u.icons}for(var o in j){if(u[o]){if(!u[j[o]]){u[j[o]]=u[o]}delete u[o]}}var n;if(u.flashplayer&&!u.modes){n=g();n[0].src=u.flashplayer;delete u.flashplayer}else{if(u.modes){if(typeof u.modes=="string"){n=g();n[0].src=u.modes}else{if(u.modes instanceof Array){n=u.modes}else{if(typeof u.modes=="object"&&u.modes.type){n=[u.modes]}}}delete u.modes}else{n=g()}}u.modes=n;if(s){u.playlist=s}return u}})(jwplayer);(function(a){a.embed.download=function(b,g,d,c,f){this.embed=function(){var s=a.utils.extend({},d);var o={};var r=d.width?d.width:480;if(typeof r!="number"){r=parseInt(r,10)}var u=d.height?d.height:320;if(typeof u!="number"){u=parseInt(u,10)}var k,m,l;var h={};if(d.playlist&&d.playlist.length){h.file=d.playlist[0].file;m=d.playlist[0].image;h.levels=d.playlist[0].levels}else{h.file=d.file;m=d.image;h.levels=d.levels}if(h.file){k=h.file}else{if(h.levels&&h.levels.length){k=h.levels[0].file}}l=k?"pointer":"auto";var t={display:{style:{cursor:l,width:r,height:u,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:l,position:"absolute",display:k?"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:l,position:"absolute",display:k?"block":"none",top:((u-50)/2),left:((r-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:r,height:u,display:m?"block":"none",position:"absolute",cursor:l,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var q=function(w,y,v){var x=document.createElement(w);if(v){x.id=v}else{x.id=b.id+"_jwplayer_"+y}a.utils.css(x,t[y].style);return x};o.display=q("a","display",b.id);if(k){o.display.setAttribute("href",a.utils.getAbsolutePath(k))}o.display_image=q("img","display_image");o.display_image.setAttribute("alt","Click to download...");if(m){o.display_image.setAttribute("src",a.utils.getAbsolutePath(m))}if(true){o.display_icon=q("div","display_icon");o.display_iconBackground=q("div","display_iconBackground");o.display.appendChild(o.display_image);o.display_iconBackground.appendChild(o.display_icon);o.display.appendChild(o.display_iconBackground)}_css=a.utils.css;_hide=function(v){_css(v,{display:"none"})};function p(v){_imageWidth=o.display_image.naturalWidth;_imageHeight=o.display_image.naturalHeight;j()}function j(){a.utils.stretch(a.utils.stretching.UNIFORM,o.display_image,r,u,_imageWidth,_imageHeight)}o.display_image.onerror=function(v){_hide(o.display_image)};o.display_image.onload=p;b.parentNode.replaceChild(o.display,b);var n=(d.plugins&&d.plugins.logo)?d.plugins.logo:{};o.display.appendChild(new a.embed.logo(d.components.logo,"download",b.id));f.container=document.getElementById(f.id);f.setPlayer(o.display,"download")};this.supportsConfig=function(){if(d){var j=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return e(j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&e(j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}};function e(j,l,h){if(h){return false}var k=["image","sound","youtube","http"];if(l&&(k.toString().indexOf(l)>-1)){return true}if(!l||(l&&l=="video")){var m=a.utils.extension(j);if(m&&a.utils.extensionmap[m]){return true}}return false}}})(jwplayer);(function(a){a.embed.flash=function(m,b,f,l,d){function g(o,n,p){var q=document.createElement("param");q.setAttribute("name",n);q.setAttribute("value",p);o.appendChild(q)}function e(o,p,n){return function(q){if(n){document.getElementById(d.id+"_wrapper").appendChild(p)}var s=document.getElementById(d.id).getPluginConfig("display");o.resize(s.width,s.height);var r={left:s.x,top:s.y};a.utils.css(p,r)}}function k(p){if(!p){return{}}var r={};for(var o in p){var n=p[o];for(var q in n){r[o+"."+q]=n[q]}}return r}function c(q,p){if(q[p]){var s=q[p];for(var o in s){var n=s[o];if(typeof n=="string"){if(!q[o]){q[o]=n}}else{for(var r in n){if(!q[o+"."+r]){q[o+"."+r]=n[r]}}}}delete q[p]}}function h(q){if(!q){return{}}var t={},s=[];for(var n in q){var p=a.utils.getPluginName(n);var o=q[n];s.push(n);for(var r in o){t[p+"."+r]=o[r]}}t.plugins=s.join(",");return t}function j(p){var n=p.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var o in p){if(typeof(p[o])=="object"){n+=o+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(p[o]))+"&"}else{n+=o+"="+encodeURIComponent(p[o])+"&"}}return n.substring(0,n.length-1)}this.embed=function(){f.id=d.id;var s;var w=a.utils.extend({},f);var t=w.width;var q=w.height;if(m.id+"_wrapper"==m.parentNode.id){s=document.getElementById(m.id+"_wrapper")}else{s=document.createElement("div");s.id=m.id+"_wrapper";a.utils.wrap(m,s);a.utils.css(s,{position:"relative",width:t,height:q})}var u=l.setupPlugins(d,w,e);if(u.length>0){a.utils.extend(w,h(u.plugins))}else{delete w.plugins}var y=["height","width","modes","events"];for(var o=0;o<y.length;o++){delete w[y[o]]}var v="opaque";if(w.wmode){v=w.wmode}c(w,"components");c(w,"providers");if(typeof w["dock.position"]!="undefined"){if(w["dock.position"].toString().toLowerCase()=="false"){w.dock=w["dock.position"];delete w["dock.position"]}}var r="#000000";var x;if(a.utils.isIE()){var p='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+r+'" width="100%" height="100%" id="'+m.id+'" name="'+m.id+'" tabindex=0"">';p+='<param name="movie" value="'+b.src+'">';p+='<param name="allowfullscreen" value="true">';p+='<param name="allowscriptaccess" value="always">';p+='<param name="seamlesstabbing" value="true">';p+='<param name="wmode" value="'+v+'">';p+='<param name="flashvars" value="'+j(w)+'">';p+="</object>";a.utils.setOuterHTML(m,p);x=document.getElementById(m.id)}else{var n=document.createElement("object");n.setAttribute("type","application/x-shockwave-flash");n.setAttribute("data",b.src);n.setAttribute("width","100%");n.setAttribute("height","100%");n.setAttribute("bgcolor","#000000");n.setAttribute("id",m.id);n.setAttribute("name",m.id);n.setAttribute("tabindex",0);g(n,"allowfullscreen","true");g(n,"allowscriptaccess","always");g(n,"seamlesstabbing","true");g(n,"wmode",v);g(n,"flashvars",j(w));m.parentNode.replaceChild(n,m);x=n}d.container=x;d.setPlayer(x,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash()){if(f){var o=a.utils.getFirstPlaylistItemFromConfig(f);if(typeof o.file=="undefined"&&typeof o.levels=="undefined"){return true}else{if(o.file){return flashCanPlay(o.file,o.provider)}else{if(o.levels&&o.levels.length){for(var n=0;n<o.levels.length;n++){if(o.levels[n].file&&flashCanPlay(o.levels[n].file,o.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(n,p){var o=["video","http","sound","image"];if(p&&(o.toString().indexOf(p<0))){return true}var q=a.utils.extension(n);if(!q){return true}if(a.utils.exists(a.utils.extensionmap[q])&&!a.utils.exists(a.utils.extensionmap[q].flash)){return false}return true}}})(jwplayer);(function(a){a.embed.html5=function(b,g,d,c,f){function e(j,k,h){return function(l){var m=document.getElementById(b.id+"_displayarea");if(h){m.appendChild(k)}var n=m.style;j.resize(parseInt(n.width.replace("px","")),parseInt(n.height.replace("px","")));k.left=n.left;k.top=n.top}}this.embed=function(){if(a.html5){c.setupPlugins(f,d,e);b.innerHTML="";var j=a.utils.extend({screencolor:"0x000000"},d);var h=["plugins","modes","events"];for(var k=0;k<h.length;k++){delete j[h[k]]}if(j.levels&&!j.sources){j.sources=d.levels}if(j.skin&&j.skin.toLowerCase().indexOf(".zip")>0){j.skin=j.skin.replace(/\.zip/i,".xml")}var l=new (a.html5(b)).setup(j);f.container=document.getElementById(f.id);f.setPlayer(l,"html5")}else{return null}};this.supportsConfig=function(){if(!!a.vid.canPlayType){if(d){var j=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof j.file=="undefined"&&typeof j.levels=="undefined"){return true}else{if(j.file){return html5CanPlay(a.vid,j.file,j.provider,j.playlistfile)}else{if(j.levels&&j.levels.length){for(var h=0;h<j.levels.length;h++){if(j.levels[h].file&&html5CanPlay(vid,j.levels[h].file,j.provider,j.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(k,j,l,h){if(h){return false}if(l&&l=="youtube"){return true}if(l&&l!="video"&&l!="http"&&l!="sound"){return false}var m=a.utils.extension(j);if(!a.utils.exists(m)||!a.utils.exists(a.utils.extensionmap[m])){return true}if(!a.utils.exists(a.utils.extensionmap[m].html5)){return false}if(a.utils.isLegacyAndroid()&&m.match(/m4v|mp4/)){return true}return browserCanPlay(k,a.utils.extensionmap[m].html5)};browserCanPlay=function(j,h){if(!h){return true}if(j.canPlayType(h)){return true}else{if(h=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return j.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(a){a.embed.logo=function(p,o,f){var m={prefix:"http://l.longtailvideo.com/"+o+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=a.utils.css;var c;var l;n();function n(){d();e();h()}function d(){if(m.prefix){var q=a.version.split(/\W/).splice(0,2).join("/");if(m.prefix.indexOf(q)<0){m.prefix+=q+"/"}}l=a.utils.extend({},m,p)}function k(){var s={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};s.display=l.hide?"none":"block";var r=l.position.toLowerCase().split("-");for(var q in r){s[r[q]]=l.margin}return s}function e(){c=document.createElement("img");c.id=f+"_jwplayer_logo";c.style.display="none";c.onload=function(q){_css(c,k());g()};if(!l.file){return}if(l.file.indexOf("http://")===0){c.src=l.file}else{c.src=l.prefix+l.file}}if(!l.file){return}function h(){if(l.link){c.onmouseover=j;c.onmouseout=g;c.onclick=b}else{this.mouseEnabled=false}}function b(q){if(typeof q!="undefined"){q.preventDefault();q.stopPropagation()}if(l.link){window.open(l.link,"_blank")}return}function g(q){if(l.link){c.style.opacity=l.out}return}function j(q){if(l.hide){c.style.opacity=l.over}return}return c}})(jwplayer);(function(a){a.html5=function(b){var c=b;this.setup=function(d){a.utils.extend(this,new a.html5.api(c,d));return this};return this}})(jwplayer);(function(d){var b=d.utils;var a=b.css;d.html5.view=function(t,r,f){var y=t;var n=r;var B=f;var A;var g;var u;var w;var v;var p;var q;function D(){A=document.createElement("div");A.id=n.id;A.className=n.className;_videowrapper=document.createElement("div");_videowrapper.id=A.id+"_video_wrapper";n.id=A.id+"_video";a(A,{position:"relative",height:B.height,width:B.width,padding:0,backgroundColor:E(),zIndex:0});function E(){if(y.skin.getComponentSettings("display")&&y.skin.getComponentSettings("display").backgroundcolor){return y.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}a(n,{width:B.width,height:B.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});a(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});b.wrap(n,A);b.wrap(n,_videowrapper);w=document.createElement("div");w.id=A.id+"_displayarea";A.appendChild(w)}function k(){for(var E=0;E<B.plugins.order.length;E++){var F=B.plugins.order[E];if(b.exists(B.plugins.object[F].getDisplayElement)){B.plugins.object[F].height=b.parseDimension(B.plugins.object[F].getDisplayElement().style.height);B.plugins.object[F].width=b.parseDimension(B.plugins.object[F].getDisplayElement().style.width);B.plugins.config[F].currentPosition=B.plugins.config[F].position}}z()}function m(E){a(w,{display:B.getMedia().hasChrome()?"none":"block"})}function z(F){var H=B.getMedia()?B.getMedia().getDisplayElement():null;if(b.exists(H)){if(q!=H){if(q&&q.parentNode){q.parentNode.replaceChild(H,q)}q=H}for(var E=0;E<B.plugins.order.length;E++){var G=B.plugins.order[E];if(b.exists(B.plugins.object[G].getDisplayElement)){B.plugins.config[G].currentPosition=B.plugins.config[G].position}}}j(B.width,B.height)}this.setup=function(){if(B&&B.getMedia()){n=B.getMedia().getDisplayElement()}D();k();y.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,m);y.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_LOADED,z);y.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_META,function(){C()});var E;if(b.exists(window.onresize)){E=window.onresize}window.onresize=function(F){if(b.exists(E)){try{E(F)}catch(H){}}if(y.jwGetFullscreen()){var G=document.body.getBoundingClientRect();B.width=Math.abs(G.left)+Math.abs(G.right);B.height=window.innerHeight}j(B.width,B.height)}};function h(E){switch(E.keyCode){case 27:if(y.jwGetFullscreen()){y.jwSetFullscreen(false)}break;case 32:if(y.jwGetState()!=d.api.events.state.IDLE&&y.jwGetState()!=d.api.events.state.PAUSED){y.jwPause()}else{y.jwPlay()}break}}function j(F,I){if(A.style.display=="none"){return}var E=[].concat(B.plugins.order);E.reverse();v=E.length+2;if(!B.fullscreen){B.width=F;B.height=I;g=F;u=I;a(w,{top:0,bottom:0,left:0,right:0,width:F,height:I,position:"relative"});a(A,{height:u,width:g});var J=o(x,E);if(J.length>0){v+=J.length;var H=J.indexOf("playlist"),G=J.indexOf("controlbar");if(H>=0&&G>=0){J[H]=J.splice(G,1,J[H])[0]}o(l,J,true)}}else{if(!(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)){o(s,E,true)}}C()}function o(G,K,E){var J=[];for(var I=0;I<K.length;I++){var H=K[I];if(b.exists(B.plugins.object[H].getDisplayElement)){if(B.plugins.config[H].currentPosition!=d.html5.view.positions.NONE){var F=G(H,v--);if(!F){J.push(H)}else{B.plugins.object[H].resize(F.width,F.height);if(E){delete F.width;delete F.height}a(B.plugins.object[H].getDisplayElement(),F)}}else{a(B.plugins.object[H].getDisplayElement(),{display:"none"})}}}return J}function x(F,G){if(b.exists(B.plugins.object[F].getDisplayElement)){if(B.plugins.config[F].position&&c(B.plugins.config[F].position)){if(!b.exists(B.plugins.object[F].getDisplayElement().parentNode)){A.appendChild(B.plugins.object[F].getDisplayElement())}var E=e(F);E.zIndex=G;return E}}return false}function l(G,H){if(!b.exists(B.plugins.object[G].getDisplayElement().parentNode)){w.appendChild(B.plugins.object[G].getDisplayElement())}var E=B.width,F=B.height;if(typeof B.width=="string"&&B.width.lastIndexOf("%")>-1){percentage=parseFloat(B.width.substring(0,B.width.lastIndexOf("%")))/100;E=Math.round(window.innerWidth*percentage)}if(typeof B.height=="string"&&B.height.lastIndexOf("%")>-1){percentage=parseFloat(B.height.substring(0,B.height.lastIndexOf("%")))/100;F=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:(E-b.parseDimension(w.style.left)-b.parseDimension(w.style.right)),height:(F-b.parseDimension(w.style.top)-b.parseDimension(w.style.bottom)),zIndex:H}}function s(E,F){return{position:"fixed",width:B.width,height:B.height,zIndex:F}}function C(){if(!b.exists(B.getMedia())){return}w.style.position="absolute";var G=B.getMedia().getDisplayElement();if(G&&G.tagName.toLowerCase()=="video"){G.style.position="absolute";var I,H;if(w.style.width.toString().lastIndexOf("%")>-1||w.style.width.toString().lastIndexOf("%")>-1){var E=w.getBoundingClientRect();I=Math.abs(E.left)+Math.abs(E.right);H=Math.abs(E.top)+Math.abs(E.bottom)}else{I=b.parseDimension(w.style.width);H=b.parseDimension(w.style.height)}if(G.parentNode){G.parentNode.style.left=w.style.left;G.parentNode.style.top=w.style.top}b.stretch(y.jwGetStretching(),G,I,H,G.videoWidth?G.videoWidth:400,G.videoHeight?G.videoHeight:300)}else{var F=B.plugins.object.display.getDisplayElement();if(F){B.getMedia().resize(b.parseDimension(F.style.width),b.parseDimension(F.style.height))}else{B.getMedia().resize(b.parseDimension(w.style.width),b.parseDimension(w.style.height))}}}function e(F){var G={position:"absolute",margin:0,padding:0,top:null};var E=B.plugins.config[F].currentPosition.toLowerCase();switch(E.toUpperCase()){case d.html5.view.positions.TOP:G.top=b.parseDimension(w.style.top);G.left=b.parseDimension(w.style.left);G.width=g-b.parseDimension(w.style.left)-b.parseDimension(w.style.right);G.height=B.plugins.object[F].height;w.style[E]=b.parseDimension(w.style[E])+B.plugins.object[F].height+"px";w.style.height=b.parseDimension(w.style.height)-G.height+"px";break;case d.html5.view.positions.RIGHT:G.top=b.parseDimension(w.style.top);G.right=b.parseDimension(w.style.right);G.width=B.plugins.object[F].width;G.height=u-b.parseDimension(w.style.top)-b.parseDimension(w.style.bottom);w.style[E]=b.parseDimension(w.style[E])+B.plugins.object[F].width+"px";w.style.width=b.parseDimension(w.style.width)-G.width+"px";break;case d.html5.view.positions.BOTTOM:G.bottom=b.parseDimension(w.style.bottom);G.left=b.parseDimension(w.style.left);G.width=g-b.parseDimension(w.style.left)-b.parseDimension(w.style.right);G.height=B.plugins.object[F].height;w.style[E]=b.parseDimension(w.style[E])+B.plugins.object[F].height+"px";w.style.height=b.parseDimension(w.style.height)-G.height+"px";break;case d.html5.view.positions.LEFT:G.top=b.parseDimension(w.style.top);G.left=b.parseDimension(w.style.left);G.width=B.plugins.object[F].width;G.height=u-b.parseDimension(w.style.top)-b.parseDimension(w.style.bottom);w.style[E]=b.parseDimension(w.style[E])+B.plugins.object[F].width+"px";w.style.width=b.parseDimension(w.style.width)-G.width+"px";break;default:break}return G}this.resize=j;this.fullscreen=function(H){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(B.getMedia().getDisplayElement().webkitSupportsFullscreen){if(H){try{B.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(G){}}else{try{B.getMedia().getDisplayElement().webkitExitFullscreen()}catch(G){}}}}else{if(H){document.onkeydown=h;clearInterval(p);var F=document.body.getBoundingClientRect();B.width=Math.abs(F.left)+Math.abs(F.right);B.height=window.innerHeight;var E={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};a(A,E);E.zIndex=1;if(B.getMedia()&&B.getMedia().getDisplayElement()){a(B.getMedia().getDisplayElement(),E)}E.zIndex=2;a(w,E)}else{document.onkeydown="";B.width=g;B.height=u;a(A,{position:"relative",height:B.height,width:B.width,zIndex:0})}j(B.width,B.height)}}};function c(e){return([d.html5.view.positions.TOP,d.html5.view.positions.RIGHT,d.html5.view.positions.BOTTOM,d.html5.view.positions.LEFT].toString().indexOf(e.toUpperCase())>-1)}d.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide: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=a.utils;_css=_utils.css;_hide=function(c){_css(c,{display:"none"})};_show=function(c){_css(c,{display:"block"})};a.html5.controlbar=function(aa,r){var Z=aa;var M=_utils.extend({},b,Z.skin.getComponentSettings("controlbar"),r);if(M.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[M.position]=="undefined"){return}if(_utils.mapLength(Z.skin.getComponentLayout("controlbar"))>0){M.layout=Z.skin.getComponentLayout("controlbar")}var I;var l;var H;var O;var A="none";var W;var Y;var K;var V;var U;var D;var m={};var u=false;var ag={};var ae;var X=false;var ad;var ah;var o=false;var S=false;var s=new a.html5.eventdispatcher();_utils.extend(this,s);function e(){if(!ae){ae=Z.skin.getSkinElement("controlbar","background");if(!ae){ae={width:0,height:0,src:null}}}return ae}function j(){H=0;O=0;l=0;if(!u){var aj={height:e().height,backgroundColor:M.backgroundcolor};I=document.createElement("div");I.id=Z.id+"_jwplayer_controlbar";_css(I,aj)}var ai=(Z.skin.getSkinElement("controlbar","capLeft"));var al=(Z.skin.getSkinElement("controlbar","capRight"));if(ai){C("capLeft","left",false,I)}var ak={position:"absolute",height:e().height,left:(ai?ai.width:0),zIndex:0};af("background",I,ak,"img");if(e().src){m.background.src=e().src}ak.zIndex=1;af("elements",I,ak);if(al){C("capRight","right",false,I)}}this.getDisplayElement=function(){return I};this.resize=function(aj,ak){_utils.cancelAnimation(I);document.getElementById(Z.id).onmousemove=G;U=aj;D=ak;if(S!=Z.jwGetFullscreen()){S=Z.jwGetFullscreen();ah=undefined}var ai=B();G();d({id:Z.id,duration:K,position:Y});z({id:Z.id,bufferPercent:V});return ai};this.show=function(){if(X){X=false;_show(I);p()}};this.hide=function(){if(!X){X=true;_hide(I);F()}};function v(){var ai=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var aj in ai){var ak=ai[aj];if(typeof m[ak]!="undefined"){ag[ak]=m[ak].getBoundingClientRect()}}}function G(ai){if(X){return}if(M.position==a.html5.view.positions.OVER||Z.jwGetFullscreen()){clearTimeout(ad);switch(Z.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(!M.idlehide||_utils.exists(ai)){q()}if(M.idlehide){ad=setTimeout(function(){E()},2000)}break;default:if(ai){q()}ad=setTimeout(function(){E()},2000);break}}}function E(ai){F();_utils.cancelAnimation(I);_utils.fadeTo(I,0,0.1,1,0)}function q(){p();_utils.cancelAnimation(I);_utils.fadeTo(I,1,0,1,0)}function c(ai){return function(){if(o&&ah!=ai){ah=ai;s.sendEvent(ai,{component:"controlbar",boundingRect:k()})}}}var p=c(a.api.events.JWPLAYER_COMPONENT_SHOW);var F=c(a.api.events.JWPLAYER_COMPONENT_HIDE);function k(){if(M.position==a.html5.view.positions.OVER||Z.jwGetFullscreen()){return _utils.getDimensions(I)}else{return{x:0,y:0,width:0,height:0}}}function af(al,ak,aj,am){var ai;if(!u){if(!am){am="div"}ai=document.createElement(am);m[al]=ai;ai.id=I.id+"_"+al;ak.appendChild(ai)}else{ai=document.getElementById(I.id+"_"+al)}if(_utils.exists(aj)){_css(ai,aj)}return ai}function h(){T(M.layout.left);T(M.layout.right,-1);T(M.layout.center)}function T(ak,am){var al=ak.position=="right"?"right":"left";var aj=_utils.extend([],ak.elements);if(_utils.exists(am)){aj.reverse()}for(var ai=0;ai<aj.length;ai++){L(aj[ai],al)}}function f(){return l++}function L(am,ao){var al,aj,ak,ai,aq;if(am.type=="divider"){C("divider"+f(),ao,true,undefined,undefined,am.width,am.element);return}switch(am.name){case"play":C("playButton",ao,false);C("pauseButton",ao,true);n("playButton","jwPlay");n("pauseButton","jwPause");break;case"prev":C("prevButton",ao,true);n("prevButton","jwPlaylistPrev");break;case"stop":C("stopButton",ao,true);n("stopButton","jwStop");break;case"next":C("nextButton",ao,true);n("nextButton","jwPlaylistNext");break;case"elapsed":C("elapsedText",ao,true);break;case"time":aj=!_utils.exists(Z.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:Z.skin.getSkinElement("controlbar","timeSliderCapLeft").width;ak=!_utils.exists(Z.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:Z.skin.getSkinElement("controlbar","timeSliderCapRight").width;al=ao=="left"?aj:ak;ai=Z.skin.getSkinElement("controlbar","timeSliderRail").width+aj+ak;aq={height:e().height,position:"absolute",top:0,width:ai};aq[ao]=ao=="left"?H:O;var an=af("timeSlider",m.elements,aq);C("timeSliderCapLeft",ao,true,an,ao=="left"?0:al);C("timeSliderRail",ao,false,an,al);C("timeSliderBuffer",ao,false,an,al);C("timeSliderProgress",ao,false,an,al);C("timeSliderThumb",ao,false,an,al);C("timeSliderCapRight",ao,true,an,ao=="right"?0:al);t("time");break;case"fullscreen":C("fullscreenButton",ao,false);C("normalscreenButton",ao,true);n("fullscreenButton","jwSetFullscreen",true);n("normalscreenButton","jwSetFullscreen",false);break;case"volume":aj=!_utils.exists(Z.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:Z.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;ak=!_utils.exists(Z.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:Z.skin.getSkinElement("controlbar","volumeSliderCapRight").width;al=ao=="left"?aj:ak;ai=Z.skin.getSkinElement("controlbar","volumeSliderRail").width+aj+ak;aq={height:e().height,position:"absolute",top:0,width:ai};aq[ao]=ao=="left"?H:O;var ap=af("volumeSlider",m.elements,aq);C("volumeSliderCapLeft",ao,true,ap,ao=="left"?0:al);C("volumeSliderRail",ao,true,ap,al);C("volumeSliderProgress",ao,false,ap,al);C("volumeSliderCapRight",ao,true,ap,ao=="right"?0:al);t("volume");break;case"mute":C("muteButton",ao,false);C("unmuteButton",ao,true);n("muteButton","jwSetMute",true);n("unmuteButton","jwSetMute",false);break;case"duration":C("durationText",ao,true);break}}function C(al,ao,aj,ar,am,ai,ak){if(_utils.exists(Z.skin.getSkinElement("controlbar",al))||al.indexOf("Text")>0||al.indexOf("divider")===0){var an={height:e().height,position:"absolute",display:"block",top:0};if((al.indexOf("next")===0||al.indexOf("prev")===0)&&Z.jwGetPlaylist().length<2){aj=false;an.display="none"}var at;if(al.indexOf("Text")>0){al.innerhtml="00:00";an.font=M.fontsize+"px/"+(e().height+1)+"px "+M.font;an.color=M.fontcolor;an.textAlign="center";an.fontWeight=M.fontweight;an.fontStyle=M.fontstyle;an.cursor="default";at=14+3*M.fontsize}else{if(al.indexOf("divider")===0){if(ai){if(!isNaN(parseInt(ai))){at=parseInt(ai)}}else{if(ak){var ap=Z.skin.getSkinElement("controlbar",ak);if(ap){an.background="url("+ap.src+") repeat-x center left";at=ap.width}}else{an.background="url("+Z.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";at=Z.skin.getSkinElement("controlbar","divider").width}}}else{an.background="url("+Z.skin.getSkinElement("controlbar",al).src+") repeat-x center left";at=Z.skin.getSkinElement("controlbar",al).width}}if(ao=="left"){an.left=isNaN(am)?H:am;if(aj){H+=at}}else{if(ao=="right"){an.right=isNaN(am)?O:am;if(aj){O+=at}}}if(_utils.typeOf(ar)=="undefined"){ar=m.elements}an.width=at;if(u){_css(m[al],an)}else{var aq=af(al,ar,an);if(_utils.exists(Z.skin.getSkinElement("controlbar",al+"Over"))){aq.onmouseover=function(au){aq.style.backgroundImage=["url(",Z.skin.getSkinElement("controlbar",al+"Over").src,")"].join("")};aq.onmouseout=function(au){aq.style.backgroundImage=["url(",Z.skin.getSkinElement("controlbar",al).src,")"].join("")}}}}}function Q(){Z.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,J);Z.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,x);Z.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,z);Z.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,w);Z.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,d);Z.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,R);Z.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,ab);Z.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,g)}function J(){j();h();B();N()}function x(ai){K=Z.jwGetPlaylist()[ai.index].duration;d({id:Z.id,duration:K,position:0});z({id:Z.id,bufferProgress:0})}function N(){d({id:Z.id,duration:Z.jwGetDuration(),position:0});z({id:Z.id,bufferProgress:0});R({id:Z.id,mute:Z.jwGetMute()});w({id:Z.id,newstate:a.api.events.state.IDLE});ab({id:Z.id,volume:Z.jwGetVolume()})}function n(aj,ak,ai){if(u){return}if(_utils.exists(Z.skin.getSkinElement("controlbar",aj))){var al=m[aj];if(_utils.exists(al)){_css(al,{cursor:"pointer"});if(ak=="fullscreen"){al.onmouseup=function(am){am.stopPropagation();Z.jwSetFullscreen(!Z.jwGetFullscreen())}}else{al.onmouseup=function(am){am.stopPropagation();if(_utils.exists(ai)){Z[ak](ai)}else{Z[ak]()}}}}}}function t(aj){if(u){return}var ai=m[aj+"Slider"];_css(m.elements,{cursor:"pointer"});_css(ai,{cursor:"pointer"});ai.onmousedown=function(ak){A=aj};ai.onmouseup=function(ak){ak.stopPropagation();P(ak.pageX)};ai.onmousemove=function(ak){if(A=="time"){W=true;var al=ak.pageX-ag[aj+"Slider"].left-window.pageXOffset;_css(m.timeSliderThumb,{left:al})}}}function P(ai){W=false;var al;if(A=="time"){al=ai-ag.timeSliderRail.left+window.pageXOffset;var ak=al/ag.timeSliderRail.width*K;if(ak<0){ak=0}else{if(ak>K){ak=K-3}}if(Z.jwGetState()==a.api.events.state.PAUSED||Z.jwGetState()==a.api.events.state.IDLE){Z.jwPlay()}Z.jwSeek(ak)}else{if(A=="volume"){al=ai-ag.volumeSliderRail.left-window.pageXOffset;var aj=Math.round(al/ag.volumeSliderRail.width*100);if(aj<0){aj=0}else{if(aj>100){aj=100}}if(Z.jwGetMute()){Z.jwSetMute(false)}Z.jwSetVolume(aj)}}A="none"}function z(ai){if(_utils.exists(ai.bufferPercent)){V=ai.bufferPercent}if(ag.timeSliderRail){var aj=ag.timeSliderRail.width;var ak=isNaN(Math.round(aj*V/100))?0:Math.round(aj*V/100);_css(m.timeSliderBuffer,{width:ak})}}function R(ai){if(ai.mute){_hide(m.muteButton);_show(m.unmuteButton);_hide(m.volumeSliderProgress)}else{_show(m.muteButton);_hide(m.unmuteButton);_show(m.volumeSliderProgress)}}function w(ai){if(ai.newstate==a.api.events.state.BUFFERING||ai.newstate==a.api.events.state.PLAYING){_show(m.pauseButton);_hide(m.playButton)}else{_hide(m.pauseButton);_show(m.playButton)}G();if(ai.newstate==a.api.events.state.IDLE){_hide(m.timeSliderBuffer);_hide(m.timeSliderProgress);_hide(m.timeSliderThumb);d({id:Z.id,duration:Z.jwGetDuration(),position:0})}else{_show(m.timeSliderBuffer);if(ai.newstate!=a.api.events.state.BUFFERING){_show(m.timeSliderProgress);_show(m.timeSliderThumb)}}}function g(ai){z({bufferPercent:0});d(_utils.extend(ai,{position:0,duration:K}))}function d(ak){if(_utils.exists(ak.position)){Y=ak.position}if(_utils.exists(ak.duration)){K=ak.duration}var ai=(Y===K===0)?0:Y/K;var al=ag.timeSliderRail;if(al){var am=isNaN(Math.round(al.width*ai))?0:Math.round(al.width*ai);var aj=am;if(m.timeSliderProgress){m.timeSliderProgress.style.width=am+"px";if(!W){if(m.timeSliderThumb){m.timeSliderThumb.style.left=aj+"px"}}}}if(m.durationText){m.durationText.innerHTML=_utils.timeFormat(K)}if(m.elapsedText){m.elapsedText.innerHTML=_utils.timeFormat(Y)}}function ac(){var al,ai;var aj=document.getElementById(I.id+"_elements");if(!aj){return}var ak=aj.childNodes;for(var am in aj.childNodes){if(isNaN(parseInt(am,10))){continue}if(ak[am].id.indexOf(I.id+"_divider")===0&&ai&&ai.id.indexOf(I.id+"_divider")===0&&ak[am].style.backgroundImage==ai.style.backgroundImage){ak[am].style.display="none"}else{if(ak[am].id.indexOf(I.id+"_divider")===0&&al&&al.style.display!="none"){ak[am].style.display="block"}}if(ak[am].style.display!="none"){ai=ak[am]}al=ak[am]}}function B(){ac();if(Z.jwGetFullscreen()){_show(m.normalscreenButton);_hide(m.fullscreenButton)}else{_hide(m.normalscreenButton);_show(m.fullscreenButton)}var ai={width:U};var am={};if(M.position==a.html5.view.positions.OVER||Z.jwGetFullscreen()){ai.left=M.margin;ai.width-=2*M.margin;ai.top=D-e().height-M.margin;ai.height=e().height}var ak=Z.skin.getSkinElement("controlbar","capLeft");var aj=Z.skin.getSkinElement("controlbar","capRight");am.left=ak?ak.width:0;am.width=ai.width-am.left-(aj?aj.width:0);var al=!_utils.exists(Z.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:Z.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(m.timeSliderRail,{width:(am.width-H-O),left:al});if(_utils.exists(m.timeSliderCapRight)){_css(m.timeSliderCapRight,{left:al+(am.width-H-O)})}_css(I,ai);_css(m.elements,am);_css(m.background,am);v();return ai}function ab(al){if(_utils.exists(m.volumeSliderRail)){var aj=isNaN(al.volume/100)?1:al.volume/100;var ak=_utils.parseDimension(m.volumeSliderRail.style.width);var an=isNaN(Math.round(ak*aj))?0:Math.round(ak*aj);var am=_utils.parseDimension(m.volumeSliderRail.style.right);var ai=(!_utils.exists(Z.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:Z.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(m.volumeSliderProgress,{width:an,left:ai});if(_utils.exists(m.volumeSliderCapLeft)){_css(m.volumeSliderCapLeft,{left:0})}}}function y(){j();h();v();u=true;Q();M.idlehide=(M.idlehide.toString().toLowerCase()=="true");if(M.position==a.html5.view.positions.OVER&&M.idlehide){I.style.opacity=0;o=true}else{setTimeout((function(){o=true;p()}),1)}N()}y();return this}})(jwplayer);(function(c){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var a=c.utils;c.html5.controller=function(G,m,w,k){var L=G;var l=w;var v=k;var C=m;var q=true;var t=-1;var D=a.exists(l.config.debug)&&(l.config.debug.toString().toLowerCase()=="console");var A=new c.html5.eventdispatcher(C.id,D);a.extend(this,A);var f=[];var s=false;function K(M){if(s){A.sendEvent(M.type,M)}else{f.push(M)}}function I(M){if(!s){A.sendEvent(c.api.events.JWPLAYER_READY,M);if(c.utils.exists(window.playerReady)){playerReady(M)}if(c.utils.exists(window[w.config.playerReady])){window[w.config.playerReady](M)}while(f.length>0){var O=f.shift();A.sendEvent(O.type,O)}if(w.config.autostart&&!c.utils.isIOS()){g(l.item)}while(E.length>0){var N=E.shift();p(N.method,N.arguments)}s=true}}l.addGlobalListener(K);l.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){l.getMedia().play()});l.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(M){if(M.position>=l.playlist[l.item].start&&t>=0){l.playlist[l.item].start=t;t=-1}});l.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(M){setTimeout(e,25)});function h(){try{u(l.item);if(l.playlist[l.item].levels[0].file.length>0){if(q||l.state==c.api.events.state.IDLE){l.getMedia().load(l.playlist[l.item]);q=false}else{if(l.state==c.api.events.state.PAUSED){l.getMedia().play()}}}return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function o(){try{if(l.playlist[l.item].levels[0].file.length>0){switch(l.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:l.getMedia().pause();break}}return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function d(M){try{if(l.playlist[l.item].levels[0].file.length>0){if(typeof M!="number"){M=parseFloat(M)}switch(l.state){case c.api.events.state.IDLE:if(t<0){t=l.playlist[l.item].start;l.playlist[l.item].start=M}h();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:l.seek(M);break}}return true}catch(N){A.sendEvent(c.api.events.JWPLAYER_ERROR,N)}return false}function B(M){if(!a.exists(M)){M=true}try{l.getMedia().stop(M);return true}catch(N){A.sendEvent(c.api.events.JWPLAYER_ERROR,N)}return false}function y(){try{if(l.playlist[l.item].levels[0].file.length>0){if(l.config.shuffle){u(r())}else{if(l.item+1==l.playlist.length){u(0)}else{u(l.item+1)}}}if(l.state!=c.api.events.state.IDLE){var N=l.state;l.state=c.api.events.state.IDLE;A.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:N,newstate:c.api.events.state.IDLE})}h();return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function x(){try{if(l.playlist[l.item].levels[0].file.length>0){if(l.config.shuffle){u(r())}else{if(l.item===0){u(l.playlist.length-1)}else{u(l.item-1)}}}if(l.state!=c.api.events.state.IDLE){var N=l.state;l.state=c.api.events.state.IDLE;A.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:N,newstate:c.api.events.state.IDLE})}h();return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function r(){var M=null;if(l.playlist.length>1){while(!a.exists(M)){M=Math.floor(Math.random()*l.playlist.length);if(M==l.item){M=null}}}else{M=0}return M}function g(N){if(!l.playlist||!l.playlist[N]){return false}try{if(l.playlist[N].levels[0].file.length>0){var O=l.state;if(O!==c.api.events.state.IDLE){if(l.playlist[l.item].provider==l.playlist[N].provider){B(false)}else{B()}}u(N);h()}return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function u(M){if(!l.playlist[M]){return}l.setActiveMediaProvider(l.playlist[M]);if(l.item!=M){l.item=M;q=true;A.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:M})}}function n(N){try{u(l.item);var O=l.getMedia();switch(typeof(N)){case"number":O.volume(N);break;case"string":O.volume(parseInt(N,10));break}return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function F(N){try{u(l.item);var O=l.getMedia();if(typeof N=="undefined"){O.mute(!l.mute)}else{if(N.toString().toLowerCase()=="true"){O.mute(true)}else{O.mute(false)}}return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function z(N,M){try{l.width=N;l.height=M;v.resize(N,M);A.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:l.width,height:l.height});return true}catch(O){A.sendEvent(c.api.events.JWPLAYER_ERROR,O)}return false}function H(N){try{if(typeof N=="undefined"){l.fullscreen=!l.fullscreen;v.fullscreen(!l.fullscreen)}else{if(N.toString().toLowerCase()=="true"){l.fullscreen=true;v.fullscreen(true)}else{l.fullscreen=false;v.fullscreen(false)}}A.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:l.width,height:l.height});A.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:N});return true}catch(M){A.sendEvent(c.api.events.JWPLAYER_ERROR,M)}return false}function J(M){try{B();l.loadPlaylist(M);u(l.item);return true}catch(N){A.sendEvent(c.api.events.JWPLAYER_ERROR,N)}return false}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function e(){switch(l.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:h();break;case c.html5.controller.repeatoptions.ALWAYS:if(l.item==l.playlist.length-1&&!l.config.shuffle){g(0)}else{y()}break;case c.html5.controller.repeatoptions.LIST:if(l.item==l.playlist.length-1&&!l.config.shuffle){B();u(0)}else{y()}break;default:B();break}}var E=[];function j(M){return function(){if(s){p(M,arguments)}else{E.push({method:M,arguments:arguments})}}}function p(O,N){var M=[];for(i=0;i<N.length;i++){M.push(N[i])}O.apply(this,M)}this.play=j(h);this.pause=j(o);this.seek=j(d);this.stop=j(B);this.next=j(y);this.prev=j(x);this.item=j(g);this.setVolume=j(n);this.setMute=j(F);this.resize=j(z);this.setFullscreen=j(H);this.load=j(J);this.playerReady=I}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></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(a){_utils=a.utils;_css=_utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};a.html5.display=function(g,J){var e={icons:true,showmute:false};var Q=_utils.extend({},e,J);var c=g;var r={};var N;var x;var z;var o;var v;var d;var D;var f=!_utils.exists(c.skin.getComponentSettings("display").bufferrotation)?15:parseInt(c.skin.getComponentSettings("display").bufferrotation,10);var t=!_utils.exists(c.skin.getComponentSettings("display").bufferinterval)?100:parseInt(c.skin.getComponentSettings("display").bufferinterval,10);var C=-1;var w="";var h=true;var M;var P=false;var n=false;var b=new a.html5.eventdispatcher();_utils.extend(this,b);var G={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:m},display_icon:{style:{cursor:"pointer",position:"absolute",top:((c.skin.getSkinElement("display","background").height-c.skin.getSkinElement("display","playIcon").height)/2),left:((c.skin.getSkinElement("display","background").width-c.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((x-c.skin.getSkinElement("display","background").height)/2),left:((N-c.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",c.skin.getSkinElement("display","background").src,")"]).join(""),width:c.skin.getSkinElement("display","background").width,height:c.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:N,height:x,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}}};c.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,s);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,s);c.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,s);c.jwAddEventListener(a.api.events.JWPLAYER_ERROR,p);k();function k(){r.display=F("div","display");r.display_text=F("div","display_text");r.display.appendChild(r.display_text);r.display_image=F("img","display_image");r.display_image.onerror=function(R){_hide(r.display_image)};r.display_image.onload=B;r.display_icon=F("div","display_icon");r.display_iconBackground=F("div","display_iconBackground");r.display.appendChild(r.display_image);r.display_iconBackground.appendChild(r.display_icon);r.display.appendChild(r.display_iconBackground);O();setTimeout((function(){n=true;if(Q.icons.toString()=="true"){I()}}),1)}this.getDisplayElement=function(){return r.display};this.resize=function(S,R){_css(r.display,{width:S,height:R});_css(r.display_text,{width:(S-10),top:((R-r.display_text.getBoundingClientRect().height)/2)});_css(r.display_iconBackground,{top:((R-c.skin.getSkinElement("display","background").height)/2),left:((S-c.skin.getSkinElement("display","background").width)/2)});if(N!=S||x!=R){N=S;x=R;M=undefined;I()}L();s({})};this.show=function(){if(P){P=false;u(c.jwGetState())}};this.hide=function(){if(!P){E();P=true}};function B(R){z=r.display_image.naturalWidth;o=r.display_image.naturalHeight;L()}function L(){_utils.stretch(c.jwGetStretching(),r.display_image,N,x,z,o)}function F(R,T){var S=document.createElement(R);S.id=c.id+"_jwplayer_"+T;_css(S,G[T].style);return S}function O(){for(var R in r){if(_utils.exists(G[R].click)){r[R].onclick=G[R].click}}}function m(R){if(typeof R.preventDefault!="undefined"){R.preventDefault()}else{R.returnValue=false}if(c.jwGetState()!=a.api.events.state.PLAYING){c.jwPlay()}else{c.jwPause()}}function q(R){if(D){E();return}r.display_icon.style.backgroundImage=(["url(",c.skin.getSkinElement("display",R).src,")"]).join("");_css(r.display_icon,{width:c.skin.getSkinElement("display",R).width,height:c.skin.getSkinElement("display",R).height,top:(c.skin.getSkinElement("display","background").height-c.skin.getSkinElement("display",R).height)/2,left:(c.skin.getSkinElement("display","background").width-c.skin.getSkinElement("display",R).width)/2});K();if(_utils.exists(c.skin.getSkinElement("display",R+"Over"))){r.display_icon.onmouseover=function(S){r.display_icon.style.backgroundImage=["url(",c.skin.getSkinElement("display",R+"Over").src,")"].join("")};r.display_icon.onmouseout=function(S){r.display_icon.style.backgroundImage=["url(",c.skin.getSkinElement("display",R).src,")"].join("")}}else{r.display_icon.onmouseover=null;r.display_icon.onmouseout=null}}function E(){if(Q.icons.toString()=="true"){_hide(r.display_icon);_hide(r.display_iconBackground);l()}}function K(){if(!P&&Q.icons.toString()=="true"){_show(r.display_icon);_show(r.display_iconBackground);I()}}function p(R){D=true;E();r.display_text.innerHTML=R.error;_show(r.display_text);r.display_text.style.top=((x-r.display_text.getBoundingClientRect().height)/2)+"px"}function H(){r.display_image.style.display="none"}function s(R){if((R.type==a.api.events.JWPLAYER_PLAYER_STATE||R.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&D){D=false;_hide(r.display_text)}var S=c.jwGetState();if(S==w){return}w=S;if(C>=0){clearTimeout(C)}if(h||c.jwGetState()==a.api.events.state.PLAYING||c.jwGetState()==a.api.events.state.PAUSED){u(c.jwGetState())}else{C=setTimeout(j(c.jwGetState()),500)}}function j(R){return(function(){u(R)})}function u(R){if(_utils.exists(d)){clearInterval(d);d=null;_utils.animations.rotate(r.display_icon,0)}switch(R){case a.api.events.state.BUFFERING:if(_utils.isIOS()){H();E()}else{if(c.jwGetPlaylist()[c.jwGetItem()].provider=="sound"){y()}v=0;d=setInterval(function(){v+=f;_utils.animations.rotate(r.display_icon,v%360)},t);q("bufferIcon");h=true}break;case a.api.events.state.PAUSED:if(!_utils.isIOS()){if(c.jwGetPlaylist()[c.jwGetItem()].provider!="sound"){_css(r.display_image,{background:"transparent no-repeat center center"})}q("playIcon");h=true}break;case a.api.events.state.IDLE:if(c.jwGetPlaylist()[c.jwGetItem()]&&c.jwGetPlaylist()[c.jwGetItem()].image){y()}else{H()}q("playIcon");h=true;break;default:if(c.jwGetPlaylist()[c.jwGetItem()]&&c.jwGetPlaylist()[c.jwGetItem()].provider=="sound"){if(_utils.isIOS()){H();h=false}else{y()}}else{H();h=false}if(c.jwGetMute()&&Q.showmute){q("muteIcon")}else{E()}break}C=-1}function y(){if(c.jwGetPlaylist()[c.jwGetItem()]&&c.jwGetPlaylist()[c.jwGetItem()].image){_css(r.display_image,{display:"block"});r.display_image.src=_utils.getAbsolutePath(c.jwGetPlaylist()[c.jwGetItem()].image)}}function A(R){return function(){if(!n){return}if(!P&&M!=R){M=R;b.sendEvent(R,{component:"display",boundingRect:_utils.getDimensions(r.display_iconBackground)})}}}var I=A(a.api.events.JWPLAYER_COMPONENT_SHOW);var l=A(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(a){_css=a.utils.css;a.html5.dock=function(s,l){function t(){return{align:a.html5.view.positions.RIGHT}}var m=a.utils.extend({},t(),l);if(m.align=="FALSE"){return}var f={};var v=[];var g;var n;var d=false;var j=false;var e={x:0,y:0,width:0,height:0};var u;var k=new a.html5.eventdispatcher();_utils.extend(this,k);var p=document.createElement("div");p.id=s.id+"_jwplayer_dock";s.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,o);this.getDisplayElement=function(){return p};this.setButton=function(z,A,x,y){if(!A&&f[z]){a.utils.arrays.remove(v,z);p.removeChild(f[z].div);delete f[z]}else{if(A){if(!f[z]){f[z]={}}f[z].handler=A;f[z].outGraphic=x;f[z].overGraphic=y;if(!f[z].div){v.push(z);f[z].div=document.createElement("div");f[z].div.style.position="relative";p.appendChild(f[z].div);f[z].div.appendChild(document.createElement("img"));f[z].div.childNodes[0].style.position="absolute";f[z].div.childNodes[0].style.left=0;f[z].div.childNodes[0].style.top=0;f[z].div.childNodes[0].style.zIndex=10;f[z].div.childNodes[0].style.cursor="pointer";f[z].div.appendChild(document.createElement("img"));f[z].div.childNodes[1].style.position="absolute";f[z].div.childNodes[1].style.left=0;f[z].div.childNodes[1].style.top=0;if(s.skin.getSkinElement("dock","button")){f[z].div.childNodes[1].src=s.skin.getSkinElement("dock","button").src}f[z].div.childNodes[1].style.zIndex=9;f[z].div.childNodes[1].style.cursor="pointer";f[z].div.onmouseover=function(){if(f[z].overGraphic){f[z].div.childNodes[0].src=f[z].overGraphic}if(s.skin.getSkinElement("dock","buttonOver")){f[z].div.childNodes[1].src=s.skin.getSkinElement("dock","buttonOver").src}};f[z].div.onmouseout=function(){if(f[z].outGraphic){f[z].div.childNodes[0].src=f[z].outGraphic}if(s.skin.getSkinElement("dock","button")){f[z].div.childNodes[1].src=s.skin.getSkinElement("dock","button").src}};if(f[z].overGraphic){f[z].div.childNodes[0].src=f[z].overGraphic}if(f[z].outGraphic){f[z].div.childNodes[0].src=f[z].outGraphic}if(s.skin.getSkinElement("dock","button")){f[z].div.childNodes[1].src=s.skin.getSkinElement("dock","button").src}}if(A){f[z].div.onclick=function(B){B.preventDefault();a(s.id).callback(z);if(f[z].overGraphic){f[z].div.childNodes[0].src=f[z].overGraphic}if(s.skin.getSkinElement("dock","button")){f[z].div.childNodes[1].src=s.skin.getSkinElement("dock","button").src}}}}}h(g,n)};function h(C,D){if(v.length>0){var E=10;var B=E;var y=-1;var z=s.skin.getSkinElement("dock","button").height;var x=s.skin.getSkinElement("dock","button").width;var J=C-x-E;var A,I;if(m.align==a.html5.view.positions.LEFT){y=1;J=E}for(var G=0;G<v.length;G++){var F=Math.floor(B/D);if((B+z+E)>((F+1)*D)){B=((F+1)*D)+E;F=Math.floor(B/D)}var H=f[v[G]].div;H.style.top=(B%D)+"px";H.style.left=(J+(s.skin.getSkinElement("dock","button").width+E)*F*y)+"px";var K={x:a.utils.parseDimension(H.style.left),y:a.utils.parseDimension(H.style.top),width:x,height:z};if(!A||(K.x<=A.x&&K.y<=A.y)){A=K}if(!I||(K.x>=I.x&&K.y>=I.y)){I=K}B+=s.skin.getSkinElement("dock","button").height+E}e={x:A.x,y:A.y,width:I.x-A.x+I.width,height:A.y-I.y+I.height}}if(j!=s.jwGetFullscreen()||g!=C||n!=D){g=C;n=D;j=s.jwGetFullscreen();u=undefined;setTimeout(q,1)}}function b(x){return function(){if(!d&&u!=x&&v.length>0){u=x;k.sendEvent(x,{component:"dock",boundingRect:e})}}}function o(x){if(a.utils.isIOS()){switch(x.newstate){case a.api.events.state.IDLE:r();break;default:c();break}}}var q=b(a.api.events.JWPLAYER_COMPONENT_SHOW);var w=b(a.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=h;var r=function(){_css(p,{display:"block"});if(d){d=false;q()}};var c=function(){_css(p,{display:"none"});if(!d){w();d=true}};this.hide=c;this.show=r;return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(d,b){var c=new a.events.eventdispatcher(b);a.utils.extend(this,c);this.sendEvent=function(e,f){if(!a.utils.exists(f)){f={}}a.utils.extend(f,{id:d,version:a.version,type:e});c.sendEvent(e,f)}}})(jwplayer);(function(a){var b={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(s,k){var h=s;var u;var e;var t;var n=false;l();function l(){d();c();q()}function d(){if(b.prefix){var v=s.version.split(/\W/).splice(0,2).join("/");if(b.prefix.indexOf(v)<0){b.prefix+=v+"/"}}if(k.position==a.html5.view.positions.OVER){k.position=b.position}e=a.utils.extend({},b,k)}function c(){t=document.createElement("img");t.id=h.id+"_jwplayer_logo";t.style.display="none";t.onload=function(v){_css(t,p());h.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,o);f()};if(!e.file){return}if(e.file.indexOf("http://")===0){t.src=e.file}else{t.src=e.prefix+e.file}}if(!e.file){return}this.resize=function(w,v){};this.getDisplayElement=function(){return t};function q(){if(e.link){t.onmouseover=j;t.onmouseout=f;t.onclick=m}else{this.mouseEnabled=false}}function m(v){if(typeof v!="undefined"){v.stopPropagation()}if(!n){return}h.jwPause();h.jwSetFullscreen(false);if(e.link){window.open(e.link,"_top")}return}function f(v){if(e.link&&n){t.style.opacity=e.out}return}function j(v){if(e.hide.toString()=="true"&&n){t.style.opacity=e.over}return}function p(){var x={textDecoration:"none",position:"absolute",cursor:"pointer"};x.display=(e.hide.toString()=="true")?"none":"block";var w=e.position.toLowerCase().split("-");for(var v in w){x[w[v]]=e.margin}return x}function r(){if(e.hide.toString()=="true"){t.style.display="block";t.style.opacity=0;a.utils.fadeTo(t,e.out,0.1,parseFloat(t.style.opacity));u=setTimeout(function(){g()},e.timeout*1000)}n=true}function g(){n=false;if(e.hide.toString()=="true"){a.utils.fadeTo(t,0,0.1,parseFloat(t.style.opacity))}}function o(v){if(v.newstate==a.api.events.state.BUFFERING){clearTimeout(u);r()}}return this}})(jwplayer);(function(d){var a={ended:d.api.events.state.IDLE,playing:d.api.events.state.PLAYING,pause:d.api.events.state.PAUSED,buffering:d.api.events.state.BUFFERING};var c=d.utils;var e=c.css;var b=c.isIOS();d.html5.mediavideo=function(D,q){var o={abort:h,canplay:H,canplaythrough:H,durationchange:x,emptied:h,ended:H,error:u,loadeddata:x,loadedmetadata:x,loadstart:H,pause:H,play:h,playing:H,progress:w,ratechange:h,seeked:H,seeking:H,stalled:H,suspend:H,timeupdate:r,volumechange:h,waiting:H,canshowcurrentframe:h,dataunavailable:h,empty:h,load:F,loadedfirstframe:h};var G=new d.html5.eventdispatcher();c.extend(this,G);var E=D,f=q,g,n,l,C,A,y=false,p,k,m;j();this.load=function(L,I){if(typeof I=="undefined"){I=true}C=L;c.empty(g);m=0;if(L.levels&&L.levels.length>0){if(L.levels.length==1){g.src=L.levels[0].file}else{if(g.src){g.removeAttribute("src")}for(var K=0;K<L.levels.length;K++){var J=g.ownerDocument.createElement("source");J.src=L.levels[K].file;g.appendChild(J);m++}}}else{g.src=L.file}if(b){if(L.image){g.poster=L.image}g.controls="controls";g.style.display="block"}p=k=l=false;E.buffer=0;if(!c.exists(L.start)){L.start=0}E.duration=L.duration;G.sendEvent(d.api.events.JWPLAYER_MEDIA_LOADED);if((!b&&L.levels.length==1)||!y){g.load()}y=false;if(I){s(d.api.events.state.BUFFERING);G.sendEvent(d.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(n!=d.api.events.state.PLAYING){t();if(k){s(d.api.events.state.PLAYING)}else{s(d.api.events.state.BUFFERING)}g.play()}};this.pause=function(){g.pause();s(d.api.events.state.PAUSED)};this.seek=function(I){if(!(E.duration<=0||isNaN(E.duration))&&!(E.position<=0||isNaN(E.position))){g.currentTime=I;g.play()}};_stop=this.stop=function(K){if(!c.exists(K)){K=true}B();if(K){g.style.display="none";k=false;var I=navigator.userAgent;if(I.match(/chrome/i)){g.src=undefined}else{if(I.match(/safari/i)){g.removeAttribute("src")}else{g.src=""}}g.removeAttribute("controls");g.removeAttribute("poster");c.empty(g);g.load();y=true;if(g.webkitSupportsFullscreen){try{g.webkitExitFullscreen()}catch(J){}}}s(d.api.events.state.IDLE)};this.fullscreen=function(I){if(I===true){this.resize("100%","100%")}else{this.resize(E.config.width,E.config.height)}};this.resize=function(J,I){if(false){e(f,{width:J,height:I})}G.sendEvent(d.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:E.fullscreen,width:J,hieght:I})};this.volume=function(I){if(!b){g.volume=I/100;E.volume=I;G.sendEvent(d.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(I)})}};this.mute=function(I){if(!b){g.muted=I;E.mute=I;G.sendEvent(d.api.events.JWPLAYER_MEDIA_MUTE,{mute:I})}};this.getDisplayElement=function(){return g};this.hasChrome=function(){return false};function j(){g=document.createElement("video");n=d.api.events.state.IDLE;for(var I in o){g.addEventListener(I,function(J){if(c.exists(J.target.parentNode)){o[J.type](J)}},true)}g.setAttribute("x-webkit-airplay","allow");if(f.parentNode){f.parentNode.replaceChild(g,f)}if(!g.id){g.id=f.id}}function s(I){if(I==d.api.events.state.PAUSED&&n==d.api.events.state.IDLE){return}if(n!=I){var J=n;E.state=n=I;G.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:J,newstate:I})}}function h(I){}function w(J){var I;if(c.exists(J)&&J.lengthComputable&&J.total){I=J.loaded/J.total*100}else{if(c.exists(g.buffered)&&(g.buffered.length>0)){var K=g.buffered.length-1;if(K>=0){I=g.buffered.end(K)/g.duration*100}}}if(k===false&&n==d.api.events.state.BUFFERING){G.sendEvent(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL);k=true}if(!p){if(I==100){p=true}if(c.exists(I)&&(I>E.buffer)){E.buffer=Math.round(I);G.sendEvent(d.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(I)})}}}function r(J){if(c.exists(J)&&c.exists(J.target)){if(!isNaN(J.target.duration)&&(isNaN(E.duration)||E.duration<1)){if(J.target.duration==Infinity){E.duration=0}else{E.duration=Math.round(J.target.duration*10)/10}}if(!l&&g.readyState>0){g.style.display="block";s(d.api.events.state.PLAYING)}if(n==d.api.events.state.PLAYING){if(!l&&g.readyState>0){l=true;try{if(g.currentTime<C.start){g.currentTime=C.start}}catch(I){}g.volume=E.volume/100;g.muted=E.mute}E.position=E.duration>0?(Math.round(J.target.currentTime*10)/10):0;G.sendEvent(d.api.events.JWPLAYER_MEDIA_TIME,{position:E.position,duration:E.duration});if(E.position>=E.duration&&(E.position>0||E.duration>0)){z()}}}w(J)}function F(I){}function H(I){if(a[I.type]){if(I.type=="ended"){z()}else{s(a[I.type])}}}function x(I){var J={height:I.target.videoHeight,width:I.target.videoWidth,duration:Math.round(I.target.duration*10)/10};if((E.duration===0||isNaN(E.duration))&&I.target.duration!=Infinity){E.duration=Math.round(I.target.duration*10)/10}G.sendEvent(d.api.events.JWPLAYER_MEDIA_META,{metadata:J})}function u(J){if(n==d.api.events.state.IDLE){return}var I="There was an error: ";if((J.target.error&&J.target.tagName.toLowerCase()=="video")||J.target.parentNode.error&&J.target.parentNode.tagName.toLowerCase()=="video"){var K=!c.exists(J.target.error)?J.target.parentNode.error:J.target.error;switch(K.code){case K.MEDIA_ERR_ABORTED:I="You aborted the video playback: ";break;case K.MEDIA_ERR_NETWORK:I="A network error caused the video download to fail part-way: ";break;case K.MEDIA_ERR_DECODE:I="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case K.MEDIA_ERR_SRC_NOT_SUPPORTED:I="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:I="An unknown error occurred: ";break}}else{if(J.target.tagName.toLowerCase()=="source"){m--;if(m>0){return}I="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{c.log("An unknown error occurred.  Continuing...");return}}_stop(false);I+=v();_error=true;G.sendEvent(d.api.events.JWPLAYER_ERROR,{error:I});return}function v(){var I="";for(var L in C.levels){var K=C.levels[L];var J=f.ownerDocument.createElement("source");I+=d.utils.getAbsolutePath(K.file);if(L<(C.levels.length-1)){I+=", "}}return I}function t(){if(!c.exists(A)){A=setInterval(function(){w()},100)}}function B(){clearInterval(A);A=null}function z(){if(n!=d.api.events.state.IDLE){_stop(false);G.sendEvent(d.api.events.JWPLAYER_MEDIA_COMPLETE)}}}})(jwplayer);(function(b){var a={ended:b.api.events.state.IDLE,playing:b.api.events.state.PLAYING,pause:b.api.events.state.PAUSED,buffering:b.api.events.state.BUFFERING};var c=b.utils.css;b.html5.mediayoutube=function(d,l){var m=new b.html5.eventdispatcher();b.utils.extend(this,m);var f=d;var o=document.getElementById(l.id);var n=b.api.events.state.IDLE;var h,g;function e(p){if(n!=p){var q=n;f.state=p;n=p;m.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:q,newstate:p})}}this.getDisplayElement=function(){return o};this.play=function(){if(n==b.api.events.state.IDLE){m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL);e(b.api.events.state.PLAYING)}else{if(n==b.api.events.state.PAUSED){e(b.api.events.state.PLAYING)}}};this.pause=function(){e(b.api.events.state.PAUSED)};this.seek=function(p){};this.stop=function(p){if(!_utils.exists(p)){p=true}f.position=0;e(b.api.events.state.IDLE);if(p){c(o,{display:"none"})}};this.volume=function(p){f.volume=p;m.sendEvent(b.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(p)})};this.mute=function(p){o.muted=p;f.mute=p;m.sendEvent(b.api.events.JWPLAYER_MEDIA_MUTE,{mute:p})};this.resize=function(q,p){if(q*p>0&&h){h.width=g.width=q;h.height=g.height=p}m.sendEvent(b.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:f.fullscreen,width:q,height:p})};this.fullscreen=function(p){if(p===true){this.resize("100%","100%")}else{this.resize(f.config.width,f.config.height)}};this.load=function(p){j(p);c(h,{display:"block"});e(b.api.events.state.BUFFERING);m.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});m.sendEvent(b.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(n!=b.api.events.state.IDLE)};function j(u){var r=u.levels[0].file;r=["http://www.youtube.com/v/",k(r),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");h=document.createElement("object");h.id=o.id;h.style.position="absolute";var t={movie:r,allowfullscreen:"true",allowscriptaccess:"always"};for(var v in t){var s=document.createElement("param");s.name=v;s.value=t[v];h.appendChild(s)}g=document.createElement("embed");h.appendChild(g);var p={src:r,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:h.width,height:h.height};for(var q in p){g.setAttribute(q,p[q])}h.appendChild(g);h.style.zIndex=2147483000;if(o!=h&&o.parentNode){o.parentNode.replaceChild(h,o)}o=h}function k(q){var p=q.split(/\?|\#\!/);var s="";for(var r=0;r<p.length;r++){if(p[r].substr(0,2)=="v="){s=p[r].substr(2)}}if(s==""){if(q.indexOf("/v/")>=0){s=q.substr(q.indexOf("/v/")+3)}else{if(q.indexOf("youtu.be")>=0){s=q.substr(q.indexOf("youtu.be/")+9)}else{s=q}}}if(s.indexOf("?")>-1){s=s.substr(0,s.indexOf("?"))}if(s.indexOf("&")>-1){s=s.substr(0,s.indexOf("&"))}return s}this.embed=g;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute: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.isIOS()){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]}}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{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}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}}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}_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:_loadExternal(input);return;break}_model.playlist=new jwplayer.html5.playlist(config);if(jwplayer.utils.extension(_model.playlist[0].file)=="xml"){_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){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_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.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(a){a.html5.playlist=function(b){var d=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0){for(var c in b.playlist){if(!isNaN(parseInt(c))){d.push(new a.html5.playlistitem(b.playlist[c]))}}}else{d.push(new a.html5.playlistitem(b))}return d}})(jwplayer);(function(b){var a={size:180,position:b.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var c={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=b.utils;_css=_utils.css;_hide=function(d){_css(d,{display:"none"})};_show=function(d){_css(d,{display:"block"})};b.html5.playlistcomponent=function(t,s){var z=t;var e=b.utils.extend({},a,z.skin.getComponentSettings("playlist"),s);if(e.position==b.html5.view.positions.NONE||typeof b.html5.view.positions[e.position]=="undefined"){return}var A;var l;var u;var d;var g;var f;var k=-1;var h={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return A};this.resize=function(F,D){l=F;u=D;if(z.jwGetFullscreen()){_hide(A)}else{var E={display:"block",width:l,height:u};_css(A,E)}};this.show=function(){_show(A)};this.hide=function(){_hide(A)};function j(){A=document.createElement("div");A.id=z.id+"_jwplayer_playlistcomponent";switch(e.position){case b.html5.view.positions.RIGHT:case b.html5.view.positions.LEFT:A.style.width=e.size+"px";break;case b.html5.view.positions.TOP:case b.html5.view.positions.BOTTOM:A.style.height=e.size+"px";break}q();if(h.item){e.itemheight=h.item.height}A.style.backgroundColor="#C6C6C6";z.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,v);z.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,x);z.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,m)}function p(){var D=document.createElement("ul");_css(D,{width:A.style.width,minWidth:A.style.width,height:A.style.height,backgroundColor:e.backgroundcolor,backgroundImage:h.background?"url("+h.background.src+")":"",color:e.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:c[e.font]?c[e.font]:c._sans,fontSize:(e.fontsize?e.fontsize:11)+"px",fontStyle:e.fontstyle,fontWeight:e.fontweight,overflowY:"auto"});return D}function B(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=h.item?"url("+h.item.src+")":"";if(D==z.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(h.itemActive){G="url("+h.itemActive.src+")"}}_css(E,{color:e.overcolor!==""?e.overcolor:F,backgroundImage:h.itemOver?"url("+h.itemOver.src+")":G})}}function o(D){return function(){var E=f.getElementsByClassName("item")[D];var F=e.fontcolor;var G=h.item?"url("+h.item.src+")":"";if(D==z.jwGetPlaylistIndex()){if(e.activecolor!==""){F=e.activecolor}if(h.itemActive){G="url("+h.itemActive.src+")"}}_css(E,{color:F,backgroundImage:G})}}function r(F){var M=d[F];var L=document.createElement("li");L.className="item";_css(L,{height:e.itemheight,display:"block",cursor:"pointer",backgroundImage:h.item?"url("+h.item.src+")":"",backgroundSize:"100% "+e.itemheight+"px"});L.onmouseover=B(F);L.onmouseout=o(F);var G=document.createElement("div");var P=new Image();var H=0;var I=0;var J=0;if(y()&&(M.image||M["playlist.image"]||h.itemImage)){P.className="image";if(h.itemImage){H=(e.itemheight-h.itemImage.height)/2;I=h.itemImage.width;J=h.itemImage.height}else{I=e.itemheight*4/3;J=e.itemheight}_css(G,{height:J,width:I,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:H+"px",position:"relative"});_css(P,{position:"relative"});G.appendChild(P);P.onload=function(){b.utils.stretch(b.utils.stretching.FILL,P,I,J,this.naturalWidth,this.naturalHeight)};if(M["playlist.image"]){P.src=M["playlist.image"]}else{if(M.image){P.src=M.image}else{if(h.itemImage){P.src=h.itemImage.src}}}L.appendChild(G)}var O=l-I-H*2;if(u<e.itemheight*d.length){O-=15}var N=document.createElement("div");_css(N,{position:"relative",height:"100%",overflow:"hidden"});var D=document.createElement("span");if(M.duration>0){D.className="duration";_css(D,{fontSize:(e.fontsize?e.fontsize:11)+"px",fontWeight:(e.fontweight?e.fontweight:"bold"),width:"40px",height:e.fontsize?e.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});D.innerHTML=_utils.timeFormat(M.duration);N.appendChild(D)}var K=document.createElement("span");K.className="title";_css(K,{padding:"5px 5px 0 "+(H?0:"5px"),height:e.fontsize?e.fontsize+10:20,lineHeight:e.fontsize?e.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((M.duration>0)?O-50:O)-10+"px",fontSize:(e.fontsize?e.fontsize:13)+"px",fontWeight:(e.fontweight?e.fontweight:"bold")});K.innerHTML=M?M.title:"";N.appendChild(K);if(M.description){var E=document.createElement("span");E.className="description";_css(E,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:K.style.paddingLeft,paddingRight:K.style.paddingRight,lineHeight:(e.fontsize?e.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});E.innerHTML=M.description;N.appendChild(E)}L.appendChild(N);return L}function v(E){A.innerHTML="";d=z.jwGetPlaylist();if(!d){return}items=[];f=p();for(var F=0;F<d.length;F++){var D=r(F);D.onclick=C(F);f.appendChild(D);items.push(D)}k=z.jwGetPlaylistIndex();o(k)();A.appendChild(f);if(_utils.isIOS()&&window.iScroll){f.style.height=e.itemheight*d.length+"px";var G=new iScroll(A.id)}}function C(D){return function(){z.jwPlaylistItem(D);z.jwPlay(true)}}function n(){f.scrollTop=z.jwGetPlaylistIndex()*e.itemheight}function y(){return e.thumbs.toString().toLowerCase()=="true"}function x(D){if(k>=0){o(k)();k=D.index}o(D.index)();n()}function m(){if(e.position==b.html5.view.positions.OVER){switch(z.jwGetState()){case b.api.events.state.IDLE:_show(A);break;default:_hide(A);break}}}function q(){for(var D in h){h[D]=w(D)}}function w(D){return z.skin.getSkinElement("playlist",D)}j();return this}})(jwplayer);(function(b){b.html5.playlistitem=function(c){var d={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var e=b.utils.extend({},d,c);if(e.type){e.provider=e.type;delete e.type}if(e.levels.length===0){e.levels[0]=new b.html5.playlistitemlevel(e)}if(!e.provider){e.provider=a(e.levels[0])}else{e.provider=e.provider.toLowerCase()}return e};function a(c){if(b.utils.isYouTube(c.file)){return"youtube"}else{var d=b.utils.extension(c.file);var e;if(d&&b.utils.extensionmap[d]){if(d=="m3u8"){return"video"}e=b.utils.extensionmap[d].html5}else{if(c.type){e=c.type}}if(e){var f=e.split("/")[0];if(f=="audio"){return"sound"}else{if(f=="video"){return f}}}}return""}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(b){var d={file:"",streamer:"",bitrate:0,width:0};for(var c in d){if(a.utils.exists(b[c])){d[c]=b[c]}}return d}})(jwplayer);(function(a){a.html5.playlistloader=function(){var c=new a.html5.eventdispatcher();a.utils.extend(this,c);this.load=function(e){a.utils.ajax(e,d,b)};function d(f){var e=[];try{var e=a.utils.parsers.rssparser.parse(f.responseXML.firstChild);c.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:e})})}catch(g){b("Could not parse the playlist")}}function b(e){c.sendEvent(a.api.events.JWPLAYER_ERROR,{error:e?e:"could not load playlist for whatever reason.  too bad"})}}})(jwplayer);(function(a){a.html5.skin=function(){var b={};var c=false;this.load=function(d,e){new a.html5.skinloader(d,function(f){c=true;b=f;e()},function(){new a.html5.skinloader("",function(f){c=true;b=f;e()})})};this.getSkinElement=function(d,e){if(c){try{return b[d].elements[e]}catch(f){a.utils.log("No such skin component / element: ",[d,e])}}return null};this.getComponentSettings=function(d){if(c){return b[d].settings}return null};this.getComponentLayout=function(d){if(c){return b[d].layout}return null}}})(jwplayer);(function(a){a.html5.skinloader=function(b,p,f){var n={};var o=p;var g=f;var s=true;var e;var l=b;var k=false;function j(){if(typeof l!="string"||l===""){r(a.html5.defaultSkin().xml)}else{a.utils.ajax(a.utils.getAbsolutePath(l),function(t){try{if(a.utils.exists(t.responseXML)){r(t.responseXML);return}}catch(u){d()}r(a.html5.defaultSkin().xml)},function(t){r(a.html5.defaultSkin().xml)})}}function r(H){var x=H.getElementsByTagName("component");if(x.length===0){return}for(var E=0;E<x.length;E++){var v=x[E].getAttribute("name");var u={settings:{},elements:{},layout:{}};n[v]=u;var B=x[E].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var z=0;z<B.length;z++){m(B[z],v)}var J=x[E].getElementsByTagName("settings")[0];if(J&&J.childNodes.length>0){var K=J.getElementsByTagName("setting");for(var P=0;P<K.length;P++){var Q=K[P].getAttribute("name");var G=K[P].getAttribute("value");var F=/color$/.test(Q)?"color":null;n[v].settings[Q]=a.utils.typechecker(G,F)}}var L=x[E].getElementsByTagName("layout")[0];if(L&&L.childNodes.length>0){var M=L.getElementsByTagName("group");for(var D=0;D<M.length;D++){var t=M[D];n[v].layout[t.getAttribute("position")]={elements:[]};for(var O=0;O<t.attributes.length;O++){var w=t.attributes[O];n[v].layout[t.getAttribute("position")][w.name]=w.value}var N=t.getElementsByTagName("*");for(var C=0;C<N.length;C++){var y=N[C];n[v].layout[t.getAttribute("position")].elements.push({type:y.tagName});for(var A=0;A<y.attributes.length;A++){var I=y.attributes[A];n[v].layout[t.getAttribute("position")].elements[C][I.name]=I.value}if(!a.utils.exists(n[v].layout[t.getAttribute("position")].elements[C].name)){n[v].layout[t.getAttribute("position")].elements[C].name=y.tagName}}}}s=false;h()}}function h(){clearInterval(e);if(!k){e=setInterval(function(){q()},100)}}function m(t,z){var y=new Image();var v=t.getAttribute("name");var x=t.getAttribute("src");var A;if(x.indexOf("data:image/png;base64,")===0){A=x}else{var w=a.utils.getAbsolutePath(l);var u=w.substr(0,w.lastIndexOf("/"));A=[u,z,x].join("/")}n[z].elements[v]={height:0,width:0,src:"",ready:false,image:y};y.onload=function(B){c(y,v,z)};y.onerror=function(B){k=true;h();g()};y.src=A}function d(){for(var u in n){var w=n[u];for(var t in w.elements){var x=w.elements[t];var v=x.image;v.onload=null;v.onerror=null;delete x.image;delete w.elements[t]}delete n[u]}}function q(){for(var t in n){if(t!="properties"){for(var u in n[t].elements){if(!n[t].elements[u].ready){return}}}}if(s===false){clearInterval(e);o(n)}}function c(t,v,u){if(n[u]&&n[u].elements[v]){n[u].elements[v].height=t.height;n[u].elements[v].width=t.width;n[u].elements[v].src=t.src;n[u].elements[v].ready=true;h()}else{a.utils.log("Loaded an image for a missing element: "+u+"."+v)}}j()}})(jwplayer);(function(a){a.html5.api=function(h,g){var e={};var l=document.createElement("div");h.parentNode.replaceChild(l,h);l.id=h.id;e.version=a.version;e.id=l.id;var d=new a.html5.model(e,l,g);var b=new a.html5.view(e,l,d);var c=new a.html5.controller(e,l,d,b);e.skin=new a.html5.skin();e.jwPlay=function(o){if(typeof o=="undefined"){k()}else{if(o.toString().toLowerCase()=="true"){c.play()}else{c.pause()}}};e.jwPause=function(o){if(typeof o=="undefined"){k()}else{if(o.toString().toLowerCase()=="true"){c.pause()}else{c.play()}}};function k(){if(d.state==a.api.events.state.PLAYING||d.state==a.api.events.state.BUFFERING){c.pause()}else{c.play()}}e.jwStop=c.stop;e.jwSeek=c.seek;e.jwPlaylistItem=c.item;e.jwPlaylistNext=c.next;e.jwPlaylistPrev=c.prev;e.jwResize=c.resize;e.jwLoad=c.load;function n(o){return function(){return d[o]}}function j(o,q,p){return function(){var r=d.plugins.object[o];if(r&&r[q]&&typeof r[q]=="function"){r[q].apply(r,p)}}}e.jwGetItem=n("item");e.jwGetPosition=n("position");e.jwGetDuration=n("duration");e.jwGetBuffer=n("buffer");e.jwGetWidth=n("width");e.jwGetHeight=n("height");e.jwGetFullscreen=n("fullscreen");e.jwSetFullscreen=c.setFullscreen;e.jwGetVolume=n("volume");e.jwSetVolume=c.setVolume;e.jwGetMute=n("mute");e.jwSetMute=c.setMute;e.jwGetStretching=n("stretching");e.jwGetState=n("state");e.jwGetVersion=function(){return e.version};e.jwGetPlaylist=function(){return d.playlist};e.jwGetPlaylistIndex=e.jwGetItem;e.jwAddEventListener=c.addEventListener;e.jwRemoveEventListener=c.removeEventListener;e.jwSendEvent=c.sendEvent;e.jwDockSetButton=function(r,o,p,q){if(d.plugins.object.dock&&d.plugins.object.dock.setButton){d.plugins.object.dock.setButton(r,o,p,q)}};e.jwControlbarShow=j("controlbar","show");e.jwControlbarHide=j("controlbar","hide");e.jwDockShow=j("dock","show");e.jwDockHide=j("dock","hide");e.jwDisplayShow=j("display","show");e.jwDisplayHide=j("display","hide");e.jwGetLevel=function(){};e.jwGetBandwidth=function(){};e.jwGetLockState=function(){};e.jwLock=function(){};e.jwUnlock=function(){};function f(){if(d.config.playlistfile){d.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.loadPlaylist(d.config.playlistfile)}else{if(typeof d.config.playlist=="string"){d.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.loadPlaylist(d.config.playlist)}else{d.loadPlaylist(d.config);setTimeout(m,25)}}}function m(o){d.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m);d.setupPlugins();b.setup();var o={id:e.id,version:e.version};c.playerReady(o)}if(d.config.chromeless&&!a.utils.isIOS()){f()}else{e.skin.load(d.config.skin,f)}return e}})(jwplayer)};
