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