if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api)return jwplayer.api.selectPlayer(a)},$jw=jwplayer;jwplayer.version="5.8.2011",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(a){function b(b){if(!a.utils.exists(b))return;var c=b.indexOf("://"),d=b.indexOf("?");return c>0&&(d<0||d>c)}a.utils=function(){},a.utils.typeOf=function(a){var b=typeof a;return b==="object"&&(a?a instanceof Array&&(b="array"):b="null"),b},a.utils.extend=function(){var b=a.utils.extend.arguments;if(b.length>1){for(var c=1;c<b.length;c++)for(var d in b[c])b[0][d]=b[c][d];return b[0]}return null},a.utils.clone=function(b){var c,d=a.utils.clone.arguments;if(d.length==1)switch(a.utils.typeOf(d[0])){case"object":c={};for(var e in d[0])c[e]=a.utils.clone(d[0][e]);break;case"array":c=[];for(var e in d[0])c[e]=a.utils.clone(d[0][e]);break;default:return d[0]}return c},a.utils.extension=function(a){if(!a)return"";a=a.substring(a.lastIndexOf("/")+1,a.length),a=a.split("?")[0];if(a.lastIndexOf(".")>-1)return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase();return},a.utils.html=function(a,b){a.innerHTML=b},a.utils.wrap=function(a,b){a.parentNode&&a.parentNode.replaceChild(b,a),b.appendChild(a)},a.utils.ajax=function(b,c,d){var e;window.XMLHttpRequest?e=new XMLHttpRequest:e=new ActiveXObject("Microsoft.XMLHTTP"),e.onreadystatechange=function(){if(e.readyState===4)if(e.status===200){if(c){if(!a.utils.exists(e.responseXML))try{if(window.DOMParser){var f=(new DOMParser).parseFromString(e.responseText,"text/xml");f&&(e=a.utils.extend({},e,{responseXML:f}))}else f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(e.responseText),e=a.utils.extend({},e,{responseXML:f})}catch(h){d&&d(b)}c(e)}}else d&&d(b)};try{e.open("GET",b,!0),e.send(null)}catch(f){d&&d(b)}return e},a.utils.load=function(a,b,c){a.onreadystatechange=function(){a.readyState===4&&(a.status===200?b&&b():c&&c())}},a.utils.find=function(a,b){return a.getElementsByTagName(b)},a.utils.append=function(a,b){a.appendChild(b)},a.utils.isIE=function(){return typeof window.ActiveXObject!="undefined"},a.utils.userAgentMatch=function(a){var b=navigator.userAgent.toLowerCase();return b.match(a)!==null},a.utils.isIOS=function(){return a.utils.userAgentMatch(/iP(hone|ad|od)/i)},a.utils.isIPad=function(){return a.utils.userAgentMatch(/iPad/i)},a.utils.isIPod=function(){return a.utils.userAgentMatch(/iP(hone|od)/i)},a.utils.isAndroid=function(){return a.utils.userAgentMatch(/android/i)},a.utils.isLegacyAndroid=function(){return a.utils.userAgentMatch(/android 2.[012]/i)},a.utils.isBlackberry=function(){return a.utils.userAgentMatch(/blackberry/i)},a.utils.isMobile=function(){return a.utils.isIOS()},a.utils.getFirstPlaylistItemFromConfig=function(a){var b={},c;return a.playlist&&a.playlist.length?c=a.playlist[0]:c=a,b.file=c.file,b.levels=c.levels,b.streamer=c.streamer,b.playlistfile=c.playlistfile,b.provider=c.provider,b.provider||(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)&&(b.provider="youtube"),b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0&&(b.provider="rtmp"),c.type&&(b.provider=c.type.toLowerCase())),b.provider=="audio"&&(b.provider="sound"),b},a.utils.getOuterHTML=function(a){if(a.outerHTML)return a.outerHTML;try{return(new XMLSerializer).serializeToString(a)}catch(b){return""}},a.utils.setOuterHTML=function(a,b){if(a.outerHTML)a.outerHTML=b;else{var c=document.createElement("div");c.innerHTML=b;var d=document.createRange();d.selectNodeContents(c);var e=d.extractContents();a.parentNode.insertBefore(e,a),a.parentNode.removeChild(a)}},a.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(a){}return!1},a.utils.getPluginName=function(a){return a.lastIndexOf("/")>=0&&(a=a.substring(a.lastIndexOf("/")+1,a.length)),a.lastIndexOf("-")>=0&&(a=a.substring(0,a.lastIndexOf("-"))),a.lastIndexOf(".swf")>=0&&(a=a.substring(0,a.lastIndexOf(".swf"))),a.lastIndexOf(".js")>=0&&(a=a.substring(0,a.lastIndexOf(".js"))),a},a.utils.getPluginVersion=function(a){return a.lastIndexOf("-")>=0?a.lastIndexOf(".js")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js")):a.lastIndexOf(".swf")>=0?a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf")):a.substring(a.lastIndexOf("-")+1):""},a.utils.getAbsolutePath=function(c,d){a.utils.exists(d)||(d=document.location.href);if(!a.utils.exists(c))return undefined;if(b(c))return c;var e=d.substring(0,d.indexOf("://")+3),f=d.substring(e.length,d.indexOf("/",e.length+1)),g;if(c.indexOf("/")===0)g=c.split("/");else{var h=d.split("?")[0];h=h.substring(e.length+f.length+1,h.lastIndexOf("/")),g=h.split("/").concat(c.split("/"))}var i=[];for(var j=0;j<g.length;j++){if(!g[j]||!a.utils.exists(g[j])||g[j]==".")continue;g[j]==".."?i.pop():i.push(g[j])}return e+f+"/"+i.join("/")},a.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"},a.utils.getPluginPathType=function(b){if(typeof b!="string")return;b=b.split("?")[0];var c=b.indexOf("://");if(c>0)return a.utils.pluginPathType.ABSOLUTE;var d=b.indexOf("/"),e=a.utils.extension(b);return c<0&&d<0&&(!e||!isNaN(e))?a.utils.pluginPathType.CDN:a.utils.pluginPathType.RELATIVE},a.utils.mapEmpty=function(a){for(var b in a)return!1;return!0},a.utils.mapLength=function(a){var b=0;for(var c in a)b++;return b},a.utils.log=function(a,b){typeof console!="undefined"&&typeof console.log!="undefined"&&(b?console.log(a,b):console.log(a))},a.utils.css=function(b,c,d){if(a.utils.exists(b))for(var e in c)try{if(typeof c[e]=="undefined")continue;if(typeof c[e]=="number"&&e!="zIndex"&&e!="opacity"){if(isNaN(c[e]))continue;e.match(/color/i)?c[e]="#"+a.utils.strings.pad(c[e].toString(16),6):c[e]=Math.ceil(c[e])+"px"}b.style[e]=c[e]}catch(f){}},a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1},a.utils.transform=function(b,c,d,e,f){a.utils.exists(c)||(c=1),a.utils.exists(d)||(d=1),a.utils.exists(e)||(e=0),a.utils.exists(f)||(f=0);if(c==1&&d==1&&e==0&&f==0)b.style.webkitTransform="",b.style.MozTransform="",b.style.OTransform="";else{var g="scale("+c+","+d+") translate("+e+"px,"+f+"px)";b.style.webkitTransform=g,b.style.MozTransform=g,b.style.OTransform=g}},a.utils.stretch=function(b,c,d,e,f,g){if(typeof d=="undefined"||typeof e=="undefined"||typeof f=="undefined"||typeof g=="undefined")return;var h=d/f,i=e/g,j=0,k=0,l={};c.parentElement&&(c.parentElement.style.overflow="hidden"),a.utils.transform(c);switch(b.toUpperCase()){case a.utils.stretching.NONE:l.width=f,l.height=g,l.top=(e-l.height)/2,l.left=(d-l.width)/2;break;case a.utils.stretching.UNIFORM:h>i?(l.width=f*i,l.height=g*i):(l.width=f*h,l.height=g*h),l.top=(e-l.height)/2,l.left=(d-l.width)/2;break;case a.utils.stretching.FILL:h>i?(l.width=f*h,l.height=g*h):(l.width=f*i,l.height=g*i),l.top=(e-l.height)/2,l.left=(d-l.width)/2;break;case a.utils.stretching.EXACTFIT:l.width=f,l.height=g;var m=Math.round(f/2*(1-1/h)),n=Math.round(g/2*(1-1/i));a.utils.transform(c,h,i,m,n),l.top=l.left=0;break;default:}a.utils.css(c,l)},a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"},a.utils.deepReplaceKeyName=function(b,c,d){switch(a.utils.typeOf(b)){case"array":for(var e=0;e<b.length;e++)b[e]=a.utils.deepReplaceKeyName(b[e],c,d);break;case"object":for(var f in b){var g=f.replace(new RegExp(c,"g"),d);b[g]=a.utils.deepReplaceKeyName(b[f],c,d),f!=g&&delete b[f]}}return b},a.utils.isInArray=function(a,b){if(!!a&&a instanceof Array){for(var c=0;c<a.length;c++)if(b===a[c])return!0;return!1}return!1},a.utils.exists=function(a){switch(typeof a){case"string":return a.length>0;case"object":return a!==null;case"undefined":return!1}return!0},a.utils.empty=function(a){if(typeof a.hasChildNodes=="function")while(a.hasChildNodes())a.removeChild(a.firstChild)},a.utils.parseDimension=function(a){return typeof a=="string"?a===""?0:a.lastIndexOf("%")>-1?a:parseInt(a.replace("px",""),10):a},a.utils.getDimensions=function(b){return b&&b.style?{x:a.utils.parseDimension(b.style.left),y:a.utils.parseDimension(b.style.top),width:a.utils.parseDimension(b.style.width),height:a.utils.parseDimension(b.style.height)}:{}},a.utils.getElementWidth=function(b){return b?b==document.body?a.utils.parentNode(b).clientWidth:b.clientWidth>0?b.clientWidth:b.style?a.utils.parseDimension(b.style.width):null:null},a.utils.getElementHeight=function(b){return b?b==document.body?a.utils.parentNode(b).clientHeight:b.clientHeight>0?b.clientHeight:b.style?a.utils.parseDimension(b.style.height):null:null},a.utils.timeFormat=function(a){return str="00:00",a>0&&(str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":",str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)),str},a.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0},a.utils.parentNode=function(a){return a?a.parentNode?a.parentNode:a.parentElement?a.parentElement:a:docuemnt.body},a.utils.getBoundingClientRect=function(a){return typeof a.getBoundingClientRect=="function"?a.getBoundingClientRect():{left:a.offsetLeft+document.body.scrollLeft,top:a.offsetTop+document.body.scrollTop,width:a.offsetWidth,height:a.offsetHeight}}}(jwplayer),function(a){a.events=function(){},a.events.COMPLETE="COMPLETE",a.events.ERROR="ERROR"}(jwplayer),function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug,_listeners,_globallisteners;this.resetEventListeners=function(){_listeners={},_globallisteners=[]},this.resetEventListeners(),this.addEventListener=function(type,listener,count){try{jwplayer.utils.exists(_listeners[type])||(_listeners[type]=[]),typeof listener=="string"&&eval("listener = "+listener),_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return!1},this.removeEventListener=function(a,b){if(!_listeners[a])return;try{for(var c=0;c<_listeners[a].length;c++)if(_listeners[a][c].listener.toString()==b.toString()){_listeners[a].splice(c,1);break}}catch(d){jwplayer.utils.log("error",d)}return!1},this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener),_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return!1},this.removeGlobalListener=function(a){if(!_globallisteners[type])return;try{for(var b=0;b<_globallisteners.length;b++)if(_globallisteners[b].listener.toString()==a.toString()){_globallisteners.splice(b,1);break}}catch(c){jwplayer.utils.log("error",c)}return!1},this.sendEvent=function(a,b){jwplayer.utils.exists(b)||(b={}),_debug&&jwplayer.utils.log(a,b);if(typeof _listeners[a]!="undefined")for(var c=0;c<_listeners[a].length;c++){try{_listeners[a][c].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_listeners[a][c].listener)}_listeners[a][c]&&(_listeners[a][c].count===1?delete _listeners[a][c]:_listeners[a][c].count>0&&(_listeners[a][c].count=_listeners[a][c].count-1))}for(var e=0;e<_globallisteners.length;e++){try{_globallisteners[e].listener(b)}catch(d){jwplayer.utils.log("There was an error while handling a listener: "+d.toString(),_globallisteners[e].listener)}_globallisteners[e]&&(_globallisteners[e].count===1?delete _globallisteners[e]:_globallisteners[e].count>0&&(_globallisteners[e].count=_globallisteners[e].count-1))}}}}(jwplayer),function(a){var b={};a.utils.animations=function(){},a.utils.animations.transform=function(a,b){a.style.webkitTransform=b,a.style.MozTransform=b,a.style.OTransform=b,a.style.msTransform=b},a.utils.animations.transformOrigin=function(a,b){a.style.webkitTransformOrigin=b,a.style.MozTransformOrigin=b,a.style.OTransformOrigin=b,a.style.msTransformOrigin=b},a.utils.animations.rotate=function(b,c){a.utils.animations.transform(b,["rotate(",c,"deg)"].join(""))},a.utils.cancelAnimation=function(a){delete b[a.id]},a.utils.fadeTo=function(c,d,e,f,g,h){if(b[c.id]!=h&&a.utils.exists(h))return;if(c.style.opacity==d)return;var i=(new Date).getTime();h>i&&setTimeout(function(){a.utils.fadeTo(c,d,e,f,0,h)},h-i),c.style.display=="none"&&(c.style.display="block"),a.utils.exists(f)||(f=c.style.opacity===""?1:c.style.opacity);if(c.style.opacity==d&&c.style.opacity!==""&&a.utils.exists(h)){d===0&&(c.style.display="none");return}a.utils.exists(h)||(h=i,b[c.id]=h),a.utils.exists(g)||(g=0);var j=e>0?(i-h)/(e*1e3):0;j=j>1?1:j;var k=d-f,l=f+j*k;l>1?l=1:l<0&&(l=0),c.style.opacity=l;if(g>0){b[c.id]=h+g*1e3,a.utils.fadeTo(c,d,e,f,0,b[c.id]);return}setTimeout(function(){a.utils.fadeTo(c,d,e,f,0,h)},10)}}(jwplayer),function(a){a.utils.arrays=function(){},a.utils.arrays.indexOf=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1},a.utils.arrays.remove=function(b,c){var d=a.utils.arrays.indexOf(b,c);d>-1&&b.splice(d,1)}}(jwplayer),function(a){a.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(a){function d(c,d){return a.utils.exists(d)?a.utils.extend(d,b[c]):d=b[c],d}function e(b,e){if(c[b.tagName.toLowerCase()]&&!a.utils.exists(e))return c[b.tagName.toLowerCase()](b);e=d("element",e);var f={};for(var g in e)if(g!="length"){var h=b.getAttribute(g);a.utils.exists(h)&&(f[e[g]]=h)}var i=b.style["#background-color"];return i&&i!="transparent"&&i!="rgba(0, 0, 0, 0)"&&(f.screencolor=i),f}function f(b,c){c=d("media",c);var f=[],h=a.utils.selectors("source",b);for(var i in h)isNaN(i)||f.push(g(h[i]));var j=e(b,c);return a.utils.exists(j.file)&&(f[0]={file:j.file}),j.levels=f,j}function g(a,b){b=d("source",b);var c=e(a,b);return c.width=c.width?c.width:0,c.bitrate=c.bitrate?c.bitrate:0,c}function h(a,b){b=d("video",b);var c=f(a,b);return c}a.utils.mediaparser=function(){};var b={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},c={};a.utils.mediaparser.parseMedia=function(a){return e(a)},c.media=f,c.audio=f,c.source=g,c.video=h}(jwplayer),function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"},a.utils.scriptloader=function(b){var c=a.utils.loaderstatus.NEW,d=new a.events.eventdispatcher;a.utils.extend(this,d),this.load=function(){if(c==a.utils.loaderstatus.NEW){c=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(b){c=a.utils.loaderstatus.COMPLETE,d.sendEvent(a.events.COMPLETE)},e.onerror=function(b){c=a.utils.loaderstatus.ERROR,d.sendEvent(a.events.ERROR)},e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete")c=a.utils.loaderstatus.COMPLETE,d.sendEvent(a.events.COMPLETE)},document.getElementsByTagName("head")[0].appendChild(e),e.src=b}},this.getStatus=function(){return c}}}(jwplayer),function(a){a.utils.selectors=function(b,c){a.utils.exists(c)||(c=document),b=a.utils.strings.trim(b);var d=b.charAt(0);if(d=="#")return c.getElementById(b.substr(1));if(d==".")return c.getElementsByClassName?c.getElementsByClassName(b.substr(1)):a.utils.selectors.getElementsByTagAndClass("*",b.substr(1));if(b.indexOf(".")>0){var e=b.split(".");return a.utils.selectors.getElementsByTagAndClass(e[0],e[1])}return c.getElementsByTagName(b)},a.utils.selectors.getElementsByTagAndClass=function(b,c,d){var e=[];a.utils.exists(d)||(d=document);var f=d.getElementsByTagName(b);for(var g=0;g<f.length;g++)if(a.utils.exists(f[g].className)){var h=f[g].className.split(" ");for(var i=0;i<h.length;i++)h[i]==c&&e.push(f[g])}return e}}(jwplayer),function(a){a.utils.strings=function(){},a.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")},a.utils.strings.pad=function(a,b,c){c||(c="0");while(a.length<b)a=c+a;return a},a.utils.strings.serialize=function(a){return a==null?null:a=="true"?!0:a=="false"?!1:isNaN(Number(a))||a.length>5||a.length==0?a:Number(a)},a.utils.strings.seconds=function(a){a=a.replace(",",".");var b=a.split(":"),c=0;return a.substr(-1)=="s"?c=Number(a.substr(0,a.length-1)):a.substr(-1)=="m"?c=Number(a.substr(0,a.length-1))*60:a.substr(-1)=="h"?c=Number(a.substr(0,a.length-1))*3600:b.length>1?(c=Number(b[b.length-1]),c+=Number(b[b.length-2])*60,b.length==3&&(c+=Number(b[b.length-3])*3600)):c=Number(a),c},a.utils.strings.xmlAttribute=function(a,b){for(var c=0;c<a.attributes.length;c++)if(a.attributes[c].name&&a.attributes[c].name.toLowerCase()==b.toLowerCase())return a.attributes[c].value.toString();return""},a.utils.strings.jsonToString=function(b){var c=c||{};if(c&&c.stringify)return c.stringify(b);var d=typeof b;if(d=="object"&&b!==null){var e=[],f=b&&b.constructor==Array;for(var g in b){var h=b[g];switch(typeof h){case"string":h='"'+h.replace(/"/g,'\\"')+'"';break;case"object":a.utils.exists(h)&&(h=a.utils.strings.jsonToString(h))}f?typeof h!="function"&&e.push(String(h)):typeof h!="function"&&e.push('"'+g+'":'+String(h))}return f?"["+String(e)+"]":"{"+String(e)+"}"}if(d!="string")return String(b);b='"'+b.replace(/"/g,'\\"')+'"'}}(jwplayer),function(a){function c(a){var c=["true","false","t","f"];return c.toString().indexOf(a.toLowerCase().replace(" ",""))>=0?"boolean":b.test(a)?"color":!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length?"integer":!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length?"float":"string"}function d(b,c){if(!a.utils.exists(c))return b;switch(c){case"color":if(b.length>0)return e(b);return null;case"integer":return parseInt(b,10);case"float":return parseFloat(b);case"boolean":if(b.toLowerCase()=="true")return!0;if(b=="1")return!0;return!1}return b}function e(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)}return parseInt("000000",16)}var b=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.utils.typechecker=function(b,e){return e=a.utils.exists(e)?e:c(b),d(b,e)}}(jwplayer),function(a){a.utils.parsers=function(){},a.utils.parsers.localName=function(a){return a?a.localName?a.localName:a.baseName?a.baseName:"":""},a.utils.parsers.textContent=function(a){return a?a.textContent?a.textContent:a.text?a.text:"":""}}(jwplayer),function(a){a.utils.parsers.jwparser=function(){},a.utils.parsers.jwparser.PREFIX="jwplayer",a.utils.parsers.jwparser.parseEntry=function(b,c){for(var d=0;d<b.childNodes.length;d++)b.childNodes[d].prefix==a.utils.parsers.jwparser.PREFIX&&(c[a.utils.parsers.localName(b.childNodes[d])]=a.utils.strings.serialize(a.utils.parsers.textContent(b.childNodes[d]))),!c.file&&String(c.link).toLowerCase().indexOf("youtube")>-1&&(c.file=c.link);return c},a.utils.parsers.jwparser.getProvider=function(b){if(b.type)return b.type;if(b.file.indexOf("youtube.com/w")>-1||b.file.indexOf("youtube.com/v")>-1||b.file.indexOf("youtu.be/")>-1)return"youtube";if(b.streamer&&b.streamer.indexOf("rtmp")==0)return"rtmp";if(b.streamer&&b.streamer.indexOf("http")==0)return"http";var c=a.utils.strings.extension(b.file);return extensions.hasOwnProperty(c)?extensions[c]:""}}(jwplayer),function(a){a.utils.parsers.mediaparser=function(){},a.utils.parsers.mediaparser.PREFIX="media",a.utils.parsers.mediaparser.parseGroup=function(b,c){var d=!1;for(var e=0;e<b.childNodes.length;e++)if(b.childNodes[e].prefix==a.utils.parsers.mediaparser.PREFIX){if(!a.utils.parsers.localName(b.childNodes[e]))continue;switch(a.utils.parsers.localName(b.childNodes[e]).toLowerCase()){case"content":d||(c.file=a.utils.strings.xmlAttribute(b.childNodes[e],"url")),a.utils.strings.xmlAttribute(b.childNodes[e],"duration")&&(c.duration=a.utils.strings.seconds(a.utils.strings.xmlAttribute(b.childNodes[e],"duration"))),a.utils.strings.xmlAttribute(b.childNodes[e],"start")&&(c.start=a.utils.strings.seconds(a.utils.strings.xmlAttribute(b.childNodes[e],"start"))),b.childNodes[e].childNodes&&b.childNodes[e].childNodes.length>0&&(c=a.utils.parsers.mediaparser.parseGroup(b.childNodes[e],c));if(a.utils.strings.xmlAttribute(b.childNodes[e],"width")||a.utils.strings.xmlAttribute(b.childNodes[e],"bitrate")||a.utils.strings.xmlAttribute(b.childNodes[e],"url"))c.levels||(c.levels=[]),c.levels.push({width:a.utils.strings.xmlAttribute(b.childNodes[e],"width"),bitrate:a.utils.strings.xmlAttribute(b.childNodes[e],"bitrate"),file:a.utils.strings.xmlAttribute(b.childNodes[e],"url")});break;case"title":c.title=a.utils.parsers.textContent(b.childNodes[e]);break;case"description":c.description=a.utils.parsers.textContent(b.childNodes[e]);break;case"keywords":c.tags=a.utils.parsers.textContent(b.childNodes[e]);break;case"thumbnail":c.image=a.utils.strings.xmlAttribute(b.childNodes[e],"url");break;case"credit":c.author=a.utils.parsers.textContent(b.childNodes[e]);break;case"player":var f=b.childNodes[e].url;if(f.indexOf("youtube.com")>=0||f.indexOf("youtu.be")>=0)d=!0,c.file=a.utils.strings.xmlAttribute(b.childNodes[e],"url");break;case"group":a.utils.parsers.mediaparser.parseGroup(b.childNodes[e],c)}}return c}}(jwplayer),function(a){function b(b){var c={};for(var d=0;d<b.childNodes.length;d++){if(!a.utils.parsers.localName(b.childNodes[d]))continue;switch(a.utils.parsers.localName(b.childNodes[d]).toLowerCase()){case"enclosure":c.file=a.utils.strings.xmlAttribute(b.childNodes[d],"url");break;case"title":c.title=a.utils.parsers.textContent(b.childNodes[d]);break;case"pubdate":c.date=a.utils.parsers.textContent(b.childNodes[d]);break;case"description":c.description=a.utils.parsers.textContent(b.childNodes[d]);break;case"link":c.link=a.utils.parsers.textContent(b.childNodes[d]);break;case"category":c.tags?c.tags+=a.utils.parsers.textContent(b.childNodes[d]):c.tags=a.utils.parsers.textContent(b.childNodes[d])}}return c=a.utils.parsers.mediaparser.parseGroup(b,c),c=a.utils.parsers.jwparser.parseEntry(b,c),new a.html5.playlistitem(c)}a.utils.parsers.rssparser=function(){},a.utils.parsers.rssparser.parse=function(c){var d=[];for(var e=0;e<c.childNodes.length;e++)if(a.utils.parsers.localName(c.childNodes[e]).toLowerCase()=="channel")for(var f=0;f<c.childNodes[e].childNodes.length;f++)a.utils.parsers.localName(c.childNodes[e].childNodes[f]).toLowerCase()=="item"&&d.push(b(c.childNodes[e].childNodes[f]));return d}}(jwplayer),function(a){var b={},c={};a.plugins=function(){},a.plugins.loadPlugins=function(d,e){return c[d]=new a.plugins.pluginloader(new a.plugins.model(b),e),c[d]},a.plugins.registerPlugin=function(d,e,f){var g=a.utils.getPluginName(d);if(b[g])b[g].registerPlugin(d,e,f);else{a.utils.log("A plugin ("+d+") was registered with the player that was not loaded. Please check your configuration.");for(var h in c)c[h].pluginFailed()}}}(jwplayer),function(a){a.plugins.model=function(b){this.addPlugin=function(c){var d=a.utils.getPluginName(c);return b[d]||(b[d]=new a.plugins.plugin(c)),b[d]}}}(jwplayer),function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"},a.plugins.plugin=function(b){function i(){switch(a.utils.getPluginPathType(b)){case a.utils.pluginPathType.ABSOLUTE:return b;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(b,window.location.href);case a.utils.pluginPathType.CDN:var d=a.utils.getPluginName(b),e=a.utils.getPluginVersion(b),f=window.location.href.indexOf("https://")==0?c.replace("http://","https://secure"):c;return f+"/"+a.version.split(".")[0]+"/"+d+"/"+d+(e!==""?"-"+e:"")+".js"}}function j(b){g=setTimeout(function(){d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE)},1e3)}function k(b){d=a.utils.loaderstatus.ERROR,h.sendEvent(a.events.ERROR)}var c="http://plugins.longtailvideo.com",d=a.utils.loaderstatus.NEW,e,f,g,h=new a.events.eventdispatcher;a.utils.extend(this,h),this.load=function(){if(d==a.utils.loaderstatus.NEW){if(b.lastIndexOf(".swf")>0){e=b,d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE);return}d=a.utils.loaderstatus.LOADING;var c=new a.utils.scriptloader(i());c.addEventListener(a.events.COMPLETE,j),c.addEventListener(a.events.ERROR,k),c.load()}},this.registerPlugin=function(b,c,i){g&&(clearTimeout(g),g=undefined),c&&i?(e=i,f=c):typeof c=="string"?e=c:typeof c=="function"?f=c:!c&&!i&&(e=b),d=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE)},this.getStatus=function(){return d},this.getPluginName=function(){return a.utils.getPluginName(b)},this.getFlashPath=function(){if(e)switch(a.utils.getPluginPathType(e)){case a.utils.pluginPathType.ABSOLUTE:return e;case a.utils.pluginPathType.RELATIVE:if(b.lastIndexOf(".swf")>0)return a.utils.getAbsolutePath(e,window.location.href);return a.utils.getAbsolutePath(e,i());case a.utils.pluginPathType.CDN:if(e.indexOf("-")>-1)return e+"h";return e+"-h"}return null},this.getJS=function(){return f},this.getPluginmode=function(){if(typeof e!="undefined"&&typeof f!="undefined")return a.plugins.pluginmodes.HYBRID;if(typeof e!="undefined")return a.plugins.pluginmodes.FLASH;if(typeof f!="undefined")return a.plugins.pluginmodes.JAVASCRIPT},this.getNewInstance=function(a,b,c){return new f(a,b,c)},this.getURL=function(){return b}}}(jwplayer),function(a){a.plugins.pluginloader=function(b,c){function i(){g||(g=!0,e=a.utils.loaderstatus.COMPLETE,h.sendEvent(a.events.COMPLETE))}function j(){if(!g){var b=0;for(plugin in d){var c=d[plugin].getStatus();(c==a.utils.loaderstatus.LOADING||c==a.utils.loaderstatus.NEW)&&b++}b==0&&i()}}var d={},e=a.utils.loaderstatus.NEW,f=!1,g=!1,h=new a.events.eventdispatcher;a.utils.extend(this,h),this.setupPlugins=function(a,b,c){var e={length:0,plugins:{}},f={length:0,plugins:{}};for(var g in d){var h=d[g].getPluginName();d[g].getFlashPath()&&(e.plugins[d[g].getFlashPath()]=b.plugins[g],e.plugins[d[g].getFlashPath()].pluginmode=d[g].getPluginmode(),e.length++);if(d[g].getJS()){var i=document.createElement("div");i.id=a.id+"_"+h,i.style.position="absolute",i.style.zIndex=f.length+10,f.plugins[h]=d[g].getNewInstance(a,b.plugins[g],i),f.length++,typeof f.plugins[h].resize!="undefined"&&(a.onReady(c(f.plugins[h],i,!0)),a.onResize(c(f.plugins[h],i)))}}return a.plugins=f.plugins,e},this.load=function(){e=a.utils.loaderstatus.LOADING,f=!0;for(var g in c)a.utils.exists(g)&&(d[g]=b.addPlugin(g),d[g].addEventListener(a.events.COMPLETE,j),d[g].addEventListener(a.events.ERROR,j));for(g in d)d[g].load();f=!1,j()},this.pluginFailed=function(){i()},this.getStatus=function(){return e}}}(jwplayer),function(a){var b=[];a.api=function(b){function m(a,b){return function(c,d,e,f){if(a.renderingMode=="flash"||a.renderingMode=="html5"){var h;d?(l[c]=d,h="jwplayer('"+a.id+"').callback('"+c+"')"):!d&&l[c]&&delete l[c],g.jwDockSetButton(c,h,e,f)}return b}}function n(a){return function(b){var c=b.newstate,e=b.oldstate;if(c==a){var f=d[c];if(f)for(var g=0;g<f.length;g++)typeof f[g]=="function"&&f[g].call(this,{oldstate:e,newstate:c})}}}function o(a,b){return function(c){if(a==c.component){var d=e[a][b];if(d)for(var f=0;f<d.length;f++)typeof d[f]=="function"&&d[f].call(this,c)}}}function p(b,c){var d=a.utils.extend({},c);b==a.api.events.JWPLAYER_FULLSCREEN&&!d.fullscreen?(d.fullscreen=d.message=="true"?!0:!1,delete d.message):typeof d.data=="object"&&(d=a.utils.extend(d,d.data),delete d.data);var e=["position","duration","offset"];for(var f in e)d[e[f]]&&(d[e[f]]=Math.round(d[e[f]]*1e3)/1e3);return d}function q(a,b,c){var d=[];b||(b=0),c||(c=a.length-1);for(var e=b;e<=c;e++)d.push(a[e]);return d}this.container=b,this.id=b.id;var c={},d={},e={},f=[],g=undefined,h=!1,i=[],j=a.utils.getOuterHTML(b),k={},l={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(b){var c=this,d={};return b=="dock"?a.utils.extend(d,{setButton:m(c,d),show:function(){return c.callInternal("jwDockShow"),d},hide:function(){return c.callInternal("jwDockHide"),d},onShow:function(b){return c.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_SHOW,b),d},onHide:function(b){return c.componentListener("dock",a.api.events.JWPLAYER_COMPONENT_HIDE,b),d}}):b=="controlbar"?a.utils.extend(d,{show:function(){return c.callInternal("jwControlbarShow"),d},hide:function(){return c.callInternal("jwControlbarHide"),d},onShow:function(b){return c.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_SHOW,b),d},onHide:function(b){return c.componentListener("controlbar",a.api.events.JWPLAYER_COMPONENT_HIDE,b),d}}):b=="display"?a.utils.extend(d,{show:function(){return c.callInternal("jwDisplayShow"),d},hide:function(){return c.callInternal("jwDisplayHide"),d},onShow:function(b){return c.componentListener("display",a.api.events.JWPLAYER_COMPONENT_SHOW,b),d},onHide:function(b){return c.componentListener("display",a.api.events.JWPLAYER_COMPONENT_HIDE,b),d}}):this.plugins[b]},this.callback=function(a){if(l[a])return l[a]()},this.getDuration=function(){return this.callInternal("jwGetDuration")},this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")},this.getHeight=function(){return this.callInternal("jwGetHeight")},this.getLockState=function(){return this.callInternal("jwGetLockState")},this.getMeta=function(){return this.getItemMeta()},this.getMute=function(){return this.callInternal("jwGetMute")},this.getPlaylist=function(){var b=this.callInternal("jwGetPlaylist");this.renderingMode=="flash"&&a.utils.deepReplaceKeyName(b,"__dot__",".");for(var c=0;c<b.length;c++)a.utils.exists(b[c].index)||(b[c].index=c);return b},this.getPlaylistItem=function(b){return a.utils.exists(b)||(b=this.getCurrentItem()),this.getPlaylist()[b]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(b){return a.utils.exists(b)?this.callInternal("jwSetFullscreen",b):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")),this},this.setMute=function(b){return a.utils.exists(b)?this.callInternal("jwSetMute",b):this.callInternal("jwSetMute",!this.callInternal("jwGetMute")),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(a){return this.callInternal("jwLoad",a),this},this.playlistItem=function(a){return this.callInternal("jwPlaylistItem",a),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(a,b){if(this.renderingMode=="html5")g.jwResize(a,b);else{this.container.width=a,this.container.height=b;var c=document.getElementById(this.id+"_wrapper");c&&(c.style.width=a+"px",c.style.height=b+"px")}return this},this.play=function(b){return typeof b=="undefined"?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",b),this},this.pause=function(b){return typeof b=="undefined"?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",b),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(a){return this.callInternal("jwSeek",a),this},this.setVolume=function(a){return this.callInternal
("jwSetVolume",a),this},this.onBufferChange=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,b)},this.onBufferFull=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)},this.onError=function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)},this.onFullscreen=function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)},this.onMeta=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,b)},this.onMute=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)},this.onPlaylist=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,b)},this.onPlaylistItem=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)},this.onReady=function(b){return this.eventListener(a.api.events.API_READY,b)},this.onResize=function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)},this.onComplete=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,b)},this.onSeek=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_SEEK,b)},this.onTime=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)},this.onVolume=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,b)},this.onBuffer=function(b){return this.stateListener(a.api.events.state.BUFFERING,b)},this.onPause=function(b){return this.stateListener(a.api.events.state.PAUSED,b)},this.onPlay=function(b){return this.stateListener(a.api.events.state.PLAYING,b)},this.onIdle=function(b){return this.stateListener(a.api.events.state.IDLE,b)},this.remove=function(){c={},i=[],a.utils.getOuterHTML(this.container)!=j&&a.api.destroyPlayer(this.id,j)},this.setup=function(b){if(a.embed){var c=this.id;this.remove();var d=a(c);return d.config=b,new a.embed(d)}return this},this.registerPlugin=function(b,c,d){a.plugins.registerPlugin(b,c,d)},this.setPlayer=function(a,b){g=a,this.renderingMode=b},this.stateListener=function(b,c){return d[b]||(d[b]=[],this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,n(b))),d[b].push(c),this},this.detachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwDetachMedia")},this.attachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwAttachMedia")},this.componentListener=function(a,b,c){return e[a]||(e[a]={}),e[a][b]||(e[a][b]=[],this.eventListener(b,o(a,b))),e[a][b].push(c),this},this.addInternalListener=function(a,b){a.jwAddEventListener(b,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')},this.eventListener=function(a,b){return c[a]||(c[a]=[],g&&h&&this.addInternalListener(g,a)),c[a].push(b),this},this.dispatchEvent=function(a){if(c[a]){var b=p(a,arguments[1]);for(var d=0;d<c[a].length;d++)typeof c[a][d]=="function"&&c[a][d].call(this,b)}},this.callInternal=function(b,c){if(h)return typeof g!="undefined"&&typeof g[b]=="function"?a.utils.exists(c)?g[b](c):g[b]():null;i.push({method:b,parameters:c})},this.playerReady=function(b){h=!0,g||this.setPlayer(document.getElementById(b.id)),this.container=document.getElementById(this.id);for(var d in c)this.addInternalListener(g,d);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(a){k={}}),this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(k,b.metadata)}),this.dispatchEvent(a.api.events.API_READY);while(i.length>0){var e=i.shift();this.callInternal(e.method,e.parameters)}},this.getItemMeta=function(){return k},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this},a.api.selectPlayer=function(b){var c;a.utils.exists(b)||(b=0),b.nodeType?c=b:typeof b=="string"&&(c=document.getElementById(b));if(c){var d=a.api.playerById(c.id);return d?d:a.api.addPlayer(new a.api(c))}return typeof b=="number"?a.getPlayers()[b]:null},a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"},a.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},a.api.playerById=function(a){for(var c=0;c<b.length;c++)if(b[c].id==a)return b[c];return null},a.api.addPlayer=function(a){for(var c=0;c<b.length;c++)if(b[c]==a)return a;return b.push(a),a},a.api.destroyPlayer=function(c,d){var e=-1;for(var f=0;f<b.length;f++)if(b[f].id==c){e=f;continue}if(e>=0){var g=document.getElementById(b[e].id);document.getElementById(b[e].id+"_wrapper")&&(g=document.getElementById(b[e].id+"_wrapper"));if(g)if(d)a.utils.setOuterHTML(g,d);else{var h=document.createElement("div"),i=g.id;g.id.indexOf("_wrapper")==g.id.length-8&&(newID=g.id.substring(0,g.id.length-8)),h.setAttribute("id",i),g.parentNode.replaceChild(h,g)}b.splice(e,1)}return null},a.getPlayers=function(){return b.slice(0)}}(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:undefined;playerReady=function(a){var b=jwplayer.api.playerById(a.id);b?b.playerReady(a):jwplayer.api.selectPlayer(a.id).playerReady(a),_userPlayerReady&&_userPlayerReady.call(this,a)},function(a){function c(){if(!document.body)return setTimeout(c,15);var d=b.selectors.getElementsByTagAndClass("video","jwplayer");for(var e=0;e<d.length;e++){var f=d[e];f.id==""&&(f.id="jwplayer_"+Math.round(Math.random()*1e5)),a(f.id).setup({})}}var b=a.utils;a.embed=function(c){function h(a,b){for(var c in b)typeof a[c]=="function"&&a[c].call(a,b[c])}function i(){if(g.getStatus()==b.loaderstatus.COMPLETE){for(var d=0;d<f.modes.length;d++)if(f.modes[d].type&&a.embed[f.modes[d].type]){var e=f.modes[d].config,i=f;if(e){i=b.extend(b.clone(f),e);var k=["file","levels","playlist"];for(var l=0;l<k.length;l++){var m=k[l];if(b.exists(e[m]))for(var n=0;n<k.length;n++)if(n!=l){var o=k[n];b.exists(i[o])&&!b.exists(e[o])&&delete i[o]}}}var p=new a.embed[f.modes[d].type](document.getElementById(c.id),f.modes[d],i,g,c);if(p.supportsConfig())return p.embed(),h(c,f.events),c}b.log("No suitable players found"),new a.embed.logo(b.extend({hide:!0},f.components.logo),"none",c.id)}}var d={width:400,height:300,components:{controlbar:{position:"over"}}},e=b.mediaparser.parseMedia(c.container),f=new a.embed.config(b.extend(d,e,c.config),this),g=a.plugins.loadPlugins(c.id,f.plugins);return g.addEventListener(a.events.COMPLETE,i),g.addEventListener(a.events.ERROR,i),g.load(),c},c()}(jwplayer),function(a){function b(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function d(a){var b=a.toLowerCase(),c=["left","right","top","bottom"];for(var d=0;d<c.length;d++)if(b==c[d])return!0;return!1}function e(a){var b=!1;return b=a instanceof Array||typeof a=="object"&&!a.position&&!a.size,b}function f(a){if(typeof a=="string")if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1)return parseInt(a);return a}function h(b){var c={};switch(a.utils.typeOf(b.plugins)){case"object":for(var d in b.plugins)c[a.utils.getPluginName(d)]=d;break;case"string":var e=b.plugins.split(",");for(var f=0;f<e.length;f++)c[a.utils.getPluginName(e[f])]=e[f]}return c}function i(b,c,d,e){a.utils.typeOf(b[c])!="object"&&(b[c]={});var f=b[c][d];a.utils.typeOf(f)!="object"&&(b[c][d]=f={});if(e)if(c=="plugins"){var g=a.utils.getPluginName(d);f[e]=b[g+"."+e],delete b[g+"."+e]}else f[e]=b[d+"."+e],delete b[d+"."+e]}var c={players:"modes",autoplay:"autostart"},g=["playlist","dock","controlbar","logo","display"];a.embed.deserialize=function(b){var c=h(b);for(var d in c)i(b,"plugins",c[d]);for(var e in b)if(e.indexOf(".")>-1){var f=e.split("."),j=f[0],e=f[1];a.utils.isInArray(g,j)?i(b,"components",j,e):c[j]&&i(b,"plugins",c[j],e)}return b},a.embed.config=function(d,h){var i=a.utils.extend({},d),k;e(i.playlist)&&(k=i.playlist,delete i.playlist),i=a.embed.deserialize(i),i.height=f(i.height),i.width=f(i.width);if(typeof i.plugins=="string"){var l=i.plugins.split(",");typeof i.plugins!="object"&&(i.plugins={});for(var m=0;m<l.length;m++){var n=a.utils.getPluginName(l[m]);typeof i[n]=="object"?(i.plugins[l[m]]=i[n],delete i[n]):i.plugins[l[m]]={}}}for(var o=0;o<g.length;o++){var p=g[o];a.utils.exists(i[p])&&(typeof i[p]!="object"?(i.components[p]||(i.components[p]={}),p=="logo"?i.components[p].file=i[p]:i.components[p].position=i[p],delete i[p]):(i.components[p]||(i.components[p]={}),a.utils.extend(i.components[p],i[p]),delete i[p])),typeof i[p+"size"]!="undefined"&&(i.components[p]||(i.components[p]={}),i.components[p].size=i[p+"size"],delete i[p+"size"])}typeof i.icons!="undefined"&&(i.components.display||(i.components.display={}),i.components.display.icons=i.icons,delete i.icons);for(var q in c)i[q]&&(i[c[q]]||(i[c[q]]=i[q]),delete i[q]);var r;return i.flashplayer&&!i.modes?(r=b(),r[0].src=i.flashplayer,delete i.flashplayer):i.modes?(typeof i.modes=="string"?(r=b(),r[0].src=i.modes):i.modes instanceof Array?r=i.modes:typeof i.modes=="object"&&i.modes.type&&(r=[i.modes]),delete i.modes):r=b(),i.modes=r,k&&(i.playlist=k),i}}(jwplayer),function(a){a.embed.download=function(b,c,d,e,f){function g(b,c,d){if(d)return!1;var e=["image","sound","youtube","http"];if(c&&e.toString().indexOf(c)>-1)return!0;if(!c||c&&c=="video"){var f=a.utils.extension(b);if(f&&a.utils.extensionmap[f])return!0}return!1}this.embed=function(){function o(a){_imageWidth=e.display_image.naturalWidth,_imageHeight=e.display_image.naturalHeight,p()}function p(){a.utils.stretch(a.utils.stretching.UNIFORM,e.display_image,g,h,_imageWidth,_imageHeight)}var c=a.utils.extend({},d),e={},g=d.width?d.width:480;typeof g!="number"&&(g=parseInt(g,10));var h=d.height?d.height:320;typeof h!="number"&&(h=parseInt(h,10));var i,j,k,l={};d.playlist&&d.playlist.length?(l.file=d.playlist[0].file,j=d.playlist[0].image,l.levels=d.playlist[0].levels):(l.file=d.file,j=d.image,l.levels=d.levels),l.file?i=l.file:l.levels&&l.levels.length&&(i=l.levels[0].file),k=i?"pointer":"auto";var m={display:{style:{cursor:k,width:g,height:h,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:k,position:"absolute",display:i?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:k,position:"absolute",display:i?"block":"none",top:(h-50)/2,left:(g-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:g,height:h,display:j?"block":"none",position:"absolute",cursor:k,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},n=function(c,d,e){var f=document.createElement(c);return e?f.id=e:f.id=b.id+"_jwplayer_"+d,a.utils.css(f,m[d].style),f};e.display=n("a","display",b.id),i&&e.display.setAttribute("href",a.utils.getAbsolutePath(i)),e.display_image=n("img","display_image"),e.display_image.setAttribute("alt","Click to download..."),j&&e.display_image.setAttribute("src",a.utils.getAbsolutePath(j)),e.display_icon=n("div","display_icon"),e.display_iconBackground=n("div","display_iconBackground"),e.display.appendChild(e.display_image),e.display_iconBackground.appendChild(e.display_icon),e.display.appendChild(e.display_iconBackground),_css=a.utils.css,_hide=function(a){_css(a,{display:"none"})},e.display_image.onerror=function(a){_hide(e.display_image)},e.display_image.onload=o,b.parentNode.replaceChild(e.display,b);var q=d.plugins&&d.plugins.logo?d.plugins.logo:{};e.display.appendChild(new a.embed.logo(d.components.logo,"download",b.id)),f.container=document.getElementById(f.id),f.setPlayer(e.display,"download")},this.supportsConfig=function(){if(!d)return!0;var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return!0;if(b.file)return g(b.file,b.provider,b.playlistfile);if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&g(b.levels[c].file,b.provider,b.playlistfile))return!0}}}(jwplayer),function(a){a.embed.flash=function(b,c,d,e,f){function g(a,b,c){var d=document.createElement("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function h(b,c,d){return function(e){d&&document.getElementById(f.id+"_wrapper").appendChild(c);var g=document.getElementById(f.id).getPluginConfig("display");b.resize(g.width,g.height);var h={left:g.x,top:g.y};a.utils.css(c,h)}}function i(a){if(!a)return{};var b={};for(var c in a){var d=a[c];for(var e in d)b[c+"."+e]=d[e]}return b}function j(a,b){if(a[b]){var c=a[b];for(var d in c){var e=c[d];if(typeof e=="string")a[d]||(a[d]=e);else for(var f in e)a[d+"."+f]||(a[d+"."+f]=e[f])}delete a[b]}}function k(b){if(!b)return{};var c={},d=[];for(var e in b){var f=a.utils.getPluginName(e),g=b[e];d.push(e);for(var h in g)c[f+"."+h]=g[h]}return c.plugins=d.join(","),c}function l(b){var c=b.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var d in b)typeof b[d]=="object"?c+=d+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(b[d]))+"&":c+=d+"="+encodeURIComponent(b[d])+"&";return c.substring(0,c.length-1)}this.embed=function(){d.id=f.id;var i,n=a.utils.extend({},d),o=n.width,p=n.height;b.id+"_wrapper"==b.parentNode.id?i=document.getElementById(b.id+"_wrapper"):(i=document.createElement("div"),i.id=b.id+"_wrapper",a.utils.wrap(b,i),a.utils.css(i,{position:"relative",width:o,height:p}));var q=e.setupPlugins(f,n,h);q.length>0?a.utils.extend(n,k(q.plugins)):delete n.plugins;var r=["height","width","modes","events"];for(var s=0;s<r.length;s++)delete n[r[s]];var t="opaque";n.wmode&&(t=n.wmode),j(n,"components"),j(n,"providers"),typeof n["dock.position"]!="undefined"&&n["dock.position"].toString().toLowerCase()=="false"&&(n.dock=n["dock.position"],delete n["dock.position"]);var u="#000000",v;if(a.utils.isIE()){var w='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+u+'" width="100%" height="100%" id="'+b.id+'" name="'+b.id+'" tabindex=0"">';w+='<param name="movie" value="'+c.src+'">',w+='<param name="allowfullscreen" value="true">',w+='<param name="allowscriptaccess" value="always">',w+='<param name="seamlesstabbing" value="true">',w+='<param name="wmode" value="'+t+'">',w+='<param name="flashvars" value="'+l(n)+'">',w+="</object>",a.utils.setOuterHTML(b,w),v=document.getElementById(b.id)}else{var x=document.createElement("object");x.setAttribute("type","application/x-shockwave-flash"),x.setAttribute("data",c.src),x.setAttribute("width","100%"),x.setAttribute("height","100%"),x.setAttribute("bgcolor","#000000"),x.setAttribute("id",b.id),x.setAttribute("name",b.id),x.setAttribute("tabindex",0),g(x,"allowfullscreen","true"),g(x,"allowscriptaccess","always"),g(x,"seamlesstabbing","true"),g(x,"wmode",t),g(x,"flashvars",l(n)),b.parentNode.replaceChild(x,b),v=x}f.container=v,f.setPlayer(v,"flash")},this.supportsConfig=function(){if(a.utils.hasFlash()){if(!d)return!0;var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return!0;if(b.file)return flashCanPlay(b.file,b.provider);if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&flashCanPlay(b.levels[c].file,b.provider))return!0}return!1},flashCanPlay=function(b,c){var d=["video","http","sound","image"];if(c&&d.toString().indexOf(c<0))return!0;var e=a.utils.extension(b);return e?a.utils.exists(a.utils.extensionmap[e])&&!a.utils.exists(a.utils.extensionmap[e].flash)?!1:!0:!0}}}(jwplayer),function(a){a.embed.html5=function(b,c,d,e,f){function g(a,c,d){return function(e){var f=document.getElementById(b.id+"_displayarea");d&&f.appendChild(c),a.resize(f.clientWidth,f.clientHeight),c.left=f.style.left,c.top=f.style.top}}this.embed=function(){if(!a.html5)return null;e.setupPlugins(f,d,g),b.innerHTML="";var c=a.utils.extend({screencolor:"0x000000"},d),h=["plugins","modes","events"];for(var i=0;i<h.length;i++)delete c[h[i]];c.levels&&!c.sources&&(c.sources=d.levels),c.skin&&c.skin.toLowerCase().indexOf(".zip")>0&&(c.skin=c.skin.replace(/\.zip/i,".xml"));var j=new(a.html5(b).setup)(c);f.container=document.getElementById(f.id),f.setPlayer(j,"html5")},this.supportsConfig=function(){if(!!a.vid.canPlayType){if(!d)return!0;var b=a.utils.getFirstPlaylistItemFromConfig(d);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return!0;if(b.file)return html5CanPlay(a.vid,b.file,b.provider,b.playlistfile);if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&html5CanPlay(a.vid,b.levels[c].file,b.provider,b.playlistfile))return!0}return!1},html5CanPlay=function(b,c,d,e){if(e)return!1;if(d&&d=="youtube")return!0;if(d&&d!="video"&&d!="http"&&d!="sound")return!1;var f=a.utils.extension(c);return!a.utils.exists(f)||!a.utils.exists(a.utils.extensionmap[f])?!0:a.utils.exists(a.utils.extensionmap[f].html5)?a.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(b,a.utils.extensionmap[f].html5):!1},browserCanPlay=function(a,b){return b?a.canPlayType(b)?!0:b=="audio/mp3"&&navigator.userAgent.match(/safari/i)?a.canPlayType("audio/mpeg"):!1:!0}}}(jwplayer),function(a){a.embed.logo=function(b,c,d){function h(){i(),k(),l()}function i(){if(e.prefix){var b=a.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(b)<0&&(e.prefix+=b+"/")}g=a.utils.extend({},e)}function j(){var a={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};a.display=g.hide?"none":"block";var b=g.position.toLowerCase().split("-");for(var c in b)a[b[c]]=g.margin;return a}function k(){f=document.createElement("img"),f.id=d+"_jwplayer_logo",f.style.display="none",f.onload=function(a){_css(f,j()),n()};if(!g.file)return;g.file.indexOf("http://")===0?f.src=g.file:f.src=g.prefix+g.file}function l(){g.link?(f.onmouseover=o,f.onmouseout=n,f.onclick=m):this.mouseEnabled=!1}function m(a){typeof a!="undefined"&&(a.preventDefault(),a.stopPropagation()),g.link&&window.open(g.link,"_blank");return}function n(a){g.link&&(f.style.opacity=g.out);return}function o(a){g.hide&&(f.style.opacity=g.over);return}var e={prefix:"http://l.longtailvideo.com/"+c+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:5,hide:!1,position:"bottom-left"};_css=a.utils.css;var f,g;h();if(!g.file)return;return f}}(jwplayer),function(a){a.html5=function(b){var c=b;return this.setup=function(b){return a.utils.extend(this,new a.html5.api(c,b)),this},this}}(jwplayer),function(a){var b=a.utils,c=b.css;a.html5.view=function(d,e,f){function t(){function a(){return g.skin.getComponentSettings("display")&&g.skin.getComponentSettings("display").backgroundcolor?g.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}j=document.createElement("div"),j.id=h.id,j.className=h.className,_videowrapper=document.createElement("div"),_videowrapper.id=j.id+"_video_wrapper",h.id=j.id+"_video",c(j,{position:"relative",height:i.height,width:i.width,padding:0,backgroundColor:a(),zIndex:0}),c(h,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"}),c(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0}),b.wrap(h,j),b.wrap(h,_videowrapper),m=document.createElement("div"),m.id=j.id+"_displayarea",j.appendChild(m)}function u(){for(var a=0;a<i.plugins.order.length;a++){var c=i.plugins.order[a];b.exists(i.plugins.object[c].getDisplayElement)&&(i.plugins.object[c].height=b.parseDimension(i.plugins.object[c].getDisplayElement().style.height),i.plugins.object[c].width=b.parseDimension(i.plugins.object[c].getDisplayElement().style.width),i.plugins.config[c].currentPosition=i.plugins.config[c].position)}w()}function v(b){c(m,{display:i.getMedia()&&i.getMedia().hasChrome()&&b.newstate!=a.api.events.state.IDLE?"none":"block"})}function w(a){var c=i.getMedia()?i.getMedia().getDisplayElement():null;if(b.exists(c)){p!=c&&(p&&p.parentNode&&p.parentNode.replaceChild(c,p),p=c);for(var d=0;d<i.plugins.order.length;d++){var e=i.plugins.order[d];b.exists(i.plugins.object[e].getDisplayElement)&&(i.plugins.config[e].currentPosition=i.plugins.config[e].position)}}y(i.width,i.height)}function x(b){switch(b.keyCode){case 27:g.jwGetFullscreen()&&g.jwSetFullscreen(!1);break;case 32:g.jwGetState()!=a.api.events.state.IDLE&&g.jwGetState()!=a.api.events.state.PAUSED?g.jwPause():g.jwPlay()}}function y(a,d){if(j.style.display=="none")return;var e=[].concat(i.plugins.order);e.reverse(),n=e.length+2;if(G())try{i.fullscreen&&!i.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(i.fullscreen=!1)}catch(f){}if(!i.fullscreen){k=a,l=d,typeof a=="string"&&a.indexOf("%")>0?k=b.getElementWidth(b.parentNode(j))*parseInt(a.replace("%"),"")/100:k=a,typeof d=="string"&&d.indexOf("%")>0?l=b.getElementHeight(b.parentNode(j))*parseInt(d.replace("%"),"")/100:l=d,c(m,{top:0,bottom:0,left:0,right:0,width:k,height:l,position:"absolute"}),c(j,{height:l,width:k});var g=z(A,e);if(g.length>0){n+=g.length;var h=g.indexOf("playlist"),o=g.indexOf("controlbar");h>=0&&o>=0&&(g[h]=g.splice(o,1,g[h])[0]),z(B,g,!0)}r=b.getElementWidth(m),s=b.getElementHeight(m)}else G()||z(C,e,!0);D()}function z(d,e,f){var g=[];for(var h=0;h<e.length;h++){var j=e[h];if(b.exists(i.plugins.object[j].getDisplayElement))if(i.plugins.config[j].currentPosition!=a.html5.view.positions.NONE){var k=d(j,n--);if(!k)g.push(j);else{var l=k.width,m=k.height;f&&(delete k.width,delete k.height),c(i.plugins.object[j].getDisplayElement(),k),i.plugins.object[j].resize(l,m)}}else c(i.plugins.object[j].getDisplayElement(),{display:"none"})}return g}function A(a,c){if(b.exists(i.plugins.object[a].getDisplayElement)&&i.plugins.config[a].position&&F(i.plugins.config[a].position)){b.exists(i.plugins.object[a].getDisplayElement().parentNode)||j.appendChild(i.plugins.object[a].getDisplayElement());var d=E(a);return d.zIndex=c,d}return!1}function B(a,c){return b.exists(i.plugins.object[a].getDisplayElement().parentNode)||m.appendChild(i.plugins.object[a].getDisplayElement()),{position:"absolute",width:b.getElementWidth(m)-b.parseDimension(m.style.left)-b.parseDimension(m.style.right),height:b.getElementHeight(m)-b.parseDimension(m.style.top)-b.parseDimension(m.style.bottom),zIndex:c}}function C(a,b){return{position:"fixed",width:i.width,height:i.height,zIndex:b}}function D(){if(!b.exists(i.getMedia()))return;m.style.position="absolute";var d=i.getMedia().getDisplayElement();if(d&&d.tagName.toLowerCase()=="video"){d.style.position="absolute",d.parentNode&&(d.parentNode.style.left=m.style.left,d.parentNode.style.top=m.style.top);if(i.fullscreen&&g.jwGetStretching()==a.utils.stretching.EXACTFIT&&!b.isMobile()){var e=document.createElement("div");b.stretch(a.utils.stretching.UNIFORM,e,b.getElementWidth(m),b.getElementHeight(m),r,s),b.stretch(a.utils.stretching.EXACTFIT,d,b.parseDimension(e.style.width),b.parseDimension(e.style.height),d.videoWidth?d.videoWidth:400,d.videoHeight?d.videoHeight:300),c(d,{left:e.style.left,top:e.style.top})}else b.stretch(g.jwGetStretching(),d,b.getElementWidth(m),b.getElementHeight(m),d.videoWidth?d.videoWidth:400,d.videoHeight?d.videoHeight:300)}else{var f=i.plugins.object.display.getDisplayElement();f?i.getMedia().resize(b.parseDimension(f.style.width),b.parseDimension(f.style.height)):i.getMedia().resize(b.parseDimension(m.style.width),b.parseDimension(m.style.height))}}function E(c){var d={position:"absolute",margin:0,padding:0,top:null},e=i.plugins.config[c].currentPosition.toLowerCase();switch(e.toUpperCase()){case a.html5.view.positions.TOP:d.top=b.parseDimension(m.style.top),d.left=b.parseDimension(m.style.left),d.width=b.getElementWidth(m)-b.parseDimension(m.style.left)-b.parseDimension(m.style.right),d.height=i.plugins.object[c].height,m.style[e]=b.parseDimension(m.style[e])+i.plugins.object[c].height+"px",m.style.height=b.getElementHeight(m)-d.height+"px";break;case a.html5.view.positions.RIGHT:d.top=b.parseDimension(m.style.top),d.right=b.parseDimension(m.style.right),d.width=i.plugins.object[c].width,d.height=b.getElementHeight(m)-b.parseDimension(m.style.top)-b.parseDimension(m.style.bottom),m.style.width=b.getElementWidth(m)-d.width+"px";break;case a.html5.view.positions.BOTTOM:d.bottom=b.parseDimension(m.style.bottom),d.left=b.parseDimension(m.style.left),d.width=b.getElementWidth(m)-b.parseDimension(m.style.left)-b.parseDimension(m.style.right),d.height=i.plugins.object[c].height,m.style.height=b.getElementHeight(m)-d.height+"px";break;case a.html5.view.positions.LEFT:d.top=b.parseDimension(m.style.top),d.left=b.parseDimension(m.style.left),d.width=i.plugins.object[c].width,d.height=b.getElementHeight(m)-b.parseDimension(m.style.top)-b.parseDimension(m.style.bottom),m.style[e]=b.parseDimension(m.style[e])+i.plugins.object[c].width+"px",m.style.width=b.getElementWidth(m)-d.width+"px";break;default:}return d}function F(b){return[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].toString().indexOf(b.toUpperCase())>-1}function G(){return g.jwGetState()!=a.api.events.state.IDLE&&!q&&i.getMedia()&&i.getMedia().getDisplayElement()&&i.getMedia().getDisplayElement().webkitSupportsFullscreen&&b.useNativeFullscreen()?!0:!1}var g=d,h=e,i=f,j,k,l,m,n,o,p,q=!1,r,s;this.setup=function(){i&&i.getMedia()&&(h=i.getMedia().getDisplayElement()),t(),u(),g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,v),g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,w),g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){D()});var c;b.exists(window.onresize)&&(c=window.onresize),window.onresize=function(a){if(b.exists(c))try{c(a)}catch(d){}if(g.jwGetFullscreen()){if(!G()){var e=b.getBoundingClientRect(document.body);i.width=Math.abs(e.left)+Math.abs(e.right),i.height=window.innerHeight,y(i.width,i.height)}}else y(i.width,i.height)}},this.resize=y,this.fullscreen=function(a){var d;try{d=i.getMedia().getDisplayElement()}catch(e){}if(G()&&d&&d.webkitSupportsFullscreen){if(a&&!d.webkitDisplayingFullscreen)try{b.transform(d),d.webkitEnterFullscreen()}catch(f){}else if(!a){D();if(d.webkitDisplayingFullscreen)try{d.webkitExitFullscreen()}catch(f){}}q=!1}else{if(a){document.onkeydown=x,clearInterval(o);var g=b.getBoundingClientRect(document.body);i.width=Math.abs(g.left)+Math.abs(g.right),i.height=window.innerHeight;var h={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3};c(j,h),h.zIndex=1,i.getMedia()&&i.getMedia().getDisplayElement()&&c(i.getMedia().getDisplayElement(),h),h.zIndex=2,c(m,h),q=!0}else document.onkeydown="",i.width=k,i.height=l,c(j,{position:"relative",height:i.height,width:i.width,zIndex:0}),q=!1;y(i.width,i.height)}}},a.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=a.utils,_css=_utils.css,_hide=function(a){_css(a,{display:"none"})},_show=function(a){_css(a,{display:"block"})},a.html5.controlbar=function(c,d){function C(){return u||(u=e.skin.getSkinElement("controlbar","background"),u||(u={width:0,height:0,src:null})),u}function D(){i=0,j=0,h=0;if(!s){var a={height:C().height,backgroundColor:f.backgroundcolor};g=document.createElement("div"),g.id=e.id+"_jwplayer_controlbar",_css(g,a)}var b=e.skin.getSkinElement("controlbar","capLeft"),c=e.skin.getSkinElement("controlbar","capRight");b&&S("capLeft","left",!1,g),N("background",g,{position:"absolute",height:C().height,left:b?b.width:0,zIndex:0},"img"),C().src&&(r.background.src=C().src),N("elements",g,{position:"relative",height:C().height,zIndex:1}),c&&S("capRight","right",!1,g)}function E(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var b in a){var c=a[b];typeof r[c]!="undefined"&&(t[c]=_utils.getBoundingClientRect(r[c]))}}function G(b){if(v)return;clearTimeout(w);if(f.position==a.html5.view.positions.OVER||e.jwGetFullscreen())switch(e.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:g&&g.style.opacity<1&&(!f.idlehide||_utils.exists(b))&&(F=!1,setTimeout(function(){F||I()},100)),f.idlehide&&(w=setTimeout(function(){H()},2e3));break;default:F=!0,b&&I(),w=setTimeout(function(){H()},2e3)}else I()}function H(){v||(L(),g.style.opacity==1&&(_utils.cancelAnimation(g),_utils.fadeTo(g,0,.1,1,0)))}function I(){v||(K(),g.style.opacity==0&&(_utils.cancelAnimation(g),_utils.fadeTo(g,1,.1,0,0)))}function J(a){return function(){y&&x!=a&&(x=a,B.sendEvent(a,{component:"controlbar",boundingRect:M()}))}}function M(){return f.position==a.html5.view.positions.OVER||e.jwGetFullscreen()?_utils.getDimensions(g):{x:0,y:0,width:0,height:0}}function N(a,b,c,d){var e;return s?e=document.getElementById(g.id+"_"+a):(d||(d="div"),e=document.createElement(d),r[a]=e,e.id=g.id+"_"+a,b.appendChild(e)),_utils.exists(c)&&_css(e,c),e}function O(){if(e.jwGetHeight()<=40){f.layout=_utils.clone(f.layout);for(var a=0;a<f.layout.left.elements.length;a++)f.layout.left.elements[a].name=="fullscreen"&&f.layout.left.elements.splice(a,1);for(a=0;a<f.layout.right.elements.length;a++)f.layout.right.elements[a].name=="fullscreen"&&f.layout.right.elements.splice(a,1);bd()}P(f.layout.left),P(f.layout.center),P(f.layout.right)}function P(a,b){var c=a.position=="right"?"right":"left",d=_utils.extend([],a.elements);_utils.exists(b)&&d.reverse();var a=N(a.position+"Group",r.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var e=0;e<d.length;e++)R(d[e],c,a)}function Q(){return h++}function R(a,b,c){var d,f,g,h,i;c||(c=r.elements);if(a.type=="divider"){S("divider"+Q(),b,!0,c,undefined,a.width,a.element);return}switch(a.name){case"play":S("playButton",b,!1,c),S("pauseButton",b,!0,c),X("playButton","jwPlay"),X("pauseButton","jwPause");break;case"prev":S("prevButton",b,!0,c),X("prevButton","jwPlaylistPrev");break;case"stop":S("stopButton",b,!0,c),X("stopButton","jwStop");break;case"next":S("nextButton",b,!0,c),X("nextButton","jwPlaylistNext");break;case"elapsed":S("elapsedText",b,!0,c);break;case"time":f=_utils.exists(e.skin.getSkinElement("controlbar","timeSliderCapLeft"))?e.skin.getSkinElement("controlbar","timeSliderCapLeft").width:0,g=_utils.exists(e.skin.getSkinElement("controlbar","timeSliderCapRight"))?e.skin.getSkinElement("controlbar","timeSliderCapRight").width:0,d=b=="left"?f:g,i={height:C().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var j=N("timeSlider",c,i);S("timeSliderCapLeft",b,!0,j,"relative"),S("timeSliderRail",b,!1,j,"relative"),S("timeSliderBuffer",b,!1,j,"absolute"),S("timeSliderProgress",b,!1,j,"absolute"),S("timeSliderThumb",b,!1,j,"absolute"),S("timeSliderCapRight",b,!0,j,"relative"),Y("time");break;case"fullscreen":S("fullscreenButton",b,!1,c),S("normalscreenButton",b,!0
,c),X("fullscreenButton","jwSetFullscreen",!0),X("normalscreenButton","jwSetFullscreen",!1);break;case"volume":f=_utils.exists(e.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?e.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0,g=_utils.exists(e.skin.getSkinElement("controlbar","volumeSliderCapRight"))?e.skin.getSkinElement("controlbar","volumeSliderCapRight").width:0,d=b=="left"?f:g,h=e.skin.getSkinElement("controlbar","volumeSliderRail").width+f+g,i={height:C().height,position:"relative",width:h,"float":"left",styleFloat:"left",cssFloat:"left"};var k=N("volumeSlider",c,i);S("volumeSliderCapLeft",b,!1,k,"relative"),S("volumeSliderRail",b,!1,k,"relative"),S("volumeSliderProgress",b,!1,k,"absolute"),S("volumeSliderThumb",b,!1,k,"absolute"),S("volumeSliderCapRight",b,!1,k,"relative"),Y("volume");break;case"mute":S("muteButton",b,!1,c),S("unmuteButton",b,!0,c),X("muteButton","jwSetMute",!0),X("unmuteButton","jwSetMute",!1);break;case"duration":S("durationText",b,!0,c)}}function S(a,b,c,d,g,h,k){if(_utils.exists(e.skin.getSkinElement("controlbar",a))||a.indexOf("Text")>0||a.indexOf("divider")===0){var l={height:"100%",position:g?g:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};(a.indexOf("next")===0||a.indexOf("prev")===0)&&(e.jwGetPlaylist().length<2||f.hideplaylistcontrols)&&(c=!1,l.display="none");var m;if(a.indexOf("Text")>0)a.innerhtml="00:00",l.font=f.fontsize+"px/"+(C().height+1)+"px "+f.font,l.color=f.fontcolor,l.textAlign="center",l.fontWeight=f.fontweight,l.fontStyle=f.fontstyle,l.cursor="default",m=14+3*f.fontsize;else if(a.indexOf("divider")===0)if(h)isNaN(parseInt(h))||(m=parseInt(h));else if(k){var n=e.skin.getSkinElement("controlbar",k);n&&(l.background="url("+n.src+") repeat-x center left",m=n.width)}else l.background="url("+e.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",m=e.skin.getSkinElement("controlbar","divider").width;else l.background="url("+e.skin.getSkinElement("controlbar",a).src+") repeat-x center left",m=e.skin.getSkinElement("controlbar",a).width;b=="left"?c&&(i+=m):b=="right"&&c&&(j+=m),_utils.typeOf(d)=="undefined"&&(d=r.elements),l.width=m;if(s)_css(r[a],l);else{var o=N(a,d,l);_utils.exists(e.skin.getSkinElement("controlbar",a+"Over"))&&(o.onmouseover=function(b){o.style.backgroundImage=["url(",e.skin.getSkinElement("controlbar",a+"Over").src,")"].join("")},o.onmouseout=function(b){o.style.backgroundImage=["url(",e.skin.getSkinElement("controlbar",a).src,")"].join("")}),a.indexOf("divider")==0&&o.setAttribute("class","divider")}}}function T(){e.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,U),e.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,V),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,$),e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,ba),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,bc),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,_),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,bg),e.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,bb)}function U(){f.hideplaylistcontrols||(e.jwGetPlaylist().length>1?(_show(r.nextButton),_show(r.prevButton)):(_hide(r.nextButton),_hide(r.prevButton)),bf(),W())}function V(a){n=e.jwGetPlaylist()[a.index].duration,bc({id:e.id,duration:n,position:0}),$({id:e.id,bufferProgress:0})}function W(){bc({id:e.id,duration:e.jwGetDuration(),position:0}),$({id:e.id,bufferProgress:0}),_({id:e.id,mute:e.jwGetMute()}),ba({id:e.id,newstate:a.api.events.state.IDLE}),bg({id:e.id,volume:e.jwGetVolume()})}function X(a,b,c){if(s)return;if(_utils.exists(e.skin.getSkinElement("controlbar",a))){var d=r[a];_utils.exists(d)&&(_css(d,{cursor:"pointer"}),b=="fullscreen"?d.onmouseup=function(a){a.stopPropagation(),e.jwSetFullscreen(!e.jwGetFullscreen())}:d.onmouseup=function(a){a.stopPropagation(),_utils.exists(c)?e[b](c):e[b]()})}}function Y(a){if(s)return;var b=r[a+"Slider"];_css(r.elements,{cursor:"pointer"}),_css(b,{cursor:"pointer"}),b.onmousedown=function(b){k=a},b.onmouseup=function(a){a.stopPropagation(),Z(a.pageX)},b.onmousemove=function(b){if(k=="time"){l=!0;var c=b.pageX-t[a+"Slider"].left-window.pageXOffset;_css(r[k+"SliderThumb"],{left:c})}}}function Z(b){l=!1;var c;if(k=="time"){c=b-t.timeSliderRail.left+window.pageXOffset;var d=c/t.timeSliderRail.width*n;d<0?d=0:d>n&&(d=n-3),(e.jwGetState()==a.api.events.state.PAUSED||e.jwGetState()==a.api.events.state.IDLE)&&e.jwPlay(),e.jwSeek(d)}else if(k=="volume"){c=b-t.volumeSliderRail.left-window.pageXOffset;var f=Math.round(c/t.volumeSliderRail.width*100);f<0?f=0:f>100&&(f=100),e.jwGetMute()&&e.jwSetMute(!1),e.jwSetVolume(f)}k="none"}function $(a){_utils.exists(a.bufferPercent)&&(o=a.bufferPercent);if(t.timeSliderRail){var b=e.skin.getSkinElement("controlbar","timeSliderCapLeft"),c=t.timeSliderRail.width,d=isNaN(Math.round(c*o/100))?0:Math.round(c*o/100);_css(r.timeSliderBuffer,{width:d,left:b?b.width:0})}}function _(a){a.mute?(_hide(r.muteButton),_show(r.unmuteButton),_hide(r.volumeSliderProgress)):(_show(r.muteButton),_hide(r.unmuteButton),_show(r.volumeSliderProgress))}function ba(b){b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING?(_show(r.pauseButton),_hide(r.playButton)):(_hide(r.pauseButton),_show(r.playButton)),G(),b.newstate==a.api.events.state.IDLE?(_hide(r.timeSliderBuffer),_hide(r.timeSliderProgress),_hide(r.timeSliderThumb),bc({id:e.id,duration:e.jwGetDuration(),position:0})):(_show(r.timeSliderBuffer),b.newstate!=a.api.events.state.BUFFERING&&(_show(r.timeSliderProgress),_show(r.timeSliderThumb)))}function bb(a){$({bufferPercent:0}),bc(_utils.extend(a,{position:0,duration:n}))}function bc(a){_utils.exists(a.position)&&(m=a.position),_utils.exists(a.duration)&&(n=a.duration);var b=m===n===0?0:m/n,c=t.timeSliderRail;if(c){var d=isNaN(Math.round(c.width*b))?0:Math.round(c.width*b),f=e.skin.getSkinElement("controlbar","timeSliderCapLeft"),g=d+(f?f.width:0);r.timeSliderProgress&&(_css(r.timeSliderProgress,{width:d,left:f?f.width:0}),l||r.timeSliderThumb&&(r.timeSliderThumb.style.left=g+"px"))}r.durationText&&(r.durationText.innerHTML=_utils.timeFormat(n)),r.elapsedText&&(r.elapsedText.innerHTML=_utils.timeFormat(m))}function bd(){var a=r.elements.childNodes,b,c;for(var d=0;d<a.length;d++){var e=a[d].childNodes;for(var f in e){if(isNaN(parseInt(f,10)))continue;e[f].id.indexOf(g.id+"_divider")===0&&c&&c.id.indexOf(g.id+"_divider")===0&&e[f].style.backgroundImage==c.style.backgroundImage?e[f].style.display="none":e[f].id.indexOf(g.id+"_divider")===0&&b&&b.style.display!="none"&&(e[f].style.display="block"),e[f].style.display!="none"&&(c=e[f]),b=e[f]}}}function be(){e.jwGetFullscreen()?(_show(r.normalscreenButton),_hide(r.fullscreenButton)):(_hide(r.normalscreenButton),_show(r.fullscreenButton)),e.jwGetState()==a.api.events.state.BUFFERING||e.jwGetState()==a.api.events.state.PLAYING?(_show(r.pauseButton),_hide(r.playButton)):(_hide(r.pauseButton),_show(r.playButton)),e.jwGetMute()==1?(_hide(r.muteButton),_show(r.unmuteButton)):(_show(r.muteButton),_hide(r.unmuteButton))}function bf(){bd(),be();var b={width:p},c={"float":"left",styleFloat:"left",cssFloat:"left"};if(f.position==a.html5.view.positions.OVER||e.jwGetFullscreen())b.left=f.margin,b.width-=2*f.margin,b.top=q-C().height-f.margin,b.height=C().height;var d=e.skin.getSkinElement("controlbar","capLeft"),h=e.skin.getSkinElement("controlbar","capRight");c.width=b.width-(d?d.width:0)-(h?h.width:0);var i=_utils.getBoundingClientRect(r.leftGroup).width,j=_utils.getBoundingClientRect(r.rightGroup).width,k=c.width-i-j,l=k,m=e.skin.getSkinElement("controlbar","timeSliderCapLeft"),n=e.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(m)&&(l-=m.width),_utils.exists(n)&&(l-=n.width),r.timeSlider.style.width=k+"px",r.timeSliderRail.style.width=l+"px",_css(g,b),_css(r.elements,c),_css(r.background,c),E(),b}function bg(a){if(_utils.exists(r.volumeSliderRail)){var b=isNaN(a.volume/100)?1:a.volume/100,c=_utils.parseDimension(r.volumeSliderRail.style.width),d=isNaN(Math.round(c*b))?0:Math.round(c*b),f=_utils.parseDimension(r.volumeSliderRail.style.right),g=_utils.exists(e.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?e.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(r.volumeSliderProgress,{width:d,left:g});if(r.volumeSliderThumb){var h=d-Math.round(_utils.parseDimension(r.volumeSliderThumb.style.width)/2);h=Math.min(Math.max(h,0),c-_utils.parseDimension(r.volumeSliderThumb.style.width)),_css(r.volumeSliderThumb,{left:h})}_utils.exists(r.volumeSliderCapLeft)&&_css(r.volumeSliderCapLeft,{left:0})}}function bh(){A=document.getElementById(e.id),A.addEventListener("mousemove",G)}function bi(){D(),O(),E(),s=!0,T(),f.idlehide=f.idlehide.toString().toLowerCase()=="true",f.position==a.html5.view.positions.OVER&&f.idlehide?(g.style.opacity=0,y=!0):(g.style.opacity=1,setTimeout(function(){y=!0,K()},1)),bh(),W()}window.controlbar=this;var e=c,f=_utils.extend({},b,e.skin.getComponentSettings("controlbar"),d);if(f.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[f.position]=="undefined")return;_utils.mapLength(e.skin.getComponentLayout("controlbar"))>0&&(f.layout=e.skin.getComponentLayout("controlbar"));var g,h,i,j,k="none",l,m,n,o,p,q,r={},s=!1,t={},u,v=!1,w,x,y=!1,z=!1,A,B=new a.html5.eventdispatcher;_utils.extend(this,B),this.getDisplayElement=function(){return g},this.resize=function(a,b){bh(),_utils.cancelAnimation(g),p=a,q=b,z!=e.jwGetFullscreen()&&(z=e.jwGetFullscreen(),x=undefined);var c=bf();return bc({id:e.id,duration:n,position:m}),$({id:e.id,bufferPercent:o}),c},this.show=function(){v&&(v=!1,_show(g),K())},this.hide=function(){v||(v=!0,_hide(g),L())};var F,K=J(a.api.events.JWPLAYER_COMPONENT_SHOW),L=J(a.api.events.JWPLAYER_COMPONENT_HIDE);return bi(),this}}(jwplayer),function(a){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"],c=a.utils;a.html5.controller=function(b,d,e,f){function r(a){q?o.sendEvent(a.type,a):p.push(a)}function s(b){if(!q){q=!0,o.sendEvent(a.api.events.JWPLAYER_READY,b),a.utils.exists(window.playerReady)&&playerReady(b),a.utils.exists(window[e.config.playerReady])&&window[e.config.playerReady](b);while(p.length>0){var c=p.shift();o.sendEvent(c.type,c)}e.config.autostart&&!a.utils.isIOS()&&H();while(M.length>0){var d=M.shift();O(d.method,d.arguments)}}}function t(){try{return B(h.item),h.playlist[h.item].levels[0].file.length>0&&(l||h.state==a.api.events.state.IDLE?(h.getMedia().load(h.playlist[h.item]),l=!1):h.state==a.api.events.state.PAUSED&&h.getMedia().play()),!0}catch(b){o.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function u(){try{if(h.playlist[h.item].levels[0].file.length>0)switch(h.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:h.getMedia()&&h.getMedia().pause()}return!0}catch(b){o.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function v(b){try{if(h.playlist[h.item].levels[0].file.length>0){typeof b!="number"&&(b=parseFloat(b));switch(h.state){case a.api.events.state.IDLE:m<0&&(m=h.playlist[h.item].start,h.playlist[h.item].start=b),t();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:h.seek(b)}}return!0}catch(c){o.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function w(b){c.exists(b)||(b=!0);try{return h.getMedia()&&h.getMedia().stop(b),!0}catch(d){o.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function x(){try{h.playlist[h.item].levels[0].file.length>0&&(h.config.shuffle?B(z()):h.item+1==h.playlist.length?B(0):B(h.item+1));if(h.state!=a.api.events.state.IDLE){var b=h.state;h.state=a.api.events.state.IDLE,o.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}return t(),!0}catch(c){o.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function y(){try{h.playlist[h.item].levels[0].file.length>0&&(h.config.shuffle?B(z()):h.item===0?B(h.playlist.length-1):B(h.item-1));if(h.state!=a.api.events.state.IDLE){var b=h.state;h.state=a.api.events.state.IDLE,o.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:b,newstate:a.api.events.state.IDLE})}return t(),!0}catch(c){o.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function z(){var a=null;if(h.playlist.length>1)while(!c.exists(a))a=Math.floor(Math.random()*h.playlist.length),a==h.item&&(a=null);else a=0;return a}function A(b){if(!h.playlist||!h.playlist[b])return!1;try{if(h.playlist[b].levels[0].file.length>0){var c=h.state;c!==a.api.events.state.IDLE&&(h.playlist[h.item].provider==h.playlist[b].provider?w(!1):w()),B(b),t()}return!0}catch(d){o.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function B(b){if(!h.playlist[b])return;h.setActiveMediaProvider(h.playlist[b]),h.item!=b&&(h.item=b,l=!0,o.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:b}))}function C(b){try{B(h.item);var c=h.getMedia();switch(typeof b){case"number":c.volume(b);break;case"string":c.volume(parseInt(b,10))}return!0}catch(d){o.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function D(b){try{B(h.item);var c=h.getMedia();return typeof b=="undefined"?c.mute(!h.mute):b.toString().toLowerCase()=="true"?c.mute(!0):c.mute(!1),!0}catch(d){o.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function E(b,c){try{return h.width=b,h.height=c,j.resize(b,c),o.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:h.width,height:h.height}),!0}catch(d){o.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1}function F(b){try{return typeof b=="undefined"&&(b=!h.fullscreen),b!=h.fullscreen&&(b.toString().toLowerCase()=="true"?(h.fullscreen=!0,j.fullscreen(!0),o.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!0})):(h.fullscreen=!1,j.fullscreen(!1),o.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1})),o.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:h.width,height:h.height})),!0}catch(c){o.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function G(b){try{return w(),h.loadPlaylist(b),h.playlist[h.item].provider?(B(h.item),h.config.autostart.toString().toLowerCase()=="true"&&t(),!0):!1}catch(c){o.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1}function H(a){B(h.playlist[h.item]),h.config.autostart.toString().toLowerCase()=="true"&&t()}function I(a){F(a.fullscreen)}function J(){try{return h.getMedia().detachMedia()}catch(a){return null}}function K(){try{return h.getMedia().attachMedia()}catch(a){return null}}function L(){switch(h.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:t();break;case a.html5.controller.repeatoptions.ALWAYS:h.item==h.playlist.length-1&&!h.config.shuffle?A(0):x();break;case a.html5.controller.repeatoptions.LIST:h.item==h.playlist.length-1&&!h.config.shuffle?(w(),B(0)):x();break;default:w()}}function N(a){return function(){q?O(a,arguments):M.push({method:a,arguments:arguments})}}function O(a,b){var c=[];for(i=0;i<b.length;i++)c.push(b[i]);a.apply(this,c)}var g=b,h=e,j=f,k=d,l=!0,m=-1,n=c.exists(h.config.debug)&&h.config.debug.toString().toLowerCase()=="console",o=new a.html5.eventdispatcher(k.id,n);c.extend(this,o);var p=[],q=!1;h.addGlobalListener(r),h.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){h.getMedia().play()}),h.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){a.position>=h.playlist[h.item].start&&m>=0&&(h.playlist[h.item].start=m,m=-1)}),h.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(a){setTimeout(L,25)}),h.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,H),h.addEventListener(a.api.events.JWPLAYER_FULLSCREEN,I),a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};var M=[];this.play=N(t),this.pause=N(u),this.seek=N(v),this.stop=N(w),this.next=N(x),this.prev=N(y),this.item=N(A),this.setVolume=N(C),this.setMute=N(D),this.resize=N(E),this.setFullscreen=N(F),this.load=N(G),this.playerReady=s,this.detachMedia=J,this.attachMedia=K}}(jwplayer),function(a){a.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(a){_utils=a.utils,_css=_utils.css,_hide=function(a){_css(a,{display:"none"})},_show=function(a){_css(a,{display:"block"})},a.html5.display=function(b,c){function A(){g.display=D("div","display"),g.display_text=D("div","display_text"),g.display.appendChild(g.display_text),g.display_image=D("img","display_image"),g.display_image.onerror=function(a){_hide(g.display_image)},g.display_image.onload=B,g.display_icon=D("div","display_icon"),g.display_iconBackground=D("div","display_iconBackground"),g.display.appendChild(g.display_image),g.display_iconBackground.appendChild(g.display_icon),g.display.appendChild(g.display_iconBackground),E(),setTimeout(function(){v=!0,e.icons.toString()=="true"&&Q()},1)}function B(a){j=g.display_image.naturalWidth,k=g.display_image.naturalHeight,C()}function C(){if(f.jwGetFullscreen()&&f.jwGetStretching()==a.utils.stretching.EXACTFIT){var b=document.createElement("div");_utils.stretch(a.utils.stretching.UNIFORM,b,h,i,w,x),_utils.stretch(a.utils.stretching.EXACTFIT,g.display_image,_utils.parseDimension(b.style.width),_utils.parseDimension(b.style.height),j,k),_css(g.display_image,{left:b.style.left,top:b.style.top})}else _utils.stretch(f.jwGetStretching(),g.display_image,h,i,j,k)}function D(a,b){var c=document.createElement(a);return c.id=f.id+"_jwplayer_"+b,_css(c,z[b].style),c}function E(){for(var a in g)_utils.exists(z[a].click)&&(g[a].onclick=z[a].click)}function F(b){typeof b.preventDefault!="undefined"?b.preventDefault():b.returnValue=!1,f.jwGetState()!=a.api.events.state.PLAYING?f.jwPlay():f.jwPause()}function G(a){if(n){H();return}g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a).src,")"].join(""),_css(g.display_icon,{width:f.skin.getSkinElement("display",a).width,height:f.skin.getSkinElement("display",a).height,top:(f.skin.getSkinElement("display","background").height-f.skin.getSkinElement("display",a).height)/2,left:(f.skin.getSkinElement("display","background").width-f.skin.getSkinElement("display",a).width)/2}),I(),_utils.exists(f.skin.getSkinElement("display",a+"Over"))?(g.display_icon.onmouseover=function(b){g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a+"Over").src,")"].join("")},g.display_icon.onmouseout=function(b){g.display_icon.style.backgroundImage=["url(",f.skin.getSkinElement("display",a).src,")"].join("")}):(g.display_icon.onmouseover=null,g.display_icon.onmouseout=null)}function H(){e.icons.toString()=="true"&&(_hide(g.display_icon),_hide(g.display_iconBackground),R())}function I(){!u&&e.icons.toString()=="true"&&(_show(g.display_icon),_show(g.display_iconBackground),Q())}function J(a){n=!0,H(),g.display_text.innerHTML=a.message,_show(g.display_text),g.display_text.style.top=(i-_utils.getBoundingClientRect(g.display_text).height)/2+"px"}function K(){g.display_image.style.display="none"}function L(b){(b.type==a.api.events.JWPLAYER_PLAYER_STATE||b.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&n&&(n=!1,_hide(g.display_text));var c=f.jwGetState();if(c==r)return;r=c,q>=0&&clearTimeout(q),s||f.jwGetState()==a.api.events.state.PLAYING||f.jwGetState()==a.api.events.state.PAUSED?N(f.jwGetState()):q=setTimeout(M(f.jwGetState()),500)}function M(a){return function(){N(a)}}function N(b){_utils.exists(m)&&(clearInterval(m),m=null,_utils.animations.rotate(g.display_icon,0));switch(b){case a.api.events.state.BUFFERING:_utils.isMobile()?(K(),H()):(f.jwGetPlaylist()[f.jwGetItem()].provider=="sound"&&O(),l=0,m=setInterval(function(){l+=o,_utils.animations.rotate(g.display_icon,l%360)},p),G("bufferIcon"),s=!0);break;case a.api.events.state.PAUSED:_utils.isMobile()||(f.jwGetPlaylist()[f.jwGetItem()].provider!="sound"&&_css(g.display_image,{background:"transparent no-repeat center center"}),G("playIcon"),s=!0);break;case a.api.events.state.IDLE:f.jwGetPlaylist()[f.jwGetItem()]&&f.jwGetPlaylist()[f.jwGetItem()].image?O():K(),G("playIcon"),s=!0;break;default:f.jwGetPlaylist()[f.jwGetItem()]&&f.jwGetPlaylist()[f.jwGetItem()].provider=="sound"?_utils.isMobile()?(K(),s=!1):O():(K(),s=!1),f.jwGetMute()&&e.showmute?G("muteIcon"):H()}q=-1}function O(){f.jwGetPlaylist()[f.jwGetItem()]&&f.jwGetPlaylist()[f.jwGetItem()].image&&(_css(g.display_image,{display:"block"}),g.display_image.src=_utils.getAbsolutePath(f.jwGetPlaylist()[f.jwGetItem()].image))}function P(a){return function(){if(!v)return;!u&&t!=a&&(t=a,y.sendEvent(a,{component:"display",boundingRect:_utils.getDimensions(g.display_iconBackground)}))}}var d={icons:!0,showmute:!1},e=_utils.extend({},d,c),f=b,g={},h,i,j,k,l,m,n,o=_utils.exists(f.skin.getComponentSettings("display").bufferrotation)?parseInt(f.skin.getComponentSettings("display").bufferrotation,10):15,p=_utils.exists(f.skin.getComponentSettings("display").bufferinterval)?parseInt(f.skin.getComponentSettings("display").bufferinterval,10):100,q=-1,r="",s=!0,t,u=!1,v=!1,w,x,y=new a.html5.eventdispatcher;_utils.extend(this,y);var z={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:F},display_icon:{style:{cursor:"pointer",position:"absolute",top:(f.skin.getSkinElement("display","background").height-f.skin.getSkinElement("display","playIcon").height)/2,left:(f.skin.getSkinElement("display","background").width-f.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(i-f.skin.getSkinElement("display","background").height)/2,left:(h-f.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",f.skin.getSkinElement("display","background").src,")"].join(""),width:f.skin.getSkinElement("display","background").width,height:f.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:h,height:i,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};f.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,L),f.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,L),f.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,L),f.jwAddEventListener(a.api.events.JWPLAYER_ERROR,J),A(),this.getDisplayElement=function(){return g.display},this.resize=function(a,b){_css(g.display,{width:a,height:b}),_css(g.display_text,{width:a-10,top:(b-_utils.getBoundingClientRect(g.display_text).height)/2}),_css(g.display_iconBackground,{top:(b-f.skin.getSkinElement("display","background").height)/2,left:(a-f.skin.getSkinElement("display","background").width)/2});if(h!=a||i!=b)h=a,i=b,t=undefined,Q();f.jwGetFullscreen()||(w=a,x=b),C(),L({})},this.show=function(){u&&(u=!1,N(f.jwGetState()))},this.hide=function(){u||(H(),u=!0)};var Q=P(a.api.events.JWPLAYER_COMPONENT_SHOW),R=P(a.api.events.JWPLAYER_COMPONENT_HIDE);return this}}(jwplayer),function(a){var b=a.utils,c=b.css;a.html5.dock=function(d,e){function f(){return{align:a.html5.view.positions.RIGHT}}function t(a){}function u(c,e){E();if(i.length>0){var f=10,l=f,p=-1,q=d.skin.getSkinElement("dock","button").height,r=d.skin.getSkinElement("dock","button").width,s=c-r-f,t,u;g.align==a.html5.view.positions.LEFT&&(p=1,s=f);for(var v=0;v<i.length;v++){var w=Math.floor(l/e);l+q+f>(w+1)*e&&(l=(w+1)*e+f,w=Math.floor(l/e));var x=h[i[v]].div;x.style.top=l%e+"px",x.style.left=s+(d.skin.getSkinElement("dock","button").width+f)*w*p+"px";var z={x:b.parseDimension(x.style.left),y:b.parseDimension(x.style.top),width:r,height:q};if(!t||z.x<=t.x&&z.y<=t.y)t=z;if(!u||z.x>=u.x&&z.y>=u.y)u=z;l+=d.skin.getSkinElement("dock","button").height+f}n={x:t.x,y:t.y,width:u.x-t.x+u.width,height:t.y-u.y+u.height}}if(m!=d.jwGetFullscreen()||j!=c||k!=e)j=c,k=
e,m=d.jwGetFullscreen(),o=undefined,setTimeout(y,1)}function v(a){return function(){!l&&o!=a&&i.length>0&&(o=a,r.sendEvent(a,{component:"dock",boundingRect:n}))}}function w(c){b.isMobile()?c.newstate==a.api.events.state.IDLE?A():B():x()}function x(c){if(l)return;clearTimeout(q);if(e.position==a.html5.view.positions.OVER||d.jwGetFullscreen())switch(d.jwGetState()){case a.api.events.state.PAUSED:case a.api.events.state.IDLE:s&&s.style.opacity<1&&(!e.idlehide||b.exists(c))&&D(),e.idlehide&&(q=setTimeout(function(){C()},2e3));break;default:b.exists(c)&&D(),q=setTimeout(function(){C()},2e3)}else D()}function C(){l||(z(),s.style.opacity==1&&(b.cancelAnimation(s),b.fadeTo(s,0,.1,1,0)))}function D(){l||(y(),s.style.opacity==0&&(b.cancelAnimation(s),b.fadeTo(s,1,.1,0,0)))}function E(){p=document.getElementById(d.id),p.addEventListener("mousemove",x)}var g=b.extend({},f(),e);if(g.align=="FALSE")return;var h={},i=[],j,k,l=!1,m=!1,n={x:0,y:0,width:0,height:0},o,p,q,r=new a.html5.eventdispatcher;b.extend(this,r);var s=document.createElement("div");s.id=d.id+"_jwplayer_dock",s.style.opacity=1,E(),d.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,w),this.getDisplayElement=function(){return s},this.setButton=function(c,e,f,g){!e&&h[c]?(b.arrays.remove(i,c),s.removeChild(h[c].div),delete h[c]):e&&(h[c]||(h[c]={}),h[c].handler=e,h[c].outGraphic=f,h[c].overGraphic=g,h[c].div||(i.push(c),h[c].div=document.createElement("div"),h[c].div.style.position="relative",s.appendChild(h[c].div),h[c].div.appendChild(document.createElement("img")),h[c].div.childNodes[0].style.position="absolute",h[c].div.childNodes[0].style.left=0,h[c].div.childNodes[0].style.top=0,h[c].div.childNodes[0].style.zIndex=10,h[c].div.childNodes[0].style.cursor="pointer",h[c].div.appendChild(document.createElement("img")),h[c].div.childNodes[1].style.position="absolute",h[c].div.childNodes[1].style.left=0,h[c].div.childNodes[1].style.top=0,d.skin.getSkinElement("dock","button")&&(h[c].div.childNodes[1].src=d.skin.getSkinElement("dock","button").src),h[c].div.childNodes[1].style.zIndex=9,h[c].div.childNodes[1].style.cursor="pointer",h[c].div.onmouseover=function(){h[c].overGraphic&&(h[c].div.childNodes[0].src=h[c].overGraphic),d.skin.getSkinElement("dock","buttonOver")&&(h[c].div.childNodes[1].src=d.skin.getSkinElement("dock","buttonOver").src)},h[c].div.onmouseout=function(){h[c].outGraphic&&(h[c].div.childNodes[0].src=h[c].outGraphic),d.skin.getSkinElement("dock","button")&&(h[c].div.childNodes[1].src=d.skin.getSkinElement("dock","button").src)},d.skin.getSkinElement("dock","button")&&(h[c].div.childNodes[1].src=d.skin.getSkinElement("dock","button").src)),h[c].outGraphic?h[c].div.childNodes[0].src=h[c].outGraphic:h[c].overGraphic&&(h[c].div.childNodes[0].src=h[c].overGraphic),e&&(h[c].div.onclick=function(b){b.preventDefault(),a(d.id).callback(c),h[c].overGraphic&&(h[c].div.childNodes[0].src=h[c].overGraphic),d.skin.getSkinElement("dock","button")&&(h[c].div.childNodes[1].src=d.skin.getSkinElement("dock","button").src)})),u(j,k)};var y=v(a.api.events.JWPLAYER_COMPONENT_SHOW),z=v(a.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=u;var A=function(){c(s,{display:"block"}),l&&(l=!1,y())},B=function(){c(s,{display:"none"}),l||(z(),l=!0)};return this.hide=B,this.show=A,this}}(jwplayer),function(a){a.html5.eventdispatcher=function(b,c){var d=new a.events.eventdispatcher(c);a.utils.extend(this,d),this.sendEvent=function(c,e){a.utils.exists(e)||(e={}),a.utils.extend(e,{id:b,version:a.version,type:c}),d.sendEvent(c,e)}}}(jwplayer),function(a){var b={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=a.utils.css,a.html5.logo=function(c,d){function j(){k(),e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,t),l(),m()}function k(){if(b.prefix){var e=c.version.split(/\W/).splice(0,2).join("/");b.prefix.indexOf(e)<0&&(b.prefix+=e+"/")}d.position==a.html5.view.positions.OVER&&(d.position=b.position);try{window.location.href.indexOf("https")==0&&(b.prefix=b.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(f){}g=a.utils.extend({},b)}function l(){h=document.createElement("img"),h.id=e.id+"_jwplayer_logo",h.style.display="none",h.onload=function(a){_css(h,q()),o()};if(!g.file)return;g.file.indexOf("/")>=0?h.src=g.file:h.src=g.prefix+g.file}function m(){g.link?(h.onmouseover=p,h.onmouseout=o,h.onclick=n):this.mouseEnabled=!1}function n(a){typeof a!="undefined"&&a.stopPropagation();if(!i)return;e.jwPause(),e.jwSetFullscreen(!1),g.link&&window.open(g.link,"_top");return}function o(a){g.link&&i&&(h.style.opacity=g.out);return}function p(a){i&&(h.style.opacity=g.over);return}function q(){var a={textDecoration:"none",position:"absolute",cursor:"pointer"};a.display=g.hide.toString()=="true"&&!i?"none":"block";var b=g.position.toLowerCase().split("-");for(var c in b)a[b[c]]=g.margin;return a}function r(){g.hide.toString()=="true"&&(h.style.display="block",h.style.opacity=0,a.utils.fadeTo(h,g.out,.1,parseFloat(h.style.opacity)),f=setTimeout(function(){s()},g.timeout*1e3)),i=!0}function s(){i=!1,g.hide.toString()=="true"&&a.utils.fadeTo(h,0,.1,parseFloat(h.style.opacity))}function t(b){b.newstate==a.api.events.state.BUFFERING&&(clearTimeout(f),r())}var e=c,f,g,h,i=!1;j();if(!g.file)return;return this.resize=function(a,b){},this.getDisplayElement=function(){return h},this}}(jwplayer),function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING},c=a.utils,d=c.css,e=c.isMobile();a.html5.mediavideo=function(d,f){function u(a,b){return function(a){q&&c.exists(a.target.parentNode)&&b(a)}}function v(){k=document.createElement("video"),l=a.api.events.state.IDLE;for(var b in g)k.addEventListener(b,u(b,g[b]),!0);q=!0,k.setAttribute("x-webkit-airplay","allow"),j.parentNode&&j.parentNode.replaceChild(k,j),k.id||(k.id=j.id),k.volume=i.volume/100}function w(b){if(b==a.api.events.state.PAUSED&&l==a.api.events.state.IDLE)return;if(l!=b){var c=l;i.state=l=b,h.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}function x(a){}function y(b){var c=Math.round(k.volume*100);c!=i.volume&&(i.volume=c,h.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:i.volume})),k.muted!=i.mute&&(i.mute=k.muted,h.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:i.mute}))}function z(b){var d;if(c.exists(b)&&b.lengthComputable&&b.total)d=b.loaded/b.total*100;else if(c.exists(k.buffered)&&k.buffered.length>0){var e=k.buffered.length-1;e>=0&&(d=k.buffered.end(e)/k.duration*100)}s===!1&&l==a.api.events.state.BUFFERING&&(h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),s=!0),r||(d==100&&(r=!0),c.exists(d)&&d>i.buffer&&(i.buffer=Math.round(d),h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(d)})))}function A(b){if(c.exists(b)&&c.exists(b.target)){!isNaN(b.target.duration)&&(isNaN(i.duration)||i.duration<1)&&(b.target.duration==Infinity?i.duration=0:i.duration=Math.round(b.target.duration*10)/10),!m&&k.readyState>0&&(k.style.display="block",w(a.api.events.state.PLAYING));if(l==a.api.events.state.PLAYING){if(!m&&k.readyState>0){m=!0;try{k.currentTime<n.start&&(k.currentTime=n.start)}catch(d){}k.volume=i.volume/100,k.muted=i.mute}i.position=i.duration>0?Math.round(b.target.currentTime*10)/10:0,h.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:i.position,duration:i.duration}),i.position>=i.duration&&(i.position>0||i.duration>0)&&I()}}z(b)}function B(a){}function C(a){b[a.type]&&(a.type=="ended"?I():w(b[a.type]))}function D(b){var c=Math.round(b.target.duration*10)/10,d={height:b.target.videoHeight,width:b.target.videoWidth,duration:c};(i.duration<c||isNaN(i.duration))&&b.target.duration!=Infinity&&(i.duration=c),h.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:d})}function E(b){if(l==a.api.events.state.IDLE)return;var d="There was an error: ";if(b.target.error&&b.target.tagName.toLowerCase()=="video"||b.target.parentNode.error&&b.target.parentNode.tagName.toLowerCase()=="video"){var e=c.exists(b.target.error)?b.target.error:b.target.parentNode.error;switch(e.code){case e.MEDIA_ERR_ABORTED:d="You aborted the video playback: ";break;case e.MEDIA_ERR_NETWORK:d="A network error caused the video download to fail part-way: ";break;case e.MEDIA_ERR_DECODE:d="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case e.MEDIA_ERR_SRC_NOT_SUPPORTED:d="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:d="An unknown error occurred: "}}else{if(b.target.tagName.toLowerCase()!="source"){c.log("An unknown error occurred.  Continuing...");return}t--;if(t>0)return;d="The video could not be loaded, either because the server or network failed or because the format is not supported: "}_stop(!1),d+=F(),_error=!0,h.sendEvent(a.api.events.JWPLAYER_ERROR,{message:d});return}function F(){var b="";for(var c in n.levels){var d=n.levels[c],e=j.ownerDocument.createElement("source");b+=a.utils.getAbsolutePath(d.file),c<n.levels.length-1&&(b+=", ")}return b}function G(){c.exists(o)||(o=setInterval(function(){z()},100))}function H(){clearInterval(o),o=null}function I(){l!=a.api.events.state.IDLE&&(_stop(!1),h.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE))}function J(b){c.exists(k.webkitDisplayingFullscreen)&&i.fullscreen&&!k.webkitDisplayingFullscreen&&h.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1})}function K(a){if(a.length>0&&c.isIOS()&&c.extension(a[0].file)!="mp4"){var b=-1;for(var d=1;d<a.length;d++)if(c.extension(a[d].file)=="mp4"){b=d;break}if(b>-1){var e=a.splice(b,1)[0];a.unshift(e)}}}var g={abort:x,canplay:C,canplaythrough:C,durationchange:D,emptied:x,ended:C,error:E,loadeddata:D,loadedmetadata:D,loadstart:C,pause:C,play:x,playing:C,progress:z,ratechange:x,seeked:C,seeking:C,stalled:C,suspend:C,timeupdate:A,volumechange:y,waiting:C,canshowcurrentframe:x,dataunavailable:x,empty:x,load:B,loadedfirstframe:x,webkitfullscreenchange:J},h=new a.html5.eventdispatcher;c.extend(this,h);var i=d,j=f,k,l,m,n,o,p=!1,q=!1,r,s,t;v(),this.load=function(b,d){typeof d=="undefined"&&(d=!0);if(!q)return;n=b,c.empty(k),t=0;if(b.levels&&b.levels.length>0)if(b.levels.length==1)k.src=b.levels[0].file;else{K(b.levels),k.src&&k.removeAttribute("src");for(var f=0;f<b.levels.length;f++){var g=k.ownerDocument.createElement("source");g.src=b.levels[f].file,k.appendChild(g),t++}}else k.src=b.file;e&&(b.image&&(k.poster=b.image),k.style.display="block",setTimeout(function(){k.setAttribute("controls","controls")},100)),r=s=m=!1,i.buffer=0,c.exists(b.start)||(b.start=0),i.duration=b.duration,h.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED),(!e&&b.levels.length==1||!p)&&k.load(),p=!1,d&&(w(a.api.events.state.BUFFERING),h.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),this.play())},this.play=function(){if(!q)return;l!=a.api.events.state.PLAYING&&(G(),s?w(a.api.events.state.PLAYING):w(a.api.events.state.BUFFERING),k.play())},this.pause=function(){if(!q)return;k.pause(),w(a.api.events.state.PAUSED)},this.seek=function(a){if(!q)return;!(i.duration<=0||isNaN(i.duration))&&!(i.position<=0||isNaN(i.position))&&(k.currentTime=a,k.play())},_stop=this.stop=function(b){if(!q)return;c.exists(b)||(b=!0),H();if(b){k.style.display="none",s=!1;var d=navigator.userAgent;d.match(/chrome/i)?k.src=undefined:d.match(/safari/i)||d.match(/firefox/i)?k.removeAttribute("src"):k.src="",k.removeAttribute("controls"),k.removeAttribute("poster"),c.empty(k),k.load(),p=!0;if(k.webkitSupportsFullscreen)try{k.webkitExitFullscreen()}catch(e){}}w(a.api.events.state.IDLE)},this.fullscreen=function(a){a===!0?this.resize("100%","100%"):this.resize(i.config.width,i.config.height)},this.resize=function(a,b){},this.volume=function(a){e||(k.volume=a/100)},this.mute=function(a){e||(k.muted=a)},this.getDisplayElement=function(){return k},this.hasChrome=function(){return e},this.detachMedia=function(){return q=!1,this.getDisplayElement()},this.attachMedia=function(){q=!0}}}(jwplayer),function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING},c=a.utils.css;a.html5.mediayoutube=function(b,d){function k(b){if(h!=b){var c=h;f.state=b,h=b,e.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b})}}function l(a){var b=a.levels[0].file;b=["http://www.youtube.com/v/",m(b),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join(""),i=document.createElement("object"),i.id=g.id,i.style.position="absolute";var c={movie:b,allowfullscreen:"true",allowscriptaccess:"always"};for(var d in c){var e=document.createElement("param");e.name=d,e.value=c[d],i.appendChild(e)}j=document.createElement("embed"),i.appendChild(j);var f={src:b,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:i.width,height:i.height};for(var h in f)j.setAttribute(h,f[h]);i.appendChild(j),i.style.zIndex=2147483e3,g!=i&&g.parentNode&&g.parentNode.replaceChild(i,g),g=i}function m(a){var b=a.split(/\?|\#\!/),c="";for(var d=0;d<b.length;d++)b[d].substr(0,2)=="v="&&(c=b[d].substr(2));return c==""&&(a.indexOf("/v/")>=0?c=a.substr(a.indexOf("/v/")+3):a.indexOf("youtu.be")>=0?c=a.substr(a.indexOf("youtu.be/")+9):c=a),c.indexOf("?")>-1&&(c=c.substr(0,c.indexOf("?"))),c.indexOf("&")>-1&&(c=c.substr(0,c.indexOf("&"))),c}var e=new a.html5.eventdispatcher;a.utils.extend(this,e);var f=b,g=document.getElementById(d.id),h=a.api.events.state.IDLE,i,j;return this.getDisplayElement=this.detachMedia=function(){return g},this.attachMedia=function(){},this.play=function(){h==a.api.events.state.IDLE?(e.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),e.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL),k(a.api.events.state.PLAYING)):h==a.api.events.state.PAUSED&&k(a.api.events.state.PLAYING)},this.pause=function(){k(a.api.events.state.PAUSED)},this.seek=function(a){},this.stop=function(b){_utils.exists(b)||(b=!0),f.position=0,k(a.api.events.state.IDLE),b&&c(g,{display:"none"})},this.volume=function(b){f.volume=b,e.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})},this.mute=function(b){g.muted=b,f.mute=b,e.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})},this.resize=function(a,b){a*b>0&&i&&(i.width=j.width=a,i.height=j.height=b)},this.fullscreen=function(a){a===!0?this.resize("100%","100%"):this.resize(f.config.width,f.config.height)},this.load=function(b){l(b),c(i,{display:"block"}),k(a.api.events.state.BUFFERING),e.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),e.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED),this.play()},this.hasChrome=function(){return h!=a.api.events.state.IDLE},this.embed=j,this}}(jwplayer),function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){function _loadExternal(a){var b=new jwplayer.html5.playlistloader;b.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(a){_model.playlist=new jwplayer.html5.playlist(a),_loadComplete(!0)}),b.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(a){_model.playlist=new jwplayer.html5.playlist({playlist:[]}),_loadComplete(!1)}),b.load(a)}function _loadComplete(){_model.config.shuffle?_model.item=_getShuffleItem():(_model.config.item>=_model.playlist.length?_model.config.item=_model.playlist.length-1:_model.config.item<0&&(_model.config.item=0),_model.item=_model.config.item),_model.position=0,_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0,_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist}),_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}function _getShuffleItem(){var a=null;if(_model.playlist.length>1)while(!jwplayer.utils.exists(a))a=Math.floor(Math.random()*_model.playlist.length),a==_model.item&&(a=null);else a=0;return a}function forward(a){a.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED&&(_container=_media.getDisplayElement()),_eventDispatcher.sendEvent(a.type,a)}var _api=api,_container=container,_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:!1,fullscreen:!1,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},_media,_eventDispatcher=new jwplayer.html5.eventdispatcher,_components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config,path=option.split(".");for(var edge in path)edge==path.length-1?config[path[edge]]=options[option]:(jwplayer.utils.exists(config[path[edge]])||(config[path[edge]]={}),config=config[path[edge]])}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)&&typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins)typeof userplugins[userplugin]=="string"&&pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}jwplayer.utils.isMobile()?(pluginorder=["display","logo","dock","playlist"],jwplayer.utils.exists(_model.config.repeat)||(_model.config.repeat="list")):_model.config.chromeless&&(pluginorder=["logo","dock","playlist"],jwplayer.utils.exists(_model.config.repeat)||(_model.config.repeat="list")),_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined")for(var component in _model.config.components)_model.plugins.config[component]=_model.config.components[component];var playlistVisible=!1;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex],pluginConfig=jwplayer.utils.exists(_model.plugins.config[pluginName])?_model.plugins.config[pluginName]:{};_model.plugins.config[pluginName]=jwplayer.utils.exists(_model.plugins.config[pluginName])?jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig):pluginConfig,jwplayer.utils.exists(_model.plugins.config[pluginName].position)?(pluginName=="playlist"&&(playlistVisible=!0),_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()):pluginName=="playlist"?_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE:_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}_model.plugins.config.controlbar&&playlistVisible&&(_model.plugins.config.controlbar.hideplaylistcontrols=!0);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}}typeof _model.plugins.config.dock.position!="undefined"&&(_model.plugins.config.dock.align=_model.plugins.config.dock.position,_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER);if(typeof _model.plugins.config.dock.idlehide=="undefined")try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string")if(arg.indexOf("[")==0||arg.indexOf("{")=="0")try{input=eval(arg)}catch(err){input=arg}else input=arg;else input=arg;var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}_model.playlist=new jwplayer.html5.playlist(config),_model.item=_model.config.item>=0?_model.config.item:0,_model.playlist[_model.item].provider?_loadComplete():_loadExternal(_model.playlist[_model.item].file)};var _mediaProviders={};return _model.setActiveMediaProvider=function(a){a.provider=="audio"&&(a.provider="sound");var b=a.provider,c=_media?_media.getDisplayElement():null;if(b=="sound"||b=="http"||b=="")b="video";if(!jwplayer.utils.exists(_mediaProviders[b])){switch(b){case"video":_media=new jwplayer.html5.mediavideo(_model,c?c:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,c?c:_container)}if(!jwplayer.utils.exists(_media))return!1;_media.addGlobalListener(forward),_mediaProviders[b]=_media}else _media!=_mediaProviders[b]&&(_media&&_media.stop(),_media=_mediaProviders[b]);return!0},_model.getMedia=function(){return _media},_model.seek=function(a){return _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:a}),_media.seek(a)},_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0)return jwplayer.utils.log("No plugins to set up"),_model;for(var a=0;a<_model.plugins.order.length;a++)try{var b=_model.plugins.order[a];jwplayer.utils.exists(jwplayer.html5[b])?b=="playlist"?_model.plugins.object[b]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[b]):_model.plugins.object[b]=new jwplayer.html5[b](_api,_model.plugins.config[b]):_model.plugins.order.splice(plugin,plugin+1),typeof _model.plugins.object[b].addGlobalListener=="function"&&_model.plugins.object[b].addGlobalListener(forward)}catch(c){jwplayer.utils.log("Could not setup "+b)}},_model}}(jwplayer),function(a){a.html5.playlist=function(b){var c=[];if(b.playlist&&b.playlist instanceof Array&&b.playlist.length>0)for(var d in b.playlist)isNaN(parseInt(d))||c.push(new a.html5.playlistitem(b.playlist[d]));else c.push(new a.html5.playlistitem(b));return c}}(jwplayer),function(a){var b={size:180,position:a.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},c={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=a.utils,_css=_utils.css,_hide=function(a){_css(a,{display:"none"})},_show=function(a){_css(a,{display:"block"})},a.html5.playlistcomponent=function(d,e){function p(){h=document.createElement("div"),h.id=f.id+"_jwplayer_playlistcomponent",h.style.overflow="hidden";switch(g.position){case a.html5.view.positions.RIGHT:case a.html5.view.positions.LEFT:h.style.width=g.size+"px";break;case a.html5.view.positions.TOP:case a.html5.view.positions.BOTTOM:h.style.height=g.size+"px"}A(),o.item&&(g.itemheight=o.item.height),h.style.backgroundColor="#C6C6C6",f.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,u),f.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,y),f.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,z)}function q(){var a=document.createElement("ul");return _css(a,{width:h.style.width,minWidth:h.style.width,height:h.style.height,backgroundColor:g.backgroundcolor,backgroundImage:o.background?"url("+o.background.src+")":"",color:g.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:c[g.font]?c[g.font]:c._sans,fontSize:(g.fontsize?g.fontsize:11)+"px",fontStyle:g.fontstyle,fontWeight:g.fontweight,overflowY:"auto"}),a}function r(a){return function(){var b=m.getElementsByClassName("item")[a],c=g.fontcolor,d=o.item?"url("+o.item.src+")":"";a==f.jwGetPlaylistIndex()&&(g.activecolor!==""&&(c=g.activecolor),o.itemActive&&(d="url("+o.itemActive.src+")")),_css(b,{color:g.overcolor!==""?g.overcolor:c,backgroundImage:o.itemOver?"url("+o.itemOver.src+")":d})}}function s(a){return function(){var b=m.getElementsByClassName("item")[a],c=g.fontcolor,d=o.item?"url("+o.item.src+")":"";a==f.jwGetPlaylistIndex()&&(g.activecolor!==""&&(c=g.activecolor),o.itemActive&&(d="url("+o.itemActive.src+")")),_css(b,{color:c,backgroundImage:d})}}function t(b){var c=k[b],d=document.createElement("li");d.className="item",_css(d,{height:g.itemheight,display:"block",cursor:"pointer",backgroundImage:o.item?"url("+o.item.src+")":"",backgroundSize:"100% "+g.itemheight+"px"}),d.onmouseover=r(b),d.onmouseout=s(b);var e=document.createElement("div"),f=new Image,h=0,l=0,m=0;x()&&(c.image||c["playlist.image"]||o.itemImage)&&(f.className="image",o.itemImage?(h=(g.itemheight-o.itemImage.height)/2,l=o.itemImage.width,m=o.itemImage.height):(l=g.itemheight*4/3,m=g.itemheight),_css(e,{height:m,width:l,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:h+"px",position:"relative"}),_css(f,{position:"relative"}),e.appendChild(f),f.onload=function(){a.utils.stretch(a.utils.stretching.FILL,f,l,m,this.naturalWidth,this.naturalHeight)},c["playlist.image"]?f.src=c["playlist.image"]:c.image?f.src=c.image:o.itemImage&&(f.src=o.itemImage.src),d.appendChild(e));var n=i-l-h*2;j<g.itemheight*k.length&&(n-=15);var p=document.createElement("div");_css(p,{position:"relative",height:"100%",overflow:"hidden"});var q=document.createElement("span");c.duration>0&&(q.className="duration",_css(q,{fontSize:(g.fontsize?g.fontsize:11)+"px",fontWeight:g.fontweight?g.fontweight:"bold",width:"40px",height:g.fontsize?g.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"}),q.innerHTML=_utils.timeFormat(c.duration),p.appendChild(q));var t=document.createElement("span");t.className="title",_css(t,{padding:"5px 5px 0 "+(h?0:"5px"),height:g.fontsize?g.fontsize+10:20,lineHeight:g.fontsize?g.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:(c.duration>0?n-50:n)-10+"px",fontSize:(g.fontsize?g.fontsize:13)+"px",fontWeight:g.fontweight?g.fontweight:"bold"}),t.innerHTML=c?c.title:"",p.appendChild(t);if(c.description){var u=document.createElement("span");u.className="description",_css(u,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:t.style.paddingLeft,paddingRight:t.style.paddingRight,lineHeight:(g.fontsize?g.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),u.innerHTML=c.description,p.appendChild(u)}return d.appendChild(p),d}function u(a){h.innerHTML="",k=f.jwGetPlaylist();if(!k)return;items=[],m=q();for(var b=0;b<k.length;b++){var c=t(b);c.onclick=v(b),m.appendChild(c),items.push(c)}n=f.jwGetPlaylistIndex(),s(n)(),h.appendChild(m);if(_utils.isIOS()&&window.iScroll){m.style.height=g.itemheight*k.length+"px";var d=new iScroll(h.id)}}function v(a){return function(){f.jwPlaylistItem(a),f.jwPlay(!0)}}function w(){m.scrollTop=f.jwGetPlaylistIndex()*g.itemheight}function x(){return g.thumbs.toString().toLowerCase()=="true"}function y(a){n>=0&&(s(n)(),n=a.index),s(a.index)(),w()}function z(){if(g.position==a.html5.view.positions.OVER)switch(f.jwGetState()){case a.api.events.state.IDLE:_show(h);break;default:_hide(h)}}function A(){for(var a in o)o[a]=B(a)}function B(a){return f.skin.getSkinElement("playlist",a)}var f=d,g=a.utils.extend({},b,f.skin.getComponentSettings("playlist"),e);if(g.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[g.position]=="undefined")return;var h,i,j,k,l,m,n=-1,o={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};return this.getDisplayElement=function(){return h},this.resize=function(a,b){i=a,j=b;if(f.jwGetFullscreen())_hide(h);else{var c={display:"block",width:i,height:j};_css(h,c)}},this.show=function(){_show(h)},this.hide=function(){_hide(h)},p(),this}}(jwplayer),function(a){function b(b){if(a.utils.isYouTube(b.file))return"youtube";var c=a.utils.extension(b.file),d;if(c&&a.utils.extensionmap[c]){if(c=="m3u8")return"video";d=a.utils.extensionmap[c].html5}else b.type&&(d=b.type);if(d){var e=d.split("/")[0];if(e=="audio")return"sound";if(e=="video")return e}return""}a.html5.playlistitem=function(c){var d={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},e=a.utils.extend({},d,c);return e.type&&(e.provider=e.type,delete e.type),e.levels.length===0&&(e.levels[0]=new a.html5.playlistitemlevel(e)),e.provider?e.provider=e.provider.toLowerCase():e.provider=b(e.levels[0]),e}}(jwplayer),function(a){a.html5.playlistitemlevel=function(b){var c={file:"",streamer:"",bitrate:0,width:0};for(var d in c)a.utils.exists(b[d])&&(c[d]=b[d]);return c}}(jwplayer),function(a){a.html5.playlistloader=function(){function c(c){var e=[];try{var e=a.utils.parsers.rssparser.parse(c.responseXML.firstChild);b.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new a.html5.playlist({playlist:e})})}catch(f){d("Could not parse the playlist")}}function d(c){b.sendEvent(a.api.events.JWPLAYER_ERROR,{message:c?c:"Could not load playlist an unknown reason."})}var b=new a.html5.eventdispatcher;a.utils.extend(this,b),this.load=function(b){a.utils.ajax(b,c,d)}}}(jwplayer),function(a){a.html5.skin=function(){var b={},c=!1;this.load=function(d,e){new a.html5.skinloader(d,function(a){c=!0,b=a,e()},function(){new a.html5.skinloader("",function(a){c=!0,b=a,e()})})},this.getSkinElement=function(d,e){if(c)try{return b[d].elements[e]}catch(f){a.utils.log("No such skin component / element: ",[d,e])}return null},this.getComponentSettings=function(a){return c?b[a].settings:null},this.getComponentLayout=function(a){return c?b[a].layout:null}}}(jwplayer),function(a){a.html5.skinloader=function(b,c,d){function l(){typeof j!="string"||j===""?m(a.html5.defaultSkin().xml):a.utils.ajax(a.utils.getAbsolutePath(j),function(b){try{if(a.utils.exists(b.responseXML)){m(b.responseXML);return}}catch(c){p()}m(a.html5.defaultSkin().xml)},function(b){m(a.html5.defaultSkin().xml)})}function m(b){var c=b.getElementsByTagName("component");if(c.length===0)return;for(var d=0;d<c.length;d++){var f=c[d].getAttribute("name"),g={settings:{},elements:{},layout:{}};e[f]=g;var i=c[d].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var j=0;j<i.length;j++)o(i[j],f);var k=c[d].getElementsByTagName("settings")[0];if(k&&k.childNodes.length>0){var l=k.getElementsByTagName("setting");for(var m=0;m<l.length;m++){var p=l[m].getAttribute("name"),q=l[m].getAttribute("value"),r=/color$/.test(p)?"color":null;e[f].settings[p]=a.utils.typechecker(q,r)}}var s=c[d].getElementsByTagName("layout")[0];if(s&&s.childNodes.length>0){var t=s.getElementsByTagName("group");for(var u=0;u<t.length;u++){var v=t[u];e[f].layout[v.getAttribute("position")]={elements:[]};for(var w=0;w<v.attributes.length;w++){var x=v.attributes[w];e[f].layout[v.getAttribute("position")][x.name]=x.value}var y=v.getElementsByTagName("*");for(var z=0;z<y.length;z++){var A=y[z];e[f].layout[v.getAttribute("position")].elements.push({type:A.tagName});for(var B=0;B<A.attributes.length;B++){var C=A.attributes[B];e[f].layout[v.getAttribute("position")].elements[z][C.name]=C.value}a.utils.exists(e[f].layout[v.getAttribute("position")].elements[z].name)||(e[f].layout[v.getAttribute("position")].elements[z].name=A.tagName)}}}h=!1,n()}}function n(){clearInterval(i),k||(i=setInterval(function(){q()},100))}function o(b,c){var d=new Image,f=b.getAttribute("name"),h=b.getAttribute("src"),i;if(h.indexOf("data:image/png;base64,")===0)i=h;else{var l=a.utils.getAbsolutePath(j),m=l.substr(0,l.lastIndexOf("/"));i=[m,c,h].join("/")}e[c].elements[f]={height:0,width:0,src:"",ready:!1,image:d},d.onload=function(a){r(d,f,c)},d.onerror=function(a){k=!0,n(),g()},d.src=i}function p(){for(var a in e){var b=e[a];for(var c in b.elements){var d=b.elements[c],f=d.image;f.onload=null,f.onerror=null,delete d.image,delete b.elements[c]}delete e[a]}}function q(){for(var a in e)if(a!="properties")for(var b in e[a].elements)if(!e[a].elements[b].ready)return;h===!1&&(clearInterval(i),f(e))}function r(b,c,d){e[d]&&e[d].elements[c]?(e[d].elements[c].height=b.height,e[d].elements[c].width=b.width,e[d].elements[c].src=b.src,e[d].elements[c].ready=!0,n()):a.utils.log("Loaded an image for a missing element: "+d+"."+c)}var e={},f=c,g=d,h=!0,i,j=b,k=!1;l()}}(jwplayer),function(a){a.html5.api=function(b,c){function i(){f.state==a.api.events.state.PLAYING||f.state==a.api.events.state.BUFFERING?h.pause():h.play()}function j(a){return function(){return f[a]}}function k(a,b,c){return function(){var d=f.plugins.object[a];d&&d[b]&&typeof d[b]=="function"&&d[b].apply(d,c)}}function l(){f.config.playlistfile?(f.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED
,m),f.loadPlaylist(f.config.playlistfile)):typeof f.config.playlist=="string"?(f.addEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m),f.loadPlaylist(f.config.playlist)):(f.loadPlaylist(f.config),setTimeout(m,25))}function m(b){f.removeEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,m),f.setupPlugins(),g.setup();var b={id:d.id,version:d.version};h.playerReady(b)}var d={},e=document.createElement("div");b.parentNode.replaceChild(e,b),e.id=b.id,d.version=a.version,d.id=e.id;var f=new a.html5.model(d,e,c),g=new a.html5.view(d,e,f),h=new a.html5.controller(d,e,f,g);return d.skin=new a.html5.skin,d.jwPlay=function(a){typeof a=="undefined"?i():a.toString().toLowerCase()=="true"?h.play():h.pause()},d.jwPause=function(a){typeof a=="undefined"?i():a.toString().toLowerCase()=="true"?h.pause():h.play()},d.jwStop=h.stop,d.jwSeek=h.seek,d.jwPlaylistItem=h.item,d.jwPlaylistNext=h.next,d.jwPlaylistPrev=h.prev,d.jwResize=h.resize,d.jwLoad=h.load,d.jwDetachMedia=h.detachMedia,d.jwAttachMedia=h.attachMedia,d.jwGetItem=j("item"),d.jwGetPosition=j("position"),d.jwGetDuration=j("duration"),d.jwGetBuffer=j("buffer"),d.jwGetWidth=j("width"),d.jwGetHeight=j("height"),d.jwGetFullscreen=j("fullscreen"),d.jwSetFullscreen=h.setFullscreen,d.jwGetVolume=j("volume"),d.jwSetVolume=h.setVolume,d.jwGetMute=j("mute"),d.jwSetMute=h.setMute,d.jwGetStretching=function(){return f.stretching.toUpperCase()},d.jwGetState=j("state"),d.jwGetVersion=function(){return d.version},d.jwGetPlaylist=function(){return f.playlist},d.jwGetPlaylistIndex=d.jwGetItem,d.jwAddEventListener=h.addEventListener,d.jwRemoveEventListener=h.removeEventListener,d.jwSendEvent=h.sendEvent,d.jwDockSetButton=function(a,b,c,d){f.plugins.object.dock&&f.plugins.object.dock.setButton&&f.plugins.object.dock.setButton(a,b,c,d)},d.jwControlbarShow=k("controlbar","show"),d.jwControlbarHide=k("controlbar","hide"),d.jwDockShow=k("dock","show"),d.jwDockHide=k("dock","hide"),d.jwDisplayShow=k("display","show"),d.jwDisplayHide=k("display","hide"),d.jwGetLevel=function(){},d.jwGetBandwidth=function(){},d.jwGetLockState=function(){},d.jwLock=function(){},d.jwUnlock=function(){},f.config.chromeless&&!a.utils.isIOS()?l():d.skin.load(f.config.skin,l),d}}(jwplayer)}((function(){$(function(){return $("a[rel*=facebox]").facebox(),$("#page-wrap #footer").slideDown(1e3),$(document).ajaxStop(function(){return $.each($("#facebox .plus-content").find("a"),function(){return jwplayer("player").setup({flashplayer:"http://fdn.focovirtual.com/videos/new-player.swf",file:$(this).attr("href")})})}),this.active_menu=!1,$("a#quick-login-link").click(function(){return this.active_menu?(this.active_menu=!1,$("#quick-login").slideUp()):(this.active_menu=!0,$("#quick-login").slideDown(200,function(){return $("input#user_login").focus()}))})})})).call(this)
