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