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(a){function b(b){if(!a.utils.exists(b)){return}var d=b.indexOf("://");var e=b.indexOf("?");return d>0&&(e<0||e>d)}a.utils=function(){};a.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array"}}else{b="null"}}return b};a.utils.extend=function(){var b=a.utils.extend["arguments"];if(b.length>1){for(var d=1;d<b.length;d++){for(var e in b[d]){b[0][e]=b[d][e]}}return b[0]}return null};a.utils.clone=function(b){var d;var e=a.utils.clone["arguments"];if(e.length==1){switch(a.utils.typeOf(e[0])){case"object":d={};for(var f in e[0]){d[f]=a.utils.clone(e[0][f])}break;case"array":d=[];for(var f in e[0]){d[f]=a.utils.clone(e[0][f])}break;default:return e[0];break}}return d};a.utils.extension=function(a){if(!a){return""}a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()}return};a.utils.html=function(a,b){a.innerHTML=b};a.utils.wrap=function(a,b){if(a.parentNode){a.parentNode.replaceChild(b,a)}b.appendChild(a)};a.utils.ajax=function(b,d,e){var f;if(window.XMLHttpRequest){f=new XMLHttpRequest}else{f=new ActiveXObject("Microsoft.XMLHTTP")}f.onreadystatechange=function(){if(f.readyState===4){if(f.status===200){if(d){if(!a.utils.exists(f.responseXML)){try{if(window.DOMParser){var g=(new DOMParser).parseFromString(f.responseText,"text/xml");if(g){f=a.utils.extend({},f,{responseXML:g})}}else{g=new ActiveXObject("Microsoft.XMLDOM");g.async="false";g.loadXML(f.responseText);f=a.utils.extend({},f,{responseXML:g})}}catch(i){if(e){e(b)}}}d(f)}}else{if(e){e(b)}}}};try{f.open("GET",b,true);f.send(null)}catch(g){if(e){e(b)}}return f};a.utils.load=function(a,b,c){a.onreadystatechange=function(){if(a.readyState===4){if(a.status===200){if(b){b()}}else{if(c){c()}}}}};a.utils.find=function(a,b){return a.getElementsByTagName(b)};a.utils.append=function(a,b){a.appendChild(b)};a.utils.isIE=function(){return!+"1"||typeof window.ActiveXObject!="undefined"};a.utils.userAgentMatch=function(a){var b=navigator.userAgent.toLowerCase();return b.match(a)!==null};a.utils.isIOS=function(){return a.utils.userAgentMatch(/iP(hone|ad|od)/i)};a.utils.isIPad=function(){return a.utils.userAgentMatch(/iPad/i)};a.utils.isIPod=function(){return a.utils.userAgentMatch(/iP(hone|od)/i)};a.utils.isAndroid=function(){return a.utils.userAgentMatch(/android/i)};a.utils.isLegacyAndroid=function(){return a.utils.userAgentMatch(/android 2.[012]/i)};a.utils.isBlackberry=function(){return a.utils.userAgentMatch(/blackberry/i)};a.utils.isMobile=function(){return a.utils.isIOS()};a.utils.getFirstPlaylistItemFromConfig=function(a){var b={};var c;if(a.playlist&&a.playlist.length){c=a.playlist[0]}else{c=a}b.file=c.file;b.levels=c.levels;b.streamer=c.streamer;b.playlistfile=c.playlistfile;b.provider=c.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube"}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp"}if(c.type){b.provider=c.type.toLowerCase()}}if(b.provider=="audio"){b.provider="sound"}return b};a.utils.getOuterHTML=function(a){if(a.outerHTML){return a.outerHTML}else{try{return(new XMLSerializer).serializeToString(a)}catch(b){return""}}};a.utils.setOuterHTML=function(a,b){if(a.outerHTML){a.outerHTML=b}else{var c=document.createElement("div");c.innerHTML=b;var d=document.createRange();d.selectNodeContents(c);var e=d.extractContents();a.parentNode.insertBefore(e,a);a.parentNode.removeChild(a)}};a.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(a){}}return false};a.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length)}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"))}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"))}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"))}return a};a.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"))}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"))}else{return a.substring(a.lastIndexOf("-")+1)}}}return""};a.utils.getAbsolutePath=function(e,f){if(!a.utils.exists(f)){f=document.location.href}if(!a.utils.exists(e)){return undefined}if(b(e)){return e}var g=f.substring(0,f.indexOf("://")+3);var h=f.substring(g.length,f.indexOf("/",g.length+1));var i;if(e.indexOf("/")===0){i=e.split("/")}else{var j=f.split("?")[0];j=j.substring(g.length+h.length+1,j.lastIndexOf("/"));i=j.split("/").concat(e.split("/"))}var k=[];for(var l=0;l<i.length;l++){if(!i[l]||!a.utils.exists(i[l])||i[l]=="."){continue}else{if(i[l]==".."){k.pop()}else{k.push(i[l])}}}return g+h+"/"+k.join("/")};a.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};a.utils.getPluginPathType=function(b){if(typeof b!="string"){return}b=b.split("?")[0];var d=b.indexOf("://");if(d>0){return a.utils.pluginPathType.ABSOLUTE}var e=b.indexOf("/");var f=a.utils.extension(b);if(d<0&&e<0&&(!f||!isNaN(f))){return a.utils.pluginPathType.CDN}return a.utils.pluginPathType.RELATIVE};a.utils.mapEmpty=function(a){for(var b in a){return false}return true};a.utils.mapLength=function(a){var b=0;for(var c in a){b++}return b};a.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};a.utils.css=function(b,d,e){if(a.utils.exists(b)){for(var f in d){try{if(typeof d[f]==="undefined"){continue}else{if(typeof d[f]=="number"&&!(f=="zIndex"||f=="opacity")){if(isNaN(d[f])){continue}if(f.match(/color/i)){d[f]="#"+a.utils.strings.pad(d[f].toString(16),6)}else{d[f]=Math.ceil(d[f])+"px"}}}b.style[f]=d[f]}catch(g){}}}};a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1};a.utils.transform=function(b,d,e,f,g){if(!a.utils.exists(d)){d=1}if(!a.utils.exists(e)){e=1}if(!a.utils.exists(f)){f=0}if(!a.utils.exists(g)){g=0}if(d==1&&e==1&&f==0&&g==0){b.style.webkitTransform="";b.style.MozTransform="";b.style.OTransform=""}else{var h="scale("+d+","+e+") translate("+f+"px,"+g+"px)";b.style.webkitTransform=h;b.style.MozTransform=h;b.style.OTransform=h}};a.utils.stretch=function(b,d,e,f,g,h){if(typeof e=="undefined"||typeof f=="undefined"||typeof g=="undefined"||typeof h=="undefined"){return}var i=e/g;var j=f/h;var k=0;var l=0;var m={};if(d.parentElement){d.parentElement.style.overflow="hidden"}a.utils.transform(d);switch(b.toUpperCase()){case a.utils.stretching.NONE:m.width=g;m.height=h;m.top=(f-m.height)/2;m.left=(e-m.width)/2;break;case a.utils.stretching.UNIFORM:if(i>j){m.width=g*j;m.height=h*j}else{m.width=g*i;m.height=h*i}m.top=(f-m.height)/2;m.left=(e-m.width)/2;break;case a.utils.stretching.FILL:if(i>j){m.width=g*i;m.height=h*i}else{m.width=g*j;m.height=h*j}m.top=(f-m.height)/2;m.left=(e-m.width)/2;break;case a.utils.stretching.EXACTFIT:m.width=g;m.height=h;var n=Math.round(g/2*(1-1/i));var o=Math.round(h/2*(1-1/j));a.utils.transform(d,i,j,n,o);m.top=m.left=0;break;default:break}a.utils.css(d,m)};a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};a.utils.deepReplaceKeyName=function(b,d,e){switch(a.utils.typeOf(b)){case"array":for(var f=0;f<b.length;f++){b[f]=a.utils.deepReplaceKeyName(b[f],d,e)}break;case"object":for(var g in b){var h=g.replace(new RegExp(d,"g"),e);b[h]=a.utils.deepReplaceKeyName(b[g],d,e);if(g!=h){delete b[g]}}break}return b};a.utils.isInArray=function(a,b){if(!a||!(a instanceof Array)){return false}for(var c=0;c<a.length;c++){if(b===a[c]){return true}}return false};a.utils.exists=function(a){switch(typeof a){case"string":return a.length>0;break;case"object":return a!==null;case"undefined":return false}return true};a.utils.empty=function(a){if(typeof a.hasChildNodes=="function"){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}};a.utils.parseDimension=function(a){if(typeof a=="string"){if(a===""){return 0}else{if(a.lastIndexOf("%")>-1){return a}else{return parseInt(a.replace("px",""),10)}}}return a};a.utils.getDimensions=function(b){if(b&&b.style){return{x:a.utils.parseDimension(b.style.left),y:a.utils.parseDimension(b.style.top),width:a.utils.parseDimension(b.style.width),height:a.utils.parseDimension(b.style.height)}}else{return{}}};a.utils.getElementWidth=function(b){if(!b){return null}else{if(b==document.body){return a.utils.parentNode(b).clientWidth}else{if(b.clientWidth>0){return b.clientWidth}else{if(b.style){return a.utils.parseDimension(b.style.width)}else{return null}}}}};a.utils.getElementHeight=function(b){if(!b){return null}else{if(b==document.body){return a.utils.parentNode(b).clientHeight}else{if(b.clientHeight>0){return b.clientHeight}else{if(b.style){return a.utils.parseDimension(b.style.height)}else{return null}}}}};a.utils.timeFormat=function(a){str="00:00";if(a>0){str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":";str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)}return str};a.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0};a.utils.parentNode=function(a){if(!a){return docuemnt.body}else{if(a.parentNode){return a.parentNode}else{if(a.parentElement){return a.parentElement}else{return a}}}};a.utils.getBoundingClientRect=function(a){if(typeof a.getBoundingClientRect=="function"){return a.getBoundingClientRect()}else{return{left:a.offsetLeft+document.body.scrollLeft,top:a.offsetTop+document.body.scrollTop,width:a.offsetWidth,height:a.offsetHeight}}}})(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(a,b){if(!_listeners[a]){return}try{for(var c=0;c<_listeners[a].length;c++){if(_listeners[a][c].listener.toString()==b.toString()){_listeners[a].splice(c,1);break}}}catch(d){jwplayer.utils.log("error",d)}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(a){if(!_globallisteners[type]){return}try{for(var b=0;b<_globallisteners.length;b++){if(_globallisteners[b].listener.toString()==a.toString()){_globallisteners.splice(b,1);break}}}catch(c){jwplayer.utils.log("error",c)}return false};this.sendEvent=function(a,b){if(!jwplayer.utils.exists(b)){b={}}if(_debug){jwplayer.utils.log(a,b)}if(typeof _listeners[a]!="undefined"){for(var c=0;c<_listeners[a].length;c++){try{_listeners[a][c].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_listeners[a][c].listener)}if(_listeners[a][c]){if(_listeners[a][c].count===1){delete _listeners[a][c]}else{if(_listeners[a][c].count>0){_listeners[a][c].count=_listeners[a][c].count-1}}}}}for(var e=0;e<_globallisteners.length;e++){try{_globallisteners[e].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_globallisteners[e].listener)}if(_globallisteners[e]){if(_globallisteners[e].count===1){delete _globallisteners[e]}else{if(_globallisteners[e].count>0){_globallisteners[e].count=_globallisteners[e].count-1}}}}}}})(jwplayer);(function(a){var b={};a.utils.animations=function(){};a.utils.animations.transform=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.OTransform=b;a.style.msTransform=b};a.utils.animations.transformOrigin=function(a,b){a.style.webkitTransformOrigin=b;a.style.MozTransformOrigin=b;a.style.OTransformOrigin=b;a.style.msTransformOrigin=b};a.utils.animations.rotate=function(b,c){a.utils.animations.transform(b,["rotate(",c,"deg)"].join(""))};a.utils.cancelAnimation=function(a){delete b[a.id]};a.utils.fadeTo=function(e,f,g,h,i,j){if(b[e.id]!=j&&a.utils.exists(j)){return}if(e.style.opacity==f){return}var k=(new Date).getTime();if(j>k){setTimeout(function(){a.utils.fadeTo(e,f,g,h,0,j)},j-k)}if(e.style.display=="none"){e.style.display="block"}if(!a.utils.exists(h)){h=e.style.opacity===""?1:e.style.opacity}if(e.style.opacity==f&&e.style.opacity!==""&&a.utils.exists(j)){if(f===0){e.style.display="none"}return}if(!a.utils.exists(j)){j=k;b[e.id]=j}if(!a.utils.exists(i)){i=0}var l=g>0?(k-j)/(g*1e3):0;l=l>1?1:l;var m=f-h;var n=h+l*m;if(n>1){n=1}else{if(n<0){n=0}}e.style.opacity=n;if(i>0){b[e.id]=j+i*1e3;a.utils.fadeTo(e,f,g,h,0,b[e.id]);return}setTimeout(function(){a.utils.fadeTo(e,f,g,h,0,j)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(a,b){for(var c=0;c<a.length;c++){if(a[c]==b){return c}}return-1};a.utils.arrays.remove=function(c,d){var e=a.utils.arrays.indexOf(c,d);if(e>-1){c.splice(e,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(a){function h(a,b){b=d("video",b);var c=f(a,b);return c}function g(a,b){b=d("source",b);var c=e(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function f(b,c){c=d("media",c);var f=[];var h=a.utils.selectors("source",b);for(var i in h){if(!isNaN(i)){f.push(g(h[i]))}}var j=e(b,c);if(a.utils.exists(j.file)){f[0]={file:j.file}}j.levels=f;return j}function e(b,e){if(c[b.tagName.toLowerCase()]&&!a.utils.exists(e)){return c[b.tagName.toLowerCase()](b)}else{e=d("element",e);var f={};for(var g in e){if(g!="length"){var h=b.getAttribute(g);if(a.utils.exists(h)){f[e[g]]=h}}}var i=b.style["#background-color"];if(i&&!(i=="transparent"||i=="rgba(0, 0, 0, 0)")){f.screencolor=i}return f}}function d(c,d){if(!a.utils.exists(d)){d=b[c]}else{a.utils.extend(d,b[c])}return d}a.utils.mediaparser=function(){};var b={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 c={};a.utils.mediaparser.parseMedia=function(a){return e(a)};c.media=f;c.audio=f;c.source=g;c.video=h})(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 e=new a.events.eventdispatcher;a.utils.extend(this,e);this.load=function(){if(d==a.utils.loaderstatus.NEW){d=a.utils.loaderstatus.LOADING;var g=document.createElement("script");g.onload=function(c){d=a.utils.loaderstatus.COMPLETE;e.sendEvent(a.events.COMPLETE)};g.onerror=function(c){d=a.utils.loaderstatus.ERROR;e.sendEvent(a.events.ERROR)};g.onreadystatechange=function(){if(g.readyState=="loaded"||g.readyState=="complete"){d=a.utils.loaderstatus.COMPLETE;e.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(g);g.src=c}};this.getStatus=function(){return d}}})(jwplayer);(function(a){a.utils.selectors=function(c,d){if(!a.utils.exists(d)){d=document}c=a.utils.strings.trim(c);var e=c.charAt(0);if(e=="#"){return d.getElementById(c.substr(1))}else{if(e=="."){if(d.getElementsByClassName){return d.getElementsByClassName(c.substr(1))}else{return a.utils.selectors.getElementsByTagAndClass("*",c.substr(1))}}else{if(c.indexOf(".")>0){var f=c.split(".");return a.utils.selectors.getElementsByTagAndClass(f[0],f[1])}else{return d.getElementsByTagName(c)}}}return null};a.utils.selectors.getElementsByTagAndClass=function(c,d,e){var f=[];if(!a.utils.exists(e)){e=document}var g=e.getElementsByTagName(c);for(var h=0;h<g.length;h++){if(a.utils.exists(g[h].className)){var i=g[h].className.split(" ");for(var j=0;j<i.length;j++){if(i[j]==d){f.push(g[h])}}}}return f}})(jwplayer);(function(a){a.utils.strings=function(){};a.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};a.utils.strings.pad=function(a,b,c){if(!c){c="0"}while(a.length<b){a=c+a}return a};a.utils.strings.serialize=function(a){if(a==null){return null}else{if(a=="true"){return true}else{if(a=="false"){return false}else{if(isNaN(Number(a))||a.length>5||a.length==0){return a}else{return Number(a)}}}}};a.utils.strings.seconds=function(a){a=a.replace(",",".");var b=a.split(":");var c=0;if(a.substr(-1)=="s"){c=Number(a.substr(0,a.length-1))}else{if(a.substr(-1)=="m"){c=Number(a.substr(0,a.length-1))*60}else{if(a.substr(-1)=="h"){c=Number(a.substr(0,a.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(a)}}}}return c};a.utils.strings.xmlAttribute=function(a,b){for(var c=0;c<a.attributes.length;c++){if(a.attributes[c].name&&a.attributes[c].name.toLowerCase()==b.toLowerCase()){return a.attributes[c].value.toString()}}return""};a.utils.strings.jsonToString=function(c){var d=d||{};if(d&&d.stringify){return d.stringify(c)}var e=typeof c;if(e!="object"||c===null){if(e=="string"){c='"'+c.replace(/"/g,'\\"')+'"'}else{return String(c)}}else{var f=[],g=c&&c.constructor==Array;for(var h in c){var i=c[h];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":if(a.utils.exists(i)){i=a.utils.strings.jsonToString(i)}break}if(g){if(typeof i!="function"){f.push(String(i))}}else{if(typeof i!="function"){f.push('"'+h+'":'+String(i))}}}if(g){return"["+String(f)+"]"}else{return"{"+String(f)+"}"}}}})(jwplayer);(function(a){function e(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)}return parseInt(a,16)}return parseInt("000000",16)}function d(b,c){if(!a.utils.exists(c)){return b}switch(c){case"color":if(b.length>0){return e(b)}return null;case"integer":return parseInt(b,10);case"float":return parseFloat(b);case"boolean":if(b.toLowerCase()=="true"){return true}else{if(b=="1"){return true}}return false}return b}function c(a){var c=["true","false","t","f"];if(c.toString().indexOf(a.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(b.test(a)){return"color"}else{if(!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length){return"integer"}else{if(!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length){return"float"}}}}return"string"}var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(b,e){e=!a.utils.exists(e)?c(b):e;return d(b,e)}})(jwplayer);(function(a){a.utils.parsers=function(){};a.utils.parsers.localName=function(a){if(!a){return""}else{if(a.localName){return a.localName}else{if(a.baseName){return a.baseName}else{return""}}}};a.utils.parsers.textContent=function(a){if(!a){return""}else{if(a.textContent){return a.textContent}else{if(a.text){return a.text}else{return""}}}}})(jwplayer);(function(a){a.utils.parsers.jwparser=function(){};a.utils.parsers.jwparser.PREFIX="jwplayer";a.utils.parsers.jwparser.parseEntry=function(c,d){for(var e=0;e<c.childNodes.length;e++){if(c.childNodes[e].prefix==a.utils.parsers.jwparser.PREFIX){d[a.utils.parsers.localName(c.childNodes[e])]=a.utils.strings.serialize(a.utils.parsers.textContent(c.childNodes[e]))}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 d=a.utils.strings.extension(c.file);if(extensions.hasOwnProperty(d)){return extensions[d]}}}}}return""}})(jwplayer);(function(a){a.utils.parsers.mediaparser=function(){};a.utils.parsers.mediaparser.PREFIX="media";a.utils.parsers.mediaparser.parseGroup=function(c,d){var e=false;for(var f=0;f<c.childNodes.length;f++){if(c.childNodes[f].prefix==a.utils.parsers.mediaparser.PREFIX){if(!a.utils.parsers.localName(c.childNodes[f])){continue}switch(a.utils.parsers.localName(c.childNodes[f]).toLowerCase()){case"content":if(!e){d.file=a.utils.strings.xmlAttribute(c.childNodes[f],"url")}if(a.utils.strings.xmlAttribute(c.childNodes[f],"duration")){d.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(c.childNodes[f],"duration"))}if(a.utils.strings.xmlAttribute(c.childNodes[f],"start")){d.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(c.childNodes[f],"start"))}if(c.childNodes[f].childNodes&&c.childNodes[f].childNodes.length>0){d=a.utils.parsers.mediaparser.parseGroup(c.childNodes[f],d)}if(a.utils.strings.xmlAttribute(c.childNodes[f],"width")||a.utils.strings.xmlAttribute(c.childNodes[f],"bitrate")||a.utils.strings.xmlAttribute(c.childNodes[f],"url")){if(!d.levels){d.levels=[]}d.levels.push({width:a.utils.strings.xmlAttribute(c.childNodes[f],"width"),bitrate:a.utils.strings.xmlAttribute(c.childNodes[f],"bitrate"),file:a.utils.strings.xmlAttribute(c.childNodes[f],"url")})}break;case"title":d.title=a.utils.parsers.textContent(c.childNodes[f]);break;case"description":d.description=a.utils.parsers.textContent(c.childNodes[f]);break;case"keywords":d.tags=a.utils.parsers.textContent(c.childNodes[f]);break;case"thumbnail":d.image=a.utils.strings.xmlAttribute(c.childNodes[f],"url");break;case"credit":d.author=a.utils.parsers.textContent(c.childNodes[f]);break;case"player":var g=c.childNodes[f].url;if(g.indexOf("youtube.com")>=0||g.indexOf("youtu.be")>=0){e=true;d.file=a.utils.strings.xmlAttribute(c.childNodes[f],"url")}break;case"group":a.utils.parsers.mediaparser.parseGroup(c.childNodes[f],d);break}}}return d}})(jwplayer);(function(a){function b(b){var d={};for(var e=0;e<b.childNodes.length;e++){if(!a.utils.parsers.localName(b.childNodes[e])){continue}switch(a.utils.parsers.localName(b.childNodes[e]).toLowerCase()){case"enclosure":d.file=a.utils.strings.xmlAttribute(b.childNodes[e],"url");break;case"title":d.title=a.utils.parsers.textContent(b.childNodes[e]);break;case"pubdate":d.date=a.utils.parsers.textContent(b.childNodes[e]);break;case"description":d.description=a.utils.parsers.textContent(b.childNodes[e]);break;case"link":d.link=a.utils.parsers.textContent(b.childNodes[e]);break;case"category":if(d.tags){d.tags+=a.utils.parsers.textContent(b.childNodes[e])}else{d.tags=a.utils.parsers.textContent(b.childNodes[e])}break}}d=a.utils.parsers.mediaparser.parseGroup(b,d);d=a.utils.parsers.jwparser.parseEntry(b,d);return new a.html5.playlistitem(d)}a.utils.parsers.rssparser=function(){};a.utils.parsers.rssparser.parse=function(e){var f=[];for(var g=0;g<e.childNodes.length;g++){if(a.utils.parsers.localName(e.childNodes[g]).toLowerCase()=="channel"){for(var h=0;h<e.childNodes[g].childNodes.length;h++){if(a.utils.parsers.localName(e.childNodes[g].childNodes[h]).toLowerCase()=="item"){f.push(b(e.childNodes[g].childNodes[h]))}}}}return f}})(jwplayer);(function(a){var b={};var c={};a.plugins=function(){};a.plugins.loadPlugins=function(g,h){c[g]=new a.plugins.pluginloader(new a.plugins.model(b),h);return c[g]};a.plugins.registerPlugin=function(g,h,i){var j=a.utils.getPluginName(g);if(b[j]){b[j].registerPlugin(g,h,i)}else{a.utils.log("A plugin ("+g+") was registered with the player that was not loaded. Please check your configuration.");for(var k in c){c[k].pluginFailed()}}}})(jwplayer);(function(a){a.plugins.model=function(c){this.addPlugin=function(d){var e=a.utils.getPluginName(d);if(!c[e]){c[e]=new a.plugins.plugin(d)}return c[e]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(c){function l(c){e=a.utils.loaderstatus.ERROR;i.sendEvent(a.events.ERROR)}function k(c){h=setTimeout(function(){e=a.utils.loaderstatus.COMPLETE;i.sendEvent(a.events.COMPLETE)},1e3)}function j(){switch(a.utils.getPluginPathType(c)){case a.utils.pluginPathType.ABSOLUTE:return c;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(c,window.location.href);case a.utils.pluginPathType.CDN:var e=a.utils.getPluginName(c);var f=a.utils.getPluginVersion(c);var g=window.location.href.indexOf("https://")==0?d.replace("http://","https://secure"):d;return g+"/"+a.version.split(".")[0]+"/"+e+"/"+e+(f!==""?"-"+f:"")+".js"}}var d="http://lp.longtailvideo.com";var e=a.utils.loaderstatus.NEW;var f;var g;var h;var i=new a.events.eventdispatcher;a.utils.extend(this,i);this.load=function(){if(e==a.utils.loaderstatus.NEW){if(c.lastIndexOf(".swf")>0){f=c;e=a.utils.loaderstatus.COMPLETE;i.sendEvent(a.events.COMPLETE);return}e=a.utils.loaderstatus.LOADING;var d=new a.utils.scriptloader(j());d.addEventListener(a.events.COMPLETE,k);d.addEventListener(a.events.ERROR,l);d.load()}};this.registerPlugin=function(c,d,j){if(h){clearTimeout(h);h=undefined}if(d&&j){f=j;g=d}else{if(typeof d=="string"){f=d}else{if(typeof d=="function"){g=d}else{if(!d&&!j){f=c}}}}e=a.utils.loaderstatus.COMPLETE;i.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return e};this.getPluginName=function(){return a.utils.getPluginName(c)};this.getFlashPath=function(){if(f){switch(a.utils.getPluginPathType(f)){case a.utils.pluginPathType.ABSOLUTE:return f;case a.utils.pluginPathType.RELATIVE:if(c.lastIndexOf(".swf")>0){return a.utils.getAbsolutePath(f,window.location.href)}return a.utils.getAbsolutePath(f,j());case a.utils.pluginPathType.CDN:if(f.indexOf("-")>-1){return f+"h"}return f+"-h"}}return null};this.getJS=function(){return g};this.getPluginmode=function(){if(typeof f!="undefined"&&typeof g!="undefined"){return a.plugins.pluginmodes.HYBRID}else{if(typeof f!="undefined"){return a.plugins.pluginmodes.FLASH}else{if(typeof g!="undefined"){return a.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(a,b,c){return new g(a,b,c)};this.getURL=function(){return c}}})(jwplayer);(function(a){a.plugins.pluginloader=function(c,d){function k(){if(!h){var c=0;for(plugin in e){var d=e[plugin].getStatus();if(d==a.utils.loaderstatus.LOADING||d==a.utils.loaderstatus.NEW){c++}}if(c==0){j()}}}function j(){if(!h){h=true;f=a.utils.loaderstatus.COMPLETE;i.sendEvent(a.events.COMPLETE)}}var e={};var f=a.utils.loaderstatus.NEW;var g=false;var h=false;var i=new a.events.eventdispatcher;a.utils.extend(this,i);this.setupPlugins=function(a,b,c){var d={length:0,plugins:{}};var f={length:0,plugins:{}};for(var g in e){var h=e[g].getPluginName();if(e[g].getFlashPath()){d.plugins[e[g].getFlashPath()]=b.plugins[g];d.plugins[e[g].getFlashPath()].pluginmode=e[g].getPluginmode();d.length++}if(e[g].getJS()){var i=document.createElement("div");i.id=a.id+"_"+h;i.style.position="absolute";i.style.zIndex=f.length+10;f.plugins[h]=e[g].getNewInstance(a,b.plugins[g],i);f.length++;if(typeof f.plugins[h].resize!="undefined"){a.onReady(c(f.plugins[h],i,true));a.onResize(c(f.plugins[h],i))}}}a.plugins=f.plugins;return d};this.load=function(){f=a.utils.loaderstatus.LOADING;g=true;for(var h in d){if(a.utils.exists(h)){e[h]=c.addPlugin(h);e[h].addEventListener(a.events.COMPLETE,k);e[h].addEventListener(a.events.ERROR,k)}}for(h in e){e[h].load()}g=false;k()};this.pluginFailed=function(){j()};this.getStatus=function(){return f}}})(jwplayer);(function(a){var b=[];a.api=function(b){function r(a,b,c){var d=[];if(!b){b=0}if(!c){c=a.length-1}for(var e=b;e<=c;e++){d.push(a[e])}return d}function q(b,d){var e=a.utils.extend({},d);if(b==a.api.events.JWPLAYER_FULLSCREEN&&!e.fullscreen){e.fullscreen=e.message=="true"?true:false;delete e.message}else{if(typeof e.data=="object"){e=a.utils.extend(e,e.data);delete e.data}}var f=["position","duration","offset"];for(var g in f){if(e[f[g]]){e[f[g]]=Math.round(e[f[g]]*1e3)/1e3}}return e}function p(a,b){return function(c){if(a==c.component){var d=f[a][b];if(d){for(var e=0;e<d.length;e++){if(typeof d[e]=="function"){d[e].call(this,c)}}}}}}function o(a){return function(b){var c=b.newstate,d=b.oldstate;if(c==a){var f=e[c];if(f){for(var g=0;g<f.length;g++){if(typeof f[g]=="function"){f[g].call(this,{oldstate:d,newstate:c})}}}}}}function n(a,b){return function(c,d,e,f){if(a.renderingMode=="flash"||a.renderingMode=="html5"){var g;if(d){m[c]=d;g="jwplayer('"+a.id+"').callback('"+c+"')"}else{if(!d&&m[c]){delete m[c]}}h.jwDockSetButton(c,g,e,f)}return b}}this.container=b;this.id=b.id;var d={};var e={};var f={};var g=[];var h=undefined;var i=false;var j=[];var k=a.utils.getOuterHTML(b);var l={};var m={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};this.getPlugin=function(b){var d=this;var e={};if(b=="dock"){return a.utils.extend(e,{setButton:n(d,e),show:function(){d.callInternal("jwDockShow");return e},hide:function(){d.callInternal("jwDockHide");return e},onShow:function(b){d.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){d.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}})}else{if(b=="controlbar"){return a.utils.extend(e,{show:function(){d.callInternal("jwControlbarShow");return e},hide:function(){d.callInternal("jwControlbarHide");return e},onShow:function(b){d.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){d.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}})}else{if(b=="display"){return a.utils.extend(e,{show:function(){d.callInternal("jwDisplayShow");return e},hide:function(){d.callInternal("jwDisplayHide");return e},onShow:function(b){d.componentListener("display",a.api.events.JWPLAYER_COMPONENT_SHOW,b);return e},onHide:function(b){d.componentListener("display",a.api.events.JWPLAYER_COMPONENT_HIDE,b);return e}})}else{return this.plugins[b]}}}};this.callback=function(a){if(m[a]){return m[a]()}};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 b=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){a.utils.deepReplaceKeyName(b,"__dot__",".")}for(var d=0;d<b.length;d++){if(!a.utils.exists(b[d].index)){b[d].index=d}}return b};this.getPlaylistItem=function(b){if(!a.utils.exists(b)){b=this.getCurrentItem()}return this.getPlaylist()[b]};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(b){if(!a.utils.exists(b)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",b)}return this};this.setMute=function(b){if(!a.utils.exists(b)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",b)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(a){this.callInternal("jwLoad",a);return this};this.playlistItem=function(a){this.callInternal("jwPlaylistItem",a);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(a,b){if(this.renderingMode=="html5"){h.jwResize(a,b)}else{this.container.width=a;this.container.height=b;var c=document.getElementById(this.id+"_wrapper");if(c){c.style.width=a+"px";c.style.height=b+"px"}}return this};this.play=function(b){if(typeof b=="undefined"){b=this.getState();if(b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",b)}return this};this.pause=function(b){if(typeof b=="undefined"){b=this.getState();if(b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",b)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(a){this.callInternal("jwSeek",a);return this};this.setVolume=function(a){this.callInternal("jwSetVolume",a);return this};this.onBufferChange=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,b)};this.onBufferFull=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)};this.onError=function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)};this.onFullscreen=function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)};this.onMeta=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,b)};this.onMute=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)};this.onPlaylist=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,b)};this.onPlaylistItem=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)};this.onReady=function(b){return this.eventListener(a.api.events.API_READY,b)};this.onResize=function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)};this.onComplete=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,b)};this.onSeek=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_SEEK,b)};this.onTime=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)};this.onVolume=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,b)};this.onBuffer=function(b){return this.stateListener(a.api.events.state.BUFFERING,b)};this.onPause=function(b){return this.stateListener(a.api.events.state.PAUSED,b)};this.onPlay=function(b){return this.stateListener(a.api.events.state.PLAYING,b)};this.onIdle=function(b){return this.stateListener(a.api.events.state.IDLE,b)};this.remove=function(){d={};j=[];if(a.utils.getOuterHTML(this.container)!=k){a.api.destroyPlayer(this.id,k)}};this.setup=function(b){if(a.embed){var d=this.id;this.remove();var e=a(d);e.config=b;return new a.embed(e)}return this};this.registerPlugin=function(b,d,e){a.plugins.registerPlugin(b,d,e)};this.setPlayer=function(a,b){h=a;this.renderingMode=b};this.stateListener=function(b,d){if(!e[b]){e[b]=[];this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,o(b))}e[b].push(d);return this};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};this.componentListener=function(a,b,c){if(!f[a]){f[a]={}}if(!f[a][b]){f[a][b]=[];this.eventListener(b,p(a,b))}f[a][b].push(c);return this};this.addInternalListener=function(a,b){a.jwAddEventListener(b,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')};this.eventListener=function(a,b){if(!d[a]){d[a]=[];if(h&&i){this.addInternalListener(h,a)}}d[a].push(b);return this};this.dispatchEvent=function(a){if(d[a]){var b=q(a,arguments[1]);for(var c=0;c<d[a].length;c++){if(typeof d[a][c]=="function"){d[a][c].call(this,b)}}}};this.callInternal=function(b,d){if(i){if(typeof h!="undefined"&&typeof h[b]=="function"){if(a.utils.exists(d)){return h[b](d)}else{return h[b]()}}return null}else{j.push({method:b,parameters:d})}};this.playerReady=function(b){i=true;if(!h){this.setPlayer(document.getElementById(b.id))}this.container=document.getElementById(this.id);for(var e in d){this.addInternalListener(h,e)}this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(a){l={}});this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(l,b.metadata)});this.dispatchEvent(a.api.events.API_READY);while(j.length>0){var f=j.shift();this.callInternal(f.method,f.parameters)}};this.getItemMeta=function(){return l};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};return this};a.api.selectPlayer=function(b){var d;if(!a.utils.exists(b)){b=0}if(b.nodeType){d=b}else{if(typeof b=="string"){d=document.getElementById(b)}}if(d){var e=a.api.playerById(d.id);if(e){return e}else{return a.api.addPlayer(new a.api(d))}}else{if(typeof b=="number"){return a.getPlayers()[b]}}return null};a.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"};a.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};a.api.playerById=function(a){for(var c=0;c<b.length;c++){if(b[c].id==a){return b[c]}}return null};a.api.addPlayer=function(a){for(var c=0;c<b.length;c++){if(b[c]==a){return a}}b.push(a);return a};a.api.destroyPlayer=function(e,f){var g=-1;for(var h=0;h<b.length;h++){if(b[h].id==e){g=h;continue}}if(g>=0){var i=document.getElementById(b[g].id);if(document.getElementById(b[g].id+"_wrapper")){i=document.getElementById(b[g].id+"_wrapper")}if(i){if(f){a.utils.setOuterHTML(i,f)}else{var j=document.createElement("div");var k=i.id;if(i.id.indexOf("_wrapper")==i.id.length-8){newID=i.id.substring(0,i.id.length-8)}j.setAttribute("id",k);i.parentNode.replaceChild(j,i)}}b.splice(g,1)}return null};a.getPlayers=function(){return b.slice(0)}})(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:undefined;playerReady=function(a){var b=jwplayer.api.playerById(a.id);if(b){b.playerReady(a)}else{jwplayer.api.selectPlayer(a.id).playerReady(a)}if(_userPlayerReady){_userPlayerReady.call(this,a)}};(function(a){function c(){if(!document.body){return setTimeout(c,15)}var g=b.selectors.getElementsByTagAndClass("video","jwplayer");for(var h=0;h<g.length;h++){var i=g[h];if(i.id==""){i.id="jwplayer_"+Math.round(Math.random()*1e5)}a(i.id).setup({})}}var b=a.utils;a.embed=function(c){function k(){if(i.getStatus()==b.loaderstatus.COMPLETE){for(var d=0;d<h.modes.length;d++){if(h.modes[d].type&&a.embed[h.modes[d].type]){var g=h.modes[d].config;var k=h;if(g){k=b.extend(b.clone(h),g);var l=["file","levels","playlist"];for(var n=0;n<l.length;n++){var p=l[n];if(b.exists(g[p])){for(var q=0;q<l.length;q++){if(q!=n){var r=l[q];if(b.exists(k[r])&&!b.exists(g[r])){delete k[r]}}}}}}var s=new a.embed[h.modes[d].type](document.getElementById(c.id),h.modes[d],k,i,c);if(s.supportsConfig()){s.embed();j(c,h.events);return c}}}b.log("No suitable players found");new a.embed.logo(b.extend({hide:true},h.components.logo),"none",c.id)}}function j(a,b){for(var c in b){if(typeof a[c]=="function"){a[c].call(a,b[c])}}}var d={width:400,height:300,components:{controlbar:{position:"over"}}};var g=b.mediaparser.parseMedia(c.container);var h=new a.embed.config(b.extend(d,g,c.config),this);var i=a.plugins.loadPlugins(c.id,h.plugins);i.addEventListener(a.events.COMPLETE,k);i.addEventListener(a.events.ERROR,k);i.load();return c};c()})(jwplayer);(function(a){function i(b,c,d,e){if(a.utils.typeOf(b[c])!="object"){b[c]={}}var f=b[c][d];if(a.utils.typeOf(f)!="object"){b[c][d]=f={}}if(e){if(c=="plugins"){var g=a.utils.getPluginName(d);f[e]=b[g+"."+e];delete b[g+"."+e]}else{f[e]=b[d+"."+e];delete b[d+"."+e]}}}function h(b){var c={};switch(a.utils.typeOf(b.plugins)){case"object":for(var d in b.plugins){c[a.utils.getPluginName(d)]=d}break;case"string":var e=b.plugins.split(",");for(var f=0;f<e.length;f++){c[a.utils.getPluginName(e[f])]=e[f]}break}return c}function f(a){if(typeof a=="string"){if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1){return parseInt(a)}}return a}function e(a){var b=false;b=a instanceof Array||typeof a=="object"&&!a.position&&!a.size;return b}function d(a){var b=a.toLowerCase();var c=["left","right","top","bottom"];for(var d=0;d<c.length;d++){if(b==c[d]){return true}}return false}function b(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var c={players:"modes",autoplay:"autostart"};var g=["playlist","dock","controlbar","logo","display"];a.embed.deserialize=function(b){var c=h(b);for(var d in c){i(b,"plugins",c[d])}for(var e in b){if(e.indexOf(".")>-1){var f=e.split(".");var j=f[0];var e=f[1];if(a.utils.isInArray(g,j)){i(b,"components",j,e)}else{if(c[j]){i(b,"plugins",c[j],e)}}}}return b};a.embed.config=function(d,h){var i=a.utils.extend({},d);var j;if(e(i.playlist)){j=i.playlist;delete i.playlist}i=a.embed.deserialize(i);i.height=f(i.height);i.width=f(i.width);if(typeof i.plugins=="string"){var n=i.plugins.split(",");if(typeof i.plugins!="object"){i.plugins={}}for(var p=0;p<n.length;p++){var r=a.utils.getPluginName(n[p]);if(typeof i[r]=="object"){i.plugins[n[p]]=i[r];delete i[r]}else{i.plugins[n[p]]={}}}}for(var t=0;t<g.length;t++){var u=g[t];if(a.utils.exists(i[u])){if(typeof i[u]!="object"){if(!i.components[u]){i.components[u]={}}if(u=="logo"){i.components[u].file=i[u]}else{i.components[u].position=i[u]}delete i[u]}else{if(!i.components[u]){i.components[u]={}}a.utils.extend(i.components[u],i[u]);delete i[u]}}if(typeof i[u+"size"]!="undefined"){if(!i.components[u]){i.components[u]={}}i.components[u].size=i[u+"size"];delete i[u+"size"]}}if(typeof i.icons!="undefined"){if(!i.components.display){i.components.display={}}i.components.display.icons=i.icons;delete i.icons}for(var v in c){if(i[v]){if(!i[c[v]]){i[c[v]]=i[v]}delete i[v]}}var w;if(i.flashplayer&&!i.modes){w=b();w[0].src=i.flashplayer;delete i.flashplayer}else{if(i.modes){if(typeof i.modes=="string"){w=b();w[0].src=i.modes}else{if(i.modes instanceof Array){w=i.modes}else{if(typeof i.modes=="object"&&i.modes.type){w=[i.modes]}}}delete i.modes}else{w=b()}}i.modes=w;if(j){i.playlist=j}return i}})(jwplayer);(function(a){a.embed.download=function(c,d,e,f,g){function h(c,d,e){if(e){return false}var f=["image","sound","youtube","http"];if(d&&f.toString().indexOf(d)>-1){return true}if(!d||d&&d=="video"){var g=a.utils.extension(c);if(g&&a.utils.extensionmap[g]){return true}}return false}this.embed=function(){function s(){a.utils.stretch(a.utils.stretching.UNIFORM,f.display_image,h,i,_imageWidth,_imageHeight)}function r(a){_imageWidth=f.display_image.naturalWidth;_imageHeight=f.display_image.naturalHeight;s()}var d=a.utils.extend({},e);var f={};var h=e.width?e.width:480;if(typeof h!="number"){h=parseInt(h,10)}var i=e.height?e.height:320;if(typeof i!="number"){i=parseInt(i,10)}var k,l,n;var o={};if(e.playlist&&e.playlist.length){o.file=e.playlist[0].file;l=e.playlist[0].image;o.levels=e.playlist[0].levels}else{o.file=e.file;l=e.image;o.levels=e.levels}if(o.file){k=o.file}else{if(o.levels&&o.levels.length){k=o.levels[0].file}}n=k?"pointer":"auto";var p={display:{style:{cursor:n,width:h,height:i,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:n,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:n,position:"absolute",display:k?"block":"none",top:(i-50)/2,left:(h-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:h,height:i,display:l?"block":"none",position:"absolute",cursor:n,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var q=function(d,e,f){var g=document.createElement(d);if(f){g.id=f}else{g.id=c.id+"_jwplayer_"+e}a.utils.css(g,p[e].style);return g};f.display=q("a","display",c.id);if(k){f.display.setAttribute("href",a.utils.getAbsolutePath(k))}f.display_image=q("img","display_image");f.display_image.setAttribute("alt","Click to download...");if(l){f.display_image.setAttribute("src",a.utils.getAbsolutePath(l))}if(true){f.display_icon=q("div","display_icon");f.display_iconBackground=q("div","display_iconBackground");f.display.appendChild(f.display_image);f.display_iconBackground.appendChild(f.display_icon);f.display.appendChild(f.display_iconBackground)}_css=a.utils.css;_hide=function(a){_css(a,{display:"none"})};f.display_image.onerror=function(a){_hide(f.display_image)};f.display_image.onload=r;c.parentNode.replaceChild(f.display,c);var t=e.plugins&&e.plugins.logo?e.plugins.logo:{};f.display.appendChild(new a.embed.logo(e.components.logo,"download",c.id));g.container=document.getElementById(g.id);g.setPlayer(f.display,"download")};this.supportsConfig=function(){if(e){var c=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return h(c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&h(c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}}})(jwplayer);(function(a){a.embed.flash=function(c,d,e,f,g){function m(c){var d=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var e in c){if(typeof c[e]=="object"){d+=e+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(c[e]))+"&"}else{d+=e+"="+encodeURIComponent(c[e])+"&"}}return d.substring(0,d.length-1)}function l(c){if(!c){return{}}var d={},e=[];for(var f in c){var g=a.utils.getPluginName(f);var h=c[f];e.push(f);for(var i in h){d[g+"."+i]=h[i]}}d.plugins=e.join(",");return d}function k(a,b){if(a[b]){var c=a[b];for(var d in c){var e=c[d];if(typeof e=="string"){if(!a[d]){a[d]=e}}else{for(var f in e){if(!a[d+"."+f]){a[d+"."+f]=e[f]}}}}delete a[b]}}function j(a){if(!a){return{}}var b={};for(var c in a){var d=a[c];for(var e in d){b[c+"."+e]=d[e]}}return b}function i(c,d,e){return function(f){if(e){document.getElementById(g.id+"_wrapper").appendChild(d)}var h=document.getElementById(g.id).getPluginConfig("display");c.resize(h.width,h.height);var i={left:h.x,top:h.y};a.utils.css(d,i)}}function h(a,b,c){var d=document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}this.embed=function(){e.id=g.id;var j;var u=a.utils.extend({},e);var x=u.width;var y=u.height;if(c.id+"_wrapper"==c.parentNode.id){j=document.getElementById(c.id+"_wrapper")}else{j=document.createElement("div");j.id=c.id+"_wrapper";a.utils.wrap(c,j);a.utils.css(j,{position:"relative",width:x,height:y})}var z=f.setupPlugins(g,u,i);if(z.length>0){a.utils.extend(u,l(z.plugins))}else{delete u.plugins}var A=["height","width","modes","events"];for(var B=0;B<A.length;B++){delete u[A[B]]}var C="transparent";if(u.wmode){C=u.wmode}k(u,"components");k(u,"providers");if(typeof u["dock.position"]!="undefined"){if(u["dock.position"].toString().toLowerCase()=="false"){u.dock=u["dock.position"];delete u["dock.position"]}}var D="#ffffff";var E;if(a.utils.isIE()){var F='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+D+'id="'+c.id+'" name="'+c.id+'" tabindex=0"" class="swfaudio">';F+='<param name="movie" value="'+d.src+'">';F+='<param name="allowfullscreen" value="true">';F+='<param name="allowscriptaccess" value="always">';F+='<param name="seamlesstabbing" value="true">';F+='<param name="wmode" value="'+C+'">';F+='<param name="flashvars" value="'+m(u)+'">';F+="</object>";a.utils.setOuterHTML(c,F);E=document.getElementById(c.id)}else{var G=document.createElement("object");G.setAttribute("type","application/x-shockwave-flash");G.setAttribute("data",d.src);G.setAttribute("class","swfaudio");G.setAttribute("bgcolor","#ffffff");G.setAttribute("id",c.id);G.setAttribute("name",c.id);G.setAttribute("tabindex",0);h(G,"allowfullscreen","true");h(G,"allowscriptaccess","always");h(G,"seamlesstabbing","true");h(G,"wmode",C);h(G,"flashvars",m(u));c.parentNode.replaceChild(G,c);E=G}g.container=E;g.setPlayer(E,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash()){if(e){var c=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return flashCanPlay(c.file,c.provider)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&flashCanPlay(c.levels[d].file,c.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(c,d){var e=["video","http","sound","image"];if(d&&e.toString().indexOf(d<0)){return true}var f=a.utils.extension(c);if(!f){return true}if(a.utils.exists(a.utils.extensionmap[f])&&!a.utils.exists(a.utils.extensionmap[f].flash)){return false}return true}}})(jwplayer);(function(a){a.embed.html5=function(c,d,e,f,g){function h(a,b,d){return function(e){var f=document.getElementById(c.id+"_displayarea");if(d){f.appendChild(b)}a.resize(f.clientWidth,f.clientHeight);b.left=f.style.left;b.top=f.style.top}}this.embed=function(){if(a.html5){f.setupPlugins(g,e,h);c.innerHTML="";var d=a.utils.extend({screencolor:"0x000000"},e);var i=["plugins","modes","events"];for(var n=0;n<i.length;n++){delete d[i[n]]}if(d.levels&&!d.sources){d.sources=e.levels}if(d.skin&&d.skin.toLowerCase().indexOf(".zip")>0){d.skin=d.skin.replace(/\.zip/i,".xml")}var o=new(a.html5(c).setup)(d);g.container=document.getElementById(g.id);g.setPlayer(o,"html5")}else{return null}};this.supportsConfig=function(){if(!!a.vid.canPlayType){if(e){var c=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return html5CanPlay(a.vid,c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(a.vid,c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(c,d,e,f){if(f){return false}if(e&&e=="youtube"){return true}if(e&&e!="video"&&e!="http"&&e!="sound"){return false}var g=a.utils.extension(d);if(!a.utils.exists(g)||!a.utils.exists(a.utils.extensionmap[g])){return true}if(!a.utils.exists(a.utils.extensionmap[g].html5)){return false}if(a.utils.isLegacyAndroid()&&g.match(/m4v|mp4/)){return true}return browserCanPlay(c,a.utils.extensionmap[g].html5)};browserCanPlay=function(a,b){if(!b){return true}if(a.canPlayType(b)){return true}else{if(b=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return a.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(a){a.embed.logo=function(c,d,e){function p(a){if(h.hide){g.style.opacity=h.over}return}function o(a){if(h.link){g.style.opacity=h.out}return}function n(a){if(typeof a!="undefined"){a.preventDefault();a.stopPropagation()}if(h.link){window.open(h.link,"_blank")}return}function m(){if(h.link){g.onmouseover=p;g.onmouseout=o;g.onclick=n}else{this.mouseEnabled=false}}function l(){g=document.createElement("img");g.id=e+"_jwplayer_logo";g.style.display="none";g.onload=function(a){_css(g,k());o()};if(!h.file){return}if(h.file.indexOf("http://")===0){g.src=h.file}else{g.src=h.prefix+h.file}}function k(){var a={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};a.display=h.hide?"none":"block";var b=h.position.toLowerCase().split("-");for(var c in b){a[b[c]]=h.margin}return a}function j(){if(f.prefix){var d=a.version.split(/\W/).splice(0,2).join("/");if(f.prefix.indexOf(d)<0){f.prefix+=d+"/"}}h=a.utils.extend({},f,c)}function i(){j();l();m()}var f={prefix:"http://l.longtailvideo.com/"+d+"/",file:"",link:"",margin:8,out:.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=a.utils.css;var g;var h;i();if(!h.file){return}return g}})(jwplayer);(function(a){a.html5=function(c){var d=c;this.setup=function(c){a.utils.extend(this,new a.html5.api(d,c));return this};return this}})(jwplayer);(function(a){var b=a.utils;var c=b.css;a.html5.view=function(g,h,i){function J(){if(j.jwGetState()!=a.api.events.state.IDLE&&!t&&l.getMedia()&&l.getMedia().getDisplayElement()&&l.getMedia().getDisplayElement().webkitSupportsFullscreen&&b.useNativeFullscreen()){return true}return false}function I(b){return[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].toString().indexOf(b.toUpperCase())>-1}function H(c){var d={position:"absolute",margin:0,padding:0,top:null};var g=l.plugins.config[c].currentPosition.toLowerCase();switch(g.toUpperCase()){case a.html5.view.positions.TOP:d.top=b.parseDimension(p.style.top);d.left=b.parseDimension(p.style.left);d.width=b.getElementWidth(p)-b.parseDimension(p.style.left)-b.parseDimension(p.style.right);d.height=l.plugins.object[c].height;p.style[g]=b.parseDimension(p.style[g])+l.plugins.object[c].height+"px";p.style.height=b.getElementHeight(p)-d.height+"px";break;case a.html5.view.positions.RIGHT:d.top=b.parseDimension(p.style.top);d.right=b.parseDimension(p.style.right);d.width=l.plugins.object[c].width;d.height=b.getElementHeight(p)-b.parseDimension(p.style.top)-b.parseDimension(p.style.bottom);p.style.width=b.getElementWidth(p)-d.width+"px";break;case a.html5.view.positions.BOTTOM:d.bottom=b.parseDimension(p.style.bottom);d.left=b.parseDimension(p.style.left);d.width=b.getElementWidth(p)-b.parseDimension(p.style.left)-b.parseDimension(p.style.right);d.height=l.plugins.object[c].height;p.style.height=b.getElementHeight(p)-d.height+"px";break;case a.html5.view.positions.LEFT:d.top=b.parseDimension(p.style.top);d.left=b.parseDimension(p.style.left);d.width=l.plugins.object[c].width;d.height=b.getElementHeight(p)-b.parseDimension(p.style.top)-b.parseDimension(p.style.bottom);p.style[g]=b.parseDimension(p.style[g])+l.plugins.object[c].width+"px";p.style.width=b.getElementWidth(p)-d.width+"px";break;default:break}return d}function G(){if(!b.exists(l.getMedia())){return}p.style.position="absolute";var g=l.getMedia().getDisplayElement();if(g&&g.tagName.toLowerCase()=="video"){g.style.position="absolute";if(g.parentNode){g.parentNode.style.left=p.style.left;g.parentNode.style.top=p.style.top}if(l.fullscreen&&j.jwGetStretching()==a.utils.stretching.EXACTFIT&&!b.isMobile()){var h=document.createElement("div");b.stretch(a.utils.stretching.UNIFORM,h,b.getElementWidth(p),b.getElementHeight(p),u,v);b.stretch(a.utils.stretching.EXACTFIT,g,b.parseDimension(h.style.width),b.parseDimension(h.style.height),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300);c(g,{left:h.style.left,top:h.style.top})}else{b.stretch(j.jwGetStretching(),g,b.getElementWidth(p),b.getElementHeight(p),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300)}}else{var i=l.plugins.object.display.getDisplayElement();if(i){l.getMedia().resize(b.parseDimension(i.style.width),b.parseDimension(i.style.height))}else{l.getMedia().resize(b.parseDimension(p.style.width),b.parseDimension(p.style.height))}}}function F(a,b){return{position:"fixed",width:l.width,height:l.height,zIndex:b}}function E(a,c){if(!b.exists(l.plugins.object[a].getDisplayElement().parentNode)){p.appendChild(l.plugins.object[a].getDisplayElement())}return{position:"absolute",width:b.getElementWidth(p)-b.parseDimension(p.style.left)-b.parseDimension(p.style.right),height:b.getElementHeight(p)-b.parseDimension(p.style.top)-b.parseDimension(p.style.bottom),zIndex:c}}function D(a,c){if(b.exists(l.plugins.object[a].getDisplayElement)){if(l.plugins.config[a].position&&I(l.plugins.config[a].position)){if(!b.exists(l.plugins.object[a].getDisplayElement().parentNode)){m.appendChild(l.plugins.object[a].getDisplayElement())}var d=H(a);d.zIndex=c;return d}}return false}function C(g,h,i){var j=[];for(var k=0;k<h.length;k++){var m=h[k];if(b.exists(l.plugins.object[m].getDisplayElement)){if(l.plugins.config[m].currentPosition!=a.html5.view.positions.NONE){var n=g(m,q--);if(!n){j.push(m)}else{var o=n.width;var p=n.height;if(i){delete n.width;delete n.height}c(l.plugins.object[m].getDisplayElement(),n);l.plugins.object[m].resize(o,p)}}else{c(l.plugins.object[m].getDisplayElement(),{display:"none"})}}}return j}function B(a,e){if(m.style.display=="none"){return}var g=[].concat(l.plugins.order);g.reverse();q=g.length+2;if(J()){try{if(l.fullscreen&&!l.getMedia().getDisplayElement().webkitDisplayingFullscreen){l.fullscreen=false}}catch(h){}}if(!l.fullscreen){n=a;o=e;if(typeof a=="string"&&a.indexOf("%")>0){n=b.getElementWidth(b.parentNode(m))*parseInt(a.replace("%"),"")/100}else{n=a}if(typeof e=="string"&&e.indexOf("%")>0){o=b.getElementHeight(b.parentNode(m))*parseInt(e.replace("%"),"")/100}else{o=e}c(p,{top:0,bottom:0,left:0,right:0,width:n,height:o,position:"absolute"});c(m,{height:o,width:n});var i=C(D,g);if(i.length>0){q+=i.length;var j=i.indexOf("playlist"),k=i.indexOf("controlbar");if(j>=0&&k>=0){i[j]=i.splice(k,1,i[j])[0]}C(E,i,true)}u=b.getElementWidth(p);v=b.getElementHeight(p)}else{if(!J()){C(F,g,true)}}G()}function A(b){switch(b.keyCode){case 27:if(j.jwGetFullscreen()){j.jwSetFullscreen(false)}break;case 32:if(j.jwGetState()!=a.api.events.state.IDLE&&j.jwGetState()!=a.api.events.state.PAUSED){j.jwPause()}else{j.jwPlay()}break}}function z(a){var c=l.getMedia()?l.getMedia().getDisplayElement():null;if(b.exists(c)){if(s!=c){if(s&&s.parentNode){s.parentNode.replaceChild(c,s)}s=c}for(var d=0;d<l.plugins.order.length;d++){var e=l.plugins.order[d];if(b.exists(l.plugins.object[e].getDisplayElement)){l.plugins.config[e].currentPosition=l.plugins.config[e].position}}}B(l.width,l.height)}function y(b){c(p,{display:l.getMedia()&&l.getMedia().hasChrome()&&b.newstate!=a.api.events.state.IDLE?"none":"block"})}function x(){for(var a=0;a<l.plugins.order.length;a++){var c=l.plugins.order[a];if(b.exists(l.plugins.object[c].getDisplayElement)){l.plugins.object[c].height=b.parseDimension(l.plugins.object[c].getDisplayElement().style.height);l.plugins.object[c].width=b.parseDimension(l.plugins.object[c].getDisplayElement().style.width);l.plugins.config[c].currentPosition=l.plugins.config[c].position}}z()}function w(){function a(){if(j.skin.getComponentSettings("display")&&j.skin.getComponentSettings("display").backgroundcolor){return j.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}m=document.createElement("div");m.id=k.id;m.className=k.className;_videowrapper=document.createElement("div");_videowrapper.id=m.id+"_video_wrapper";k.id=m.id+"_video";c(m,{position:"relative",height:l.height,width:l.width,padding:0,backgroundColor:a(),zIndex:0});c(k,{top:0,left:0,zIndex:1,margin:"auto",display:"block"});c(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});b.wrap(k,m);b.wrap(k,_videowrapper);p=document.createElement("div");p.id=m.id+"_displayarea";m.appendChild(p);_videowrapper.className="audio_html5"}var j=g;var k=h;var l=i;var m;var n;var o;var p;var q;var r;var s;var t=false;var u,v;this.setup=function(){if(l&&l.getMedia()){k=l.getMedia().getDisplayElement()}w();x();j.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,y);j.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,z);j.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){G()});var c;if(b.exists(window.onresize)){c=window.onresize}window.onresize=function(a){if(b.exists(c)){try{c(a)}catch(d){}}if(j.jwGetFullscreen()){if(!J()){var e=b.getBoundingClientRect(document.body);l.width=Math.abs(e.left)+Math.abs(e.right);l.height=window.innerHeight;B(l.width,l.height)}}else{B(l.width,l.height)}}};this.resize=B;this.fullscreen=function(a){var e;try{e=l.getMedia().getDisplayElement()}catch(g){}if(J()&&e&&e.webkitSupportsFullscreen){if(a&&!e.webkitDisplayingFullscreen){try{b.transform(e);e.webkitEnterFullscreen()}catch(h){}}else{if(!a){G();if(e.webkitDisplayingFullscreen){try{e.webkitExitFullscreen()}catch(h){}}}}t=false}else{if(a){document.onkeydown=A;clearInterval(r);var i=b.getBoundingClientRect(document.body);l.width=Math.abs(i.left)+Math.abs(i.right);l.height=window.innerHeight;var j={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3};c(m,j);j.zIndex=1;if(l.getMedia()&&l.getMedia().getDisplayElement()){c(l.getMedia().getDisplayElement(),j)}j.zIndex=2;c(p,j);t=true}else{document.onkeydown="";l.width=n;l.height=o;c(m,{position:"relative",height:l.height,width:l.width,zIndex:0});t=false}B(l.width,l.height)}}};a.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(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.controlbar=function(e,f){function bk(){F();Q();G();u=true;V();h.idlehide=h.idlehide.toString().toLowerCase()=="true";if(h.position==a.html5.view.positions.OVER&&h.idlehide){i.style.opacity=0;A=true}else{i.style.opacity=1;setTimeout(function(){A=true;M()},1)}bj();Y()}function bj(){C=document.getElementById(g.id);C.addEventListener("mousemove",I)}function bi(a){if(_utils.exists(t.volumeSliderRail)){var b=isNaN(a.volume/100)?1:a.volume/100;var c=_utils.parseDimension(t.volumeSliderRail.style.width);var d=isNaN(Math.round(c*b))?0:Math.round(c*b);var e=_utils.parseDimension(t.volumeSliderRail.style.right);var f=!_utils.exists(g.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:g.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(t.volumeSliderProgress,{width:d,left:f});if(t.volumeSliderThumb){var h=d-Math.round(_utils.parseDimension(t.volumeSliderThumb.style.width)/2);h=Math.min(Math.max(h,0),c-_utils.parseDimension(t.volumeSliderThumb.style.width));_css(t.volumeSliderThumb,{left:h})}if(_utils.exists(t.volumeSliderCapLeft)){_css(t.volumeSliderCapLeft,{left:0})}}}function bh(){bf();bg();var b={width:r};var c={"float":"left",styleFloat:"left",cssFloat:"left"};if(h.position==a.html5.view.positions.OVER||g.jwGetFullscreen()){b.left=h.margin;b.width-=2*h.margin;b.top=s-E().height-h.margin;b.height=E().height}var e=g.skin.getSkinElement("controlbar","capLeft");var f=g.skin.getSkinElement("controlbar","capRight");c.width=b.width-(e?e.width:0)-(f?f.width:0);var j=_utils.getBoundingClientRect(t.leftGroup).width;var k=_utils.getBoundingClientRect(t.rightGroup).width;var l=c.width-j-k;var m=l;var n=g.skin.getSkinElement("controlbar","timeSliderCapLeft");var o=g.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(n)){m-=n.width}if(_utils.exists(o)){m-=o.width}t.timeSlider.style.width=l+"px";t.timeSliderRail.style.width=m+"px";_css(i,b);_css(t.elements,c);_css(t.background,c);G();return b}function bg(){if(g.jwGetFullscreen()){_show(t.normalscreenButton);_hide(t.fullscreenButton)}else{_hide(t.normalscreenButton);_show(t.fullscreenButton)}if(g.jwGetState()==a.api.events.state.BUFFERING||g.jwGetState()==a.api.events.state.PLAYING){_show(t.pauseButton);_hide(t.playButton)}else{_hide(t.pauseButton);_show(t.playButton)}if(g.jwGetMute()==true){_hide(t.muteButton);_show(t.unmuteButton)}else{_show(t.muteButton);_hide(t.unmuteButton)}}function bf(){var a=t.elements.childNodes;var b,c;for(var d=0;d<a.length;d++){var e=a[d].childNodes;for(var f in e){if(isNaN(parseInt(f,10))){continue}if(e[f].id.indexOf(i.id+"_divider")===0&&c&&c.id.indexOf(i.id+"_divider")===0&&e[f].style.backgroundImage==c.style.backgroundImage){e[f].style.display="none"}else{if(e[f].id.indexOf(i.id+"_divider")===0&&b&&b.style.display!="none"){e[f].style.display="block"}}if(e[f].style.display!="none"){c=e[f]}b=e[f]}}}function be(a){if(_utils.exists(a.position)){o=a.position}if(_utils.exists(a.duration)){p=a.duration}var b=o===p===0?0:o/p;var c=v.timeSliderRail;if(c){var d=isNaN(Math.round(c.width*b))?0:Math.round(c.width*b);var e=g.skin.getSkinElement("controlbar","timeSliderCapLeft");var f=d+(e?e.width:0);if(t.timeSliderProgress){_css(t.timeSliderProgress,{width:d,left:e?e.width:0});if(!n){if(t.timeSliderThumb){t.timeSliderThumb.style.left=f+"px"}}}}if(t.durationText){t.durationText.innerHTML=_utils.timeFormat(p)}if(t.elapsedText){t.elapsedText.innerHTML=_utils.timeFormat(o)}}function bd(a){ba({bufferPercent:0});be(_utils.extend(a,{position:0,duration:p}))}function bc(b){if(b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING){_show(t.pauseButton);_hide(t.playButton)}else{_hide(t.pauseButton);_show(t.playButton)}I();if(b.newstate==a.api.events.state.IDLE){_hide(t.timeSliderBuffer);_hide(t.timeSliderProgress);_hide(t.timeSliderThumb);be({id:g.id,duration:g.jwGetDuration(),position:0})}else{_show(t.timeSliderBuffer);if(b.newstate!=a.api.events.state.BUFFERING){_show(t.timeSliderProgress);_show(t.timeSliderThumb)}}}function bb(a){if(a.mute){_hide(t.muteButton);_show(t.unmuteButton);_hide(t.volumeSliderProgress)}else{_show(t.muteButton);_hide(t.unmuteButton);_show(t.volumeSliderProgress)}}function ba(a){if(_utils.exists(a.bufferPercent)){q=a.bufferPercent}if(v.timeSliderRail){var b=g.skin.getSkinElement("controlbar","timeSliderCapLeft");var c=v.timeSliderRail.width;var d=isNaN(Math.round(c*q/100))?0:Math.round(c*q/100);_css(t.timeSliderBuffer,{width:d,left:b?b.width:0})}}function _(b){n=false;var c;if(m=="time"){c=b-v.timeSliderRail.left+window.pageXOffset;var e=c/v.timeSliderRail.width*p;if(e<0){e=0}else{if(e>p){e=p-3}}if(g.jwGetState()==a.api.events.state.PAUSED||g.jwGetState()==a.api.events.state.IDLE){g.jwPlay()}g.jwSeek(e)}else{if(m=="volume"){c=b-v.volumeSliderRail.left-window.pageXOffset;var f=Math.round(c/v.volumeSliderRail.width*100);if(f<0){f=0}else{if(f>100){f=100}}if(g.jwGetMute()){g.jwSetMute(false)}g.jwSetVolume(f)}}m="none"}function $(a){if(u){return}var b=t[a+"Slider"];_css(t.elements,{cursor:"pointer"});_css(b,{cursor:"pointer"});b.onmousedown=function(b){m=a};b.onmouseup=function(a){a.stopPropagation();_(a.pageX)};b.onmousemove=function(b){if(m=="time"){n=true;var c=b.pageX-v[a+"Slider"].left-window.pageXOffset;_css(t[m+"SliderThumb"],{left:c})}}}function Z(a,b,c){if(u){return}if(_utils.exists(g.skin.getSkinElement("controlbar",a))){var d=t[a];if(_utils.exists(d)){_css(d,{cursor:"pointer"});if(b=="fullscreen"){d.onmouseup=function(a){a.stopPropagation();g.jwSetFullscreen(!g.jwGetFullscreen())}}else{d.onmouseup=function(a){a.stopPropagation();if(_utils.exists(c)){g[b](c)}else{g[b]()}}}}}}function Y(){be({id:g.id,duration:g.jwGetDuration(),position:0});ba({id:g.id,bufferProgress:0});bb({id:g.id,mute:g.jwGetMute()});bc({id:g.id,newstate:a.api.events.state.IDLE});bi({id:g.id,volume:g.jwGetVolume()})}function X(a){p=g.jwGetPlaylist()[a.index].duration;be({id:g.id,duration:p,position:0});ba({id:g.id,bufferProgress:0})}function W(){if(!h.hideplaylistcontrols){if(g.jwGetPlaylist().length>1){_show(t.nextButton);_show(t.prevButton)}else{_hide(t.nextButton);_hide(t.prevButton)}bh();Y()}}function V(){g.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,W);g.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,X);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,ba);g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,bc);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,be);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,bb);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,bi);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,bd)}function U(a,b,c,d,e,f,i){if(_utils.exists(g.skin.getSkinElement("controlbar",a))||a.indexOf("Text")>0||a.indexOf("divider")===0){var j={height:"100%",position:e?e:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((a.indexOf("next")===0||a.indexOf("prev")===0)&&(g.jwGetPlaylist().length<2||h.hideplaylistcontrols)){c=false;j.display="none"}var m;if(a.indexOf("Text")>0){a.innerhtml="00:00";j.font=h.fontsize+"px/"+(E().height+1)+"px "+h.font;j.color=h.fontcolor;j.textAlign="center";j.fontWeight=h.fontweight;j.fontStyle=h.fontstyle;j.cursor="default";m=14+3*h.fontsize}else{if(a.indexOf("divider")===0){if(f){if(!isNaN(parseInt(f))){m=parseInt(f)}}else{if(i){var n=g.skin.getSkinElement("controlbar",i);if(n){j.background="url("+n.src+") repeat-x center left";m=n.width}}else{j.background="url("+g.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";m=g.skin.getSkinElement("controlbar","divider").width}}}else{j.background="url("+g.skin.getSkinElement("controlbar",a).src+") repeat-x center left";m=g.skin.getSkinElement("controlbar",a).width}}if(b=="left"){if(c){k+=m}}else{if(b=="right"){if(c){l+=m}}}if(_utils.typeOf(d)=="undefined"){d=t.elements}j.width=m;if(u){_css(t[a],j)}else{var o=P(a,d,j);if(_utils.exists(g.skin.getSkinElement("controlbar",a+"Over"))){o.onmouseover=function(b){o.style.backgroundImage=["url(",g.skin.getSkinElement("controlbar",a+"Over").src,")"].join("")};o.onmouseout=function(b){o.style.backgroundImage=["url(",g.skin.getSkinElement("controlbar",a).src,")"].join("")}}if(a.indexOf("divider")==0){o.setAttribute("class","divider")}}}}function T(a,b,c){var d,e,f,h,i;if(!c){c=t.elements}if(a.type=="divider"){U("divider"+S(),b,true,c,undefined,a.width,a.element);return}switch(a.name){case"play":U("playButton",b,false,c);U("pauseButton",b,true,c);Z("playButton","jwPlay");Z("pauseButton","jwPause");break;case"prev":U("prevButton",b,true,c);Z("prevButton","jwPlaylistPrev");break;case"stop":U("stopButton",b,true,c);Z("stopButton","jwStop");break;case"next":U("nextButton",b,true,c);Z("nextButton","jwPlaylistNext");break;case"elapsed":U("elapsedText",b,true,c);break;case"time":e=!_utils.exists(g.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:g.skin.getSkinElement("controlbar","timeSliderCapLeft").width;f=!_utils.exists(g.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:g.skin.getSkinElement("controlbar","timeSliderCapRight").width;d=b=="left"?e:f;i={height:E().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var j=P("timeSlider",c,i);U("timeSliderCapLeft",b,true,j,"relative");U("timeSliderRail",b,false,j,"relative");U("timeSliderBuffer",b,false,j,"absolute");U("timeSliderProgress",b,false,j,"absolute");U("timeSliderThumb",b,false,j,"absolute");U("timeSliderCapRight",b,true,j,"relative");$("time");break;case"fullscreen":U("fullscreenButton",b,false,c);U("normalscreenButton",b,true,c);Z("fullscreenButton","jwSetFullscreen",true);Z("normalscreenButton","jwSetFullscreen",false);break;case"volume":e=!_utils.exists(g.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:g.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;f=!_utils.exists(g.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:g.skin.getSkinElement("controlbar","volumeSliderCapRight").width;d=b=="left"?e:f;h=g.skin.getSkinElement("controlbar","volumeSliderRail").width+e+f;i={height:E().height,position:"relative",width:h,"float":"left",styleFloat:"left",cssFloat:"left"};var k=P("volumeSlider",c,i);U("volumeSliderCapLeft",b,false,k,"relative");U("volumeSliderRail",b,false,k,"relative");U("volumeSliderProgress",b,false,k,"absolute");U("volumeSliderThumb",b,false,k,"absolute");U("volumeSliderCapRight",b,false,k,"relative");$("volume");break;case"mute":U("muteButton",b,false,c);U("unmuteButton",b,true,c);Z("muteButton","jwSetMute",true);Z("unmuteButton","jwSetMute",false);break;case"duration":U("durationText",b,true,c);break}}function S(){return j++}function R(a,b){var c=a.position=="right"?"right":"left";var d=_utils.extend([],a.elements);if(_utils.exists(b)){d.reverse()}var a=P(a.position+"Group",t.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var e=0;e<d.length;e++){T(d[e],c,a)}}function Q(){if(g.jwGetHeight()<=40){h.layout=_utils.clone(h.layout);for(var a=0;a<h.layout.left.elements.length;a++){if(h.layout.left.elements[a].name=="fullscreen"){h.layout.left.elements.splice(a,1)}}for(a=0;a<h.layout.right.elements.length;a++){if(h.layout.right.elements[a].name=="fullscreen"){h.layout.right.elements.splice(a,1)}}bf()}R(h.layout.left);R(h.layout.center);R(h.layout.right)}function P(a,b,c,d){var e;if(!u){if(!d){d="div"}e=document.createElement(d);t[a]=e;e.id=i.id+"_"+a;b.appendChild(e)}else{e=document.getElementById(i.id+"_"+a)}if(_utils.exists(c)){_css(e,c)}return e}function O(){if(h.position==a.html5.view.positions.OVER||g.jwGetFullscreen()){return _utils.getDimensions(i)}else{return{x:0,y:0,width:0,height:0}}}function L(a){return function(){if(A&&z!=a){z=a;D.sendEvent(a,{component:"controlbar",boundingRect:O()})}}}function K(){if(!x){M();if(i.style.opacity==0){_utils.cancelAnimation(i);_utils.fadeTo(i,1,.1,0,0)}}}function J(){if(!x){N();if(i.style.opacity==1){_utils.cancelAnimation(i);_utils.fadeTo(i,0,.1,1,0)}}}function I(b){if(x){return}clearTimeout(y);if(h.position==a.html5.view.positions.OVER||g.jwGetFullscreen()){switch(g.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(i&&i.style.opacity<1&&(!h.idlehide||_utils.exists(b))){H=false;setTimeout(function(){if(!H){K()}},100)}if(h.idlehide){y=setTimeout(function(){J()},2e3)}break;default:H=true;if(b){K()}y=setTimeout(function(){J()},2e3);break}}else{K()}}function G(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var b in a){var c=a[b];if(typeof t[c]!="undefined"){v[c]=_utils.getBoundingClientRect(t[c])}}}function F(){k=0;l=0;j=0;if(!u){var a={height:E().height,backgroundColor:h.backgroundcolor};i=document.createElement("div");i.id=g.id+"_jwplayer_controlbar";_css(i,a)}var b=g.skin.getSkinElement("controlbar","capLeft");var c=g.skin.getSkinElement("controlbar","capRight");if(b){U("capLeft","left",false,i)}P("background",i,{position:"absolute",height:E().height,left:b?b.width:0,zIndex:0},"img");if(E().src){t.background.src=E().src}P("elements",i,{position:"relative",height:E().height,zIndex:1});if(c){U("capRight","right",false,i)}}function E(){if(!w){w=g.skin.getSkinElement("controlbar","background");if(!w){w={width:0,height:0,src:null}}}return w}window.controlbar=this;var g=e;var h=_utils.extend({},b,g.skin.getComponentSettings("controlbar"),f);if(h.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[h.position]=="undefined"){return}if(_utils.mapLength(g.skin.getComponentLayout("controlbar"))>0){h.layout=g.skin.getComponentLayout("controlbar")}var i;var j;var k;var l;var m="none";var n;var o;var p;var q;var r;var s;var t={};var u=false;var v={};var w;var x=false;var y;var z;var A=false;var B=false;var C;var D=new a.html5.eventdispatcher;_utils.extend(this,D);this.getDisplayElement=function(){return i};this.resize=function(a,b){bj();_utils.cancelAnimation(i);r=a;s=b;if(B!=g.jwGetFullscreen()){B=g.jwGetFullscreen();z=undefined}var c=bh();be({id:g.id,duration:p,position:o});ba({id:g.id,bufferPercent:q});return c};this.show=function(){if(x){x=false;_show(i);M()}};this.hide=function(){if(!x){x=true;_hide(i);N()}};var H;var M=L(a.api.events.JWPLAYER_COMPONENT_SHOW);var N=L(a.api.events.JWPLAYER_COMPONENT_HIDE);bk();return this}})(jwplayer);(function(a){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var c=a.utils;a.html5.controller=function(b,e,g,h){function Q(a,b){var c=[];for(i=0;i<b.length;i++){c.push(b[i])}a.apply(this,c)}function P(a){return function(){if(s){Q(a,arguments)}else{O.push({method:a,arguments:arguments})}}}function N(){switch(k.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:v();break;case a.html5.controller.repeatoptions.ALWAYS:if(k.item==k.playlist.length-1&&!k.config.shuffle){C(0)}else{z()}break;case a.html5.controller.repeatoptions.LIST:if(k.item==k.playlist.length-1&&!k.config.shuffle){y();D(0)}else{z()}break;default:y();break}}function M(){try{return k.getMedia().attachMedia()}catch(a){return null}}function L(){try{return k.getMedia().detachMedia()}catch(a){return null}}function K(a){H(a.fullscreen)}function J(a){D(k.playlist[k.item]);if(k.config.autostart.toString().toLowerCase()=="true"){v()}}function I(b){try{y();k.loadPlaylist(b);if(k.playlist[k.item].provider){D(k.item);if(k.config.autostart.toString().toLowerCase()=="true"){v()}return true}else{return false}}catch(c){q.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function H(b){try{if(typeof b=="undefined"){b=!k.fullscreen}if(b!=k.fullscreen){if(b.toString().toLowerCase()=="true"){k.fullscreen=true;l.fullscreen(true);q.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:true})}else{k.fullscreen=false;l.fullscreen(false);q.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}q.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:k.width,height:k.height})}return true}catch(c){q.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function G(b,c){try{k.width=b;k.height=c;l.resize(b,c);q.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:k.width,height:k.height});return true}catch(e){q.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function F(b){try{D(k.item);var c=k.getMedia();if(typeof b=="undefined"){c.mute(!k.mute)}else{if(b.toString().toLowerCase()=="true"){c.mute(true)}else{c.mute(false)}}return true}catch(e){q.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function E(b){try{D(k.item);var c=k.getMedia();switch(typeof b){case"number":c.volume(b);break;case"string":c.volume(parseInt(b,10));break}return true}catch(e){q.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function D(b){if(!k.playlist[b]){return}k.setActiveMediaProvider(k.playlist[b]);if(k.item!=b){k.item=b;n=true;q.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:b})}}function C(b){if(!k.playlist||!k.playlist[b]){return false}try{if(k.playlist[b].levels[0].file.length>0){var c=k.state;if(c!==a.api.events.state.IDLE){if(k.playlist[k.item].provider==k.playlist[b].provider){y(false)}else{y()}}D(b);v()}return true}catch(e){q.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function B(){var a=null;if(k.playlist.length>1){while(!c.exists(a)){a=Math.floor(Math.random()*k.playlist.length);if(a==k.item){a=null}}}else{a=0}return a}function A(){try{if(k.playlist[k.item].levels[0].file.length>0){if(k.config.shuffle){D(B())}else{if(k.item===0){D(k.playlist.length-1)}else{D(k.item-1)}}}if(k.state!=a.api.events.state.IDLE){var b=k.state;k.state=a.api.events.state.IDLE;q.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}v();return true}catch(c){q.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function z(){try{if(k.playlist[k.item].levels[0].file.length>0){if(k.config.shuffle){D(B())}else{if(k.item+1==k.playlist.length){D(0)}else{D(k.item+1)}}}if(k.state!=a.api.events.state.IDLE){var b=k.state;k.state=a.api.events.state.IDLE;q.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}v();return true}catch(c){q.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function y(b){if(!c.exists(b)){b=true}try{if(k.getMedia()){k.getMedia().stop(b)}return true}catch(e){q.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function x(b){try{if(k.playlist[k.item].levels[0].file.length>0){if(typeof b!="number"){b=parseFloat(b)}switch(k.state){case a.api.events.state.IDLE:if(o<0){o=k.playlist[k.item].start;k.playlist[k.item].start=b}v();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:k.seek(b);break}}return true}catch(c){q.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return false}function w(){try{if(k.playlist[k.item].levels[0].file.length>0){switch(k.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:if(k.getMedia()){k.getMedia().pause()}break}}return true}catch(b){q.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return false}function v(){try{D(k.item);if(k.playlist[k.item].levels[0].file.length>0){if(n||k.state==a.api.events.state.IDLE){k.getMedia().load(k.playlist[k.item]);n=false}else{if(k.state==a.api.events.state.PAUSED){k.getMedia().play()}}}return true}catch(b){q.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return false}function u(b){if(!s){s=true;q.sendEvent(a.api.events.JWPLAYER_READY,b);if(a.utils.exists(window.playerReady)){playerReady(b)}if(a.utils.exists(window[g.config.playerReady])){window[g.config.playerReady](b)}while(r.length>0){var c=r.shift();q.sendEvent(c.type,c)}if(g.config.autostart&&!a.utils.isIOS()){J()}while(O.length>0){var e=O.shift();Q(e.method,e.arguments)}}}function t(a){if(s){q.sendEvent(a.type,a)}else{r.push(a)}}var j=b;var k=g;var l=h;var m=e;var n=true;var o=-1;var p=c.exists(k.config.debug)&&k.config.debug.toString().toLowerCase()=="console";var q=new a.html5.eventdispatcher(m.id,p);c.extend(this,q);var r=[];var s=false;k.addGlobalListener(t);k.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){k.getMedia().play()});k.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){if(a.position>=k.playlist[k.item].start&&o>=0){k.playlist[k.item].start=o;o=-1}});k.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(a){setTimeout(N,25)});k.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,J);k.addEventListener(a.api.events.JWPLAYER_FULLSCREEN,K);a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};var O=[];this.play=P(v);this.pause=P(w);this.seek=P(x);this.stop=P(y);this.next=P(z);this.prev=P(A);this.item=P(C);this.setVolume=P(E);this.setMute=P(F);this.resize=P(G);this.setFullscreen=P(H);this.load=P(I);this.playerReady=u;this.detachMedia=L;this.attachMedia=M}})(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(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.display=function(c,d){function Q(a){return function(){if(!w){return}if(!v&&u!=a){u=a;z.sendEvent(a,{component:"display",boundingRect:_utils.getDimensions(h.display_iconBackground)})}}}function P(){if(g.jwGetPlaylist()[g.jwGetItem()]&&g.jwGetPlaylist()[g.jwGetItem()].image){_css(h.display_image,{display:"block"});h.display_image.src=_utils.getAbsolutePath(g.jwGetPlaylist()[g.jwGetItem()].image)}}function O(c){if(_utils.exists(n)){clearInterval(n);n=null;_utils.animations.rotate(h.display_icon,0)}switch(c){case a.api.events.state.BUFFERING:if(_utils.isMobile()){L();I()}else{if(g.jwGetPlaylist()[g.jwGetItem()].provider=="sound"){P()}m=0;n=setInterval(function(){m+=p;_utils.animations.rotate(h.display_icon,m%360)},q);H("bufferIcon");t=true}break;case a.api.events.state.PAUSED:if(!_utils.isMobile()){if(g.jwGetPlaylist()[g.jwGetItem()].provider!="sound"){_css(h.display_image,{background:"transparent no-repeat center center"})}H("playIcon");t=true}break;case a.api.events.state.IDLE:if(g.jwGetPlaylist()[g.jwGetItem()]&&g.jwGetPlaylist()[g.jwGetItem()].image){P()}else{L()}H("playIcon");t=true;break;default:if(g.jwGetPlaylist()[g.jwGetItem()]&&g.jwGetPlaylist()[g.jwGetItem()].provider=="sound"){if(_utils.isMobile()){L();t=false}else{P()}}else{L();t=false}if(g.jwGetMute()&&f.showmute){H("muteIcon")}else{I()}break}r=-1}function N(a){return function(){O(a)}}function M(c){if((c.type==a.api.events.JWPLAYER_PLAYER_STATE||c.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&o){o=false;_hide(h.display_text)}var d=g.jwGetState();if(d==s){return}s=d;if(r>=0){clearTimeout(r)}if(t||g.jwGetState()==a.api.events.state.PLAYING||g.jwGetState()==a.api.events.state.PAUSED){O(g.jwGetState())}else{r=setTimeout(N(g.jwGetState()),500)}}function L(){h.display_image.style.display="none"}function K(a){o=true;I();h.display_text.innerHTML=a.message;_show(h.display_text);h.display_text.style.top=(j-_utils.getBoundingClientRect(h.display_text).height)/2+"px"}function J(){if(!v&&f.icons.toString()=="true"){_show(h.display_icon);_show(h.display_iconBackground);R()}}function I(){if(f.icons.toString()=="true"){_hide(h.display_icon);_hide(h.display_iconBackground);S()}}function H(a){if(o){I();return}h.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a).src,")"].join("");_css(h.display_icon,{width:g.skin.getSkinElement("display",a).width,height:g.skin.getSkinElement("display",a).height,top:(g.skin.getSkinElement("display","background").height-g.skin.getSkinElement("display",a).height)/2,left:(g.skin.getSkinElement("display","background").width-g.skin.getSkinElement("display",a).width)/2});J();if(_utils.exists(g.skin.getSkinElement("display",a+"Over"))){h.display_icon.onmouseover=function(b){h.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a+"Over").src,")"].join("")};h.display_icon.onmouseout=function(b){h.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a).src,")"].join("")}}else{h.display_icon.onmouseover=null;h.display_icon.onmouseout=null}}function G(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(g.jwGetState()!=a.api.events.state.PLAYING){g.jwPlay()}else{g.jwPause()}}function F(){for(var a in h){if(_utils.exists(A[a].click)){h[a].onclick=A[a].click}}}function E(a,b){var c=document.createElement(a);c.id=g.id+"_jwplayer_"+b;_css(c,A[b].style);return c}function D(){if(g.jwGetFullscreen()&&g.jwGetStretching()==a.utils.stretching.EXACTFIT){var c=document.createElement("div");_utils.stretch(a.utils.stretching.UNIFORM,c,i,j,x,y);_utils.stretch(a.utils.stretching.EXACTFIT,h.display_image,_utils.parseDimension(c.style.width),_utils.parseDimension(c.style.height),k,l);_css(h.display_image,{left:c.style.left,top:c.style.top})}else{_utils.stretch(g.jwGetStretching(),h.display_image,i,j,k,l)}}function C(a){k=h.display_image.naturalWidth;l=h.display_image.naturalHeight;D()}function B(){h.display=E("div","display");h.display_text=E("div","display_text");h.display.appendChild(h.display_text);h.display_image=E("img","display_image");h.display_image.onerror=function(a){_hide(h.display_image)};h.display_image.onload=C;h.display_icon=E("div","display_icon");h.display_iconBackground=E("div","display_iconBackground");h.display.appendChild(h.display_image);h.display_iconBackground.appendChild(h.display_icon);h.display.appendChild(h.display_iconBackground);F();setTimeout(function(){w=true;if(f.icons.toString()=="true"){R()}},1)}var e={icons:true,showmute:false};var f=_utils.extend({},e,d);var g=c;var h={};var i;var j;var k;var l;var m;var n;var o;var p=!_utils.exists(g.skin.getComponentSettings("display").bufferrotation)?15:parseInt(g.skin.getComponentSettings("display").bufferrotation,10);var q=!_utils.exists(g.skin.getComponentSettings("display").bufferinterval)?100:parseInt(g.skin.getComponentSettings("display").bufferinterval,10);var r=-1;var s="";var t=true;var u;var v=false;var w=false;var x,y;var z=new a.html5.eventdispatcher;_utils.extend(this,z);var A={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:G},display_icon:{style:{cursor:"pointer",position:"absolute",top:(g.skin.getSkinElement("display","background").height-g.skin.getSkinElement("display","playIcon").height)/2,left:(g.skin.getSkinElement("display","background").width-g.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(j-g.skin.getSkinElement("display","background").height)/2,left:(i-g.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",g.skin.getSkinElement("display","background").src,")"].join(""),width:g.skin.getSkinElement("display","background").width,height:g.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:i,height:j,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,M);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,M);g.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,M);g.jwAddEventListener(a.api.events.JWPLAYER_ERROR,K);B();this.getDisplayElement=function(){return h.display};this.resize=function(a,b){_css(h.display,{width:a,height:b});_css(h.display_text,{width:a-10,top:(b-_utils.getBoundingClientRect(h.display_text).height)/2});_css(h.display_iconBackground,{top:(b-g.skin.getSkinElement("display","background").height)/2,left:(a-g.skin.getSkinElement("display","background").width)/2});if(i!=a||j!=b){i=a;j=b;u=undefined;R()}if(!g.jwGetFullscreen()){x=a;y=b}D();M({})};this.show=function(){if(v){v=false;O(g.jwGetState())}};this.hide=function(){if(!v){I();v=true}};var R=Q(a.api.events.JWPLAYER_COMPONENT_SHOW);var S=Q(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(a){var b=a.utils;var c=b.css;a.html5.dock=function(g,h){function H(){s=document.getElementById(g.id);s.addEventListener("mousemove",A)}function G(){if(!o){B();if(v.style.opacity==0){b.cancelAnimation(v);b.fadeTo(v,1,.1,0,0)}}}function F(){if(!o){C();if(v.style.opacity==1){b.cancelAnimation(v);b.fadeTo(v,0,.1,1,0)}}}function A(c){if(o){return}clearTimeout(t);if(h.position==a.html5.view.positions.OVER||g.jwGetFullscreen()){switch(g.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:if(v&&v.style.opacity<1&&(!h.idlehide||b.exists(c))){G()}if(h.idlehide){t=setTimeout(function(){F()},2e3)}break;default:if(b.exists(c)){G()}t=setTimeout(function(){F()},2e3);break}}else{G()}}function z(c){if(b.isMobile()){if(c.newstate==a.api.events.state.IDLE){D()}else{E()}}else{A()}}function y(a){return function(){if(!o&&r!=a&&l.length>0){r=a;u.sendEvent(a,{component:"dock",boundingRect:q})}}}function x(c,d){H();if(l.length>0){var h=10;var i=h;var o=-1;var s=g.skin.getSkinElement("dock","button").height;var t=g.skin.getSkinElement("dock","button").width;var u=c-t-h;var v,w;if(j.align==a.html5.view.positions.LEFT){o=1;u=h}for(var x=0;x<l.length;x++){var y=Math.floor(i/d);if(i+s+h>(y+1)*d){i=(y+1)*d+h;y=Math.floor(i/d)}var z=k[l[x]].div;z.style.top=i%d+"px";z.style.left=u+(g.skin.getSkinElement("dock","button").width+h)*y*o+"px";var A={x:b.parseDimension(z.style.left),y:b.parseDimension(z.style.top),width:t,height:s};if(!v||A.x<=v.x&&A.y<=v.y){v=A}if(!w||A.x>=w.x&&A.y>=w.y){w=A}i+=g.skin.getSkinElement("dock","button").height+h}q={x:v.x,y:v.y,width:w.x-v.x+w.width,height:v.y-w.y+w.height}}if(p!=g.jwGetFullscreen()||m!=c||n!=d){m=c;n=d;p=g.jwGetFullscreen();r=undefined;setTimeout(B,1)}}function w(a){}function i(){return{align:a.html5.view.positions.RIGHT}}var j=b.extend({},i(),h);if(j.align=="FALSE"){return}var k={};var l=[];var m;var n;var o=false;var p=false;var q={x:0,y:0,width:0,height:0};var r;var s;var t;var u=new a.html5.eventdispatcher;b.extend(this,u);var v=document.createElement("div");v.id=g.id+"_jwplayer_dock";v.style.opacity=1;H();g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,z);this.getDisplayElement=function(){return v};this.setButton=function(c,d,h,i){if(!d&&k[c]){b.arrays.remove(l,c);v.removeChild(k[c].div);delete k[c]}else{if(d){if(!k[c]){k[c]={}}k[c].handler=d;k[c].outGraphic=h;k[c].overGraphic=i;if(!k[c].div){l.push(c);k[c].div=document.createElement("div");k[c].div.style.position="relative";v.appendChild(k[c].div);k[c].div.appendChild(document.createElement("img"));k[c].div.childNodes[0].style.position="absolute";k[c].div.childNodes[0].style.left=0;k[c].div.childNodes[0].style.top=0;k[c].div.childNodes[0].style.zIndex=10;k[c].div.childNodes[0].style.cursor="pointer";k[c].div.appendChild(document.createElement("img"));k[c].div.childNodes[1].style.position="absolute";k[c].div.childNodes[1].style.left=0;k[c].div.childNodes[1].style.top=0;if(g.skin.getSkinElement("dock","button")){k[c].div.childNodes[1].src=g.skin.getSkinElement("dock","button").src}k[c].div.childNodes[1].style.zIndex=9;k[c].div.childNodes[1].style.cursor="pointer";k[c].div.onmouseover=function(){if(k[c].overGraphic){k[c].div.childNodes[0].src=k[c].overGraphic}if(g.skin.getSkinElement("dock","buttonOver")){k[c].div.childNodes[1].src=g.skin.getSkinElement("dock","buttonOver").src}};k[c].div.onmouseout=function(){if(k[c].outGraphic){k[c].div.childNodes[0].src=k[c].outGraphic}if(g.skin.getSkinElement("dock","button")){k[c].div.childNodes[1].src=g.skin.getSkinElement("dock","button").src}};if(g.skin.getSkinElement("dock","button")){k[c].div.childNodes[1].src=g.skin.getSkinElement("dock","button").src}}if(k[c].outGraphic){k[c].div.childNodes[0].src=k[c].outGraphic}else{if(k[c].overGraphic){k[c].div.childNodes[0].src=k[c].overGraphic}}if(d){k[c].div.onclick=function(b){b.preventDefault();a(g.id).callback(c);if(k[c].overGraphic){k[c].div.childNodes[0].src=k[c].overGraphic}if(g.skin.getSkinElement("dock","button")){k[c].div.childNodes[1].src=g.skin.getSkinElement("dock","button").src}}}}}x(m,n)};var B=y(a.api.events.JWPLAYER_COMPONENT_SHOW);var C=y(a.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=x;var D=function(){c(v,{display:"block"});if(o){o=false;B()}};var E=function(){c(v,{display:"none"});if(!o){C();o=true}};this.hide=E;this.show=D;return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(c,d){var e=new a.events.eventdispatcher(d);a.utils.extend(this,e);this.sendEvent=function(d,g){if(!a.utils.exists(g)){g={}}a.utils.extend(g,{id:c,version:a.version,type:d});e.sendEvent(d,g)}}})(jwplayer);(function(a){var b={prefix:"",file:"",link:"",margin:8,out:.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(e,f){function v(b){if(b.newstate==a.api.events.state.BUFFERING){clearTimeout(h);t()}}function u(){k=false;if(i.hide.toString()=="true"){a.utils.fadeTo(j,0,.1,parseFloat(j.style.opacity))}}function t(){if(i.hide.toString()=="true"){j.style.display="block";j.style.opacity=0;a.utils.fadeTo(j,i.out,.1,parseFloat(j.style.opacity));h=setTimeout(function(){u()},i.timeout*1e3)}k=true}function s(){var a={textDecoration:"none",position:"absolute",cursor:"pointer"};a.display=i.hide.toString()=="true"&&!k?"none":"block";var b=i.position.toLowerCase().split("-");for(var c in b){a[b[c]]=i.margin}return a}function r(a){if(k){j.style.opacity=i.over}return}function q(a){if(i.link&&k){j.style.opacity=i.out}return}function p(a){if(typeof a!="undefined"){a.stopPropagation()}if(!k){return}g.jwPause();g.jwSetFullscreen(false);if(i.link){window.open(i.link,"_top")}return}function o(){if(i.link){j.onmouseover=r;j.onmouseout=q;j.onclick=p}else{this.mouseEnabled=false}}function n(){j=document.createElement("img");j.id=g.id+"_jwplayer_logo";j.style.display="none";j.onload=function(a){_css(j,s());q()};if(!i.file){return}if(i.file.indexOf("/")>=0){j.src=i.file}else{j.src=i.prefix+i.file}}function m(){if(b.prefix){var g=e.version.split(/\W/).splice(0,2).join("/");if(b.prefix.indexOf(g)<0){b.prefix+=g+"/"}}if(f.position==a.html5.view.positions.OVER){f.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(h){}i=a.utils.extend({},b,f)}function l(){m();g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,v);n();o()}var g=e;var h;var i;var j;var k=false;l();if(!i.file){return}this.resize=function(a,b){};this.getDisplayElement=function(){return j};return this}})(jwplayer);(function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING};var c=a.utils;var d=c.css;var e=c.isMobile();a.html5.mediavideo=function(d,i){function O(a){if(a.length>0&&c.isIOS()){if(c.extension(a[0].file)!="mp4"){var b=-1;for(var d=1;d<a.length;d++){if(c.extension(a[d].file)=="mp4"){b=d;break}}if(b>-1){var e=a.splice(b,1)[0];a.unshift(e)}}}}function N(b){if(c.exists(o.webkitDisplayingFullscreen)){if(m.fullscreen&&!o.webkitDisplayingFullscreen){l.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}}}function M(){if(p!=a.api.events.state.IDLE){_stop(false);l.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE)}}function L(){clearInterval(s);s=null}function K(){if(!c.exists(s)){s=setInterval(function(){D()},100)}}function J(){var b="";for(var c in r.levels){var d=r.levels[c];var e=n.ownerDocument.createElement("source");b+=a.utils.getAbsolutePath(d.file);if(c<r.levels.length-1){b+=", "}}return b}function I(b){if(p==a.api.events.state.IDLE){return}var d="There was an error: ";if(b.target.error&&b.target.tagName.toLowerCase()=="video"||b.target.parentNode.error&&b.target.parentNode.tagName.toLowerCase()=="video"){var e=!c.exists(b.target.error)?b.target.parentNode.error:b.target.error;switch(e.code){case e.MEDIA_ERR_ABORTED:d="You aborted the video playback: ";break;case e.MEDIA_ERR_NETWORK:d="A network error caused the video download to fail part-way: ";break;case e.MEDIA_ERR_DECODE:d="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case e.MEDIA_ERR_SRC_NOT_SUPPORTED:d="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:d="An unknown error occurred: ";break}}else{if(b.target.tagName.toLowerCase()=="source"){x--;if(x>0){return}d="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);d+=J();_error=true;l.sendEvent(a.api.events.JWPLAYER_ERROR,{message:d});return}function H(b){var c=Math.round(b.target.duration*10)/10;var d={height:b.target.videoHeight,width:b.target.videoWidth,duration:c};if((m.duration<c||isNaN(m.duration))&&b.target.duration!=Infinity){m.duration=c}l.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:d})}function G(a){if(b[a.type]){if(a.type=="ended"){M()}else{A(b[a.type])}}}function F(a){}function E(b){if(c.exists(b)&&c.exists(b.target)){if(!isNaN(b.target.duration)&&(isNaN(m.duration)||m.duration<1)){if(b.target.duration==Infinity){m.duration=0}else{m.duration=Math.round(b.target.duration*10)/10}}if(!q&&o.readyState>0){o.style.display="block";A(a.api.events.state.PLAYING)}if(p==a.api.events.state.PLAYING){if(!q&&o.readyState>0){q=true;try{if(o.currentTime<r.start){o.currentTime=r.start}}catch(d){}o.volume=m.volume/100;o.muted=m.mute}m.position=m.duration>0?Math.round(b.target.currentTime*10)/10:0;l.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:m.position,duration:m.duration});if(m.position>=m.duration&&(m.position>0||m.duration>0)){M()}}}D(b)}function D(b){var d;if(c.exists(b)&&b.lengthComputable&&b.total){d=b.loaded/b.total*100}else{if(c.exists(o.buffered)&&o.buffered.length>0){var e=o.buffered.length-1;if(e>=0){d=o.buffered.end(e)/o.duration*100}}}if(w===false&&p==a.api.events.state.BUFFERING){l.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL);w=true}if(!v){if(d==100){v=true}if(c.exists(d)&&d>m.buffer){m.buffer=Math.round(d);l.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(d)})}}}function C(b){var c=Math.round(o.volume*100);if(c!=m.volume){m.volume=c;l.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:m.volume})}if(o.muted!=m.mute){m.mute=o.muted;l.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:m.mute})}}function B(a){}function A(b){if(b==a.api.events.state.PAUSED&&p==a.api.events.state.IDLE){return}if(p!=b){var c=p;m.state=p=b;l.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}function z(){o=document.createElement("video");p=a.api.events.state.IDLE;for(var b in k){o.addEventListener(b,y(b,k[b]),true)}u=true;o.setAttribute("x-webkit-airplay","allow");if(n.parentNode){n.parentNode.replaceChild(o,n)}if(!o.id){o.id=n.id}o.volume=m.volume/100}function y(a,b){return function(a){if(u&&c.exists(a.target.parentNode)){b(a)}}}var k={abort:B,canplay:G,canplaythrough:G,durationchange:H,emptied:B,ended:G,error:I,loadeddata:H,loadedmetadata:H,loadstart:G,pause:G,play:B,playing:G,progress:D,ratechange:B,seeked:G,seeking:G,stalled:G,suspend:G,timeupdate:E,volumechange:C,waiting:G,canshowcurrentframe:B,dataunavailable:B,empty:B,load:F,loadedfirstframe:B,webkitfullscreenchange:N};var l=new a.html5.eventdispatcher;c.extend(this,l);var m=d,n=i,o,p,q,r,s,t=false,u=false,v,w,x;z();this.load=function(b,d){if(typeof d=="undefined"){d=true}if(!u){return}r=b;c.empty(o);x=0;if(b.levels&&b.levels.length>0){if(b.levels.length==1){o.src=b.levels[0].file}else{O(b.levels);if(o.src){o.removeAttribute("src")}for(var i=0;i<b.levels.length;i++){var j=o.ownerDocument.createElement("source");j.src=b.levels[i].file;o.appendChild(j);x++}}}else{o.src=b.file}if(e){if(b.image){o.poster=b.image}o.style.display="block";setTimeout(function(){o.setAttribute("controls","controls")},100)}v=w=q=false;m.buffer=0;if(!c.exists(b.start)){b.start=0}m.duration=b.duration;l.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);if(!e&&b.levels.length==1||!t){o.load()}t=false;if(d){A(a.api.events.state.BUFFERING);l.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(!u){return}if(p!=a.api.events.state.PLAYING){K();if(w){A(a.api.events.state.PLAYING)}else{A(a.api.events.state.BUFFERING)}o.play()}};this.pause=function(){if(!u){return}o.pause();A(a.api.events.state.PAUSED)};this.seek=function(a){if(!u){return}if(!(m.duration<=0||isNaN(m.duration))&&!(m.position<=0||isNaN(m.position))){o.currentTime=a;o.play()}};_stop=this.stop=function(b){if(!u){return}if(!c.exists(b)){b=true}L();if(b){o.style.display="none";w=false;var d=navigator.userAgent;if(d.match(/chrome/i)){o.src=undefined}else{if(d.match(/safari/i)||d.match(/firefox/i)){o.removeAttribute("src")}else{o.src=""}}o.removeAttribute("controls");o.removeAttribute("poster");c.empty(o);o.load();t=true;if(o.webkitSupportsFullscreen){try{o.webkitExitFullscreen()}catch(e){}}}A(a.api.events.state.IDLE)};this.fullscreen=function(a){if(a===true){this.resize("100%","100%")}else{this.resize(m.config.width,m.config.height)}};this.resize=function(a,b){};this.volume=function(a){if(!e){o.volume=a/100}};this.mute=function(a){if(!e){o.muted=a}};this.getDisplayElement=function(){return o};this.hasChrome=function(){return e};this.detachMedia=function(){u=false;return this.getDisplayElement()};this.attachMedia=function(){u=true}}})(jwplayer);(function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING};var c=a.utils.css;a.html5.mediayoutube=function(b,f){function o(a){var b=a.split(/\?|\#\!/);var c="";for(var d=0;d<b.length;d++){if(b[d].substr(0,2)=="v="){c=b[d].substr(2)}}if(c==""){if(a.indexOf("/v/")>=0){c=a.substr(a.indexOf("/v/")+3)}else{if(a.indexOf("youtu.be")>=0){c=a.substr(a.indexOf("youtu.be/")+9)}else{c=a}}}if(c.indexOf("?")>-1){c=c.substr(0,c.indexOf("?"))}if(c.indexOf("&")>-1){c=c.substr(0,c.indexOf("&"))}return c}function n(a){var b=a.levels[0].file;b=["http://www.youtube.com/v/",o(b),"&hl=en_US&fs=1&autoplay=1"].join("");k=document.createElement("object");k.id=i.id;k.style.position="absolute";var c={movie:b,allowfullscreen:"true",allowscriptaccess:"always"};for(var d in c){var e=document.createElement("param");e.name=d;e.value=c[d];k.appendChild(e)}l=document.createElement("embed");k.appendChild(l);var f={src:b,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:k.width,height:k.height};for(var g in f){l.setAttribute(g,f[g])}k.appendChild(l);k.style.zIndex=2147483e3;if(i!=k&&i.parentNode){i.parentNode.replaceChild(k,i)}i=k}function m(b){if(j!=b){var c=j;h.state=b;j=b;g.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}var g=new a.html5.eventdispatcher;a.utils.extend(this,g);var h=b;var i=document.getElementById(f.id);var j=a.api.events.state.IDLE;var k,l;this.getDisplayElement=this.detachMedia=function(){return i};this.attachMedia=function(){};this.play=function(){if(j==a.api.events.state.IDLE){g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL);m(a.api.events.state.PLAYING)}else{if(j==a.api.events.state.PAUSED){m(a.api.events.state.PLAYING)}}};this.pause=function(){m(a.api.events.state.PAUSED)};this.seek=function(a){};this.stop=function(b){if(!_utils.exists(b)){b=true}h.position=0;m(a.api.events.state.IDLE);if(b){c(i,{display:"none"})}};this.volume=function(b){h.volume=b;g.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})};this.mute=function(b){i.muted=b;h.mute=b;g.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})};this.resize=function(a,b){if(a*b>0&&k){k.width=l.width=a;k.height=l.height=b}};this.fullscreen=function(a){if(a===true){this.resize("100%","100%")}else{this.resize(h.config.width,h.config.height)}};this.load=function(b){n(b);c(k,{display:"block"});m(a.api.events.state.BUFFERING);g.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});g.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return j!=a.api.events.state.IDLE};this.embed=l;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){function forward(a){if(a.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(a.type,a)}function _getShuffleItem(){var a=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(a)){a=Math.floor(Math.random()*_model.playlist.length);if(a==_model.item){a=null}}}else{a=0}return a}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})}function _loadExternal(a){var b=new jwplayer.html5.playlistloader;b.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(a){_model.playlist=new jwplayer.html5.playlist(a);_loadComplete(true)});b.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(a){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});b.load(a)}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){}}}_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()}};var _mediaProviders={};_model.setActiveMediaProvider=function(a){if(a.provider=="audio"){a.provider="sound"}var b=a.provider;var c=_media?_media.getDisplayElement():null;if(b=="sound"||b=="http"||b==""){b="video"}if(!jwplayer.utils.exists(_mediaProviders[b])){switch(b){case"video":_media=new jwplayer.html5.mediavideo(_model,c?c:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,c?c:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[b]=_media}else{if(_media!=_mediaProviders[b]){if(_media){_media.stop()}_media=_mediaProviders[b]}}return true};_model.getMedia=function(){return _media};_model.seek=function(a){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:a});return _media.seek(a)};_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 a=0;a<_model.plugins.order.length;a++){try{var b=_model.plugins.order[a];if(jwplayer.utils.exists(jwplayer.html5[b])){if(b=="playlist"){_model.plugins.object[b]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[b])}else{_model.plugins.object[b]=new jwplayer.html5[b](_api,_model.plugins.config[b])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[b].addGlobalListener=="function"){_model.plugins.object[b].addGlobalListener(forward)}}catch(c){jwplayer.utils.log("Could not setup "+b)}}};return _model}})(jwplayer);(function(a){a.html5.playlist=function(c){var d=[];if(c.playlist&&c.playlist instanceof Array&&c.playlist.length>0){for(var e in c.playlist){if(!isNaN(parseInt(e))){d.push(new a.html5.playlistitem(c.playlist[e]))}}}else{d.push(new a.html5.playlistitem(c))}return d}})(jwplayer);(function(a){var b={size:180,position:a.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=a.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.playlistcomponent=function(g,h){function E(a){return i.skin.getSkinElement("playlist",a)}function D(){for(var a in r){r[a]=E(a)}}function C(){if(j.position==a.html5.view.positions.OVER){switch(i.jwGetState()){case a.api.events.state.IDLE:_show(k);break;default:_hide(k);break}}}function B(a){if(q>=0){v(q)();q=a.index}v(a.index)();z()}function A(){return j.thumbs.toString().toLowerCase()=="true"}function z(){p.scrollTop=i.jwGetPlaylistIndex()*j.itemheight}function y(a){return function(){i.jwPlaylistItem(a);i.jwPlay(true)}}function x(a){k.innerHTML="";n=i.jwGetPlaylist();if(!n){return}items=[];p=t();for(var b=0;b<n.length;b++){var c=w(b);c.onclick=y(b);p.appendChild(c);items.push(c)}q=i.jwGetPlaylistIndex();v(q)();k.appendChild(p);if(_utils.isIOS()&&window.iScroll){p.style.height=j.itemheight*n.length+"px";var d=new iScroll(k.id)}}function w(b){var c=n[b];var d=document.createElement("li");d.className="item";_css(d,{height:j.itemheight,display:"block",cursor:"pointer",backgroundImage:r.item?"url("+r.item.src+")":"",backgroundSize:"100% "+j.itemheight+"px"});d.onmouseover=u(b);d.onmouseout=v(b);var f=document.createElement("div");var g=new Image;var h=0;var i=0;var k=0;if(A()&&(c.image||c["playlist.image"]||r.itemImage)){g.className="image";if(r.itemImage){h=(j.itemheight-r.itemImage.height)/2;i=r.itemImage.width;k=r.itemImage.height}else{i=j.itemheight*4/3;k=j.itemheight}_css(f,{height:k,width:i,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:h+"px",position:"relative"});_css(g,{position:"relative"});f.appendChild(g);g.onload=function(){a.utils.stretch(a.utils.stretching.FILL,g,i,k,this.naturalWidth,this.naturalHeight)};if(c["playlist.image"]){g.src=c["playlist.image"]}else{if(c.image){g.src=c.image}else{if(r.itemImage){g.src=r.itemImage.src}}}d.appendChild(f)}var o=l-i-h*2;if(m<j.itemheight*n.length){o-=15}var p=document.createElement("div");_css(p,{position:"relative",height:"100%",overflow:"hidden"});var q=document.createElement("span");if(c.duration>0){q.className="duration";_css(q,{fontSize:(j.fontsize?j.fontsize:11)+"px",fontWeight:j.fontweight?j.fontweight:"bold",width:"40px",height:j.fontsize?j.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});q.innerHTML=_utils.timeFormat(c.duration);p.appendChild(q)}var s=document.createElement("span");s.className="title";_css(s,{padding:"5px 5px 0 "+(h?0:"5px"),height:j.fontsize?j.fontsize+10:20,lineHeight:j.fontsize?j.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:(c.duration>0?o-50:o)-10+"px",fontSize:(j.fontsize?j.fontsize:13)+"px",fontWeight:j.fontweight?j.fontweight:"bold"});s.innerHTML=c?c.title:"";p.appendChild(s);if(c.description){var t=document.createElement("span");t.className="description";_css(t,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:s.style.paddingLeft,paddingRight:s.style.paddingRight,lineHeight:(j.fontsize?j.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});t.innerHTML=c.description;p.appendChild(t)}d.appendChild(p);return d}function v(a){return function(){var b=p.getElementsByClassName("item")[a];var c=j.fontcolor;var d=r.item?"url("+r.item.src+")":"";if(a==i.jwGetPlaylistIndex()){if(j.activecolor!==""){c=j.activecolor}if(r.itemActive){d="url("+r.itemActive.src+")"}}_css(b,{color:c,backgroundImage:d})}}function u(a){return function(){var b=p.getElementsByClassName("item")[a];var c=j.fontcolor;var d=r.item?"url("+r.item.src+")":"";if(a==i.jwGetPlaylistIndex()){if(j.activecolor!==""){c=j.activecolor}if(r.itemActive){d="url("+r.itemActive.src+")"}}_css(b,{color:j.overcolor!==""?j.overcolor:c,backgroundImage:r.itemOver?"url("+r.itemOver.src+")":d})}}function t(){var a=document.createElement("ul");_css(a,{width:k.style.width,minWidth:k.style.width,height:k.style.height,backgroundColor:j.backgroundcolor,backgroundImage:r.background?"url("+r.background.src+")":"",color:j.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:c[j.font]?c[j.font]:c._sans,fontSize:(j.fontsize?j.fontsize:11)+"px",fontStyle:j.fontstyle,fontWeight:j.fontweight,overflowY:"auto"});return a}function s(){k=document.createElement("div");k.id=i.id+"_jwplayer_playlistcomponent";k.style.overflow="hidden";switch(j.position){case a.html5.view.positions.RIGHT:case a.html5.view.positions.LEFT:k.style.width=j.size+"px";break;case a.html5.view.positions.TOP:case a.html5.view.positions.BOTTOM:k.style.height=j.size+"px";break}D();if(r.item){j.itemheight=r.item.height}k.style.backgroundColor="#C6C6C6";i.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,x);i.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,B);i.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,C)}var i=g;var j=a.utils.extend({},b,i.skin.getComponentSettings("playlist"),h);if(j.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[j.position]=="undefined"){return}var k;var l;var m;var n;var o;var p;var q=-1;var r={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return k};this.resize=function(a,b){l=a;m=b;if(i.jwGetFullscreen()){_hide(k)}else{var c={display:"block",width:l,height:m};_css(k,c)}};this.show=function(){_show(k)};this.hide=function(){_hide(k)};s();return this}})(jwplayer);(function(a){function b(b){if(a.utils.isYouTube(b.file)){return"youtube"}else{var d=a.utils.extension(b.file);var e;if(d&&a.utils.extensionmap[d]){if(d=="m3u8"){return"video"}e=a.utils.extensionmap[d].html5}else{if(b.type){e=b.type}}if(e){var f=e.split("/")[0];if(f=="audio"){return"sound"}else{if(f=="video"){return f}}}}return""}a.html5.playlistitem=function(e){var f={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var g=a.utils.extend({},f,e);if(g.type){g.provider=g.type;delete g.type}if(g.levels.length===0){g.levels[0]=new a.html5.playlistitemlevel(g)}if(!g.provider){g.provider=b(g.levels[0])}else{g.provider=g.provider.toLowerCase()}return g}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(c){var d={file:"",streamer:"",bitrate:0,width:0};for(var e in d){if(a.utils.exists(c[e])){d[e]=c[e]}}return d}})(jwplayer);(function(a){a.html5.playlistloader=function(){function e(d){c.sendEvent(a.api.events.JWPLAYER_ERROR,{message:d?d:"Could not load playlist an unknown reason."})}function d(d){var g=[];try{var g=a.utils.parsers.rssparser.parse(d.responseXML.firstChild);c.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:g})})}catch(h){e("Could not parse the playlist")}}var c=new a.html5.eventdispatcher;a.utils.extend(this,c);this.load=function(c){a.utils.ajax(c,d,e)}}})(jwplayer);(function(a){a.html5.skin=function(){var c={};var d=false;this.load=function(e,f){new a.html5.skinloader(e,function(a){d=true;c=a;f()},function(){new a.html5.skinloader("",function(a){d=true;c=a;f()})})};this.getSkinElement=function(e,f){if(d){try{return c[e].elements[f]}catch(g){a.utils.log("No such skin component / element: ",[e,f])}}return null};this.getComponentSettings=function(a){if(d){return c[a].settings}return null};this.getComponentLayout=function(a){if(d){return c[a].layout}return null}}})(jwplayer);(function(a){a.html5.skinloader=function(c,d,e){function s(c,d,e){if(f[e]&&f[e].elements[d]){f[e].elements[d].height=c.height;f[e].elements[d].width=c.width;f[e].elements[d].src=c.src;f[e].elements[d].ready=true;o()}else{a.utils.log("Loaded an image for a missing element: "+e+"."+d)}}function r(){for(var a in f){if(a!="properties"){for(var b in f[a].elements){if(!f[a].elements[b].ready){return}}}}if(i===false){clearInterval(j);g(f)}}function q(){for(var a in f){var b=f[a];for(var c in b.elements){var d=b.elements[c];var e=d.image;e.onload=null;e.onerror=null;delete d.image;delete b.elements[c]}delete f[a]}}function p(c,d){var e=new Image;var g=c.getAttribute("name");var i=c.getAttribute("src");var j;if(i.indexOf("data:image/png;base64,")===0){j=i}else{var m=a.utils.getAbsolutePath(k);var n=m.substr(0,m.lastIndexOf("/"));j=[n,d,i].join("/")}f[d].elements[g]={height:0,width:0,src:"",ready:false,image:e};e.onload=function(a){s(e,g,d)};e.onerror=function(a){l=true;o();h()};e.src=j}function o(){clearInterval(j);if(!l){j=setInterval(function(){r()},100)}}function n(c){var d=c.getElementsByTagName("component");if(d.length===0){return}for(var e=0;e<d.length;e++){var g=d[e].getAttribute("name");var h={settings:{},elements:{},layout:{}};f[g]=h;var j=d[e].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var k=0;k<j.length;k++){p(j[k],g)}var l=d[e].getElementsByTagName("settings")[0];if(l&&l.childNodes.length>0){var m=l.getElementsByTagName("setting");for(var n=0;n<m.length;n++){var q=m[n].getAttribute("name");var r=m[n].getAttribute("value");var s=/color$/.test(q)?"color":null;f[g].settings[q]=a.utils.typechecker(r,s)}}var t=d[e].getElementsByTagName("layout")[0];if(t&&t.childNodes.length>0){var u=t.getElementsByTagName("group");for(var w=0;w<u.length;w++){var x=u[w];f[g].layout[x.getAttribute("position")]={elements:[]};for(var y=0;y<x.attributes.length;y++){var z=x.attributes[y];f[g].layout[x.getAttribute("position")][z.name]=z.value}var A=x.getElementsByTagName("*");for(var B=0;B<A.length;B++){var C=A[B];f[g].layout[x.getAttribute("position")].elements.push({type:C.tagName});for(var D=0;D<C.attributes.length;D++){var F=C.attributes[D];f[g].layout[x.getAttribute("position")].elements[B][F.name]=F.value}if(!a.utils.exists(f[g].layout[x.getAttribute("position")].elements[B].name)){f[g].layout[x.getAttribute("position")].elements[B].name=C.tagName}}}}i=false;o()}}function m(){if(typeof k!="string"||k===""){n(a.html5.defaultSkin().xml)}else{a.utils.ajax(a.utils.getAbsolutePath(k),function(c){try{if(a.utils.exists(c.responseXML)){n(c.responseXML);return}}catch(d){q()}n(a.html5.defaultSkin().xml)},function(c){n(a.html5.defaultSkin().xml)})}}var f={};var g=d;var h=e;var i=true;var j;var k=c;var l=false;m()}})(jwplayer);(function(a){a.html5.api=function(c,d){function n(c){g.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,n);g.setupPlugins();h.setup();var c={id:e.id,version:e.version};i.playerReady(c)}function m(){if(g.config.playlistfile){g.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,n);g.loadPlaylist(g.config.playlistfile)}else{if(typeof g.config.playlist=="string"){g.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,n);g.loadPlaylist(g.config.playlist)}else{g.loadPlaylist(g.config);setTimeout(n,25)}}}function l(a,b,c){return function(){var d=g.plugins.object[a];if(d&&d[b]&&typeof d[b]=="function"){d[b].apply(d,c)}}}function k(a){return function(){return g[a]}}function j(){if(g.state==a.api.events.state.PLAYING||g.state==a.api.events.state.BUFFERING){i.pause()}else{i.play()}}var e={};var f=document.createElement("div");c.parentNode.replaceChild(f,c);f.id=c.id;e.version=a.version;e.id=f.id;var g=new a.html5.model(e,f,d);var h=new a.html5.view(e,f,g);var i=new a.html5.controller(e,f,g,h);e.skin=new a.html5.skin;e.jwPlay=function(a){if(typeof a=="undefined"){j()}else{if(a.toString().toLowerCase()=="true"){i.play()}else{i.pause()}}};e.jwPause=function(a){if(typeof a=="undefined"){j()}else{if(a.toString().toLowerCase()=="true"){i.pause()}else{i.play()}}};e.jwStop=i.stop;e.jwSeek=i.seek;e.jwPlaylistItem=i.item;e.jwPlaylistNext=i.next;e.jwPlaylistPrev=i.prev;e.jwResize=i.resize;e.jwLoad=i.load;e.jwDetachMedia=i.detachMedia;e.jwAttachMedia=i.attachMedia;e.jwGetItem=k("item");e.jwGetPosition=k("position");e.jwGetDuration=k("duration");e.jwGetBuffer=k("buffer");e.jwGetWidth=k("width");e.jwGetHeight=k("height");e.jwGetFullscreen=k("fullscreen");e.jwSetFullscreen=i.setFullscreen;e.jwGetVolume=k("volume");e.jwSetVolume=i.setVolume;e.jwGetMute=k("mute");e.jwSetMute=i.setMute;e.jwGetStretching=function(){return g.stretching.toUpperCase()};e.jwGetState=k("state");e.jwGetVersion=function(){return e.version};e.jwGetPlaylist=function(){return g.playlist};e.jwGetPlaylistIndex=e.jwGetItem;e.jwAddEventListener=i.addEventListener;e.jwRemoveEventListener=i.removeEventListener;e.jwSendEvent=i.sendEvent;e.jwDockSetButton=function(a,b,c,d){if(g.plugins.object.dock&&g.plugins.object.dock.setButton){g.plugins.object.dock.setButton(a,b,c,d)}};e.jwControlbarShow=l("controlbar","show");e.jwControlbarHide=l("controlbar","hide");e.jwDockShow=l("dock","show");e.jwDockHide=l("dock","hide");e.jwDisplayShow=l("display","show");e.jwDisplayHide=l("display","hide");e.jwGetLevel=function(){};e.jwGetBandwidth=function(){};e.jwGetLockState=function(){};e.jwLock=function(){};e.jwUnlock=function(){};if(g.config.chromeless&&!a.utils.isIOS()){m()}else{e.skin.load(g.config.skin,m)}return e}})(jwplayer)}
