if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api){return jwplayer.api.selectPlayer(a)}};var $jw=jwplayer;jwplayer.version="5.8.2011 (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){if(!b.utils.exists(g.responseXML)){try{if(window.DOMParser){var h=(new DOMParser()).parseFromString(g.responseText,"text/xml");if(h){g=b.utils.extend({},g,{responseXML:h})}}else{h=new ActiveXObject("Microsoft.XMLDOM");h.async="false";h.loadXML(g.responseText);g=b.utils.extend({},g,{responseXML:h})}}catch(j){if(e){e(d)}}}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.userAgentMatch=function(d){var c=navigator.userAgent.toLowerCase();return(c.match(d)!==null)};b.utils.isIOS=function(){return b.utils.userAgentMatch(/iP(hone|ad|od)/i)};b.utils.isIPad=function(){return b.utils.userAgentMatch(/iPad/i)};b.utils.isIPod=function(){return b.utils.userAgentMatch(/iP(hone|od)/i)};b.utils.isAndroid=function(){return b.utils.userAgentMatch(/android/i)};b.utils.isLegacyAndroid=function(){return b.utils.userAgentMatch(/android 2.[012]/i)};b.utils.isBlackberry=function(){return b.utils.userAgentMatch(/blackberry/i)};b.utils.isMobile=function(){return b.utils.isIOS()};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(g,f,d,c,e){if(!b.utils.exists(f)){f=1}if(!b.utils.exists(d)){d=1}if(!b.utils.exists(c)){c=0}if(!b.utils.exists(e)){e=0}if(f==1&&d==1&&c==0&&e==0){g.style.webkitTransform="";g.style.MozTransform="";g.style.OTransform=""}else{var h="scale("+f+","+d+") translate("+c+"px,"+e+"px)";g.style.webkitTransform=h;g.style.MozTransform=h;g.style.OTransform=h}};b.utils.stretch=function(n,j,h,k,c,l){if(typeof h=="undefined"||typeof k=="undefined"||typeof c=="undefined"||typeof l=="undefined"){return}var f=h/c;var g=k/l;var p=0;var o=0;var e={};if(j.parentElement){j.parentElement.style.overflow="hidden"}b.utils.transform(j);switch(n.toUpperCase()){case b.utils.stretching.NONE:e.width=c;e.height=l;e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.UNIFORM:if(f>g){e.width=c*g;e.height=l*g}else{e.width=c*f;e.height=l*f}e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.FILL:if(f>g){e.width=c*f;e.height=l*f}else{e.width=c*g;e.height=l*g}e.top=(k-e.height)/2;e.left=(h-e.width)/2;break;case b.utils.stretching.EXACTFIT:e.width=c;e.height=l;var d=Math.round((c/2)*(1-1/f));var m=Math.round((l/2)*(1-1/g));b.utils.transform(j,f,g,d,m);e.top=e.left=0;break;default:break}b.utils.css(j,e)};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.getElementWidth=function(c){if(!c){return null}else{if(c==document.body){return b.utils.parentNode(c).clientWidth}else{if(c.clientWidth>0){return c.clientWidth}else{if(c.style){return b.utils.parseDimension(c.style.width)}else{return null}}}}};b.utils.getElementHeight=function(c){if(!c){return null}else{if(c==document.body){return b.utils.parentNode(c).clientHeight}else{if(c.clientHeight>0){return c.clientHeight}else{if(c.style){return b.utils.parseDimension(c.style.height)}else{return null}}}}};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};b.utils.useNativeFullscreen=function(){return(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)};b.utils.parentNode=function(c){if(!c){return docuemnt.body}else{if(c.parentNode){return c.parentNode}else{if(c.parentElement){return c.parentElement}else{return c}}}};b.utils.getBoundingClientRect=function(c){if(typeof c.getBoundingClientRect=="function"){return c.getBoundingClientRect()}else{return{left:c.offsetLeft+document.body.scrollLeft,top:c.offsetTop+document.body.scrollTop,width:c.offsetWidth,height:c.offsetHeight}}}})(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.replace(/"/g,'\\"')+'"'}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.replace(/"/g,'\\"')+'"';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 n=a.utils.getPluginName(j);var m=a.utils.getPluginVersion(j);var o=(window.location.href.indexOf("https://")==0)?l.replace("http://","https://secure"):l;return o+"/"+a.version.split(".")[0]+"/"+n+"/"+n+(m!==""?("-"+m):"")+".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;var v=document.getElementById(this.id+"_wrapper");if(v){v.style.width=u+"px";v.style.height=t+"px"}}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};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};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(b){var a=b.utils;b.embed=function(k){var g={width:400,height:300,components:{controlbar:{position:"over"}}};var f=a.mediaparser.parseMedia(k.container);var e=new b.embed.config(a.extend(g,f,k.config),this);var d=b.plugins.loadPlugins(k.id,e.plugins);function h(l,n){for(var m in n){if(typeof l[m]=="function"){(l[m]).call(l,n[m])}}}function j(){if(d.getStatus()==a.loaderstatus.COMPLETE){for(var t=0;t<e.modes.length;t++){if(e.modes[t].type&&b.embed[e.modes[t].type]){var m=e.modes[t].config;var q=e;if(m){q=a.extend(a.clone(e),m);var p=["file","levels","playlist"];for(var s=0;s<p.length;s++){var n=p[s];if(a.exists(m[n])){for(var r=0;r<p.length;r++){if(r!=s){var l=p[r];if(a.exists(q[l])&&!a.exists(m[l])){delete q[l]}}}}}}var o=new b.embed[e.modes[t].type](document.getElementById(k.id),e.modes[t],q,d,k);if(o.supportsConfig()){o.embed();h(k,e.events);return k}}}a.log("No suitable players found");new b.embed.logo(a.extend({hide:true},e.components.logo),"none",k.id)}}d.addEventListener(b.events.COMPLETE,j);d.addEventListener(b.events.ERROR,j);d.load();return k};function c(){if(!document.body){return setTimeout(c,15)}var f=a.selectors.getElementsByTagAndClass("video","jwplayer");for(var d=0;d<f.length;d++){var e=f[d];if(e.id==""){e.id="jwplayer_"+Math.round(Math.random()*100000)}b(e.id).setup({})}}c()})(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)}j.resize(m.clientWidth,m.clientHeight);k.left=m.style.left;k.top=m.style.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(a.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(b){var a=b.utils;var c=a.css;b.html5.view=function(m,k,x){var u=m;var H=k;var E=x;var C;var y;var s;var o;var v;var f;var p;var h=false;var j,e;function g(){C=document.createElement("div");C.id=H.id;C.className=H.className;_videowrapper=document.createElement("div");_videowrapper.id=C.id+"_video_wrapper";H.id=C.id+"_video";c(C,{position:"relative",height:E.height,width:E.width,padding:0,backgroundColor:I(),zIndex:0});function I(){if(u.skin.getComponentSettings("display")&&u.skin.getComponentSettings("display").backgroundcolor){return u.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}c(H,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});c(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});a.wrap(H,C);a.wrap(H,_videowrapper);o=document.createElement("div");o.id=C.id+"_displayarea";C.appendChild(o)}function B(){for(var I=0;I<E.plugins.order.length;I++){var J=E.plugins.order[I];if(a.exists(E.plugins.object[J].getDisplayElement)){E.plugins.object[J].height=a.parseDimension(E.plugins.object[J].getDisplayElement().style.height);E.plugins.object[J].width=a.parseDimension(E.plugins.object[J].getDisplayElement().style.width);E.plugins.config[J].currentPosition=E.plugins.config[J].position}}t()}function G(I){c(o,{display:(E.getMedia()&&E.getMedia().hasChrome()&&I.newstate!=b.api.events.state.IDLE)?"none":"block"})}function t(J){var L=E.getMedia()?E.getMedia().getDisplayElement():null;if(a.exists(L)){if(p!=L){if(p&&p.parentNode){p.parentNode.replaceChild(L,p)}p=L}for(var I=0;I<E.plugins.order.length;I++){var K=E.plugins.order[I];if(a.exists(E.plugins.object[K].getDisplayElement)){E.plugins.config[K].currentPosition=E.plugins.config[K].position}}}A(E.width,E.height)}this.setup=function(){if(E&&E.getMedia()){H=E.getMedia().getDisplayElement()}g();B();u.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,G);u.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_LOADED,t);u.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_META,function(){F()});var I;if(a.exists(window.onresize)){I=window.onresize}window.onresize=function(J){if(a.exists(I)){try{I(J)}catch(L){}}if(u.jwGetFullscreen()){if(!l()){var K=a.getBoundingClientRect(document.body);E.width=Math.abs(K.left)+Math.abs(K.right);E.height=window.innerHeight;A(E.width,E.height)}}else{A(E.width,E.height)}}};function z(I){switch(I.keyCode){case 27:if(u.jwGetFullscreen()){u.jwSetFullscreen(false)}break;case 32:if(u.jwGetState()!=b.api.events.state.IDLE&&u.jwGetState()!=b.api.events.state.PAUSED){u.jwPause()}else{u.jwPlay()}break}}function A(N,K){if(C.style.display=="none"){return}var M=[].concat(E.plugins.order);M.reverse();v=M.length+2;if(l()){try{if(E.fullscreen&&!E.getMedia().getDisplayElement().webkitDisplayingFullscreen){E.fullscreen=false}}catch(I){}}if(!E.fullscreen){y=N;s=K;if(typeof N=="string"&&N.indexOf("%")>0){y=a.getElementWidth(a.parentNode(C))*parseInt(N.replace("%"),"")/100}else{y=N}if(typeof K=="string"&&K.indexOf("%")>0){s=a.getElementHeight(a.parentNode(C))*parseInt(K.replace("%"),"")/100}else{s=K}c(o,{top:0,bottom:0,left:0,right:0,width:y,height:s,position:"absolute"});c(C,{height:s,width:y});var L=d(q,M);if(L.length>0){v+=L.length;var J=L.indexOf("playlist"),O=L.indexOf("controlbar");if(J>=0&&O>=0){L[J]=L.splice(O,1,L[J])[0]}d(D,L,true)}j=a.getElementWidth(o);e=a.getElementHeight(o)}else{if(!l()){d(r,M,true)}}F()}function d(P,L,M){var N=[];for(var K=0;K<L.length;K++){var O=L[K];if(a.exists(E.plugins.object[O].getDisplayElement)){if(E.plugins.config[O].currentPosition!=b.html5.view.positions.NONE){var I=P(O,v--);if(!I){N.push(O)}else{var J=I.width;var Q=I.height;if(M){delete I.width;delete I.height}c(E.plugins.object[O].getDisplayElement(),I);E.plugins.object[O].resize(J,Q)}}else{c(E.plugins.object[O].getDisplayElement(),{display:"none"})}}}return N}function q(J,K){if(a.exists(E.plugins.object[J].getDisplayElement)){if(E.plugins.config[J].position&&n(E.plugins.config[J].position)){if(!a.exists(E.plugins.object[J].getDisplayElement().parentNode)){C.appendChild(E.plugins.object[J].getDisplayElement())}var I=w(J);I.zIndex=K;return I}}return false}function D(I,J){if(!a.exists(E.plugins.object[I].getDisplayElement().parentNode)){o.appendChild(E.plugins.object[I].getDisplayElement())}return{position:"absolute",width:(a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right)),height:(a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom)),zIndex:J}}function r(I,J){return{position:"fixed",width:E.width,height:E.height,zIndex:J}}function F(){if(!a.exists(E.getMedia())){return}o.style.position="absolute";var K=E.getMedia().getDisplayElement();if(K&&K.tagName.toLowerCase()=="video"){K.style.position="absolute";if(K.parentNode){K.parentNode.style.left=o.style.left;K.parentNode.style.top=o.style.top}if(E.fullscreen&&u.jwGetStretching()==b.utils.stretching.EXACTFIT&&!a.isMobile()){var I=document.createElement("div");a.stretch(b.utils.stretching.UNIFORM,I,a.getElementWidth(o),a.getElementHeight(o),j,e);a.stretch(b.utils.stretching.EXACTFIT,K,a.parseDimension(I.style.width),a.parseDimension(I.style.height),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300);c(K,{left:I.style.left,top:I.style.top})}else{a.stretch(u.jwGetStretching(),K,a.getElementWidth(o),a.getElementHeight(o),K.videoWidth?K.videoWidth:400,K.videoHeight?K.videoHeight:300)}}else{var J=E.plugins.object.display.getDisplayElement();if(J){E.getMedia().resize(a.parseDimension(J.style.width),a.parseDimension(J.style.height))}else{E.getMedia().resize(a.parseDimension(o.style.width),a.parseDimension(o.style.height))}}}function w(J){var K={position:"absolute",margin:0,padding:0,top:null};var I=E.plugins.config[J].currentPosition.toLowerCase();switch(I.toUpperCase()){case b.html5.view.positions.TOP:K.top=a.parseDimension(o.style.top);K.left=a.parseDimension(o.style.left);K.width=a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right);K.height=E.plugins.object[J].height;o.style[I]=a.parseDimension(o.style[I])+E.plugins.object[J].height+"px";o.style.height=a.getElementHeight(o)-K.height+"px";break;case b.html5.view.positions.RIGHT:K.top=a.parseDimension(o.style.top);K.right=a.parseDimension(o.style.right);K.width=E.plugins.object[J].width;K.height=a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom);o.style.width=a.getElementWidth(o)-K.width+"px";break;case b.html5.view.positions.BOTTOM:K.bottom=a.parseDimension(o.style.bottom);K.left=a.parseDimension(o.style.left);K.width=a.getElementWidth(o)-a.parseDimension(o.style.left)-a.parseDimension(o.style.right);K.height=E.plugins.object[J].height;o.style.height=a.getElementHeight(o)-K.height+"px";break;case b.html5.view.positions.LEFT:K.top=a.parseDimension(o.style.top);K.left=a.parseDimension(o.style.left);K.width=E.plugins.object[J].width;K.height=a.getElementHeight(o)-a.parseDimension(o.style.top)-a.parseDimension(o.style.bottom);o.style[I]=a.parseDimension(o.style[I])+E.plugins.object[J].width+"px";o.style.width=a.getElementWidth(o)-K.width+"px";break;default:break}return K}this.resize=A;this.fullscreen=function(N){var J;try{J=E.getMedia().getDisplayElement()}catch(I){}if(l()&&J&&J.webkitSupportsFullscreen){if(N&&!J.webkitDisplayingFullscreen){try{a.transform(J);J.webkitEnterFullscreen()}catch(M){}}else{if(!N){F();if(J.webkitDisplayingFullscreen){try{J.webkitExitFullscreen()}catch(M){}}}}h=false}else{if(N){document.onkeydown=z;clearInterval(f);var L=a.getBoundingClientRect(document.body);E.width=Math.abs(L.left)+Math.abs(L.right);E.height=window.innerHeight;var K={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};c(C,K);K.zIndex=1;if(E.getMedia()&&E.getMedia().getDisplayElement()){c(E.getMedia().getDisplayElement(),K)}K.zIndex=2;c(o,K);h=true}else{document.onkeydown="";E.width=y;E.height=s;c(C,{position:"relative",height:E.height,width:E.width,zIndex:0});h=false}A(E.width,E.height)}};function n(I){return([b.html5.view.positions.TOP,b.html5.view.positions.RIGHT,b.html5.view.positions.BOTTOM,b.html5.view.positions.LEFT].toString().indexOf(I.toUpperCase())>-1)}function l(){if(u.jwGetState()!=b.api.events.state.IDLE&&!h&&(E.getMedia()&&E.getMedia().getDisplayElement()&&E.getMedia().getDisplayElement().webkitSupportsFullscreen)&&a.useNativeFullscreen()){return true}return false}};b.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,hideplaylistcontrols: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(al,p){window.controlbar=this;var ak=al;var A=_utils.extend({},b,ak.skin.getComponentSettings("controlbar"),p);if(A.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[A.position]=="undefined"){return}if(_utils.mapLength(ak.skin.getComponentLayout("controlbar"))>0){A.layout=ak.skin.getComponentLayout("controlbar")}var D;var h;var B;var C;var Z="none";var af;var aj;var E;var ae;var ad;var s;var j={};var T=false;var aa={};var v;var ah=false;var S;var ab;var m=false;var G=false;var I;var ai=new a.html5.eventdispatcher();_utils.extend(this,ai);function O(){if(!v){v=ak.skin.getSkinElement("controlbar","background");if(!v){v={width:0,height:0,src:null}}}return v}function f(){B=0;C=0;h=0;if(!T){var ao={height:O().height,backgroundColor:A.backgroundcolor};D=document.createElement("div");D.id=ak.id+"_jwplayer_controlbar";_css(D,ao)}var an=(ak.skin.getSkinElement("controlbar","capLeft"));var am=(ak.skin.getSkinElement("controlbar","capRight"));if(an){r("capLeft","left",false,D)}w("background",D,{position:"absolute",height:O().height,left:(an?an.width:0),zIndex:0},"img");if(O().src){j.background.src=O().src}w("elements",D,{position:"relative",height:O().height,zIndex:1});if(am){r("capRight","right",false,D)}}this.getDisplayElement=function(){return D};this.resize=function(ao,am){k();_utils.cancelAnimation(D);ad=ao;s=am;if(G!=ak.jwGetFullscreen()){G=ak.jwGetFullscreen();ab=undefined}var an=q();N({id:ak.id,duration:E,position:aj});Y({id:ak.id,bufferPercent:ae});return an};this.show=function(){if(ah){ah=false;_show(D);n()}};this.hide=function(){if(!ah){ah=true;_hide(D);y()}};function U(){var an=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var ao in an){var am=an[ao];if(typeof j[am]!="undefined"){aa[am]=_utils.getBoundingClientRect(j[am])}}}var ac;function ag(am){if(ah){return}clearTimeout(S);if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){switch(ak.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(D&&D.style.opacity<1&&(!A.idlehide||_utils.exists(am))){ac=false;setTimeout(function(){if(!ac){o()}},100)}if(A.idlehide){S=setTimeout(function(){u()},2000)}break;default:ac=true;if(am){o()}S=setTimeout(function(){u()},2000);break}}else{o()}}function u(){if(!ah){y();if(D.style.opacity==1){_utils.cancelAnimation(D);_utils.fadeTo(D,0,0.1,1,0)}}}function o(){if(!ah){n();if(D.style.opacity==0){_utils.cancelAnimation(D);_utils.fadeTo(D,1,0.1,0,0)}}}function K(am){return function(){if(m&&ab!=am){ab=am;ai.sendEvent(am,{component:"controlbar",boundingRect:g()})}}}var n=K(a.api.events.JWPLAYER_COMPONENT_SHOW);var y=K(a.api.events.JWPLAYER_COMPONENT_HIDE);function g(){if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){return _utils.getDimensions(D)}else{return{x:0,y:0,width:0,height:0}}}function w(aq,ap,ao,am){var an;if(!T){if(!am){am="div"}an=document.createElement(am);j[aq]=an;an.id=D.id+"_"+aq;ap.appendChild(an)}else{an=document.getElementById(D.id+"_"+aq)}if(_utils.exists(ao)){_css(an,ao)}return an}function e(){if(ak.jwGetHeight()<=40){A.layout=_utils.clone(A.layout);for(var am=0;am<A.layout.left.elements.length;am++){if(A.layout.left.elements[am].name=="fullscreen"){A.layout.left.elements.splice(am,1)}}for(am=0;am<A.layout.right.elements.length;am++){if(A.layout.right.elements[am].name=="fullscreen"){A.layout.right.elements.splice(am,1)}}R()}P(A.layout.left);P(A.layout.center);P(A.layout.right)}function P(ap,am){var aq=ap.position=="right"?"right":"left";var ao=_utils.extend([],ap.elements);if(_utils.exists(am)){ao.reverse()}var ap=w(ap.position+"Group",j.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var an=0;an<ao.length;an++){z(ao[an],aq,ap)}}function c(){return h++}function z(aq,at,av){var ap,an,ao,am,aw;if(!av){av=j.elements}if(aq.type=="divider"){r("divider"+c(),at,true,av,undefined,aq.width,aq.element);return}switch(aq.name){case"play":r("playButton",at,false,av);r("pauseButton",at,true,av);l("playButton","jwPlay");l("pauseButton","jwPause");break;case"prev":r("prevButton",at,true,av);l("prevButton","jwPlaylistPrev");break;case"stop":r("stopButton",at,true,av);l("stopButton","jwStop");break;case"next":r("nextButton",at,true,av);l("nextButton","jwPlaylistNext");break;case"elapsed":r("elapsedText",at,true,av);break;case"time":an=!_utils.exists(ak.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:ak.skin.getSkinElement("controlbar","timeSliderCapLeft").width;ao=!_utils.exists(ak.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:ak.skin.getSkinElement("controlbar","timeSliderCapRight").width;ap=at=="left"?an:ao;aw={height:O().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var ar=w("timeSlider",av,aw);r("timeSliderCapLeft",at,true,ar,"relative");r("timeSliderRail",at,false,ar,"relative");r("timeSliderBuffer",at,false,ar,"absolute");r("timeSliderProgress",at,false,ar,"absolute");r("timeSliderThumb",at,false,ar,"absolute");r("timeSliderCapRight",at,true,ar,"relative");t("time");break;case"fullscreen":r("fullscreenButton",at,false,av);r("normalscreenButton",at,true,av);l("fullscreenButton","jwSetFullscreen",true);l("normalscreenButton","jwSetFullscreen",false);break;case"volume":an=!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;ao=!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapRight").width;ap=at=="left"?an:ao;am=ak.skin.getSkinElement("controlbar","volumeSliderRail").width+an+ao;aw={height:O().height,position:"relative",width:am,"float":"left",styleFloat:"left",cssFloat:"left"};var au=w("volumeSlider",av,aw);r("volumeSliderCapLeft",at,false,au,"relative");r("volumeSliderRail",at,false,au,"relative");r("volumeSliderProgress",at,false,au,"absolute");r("volumeSliderThumb",at,false,au,"absolute");r("volumeSliderCapRight",at,false,au,"relative");t("volume");break;case"mute":r("muteButton",at,false,av);r("unmuteButton",at,true,av);l("muteButton","jwSetMute",true);l("unmuteButton","jwSetMute",false);break;case"duration":r("durationText",at,true,av);break}}function r(ap,at,an,aw,aq,am,ao){if(_utils.exists(ak.skin.getSkinElement("controlbar",ap))||ap.indexOf("Text")>0||ap.indexOf("divider")===0){var ar={height:"100%",position:aq?aq:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((ap.indexOf("next")===0||ap.indexOf("prev")===0)&&(ak.jwGetPlaylist().length<2||A.hideplaylistcontrols)){an=false;ar.display="none"}var ax;if(ap.indexOf("Text")>0){ap.innerhtml="00:00";ar.font=A.fontsize+"px/"+(O().height+1)+"px "+A.font;ar.color=A.fontcolor;ar.textAlign="center";ar.fontWeight=A.fontweight;ar.fontStyle=A.fontstyle;ar.cursor="default";ax=14+3*A.fontsize}else{if(ap.indexOf("divider")===0){if(am){if(!isNaN(parseInt(am))){ax=parseInt(am)}}else{if(ao){var au=ak.skin.getSkinElement("controlbar",ao);if(au){ar.background="url("+au.src+") repeat-x center left";ax=au.width}}else{ar.background="url("+ak.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";ax=ak.skin.getSkinElement("controlbar","divider").width}}}else{ar.background="url("+ak.skin.getSkinElement("controlbar",ap).src+") repeat-x center left";ax=ak.skin.getSkinElement("controlbar",ap).width}}if(at=="left"){if(an){B+=ax}}else{if(at=="right"){if(an){C+=ax}}}if(_utils.typeOf(aw)=="undefined"){aw=j.elements}ar.width=ax;if(T){_css(j[ap],ar)}else{var av=w(ap,aw,ar);if(_utils.exists(ak.skin.getSkinElement("controlbar",ap+"Over"))){av.onmouseover=function(ay){av.style.backgroundImage=["url(",ak.skin.getSkinElement("controlbar",ap+"Over").src,")"].join("")};av.onmouseout=function(ay){av.style.backgroundImage=["url(",ak.skin.getSkinElement("controlbar",ap).src,")"].join("")}}if(ap.indexOf("divider")==0){av.setAttribute("class","divider")}}}}function F(){ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,x);ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,W);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,Y);ak.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,V);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,N);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,M);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,Q);ak.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,d)}function x(){if(!A.hideplaylistcontrols){if(ak.jwGetPlaylist().length>1){_show(j.nextButton);_show(j.prevButton)}else{_hide(j.nextButton);_hide(j.prevButton)}q();H()}}function W(am){E=ak.jwGetPlaylist()[am.index].duration;N({id:ak.id,duration:E,position:0});Y({id:ak.id,bufferProgress:0})}function H(){N({id:ak.id,duration:ak.jwGetDuration(),position:0});Y({id:ak.id,bufferProgress:0});M({id:ak.id,mute:ak.jwGetMute()});V({id:ak.id,newstate:a.api.events.state.IDLE});Q({id:ak.id,volume:ak.jwGetVolume()})}function l(ao,ap,an){if(T){return}if(_utils.exists(ak.skin.getSkinElement("controlbar",ao))){var am=j[ao];if(_utils.exists(am)){_css(am,{cursor:"pointer"});if(ap=="fullscreen"){am.onmouseup=function(aq){aq.stopPropagation();ak.jwSetFullscreen(!ak.jwGetFullscreen())}}else{am.onmouseup=function(aq){aq.stopPropagation();if(_utils.exists(an)){ak[ap](an)}else{ak[ap]()}}}}}}function t(am){if(T){return}var an=j[am+"Slider"];_css(j.elements,{cursor:"pointer"});_css(an,{cursor:"pointer"});an.onmousedown=function(ao){Z=am};an.onmouseup=function(ao){ao.stopPropagation();L(ao.pageX)};an.onmousemove=function(ao){if(Z=="time"){af=true;var ap=ao.pageX-aa[am+"Slider"].left-window.pageXOffset;_css(j[Z+"SliderThumb"],{left:ap})}}}function L(an){af=false;var am;if(Z=="time"){am=an-aa.timeSliderRail.left+window.pageXOffset;var ap=am/aa.timeSliderRail.width*E;if(ap<0){ap=0}else{if(ap>E){ap=E-3}}if(ak.jwGetState()==a.api.events.state.PAUSED||ak.jwGetState()==a.api.events.state.IDLE){ak.jwPlay()}ak.jwSeek(ap)}else{if(Z=="volume"){am=an-aa.volumeSliderRail.left-window.pageXOffset;var ao=Math.round(am/aa.volumeSliderRail.width*100);if(ao<0){ao=0}else{if(ao>100){ao=100}}if(ak.jwGetMute()){ak.jwSetMute(false)}ak.jwSetVolume(ao)}}Z="none"}function Y(an){if(_utils.exists(an.bufferPercent)){ae=an.bufferPercent}if(aa.timeSliderRail){var ap=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var ao=aa.timeSliderRail.width;var am=isNaN(Math.round(ao*ae/100))?0:Math.round(ao*ae/100);_css(j.timeSliderBuffer,{width:am,left:ap?ap.width:0})}}function M(am){if(am.mute){_hide(j.muteButton);_show(j.unmuteButton);_hide(j.volumeSliderProgress)}else{_show(j.muteButton);_hide(j.unmuteButton);_show(j.volumeSliderProgress)}}function V(am){if(am.newstate==a.api.events.state.BUFFERING||am.newstate==a.api.events.state.PLAYING){_show(j.pauseButton);_hide(j.playButton)}else{_hide(j.pauseButton);_show(j.playButton)}ag();if(am.newstate==a.api.events.state.IDLE){_hide(j.timeSliderBuffer);_hide(j.timeSliderProgress);_hide(j.timeSliderThumb);N({id:ak.id,duration:ak.jwGetDuration(),position:0})}else{_show(j.timeSliderBuffer);if(am.newstate!=a.api.events.state.BUFFERING){_show(j.timeSliderProgress);_show(j.timeSliderThumb)}}}function d(am){Y({bufferPercent:0});N(_utils.extend(am,{position:0,duration:E}))}function N(ap){if(_utils.exists(ap.position)){aj=ap.position}if(_utils.exists(ap.duration)){E=ap.duration}var an=(aj===E===0)?0:aj/E;var ar=aa.timeSliderRail;if(ar){var am=isNaN(Math.round(ar.width*an))?0:Math.round(ar.width*an);var aq=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var ao=am+(aq?aq.width:0);if(j.timeSliderProgress){_css(j.timeSliderProgress,{width:am,left:aq?aq.width:0});if(!af){if(j.timeSliderThumb){j.timeSliderThumb.style.left=ao+"px"}}}}if(j.durationText){j.durationText.innerHTML=_utils.timeFormat(E)}if(j.elapsedText){j.elapsedText.innerHTML=_utils.timeFormat(aj)}}function R(){var am=j.elements.childNodes;var ar,ap;for(var ao=0;ao<am.length;ao++){var aq=am[ao].childNodes;for(var an in aq){if(isNaN(parseInt(an,10))){continue}if(aq[an].id.indexOf(D.id+"_divider")===0&&ap&&ap.id.indexOf(D.id+"_divider")===0&&aq[an].style.backgroundImage==ap.style.backgroundImage){aq[an].style.display="none"}else{if(aq[an].id.indexOf(D.id+"_divider")===0&&ar&&ar.style.display!="none"){aq[an].style.display="block"}}if(aq[an].style.display!="none"){ap=aq[an]}ar=aq[an]}}}function J(){if(ak.jwGetFullscreen()){_show(j.normalscreenButton);_hide(j.fullscreenButton)}else{_hide(j.normalscreenButton);_show(j.fullscreenButton)}if(ak.jwGetState()==a.api.events.state.BUFFERING||ak.jwGetState()==a.api.events.state.PLAYING){_show(j.pauseButton);_hide(j.playButton)}else{_hide(j.pauseButton);_show(j.playButton)}if(ak.jwGetMute()==true){_hide(j.muteButton);_show(j.unmuteButton)}else{_show(j.muteButton);_hide(j.unmuteButton)}}function q(){R();J();var ao={width:ad};var aw={"float":"left",styleFloat:"left",cssFloat:"left"};if(A.position==a.html5.view.positions.OVER||ak.jwGetFullscreen()){ao.left=A.margin;ao.width-=2*A.margin;ao.top=s-O().height-A.margin;ao.height=O().height}var aq=ak.skin.getSkinElement("controlbar","capLeft");var au=ak.skin.getSkinElement("controlbar","capRight");aw.width=ao.width-(aq?aq.width:0)-(au?au.width:0);var ap=_utils.getBoundingClientRect(j.leftGroup).width;var at=_utils.getBoundingClientRect(j.rightGroup).width;var ar=aw.width-ap-at;var an=ar;var am=ak.skin.getSkinElement("controlbar","timeSliderCapLeft");var av=ak.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(am)){an-=am.width}if(_utils.exists(av)){an-=av.width}j.timeSlider.style.width=ar+"px";j.timeSliderRail.style.width=an+"px";_css(D,ao);_css(j.elements,aw);_css(j.background,aw);U();return ao}function Q(ar){if(_utils.exists(j.volumeSliderRail)){var ao=isNaN(ar.volume/100)?1:ar.volume/100;var ap=_utils.parseDimension(j.volumeSliderRail.style.width);var am=isNaN(Math.round(ap*ao))?0:Math.round(ap*ao);var at=_utils.parseDimension(j.volumeSliderRail.style.right);var an=(!_utils.exists(ak.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:ak.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(j.volumeSliderProgress,{width:am,left:an});if(j.volumeSliderThumb){var aq=(am-Math.round(_utils.parseDimension(j.volumeSliderThumb.style.width)/2));aq=Math.min(Math.max(aq,0),ap-_utils.parseDimension(j.volumeSliderThumb.style.width));_css(j.volumeSliderThumb,{left:aq})}if(_utils.exists(j.volumeSliderCapLeft)){_css(j.volumeSliderCapLeft,{left:0})}}}function k(){I=document.getElementById(ak.id);I.addEventListener("mousemove",ag)}function X(){f();e();U();T=true;F();A.idlehide=(A.idlehide.toString().toLowerCase()=="true");if(A.position==a.html5.view.positions.OVER&&A.idlehide){D.style.opacity=0;m=true}else{D.style.opacity=1;setTimeout((function(){m=true;n()}),1)}k();H()}X();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(x,o,g,l){var w=x;var r=g;var n=l;var H=o;var s=true;var f=-1;var J=a.exists(r.config.debug)&&(r.config.debug.toString().toLowerCase()=="console");var t=new c.html5.eventdispatcher(H.id,J);a.extend(this,t);var L=[];var z=false;function q(Q){if(z){t.sendEvent(Q.type,Q)}else{L.push(Q)}}function B(Q){if(!z){z=true;t.sendEvent(c.api.events.JWPLAYER_READY,Q);if(c.utils.exists(window.playerReady)){playerReady(Q)}if(c.utils.exists(window[g.config.playerReady])){window[g.config.playerReady](Q)}while(L.length>0){var S=L.shift();t.sendEvent(S.type,S)}if(g.config.autostart&&!c.utils.isIOS()){v()}while(G.length>0){var R=G.shift();K(R.method,R.arguments)}}}r.addGlobalListener(q);r.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){r.getMedia().play()});r.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(Q){if(Q.position>=r.playlist[r.item].start&&f>=0){r.playlist[r.item].start=f;f=-1}});r.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(Q){setTimeout(M,25)});r.addEventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,v);r.addEventListener(c.api.events.JWPLAYER_FULLSCREEN,y);function d(){try{E(r.item);if(r.playlist[r.item].levels[0].file.length>0){if(s||r.state==c.api.events.state.IDLE){r.getMedia().load(r.playlist[r.item]);s=false}else{if(r.state==c.api.events.state.PAUSED){r.getMedia().play()}}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function e(){try{if(r.playlist[r.item].levels[0].file.length>0){switch(r.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:if(r.getMedia()){r.getMedia().pause()}break}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function I(Q){try{if(r.playlist[r.item].levels[0].file.length>0){if(typeof Q!="number"){Q=parseFloat(Q)}switch(r.state){case c.api.events.state.IDLE:if(f<0){f=r.playlist[r.item].start;r.playlist[r.item].start=Q}d();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:r.seek(Q);break}}return true}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function F(Q){if(!a.exists(Q)){Q=true}try{if(r.getMedia()){r.getMedia().stop(Q)}return true}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function p(){try{if(r.playlist[r.item].levels[0].file.length>0){if(r.config.shuffle){E(P())}else{if(r.item+1==r.playlist.length){E(0)}else{E(r.item+1)}}}if(r.state!=c.api.events.state.IDLE){var R=r.state;r.state=c.api.events.state.IDLE;t.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:c.api.events.state.IDLE})}d();return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function k(){try{if(r.playlist[r.item].levels[0].file.length>0){if(r.config.shuffle){E(P())}else{if(r.item===0){E(r.playlist.length-1)}else{E(r.item-1)}}}if(r.state!=c.api.events.state.IDLE){var R=r.state;r.state=c.api.events.state.IDLE;t.sendEvent(c.api.events.JWPLAYER_PLAYER_STATE,{oldstate:R,newstate:c.api.events.state.IDLE})}d();return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function P(){var Q=null;if(r.playlist.length>1){while(!a.exists(Q)){Q=Math.floor(Math.random()*r.playlist.length);if(Q==r.item){Q=null}}}else{Q=0}return Q}function h(R){if(!r.playlist||!r.playlist[R]){return false}try{if(r.playlist[R].levels[0].file.length>0){var S=r.state;if(S!==c.api.events.state.IDLE){if(r.playlist[r.item].provider==r.playlist[R].provider){F(false)}else{F()}}E(R);d()}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function E(Q){if(!r.playlist[Q]){return}r.setActiveMediaProvider(r.playlist[Q]);if(r.item!=Q){r.item=Q;s=true;t.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:Q})}}function j(R){try{E(r.item);var S=r.getMedia();switch(typeof(R)){case"number":S.volume(R);break;case"string":S.volume(parseInt(R,10));break}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function A(R){try{E(r.item);var S=r.getMedia();if(typeof R=="undefined"){S.mute(!r.mute)}else{if(R.toString().toLowerCase()=="true"){S.mute(true)}else{S.mute(false)}}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function m(R,Q){try{r.width=R;r.height=Q;n.resize(R,Q);t.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:r.width,height:r.height});return true}catch(S){t.sendEvent(c.api.events.JWPLAYER_ERROR,S)}return false}function D(R){try{if(typeof R=="undefined"){R=!r.fullscreen}if(R!=r.fullscreen){if(R.toString().toLowerCase()=="true"){r.fullscreen=true;n.fullscreen(true);t.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:true})}else{r.fullscreen=false;n.fullscreen(false);t.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}t.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:r.width,height:r.height})}return true}catch(Q){t.sendEvent(c.api.events.JWPLAYER_ERROR,Q)}return false}function O(Q){try{F();r.loadPlaylist(Q);if(r.playlist[r.item].provider){E(r.item);if(r.config.autostart.toString().toLowerCase()=="true"){d()}return true}else{return false}}catch(R){t.sendEvent(c.api.events.JWPLAYER_ERROR,R)}return false}function v(Q){E(r.playlist[r.item]);if(r.config.autostart.toString().toLowerCase()=="true"){d()}}function y(Q){D(Q.fullscreen)}function C(){try{return r.getMedia().detachMedia()}catch(Q){return null}}function u(){try{return r.getMedia().attachMedia()}catch(Q){return null}}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function M(){switch(r.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:d();break;case c.html5.controller.repeatoptions.ALWAYS:if(r.item==r.playlist.length-1&&!r.config.shuffle){h(0)}else{p()}break;case c.html5.controller.repeatoptions.LIST:if(r.item==r.playlist.length-1&&!r.config.shuffle){F();E(0)}else{p()}break;default:F();break}}var G=[];function N(Q){return function(){if(z){K(Q,arguments)}else{G.push({method:Q,arguments:arguments})}}}function K(S,R){var Q=[];for(i=0;i<R.length;i++){Q.push(R[i])}S.apply(this,Q)}this.play=N(d);this.pause=N(e);this.seek=N(I);this.stop=N(F);this.next=N(p);this.prev=N(k);this.item=N(h);this.setVolume=N(j);this.setMute=N(A);this.resize=N(m);this.setFullscreen=N(D);this.load=N(O);this.playerReady=B;this.detachMedia=C;this.attachMedia=u}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(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(Q,E){var P={icons:true,showmute:false};var S=_utils.extend({},P,E);var O=Q;var o={};var L;var r;var u;var k;var p;var G;var y;var H=!_utils.exists(O.skin.getComponentSettings("display").bufferrotation)?15:parseInt(O.skin.getComponentSettings("display").bufferrotation,10);var l=!_utils.exists(O.skin.getComponentSettings("display").bufferinterval)?100:parseInt(O.skin.getComponentSettings("display").bufferinterval,10);var x=-1;var q="";var b=true;var K;var N=false;var e=false;var t,f;var F=new a.html5.eventdispatcher();_utils.extend(this,F);var B={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:c},display_icon:{style:{cursor:"pointer",position:"absolute",top:((O.skin.getSkinElement("display","background").height-O.skin.getSkinElement("display","playIcon").height)/2),left:((O.skin.getSkinElement("display","background").width-O.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((r-O.skin.getSkinElement("display","background").height)/2),left:((L-O.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",O.skin.getSkinElement("display","background").src,")"]).join(""),width:O.skin.getSkinElement("display","background").width,height:O.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:L,height:r,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}}};O.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,h);O.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,h);O.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,h);O.jwAddEventListener(a.api.events.JWPLAYER_ERROR,j);d();function d(){o.display=A("div","display");o.display_text=A("div","display_text");o.display.appendChild(o.display_text);o.display_image=A("img","display_image");o.display_image.onerror=function(T){_hide(o.display_image)};o.display_image.onload=w;o.display_icon=A("div","display_icon");o.display_iconBackground=A("div","display_iconBackground");o.display.appendChild(o.display_image);o.display_iconBackground.appendChild(o.display_icon);o.display.appendChild(o.display_iconBackground);M();setTimeout((function(){e=true;if(S.icons.toString()=="true"){D()}}),1)}this.getDisplayElement=function(){return o.display};this.resize=function(U,T){_css(o.display,{width:U,height:T});_css(o.display_text,{width:(U-10),top:((T-_utils.getBoundingClientRect(o.display_text).height)/2)});_css(o.display_iconBackground,{top:((T-O.skin.getSkinElement("display","background").height)/2),left:((U-O.skin.getSkinElement("display","background").width)/2)});if(L!=U||r!=T){L=U;r=T;K=undefined;D()}if(!O.jwGetFullscreen()){t=U;f=T}J();h({})};this.show=function(){if(N){N=false;n(O.jwGetState())}};this.hide=function(){if(!N){z();N=true}};function w(T){u=o.display_image.naturalWidth;k=o.display_image.naturalHeight;J()}function J(){if(O.jwGetFullscreen()&&O.jwGetStretching()==a.utils.stretching.EXACTFIT){var T=document.createElement("div");_utils.stretch(a.utils.stretching.UNIFORM,T,L,r,t,f);_utils.stretch(a.utils.stretching.EXACTFIT,o.display_image,_utils.parseDimension(T.style.width),_utils.parseDimension(T.style.height),u,k);_css(o.display_image,{left:T.style.left,top:T.style.top})}else{_utils.stretch(O.jwGetStretching(),o.display_image,L,r,u,k)}}function A(T,V){var U=document.createElement(T);U.id=O.id+"_jwplayer_"+V;_css(U,B[V].style);return U}function M(){for(var T in o){if(_utils.exists(B[T].click)){o[T].onclick=B[T].click}}}function c(T){if(typeof T.preventDefault!="undefined"){T.preventDefault()}else{T.returnValue=false}if(O.jwGetState()!=a.api.events.state.PLAYING){O.jwPlay()}else{O.jwPause()}}function m(T){if(y){z();return}o.display_icon.style.backgroundImage=(["url(",O.skin.getSkinElement("display",T).src,")"]).join("");_css(o.display_icon,{width:O.skin.getSkinElement("display",T).width,height:O.skin.getSkinElement("display",T).height,top:(O.skin.getSkinElement("display","background").height-O.skin.getSkinElement("display",T).height)/2,left:(O.skin.getSkinElement("display","background").width-O.skin.getSkinElement("display",T).width)/2});I();if(_utils.exists(O.skin.getSkinElement("display",T+"Over"))){o.display_icon.onmouseover=function(U){o.display_icon.style.backgroundImage=["url(",O.skin.getSkinElement("display",T+"Over").src,")"].join("")};o.display_icon.onmouseout=function(U){o.display_icon.style.backgroundImage=["url(",O.skin.getSkinElement("display",T).src,")"].join("")}}else{o.display_icon.onmouseover=null;o.display_icon.onmouseout=null}}function z(){if(S.icons.toString()=="true"){_hide(o.display_icon);_hide(o.display_iconBackground);g()}}function I(){if(!N&&S.icons.toString()=="true"){_show(o.display_icon);_show(o.display_iconBackground);D()}}function j(T){y=true;z();o.display_text.innerHTML=T.message;_show(o.display_text);o.display_text.style.top=((r-_utils.getBoundingClientRect(o.display_text).height)/2)+"px"}function C(){o.display_image.style.display="none"}function h(T){if((T.type==a.api.events.JWPLAYER_PLAYER_STATE||T.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&y){y=false;_hide(o.display_text)}var U=O.jwGetState();if(U==q){return}q=U;if(x>=0){clearTimeout(x)}if(b||O.jwGetState()==a.api.events.state.PLAYING||O.jwGetState()==a.api.events.state.PAUSED){n(O.jwGetState())}else{x=setTimeout(R(O.jwGetState()),500)}}function R(T){return(function(){n(T)})}function n(T){if(_utils.exists(G)){clearInterval(G);G=null;_utils.animations.rotate(o.display_icon,0)}switch(T){case a.api.events.state.BUFFERING:if(_utils.isMobile()){C();z()}else{if(O.jwGetPlaylist()[O.jwGetItem()].provider=="sound"){s()}p=0;G=setInterval(function(){p+=H;_utils.animations.rotate(o.display_icon,p%360)},l);m("bufferIcon");b=true}break;case a.api.events.state.PAUSED:if(!_utils.isMobile()){if(O.jwGetPlaylist()[O.jwGetItem()].provider!="sound"){_css(o.display_image,{background:"transparent no-repeat center center"})}m("playIcon");b=true}break;case a.api.events.state.IDLE:if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].image){s()}else{C()}m("playIcon");b=true;break;default:if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].provider=="sound"){if(_utils.isMobile()){C();b=false}else{s()}}else{C();b=false}if(O.jwGetMute()&&S.showmute){m("muteIcon")}else{z()}break}x=-1}function s(){if(O.jwGetPlaylist()[O.jwGetItem()]&&O.jwGetPlaylist()[O.jwGetItem()].image){_css(o.display_image,{display:"block"});o.display_image.src=_utils.getAbsolutePath(O.jwGetPlaylist()[O.jwGetItem()].image)}}function v(T){return function(){if(!e){return}if(!N&&K!=T){K=T;F.sendEvent(T,{component:"display",boundingRect:_utils.getDimensions(o.display_iconBackground)})}}}var D=v(a.api.events.JWPLAYER_COMPONENT_SHOW);var g=v(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(b){var a=b.utils;var c=a.css;b.html5.dock=function(w,o){function x(){return{align:b.html5.view.positions.RIGHT}}var g=a.extend({},x(),o);if(g.align=="FALSE"){return}var F={};var E=[];var d;var s;var B=false;var n=false;var D={x:0,y:0,width:0,height:0};var C;var h;var A;var f=new b.html5.eventdispatcher();a.extend(this,f);var m=document.createElement("div");m.id=w.id+"_jwplayer_dock";m.style.opacity=1;j();w.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,k);this.getDisplayElement=function(){return m};this.setButton=function(J,G,H,I){if(!G&&F[J]){a.arrays.remove(E,J);m.removeChild(F[J].div);delete F[J]}else{if(G){if(!F[J]){F[J]={}}F[J].handler=G;F[J].outGraphic=H;F[J].overGraphic=I;if(!F[J].div){E.push(J);F[J].div=document.createElement("div");F[J].div.style.position="relative";m.appendChild(F[J].div);F[J].div.appendChild(document.createElement("img"));F[J].div.childNodes[0].style.position="absolute";F[J].div.childNodes[0].style.left=0;F[J].div.childNodes[0].style.top=0;F[J].div.childNodes[0].style.zIndex=10;F[J].div.childNodes[0].style.cursor="pointer";F[J].div.appendChild(document.createElement("img"));F[J].div.childNodes[1].style.position="absolute";F[J].div.childNodes[1].style.left=0;F[J].div.childNodes[1].style.top=0;if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}F[J].div.childNodes[1].style.zIndex=9;F[J].div.childNodes[1].style.cursor="pointer";F[J].div.onmouseover=function(){if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}if(w.skin.getSkinElement("dock","buttonOver")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","buttonOver").src}};F[J].div.onmouseout=function(){if(F[J].outGraphic){F[J].div.childNodes[0].src=F[J].outGraphic}if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}};if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}}if(F[J].outGraphic){F[J].div.childNodes[0].src=F[J].outGraphic}else{if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}}if(G){F[J].div.onclick=function(K){K.preventDefault();b(w.id).callback(J);if(F[J].overGraphic){F[J].div.childNodes[0].src=F[J].overGraphic}if(w.skin.getSkinElement("dock","button")){F[J].div.childNodes[1].src=w.skin.getSkinElement("dock","button").src}}}}}e(d,s)};function q(G){}function e(R,P){j();if(E.length>0){var S=10;var O=S;var L=-1;var M=w.skin.getSkinElement("dock","button").height;var K=w.skin.getSkinElement("dock","button").width;var I=R-K-S;var N,H;if(g.align==b.html5.view.positions.LEFT){L=1;I=S}for(var T=0;T<E.length;T++){var Q=Math.floor(O/P);if((O+M+S)>((Q+1)*P)){O=((Q+1)*P)+S;Q=Math.floor(O/P)}var G=F[E[T]].div;G.style.top=(O%P)+"px";G.style.left=(I+(w.skin.getSkinElement("dock","button").width+S)*Q*L)+"px";var J={x:a.parseDimension(G.style.left),y:a.parseDimension(G.style.top),width:K,height:M};if(!N||(J.x<=N.x&&J.y<=N.y)){N=J}if(!H||(J.x>=H.x&&J.y>=H.y)){H=J}O+=w.skin.getSkinElement("dock","button").height+S}D={x:N.x,y:N.y,width:H.x-N.x+H.width,height:N.y-H.y+H.height}}if(n!=w.jwGetFullscreen()||d!=R||s!=P){d=R;s=P;n=w.jwGetFullscreen();C=undefined;setTimeout(p,1)}}function y(G){return function(){if(!B&&C!=G&&E.length>0){C=G;f.sendEvent(G,{component:"dock",boundingRect:D})}}}function k(G){if(a.isMobile()){if(G.newstate==b.api.events.state.IDLE){v()}else{z()}}else{l()}}function l(G){if(B){return}clearTimeout(A);if(o.position==b.html5.view.positions.OVER||w.jwGetFullscreen()){switch(w.jwGetState()){case b.api.events.state.PAUSED:case b.api.events.state.IDLE:if(m&&m.style.opacity<1&&(!o.idlehide||a.exists(G))){r()}if(o.idlehide){A=setTimeout(function(){t()},2000)}break;default:if(a.exists(G)){r()}A=setTimeout(function(){t()},2000);break}}else{r()}}var p=y(b.api.events.JWPLAYER_COMPONENT_SHOW);var u=y(b.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=e;var v=function(){c(m,{display:"block"});if(B){B=false;p()}};var z=function(){c(m,{display:"none"});if(!B){u();B=true}};function t(){if(!B){u();if(m.style.opacity==1){a.cancelAnimation(m);a.fadeTo(m,0,0.1,1,0)}}}function r(){if(!B){p();if(m.style.opacity==0){a.cancelAnimation(m);a.fadeTo(m,1,0.1,0,0)}}}function j(){h=document.getElementById(w.id);h.addEventListener("mousemove",l)}this.hide=z;this.show=v;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();h.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,o);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}try{if(window.location.href.indexOf("https")==0){b.prefix=b.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com")}}catch(w){}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());f()};if(!e.file){return}if(e.file.indexOf("/")>=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(n){t.style.opacity=e.over}return}function p(){var x={textDecoration:"none",position:"absolute",cursor:"pointer"};x.display=(e.hide.toString()=="true"&&!n)?"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(e){var b={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var c=e.utils;var a=c.css;var d=c.isMobile();e.html5.mediavideo=function(w,m){var k={abort:F,canplay:z,canplaythrough:z,durationchange:I,emptied:F,ended:z,error:r,loadeddata:I,loadedmetadata:I,loadstart:z,pause:z,play:F,playing:z,progress:C,ratechange:F,seeked:z,seeking:z,stalled:z,suspend:z,timeupdate:q,volumechange:j,waiting:z,canshowcurrentframe:F,dataunavailable:F,empty:F,load:g,loadedfirstframe:F,webkitfullscreenchange:x};var y=new e.html5.eventdispatcher();c.extend(this,y);var H=w,A=m,B,n,l,D,u,L=false,M=false,o,K,f;J();this.load=function(Q,N){if(typeof N=="undefined"){N=true}if(!M){return}D=Q;c.empty(B);f=0;if(Q.levels&&Q.levels.length>0){if(Q.levels.length==1){B.src=Q.levels[0].file}else{t(Q.levels);if(B.src){B.removeAttribute("src")}for(var P=0;P<Q.levels.length;P++){var O=B.ownerDocument.createElement("source");O.src=Q.levels[P].file;B.appendChild(O);f++}}}else{B.src=Q.file}if(d){if(Q.image){B.poster=Q.image}B.style.display="block";setTimeout(function(){B.setAttribute("controls","controls")},100)}o=K=l=false;H.buffer=0;if(!c.exists(Q.start)){Q.start=0}H.duration=Q.duration;y.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);if((!d&&Q.levels.length==1)||!L){B.load()}L=false;if(N){s(e.api.events.state.BUFFERING);y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(!M){return}if(n!=e.api.events.state.PLAYING){p();if(K){s(e.api.events.state.PLAYING)}else{s(e.api.events.state.BUFFERING)}B.play()}};this.pause=function(){if(!M){return}B.pause();s(e.api.events.state.PAUSED)};this.seek=function(N){if(!M){return}if(!(H.duration<=0||isNaN(H.duration))&&!(H.position<=0||isNaN(H.position))){B.currentTime=N;B.play()}};_stop=this.stop=function(P){if(!M){return}if(!c.exists(P)){P=true}v();if(P){B.style.display="none";K=false;var N=navigator.userAgent;if(N.match(/chrome/i)){B.src=undefined}else{if(N.match(/safari/i)||N.match(/firefox/i)){B.removeAttribute("src")}else{B.src=""}}B.removeAttribute("controls");B.removeAttribute("poster");c.empty(B);B.load();L=true;if(B.webkitSupportsFullscreen){try{B.webkitExitFullscreen()}catch(O){}}}s(e.api.events.state.IDLE)};this.fullscreen=function(N){if(N===true){this.resize("100%","100%")}else{this.resize(H.config.width,H.config.height)}};this.resize=function(O,N){};this.volume=function(N){if(!d){B.volume=N/100}};this.mute=function(N){if(!d){B.muted=N}};this.getDisplayElement=function(){return B};this.hasChrome=function(){return d};this.detachMedia=function(){M=false;return this.getDisplayElement()};this.attachMedia=function(){M=true};function h(O,N){return function(P){if(M&&c.exists(P.target.parentNode)){N(P)}}}function J(){B=document.createElement("video");n=e.api.events.state.IDLE;for(var N in k){B.addEventListener(N,h(N,k[N]),true)}M=true;B.setAttribute("x-webkit-airplay","allow");if(A.parentNode){A.parentNode.replaceChild(B,A)}if(!B.id){B.id=A.id}B.volume=H.volume/100}function s(N){if(N==e.api.events.state.PAUSED&&n==e.api.events.state.IDLE){return}if(n!=N){var O=n;H.state=n=N;y.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:O,newstate:N})}}function F(N){}function j(N){var O=Math.round(B.volume*100);if(O!=H.volume){H.volume=O;y.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:H.volume})}if(B.muted!=H.mute){H.mute=B.muted;y.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:H.mute})}}function C(O){var N;if(c.exists(O)&&O.lengthComputable&&O.total){N=O.loaded/O.total*100}else{if(c.exists(B.buffered)&&(B.buffered.length>0)){var P=B.buffered.length-1;if(P>=0){N=B.buffered.end(P)/B.duration*100}}}if(K===false&&n==e.api.events.state.BUFFERING){y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);K=true}if(!o){if(N==100){o=true}if(c.exists(N)&&(N>H.buffer)){H.buffer=Math.round(N);y.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(N)})}}}function q(O){if(c.exists(O)&&c.exists(O.target)){if(!isNaN(O.target.duration)&&(isNaN(H.duration)||H.duration<1)){if(O.target.duration==Infinity){H.duration=0}else{H.duration=Math.round(O.target.duration*10)/10}}if(!l&&B.readyState>0){B.style.display="block";s(e.api.events.state.PLAYING)}if(n==e.api.events.state.PLAYING){if(!l&&B.readyState>0){l=true;try{if(B.currentTime<D.start){B.currentTime=D.start}}catch(N){}B.volume=H.volume/100;B.muted=H.mute}H.position=H.duration>0?(Math.round(O.target.currentTime*10)/10):0;y.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:H.position,duration:H.duration});if(H.position>=H.duration&&(H.position>0||H.duration>0)){G()}}}C(O)}function g(N){}function z(N){if(b[N.type]){if(N.type=="ended"){G()}else{s(b[N.type])}}}function I(N){var P=Math.round(N.target.duration*10)/10;var O={height:N.target.videoHeight,width:N.target.videoWidth,duration:P};if((H.duration<P||isNaN(H.duration))&&N.target.duration!=Infinity){H.duration=P}y.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:O})}function r(O){if(n==e.api.events.state.IDLE){return}var N="There was an error: ";if((O.target.error&&O.target.tagName.toLowerCase()=="video")||O.target.parentNode.error&&O.target.parentNode.tagName.toLowerCase()=="video"){var P=!c.exists(O.target.error)?O.target.parentNode.error:O.target.error;switch(P.code){case P.MEDIA_ERR_ABORTED:N="You aborted the video playback: ";break;case P.MEDIA_ERR_NETWORK:N="A network error caused the video download to fail part-way: ";break;case P.MEDIA_ERR_DECODE:N="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case P.MEDIA_ERR_SRC_NOT_SUPPORTED:N="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:N="An unknown error occurred: ";break}}else{if(O.target.tagName.toLowerCase()=="source"){f--;if(f>0){return}N="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);N+=E();_error=true;y.sendEvent(e.api.events.JWPLAYER_ERROR,{message:N});return}function E(){var N="";for(var Q in D.levels){var P=D.levels[Q];var O=A.ownerDocument.createElement("source");N+=e.utils.getAbsolutePath(P.file);if(Q<(D.levels.length-1)){N+=", "}}return N}function p(){if(!c.exists(u)){u=setInterval(function(){C()},100)}}function v(){clearInterval(u);u=null}function G(){if(n!=e.api.events.state.IDLE){_stop(false);y.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE)}}function x(N){if(c.exists(B.webkitDisplayingFullscreen)){if(H.fullscreen&&!B.webkitDisplayingFullscreen){y.sendEvent(e.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}}}function t(N){if(N.length>0&&c.isIOS()){if(c.extension(N[0].file)!="mp4"){var P=-1;for(var Q=1;Q<N.length;Q++){if(c.extension(N[Q].file)=="mp4"){P=Q;break}}if(P>-1){var O=N.splice(P,1)[0];N.unshift(O)}}}}}})(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=this.detachMedia=function(){return o};this.attachMedia=function(){};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}};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.isMobile()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}var playlistVisible=false;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{if(pluginName=="playlist"){playlistVisible=true}_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(_model.plugins.config.controlbar&&playlistVisible){_model.plugins.config.controlbar.hideplaylistcontrols=true}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}if(typeof _model.plugins.config.dock.idlehide=="undefined"){try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_model.position=0;_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0;_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);_model.item=_model.config.item>=0?_model.config.item:0;if(!_model.playlist[_model.item].provider){_loadExternal(_model.playlist[_model.item].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";A.style.overflow="hidden";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,{message:e?e:"Could not load playlist an unknown reason."})}}})(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;e.jwDetachMedia=c.detachMedia;e.jwAttachMedia=c.attachMedia;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=function(){return d.stretching.toUpperCase()};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)};
