var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b)}};var $jw=jwplayer;jwplayer.version="5.5.1641";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array"}}else{b="null"}}return b};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a<f.length;a++){for(var b in f[a]){f[0][b]=f[a][b]}}return f[0]}return null};c.utils.clone=function(a){var h;var g=c.utils.clone["arguments"];if(g.length==1){switch(c.utils.typeOf(g[0])){case"object":h={};for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;case"array":h=[];for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;default:return g[0];break}}return h};c.utils.extension=function(a){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};c.utils.html=function(b,a){b.innerHTML=a};c.utils.wrap=function(b,a){b.parentNode.replaceChild(a,b);a.appendChild(b)};c.utils.ajax=function(a,b,h){var g;if(window.XMLHttpRequest){g=new XMLHttpRequest()}else{g=new ActiveXObject("Microsoft.XMLHTTP")}g.onreadystatechange=function(){if(g.readyState===4){if(g.status===200){if(b){b(g)}}else{if(h){h(a)}}}};g.open("GET",a,true);g.send(null);return g};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a()}}else{if(f){f()}}}}};c.utils.find=function(a,b){return a.getElementsByTagName(b)};c.utils.append=function(b,a){b.appendChild(a)};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};c.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/android 2.[012]/i)!==null)};c.utils.isIOS=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/iP(hone|ad)/i)!==null)};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0]}else{a=f}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;if(b.file&&b.file.toLowerCase().indexOf("youtube.com")>-1){b.provider="youtube"}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp"}if(a.type){b.provider=a.type.toLowerCase()}else{if(a.provider){b.provider=a.provider.toLowerCase()}}return b};c.utils.getOuterHTML=function(j){if(j.outerHTML){return j.outerHTML}else{var h=j.parentNode;var k=document.createElement(h.tagName);var a=document.createElement(j.tagName);h.replaceChild(a,j);k.appendChild(j);var b=k.innerHTML;h.replaceChild(j,a);return b}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h}else{var a=document.createElement("div");a.innerHTML=h;var k=document.createRange();k.selectNodeContents(a);var j=k.extractContents();b.parentNode.insertBefore(j,b);b.parentNode.removeChild(b)}};c.utils.hasFlash=function(){return(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")||(typeof window.ActiveXObject!="undefined")};c.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};c.utils.getAbsolutePath=function(b,l){if(l===undefined){l=document.location.href}if(b===undefined){return undefined}if(d(b)){return b}var a=l.substring(0,l.indexOf("://")+3);var m=l.substring(a.length,l.indexOf("/",a.length+1));var p;if(b.indexOf("/")===0){p=b.split("/")}else{var o=l.split("?")[0];o=o.substring(a.length+m.length+1,o.lastIndexOf("/"));p=o.split("/").concat(b.split("/"))}var q=[];for(var n=0;n<p.length;n++){if(!p[n]||p[n]===undefined||p[n]=="."){continue}else{if(p[n]==".."){q.pop()}else{q.push(p[n])}}}return a+m+"/"+q.join("/")};function d(b){if(b===null){return}var a=b.indexOf("://");var f=b.indexOf("?");return(a>0&&(f<0||(f>a)))}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN}return c.utils.pluginPathType.RELATIVE};c.utils.mapEmpty=function(b){for(var a in b){return false}return true};c.utils.mapLength=function(b){var f=0;for(var a in b){f++}return f};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};c.utils.css=function(j,a,k){if(j!==undefined){for(var h in a){try{if(typeof a[h]==="undefined"){continue}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6)}else{a[h]=Math.ceil(a[h])+"px"}}}j.style[h]=a[h]}catch(b){}}}};c.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1};c.utils.getYouTubeId=function(a){a.indexOf("youtube.com">0)};c.utils.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a};c.utils.stretch=function(q,a,b,s,n,r){if(typeof b=="undefined"||typeof s=="undefined"||typeof n=="undefined"||typeof r=="undefined"){return}var u=b/n;var t=s/r;var o=0;var p=0;a.style.overflow="hidden";c.utils.transform(a,"");var v={};switch(q.toUpperCase()){case c.utils.stretching.NONE:v.width=n;v.height=r;break;case c.utils.stretching.UNIFORM:if(u>t){v.width=n*t;v.height=r*t}else{v.width=n*u;v.height=r*u}break;case c.utils.stretching.FILL:if(u>t){v.width=n*u;v.height=r*u}else{v.width=n*t;v.height=r*t}break;case c.utils.stretching.EXACTFIT:c.utils.transform(a,["scale(",u,",",t,")"," translate(0px,0px)"].join(""));v.width=n;v.height=r;break;default:break}v.top=(s-v.height)/2;v.left=(b-v.width)/2;c.utils.css(a,v)};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"}})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE="COMPLETE";b.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(_listeners[type]===undefined){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][lisenterIndex].toString()==listener.toString()){_listeners[type].slice(lisenterIndex,lisenterIndex+1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].toString()==listener.toString()){_globallisteners.slice(globalListenerIndex,globalListenerIndex+1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(data===undefined){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""))};d.utils.cancelAnimation=function(a){delete c[a.id]};d.utils.fadeTo=function(a,q,r,n,o,s){if(c[a.id]!=s&&s!==undefined){return}var t=new Date().getTime();if(s>t){setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s)},s-t)}a.style.display="block";if(n===undefined){n=a.style.opacity===""?1:a.style.opacity}if(a.style.opacity==q&&a.style.opacity!==""&&s!==undefined){if(q===0){a.style.display="none"}return}if(s===undefined){s=t;c[a.id]=s}if(o===undefined){o=0}var m=(t-s)/(r*1000);m=m>1?1:m;var b=q-n;var p=n+(m*b);if(p>1){p=1}else{if(p<0){p=0}}a.style.opacity=p;if(o>0){c[a.id]=s+o*1000;d.utils.fadeTo(a,q,r,n,0,c[a.id]);return}setTimeout(function(){d.utils.fadeTo(a,q,r,n,0,s)},10)}})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a<f.length;a++){if(f[a]==e){return a}}return -1};b.utils.arrays.remove=function(f,e){var a=b.utils.arrays.indexOf(f,e);if(a>-1){f.splice(a,1)}}})(jwplayer);(function(b){b.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"},f4p:{html5:"video/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"},mkv:{html5:"video/x-matroska"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},sdp:{html5:"application/sdp",flash:"video"},vp6:{html5:"video/x-vp6"},aac:{html5:"audio/aac",flash:"video"},mp3:{flash:"sound"},ogg:{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"}}})(jwplayer);(function(o){o.utils.mediaparser=function(){};var m={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 n={};o.utils.mediaparser.parseMedia=function(a){return p(a)};function q(a,b){if(b===undefined){b=m[a]}else{o.utils.extend(b,m[a])}return b}function p(a,e){if(n[a.tagName.toLowerCase()]&&(e===undefined)){return n[a.tagName.toLowerCase()](a)}else{e=q("element",e);var f={};for(var d in e){if(d!="length"){var b=a.getAttribute(d);if(!(b===""||b===undefined||b===null)){f[e[d]]=a.getAttribute(d)}}}var c=a.style["#background-color"];if(c&&!(c=="transparent"||c=="rgba(0, 0, 0, 0)")){f.screencolor=c}return f}}function l(f,c){c=q("media",c);var b=[];var d=o.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(k(d[a]))}}var e=p(f,c);if(e.file!==undefined){b[0]={file:e.file}}e.levels=b;return e}function k(a,b){b=q("source",b);var c=p(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function j(a,b){b=q("video",b);var c=l(a,b);return c}n.media=l;n.audio=l;n.source=k;n.video=j})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR)};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f}};this.getStatus=function(){return e}}})(jwplayer);(function(b){b.utils.selectors=function(a,e){if(e===undefined){e=document}a=b.utils.strings.trim(a);var f=a.charAt(0);if(f=="#"){return e.getElementById(a.substr(1))}else{if(f=="."){if(e.getElementsByClassName){return e.getElementsByClassName(a.substr(1))}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1))}}else{if(a.indexOf(".")>0){selectors=a.split(".");return b.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])}else{return e.getElementsByTagName(a)}}}return null};b.utils.selectors.getElementsByTagAndClass=function(m,j,k){elements=[];if(k===undefined){k=document}var l=k.getElementsByTagName(m);for(var n=0;n<l.length;n++){if(l[n].className!==undefined){var o=l[n].className.split(" ");for(var a=0;a<o.length;a++){if(o[a]==j){elements.push(l[n])}}}}return elements}})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};b.utils.strings.pad=function(f,e,a){if(!a){a="0"}while(f.length<e){f=a+f}return f};b.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)}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1))}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600}}else{f=Number(e)}}}}return f};b.utils.strings.xmlAttribute=function(a,f){for(var e in a.attributes){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString()}}return""}})(jwplayer);(function(k){var j=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);k.utils.typechecker=function(a,b){b=b===null?f(a):b;return h(a,b)};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(j.test(b)){return"color"}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer"}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float"}}}}return"string"}function h(a,b){if(b===null){return a}switch(b){case"color":if(a.length>0){return g(a)}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true}else{if(a=="1"){return true}}return false}return a}function g(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)}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a]};e.plugins.registerPlugin=function(a,c,h){if(f[a]){f[a].registerPlugin(a,c,h)}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed()}}}})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f)}return a[e]}}})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(t){var r="http://plugins.longtailvideo.com";var m=b.utils.loaderstatus.NEW;var l;var n;var a;var s=new b.events.eventdispatcher();b.utils.extend(this,s);function q(){switch(b.utils.getPluginPathType(t)){case b.utils.pluginPathType.ABSOLUTE:return t;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(t,window.location.href);case b.utils.pluginPathType.CDN:var c=b.utils.getPluginName(t);return r+"/"+b.version.split(".")[0]+"/"+c+"/"+c+".js"}}function o(c){a=setTimeout(function(){m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE)},1000)}function p(c){m=b.utils.loaderstatus.ERROR;s.sendEvent(b.events.ERROR)}this.load=function(){if(m==b.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){l=t;m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE);return}m=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(q());c.addEventListener(b.events.COMPLETE,o);c.addEventListener(b.events.ERROR,p);c.load()}};this.registerPlugin=function(e,c,d){if(a){clearTimeout(a);a=undefined}if(c&&d){l=d;n=c}else{if(typeof c=="string"){l=c}else{if(typeof c=="function"){n=c}else{if(!c&&!d){l=e}}}}m=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return m};this.getPluginName=function(){return b.utils.getPluginName(t)};this.getFlashPath=function(){if(l){switch(b.utils.getPluginPathType(l)){case b.utils.pluginPathType.ABSOLUTE:return l;case b.utils.pluginPathType.RELATIVE:if(t.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(l,window.location.href)}return b.utils.getAbsolutePath(l,q());case b.utils.pluginPathType.CDN:if(l.indexOf("-")>-1){return l+"h"}return l+"-h"}}return null};this.getJS=function(){return n};this.getPluginmode=function(){if(typeof l!="undefined"&&typeof n!="undefined"){return b.plugins.pluginmodes.HYBRID}else{if(typeof l!="undefined"){return b.plugins.pluginmodes.FLASH}else{if(typeof n!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(c,d,e){return new n(c,d,e)};this.getURL=function(){return t}}})(jwplayer);(function(b){b.plugins.pluginloader=function(l,o){var m={};var a=b.utils.loaderstatus.NEW;var p=false;var r=false;var q=new b.events.eventdispatcher();b.utils.extend(this,q);function n(){if(!r){r=true;a=b.utils.loaderstatus.COMPLETE;q.sendEvent(b.events.COMPLETE)}}function k(){if(!r){var c=0;for(plugin in m){if(m[plugin].getStatus()==b.utils.loaderstatus.LOADING){c++}}if(c==0){n()}}}this.setupPlugins=function(c,e,f){var d={length:0,plugins:{}};var j={length:0,plugins:{}};for(var s in m){var h=m[s].getPluginName();if(m[s].getFlashPath()){d.plugins[m[s].getFlashPath()]=e.plugins[s];d.plugins[m[s].getFlashPath()].pluginmode=m[s].getPluginmode();d.length++}if(m[s].getJS()){var g=document.createElement("div");g.id=c.id+"_"+h;g.style.position="absolute";g.style.zIndex=j.length+10;j.plugins[h]=m[s].getNewInstance(c,e.plugins[s],g);j.length++;if(typeof j.plugins[h].resize!="undefined"){c.onReady(f(j.plugins[h],g,true));c.onResize(f(j.plugins[h],g))}}}c.plugins=j.plugins;return d};this.load=function(){a=b.utils.loaderstatus.LOADING;p=true;for(var c in o){m[c]=l.addPlugin(c);m[c].addEventListener(b.events.COMPLETE,k);m[c].addEventListener(b.events.ERROR,k);m[c].load()}p=false;k()};this.pluginFailed=function(){n()};this.getStatus=function(){return a}}})(jwplayer);(function(c){var d=[];c.api=function(C){this.container=C;this.id=C.id;var u={};var a={};var D=[];var y=undefined;var v=false;var x=[];var r=c.utils.getOuterHTML(C);var b={};var t=0;var w={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function B(e){return function(f,k,j,h){var g;if(k){w[f]=k;g="jwplayer('"+e+"').callback('"+f+"')"}else{if(!k&&w[f]){delete w[f]}}y.jwDockSetButton(f,g,j,h)}}this.getPlugin=function(e){var f=this.callInternal;if(e=="dock"){return{setButton:B(this.id)}}return this.plugins[e]};this.callback=function(e){if(w[e]){return w[e]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");for(var f=0;f<e.length;f++){if(e[f].index===undefined){e[f].index=f}}return e};this.getPlaylistItem=function(e){if(e===undefined){e=this.getCurrentItem()}return this.getPlaylist()[e]};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(e){if(e===undefined){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",e)}return this};this.setMute=function(e){if(e===undefined){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",e)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(e){this.callInternal("jwLoad",e);return this};this.playlistItem=function(e){this.callInternal("jwPlaylistItem",e);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(e,f){if(this.renderingMode=="html5"){y.jwResize(e,f)}else{this.container.width=e;this.container.height=f}return this};this.play=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",e)}return this};this.pause=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",e)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(e){this.callInternal("jwSeek",e);return this};this.setVolume=function(e){this.callInternal("jwSetVolume",e);return this};this.onBufferChange=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,e)};this.onBufferFull=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,e)};this.onError=function(e){return this.eventListener(c.api.events.JWPLAYER_ERROR,e)};this.onFullscreen=function(e){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,e)};this.onMeta=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,e)};this.onMute=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,e)};this.onPlaylist=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,e)};this.onPlaylistItem=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,e)};this.onReady=function(e){return this.eventListener(c.api.events.API_READY,e)};this.onResize=function(e){return this.eventListener(c.api.events.JWPLAYER_RESIZE,e)};this.onComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,e)};this.onTime=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,e)};this.onVolume=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,e)};this.onBuffer=function(e){return this.stateListener(c.api.events.state.BUFFERING,e)};this.onPause=function(e){return this.stateListener(c.api.events.state.PAUSED,e)};this.onPlay=function(e){return this.stateListener(c.api.events.state.PLAYING,e)};this.onIdle=function(e){return this.stateListener(c.api.events.state.IDLE,e)};this.remove=function(){u={};x=[];if(c.utils.getOuterHTML(this.container)!=r){c.api.destroyPlayer(this.id,r)}};this.setup=function(f){if(c.embed){var g=this.id;this.remove();var e=c(g);e.config=f;return new c.embed(e)}return this};this.registerPlugin=function(e,f,g){c.plugins.registerPlugin(e,f,g)};this.setPlayer=function(f,e){y=f;this.renderingMode=e};this.stateListener=function(f,e){if(!a[f]){a[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,z(f))}a[f].push(e);return this};function z(e){return function(j){var k=j.newstate,g=j.oldstate;if(k==e){var h=a[k];if(h){for(var f=0;f<h.length;f++){if(typeof h[f]=="function"){h[f].call(this,{oldstate:g,newstate:k})}}}}}}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }')};this.eventListener=function(f,e){if(!u[f]){u[f]=[];if(y&&v){this.addInternalListener(y,f)}}u[f].push(e);return this};this.dispatchEvent=function(e){if(u[e]){var f=A(e,arguments[1]);for(var g=0;g<u[e].length;g++){if(typeof u[e][g]=="function"){u[e][g].call(this,f)}}}};function A(g,j){var e=c.utils.extend({},j);if(g==c.api.events.JWPLAYER_FULLSCREEN&&!e.fullscreen){e.fullscreen=e.message=="true"?true:false;delete e.message}else{if(typeof e.data=="object"){e=c.utils.extend(e,e.data);delete e.data}}var h=["position","duration","offset"];for(var f in h){if(e[h[f]]){e[h[f]]=Math.round(e[h[f]]*1000)/1000}}return e}this.callInternal=function(e,f){if(v){if(typeof y!="undefined"&&typeof y[e]=="function"){if(f!==undefined){return(y[e])(f)}else{return(y[e])()}}return null}else{x.push({method:e,parameters:f})}};this.playerReady=function(e){v=true;if(!y){this.setPlayer(document.getElementById(e.id))}this.container=document.getElementById(this.id);for(var g in u){this.addInternalListener(y,g)}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(h){if(h.index!==undefined){t=h.index}b={}});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(h){c.utils.extend(b,h.metadata)});this.dispatchEvent(c.api.events.API_READY);while(x.length>0){var f=x.shift();this.callInternal(f.method,f.parameters)}};this.getItemMeta=function(){return b};this.getCurrentItem=function(){return t};function s(g,e,f){var j=[];if(!e){e=0}if(!f){f=g.length-1}for(var h=e;h<=f;h++){j.push(g[h])}return j}return this};c.api.selectPlayer=function(b){var f;if(b===undefined){b=0}if(b.nodeType){f=b}else{if(typeof b=="string"){f=document.getElementById(b)}}if(f){var a=c.api.playerById(f.id);if(a){return a}else{return c.api.addPlayer(new c.api(f))}}else{if(typeof b=="number"){return c.getPlayers()[b]}}return null};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",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"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b<d.length;b++){if(d[b].id==a){return d[b]}}return null};c.api.addPlayer=function(b){for(var a=0;a<d.length;a++){if(d[a]==b){return b}}d.push(b);return b};c.api.destroyPlayer=function(j,m){var k=-1;for(var a=0;a<d.length;a++){if(d[a].id==j){k=a;continue}}if(k>=0){var n=document.getElementById(d[k].id);if(document.getElementById(d[k].id+"_wrapper")){n=document.getElementById(d[k].id+"_wrapper")}if(n){if(m){c.utils.setOuterHTML(n,m)}else{var b=document.createElement("div");var l=n.id;if(n.id.indexOf("_wrapper")==n.id.length-8){newID=n.id.substring(0,n.id.length-8)}b.setAttribute("id",l);n.parentNode.replaceChild(b,n)}}d.splice(k,1)}return null};c.getPlayers=function(){return d.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c)}if(_userPlayerReady){_userPlayerReady.call(this,c)}};(function(d){d.embed=function(j){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var k=d.utils.mediaparser.parseMedia(j.container);var l=new d.embed.config(d.utils.extend(a,k,j.config),this);var b=d.plugins.loadPlugins(j.id,l.plugins);function n(e,f){for(var g in f){if(typeof e[g]=="function"){(e[g]).call(e,f[g])}}}function m(){if(b.getStatus()==d.utils.loaderstatus.COMPLETE){for(var e=0;e<l.modes.length;e++){if(l.modes[e].type&&d.embed[l.modes[e].type]){var g=l;if(l.modes[e].config){g=d.utils.extend(d.utils.clone(l),l.modes[e].config)}var f=new d.embed[l.modes[e].type](document.getElementById(j.id),l.modes[e],g,b,j);if(f.supportsConfig()){f.embed();n(j,l.events);return j}}}d.utils.log("No suitable players found");new d.embed.logo(d.utils.extend({hide:true},l.components.logo),"none",j.id)}}b.addEventListener(d.events.COMPLETE,m);b.addEventListener(d.events.ERROR,m);b.load();return j};function c(){if(!document.body){return setTimeout(c,15)}var f=d.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<f.length;b++){var a=f[b];d(a.id).setup({})}}c()})(jwplayer);(function(f){function e(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function g(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 h(a){var b=false;b=(a instanceof Array)||(typeof a=="object"&&!a.position&&!a.size);return b}f.embed.config=function(A,c){var d=f.utils.extend({},A);var t;if(h(d.playlist)){t=d.playlist;delete d.playlist}for(var x in d){if(x.indexOf(".")>-1){var b=x.split(".");var a=d;for(var B=0;B<b.length;B++){if(B==b.length-1){if(f.utils.typeOf(a)=="object"){a[b[B]]=d[x];delete d[x]}}else{if(a[b[B]]===undefined){a[b[B]]={}}a=a[b[B]]}}}}if(typeof d.plugins=="string"){var z=d.plugins.split(",");if(typeof d.plugins!="object"){d.plugins={}}for(var v=0;v<z.length;v++){var u=f.utils.getPluginName(z[v]);if(typeof d[u]=="object"){d.plugins[z[v]]=d[u];delete d[u]}else{d.plugins[z[v]]={}}}}var w=["playlist","dock","controlbar"];for(var s=0;s<w.length;s++){if(typeof d[w[s]]=="string"){if(!d.components[w[s]]){d.components[w[s]]={}}d.components[w[s]].position=d[w[s]];delete d[w[s]]}else{if(d[w[s]]){d.components[w[s]]=d[w[s]];delete d[w[s]]}}if(typeof d[w[s]+"size"]!="undefined"){if(!d.components[w[s]]){d.components[w[s]]={}}d.components[w[s]].size=d[w[s]+"size"];delete d[w[s]+"size"]}}if(typeof d.icons!="undefined"){if(!d.components.display){d.components.display={}}d.components.display.icons=d.icons;delete d.icons}if(d.players){d.modes=d.players;delete d.players}var y;if(d.flashplayer&&!d.modes){y=e();y[0].src=d.flashplayer;delete d.flashplayer}else{if(d.modes){if(typeof d.modes=="string"){y=e();y[0].src=d.modes}else{if(d.modes instanceof Array){y=d.modes}else{if(typeof d.modes=="object"&&d.modes.type){y=[d.modes]}}}delete d.modes}else{y=e()}}d.modes=y;if(t){d.playlist=t}return d}})(jwplayer);(function(b){b.embed.download=function(m,h,a,l,j){this.embed=function(){var x=b.utils.extend({},a);var e={};var y=a.width?a.width:480;if(typeof y!="number"){y=parseInt(y,10)}var v=a.height?a.height:320;if(typeof v!="number"){v=parseInt(v,10)}var A,g,u;var c={};if(a.playlist&&a.playlist.length){c.file=a.playlist[0].file;g=a.playlist[0].image;c.levels=a.playlist[0].levels}else{c.file=a.file;g=a.image;c.levels=a.levels}if(c.file){A=c.file}else{if(c.levels&&c.levels.length){A=c.levels[0].file}}u=A?"pointer":"auto";var w={display:{style:{cursor:u,width:y,height:v,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:u,position:"absolute",display:A?"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:u,position:"absolute",display:A?"block":"none",top:((v-50)/2),left:((y-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:y,height:v,display:g?"block":"none",position:"absolute",cursor:u,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var z=function(q,o,n){var p=document.createElement(q);if(n){p.id=n}else{p.id=m.id+"_jwplayer_"+o}b.utils.css(p,w[o].style);return p};e.display=z("a","display",m.id);if(A){e.display.setAttribute("href",b.utils.getAbsolutePath(A))}e.display_image=z("img","display_image");e.display_image.setAttribute("alt","Click to download...");if(g){e.display_image.setAttribute("src",b.utils.getAbsolutePath(g))}if(true){e.display_icon=z("div","display_icon");e.display_iconBackground=z("div","display_iconBackground");e.display.appendChild(e.display_image);e.display_iconBackground.appendChild(e.display_icon);e.display.appendChild(e.display_iconBackground)}_css=b.utils.css;_hide=function(n){_css(n,{display:"none"})};function d(n){_imageWidth=e.display_image.naturalWidth;_imageHeight=e.display_image.naturalHeight;B()}function B(){b.utils.stretch(b.utils.stretching.UNIFORM,e.display_image,y,v,_imageWidth,_imageHeight)}e.display_image.onerror=function(n){_hide(e.display_image)};e.display_image.onload=d;m.parentNode.replaceChild(e.display,m);var f=(a.plugins&&a.plugins.logo)?a.plugins.logo:{};e.display.appendChild(new b.embed.logo(a.components.logo,"download",m.id));j.container=document.getElementById(j.id);j.setPlayer(e.display,"download")};this.supportsConfig=function(){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return k(c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&k(c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}};function k(f,d,g){if(g){return false}var e=["image","sound","youtube","http"];if(d&&(e.toString().indexOf(d)>-1)){return true}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true}}return false}}})(jwplayer);(function(b){b.embed.flash=function(s,r,n,t,p){function a(e,f,d){var c=document.createElement("param");c.setAttribute("name",f);c.setAttribute("value",d);e.appendChild(c)}function o(d,c,e){return function(h){if(e){document.getElementById(p.id+"_wrapper").appendChild(c)}var f=document.getElementById(p.id).getPluginConfig("display");d.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(c,g)}}function u(e){if(!e){return{}}var c={};for(var f in e){var g=e[f];for(var d in g){c[f+"."+d]=g[d]}}return c}function q(e,f){if(e[f]){var c=e[f];for(var g in c){var h=c[g];if(typeof h=="string"){if(!e[g]){e[g]=h}}else{for(var d in h){if(!e[g+"."+d]){e[g+"."+d]=h[d]}}}}delete e[f]}}function w(f){if(!f){return{}}var c={},d=[];for(var j in f){var g=b.utils.getPluginName(j);var h=f[j];d.push(j);for(var e in h){c[g+"."+e]=h[e]}}c.plugins=d.join(",");return c}function v(c){var e=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var d in c){e+=d+"="+encodeURIComponent(c[d])+"&"}return e.substring(0,e.length-1)}function x(c){return function(d){if(c.playlist){this.load(c.playlist)}else{if(c.levels){var e=this.getPlaylistItem(0);if(!e){e=c}if(!e.image){e.image=c.image}if(!e.levels){e.levels=c.levels}this.load(e)}}}}this.embed=function(){if(n.levels||n.playlist){p.onReady(x(n))}n.id=p.id;var h;if(s.id+"_wrapper"==s.parentNode.id){h=document.getElementById(s.id+"_wrapper")}else{h=document.createElement("div");h.id=s.id+"_wrapper";b.utils.wrap(s,h);h.style.position="relative"}var d=b.utils.extend({},n);var f=t.setupPlugins(p,d,o);if(f.length>0){b.utils.extend(d,w(f.plugins))}else{delete d.plugins}var g=d.width;var k=d.height;var c=["height","width","levels","playlist","modes","events"];for(var m=0;m<c.length;m++){delete d[c[m]]}var e="opaque";if(d.wmode){e=d.wmode}q(d,"components");q(d,"providers");var j="#000000";var z;if(b.utils.isIE()){var l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+j+'" width="'+g+'" height="'+k+'" id="'+s.id+'" name="'+s.id+'">';l+='<param name="movie" value="'+r.src+'">';l+='<param name="allowfullscreen" value="true">';l+='<param name="allowscriptaccess" value="always">';l+='<param name="seamlesstabbing" value="true">';l+='<param name="wmode" value="'+e+'">';l+='<param name="flashvars" value="'+v(d)+'">';l+="</object>";b.utils.setOuterHTML(s,l);z=document.getElementById(s.id)}else{var A=document.createElement("object");A.setAttribute("type","application/x-shockwave-flash");A.setAttribute("data",r.src);A.setAttribute("width",g);A.setAttribute("height",k);A.setAttribute("bgcolor","#000000");A.setAttribute("id",s.id);A.setAttribute("name",s.id);a(A,"allowfullscreen","true");a(A,"allowscriptaccess","always");a(A,"seamlesstabbing","true");a(A,"wmode",e);a(A,"flashvars",v(d));s.parentNode.replaceChild(A,s);z=A}p.container=z;p.setPlayer(z,"flash")};this.supportsConfig=function(){if(b.utils.hasFlash()){if(n){var c=b.utils.getFirstPlaylistItemFromConfig(n);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return flashCanPlay(c.file,c.provider)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&flashCanPlay(c.levels[d].file,c.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(f,d){var e=["video","http","sound","image"];if(d&&(e.toString().indexOf(d<0))){return true}var c=b.utils.extension(f);if(!c){return true}if(b.utils.extensionmap[c]!==undefined&&b.utils.extensionmap[c].flash===undefined){return false}return true}}})(jwplayer);(function(b){b.embed.html5=function(m,h,a,l,j){function k(d,c,e){return function(n){var g=document.getElementById(m.id+"_displayarea");if(e){g.appendChild(c)}var f=g.style;d.resize(parseInt(f.width.replace("px","")),parseInt(f.height.replace("px","")));c.left=f.left;c.top=f.top}}this.embed=function(){if(b.html5){l.setupPlugins(j,a,k);m.innerHTML="";var e=b.utils.extend({screencolor:"0x000000"},a);var f=["plugins","modes","events"];for(var d=0;d<f.length;d++){delete e[f[d]]}if(e.levels&&!e.sources){e.sources=a.levels}if(e.skin&&e.skin.toLowerCase().indexOf(".zip")>0){e.skin=e.skin.replace(/\.zip/i,".xml")}var c=new (b.html5(m)).setup(e);j.container=document.getElementById(j.id);j.setPlayer(c,"html5")}else{return null}};this.supportsConfig=function(){var e=document.createElement("video");if(!!e.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return html5CanPlay(e,c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(e,c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(e,f,d,g){if(g){return false}if(d&&d=="youtube"){return true}if(d&&d!="video"&&d!="http"){return false}var c=b.utils.extension(f);if(!c||b.utils.extensionmap[c]===undefined){return true}if(b.utils.extensionmap[c].html5===undefined){return false}if(b.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)){return true}return browserCanPlay(e,b.utils.extensionmap[c].html5)};browserCanPlay=function(c,d){if(!d){return true}return c.canPlayType(d)}}})(jwplayer);(function(b){b.embed.logo=function(r,s,z){var u={prefix:"http://l.longtailvideo.com/"+s+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:3,hide:false,position:"bottom-left"};_css=b.utils.css;var B;var v;t();function t(){p();A();x()}function p(){if(u.prefix){var c=b.version.split(/\W/).splice(0,2).join("/");if(u.prefix.indexOf(c)<0){u.prefix+=c+"/"}}v=b.utils.extend({},u)}function a(){var c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=v.hide?"none":"block";var d=v.position.toLowerCase().split("-");for(var e in d){c[d[e]]=v.margin}return c}function A(){B=document.createElement("img");B.id=z+"_jwplayer_logo";B.style.display="none";B.onload=function(c){_css(B,a());y()};if(!v.file){return}if(v.file.indexOf("http://")===0){B.src=v.file}else{B.src=v.prefix+v.file}}if(!v.file){return}function x(){if(v.link){B.onmouseover=w;B.onmouseout=y;B.onclick=q}else{this.mouseEnabled=false}}function q(c){if(typeof c!="undefined"){c.preventDefault();c.stopPropagation()}if(v.link){window.open(v.link,"_blank")}return}function y(c){if(v.link){B.style.opacity=v.out}return}function w(c){if(v.hide){B.style.opacity=v.over}return}return B}})(jwplayer);(function(b){b.html5=function(a){var d=a;this.setup=function(c){b.utils.extend(this,new b.html5.api(d,c));return this};return this}})(jwplayer);(function(d){var f=d.utils.css;d.html5.view=function(J,K,U){var F=J;var N=K;var C=U;var D;var T;var a;var H;var I;var L;function c(){D=document.createElement("div");D.id=N.id;D.className=N.className;_videowrapper=document.createElement("div");_videowrapper.id=D.id+"_video_wrapper";N.id=D.id+"_video";f(D,{position:"relative",height:C.height,width:C.width,padding:0,backgroundColor:g(),zIndex:0});function g(){if(F.skin.getComponentSettings("display")&&F.skin.getComponentSettings("display").backgroundcolor){return F.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}f(N,{width:C.width,height:C.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});f(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});d.utils.wrap(N,D);d.utils.wrap(N,_videowrapper);H=document.createElement("div");H.id=D.id+"_displayarea";D.appendChild(H)}function P(){for(var h=0;h<C.plugins.order.length;h++){var g=C.plugins.order[h];if(C.plugins.object[g].getDisplayElement!==undefined){C.plugins.object[g].height=R(C.plugins.object[g].getDisplayElement().style.height);C.plugins.object[g].width=R(C.plugins.object[g].getDisplayElement().style.width);C.plugins.config[g].currentPosition=C.plugins.config[g].position}}E()}function E(h){if(C.getMedia()!==undefined){for(var j=0;j<C.plugins.order.length;j++){var g=C.plugins.order[j];if(C.plugins.object[g].getDisplayElement!==undefined){if(C.getMedia().hasChrome()){C.plugins.config[g].currentPosition=d.html5.view.positions.NONE}else{C.plugins.config[g].currentPosition=C.plugins.config[g].position}}}}Q(C.width,C.height)}function R(g){if(typeof g=="string"){if(g===""){return 0}else{if(g.lastIndexOf("%")>-1){return g}else{return parseInt(g.replace("px",""),10)}}}return g}this.setup=function(h){N=h;c();P();F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_LOADED,E);F.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_META,function(){B()});var g;if(window.onresize!==null){g=window.onresize}window.onresize=function(l){if(g!==undefined){try{g(l)}catch(j){}}if(F.jwGetFullscreen()){var k=document.body.getBoundingClientRect();C.width=Math.abs(k.left)+Math.abs(k.right);C.height=window.innerHeight}Q(C.width,C.height)}};function S(g){switch(g.keyCode){case 27:if(F.jwGetFullscreen()){F.jwSetFullscreen(false)}break;case 32:if(F.jwGetState()!=d.api.events.state.IDLE&&F.jwGetState()!=d.api.events.state.PAUSED){F.jwPause()}else{F.jwPlay()}break}}function Q(g,k){if(D.style.display=="none"){return}var h=[].concat(C.plugins.order);h.reverse();I=h.length+2;if(!C.fullscreen){C.width=g;C.height=k;T=g;a=k;f(H,{top:0,bottom:0,left:0,right:0,width:g,height:k});f(D,{height:a,width:T});var j=M(G,h);if(j.length>0){I+=j.length;M(O,j,true)}}else{if(navigator.vendor.indexOf("Apple")!==0){M(b,h,true)}}B()}function M(h,l,k){var m=[];for(var n=0;n<l.length;n++){var g=l[n];if(C.plugins.object[g].getDisplayElement!==undefined){if(C.plugins.config[g].currentPosition!=d.html5.view.positions.NONE){var j=h(g,I--);if(!j){m.push(g)}else{C.plugins.object[g].resize(j.width,j.height);if(k){delete j.width;delete j.height}f(C.plugins.object[g].getDisplayElement(),j)}}else{f(C.plugins.object[g].getDisplayElement(),{display:"none"})}}}return m}function G(h,g){if(C.plugins.object[h].getDisplayElement!==undefined){if(C.plugins.config[h].position&&e(C.plugins.config[h].position)){if(C.plugins.object[h].getDisplayElement().parentNode===null){D.appendChild(C.plugins.object[h].getDisplayElement())}var j=V(h);j.zIndex=g;return j}}return false}function O(h,g){if(C.plugins.object[h].getDisplayElement().parentNode===null){H.appendChild(C.plugins.object[h].getDisplayElement())}var k=C.width,j=C.height;if(typeof C.width=="string"&&C.width.lastIndexOf("%")>-1){percentage=parseFloat(C.width.substring(0,C.width.lastIndexOf("%")))/100;k=Math.round(window.innerWidth*percentage)}if(typeof C.height=="string"&&C.height.lastIndexOf("%")>-1){percentage=parseFloat(C.height.substring(0,C.height.lastIndexOf("%")))/100;j=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:(k-R(H.style.left)-R(H.style.right)),height:(j-R(H.style.top)-R(H.style.bottom)),zIndex:g}}function b(h,g){return{position:"fixed",width:C.width,height:C.height,zIndex:g}}function B(){H.style.position="absolute";C.getMedia().getDisplayElement().style.position="absolute";if(C.getMedia().getDisplayElement().videoWidth==0||C.getMedia().getDisplayElement().videoHeight==0){return}var j,g;if(H.style.width.toString().lastIndexOf("%")>-1||H.style.width.toString().lastIndexOf("%")>-1){var h=H.getBoundingClientRect();j=Math.abs(h.left)+Math.abs(h.right);g=Math.abs(h.top)+Math.abs(h.bottom)}else{j=R(H.style.width);g=R(H.style.height)}d.utils.stretch(F.jwGetStretching(),C.getMedia().getDisplayElement(),j,g,C.getMedia().getDisplayElement().videoWidth,C.getMedia().getDisplayElement().videoHeight)}function V(h){var g={position:"absolute",margin:0,padding:0,top:null};var j=C.plugins.config[h].currentPosition.toLowerCase();switch(j.toUpperCase()){case d.html5.view.positions.TOP:g.top=R(H.style.top);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[j]=R(H.style[j])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.RIGHT:g.top=R(H.style.top);g.right=R(H.style.right);g.width=g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[j]=R(H.style[j])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;case d.html5.view.positions.BOTTOM:g.bottom=R(H.style.bottom);g.left=R(H.style.left);g.width=T-R(H.style.left)-R(H.style.right);g.height=C.plugins.object[h].height;H.style[j]=R(H.style[j])+C.plugins.object[h].height+"px";H.style.height=R(H.style.height)-g.height+"px";break;case d.html5.view.positions.LEFT:g.top=R(H.style.top);g.left=R(H.style.left);g.width=C.plugins.object[h].width;g.height=a-R(H.style.top)-R(H.style.bottom);H.style[j]=R(H.style[j])+C.plugins.object[h].width+"px";H.style.width=R(H.style.width)-g.width+"px";break;default:break}return g}this.resize=Q;this.fullscreen=function(g){if(navigator.vendor.indexOf("Apple")===0){if(C.getMedia().getDisplayElement().webkitSupportsFullscreen){if(g){try{C.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(h){}}else{try{C.getMedia().getDisplayElement().webkitExitFullscreen()}catch(h){}}}}else{if(g){document.onkeydown=S;clearInterval(L);var j=document.body.getBoundingClientRect();C.width=Math.abs(j.left)+Math.abs(j.right);C.height=window.innerHeight;var k={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};f(D,k);k.zIndex=1;f(C.getMedia().getDisplayElement(),k);k.zIndex=2;f(H,k)}else{document.onkeydown="";C.width=T;C.height=a;f(D,{position:"relative",height:C.height,width:C.width,zIndex:0})}Q(C.width,C.height)}}};function e(a){return([d.html5.view.positions.TOP,d.html5.view.positions.RIGHT,d.html5.view.positions.BOTTOM,d.html5.view.positions.LEFT].toString().indexOf(a.toUpperCase())>-1)}d.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.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"}]}}};_css=d.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};d.html5.controlbar=function(aF,ac){var aG=aF;var an=d.utils.extend({},c,aG.skin.getComponentSettings("controlbar"),ac);if(an.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[an.position]=="undefined"){return}if(d.utils.mapLength(aG.skin.getComponentLayout("controlbar"))>0){an.layout=aG.skin.getComponentLayout("controlbar")}var Y;var af;var Z;var am;var av="none";var aJ;var aH;var X;var aK;var aL;var ar;var aw;var ae={};var aB=false;var aM={};function ag(){Z=0;am=0;af=0;if(!aB){var f={height:aG.skin.getSkinElement("controlbar","background").height,backgroundColor:an.backgroundcolor};Y=document.createElement("div");Y.id=aG.id+"_jwplayer_controlbar";_css(Y,f)}at("capLeft","left",false,Y);var e={position:"absolute",height:aG.skin.getSkinElement("controlbar","background").height,left:aG.skin.getSkinElement("controlbar","capLeft").width,zIndex:0};aa("background",Y,e,"img");if(aG.skin.getSkinElement("controlbar","background")){ae.background.src=aG.skin.getSkinElement("controlbar","background").src}e.zIndex=1;aa("elements",Y,e);at("capRight","right",false,Y)}this.getDisplayElement=function(){return Y};this.resize=function(g,f){d.utils.cancelAnimation(Y);document.getElementById(aG.id).onmousemove=aq;aL=g;ar=f;aq();var e=au();ak({id:aG.id,duration:X,position:aH});ax({id:aG.id,bufferPercent:aK});return e};function aA(){var e=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var g in e){var f=e[g];if(typeof ae[f]!="undefined"){aM[f]=ae[f].getBoundingClientRect()}}}function aq(){d.utils.cancelAnimation(Y);if(aI()){d.utils.fadeTo(Y,1,0,1,0)}else{d.utils.fadeTo(Y,0,0.1,1,2)}}function aI(){if(aG.jwGetState()==d.api.events.state.IDLE||aG.jwGetState()==d.api.events.state.PAUSED){if(an.idlehide){return false}return true}if(aG.jwGetFullscreen()){return false}if(an.position==d.html5.view.positions.OVER){return false}return true}function aa(g,h,j,f){var e;if(!aB){if(!f){f="div"}e=document.createElement(f);ae[g]=e;e.id=Y.id+"_"+g;h.appendChild(e)}else{e=document.getElementById(Y.id+"_"+g)}if(j!==undefined){_css(e,j)}return e}function ah(){a(an.layout.left);a(an.layout.right,-1);a(an.layout.center)}function a(h,f){var g=h.position=="right"?"right":"left";var j=d.utils.extend([],h.elements);if(f!==undefined){j.reverse()}for(var e=0;e<j.length;e++){ao(j[e],g)}}function aj(){return af++}function ao(f,n){var g,j,h,k,l;switch(f.name){case"play":at("playButton",n,false);at("pauseButton",n,true);ad("playButton","jwPlay");ad("pauseButton","jwPause");break;case"divider":at("divider"+aj(),n,true,undefined,undefined,f.width);break;case"prev":at("prevButton",n,true);ad("prevButton","jwPlaylistPrev");break;case"next":at("nextButton",n,true);ad("nextButton","jwPlaylistNext");break;case"elapsed":at("elapsedText",n,true);break;case"time":j=aG.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapLeft").width;h=aG.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapRight").width;g=n=="left"?j:h;k=aG.skin.getSkinElement("controlbar","timeSliderRail").width+j+h;l={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:k};l[n]=n=="left"?Z:am;var e=aa("timeSlider",ae.elements,l);at("timeSliderCapLeft",n,true,e,n=="left"?0:g);at("timeSliderRail",n,false,e,g);at("timeSliderBuffer",n,false,e,g);at("timeSliderProgress",n,false,e,g);at("timeSliderThumb",n,false,e,g);at("timeSliderCapRight",n,true,e,n=="right"?0:g);ab("time");break;case"fullscreen":at("fullscreenButton",n,false);at("normalscreenButton",n,true);ad("fullscreenButton","jwSetFullscreen",true);ad("normalscreenButton","jwSetFullscreen",false);break;case"volume":j=aG.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;h=aG.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapRight").width;g=n=="left"?j:h;k=aG.skin.getSkinElement("controlbar","volumeSliderRail").width+j+h;l={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:k};l[n]=n=="left"?Z:am;var m=aa("volumeSlider",ae.elements,l);at("volumeSliderCapLeft",n,true,m,n=="left"?0:g);at("volumeSliderRail",n,true,m,g);at("volumeSliderProgress",n,false,m,g);at("volumeSliderCapRight",n,true,m,n=="right"?0:g);ab("volume");break;case"mute":at("muteButton",n,false);at("unmuteButton",n,true);ad("muteButton","jwSetMute",true);ad("unmuteButton","jwSetMute",false);break;case"duration":at("durationText",n,true);break}}function at(h,e,j,m,g,k){if((aG.skin.getSkinElement("controlbar",h)!==undefined||h.indexOf("Text")>0||h.indexOf("divider")===0)&&!(h.indexOf("divider")===0&&aw.indexOf("divider")===0)){aw=h;var f={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",display:"block",top:0};if((h.indexOf("next")===0||h.indexOf("prev")===0)&&aG.jwGetPlaylist().length<2){j=false;f.display="none"}var l;if(h.indexOf("Text")>0){h.innerhtml="00:00";f.font=an.fontsize+"px/"+(aG.skin.getSkinElement("controlbar","background").height+1)+"px "+an.font;f.color=an.fontcolor;f.textAlign="center";f.fontWeight=an.fontweight;f.fontStyle=an.fontstyle;f.cursor="default";l=14+3*an.fontsize}else{if(h.indexOf("divider")===0){if(k){if(!isNaN(parseInt(k))){l=parseInt(k)}}else{f.background="url("+aG.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";l=aG.skin.getSkinElement("controlbar","divider").width}}else{f.background="url("+aG.skin.getSkinElement("controlbar",h).src+") repeat-x center left";l=aG.skin.getSkinElement("controlbar",h).width}}if(e=="left"){f.left=isNaN(g)?Z:g;if(j){Z+=l}}else{if(e=="right"){f.right=isNaN(g)?am:g;if(j){am+=l}}}if(d.utils.typeOf(m)=="undefined"){m=ae.elements}f.width=l;if(aB){_css(ae[h],f)}else{var n=aa(h,m,f);if(aG.skin.getSkinElement("controlbar",h+"Over")!==undefined){n.onmouseover=function(o){n.style.backgroundImage=["url(",aG.skin.getSkinElement("controlbar",h+"Over").src,")"].join("")};n.onmouseout=function(o){n.style.backgroundImage=["url(",aG.skin.getSkinElement("controlbar",h).src,")"].join("")}}}}}function al(){aG.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,ap);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,ax);aG.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,az);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ak);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,b);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,aE);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,ai)}function ap(){ag();ah();au();W()}function W(){ak({id:aG.id,duration:aG.jwGetDuration(),position:0});ax({id:aG.id,bufferProgress:0});b({id:aG.id,mute:aG.jwGetMute()});az({id:aG.id,newstate:d.api.events.state.IDLE});aE({id:aG.id,volume:aG.jwGetVolume()})}function ad(h,g,e){if(aB){return}if(aG.skin.getSkinElement("controlbar",h)!==undefined){var f=ae[h];if(f!==null){_css(f,{cursor:"pointer"});if(g=="fullscreen"){f.onmouseup=function(j){j.stopPropagation();aG.jwSetFullscreen(!aG.jwGetFullscreen())}}else{f.onmouseup=function(j){j.stopPropagation();if(e!==null){aG[g](e)}else{aG[g]()}}}}}}function ab(f){if(aB){return}var e=ae[f+"Slider"];_css(ae.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){av=f};e.onmouseup=function(g){g.stopPropagation();V(g.pageX)};e.onmousemove=function(h){if(av=="time"){aJ=true;var g=h.pageX-aM[f+"Slider"].left-window.pageXOffset;_css(ae.timeSliderThumb,{left:g})}}}function V(e){aJ=false;var f;if(av=="time"){f=e-aM.timeSliderRail.left+window.pageXOffset;var g=f/aM.timeSliderRail.width*X;if(g<0){g=0}else{if(g>X){g=X-3}}aG.jwSeek(g);if(aG.jwGetState()!=d.api.events.state.PLAYING){aG.jwPlay()}}else{if(av=="volume"){f=e-aM.volumeSliderRail.left-window.pageXOffset;var h=Math.round(f/aM.volumeSliderRail.width*100);if(h<0){h=0}else{if(h>100){h=100}}if(aG.jwGetMute()){aG.jwSetMute(false)}aG.jwSetVolume(h)}}av="none"}function ax(e){if(e.bufferPercent!==null){aK=e.bufferPercent}var g=aM.timeSliderRail.width;var f=isNaN(Math.round(g*aK/100))?0:Math.round(g*aK/100);_css(ae.timeSliderBuffer,{width:f})}function b(e){if(e.mute){_hide(ae.muteButton);_show(ae.unmuteButton);_hide(ae.volumeSliderProgress)}else{_show(ae.muteButton);_hide(ae.unmuteButton);_show(ae.volumeSliderProgress)}}function az(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ae.pauseButton);_hide(ae.playButton)}else{_hide(ae.pauseButton);_show(ae.playButton)}aq();if(e.newstate==d.api.events.state.IDLE){_hide(ae.timeSliderBuffer);_hide(ae.timeSliderProgress);_hide(ae.timeSliderThumb);ak({id:aG.id,duration:aG.jwGetDuration(),position:0})}else{_show(ae.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ae.timeSliderProgress);_show(ae.timeSliderThumb)}}}function ai(e){ax({bufferPercent:0});ak(d.utils.extend(e,{position:0,duration:X}))}function ak(g){if(g.position!==null){aH=g.position}if(g.duration!==null){X=g.duration}var e=(aH===X===0)?0:aH/X;var f=isNaN(Math.round(aM.timeSliderRail.width*e))?0:Math.round(aM.timeSliderRail.width*e);var h=f;ae.timeSliderProgress.style.width=f+"px";if(!aJ){if(ae.timeSliderThumb){ae.timeSliderThumb.style.left=h+"px"}}if(ae.durationText){ae.durationText.innerHTML=aC(X)}if(ae.elapsedText){ae.elapsedText.innerHTML=aC(aH)}}function aC(e){str="00:00";if(e>0){str=Math.floor(e/60)<10?"0"+Math.floor(e/60)+":":Math.floor(e/60)+":";str+=Math.floor(e%60)<10?"0"+Math.floor(e%60):Math.floor(e%60)}return str}function aD(){var g,e;var h=document.getElementById(Y.id+"_elements").childNodes;for(var f in document.getElementById(Y.id+"_elements").childNodes){if(isNaN(parseInt(f,10))){continue}if(h[f].id.indexOf(Y.id+"_divider")===0&&e.id.indexOf(Y.id+"_divider")===0){h[f].style.display="none"}else{if(h[f].id.indexOf(Y.id+"_divider")===0&&g.style.display!="none"){h[f].style.display="block"}}if(h[f].style.display!="none"){e=h[f]}g=h[f]}}function au(){aD();if(aG.jwGetFullscreen()){_show(ae.normalscreenButton);_hide(ae.fullscreenButton)}else{_hide(ae.normalscreenButton);_show(ae.fullscreenButton)}var e={width:aL};var f={};if(an.position==d.html5.view.positions.OVER||aG.jwGetFullscreen()){e.left=an.margin;e.width-=2*an.margin;e.top=ar-aG.skin.getSkinElement("controlbar","background").height-an.margin;e.height=aG.skin.getSkinElement("controlbar","background").height}else{e.left=0}f.left=aG.skin.getSkinElement("controlbar","capLeft").width;f.width=e.width-aG.skin.getSkinElement("controlbar","capLeft").width-aG.skin.getSkinElement("controlbar","capRight").width;var g=aG.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ae.timeSliderRail,{width:(f.width-Z-am),left:g});if(ae.timeSliderCapRight!==undefined){_css(ae.timeSliderCapRight,{left:g+(f.width-Z-am)})}_css(Y,e);_css(ae.elements,f);_css(ae.background,f);aA();return e}function aE(h){if(ae.volumeSliderRail!==undefined){var k=isNaN(h.volume/100)?1:h.volume/100;var j=parseInt(ae.volumeSliderRail.style.width.replace("px",""),10);var f=isNaN(Math.round(j*k))?0:Math.round(j*k);var g=parseInt(ae.volumeSliderRail.style.right.replace("px",""),10);var e=aG.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ae.volumeSliderProgress,{width:f,left:e});if(ae.volumeSliderCapLeft!==undefined){_css(ae.volumeSliderCapLeft,{left:0})}}}function ay(){ag();ah();aA();aB=true;al();W();Y.style.opacity=an.idlehide?0:1}ay();return this}})(jwplayer);(function(c){var d=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];c.html5.controller=function(H,K,Z,M){var E=H;var b=Z;var aa=M;var T=K;var N=true;var ab=-1;var G=(b.config.debug!==undefined)&&(b.config.debug.toString().toLowerCase()=="console");var V=new c.html5.eventdispatcher(T.id,G);c.utils.extend(this,V);function R(e){V.sendEvent(e.type,e)}b.addGlobalListener(R);function O(){try{if(b.playlist[b.item].levels[0].file.length>0){if(N||b.state==c.api.events.state.IDLE){b.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){b.getMedia().play()});b.addEventListener(c.api.events.JWPLAYER_MEDIA_TIME,function(f){if(f.position>=b.playlist[b.item].start&&ab>=0){b.playlist[b.item].start=ab;ab=-1}});if(b.config.repeat){b.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(f){setTimeout(Q,25)})}b.getMedia().load(b.playlist[b.item]);N=false}else{if(b.state==c.api.events.state.PAUSED){b.getMedia().play()}}}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function L(){try{if(b.playlist[b.item].levels[0].file.length>0){switch(b.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:b.getMedia().pause();break}}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function D(f){try{if(b.playlist[b.item].levels[0].file.length>0){if(typeof f!="number"){f=parseFloat(f)}switch(b.state){case c.api.events.state.IDLE:if(ab<0){ab=b.playlist[b.item].start;b.playlist[b.item].start=f}O();break;case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:b.getMedia().seek(f);break}}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function U(){try{if(b.playlist[b.item].levels[0].file.length>0&&b.state!=c.api.events.state.IDLE){b.getMedia().stop()}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function X(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I())}else{if(b.item+1==b.playlist.length){P(0)}else{P(b.item+1)}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O()}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function Y(){try{if(b.playlist[b.item].levels[0].file.length>0){if(b.config.shuffle){P(I())}else{if(b.item===0){P(b.playlist.length-1)}else{P(b.item-1)}}}if(b.state!=c.api.events.state.PLAYING&&b.state!=c.api.events.state.BUFFERING){O()}return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function I(){var e=null;if(b.playlist.length>1){while(e===null){e=Math.floor(Math.random()*b.playlist.length);if(e==b.item){e=null}}}else{e=0}return e}function P(f){b.resetEventListeners();b.addGlobalListener(R);try{if(b.playlist[f].levels[0].file.length>0){var e=b.state;if(e!==c.api.events.state.IDLE){U()}b.item=f;N=true;b.setActiveMediaProvider(b.playlist[b.item]);V.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{index:f});if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING||b.config.chromeless||Z.config.autostart===true){O()}}return true}catch(g){V.sendEvent(c.api.events.JWPLAYER_ERROR,g)}return false}function a(e){try{switch(typeof(e)){case"number":b.getMedia().volume(e);break;case"string":b.getMedia().volume(parseInt(e,10));break}return true}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function S(e){try{if(typeof e=="undefined"){b.getMedia().mute(!b.mute)}else{if(e.toString().toLowerCase()=="true"){b.getMedia().mute(true)}else{b.getMedia().mute(false)}}return true}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function W(f,g){try{b.width=f;b.height=g;aa.resize(f,g);V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function F(e){try{if(typeof e=="undefined"){b.fullscreen=!b.fullscreen;aa.fullscreen(!b.fullscreen)}else{if(e.toString().toLowerCase()=="true"){b.fullscreen=true;aa.fullscreen(true)}else{b.fullscreen=false;aa.fullscreen(false)}}V.sendEvent(c.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});V.sendEvent(c.api.events.JWPLAYER_FULLSCREEN,{fullscreen:e});return true}catch(f){V.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function J(f){try{U();b.loadPlaylist(f);P(b.item);return true}catch(e){V.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function Q(){b.resetEventListeners();b.addGlobalListener(R);switch(b.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:O();break;case c.html5.controller.repeatoptions.ALWAYS:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0);O()}else{X()}break;case c.html5.controller.repeatoptions.LIST:if(b.item==b.playlist.length-1&&!b.config.shuffle){P(0)}else{X()}break}}this.play=O;this.pause=L;this.seek=D;this.stop=U;this.next=X;this.prev=Y;this.item=P;this.setVolume=a;this.setMute=S;this.resize=W;this.setFullscreen=F;this.load=J}})(jwplayer);(function(b){b.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(b){_css=b.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};b.html5.display=function(O,a){var J={icons:true};var T=b.utils.extend({},J,a);var E=O;var Z={};var X;var M;var S;var D;var C;var N;var U;var P=E.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(E.skin.getComponentSettings("display").bufferrotation,10);var Y=E.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(E.skin.getComponentSettings("display").bufferinterval,10);var aa={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:G},display_icon:{style:{cursor:"pointer",position:"absolute",top:((E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display","playIcon").height)/2),left:((E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",E.skin.getSkinElement("display","background").src,")"]).join(""),width:E.skin.getSkinElement("display","background").width,height:E.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:X,height:M,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};E.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,R);E.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,R);E.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,R);E.jwAddEventListener(b.api.events.JWPLAYER_ERROR,H);L();function L(){Z.display=I("div","display");Z.display_text=I("div","display_text");Z.display.appendChild(Z.display_text);Z.display_image=I("img","display_image");Z.display_image.onerror=function(c){_hide(Z.display_image)};Z.display_image.onload=Q;Z.display_icon=I("div","display_icon");Z.display_iconBackground=I("div","display_iconBackground");Z.display.appendChild(Z.display_image);Z.display_iconBackground.appendChild(Z.display_icon);Z.display.appendChild(Z.display_iconBackground);ab()}this.getDisplayElement=function(){return Z.display};this.resize=function(c,d){X=c;M=d;_css(Z.display,{width:c,height:d});_css(Z.display_text,{width:(c-10),top:((M-Z.display_text.getBoundingClientRect().height)/2)});_css(Z.display_iconBackground,{top:((M-E.skin.getSkinElement("display","background").height)/2),left:((X-E.skin.getSkinElement("display","background").width)/2)});V();R({})};function Q(c){S=Z.display_image.naturalWidth;D=Z.display_image.naturalHeight;V()}function V(){b.utils.stretch(E.jwGetStretching(),Z.display_image,X,M,S,D)}function I(e,c){var d=document.createElement(e);d.id=E.id+"_jwplayer_"+c;_css(d,aa[c].style);return d}function ab(){for(var c in Z){if(aa[c].click!==undefined){Z[c].onclick=aa[c].click}}}function G(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(E.jwGetState()!=b.api.events.state.PLAYING){E.jwPlay()}else{E.jwPause()}}function W(c){if(U||!T.icons){K();return}_show(Z.display_iconBackground);Z.display_icon.style.backgroundImage=(["url(",E.skin.getSkinElement("display",c).src,")"]).join("");_css(Z.display_icon,{display:"block",width:E.skin.getSkinElement("display",c).width,height:E.skin.getSkinElement("display",c).height,top:(E.skin.getSkinElement("display","background").height-E.skin.getSkinElement("display",c).height)/2,left:(E.skin.getSkinElement("display","background").width-E.skin.getSkinElement("display",c).width)/2});if(E.skin.getSkinElement("display",c+"Over")!==undefined){Z.display_icon.onmouseover=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c+"Over").src,")"].join("")};Z.display_icon.onmouseout=function(d){Z.display_icon.style.backgroundImage=["url(",E.skin.getSkinElement("display",c).src,")"].join("")}}else{Z.display_icon.onmouseover=null;Z.display_icon.onmouseout=null}}function K(){_hide(Z.display_icon);_hide(Z.display_iconBackground)}function H(c){U=true;K();Z.display_text.innerHTML=c.error;_show(Z.display_text);Z.display_text.style.top=((M-Z.display_text.getBoundingClientRect().height)/2)+"px"}function F(){var c=Z.display_image;Z.display_image=I("img","display_image");Z.display_image.onerror=function(d){_hide(Z.display_image)};Z.display_image.onload=Q;Z.display.replaceChild(Z.display_image,c)}function R(c){if((c.type==b.api.events.JWPLAYER_PLAYER_STATE||c.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&U){U=false;_hide(Z.display_text)}if(N!==undefined){clearInterval(N);N=null;b.utils.animations.rotate(Z.display_icon,0)}switch(E.jwGetState()){case b.api.events.state.BUFFERING:W("bufferIcon");C=0;N=setInterval(function(){C+=P;b.utils.animations.rotate(Z.display_icon,C%360)},Y);W("bufferIcon");break;case b.api.events.state.PAUSED:_css(Z.display_image,{background:"transparent no-repeat center center"});W("playIcon");break;case b.api.events.state.IDLE:if(E.jwGetPlaylist()[E.jwGetItem()].image){_css(Z.display_image,{display:"block"});Z.display_image.src=b.utils.getAbsolutePath(E.jwGetPlaylist()[E.jwGetItem()].image)}else{F()}W("playIcon");break;default:if(E.jwGetMute()){F();W("muteIcon")}else{F();_hide(Z.display_iconBackground);_hide(Z.display_icon)}break}}return this}})(jwplayer);(function(b){b.html5.dock=function(o,s){function p(){return{align:b.html5.view.positions.RIGHT}}var a=b.utils.extend({},p(),s);if(a.align=="FALSE"){return}var n={};var t=[];var r;var q;var l=document.createElement("div");l.id=o.id+"_jwplayer_dock";this.getDisplayElement=function(){return l};this.setButton=function(e,d,c,f){if(!d&&n[e]){b.utils.arrays.remove(t,e);l.removeChild(n[e].div);delete n[e]}else{if(d){if(!n[e]){n[e]={}}n[e].handler=d;n[e].outGraphic=c;n[e].overGraphic=f;if(!n[e].div){t.push(e);n[e].div=document.createElement("div");n[e].div.style.position="relative";l.appendChild(n[e].div);n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[0].style.position="absolute";n[e].div.childNodes[0].style.left=0;n[e].div.childNodes[0].style.top=0;n[e].div.childNodes[0].style.zIndex=10;n[e].div.childNodes[0].style.cursor="pointer";n[e].div.appendChild(document.createElement("img"));n[e].div.childNodes[1].style.position="absolute";n[e].div.childNodes[1].style.left=0;n[e].div.childNodes[1].style.top=0;if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src}n[e].div.childNodes[1].style.zIndex=9;n[e].div.childNodes[1].style.cursor="pointer";n[e].div.onmouseover=function(){if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic}if(o.skin.getSkinElement("dock","buttonOver")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","buttonOver").src}};n[e].div.onmouseout=function(){if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src}};if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic}if(n[e].outGraphic){n[e].div.childNodes[0].src=n[e].outGraphic}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src}}if(d){n[e].div.onclick=function(g){g.preventDefault();b(o.id).callback(e);if(n[e].overGraphic){n[e].div.childNodes[0].src=n[e].overGraphic}if(o.skin.getSkinElement("dock","button")){n[e].div.childNodes[1].src=o.skin.getSkinElement("dock","button").src}}}}}m(r,q)};function m(k,d){r=k;q=d;if(t.length>0){var h=10;var f=k-o.skin.getSkinElement("dock","button").width-h;var j=h;var g=-1;if(a.align==b.html5.view.positions.LEFT){g=1;f=h}for(var c=0;c<t.length;c++){var e=Math.floor(j/d);if((j+o.skin.getSkinElement("dock","button").height+h)>((e+1)*d)){j=((e+1)*d)+h;e=Math.floor(j/d)}n[t[c]].div.style.top=(j%d)+"px";n[t[c]].div.style.left=(f+(o.skin.getSkinElement("dock","button").width+h)*e*g)+"px";j+=o.skin.getSkinElement("dock","button").height+h}}}this.resize=m;return this}})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(c===undefined){c={}}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c)}}})(jwplayer);(function(d){var c={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:3,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(x,w){var a=x;var v;var A;var G;z();function z(){t();F();D()}function t(){if(c.prefix){var e=x.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(e)<0){c.prefix+=e+"/"}}if(w.position==d.html5.view.positions.OVER){w.position=c.position}A=d.utils.extend({},c)}function F(){G=document.createElement("img");G.id=a.id+"_jwplayer_logo";G.style.display="none";G.onload=function(e){_css(G,b());a.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,H);E()};if(!A.file){return}if(A.file.indexOf("http://")===0){G.src=A.file}else{G.src=A.prefix+A.file}}if(!A.file){return}this.resize=function(e,f){};this.getDisplayElement=function(){return G};function D(){if(A.link){G.onmouseover=B;G.onmouseout=E;G.onclick=u}else{this.mouseEnabled=false}}function u(e){if(typeof e!="undefined"){e.stopPropagation()}a.jwPause();a.jwSetFullscreen(false);if(A.link){window.open(A.link,"_blank")}return}function E(e){if(A.link){G.style.opacity=A.out}return}function B(e){if(A.hide){G.style.opacity=A.over}return}function b(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=A.hide?"none":"block";var f=A.position.toLowerCase().split("-");for(var g in f){e[f[g]]=A.margin}return e}function y(){if(A.hide){G.style.display="block";G.style.opacity=0;d.utils.fadeTo(G,A.out,0.1,parseFloat(G.style.opacity));v=setTimeout(function(){C()},A.timeout*1000)}}function C(){if(A.hide){d.utils.fadeTo(G,0,0.1,parseFloat(G.style.opacity))}}function H(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(v);y()}}return this}})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediavideo=function(au,V){var R={abort:af,canplay:am,canplaythrough:am,durationchange:ai,emptied:af,ended:am,error:an,loadeddata:ai,loadedmetadata:ai,loadstart:am,pause:am,play:O,playing:am,progress:Y,ratechange:af,seeked:am,seeking:am,stalled:am,suspend:am,timeupdate:O,volumechange:af,waiting:am,canshowcurrentframe:af,dataunavailable:af,empty:af,load:av,loadedfirstframe:af};var Q=new e.html5.eventdispatcher();e.utils.extend(this,Q);var ar=au;var ab=V;var U;var S;var aw=e.api.events.state.IDLE;var X=null;var al;var at=0;var Z=false;var ah=false;var b;var c;var aq=[];var a;var W=false;function ad(){return aw}function av(g){}function af(g){}function am(g){if(f[g.type]){ag(f[g.type])}}function ag(j){if(W){return}if(al){j=e.api.events.state.IDLE}if(j==e.api.events.state.PAUSED&&aw==e.api.events.state.IDLE){return}if(j==e.api.events.state.PLAYING&&aw==e.api.events.state.IDLE){ag(e.api.events.state.BUFFERING);Q.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:ar.buffer});aa();return}if(aw!=j){var h=aw;ar.state=j;aw=j;var g=false;if(j==e.api.events.state.IDLE){aj();if(ar.position>=ar.duration&&(ar.position||ar.duration)){g=true}if(ab.style.display!="none"&&!ar.config.chromeless){ab.style.display="none"}}Q.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:h,newstate:j});if(g){Q.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE)}}al=false}function ai(h){var g={height:h.target.videoHeight,width:h.target.videoWidth,duration:Math.round(h.target.duration*10)/10};if(ar.duration===0||isNaN(ar.duration)){ar.duration=Math.round(h.target.duration*10)/10}ar.playlist[ar.item]=e.utils.extend(ar.playlist[ar.item],g);Q.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:g})}function O(g){if(al){return}if(g!==undefined&&g.target!==undefined){if(ar.duration===0||isNaN(ar.duration)){ar.duration=Math.round(g.target.duration*10)/10}if(!Z&&ab.readyState>0){ag(e.api.events.state.PLAYING)}if(aw==e.api.events.state.PLAYING){if(!Z&&ab.readyState>0){Z=true;try{ab.currentTime=ar.playlist[ar.item].start}catch(h){}ab.volume=ar.volume/100;ab.muted=ar.mute}ar.position=Math.round(g.target.currentTime*10)/10;Q.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:g.target.currentTime,duration:g.target.duration})}}Y(g)}function aa(){if(U===false&&aw==e.api.events.state.BUFFERING){Q.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);U=true}}function T(){var g=(aq[aq.length-1]-aq[0])/aq.length;a=setTimeout(function(){if(!S){Y({lengthComputable:true,loaded:1,total:1})}},g*10)}function Y(g){var h,j;if(g!==undefined&&g.lengthComputable&&g.total){ak();h=g.loaded/g.total*100;j=h/100*(ar.duration-ab.currentTime);if(50<h&&!S){clearTimeout(a);T()}}else{if((ab.buffered!==undefined)&&(ab.buffered.length>0)){maxBufferIndex=0;if(maxBufferIndex>=0){h=ab.buffered.end(maxBufferIndex)/ab.duration*100;j=ab.buffered.end(maxBufferIndex)-ab.currentTime}}}aa();if(!S){if(h==100&&S===false){S=true}if(h!==null&&(h>ar.buffer)){ar.buffer=Math.round(h);Q.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(h)})}}}function ac(){if(X===null){X=setInterval(function(){O()},100)}}function aj(){clearInterval(X);X=null}function an(g){var h="There was an error: ";if((g.target.error&&g.target.tagName.toLowerCase()=="video")||g.target.parentNode.error&&g.target.parentNode.tagName.toLowerCase()=="video"){var j=g.target.error===undefined?g.target.parentNode.error:g.target.error;switch(j.code){case j.MEDIA_ERR_ABORTED:h="You aborted the video playback: ";break;case j.MEDIA_ERR_NETWORK:h="A network error caused the video download to fail part-way: ";break;case j.MEDIA_ERR_DECODE:h="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case j.MEDIA_ERR_SRC_NOT_SUPPORTED:h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:h="An unknown error occurred: ";break}}else{if(g.target.tagName.toLowerCase()=="source"){c--;if(c>0){return}h="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{e.utils.log("Erroneous error received. Continuing...");return}}ae();h+=ap();W=true;Q.sendEvent(e.api.events.JWPLAYER_ERROR,{error:h});return}function ap(){var h="";for(var j in b.levels){var k=b.levels[j];var g=ab.ownerDocument.createElement("source");h+=e.utils.getAbsolutePath(k.file);if(j<(b.levels.length-1)){h+=", "}}return h}this.getDisplayElement=function(){return ab};this.play=function(){if(aw!=e.api.events.state.PLAYING){if(ab.style.display!="block"){ab.style.display="block"}ab.play();ac();if(U){ag(e.api.events.state.PLAYING)}}};this.pause=function(){ab.pause();ag(e.api.events.state.PAUSED)};this.seek=function(g){if(!(ar.duration===0||isNaN(ar.duration))&&!(ar.position===0||isNaN(ar.position))){ab.currentTime=g;ab.play()}};function ae(){ab.pause();aj();ar.position=0;al=true;ag(e.api.events.state.IDLE)}this.stop=ae;this.volume=function(g){ab.volume=g/100;ar.volume=g;Q.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){ab.muted=g;ar.mute=g;Q.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g})};this.resize=function(g,h){if(false){d(ab,{width:g,height:h})}Q.sendEvent(e.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:ar.fullscreen,width:g,hieght:h})};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(ar.config.width,ar.config.height)}};this.load=function(g){P(g);Q.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);U=false;S=false;Z=false;if(!ar.config.chromeless&&!ah){aq=[];ak();ag(e.api.events.state.BUFFERING);setTimeout(function(){O()},25)}};function ak(){var g=new Date().getTime();aq.push(g)}this.hasChrome=function(){return ah};function P(g){ar.duration=g.duration;ah=false;b=g;var m=document.createElement("video");m.preload="none";W=false;c=0;for(var n=0;n<g.levels.length;n++){var o=g.levels[n];if(e.utils.isYouTube(o.file)){delete m;ao(o.file);return}var l;if(o.type===undefined){var h=e.utils.extension(o.file);if(e.utils.extensionmap[h]!==undefined&&e.utils.extensionmap[h].html5!==undefined){l=e.utils.extensionmap[h].html5}}else{l=o.type}if(!l||m.canPlayType(l)){var j=ab.ownerDocument.createElement("source");j.src=e.utils.getAbsolutePath(o.file);if(l&&!e.utils.isLegacyAndroid()){j.type=l}c++;m.appendChild(j)}}if(c===0){W=true;Q.sendEvent(e.api.events.JWPLAYER_ERROR,{error:"The video could not be loaded because the format is not supported by your browser: "+ap()})}if(ar.config.chromeless){m.poster=e.utils.getAbsolutePath(g.image);m.controls="controls"}m.style.top=ab.style.top;m.style.left=ab.style.left;m.style.width=ab.style.width;m.style.height=ab.style.height;m.style.zIndex=ab.style.zIndex;m.onload=av;m.volume=0;ab.parentNode.replaceChild(m,ab);m.id=ab.id;ab=m;for(var k in R){ab.addEventListener(k,function(p){if(p.target.parentNode!==null){R[p.type](p)}},true)}}function ao(k){var n=document.createElement("object");k=["http://www.youtube.com/v/",k.replace(/^[^v]+v.(.{11}).*/,"$1"),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var g={movie:k,allowFullScreen:"true",allowscriptaccess:"always"};for(var o in g){var j=document.createElement("param");j.name=o;j.value=g[o];n.appendChild(j)}var h=document.createElement("embed");var m={src:k,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(au.id).style.width,height:document.getElementById(au.id).style.height};for(var l in m){h[l]=m[l]}n.appendChild(h);n.style.position=ab.style.position;n.style.top=ab.style.top;n.style.left=ab.style.left;n.style.width=document.getElementById(au.id).style.width;n.style.height=document.getElementById(au.id).style.height;n.style.zIndex=2147483000;ab.parentNode.replaceChild(n,ab);n.id=ab.id;ab=n;ah=true}this.embed=P;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","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(config[path[edge]]===undefined){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(_model.plugins!==undefined){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(typeof _model.config.chromeless=="undefined"&&jwplayer.utils.isIOS()){_model.config.chromeless=true}if(_model.config.chromeless){pluginorder=["logo"]}_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=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(typeof _model.plugins.config[pluginName].position=="undefined"){_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,ready){var input;if(typeof arg=="string"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);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}if(!ready){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist})}_model.setActiveMediaProvider(_model.playlist[_model.item])};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(result===null){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}_model.setActiveMediaProvider=function(playlistItem){if(_media!==undefined){_media.resetEventListeners()}_media=new jwplayer.html5.mediavideo(_model,_container);_media.addGlobalListener(forward);if(_model.config.chromeless){_media.load(playlistItem)}return true};_model.getMedia=function(){return _media};_model.setupPlugins=function(){for(var plugin in _model.plugins.order){try{var pluginName=_model.plugins.order[plugin];if(jwplayer.html5[pluginName]!==undefined){_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}else{_model.plugins.order.splice(plugin,plugin+1)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]))}}}else{e.push(new b.html5.playlistitem(a))}return e}})(jwplayer);(function(b){b.html5.playlistitem=function(f){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};for(var e in a){if(f[e]!==undefined){a[e]=f[e]}}if(a.levels.length===0){a.levels[0]=new b.html5.playlistitemlevel(a)}return a}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(a[f]!==undefined){e[f]=a[f]}}return e}})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c()},function(){new b.html5.skinloader("",function(e){d=true;a=e;c()})})};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g]}catch(c){b.utils.log("No such skin component / element: ",[h,g])}}return null};this.getComponentSettings=function(c){if(d){return a[c].settings}return null};this.getComponentLayout=function(c){if(d){return a[c].layout}return null}}})(jwplayer);(function(b){b.html5.skinloader=function(B,t,y){var u={};var E=t;var x=y;var C=true;var z;var v=B;var a=false;function w(){if(typeof v!="string"||v===""){D(b.html5.defaultSkin().xml)}else{b.utils.ajax(b.utils.getAbsolutePath(v),function(d){try{if(d.responseXML!==null){D(d.responseXML);return}}catch(c){}D(b.html5.defaultSkin().xml)},function(c){D(b.html5.defaultSkin().xml)})}}function D(o){var W=o.getElementsByTagName("component");if(W.length===0){return}for(var P=0;P<W.length;P++){var Y=W[P].getAttribute("name");var h={settings:{},elements:{},layout:{}};u[Y]=h;var S=W[P].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var U=0;U<S.length;U++){F(S[U],Y)}var m=W[P].getElementsByTagName("settings")[0];if(m!==undefined&&m.childNodes.length>0){var l=m.getElementsByTagName("setting");for(var d=0;d<l.length;d++){var c=l[d].getAttribute("name");var p=l[d].getAttribute("value");var q=/color$/.test(c)?"color":null;u[Y].settings[c]=b.utils.typechecker(p,q)}}var j=W[P].getElementsByTagName("layout")[0];if(j!==undefined&&j.childNodes.length>0){var g=j.getElementsByTagName("group");for(var Q=0;Q<g.length;Q++){var k=g[Q];u[Y].layout[k.getAttribute("position")]={elements:[]};for(var e=0;e<k.attributes.length;e++){var X=k.attributes[e];u[Y].layout[k.getAttribute("position")][X.name]=X.value}var f=k.getElementsByTagName("*");for(var R=0;R<f.length;R++){var V=f[R];u[Y].layout[k.getAttribute("position")].elements.push({type:V.tagName});for(var T=0;T<V.attributes.length;T++){var n=V.attributes[T];u[Y].layout[k.getAttribute("position")].elements[R][n.name]=n.value}if(u[Y].layout[k.getAttribute("position")].elements[R].name===undefined){u[Y].layout[k.getAttribute("position")].elements[R].name=V.tagName}}}}C=false;r()}}function r(){clearInterval(z);if(!a){z=setInterval(function(){s()},100)}}function F(d,e){var f=new Image();var j=d.getAttribute("name");var g=d.getAttribute("src");var k;if(g.indexOf("data:image/png;base64,")===0){k=g}else{var h=b.utils.getAbsolutePath(v);var c=h.substr(0,h.lastIndexOf("/"));k=[c,e,g].join("/")}u[e].elements[j]={height:0,width:0,src:"",ready:false};f.onload=function(l){A(f,j,e)};f.onerror=function(l){a=true;r();x()};f.src=k}function s(){for(var d in u){if(d!="properties"){for(var c in u[d].elements){if(!u[d].elements[c].ready){return}}}}if(C===false){clearInterval(z);E(u)}}function A(e,c,d){u[d].elements[c].height=e.height;u[d].elements[c].width=e.width;u[d].elements[c].src=e.src;u[d].elements[c].ready=true;r()}w()}})(jwplayer);(function(b){b.html5.api=function(t,a){var l={};var q=document.createElement("div");t.parentNode.replaceChild(q,t);q.id=t.id;l.version=b.version;l.id=q.id;var m=new b.html5.model(l,q,a);var o=new b.html5.view(l,q,m);var n=new b.html5.controller(l,q,m,o);l.skin=new b.html5.skin();l.jwPlay=function(c){if(typeof c=="undefined"){r()}else{if(c.toString().toLowerCase()=="true"){n.play()}else{n.pause()}}};l.jwPause=function(c){if(typeof c=="undefined"){r()}else{if(c.toString().toLowerCase()=="true"){n.pause()}else{n.play()}}};function r(){if(m.state==b.api.events.state.PLAYING||m.state==b.api.events.state.BUFFERING){n.pause()}else{n.play()}}l.jwStop=n.stop;l.jwSeek=n.seek;l.jwPlaylistItem=n.item;l.jwPlaylistNext=n.next;l.jwPlaylistPrev=n.prev;l.jwResize=n.resize;l.jwLoad=n.load;function p(c){return function(){return m[c]}}l.jwGetItem=p("item");l.jwGetPosition=p("position");l.jwGetDuration=p("duration");l.jwGetBuffer=p("buffer");l.jwGetWidth=p("width");l.jwGetHeight=p("height");l.jwGetFullscreen=p("fullscreen");l.jwSetFullscreen=n.setFullscreen;l.jwGetVolume=p("volume");l.jwSetVolume=n.setVolume;l.jwGetMute=p("mute");l.jwSetMute=n.setMute;l.jwGetStretching=p("stretching");l.jwGetState=p("state");l.jwGetVersion=function(){return l.version};l.jwGetPlaylist=function(){return m.playlist};l.jwAddEventListener=n.addEventListener;l.jwRemoveEventListener=n.removeEventListener;l.jwSendEvent=n.sendEvent;l.jwDockSetButton=function(e,d,c,f){if(m.plugins.object.dock&&m.plugins.object.dock.setButton){m.plugins.object.dock.setButton(e,d,c,f)}};l.jwGetLevel=function(){};l.jwGetBandwidth=function(){};l.jwGetLockState=function(){};l.jwLock=function(){};l.jwUnlock=function(){};function s(e,c,d){return function(){e.loadPlaylist(e.config,true);e.setupPlugins();c.setup(e.getMedia().getDisplayElement());var f={id:l.id,version:l.version};d.sendEvent(b.api.events.JWPLAYER_READY,f);if(playerReady!==undefined){playerReady(f)}if(window[e.config.playerReady]!==undefined){window[e.config.playerReady](f)}e.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist});d.item(e.item)}}if(m.config.chromeless){setTimeout(s(m,o,n),25)}else{l.skin.load(m.config.skin,s(m,o,n))}return l}})(jwplayer);var contentDispositionFile="";var statisticsFile="";var mediaplayerFile="/behaviour/flash/govvid-v2-mediaplayer.swf";var captionsFile="/behaviour/flash/captions.swf";var audiodescriptionFile="/behaviour/flash/audiodescription.swf";var videoSkinFile="/behaviour/flash/govvid-v2-skin-video.zip";var audioSkinFile="/behaviour/flash/govvid-v2-skin-audio.zip";var govvidOpera=window.opera?true:false;var govvidIE=(document.all&&document.getElementById&&!govvidOpera)?true:false;var govvidIE9=govvidIE&&(navigator.appVersion.toLowerCase().indexOf("msie 9.0")>0);var govvidSafari=(navigator.userAgent.toLowerCase().indexOf("safari")>=0)?true:false;var debug=false;var arAllFileTypes=new Array();arAllFileTypes.jwmedia=new Array("flv","mp3");arAllFileTypes.quicktime=new Array("smil","mp4","mov","mp3");arAllFileTypes.winmedia=new Array("wmv","mp3","wma");var arVideoFileTypes=new Array();arVideoFileTypes.jwmedia=new Array("flv","mp4");arVideoFileTypes.quicktime=new Array("smil","mp4","mov");arVideoFileTypes.winmedia=new Array("wmv");var arFileTypes=new Array();GovVid=function(c,b,a){this.id=c;this.width=b;this.height=a;this.movies=new Object();this.audioFiles=new Object();this.captions=new Object();this.image=""};GovVid.prototype.addMovie=function(c){var b=c.split("/");var a=b[b.length-1];var d=a.split(".");var e=d[d.length-1];this.movies[e]=c};GovVid.prototype.addAudio=function(a){var b="mp3";this.audioFiles[b]=a};GovVid.prototype.addImage=function(a){this.image=a};GovVid.prototype.addCaption=function(b,a){this.captions[b]=a};GovVid.prototype.isAudioDescription=function(){if(this.movies.flv!=undefined||this.movies.mp4!=undefined||this.movies.wmv!=undefined){return true}return false};GovVid.prototype.inArray=function(a,d){var b;var c;for(b in d){for(c in a){if(b==a[c]){return b}}}return false};GovVid.prototype.write=function(b,c){c=(typeof c==="undefined")?"choose":c;var e=document.getElementById(b);if(e&&c=="choose"){e.parentNode.style.width=parseInt(this.width)+"px";GovVid_makeListToggle(b)}else{if(c!="choose"){var d=document.getElementById("govvid_viewwithcaptions");if(d){d.parentNode.removeChild(d)}}}var h=false,g=GovVid_getFlashPlayerVersion(),m=0,j=new Array(),k=window.location.href,a="http://"+window.location.hostname;if(this.isAudioDescription()){arFileTypes=arVideoFileTypes}else{arFileTypes=arAllFileTypes}if(g.major>7&&(c=="choose"||GovVid_in_array(arFileTypes.jwmedia,c))){if(mediaplayerFile==undefined||mediaplayerFile==""){return false}m=parseInt(this.height)+24;if(h=this.inArray(arFileTypes.jwmedia,this.movies)){var l={};if(this.captions.flv!=undefined){l.captions={file:this.captions.flv,state:false,fontsize:20}}if(this.audioFiles.mp3!=undefined){l.audiodescription={file:this.audioFiles.mp3,state:false}}jwplayer(b).setup({flashplayer:mediaplayerFile,file:this.movies[h],image:this.image,height:m,width:this.width,dock:false,skin:videoSkinFile,controlbar:"bottom",playlist:"none",plugins:l});return true}else{if(h=this.inArray(arFileTypes.jwmedia,this.audioFiles)){jwplayer(b).setup({flashplayer:mediaplayerFile,file:this.audioFiles[h],height:m,width:this.width,dock:false,skin:audioSkinFile,controlbar:"bottom",playlist:"none"});return true}}}if(GovVid_isQTInstalled()&&!h&&(c=="choose"||GovVid_in_array(arFileTypes.quicktime,c))){m=parseInt(this.height)+16;if(c!="choose"){h=c}else{h=this.inArray(arFileTypes.quicktime,this.movies)}if(h){if(h=="smil"){m=parseInt(this.height)+115}var f=new GovVidMovie(this.movies[h],this.id,this.width,m)}else{if(h=this.inArray(arFileTypes.quicktime,this.audioFiles)){var f=new GovVidMovie(this.audioFiles[h],this.id,this.width,m)}}if(f){f.showMovie(b,"quicktime");return true}}if(GovVid_isWMPInstalled()&&!h&&(c=="choose"||GovVid_in_array(arFileTypes.winmedia,c))){m=parseInt(this.height)+46;if(h=this.inArray(arFileTypes.winmedia,this.movies)){var f=new GovVidMovie(this.movies[h],this.id,this.width,m)}else{if(h=this.inArray(arFileTypes.winmedia,this.audioFiles)){var f=new GovVidMovie(this.audioFiles[h],this.id,this.width,m)}}if(f){f.showMovie(b,"winmedia");if(this.movies.asx){GovVid_addLinkToList(e,this.movies.asx,"Bekijk deze video met ondertiteling")}return true}}return false};GovVidMovie=function(b,d,c,a){this.filename=b;this.id=d;this.width=c;this.height=a;this.flashvars=new Object()};GovVidMovie.prototype.addFlashVars=function(a,b){this.flashvars[a]=b};GovVidMovie.prototype.getFlashVars=function(){return this.flashvars};GovVidMovie.prototype.insertParamTag=function(d,b,c){var a=document.createElement("PARAM");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)};GovVidMovie.prototype.getQuicktimeHTML=function(){if(govvidIE&&!govvidIE9){var a=document.createElement("<object type='video/quicktime' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' />")}else{var a=document.createElement("object");a.setAttribute("type","video/quicktime")}a.setAttribute("id",this.id);a.setAttribute("width",this.width);a.setAttribute("height",this.height);if(govvidIE||govvidSafari){this.insertParamTag(a,"src",this.filename)}else{a.setAttribute("data",this.filename)}this.insertParamTag(a,"autoplay","false");return a};GovVidMovie.prototype.getWinmediaHTML=function(){if(govvidIE&&!govvidIE9){a=document.createElement("<object type='video/x-ms-wmv' />")}else{var a=document.createElement("object");a.setAttribute("type","video/x-ms-wmv")}a.setAttribute("id",this.id);a.setAttribute("width",this.width);a.setAttribute("height",this.height);if(govvidIE||govvidSafari||govvidOpera){this.insertParamTag(a,"src",this.filename)}else{a.setAttribute("data",this.filename)}this.insertParamTag(a,"autostart","0");return a};GovVidMovie.prototype.getFlashHTML=function(){var d="";if(this.flashvars){for(var c in this.getFlashVars()){d+=c+"="+this.flashvars[c]+"&"}}var b=d.length;d=d.substr(0,b-1);if(govvidIE&&!govvidIE9){var a=document.createElement("<object type='application/x-shockwave-flash' />")}else{if(govvidIE9){var a=document.createElement("object");a.setAttribute("type","application/x-shockwave-flash");a.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000")}else{var a=document.createElement("object");a.setAttribute("type","application/x-shockwave-flash")}}a.setAttribute("id",this.id);a.setAttribute("width",this.width);a.setAttribute("height",this.height);if((govvidIE&&!govvidIE9)||govvidSafari){this.insertParamTag(a,"src",this.filename)}else{if(govvidIE9){this.insertParamTag(a,"movie",this.filename);this.insertParamTag(a,"src",this.filename)}else{a.setAttribute("data",this.filename)}}this.insertParamTag(a,"flashvars",d);this.insertParamTag(a,"allowfullscreen","true");this.insertParamTag(a,"wmode","opaque");this.insertParamTag(a,"allowscriptaccess","always");this.insertParamTag(a,"seamlesstabbing","true");return a};GovVidMovie.prototype.showMovie=function(a,c){var b=document.getElementById(a);if(c=="flash"){b=GovVid_EmptyNode(b);b.appendChild(this.getFlashHTML());console.log($("#movie").innerHTML)}else{if(c=="quicktime"){b=GovVid_EmptyNode(b);b.appendChild(this.getQuicktimeHTML())}else{if(c=="winmedia"){b=GovVid_EmptyNode(b);b.appendChild(this.getWinmediaHTML())}}}};function GovVid_getFlashPlayerVersion(){var b=new FlashPlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){b=new FlashPlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new FlashPlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(d){if(b.major==6){return b}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(c!=null){b=new FlashPlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}return b}FlashPlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};function GovVid_isQTInstalled(){var a=false;var c=false;if(navigator.plugins&&navigator.plugins.length){var d=navigator.plugins.length;for(var b=0;b<d;b++){var f=navigator.plugins[b];if(f.name.indexOf("QuickTime")>-1){a=true}}}else{if(window.ActiveXObject){var h=null;try{h=new ActiveXObject("QuickTime.QuickTime")}catch(g){}if(h){a=true}}else{}}return a}function GovVid_isWMPInstalled(){var a=false;var d=false;if(navigator.plugins&&navigator.plugins.length){for(var b=0;b<navigator.plugins.length;b++){var c=navigator.plugins[b];if(c.name.indexOf("Windows Media Player")>-1){a=true}}}else{execScript('on error resume next: wmpObj = IsObject(CreateObject("MediaPlayer.MediaPlayer.1"))',"VBScript");a=d}return a}function GovVid_toggle(a){var b=document.getElementById(a);if(b){if(b.className=="close"){b.className="open"}else{b.className="close"}}}function GovVid_toggle_both(b){var a=b.replace(/ToggleLink/,"ToggleMenu");var c=b.replace(/ToggleMenu/,"ToggleLink");GovVid_toggle(a);GovVid_toggle(c)}function GovVid_EmptyNode(b){for(var a=b.childNodes.length-1;a>=0;a--){b.removeChild(b.childNodes[a])}return b}function GovVid_openBinary(){if(contentDispositionFile!=undefined&&contentDispositionFile!=""){var f=new Array("pdf","wmv","mov","mp4","flv","3gp","mp3","srt");var b=document.getElementsByTagName("a");var g=b.length;var h=new String(document.location);var a=h.split("/");var k="";if(h.indexOf("http://")==0&&a.length>2){k="http://"+a[2]}for(i=0;i<g;i++){var e=b[i];var c=String(e.getAttribute("href"));var l=c.split(".");var j=l[l.length-1];if(GovVid_in_array(f,j.toLowerCase())){var d=e.href.substr(k.length);e.href=contentDispositionFile+"?File="+d;e.onclick=function(){this.href=this.href}}else{if(e.className=="transcription"){e.onclick=function(){return newWin(this.href,"500","500")}}}}}}function GovVid_addLinkToList(b,c,f){if(b){var h=GovVid_getParentByClassname("moviecontent",b);if(!h){h=GovVid_getParentByClassname("audiocontent",b)}if(!h){h=GovVid_getParentByClassname("block-audio-video",b)}if(h){var a=h.getElementsByTagName("UL");if(c){var j=document.createElement("LI");j.setAttribute("id","govvid_viewwithcaptions");var d=document.createElement("A");d.setAttribute("href",c);var g=document.createTextNode(f);d.appendChild(g);j.appendChild(d);var e=a[0].getElementsByTagName("LI");a[0].insertBefore(j,e[0])}}}}function GovVid_makeListToggle(e){var g=document.getElementById(e);if(g){var p=GovVid_getParentByClassname("moviecontent",g);if(!p){p=GovVid_getParentByClassname("audiocontent",g)}if(!p){p=GovVid_getParentByClassname("block-audio-video",g)}if(p){var a=GovVid_getElementsByClassName("toggle","LI",p)}else{var a=GovVid_getElementsByClassName("toggle","LI")}var m=a.length;for(var h=0;h<m;h++){var n="govVid_ToggleMenu_"+h+e;var b="";var l="";var q=a[h].childNodes.length;for(var f=0;f<q;f++){var c=a[h].childNodes[f].tagName;if((c=="H2"||c=="H3"||c=="H4"||c=="H5"||c=="H6"||c=="SPAN"||c=="A")&&l==""){l=a[h].childNodes[f];var d="govVid_ToggleLink_"+h+e;var k=document.createElement("span");k.className="facet-button";if(c=="A"){l.id=d;l.onclick=function(){GovVid_toggle_both(this.id);return false}}else{var o=document.createElement("A");o.setAttribute("href","#");o.setAttribute("id",d);l.appendChild(o);o.appendChild(l.firstChild);o.appendChild(k);k=null;o.onclick=function(){GovVid_toggle_both(this.id);return false}}GovVid_toggle(d)}if((c=="UL"||c=="DIV"||c=="P")&&b==""){b=a[h].childNodes[f];b.id=n;GovVid_toggle(n)}}}}else{}}function GovVid_in_array(d,c){var a=d.length;for(var b=0;b<a;b++){if(d[b]==c){return true}}return false}function GovVid_getElementsByClassName(h,j,g){var b=new RegExp("(^|\\s)"+h+"(\\s|$)");var j=j||"*";var g=g||document;var a=(j=="*"&&g.all)?g.all:g.getElementsByTagName(j);var d=[];var f;var c=a.length;for(var e=0;e<c;e++){f=a[e];if(b.test(f.className)){d.push(f)}}return d}function GovVid_getParentByClassname(a,c){var b=new RegExp("(^|\\s)"+a+"(\\s|$)");while(c.tagName!="BODY"){if(b.test(c.className)){return c}c=c.parentNode}return false};
