if(!Function.prototype.bind)Function.prototype.bind=function(c){var b=this,a=Array.prototype.slice.call(arguments),c=a.shift();return function(){return b.apply(c,a.concat(Array.prototype.slice.call(arguments)))}};(function(){var a=false,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(e){var g=this.prototype;a=true;var f=new this;a=false;for(var c in e)f[c]=typeof e[c]=="function"&&typeof g[c]=="function"&&b.test(e[c])?function(a,b){return function(){var d=this._super;this._super=g[a];var c=b.apply(this,arguments);this._super=d;return c}}(c,e[c]):e[c];function d(){!a&&this.init&&this.init.apply(this,arguments)}d.prototype=f;d.constructor=d;d.extend=arguments.callee;return d}})();var JSON;if(!JSON)JSON={};(function(){"use strict";function c(a){return a<10?"0"+a:a}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,d,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b;function g(a){f.lastIndex=0;return f.test(a)?'"'+a.replace(f,function(a){var b=i[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function e(m,n){var i,j,h,k,l=a,f,c=n[m];if(c&&typeof c==="object"&&typeof c.toJSON==="function")c=c.toJSON(m);if(typeof b==="function")c=b.call(n,m,c);switch(typeof c){case"string":return g(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";a+=d;f=[];if(Object.prototype.toString.apply(c)==="[object Array]"){k=c.length;for(i=0;i<k;i+=1)f[i]=e(i,c)||"null";h=f.length===0?"[]":a?"[\n"+a+f.join(",\n"+a)+"\n"+l+"]":"["+f.join(",")+"]";a=l;return h}if(b&&typeof b==="object"){k=b.length;for(i=0;i<k;i+=1){j=b[i];if(typeof j==="string"){h=e(j,c);h&&f.push(g(j)+(a?": ":":")+h)}}}else for(j in c)if(Object.hasOwnProperty.call(c,j)){h=e(j,c);h&&f.push(g(j)+(a?": ":":")+h)}h=f.length===0?"{}":a?"{\n"+a+f.join(",\n"+a)+"\n"+l+"}":"{"+f.join(",")+"}";a=l;return h}}if(typeof JSON.stringify!=="function")JSON.stringify=function(h,c,f){var g;a="";d="";if(typeof f==="number")for(g=0;g<f;g+=1)d+=" ";else if(typeof f==="string")d=f;b=c;if(c&&typeof c!=="function"&&(typeof c!=="object"||typeof c.length!=="number"))throw new Error("JSON.stringify");return e("",{"":h})};if(typeof JSON.parse!=="function")JSON.parse=function(a,c){var b;function d(f,g){var b,e,a=f[g];if(a&&typeof a==="object")for(b in a)if(Object.hasOwnProperty.call(a,b)){e=d(a,b);if(e!==undefined)a[b]=e;else delete a[b]}return c.call(f,g,a)}a=String(a);h.lastIndex=0;if(h.test(a))a=a.replace(h,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){b=eval("("+a+")");return typeof c==="function"?d({"":b},""):b}throw new SyntaxError("JSON.parse");}})();if(typeof jwplayer=="undefined"){var jwplayer=function(a){if(jwplayer.api)return jwplayer.api.selectPlayer(a)},$jw=jwplayer;jwplayer.version="5.6.1768";(function(a){a.utils=function(){};a.utils.typeOf=function(b){var a=typeof b;if(a==="object")if(b){if(b instanceof Array)a="array"}else a="null";return a};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(){var c,b=a.utils.clone.arguments;if(b.length==1)switch(a.utils.typeOf(b[0])){case"object":c={};for(var d in b[0])c[d]=a.utils.clone(b[0][d]);break;case"array":c=[];for(var d in b[0])c[d]=a.utils.clone(b[0][d]);break;default:return b[0]}return c};a.utils.extension=function(a){a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1)return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};a.utils.html=function(a,b){a.innerHTML=b};a.utils.wrap=function(a,b){a.parentNode.replaceChild(b,a);b.appendChild(a)};a.utils.ajax=function(c,d,b){var a;if(window.XMLHttpRequest)a=new XMLHttpRequest;else a=new ActiveXObject("Microsoft.XMLHTTP");a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200)d&&d(a);else b&&b(c)};try{a.open("GET",c,true);a.send(null)}catch(e){b&&b(c)}return a};a.utils.load=function(a,c,b){a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200)c&&c();else b&&b()}};a.utils.find=function(b,a){return b.getElementsByTagName(a)};a.utils.append=function(a,b){a.appendChild(b)};a.utils.isIE=function(){return!+"\131"||typeof window.ActiveXObject!="undefined"};a.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return a.match(/android 2.[012]/i)!==null};a.utils.isIOS=function(){var a=navigator.userAgent.toLowerCase();return a.match(/iP(hone|ad)/i)!==null};a.utils.getFirstPlaylistItemFromConfig=function(c){var a={},b;if(c.playlist&&c.playlist.length)b=c.playlist[0];else b=c;a.file=b.file;a.levels=b.levels;a.streamer=b.streamer;a.playlistfile=b.playlistfile;a.provider=b.provider;if(!a.provider){if(a.file&&(a.file.toLowerCase().indexOf("youtube.com")>-1||a.file.toLowerCase().indexOf("youtu.be")>-1))a.provider="youtube";if(a.streamer&&a.streamer.toLowerCase().indexOf("rtmp://")==0)a.provider="rtmp";if(b.type)a.provider=b.type.toLowerCase()}return a};a.utils.getOuterHTML=function(a){if(a.outerHTML)return a.outerHTML;else{var b=a.parentNode,c=document.createElement(b.tagName),d=document.createElement(a.tagName);b.replaceChild(d,a);c.appendChild(a);var e=c.innerHTML;b.replaceChild(a,d);return e}};a.utils.setOuterHTML=function(a,c){if(a.outerHTML)a.outerHTML=c;else{var d=document.createElement("div");d.innerHTML=c;var b=document.createRange();b.selectNodeContents(d);var e=b.extractContents();a.parentNode.insertBefore(e,a);a.parentNode.removeChild(a)}};a.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return true;if(typeof window.ActiveXObject!="undefined")try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(a){}return false};a.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0)a=a.substring(a.lastIndexOf("/")+1,a.length);if(a.lastIndexOf("-")>=0)a=a.substring(0,a.lastIndexOf("-"));if(a.lastIndexOf(".swf")>=0)a=a.substring(0,a.lastIndexOf(".swf"));if(a.lastIndexOf(".js")>=0)a=a.substring(0,a.lastIndexOf(".js"));return a};a.utils.getPluginVersion=function(a){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(e,d){if(d===undefined)d=document.location.href;if(e===undefined)return undefined;if(b(e))return e;var g=d.substring(0,d.indexOf("://")+3),i=d.substring(g.length,d.indexOf("/",g.length+1)),a;if(e.indexOf("/")===0)a=e.split("/");else{var f=d.split("?")[0];f=f.substring(g.length+i.length+1,f.lastIndexOf("/"));a=f.split("/").concat(e.split("/"))}for(var h=[],c=0;c<a.length;c++)if(!a[c]||a[c]===undefined||a[c]==".")continue;else if(a[c]=="..")h.pop();else h.push(a[c]);return g+i+"/"+h.join("/")};function b(a){if(a===null)return;var c=a.indexOf("://"),b=a.indexOf("?");return c>0&&(b<0||b>c)}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 e=b.indexOf("/"),d=a.utils.extension(b);return c<0&&e<0&&(!d||!isNaN(d))?a.utils.pluginPathType.CDN:a.utils.pluginPathType.RELATIVE};a.utils.mapEmpty=function(a){for(var b in a)return false;return true};a.utils.mapLength=function(b){var a=0;for(var c in b)a++;return a};a.utils.log=function(b,a){if(typeof console!="undefined"&&typeof console.log!="undefined")if(a)console.log(b,a);else console.log(b)};a.utils.css=function(d,c){if(d!==undefined)for(var b in c)try{if(typeof c[b]==="undefined")continue;else if(typeof c[b]=="number"&&!(b=="zIndex"||b=="opacity")){if(isNaN(c[b]))continue;if(b.match(/color/i))c[b]="#"+a.utils.strings.pad(c[b].toString(16),6);else c[b]=Math.ceil(c[b])+"px"}d.style[b]=c[b]}catch(f){}};a.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1};a.utils.transform=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.OTransform=b};a.utils.stretch=function(j,g,i,h,d,c){if(typeof i=="undefined"||typeof h=="undefined"||typeof d=="undefined"||typeof c=="undefined")return;var e=i/d,f=h/c,l=0,k=0;g.style.overflow="hidden";a.utils.transform(g,"");var b={};switch(j.toUpperCase()){case a.utils.stretching.NONE:b.width=d;b.height=c;break;case a.utils.stretching.UNIFORM:if(e>f){b.width=d*f;b.height=c*f}else{b.width=d*e;b.height=c*e}break;case a.utils.stretching.FILL:if(e>f){b.width=d*e;b.height=c*e}else{b.width=d*f;b.height=c*f}break;case a.utils.stretching.EXACTFIT:a.utils.transform(g,["scale(",e,",",f,")"," translate(0px,0px)"].join(""));b.width=d;b.height=c}b.top=(h-b.height)/2;b.left=(i-b.width)/2;a.utils.css(g,b)};a.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};a.utils.deepReplaceKeyName=function(b,f,e){switch(a.utils.typeOf(b)){case"array":for(var d=0;d<b.length;d++)b[d]=a.utils.deepReplaceKeyName(b[d],f,e);break;case"object":for(var c in b){var g=c.replace(new RegExp(f,"g"),e);b[g]=a.utils.deepReplaceKeyName(b[c],f,e);if(c!=g)delete b[c]}}return b};a.utils.isInArray=function(a,c){if(!a||!(a instanceof Array))return false;for(var b=0;b<a.length;b++)if(c===a[b])return true;return false}})(jwplayer);(function(a){a.events=function(){};a.events.COMPLETE="COMPLETE";a.events.ERROR="ERROR"})(jwplayer);(function(a){a.events.eventdispatcher=function(e){var d=e,b,c;this.resetEventListeners=function(){b={};c=[]};this.resetEventListeners();this.addEventListener=function(d,c,e){try{if(b[d]===undefined)b[d]=[];if(typeof c=="string")eval("listener = "+c);b[d].push({listener:c,count:e})}catch(f){a.utils.log("error",f)}return false};this.removeEventListener=function(c,e){try{for(var d=0;d<b[c].length;d++)if(b[c][lisenterIndex].toString()==e.toString()){b[c].slice(lisenterIndex,lisenterIndex+1);break}}catch(f){a.utils.log("error",f)}return false};this.addGlobalListener=function(b,d){try{if(typeof b=="string")eval("listener = "+b);c.push({listener:b,count:d})}catch(e){a.utils.log("error",e)}return false};this.removeGlobalListener=function(d){try{for(var b=0;b<c.length;b++)if(c[b].toString()==d.toString()){c.slice(b,b+1);break}}catch(e){a.utils.log("error",e)}return false};this.sendEvent=function(e,h){if(h===undefined)h={};d&&a.utils.log(e,h);if(typeof b[e]!="undefined")for(var g=0;g<b[e].length;g++){try{b[e][g].listener(h)}catch(i){a.utils.log("There was an error while handling a listener: "+i.toString(),b[e][g].listener)}if(b[e][g])if(b[e][g].count===1)delete b[e][g];else if(b[e][g].count>0)b[e][g].count=b[e][g].count-1}for(var f=0;f<c.length;f++){try{c[f].listener(h)}catch(i){a.utils.log("There was an error while handling a listener: "+i.toString(),c[f].listener)}if(c[f])if(c[f].count===1)delete c[f];else if(c[f].count>0)c[f].count=c[f].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,f,i,e,j,d){if(b[c.id]!=d&&d!==undefined)return;var h=(new Date).getTime();d>h&&setTimeout(function(){a.utils.fadeTo(c,f,i,e,0,d)},d-h);c.style.display="block";if(e===undefined)e=c.style.opacity===""?1:c.style.opacity;if(c.style.opacity==f&&c.style.opacity!==""&&d!==undefined){if(f===0)c.style.display="none";return}if(d===undefined){d=h;b[c.id]=d}if(j===undefined)j=0;var k=(h-d)/(i*1e3);k=k>1?1:k;var l=f-e,g=e+k*l;if(g>1)g=1;else if(g<0)g=0;c.style.opacity=g;if(j>0){b[c.id]=d+j*1e3;a.utils.fadeTo(c,f,i,e,0,b[c.id]);return}setTimeout(function(){a.utils.fadeTo(c,f,i,e,0,d)},10)}})(jwplayer);(function(a){a.utils.arrays=function(){};a.utils.arrays.indexOf=function(b,c){for(var a=0;a<b.length;a++)if(b[a]==c)return a;return-1};a.utils.arrays.remove=function(c,d){var b=a.utils.arrays.indexOf(c,d);b>-1&&c.splice(b,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"},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(c){c.utils.mediaparser=function(){};var g={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"}},a={};c.utils.mediaparser.parseMedia=function(a){return d(a)};function b(b,a){if(a===undefined)a=g[b];else c.utils.extend(a,g[b]);return a}function d(c,d){if(a[c.tagName.toLowerCase()]&&d===undefined)return a[c.tagName.toLowerCase()](c);else{d=b("element",d);var h={};for(var e in d)if(e!="length"){var g=c.getAttribute(e);if(!(g===""||g===undefined||g===null))h[d[e]]=c.getAttribute(e)}var f=c.style["#background-color"];if(f&&!(f=="transparent"||f=="rgba(0, 0, 0, 0)"))h.screencolor=f;return h}}function e(j,e){e=b("media",e);var g=[],h=c.utils.selectors("source",j);for(var i in h)!isNaN(i)&&g.push(f(h[i]));var a=d(j,e);if(a.file!==undefined)g[0]={file:a.file};a.levels=g;return a}function f(e,c){c=b("source",c);var a=d(e,c);a.width=a.width?a.width:0;a.bitrate=a.bitrate?a.bitrate:0;return a}function h(d,a){a=b("video",a);var c=e(d,a);return c}a.media=e;a.audio=e;a.source=f;a.video=h})(jwplayer);(function(a){a.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};a.utils.scriptloader=function(d){var b=a.utils.loaderstatus.NEW,c=new a.events.eventdispatcher;a.utils.extend(this,c);this.load=function(){if(b==a.utils.loaderstatus.NEW){b=a.utils.loaderstatus.LOADING;var e=document.createElement("script");e.onload=function(){b=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)};e.onerror=function(){b=a.utils.loaderstatus.ERROR;c.sendEvent(a.events.ERROR)};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){b=a.utils.loaderstatus.COMPLETE;c.sendEvent(a.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(e);e.src=d}};this.getStatus=function(){return b}}})(jwplayer);(function(a){a.utils.selectors=function(b,c){if(c===undefined)c=document;b=a.utils.strings.trim(b);var d=b.charAt(0);if(d=="#")return c.getElementById(b.substr(1));else if(d==".")return c.getElementsByClassName?c.getElementsByClassName(b.substr(1)):a.utils.selectors.getElementsByTagAndClass("*",b.substr(1));else if(b.indexOf(".")>0){selectors=b.split(".");return a.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])}else return c.getElementsByTagName(b);return null};a.utils.selectors.getElementsByTagAndClass=function(f,g,d){elements=[];if(d===undefined)d=document;for(var b=d.getElementsByTagName(f),a=0;a<b.length;a++)if(b[a].className!==undefined)for(var e=b[a].className.split(" "),c=0;c<e.length;c++)e[c]==g&&elements.push(b[a]);return elements}})(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,c,b){if(!b)b="0";while(a.length<c)a=b+a;return a};a.utils.strings.serialize=function(a){return a==null?null:a=="true"?true:a=="false"?false: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;if(a.substr(-1)=="s")c=Number(a.substr(0,a.length-1));else if(a.substr(-1)=="m")c=Number(a.substr(0,a.length-1))*60;else if(a.substr(-1)=="h")c=Number(a.substr(0,a.length-1))*3600;else if(b.length>1){c=Number(b[b.length-1]);c+=Number(b[b.length-2])*60;if(b.length==3)c+=Number(b[b.length-3])*3600}else c=Number(a);return c};a.utils.strings.xmlAttribute=function(a,c){for(var b in a.attributes)if(a.attributes[b].name&&a.attributes[b].name.toLowerCase()==c.toLowerCase())return a.attributes[b].value.toString();return""};a.utils.strings.jsonToString=function(c){var e=e||{};if(e&&e.stringify)return e.stringify(c);var g=typeof c;if(g!="object"||c===null)if(g=="string")c='"'+c+'"';else return String(c);else{var d=[],f=c&&c.constructor==Array;for(var h in c){var b=c[h];switch(typeof b){case"string":b='"'+b+'"';break;case"object":if(b!==null)b=a.utils.strings.jsonToString(b)}if(f)typeof b!="function"&&d.push(String(b));else typeof b!="function"&&d.push('"'+h+'":'+String(b))}return f?"["+String(d)+"]":"{"+String(d)+"}"}}})(jwplayer);(function(c){var d=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);c.utils.typechecker=function(c,a){a=a===null?b(c):a;return e(c,a)};function b(a){var b=["true","false","t","f"];return b.toString().indexOf(a.toLowerCase().replace(" ",""))>=0?"boolean":d.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 e(b,c){if(c===null)return b;switch(c){case"color":return b.length>0?a(b):null;case"integer":return parseInt(b,10);case"float":return parseFloat(b);case"boolean":return b.toLowerCase()=="true"?true:b=="1"?true:false}return b}function a(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3)a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);return parseInt(a,16)}return parseInt("000000",16)}})(jwplayer);(function(a){var c={},b={};a.plugins=function(){};a.plugins.loadPlugins=function(d,e){b[d]=new a.plugins.pluginloader(new a.plugins.model(c),e);return b[d]};a.plugins.registerPlugin=function(d,g,f){var e=a.utils.getPluginName(d);if(c[e])c[e].registerPlugin(d,g,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 b)b[h].pluginFailed()}}})(jwplayer);(function(a){a.plugins.model=function(b){this.addPlugin=function(d){var c=a.utils.getPluginName(d);if(!b[c])b[c]=new a.plugins.plugin(d);return b[c]}}})(jwplayer);(function(a){a.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};a.plugins.plugin=function(c){var i="http://plugins.longtailvideo.com",d=a.utils.loaderstatus.NEW,b,e,g,f=new a.events.eventdispatcher;a.utils.extend(this,f);function h(){switch(a.utils.getPluginPathType(c)){case a.utils.pluginPathType.ABSOLUTE:return c;case a.utils.pluginPathType.RELATIVE:return a.utils.getAbsolutePath(c,window.location.href);case a.utils.pluginPathType.CDN:var d=a.utils.getPluginName(c),b=a.utils.getPluginVersion(c);return i+"/"+a.version.split(".")[0]+"/"+d+"/"+d+(b!==""?"-"+b:"")+".js"}}function k(){g=setTimeout(function(){d=a.utils.loaderstatus.COMPLETE;f.sendEvent(a.events.COMPLETE)},1e3)}function j(){d=a.utils.loaderstatus.ERROR;f.sendEvent(a.events.ERROR)}this.load=function(){if(d==a.utils.loaderstatus.NEW){if(c.lastIndexOf(".swf")>0){b=c;d=a.utils.loaderstatus.COMPLETE;f.sendEvent(a.events.COMPLETE);return}d=a.utils.loaderstatus.LOADING;var e=new a.utils.scriptloader(h());e.addEventListener(a.events.COMPLETE,k);e.addEventListener(a.events.ERROR,j);e.load()}};this.registerPlugin=function(i,c,h){if(g){clearTimeout(g);g=undefined}if(c&&h){b=h;e=c}else if(typeof c=="string")b=c;else if(typeof c=="function")e=c;else if(!c&&!h)b=i;d=a.utils.loaderstatus.COMPLETE;f.sendEvent(a.events.COMPLETE)};this.getStatus=function(){return d};this.getPluginName=function(){return a.utils.getPluginName(c)};this.getFlashPath=function(){if(b)switch(a.utils.getPluginPathType(b)){case a.utils.pluginPathType.ABSOLUTE:return b;case a.utils.pluginPathType.RELATIVE:return c.lastIndexOf(".swf")>0?a.utils.getAbsolutePath(b,window.location.href):a.utils.getAbsolutePath(b,h());case a.utils.pluginPathType.CDN:return b.indexOf("-")>-1?b+"h":b+"-h"}return null};this.getJS=function(){return e};this.getPluginmode=function(){return typeof b!="undefined"&&typeof e!="undefined"?a.plugins.pluginmodes.HYBRID:typeof b!="undefined"?a.plugins.pluginmodes.FLASH:typeof e!="undefined"?a.plugins.pluginmodes.JAVASCRIPT:void 0};this.getNewInstance=function(b,a,c){return new e(b,a,c)};this.getURL=function(){return c}}})(jwplayer);(function(a){a.plugins.pluginloader=function(j,h){var b={},e=a.utils.loaderstatus.NEW,g=false,c=false,f=new a.events.eventdispatcher;a.utils.extend(this,f);function i(){if(!c){c=true;e=a.utils.loaderstatus.COMPLETE;f.sendEvent(a.events.COMPLETE)}}function d(){if(!c){var e=0;for(plugin in b){var d=b[plugin].getStatus();if(d==a.utils.loaderstatus.LOADING||d==a.utils.loaderstatus.NEW)e++}e==0&&i()}}this.setupPlugins=function(e,h,i){var g={length:0,plugins:{}},c={length:0,plugins:{}};for(var a in b){var f=b[a].getPluginName();if(b[a].getFlashPath()){g.plugins[b[a].getFlashPath()]=h.plugins[a];g.plugins[b[a].getFlashPath()].pluginmode=b[a].getPluginmode();g.length++}if(b[a].getJS()){var d=document.createElement("div");d.id=e.id+"_"+f;d.style.position="absolute";d.style.zIndex=c.length+10;c.plugins[f]=b[a].getNewInstance(e,h.plugins[a],d);c.length++;if(typeof c.plugins[f].resize!="undefined"){e.onReady(i(c.plugins[f],d,true));e.onResize(i(c.plugins[f],d))}}}e.plugins=c.plugins;return g};this.load=function(){e=a.utils.loaderstatus.LOADING;g=true;for(var c in h){b[c]=j.addPlugin(c);b[c].addEventListener(a.events.COMPLETE,d);b[c].addEventListener(a.events.ERROR,d)}for(c in h)b[c].load();g=false;d()};this.pluginFailed=function(){i()};this.getStatus=function(){return e}}})(jwplayer);(function(a){var b=[];a.api=function(g){this.container=g;this.id=g.id;var c={},f={},n=[],b=undefined,h=false,e=[],j=a.utils.getOuterHTML(g),i={},d={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function k(a){return function(c,e,g,h){var f;if(e){d[c]=e;f="jwplayer('"+a+"').callback('"+c+"')"}else if(!e&&d[c])delete d[c];b.jwDockSetButton(c,f,g,h)}}this.getPlugin=function(b){var a=this.callInternal;return b=="dock"?{setButton:k(this.id),show:function(){return a("jwShowDock")},hide:function(){return a("jwHideDock")}}:b=="controlbar"?{show:function(){return a("jwShowControlbar")},hide:function(){return a("jwHideControlbar")}}:b=="display"?{show:function(){return a("jwShowDisplay")},hide:function(){return a("jwHideDisplay")}}:this.plugins[b]};this.callback=function(a){if(d[a])return d[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 c=this.callInternal("jwGetPlaylist");this.renderingMode=="flash"&&a.utils.deepReplaceKeyName(c,"__dot__",".");for(var b=0;b<c.length;b++)if(c[b].index===undefined)c[b].index=b;return c};this.getPlaylistItem=function(a){if(a===undefined)a=this.getCurrentItem();return this.getPlaylist()[a]};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(a){if(a===undefined)this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"));else this.callInternal("jwSetFullscreen",a);return this};this.setMute=function(a){if(a===undefined)this.callInternal("jwSetMute",!this.callInternal("jwGetMute"));else this.callInternal("jwSetMute",a);return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(a){this.callInternal("jwLoad",a);return this};this.playlistItem=function(a){this.callInternal("jwPlaylistItem",a);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(c,a){if(this.renderingMode=="html5")b.jwResize(c,a);else{this.container.width=c;this.container.height=a}return this};this.play=function(b){if(typeof b=="undefined"){b=this.getState();if(b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING)this.callInternal("jwPause");else this.callInternal("jwPlay")}else this.callInternal("jwPlay",b);return this};this.pause=function(b){if(typeof b=="undefined"){b=this.getState();if(b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING)this.callInternal("jwPause");else this.callInternal("jwPlay")}else this.callInternal("jwPause",b);return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(a){this.callInternal("jwSeek",a);return this};this.setVolume=function(a){this.callInternal("jwSetVolume",a);return this};this.onBufferChange=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,b)};this.onBufferFull=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)};this.onError=function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)};this.onFullscreen=function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)};this.onMeta=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,b)};this.onMute=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)};this.onPlaylist=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,b)};this.onPlaylistItem=function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)};this.onReady=function(b){return this.eventListener(a.api.events.API_READY,b)};this.onResize=function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)};this.onComplete=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,b)};this.onSeek=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_SEEK,b)};this.onTime=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)};this.onVolume=function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,b)};this.onBuffer=function(b){return this.stateListener(a.api.events.state.BUFFERING,b)};this.onPause=function(b){return this.stateListener(a.api.events.state.PAUSED,b)};this.onPlay=function(b){return this.stateListener(a.api.events.state.PLAYING,b)};this.onIdle=function(b){return this.stateListener(a.api.events.state.IDLE,b)};this.remove=function(){c={};e=[];a.utils.getOuterHTML(this.container)!=j&&a.api.destroyPlayer(this.id,j)};this.setup=function(d){if(a.embed){var c=this.id;this.remove();var b=a(c);b.config=d;return new a.embed(b)}return this};this.registerPlugin=function(d,c,b){a.plugins.registerPlugin(d,c,b)};this.setPlayer=function(a,c){b=a;this.renderingMode=c};this.stateListener=function(b,c){if(!f[b]){f[b]=[];this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,m(b))}f[b].push(c);return this};function m(a){return function(e){var d=e.newstate,g=e.oldstate;if(d==a){var b=f[d];if(b)for(var c=0;c<b.length;c++)typeof b[c]=="function"&&b[c].call(this,{oldstate:g,newstate:d})}}}this.addInternalListener=function(b,a){b.jwAddEventListener(a,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+a+'", dat); }')};this.eventListener=function(a,d){if(!c[a]){c[a]=[];b&&h&&this.addInternalListener(b,a)}c[a].push(d);return this};this.dispatchEvent=function(a){if(c[a])for(var d=l(a,arguments[1]),b=0;b<c[a].length;b++)typeof c[a][b]=="function"&&c[a][b].call(this,d)};function l(f,e){var b=a.utils.extend({},e);if(f==a.api.events.JWPLAYER_FULLSCREEN&&!b.fullscreen){b.fullscreen=b.message=="true"?true:false;delete b.message}else if(typeof b.data=="object"){b=a.utils.extend(b,b.data);delete b.data}var c=["position","duration","offset"];for(var d in c)if(b[c[d]])b[c[d]]=Math.round(b[c[d]]*1e3)/1e3;return b}this.callInternal=function(a,c){if(h)return typeof b!="undefined"&&typeof b[a]=="function"?c!==undefined?b[a](c):b[a]():null;else e.push({method:a,parameters:c})};this.playerReady=function(g){h=true;!b&&this.setPlayer(document.getElementById(g.id));this.container=document.getElementById(this.id);for(var f in c)this.addInternalListener(b,f);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(){i={}});this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(i,b.metadata)});this.dispatchEvent(a.api.events.API_READY);while(e.length>0){var d=e.shift();this.callInternal(d.method,d.parameters)}};this.getItemMeta=function(){return i};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};return this};a.api.selectPlayer=function(b){var c;if(b===undefined)b=0;if(b.nodeType)c=b;else if(typeof b=="string")c=document.getElementById(b);if(c){var d=a.api.playerById(c.id);return d?d:a.api.addPlayer(new a.api(c))}else if(typeof b=="number")return a.getPlayers()[b];return null};a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_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(c){for(var a=0;a<b.length;a++)if(b[a].id==c)return b[a];return null};a.api.addPlayer=function(a){for(var c=0;c<b.length;c++)if(b[c]==a)return a;b.push(a);return a};a.api.destroyPlayer=function(i,f){for(var d=-1,e=0;e<b.length;e++)if(b[e].id==i){d=e;continue}if(d>=0){var c=document.getElementById(b[d].id);if(document.getElementById(b[d].id+"_wrapper"))c=document.getElementById(b[d].id+"_wrapper");if(c)if(f)a.utils.setOuterHTML(c,f);else{var g=document.createElement("div"),h=c.id;if(c.id.indexOf("_wrapper")==c.id.length-8)newID=c.id.substring(0,c.id.length-8);g.setAttribute("id",h);c.parentNode.replaceChild(g,c)}b.splice(d,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);_userPlayerReady&&_userPlayerReady.call(this,a)};(function(a){a.embed=function(c){var h={width:400,height:300,components:{controlbar:{position:"over"}}},g=a.utils.mediaparser.parseMedia(c.container),b=new a.embed.config(a.utils.extend(h,g,c.config),this),d=a.plugins.loadPlugins(c.id,b.plugins);function f(b,c){for(var a in c)typeof b[a]=="function"&&b[a].call(b,c[a])}function e(){if(d.getStatus()==a.utils.loaderstatus.COMPLETE){for(var e=0;e<b.modes.length;e++)if(b.modes[e].type&&a.embed[b.modes[e].type]){var g=b;if(b.modes[e].config)g=a.utils.extend(a.utils.clone(b),b.modes[e].config);var h=new a.embed[b.modes[e].type](document.getElementById(c.id),b.modes[e],g,d,c);if(h.supportsConfig()){h.embed();f(c,b.events);return c}}a.utils.log("No suitable players found");new a.embed.logo(a.utils.extend({hide:true},b.components.logo),"none",c.id)}}d.addEventListener(a.events.COMPLETE,e);d.addEventListener(a.events.ERROR,e);d.load();return c};function b(){if(!document.body)return setTimeout(b,15);for(var d=a.utils.selectors.getElementsByTagAndClass("video","jwplayer"),c=0;c<d.length;c++){var e=d[c];a(e.id).setup({})}}b()})(jwplayer);(function(b){function c(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function f(a){var b=false;b=a instanceof Array||typeof a=="object"&&!a.position&&!a.size;return b}function e(a){if(typeof a=="string")if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1)return parseInt(a);return a}var a=["playlist","dock","controlbar","logo"];function g(c){var d={};switch(b.utils.typeOf(c.plugins)){case"object":for(var f in c.plugins)d[b.utils.getPluginName(f)]=f;break;case"string":for(var e=c.plugins.split(","),a=0;a<e.length;a++)d[b.utils.getPluginName(e[a])]=e[a]}return d}function d(a,e,d,c){if(b.utils.typeOf(a[e])!="object")a[e]={};var f=a[e][d];if(b.utils.typeOf(f)!="object")a[e][d]=f={};if(e=="plugins"){var g=b.utils.getPluginName(d);f[c]=a[g+"."+c];delete a[g+"."+c]}else{f[c]=a[d+"."+c];delete a[d+"."+c]}}b.embed.deserialize=function(c){var h=g(c);for(var f in c)if(f.indexOf(".")>-1){var i=f.split("."),e=i[0],f=i[1];if(b.utils.isInArray(a,e))d(c,"components",e,f);else h[e]&&d(c,"plugins",h[e],f)}return c};b.embed.config=function(m){var d=b.utils.extend({},m),l;if(f(d.playlist)){l=d.playlist;delete d.playlist}d=b.embed.deserialize(d);d.height=e(d.height);d.width=e(d.width);if(typeof d.plugins=="string"){var j=d.plugins.split(",");if(typeof d.plugins!="object")d.plugins={};for(var i=0;i<j.length;i++){var k=b.utils.getPluginName(j[i]);if(typeof d[k]=="object"){d.plugins[j[i]]=d[k];delete d[k]}else d.plugins[j[i]]={}}}for(var g=0;g<a.length;g++){if(typeof d[a[g]]=="string"){if(!d.components[a[g]])d.components[a[g]]={};if(a[g]=="logo")d.components[a[g]].file=d[a[g]];else d.components[a[g]].position=d[a[g]];delete d[a[g]]}else if(typeof d[a[g]]!="undefined"){if(!d.components[a[g]])d.components[a[g]]={};b.utils.extend(d.components[a[g]],d[a[g]]);delete d[a[g]]}if(typeof d[a[g]+"size"]!="undefined"){if(!d.components[a[g]])d.components[a[g]]={};d.components[a[g]].size=d[a[g]+"size"];delete d[a[g]+"size"]}}if(typeof d.icons!="undefined"){if(!d.components.display)d.components.display={};d.components.display.icons=d.icons;delete d.icons}if(d.players){d.modes=d.players;delete d.players}var h;if(d.flashplayer&&!d.modes){h=c();h[0].src=d.flashplayer;delete d.flashplayer}else if(d.modes){if(typeof d.modes=="string"){h=c();h[0].src=d.modes}else if(d.modes instanceof Array)h=d.modes;else if(typeof d.modes=="object"&&d.modes.type)h=[d.modes];delete d.modes}else h=c();d.modes=h;if(l)d.playlist=l;return d}})(jwplayer);(function(a){a.embed.download=function(c,g,b,f,d){this.embed=function(){var p=a.utils.extend({},b),e={},g=b.width?b.width:480;if(typeof g!="number")g=parseInt(g,10);var h=b.height?b.height:320;if(typeof h!="number")h=parseInt(h,10);var i,k,j,f={};if(b.playlist&&b.playlist.length){f.file=b.playlist[0].file;k=b.playlist[0].image;f.levels=b.playlist[0].levels}else{f.file=b.file;k=b.image;f.levels=b.levels}if(f.file)i=f.file;else if(f.levels&&f.levels.length)i=f.levels[0].file;j=i?"pointer":"auto";var m={display:{style:{cursor:j,width:g,height:h,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:j,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:j,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:k?"block":"none",position:"absolute",cursor:j,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},l=function(f,d,e){var b=document.createElement(f);if(e)b.id=e;else b.id=c.id+"_jwplayer_"+d;a.utils.css(b,m[d].style);return b};e.display=l("a","display",c.id);i&&e.display.setAttribute("href",a.utils.getAbsolutePath(i));e.display_image=l("img","display_image");e.display_image.setAttribute("alt","Click to download...");k&&e.display_image.setAttribute("src",a.utils.getAbsolutePath(k));if(true){e.display_icon=l("div","display_icon");e.display_iconBackground=l("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"})};function n(){_imageWidth=e.display_image.naturalWidth;_imageHeight=e.display_image.naturalHeight;o()}function o(){a.utils.stretch(a.utils.stretching.UNIFORM,e.display_image,g,h,_imageWidth,_imageHeight)}e.display_image.onerror=function(){_hide(e.display_image)};e.display_image.onload=n;c.parentNode.replaceChild(e.display,c);var q=b.plugins&&b.plugins.logo?b.plugins.logo:{};e.display.appendChild(new a.embed.logo(b.components.logo,"download",c.id));d.container=document.getElementById(d.id);d.setPlayer(e.display,"download")};this.supportsConfig=function(){if(b){var c=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return true;else if(c.file)return e(c.file,c.provider,c.playlistfile);else if(c.levels&&c.levels.length)for(var d=0;d<c.levels.length;d++)if(c.levels[d].file&&e(c.levels[d].file,c.provider,c.playlistfile))return true}else return true};function e(e,b,d){if(d)return false;var f=["image","sound","youtube","http"];if(b&&f.toString().indexOf(b)>-1)return true;if(!b||b&&b=="video"){var c=a.utils.extension(e);if(c&&a.utils.extensionmap[c])return true}return false}}})(jwplayer);(function(a){a.embed.flash=function(b,g,e,j,c){function d(c,b,d){var a=document.createElement("param");a.setAttribute("name",b);a.setAttribute("value",d);c.appendChild(a)}function k(e,b,d){return function(){d&&document.getElementById(c.id+"_wrapper").appendChild(b);var f=document.getElementById(c.id).getPluginConfig("display");e.resize(f.width,f.height);var g={left:f.x,top:f.y};a.utils.css(b,g)}}function h(a,d){if(a[d]){var f=a[d];for(var b in f){var c=f[b];if(typeof c=="string"){if(!a[b])a[b]=c}else for(var e in c)if(!a[b+"."+e])a[b+"."+e]=c[e]}delete a[d]}}function i(c){if(!c)return{};var d={},g=[];for(var b in c){var h=a.utils.getPluginName(b),e=c[b];g.push(b);for(var f in e)d[h+"."+f]=e[f]}d.plugins=g.join(",");return d}function f(c){var d=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var b in c)if(typeof c[b]=="object")d+=b+"="+encodeURIComponent("[[JSON]]"+a.utils.strings.jsonToString(c[b]))+"&";else d+=b+"="+encodeURIComponent(c[b])+"&";return d.substring(0,d.length-1)}this.embed=function(){e.id=c.id;var o,l=a.utils.extend({},e),u=l.width,v=l.height;if(b.id+"_wrapper"==b.parentNode.id)o=document.getElementById(b.id+"_wrapper");else{o=document.createElement("div");o.id=b.id+"_wrapper";a.utils.wrap(b,o);a.utils.css(o,{position:"relative",width:u,height:v})}var s=j.setupPlugins(c,l,k);if(s.length>0)a.utils.extend(l,i(s.plugins));else delete l.plugins;for(var t=["height","width","modes","events"],r=0;r<t.length;r++)delete l[t[r]];var q="opaque";if(l.wmode)q=l.wmode;h(l,"components");h(l,"providers");if(typeof l["dock.position"]!="undefined")if(l["dock.position"].toString().toLowerCase()=="false"){l.dock=l["dock.position"];delete l["dock.position"]}var w="#000000",p;if(a.utils.isIE()){var n='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+w+'" width="100%" height="100%" id="'+b.id+'" name="'+b.id+'" tabindex=0"">';n+='<param name="movie" value="'+g.src+'">';n+='<param name="allowfullscreen" value="true">';n+='<param name="allowscriptaccess" value="always">';n+='<param name="seamlesstabbing" value="true">';n+='<param name="wmode" value="'+q+'">';n+='<param name="flashvars" value="'+f(l)+'">';n+="</object>";a.utils.setOuterHTML(b,n);p=document.getElementById(b.id)}else{var m=document.createElement("object");m.setAttribute("type","application/x-shockwave-flash");m.setAttribute("data",g.src);m.setAttribute("width","100%");m.setAttribute("height","100%");m.setAttribute("bgcolor","#000000");m.setAttribute("id",b.id);m.setAttribute("name",b.id);m.setAttribute("tabindex",0);d(m,"allowfullscreen","true");d(m,"allowscriptaccess","always");d(m,"seamlesstabbing","true");d(m,"wmode",q);d(m,"flashvars",f(l));b.parentNode.replaceChild(m,b);p=m}c.container=p;c.setPlayer(p,"flash")};this.supportsConfig=function(){if(a.utils.hasFlash())if(e){var b=a.utils.getFirstPlaylistItemFromConfig(e);if(typeof b.file=="undefined"&&typeof b.levels=="undefined")return true;else if(b.file)return flashCanPlay(b.file,b.provider);else if(b.levels&&b.levels.length)for(var c=0;c<b.levels.length;c++)if(b.levels[c].file&&flashCanPlay(b.levels[c].file,b.provider))return true}else return true;return false};flashCanPlay=function(d,c){var e=["video","http","sound","image"];if(c&&e.toString().indexOf(c<0))return true;var b=a.utils.extension(d);return!b?true:a.utils.extensionmap[b]!==undefined&&a.utils.extensionmap[b].flash===undefined?false:true}}})(jwplayer);(function(a){a.embed.html5=function(d,g,b,e,c){function f(c,a,b){return function(){var f=document.getElementById(d.id+"_displayarea");b&&f.appendChild(a);var e=f.style;c.resize(parseInt(e.width.replace("px","")),parseInt(e.height.replace("px","")));a.left=e.left;a.top=e.top}}this.embed=function(){if(a.html5){e.setupPlugins(c,b,f);d.innerHTML="";for(var g=a.utils.extend({screencolor:"0x000000"},b),i=["plugins","modes","events"],h=0;h<i.length;h++)delete g[i[h]];if(g.levels&&!g.sources)g.sources=b.levels;if(g.skin&&g.skin.toLowerCase().indexOf(".zip")>0)g.skin=g.skin.replace(/\.zip/i,".xml");var j=new a.html5(d).setup(g);c.container=document.getElementById(c.id);c.setPlayer(j,"html5")}else return null};this.supportsConfig=function(){var e=document.createElement("video");if(!!e.canPlayType)if(b){var c=a.utils.getFirstPlaylistItemFromConfig(b);if(typeof c.file=="undefined"&&typeof c.levels=="undefined")return true;else if(c.file)return html5CanPlay(e,c.file,c.provider,c.playlistfile);else if(c.levels&&c.levels.length)for(var d=0;d<c.levels.length;d++)if(c.levels[d].file&&html5CanPlay(e,c.levels[d].file,c.provider,c.playlistfile))return true}else return true;return false};html5CanPlay=function(f,e,b,d){if(d)return false;if(b&&b=="youtube")return true;if(b&&b!="video"&&b!="http"&&b!="sound")return false;var c=a.utils.extension(e);return!c||a.utils.extensionmap[c]===undefined?true:a.utils.extensionmap[c].html5===undefined?false:a.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)?true:browserCanPlay(f,a.utils.extensionmap[c].html5)};browserCanPlay=function(b,a){return!a?true:b.canPlayType(a)}}})(jwplayer);(function(a){a.embed.logo=function(o,k,g){var d={prefix:"http://l.longtailvideo.com/"+k+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:3,hide:false,position:"bottom-left"};_css=a.utils.css;var c,b;j();function j(){m();f();h()}function m(){if(d.prefix){var c=a.version.split(/\W/).splice(0,2).join("/");if(d.prefix.indexOf(c)<0)d.prefix+=c+"/"}b=a.utils.extend({},d)}function n(){var a={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};a.display=b.hide?"none":"block";var c=b.position.toLowerCase().split("-");for(var d in c)a[c[d]]=b.margin;return a}function f(){c=document.createElement("img");c.id=g+"_jwplayer_logo";c.style.display="none";c.onload=function(){_css(c,n());e()};if(!b.file)return;if(b.file.indexOf("http://")===0)c.src=b.file;else c.src=b.prefix+b.file}if(!b.file)return;function h(){if(b.link){c.onmouseover=i;c.onmouseout=e;c.onclick=l}else this.mouseEnabled=false}function l(a){if(typeof a!="undefined"){a.preventDefault();a.stopPropagation()}b.link&&window.open(b.link,"_blank");return}function e(){if(b.link)c.style.opacity=b.out;return}function i(){if(b.hide)c.style.opacity=b.over;return}return c}})(jwplayer);(function(a){a.html5=function(b){var c=b;this.setup=function(b){a.utils.extend(this,new a.html5.api(c,b));return this};return this}})(jwplayer);(function(a){var b=a.utils.css;a.html5.view=function(x,w,r){var h=x,i=w,d=r,g,j,k,e,m,v;function z(){g=document.createElement("div");g.id=i.id;g.className=i.className;_videowrapper=document.createElement("div");_videowrapper.id=g.id+"_video_wrapper";i.id=g.id+"_video";b(g,{position:"relative",height:d.height,width:d.width,padding:0,backgroundColor:c(),zIndex:0});function c(){return h.skin.getComponentSettings("display")&&h.skin.getComponentSettings("display").backgroundcolor?h.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}b(i,{width:d.width,height:d.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});b(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});a.utils.wrap(i,g);a.utils.wrap(i,_videowrapper);e=document.createElement("div");e.id=g.id+"_displayarea";g.appendChild(e)}function t(){for(var b=0;b<d.plugins.order.length;b++){var a=d.plugins.order[b];if(d.plugins.object[a].getDisplayElement!==undefined){d.plugins.object[a].height=f(d.plugins.object[a].getDisplayElement().style.height);d.plugins.object[a].width=f(d.plugins.object[a].getDisplayElement().style.width);d.plugins.config[a].currentPosition=d.plugins.config[a].position}}o()}function o(){if(d.getMedia()!==undefined)for(var c=0;c<d.plugins.order.length;c++){var b=d.plugins.order[c];if(d.plugins.object[b].getDisplayElement!==undefined)if(d.getMedia().hasChrome())d.plugins.config[b].currentPosition=a.html5.view.positions.NONE;else d.plugins.config[b].currentPosition=d.plugins.config[b].position}l(d.width,d.height)}function f(a){return typeof a=="string"?a===""?0:a.lastIndexOf("%")>-1?a:parseInt(a.replace("px",""),10):a}this.setup=function(c){i=c;z();t();h.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,o);h.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_META,function(){p()});var b;if(window.onresize!==null)b=window.onresize;window.onresize=function(c){if(b!==undefined)try{b(c)}catch(e){}if(h.jwGetFullscreen()){var a=document.body.getBoundingClientRect();d.width=Math.abs(a.left)+Math.abs(a.right);d.height=window.innerHeight}l(d.width,d.height)}};function s(b){switch(b.keyCode){case 27:h.jwGetFullscreen()&&h.jwSetFullscreen(false);break;case 32:if(h.jwGetState()!=a.api.events.state.IDLE&&h.jwGetState()!=a.api.events.state.PAUSED)h.jwPause();else h.jwPlay()}}function l(h,c){if(g.style.display=="none")return;var a=[].concat(d.plugins.order);a.reverse();m=a.length+2;if(!d.fullscreen){d.width=h;d.height=c;j=h;k=c;b(e,{top:0,bottom:0,left:0,right:0,width:h,height:c});b(g,{height:k,width:j});var f=n(y,a);if(f.length>0){m+=f.length;n(u,f,true)}}else navigator.vendor.indexOf("Apple")!==0&&n(A,a,true);p()}function n(j,h,i){for(var g=[],f=0;f<h.length;f++){var c=h[f];if(d.plugins.object[c].getDisplayElement!==undefined)if(d.plugins.config[c].currentPosition!=a.html5.view.positions.NONE){var e=j(c,m--);if(!e)g.push(c);else{d.plugins.object[c].resize(e.width,e.height);if(i){delete e.width;delete e.height}b(d.plugins.object[c].getDisplayElement(),e)}}else b(d.plugins.object[c].getDisplayElement(),{display:"none"})}return g}function y(a,e){if(d.plugins.object[a].getDisplayElement!==undefined)if(d.plugins.config[a].position&&c(d.plugins.config[a].position)){d.plugins.object[a].getDisplayElement().parentNode===null&&g.appendChild(d.plugins.object[a].getDisplayElement());var b=q(a);b.zIndex=e;return b}return false}function u(c,g){d.plugins.object[c].getDisplayElement().parentNode===null&&e.appendChild(d.plugins.object[c].getDisplayElement());var a=d.width,b=d.height;if(typeof d.width=="string"&&d.width.lastIndexOf("%")>-1){percentage=parseFloat(d.width.substring(0,d.width.lastIndexOf("%")))/100;a=Math.round(window.innerWidth*percentage)}if(typeof d.height=="string"&&d.height.lastIndexOf("%")>-1){percentage=parseFloat(d.height.substring(0,d.height.lastIndexOf("%")))/100;b=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:a-f(e.style.left)-f(e.style.right),height:b-f(e.style.top)-f(e.style.bottom),zIndex:g}}function A(b,a){return{position:"fixed",width:d.width,height:d.height,zIndex:a}}function p(){e.style.position="absolute";d.getMedia().getDisplayElement().style.position="absolute";if(d.getMedia().getDisplayElement().videoWidth==0||d.getMedia().getDisplayElement().videoHeight==0)return;var c,g;if(e.style.width.toString().lastIndexOf("%")>-1||e.style.width.toString().lastIndexOf("%")>-1){var b=e.getBoundingClientRect();c=Math.abs(b.left)+Math.abs(b.right);g=Math.abs(b.top)+Math.abs(b.bottom)}else{c=f(e.style.width);g=f(e.style.height)}a.utils.stretch(h.jwGetStretching(),d.getMedia().getDisplayElement(),c,g,d.getMedia().getDisplayElement().videoWidth,d.getMedia().getDisplayElement().videoHeight)}function q(g){var b={position:"absolute",margin:0,padding:0,top:null},c=d.plugins.config[g].currentPosition.toLowerCase();switch(c.toUpperCase()){case a.html5.view.positions.TOP:b.top=f(e.style.top);b.left=f(e.style.left);b.width=j-f(e.style.left)-f(e.style.right);b.height=d.plugins.object[g].height;e.style[c]=f(e.style[c])+d.plugins.object[g].height+"px";e.style.height=f(e.style.height)-b.height+"px";break;case a.html5.view.positions.RIGHT:b.top=f(e.style.top);b.right=f(e.style.right);b.width=b.width=d.plugins.object[g].width;b.height=k-f(e.style.top)-f(e.style.bottom);e.style[c]=f(e.style[c])+d.plugins.object[g].width+"px";e.style.width=f(e.style.width)-b.width+"px";break;case a.html5.view.positions.BOTTOM:b.bottom=f(e.style.bottom);b.left=f(e.style.left);b.width=j-f(e.style.left)-f(e.style.right);b.height=d.plugins.object[g].height;e.style[c]=f(e.style[c])+d.plugins.object[g].height+"px";e.style.height=f(e.style.height)-b.height+"px";break;case a.html5.view.positions.LEFT:b.top=f(e.style.top);b.left=f(e.style.left);b.width=d.plugins.object[g].width;b.height=k-f(e.style.top)-f(e.style.bottom);e.style[c]=f(e.style[c])+d.plugins.object[g].width+"px";e.style.width=f(e.style.width)-b.width+"px"}return b}this.resize=l;this.fullscreen=function(f){if(navigator.vendor.indexOf("Apple")===0){if(d.getMedia().getDisplayElement().webkitSupportsFullscreen)if(f)try{d.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(h){}else try{d.getMedia().getDisplayElement().webkitExitFullscreen()}catch(h){}}else{if(f){document.onkeydown=s;clearInterval(v);var c=document.body.getBoundingClientRect();d.width=Math.abs(c.left)+Math.abs(c.right);d.height=window.innerHeight;var a={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};b(g,a);a.zIndex=1;b(d.getMedia().getDisplayElement(),a);a.zIndex=2;b(e,a)}else{document.onkeydown="";d.width=j;d.height=k;b(g,{position:"relative",height:d.height,width:d.width,zIndex:0})}l(d.width,d.height)}}};function c(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}a.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(a){var b={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:a.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=a.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.controlbar=function(Q,S){var c=Q,g=a.utils.extend({},b,c.skin.getComponentSettings("controlbar"),S);if(g.position==a.html5.view.positions.NONE||typeof a.html5.view.positions[g.position]=="undefined")return;if(a.utils.mapLength(c.skin.getComponentLayout("controlbar"))>0)g.layout=c.skin.getComponentLayout("controlbar");var e,C,m,l,s="none",w,p,j,t,z,L,d={},n=false,i={},q,u=false;function h(){if(!q){q=c.skin.getSkinElement("controlbar","background");if(!q)q={width:0,height:0,src:null}}return q}function B(){m=0;l=0;C=0;if(!n){var j={height:h().height,backgroundColor:g.backgroundcolor};e=document.createElement("div");e.id=c.id+"_jwplayer_controlbar";_css(e,j)}var b=c.skin.getSkinElement("controlbar","capLeft"),i=c.skin.getSkinElement("controlbar","capRight");b&&f("capLeft","left",false,e);var a={position:"absolute",height:h().height,left:b?b.width:0,zIndex:0};r("background",e,a,"img");if(h().src)d.background.src=h().src;a.zIndex=1;r("elements",e,a);i&&f("capRight","right",false,e)}this.getDisplayElement=function(){return e};this.resize=function(f,b){a.utils.cancelAnimation(e);document.getElementById(c.id).onmousemove=y;z=f;L=b;y();var d=J();o({id:c.id,duration:j,position:p});v({id:c.id,bufferPercent:t});return d};this.show=function(){u=false;_show(e)};this.hide=function(){u=true;_hide(e)};function G(){var b=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var c in b){var a=b[c];if(typeof d[a]!="undefined")i[a]=d[a].getBoundingClientRect()}}function y(){if(u)return;a.utils.cancelAnimation(e);if(O())a.utils.fadeTo(e,1,0,1,0);else a.utils.fadeTo(e,0,.1,1,2)}function O(){return u?false:c.jwGetState()==a.api.events.state.IDLE||c.jwGetState()==a.api.events.state.PAUSED?g.idlehide?false:true:c.jwGetFullscreen()?false:g.position==a.html5.view.positions.OVER?false:true}function r(b,g,f,c){var a;if(!n){if(!c)c="div";a=document.createElement(c);d[b]=a;a.id=e.id+"_"+b;g.appendChild(a)}else a=document.getElementById(e.id+"_"+b);f!==undefined&&_css(a,f);return a}function A(){x(g.layout.left);x(g.layout.right,-1);x(g.layout.center)}function x(d,f){var e=d.position=="right"?"right":"left",c=a.utils.extend([],d.elements);f!==undefined&&c.reverse();for(var b=0;b<c.length;b++)W(c[b],e)}function N(){return C++}function W(n,a){var b,i,j,p,g;if(n.type=="divider"){f("divider"+N(),a,true,undefined,undefined,n.width,n.element);return}switch(n.name){case"play":f("playButton",a,false);f("pauseButton",a,true);k("playButton","jwPlay");k("pauseButton","jwPause");break;case"prev":f("prevButton",a,true);k("prevButton","jwPlaylistPrev");break;case"next":f("nextButton",a,true);k("nextButton","jwPlaylistNext");break;case"elapsed":f("elapsedText",a,true);break;case"time":i=c.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:c.skin.getSkinElement("controlbar","timeSliderCapLeft").width;j=c.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:c.skin.getSkinElement("controlbar","timeSliderCapRight").width;b=a=="left"?i:j;p=c.skin.getSkinElement("controlbar","timeSliderRail").width+i+j;g={height:h().height,position:"absolute",top:0,width:p};g[a]=a=="left"?m:l;var e=r("timeSlider",d.elements,g);f("timeSliderCapLeft",a,true,e,a=="left"?0:b);f("timeSliderRail",a,false,e,b);f("timeSliderBuffer",a,false,e,b);f("timeSliderProgress",a,false,e,b);f("timeSliderThumb",a,false,e,b);f("timeSliderCapRight",a,true,e,a=="right"?0:b);F("time");break;case"fullscreen":f("fullscreenButton",a,false);f("normalscreenButton",a,true);k("fullscreenButton","jwSetFullscreen",true);k("normalscreenButton","jwSetFullscreen",false);break;case"volume":i=c.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:c.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;j=c.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:c.skin.getSkinElement("controlbar","volumeSliderCapRight").width;b=a=="left"?i:j;p=c.skin.getSkinElement("controlbar","volumeSliderRail").width+i+j;g={height:h().height,position:"absolute",top:0,width:p};g[a]=a=="left"?m:l;var o=r("volumeSlider",d.elements,g);f("volumeSliderCapLeft",a,true,o,a=="left"?0:b);f("volumeSliderRail",a,true,o,b);f("volumeSliderProgress",a,false,o,b);f("volumeSliderCapRight",a,true,o,a=="right"?0:b);F("volume");break;case"mute":f("muteButton",a,false);f("unmuteButton",a,true);k("muteButton","jwSetMute",true);k("unmuteButton","jwSetMute",false);break;case"duration":f("durationText",a,true)}}function f(b,s,q,o,i,p,t){if(c.skin.getSkinElement("controlbar",b)!==undefined||b.indexOf("Text")>0||b.indexOf("divider")===0){var e={height:h().height,position:"absolute",display:"block",top:0};if((b.indexOf("next")===0||b.indexOf("prev")===0)&&c.jwGetPlaylist().length<2){q=false;e.display="none"}var f;if(b.indexOf("Text")>0){b.innerhtml="00:00";e.font=g.fontsize+"px/"+(h().height+1)+"px "+g.font;e.color=g.fontcolor;e.textAlign="center";e.fontWeight=g.fontweight;e.fontStyle=g.fontstyle;e.cursor="default";f=14+3*g.fontsize}else if(b.indexOf("divider")===0)if(p){if(!isNaN(parseInt(p)))f=parseInt(p)}else if(t){var k=c.skin.getSkinElement("controlbar",t);if(k){e.background="url("+k.src+") repeat-x center left";f=k.width}}else{e.background="url("+c.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";f=c.skin.getSkinElement("controlbar","divider").width}else{e.background="url("+c.skin.getSkinElement("controlbar",b).src+") repeat-x center left";f=c.skin.getSkinElement("controlbar",b).width}if(s=="left"){e.left=isNaN(i)?m:i;if(q)m+=f}else if(s=="right"){e.right=isNaN(i)?l:i;if(q)l+=f}if(a.utils.typeOf(o)=="undefined")o=d.elements;e.width=f;if(n)_css(d[b],e);else{var j=r(b,o,e);if(c.skin.getSkinElement("controlbar",b+"Over")!==undefined){j.onmouseover=function(){j.style.backgroundImage=["url(",c.skin.getSkinElement("controlbar",b+"Over").src,")"].join("")};j.onmouseout=function(){j.style.backgroundImage=["url(",c.skin.getSkinElement("controlbar",b).src,")"].join("")}}}}}function M(){c.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,V);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,v);c.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,H);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,o);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,K);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,D);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,P)}function V(){B();A();J();I()}function I(){o({id:c.id,duration:c.jwGetDuration(),position:0});v({id:c.id,bufferProgress:0});K({id:c.id,mute:c.jwGetMute()});H({id:c.id,newstate:a.api.events.state.IDLE});D({id:c.id,volume:c.jwGetVolume()})}function k(f,b,e){if(n)return;if(c.skin.getSkinElement("controlbar",f)!==undefined){var a=d[f];if(a!==null){_css(a,{cursor:"pointer"});if(b=="fullscreen")a.onmouseup=function(a){a.stopPropagation();c.jwSetFullscreen(!c.jwGetFullscreen())};else a.onmouseup=function(a){a.stopPropagation();if(e!==null)c[b](e);else c[b]()}}}}function F(b){if(n)return;var a=d[b+"Slider"];_css(d.elements,{cursor:"pointer"});_css(a,{cursor:"pointer"});a.onmousedown=function(){s=b};a.onmouseup=function(a){a.stopPropagation();U(a.pageX)};a.onmousemove=function(c){if(s=="time"){w=true;var a=c.pageX-i[b+"Slider"].left-window.pageXOffset;_css(d.timeSliderThumb,{left:a})}}}function U(f){w=false;var e;if(s=="time"){e=f-i.timeSliderRail.left+window.pageXOffset;var b=e/i.timeSliderRail.width*j;if(b<0)b=0;else if(b>j)b=j-3;(c.jwGetState()==a.api.events.state.PAUSED||c.jwGetState()==a.api.events.state.IDLE)&&c.jwPlay();c.jwSeek(b)}else if(s=="volume"){e=f-i.volumeSliderRail.left-window.pageXOffset;var d=Math.round(e/i.volumeSliderRail.width*100);if(d<0)d=0;else if(d>100)d=100;c.jwGetMute()&&c.jwSetMute(false);c.jwSetVolume(d)}s="none"}function v(a){if(a.bufferPercent!==null)t=a.bufferPercent;if(i.timeSliderRail){var b=i.timeSliderRail.width,c=isNaN(Math.round(b*t/100))?0:Math.round(b*t/100);_css(d.timeSliderBuffer,{width:c})}}function K(a){if(a.mute){_hide(d.muteButton);_show(d.unmuteButton);_hide(d.volumeSliderProgress)}else{_show(d.muteButton);_hide(d.unmuteButton);_show(d.volumeSliderProgress)}}function H(b){if(b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING){_show(d.pauseButton);_hide(d.playButton)}else{_hide(d.pauseButton);_show(d.playButton)}y();if(b.newstate==a.api.events.state.IDLE){_hide(d.timeSliderBuffer);_hide(d.timeSliderProgress);_hide(d.timeSliderThumb);o({id:c.id,duration:c.jwGetDuration(),position:0})}else{_show(d.timeSliderBuffer);if(b.newstate!=a.api.events.state.BUFFERING){_show(d.timeSliderProgress);_show(d.timeSliderThumb)}}}function P(b){v({bufferPercent:0});o(a.utils.extend(b,{position:0,duration:j}))}function o(a){if(a.position!==null)p=a.position;if(a.duration!==null)j=a.duration;var e=p===j===0?0:p/j,b=i.timeSliderRail;if(b){var c=isNaN(Math.round(b.width*e))?0:Math.round(b.width*e),f=c;if(d.timeSliderProgress){d.timeSliderProgress.style.width=c+"px";if(!w)if(d.timeSliderThumb)d.timeSliderThumb.style.left=f+"px"}}if(d.durationText)d.durationText.innerHTML=E(j);if(d.elapsedText)d.elapsedText.innerHTML=E(p)}function E(a){str="00:00";if(a>0){str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":";str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)}return str}function R(){var d,c,b=document.getElementById(e.id+"_elements").childNodes;for(var a in document.getElementById(e.id+"_elements").childNodes){if(isNaN(parseInt(a,10)))continue;if(b[a].id.indexOf(e.id+"_divider")===0&&c&&c.id.indexOf(e.id+"_divider")===0&&b[a].style.backgroundImage==c.style.backgroundImage)b[a].style.display="none";else if(b[a].id.indexOf(e.id+"_divider")===0&&d&&d.style.display!="none")b[a].style.display="block";if(b[a].style.display!="none")c=b[a];d=b[a]}}function J(){R();if(c.jwGetFullscreen()){_show(d.normalscreenButton);_hide(d.fullscreenButton)}else{_hide(d.normalscreenButton);_show(d.fullscreenButton)}var b={width:z},f={};if(g.position==a.html5.view.positions.OVER||c.jwGetFullscreen()){b.left=g.margin;b.width-=2*g.margin;b.top=L-h().height-g.margin;b.height=h().height}else b.left=0;var i=c.skin.getSkinElement("controlbar","capLeft"),k=c.skin.getSkinElement("controlbar","capRight");f.left=i?i.width:0;f.width=b.width-f.left-(k?k.width:0);var j=c.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:c.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(d.timeSliderRail,{width:f.width-m-l,left:j});d.timeSliderCapRight!==undefined&&_css(d.timeSliderCapRight,{left:j+(f.width-m-l)});_css(e,b);_css(d.elements,f);_css(d.background,f);G();return b}function D(b){if(d.volumeSliderRail!==undefined){var e=isNaN(b.volume/100)?1:b.volume/100,a=parseInt(d.volumeSliderRail.style.width.replace("px",""),10),f=isNaN(Math.round(a*e))?0:Math.round(a*e),h=parseInt(d.volumeSliderRail.style.right.replace("px",""),10),g=c.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:c.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(d.volumeSliderProgress,{width:f,left:g});d.volumeSliderCapLeft!==undefined&&_css(d.volumeSliderCapLeft,{left:0})}}function T(){B();A();G();n=true;M();I();e.style.opacity=g.idlehide?0:1}T();return this}})(jwplayer);(function(a){var b=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];a.html5.controller=function(w,v,l,u){var B=w,b=l,g=u,r=v,h=true,f=-1,x=b.config.debug!==undefined&&b.config.debug.toString().toLowerCase()=="console",c=new a.html5.eventdispatcher(r.id,x);a.utils.extend(this,c);function k(a){c.sendEvent(a.type,a)}b.addGlobalListener(k);function e(){try{if(b.playlist[b.item].levels[0].file.length>0)if(h||b.state==a.api.events.state.IDLE){b.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){b.getMedia().play()});b.addEventListener(a.api.events.JWPLAYER_MEDIA_TIME,function(a){if(a.position>=b.playlist[b.item].start&&f>=0){b.playlist[b.item].start=f;f=-1}});b.config.repeat&&b.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(t,25)});b.getMedia().load(b.playlist[b.item]);h=false}else b.state==a.api.events.state.PAUSED&&b.getMedia().play();return true}catch(d){c.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false}function n(){try{if(b.playlist[b.item].levels[0].file.length>0)switch(b.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:b.getMedia().pause()}return true}catch(d){c.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false}function z(d){try{if(b.playlist[b.item].levels[0].file.length>0){if(typeof d!="number")d=parseFloat(d);switch(b.state){case a.api.events.state.IDLE:if(f<0){f=b.playlist[b.item].start;b.playlist[b.item].start=d}e();break;case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:b.seek(d)}}return true}catch(g){c.sendEvent(a.api.events.JWPLAYER_ERROR,g)}return false}function j(){try{b.playlist[b.item].levels[0].file.length>0&&b.state!=a.api.events.state.IDLE&&b.getMedia().stop();return true}catch(d){c.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return false}function i(){try{if(b.playlist[b.item].levels[0].file.length>0)if(b.config.shuffle)d(m());else if(b.item+1==b.playlist.length)d(0);else d(b.item+1);b.state!=a.api.events.state.PLAYING&&b.state!=a.api.events.state.BUFFERING&&e();return true}catch(f){c.sendEvent(a.api.events.JWPLAYER_ERROR,f)}return false}function p(){try{if(b.playlist[b.item].levels[0].file.length>0)if(b.config.shuffle)d(m());else if(b.item===0)d(b.playlist.length-1);else d(b.item-1);b.state!=a.api.events.state.PLAYING&&b.state!=a.api.events.state.BUFFERING&&e();return true}catch(f){c.sendEvent(a.api.events.JWPLAYER_ERROR,f)}return false}function m(){var a=null;if(b.playlist.length>1)while(a===null){a=Math.floor(Math.random()*b.playlist.length);if(a==b.item)a=null}else a=0;return a}function d(d){b.resetEventListeners();b.addGlobalListener(k);try{if(b.playlist[d].levels[0].file.length>0){var f=b.state;f!==a.api.events.state.IDLE&&j();b.item=d;h=true;b.setActiveMediaProvider(b.playlist[b.item]);c.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{index:d});(f==a.api.events.state.PLAYING||f==a.api.events.state.BUFFERING||b.config.chromeless||l.config.autostart===true)&&e()}return true}catch(g){c.sendEvent(a.api.events.JWPLAYER_ERROR,g)}return false}function A(d){try{switch(typeof d){case"number":b.getMedia().volume(d);break;case"string":b.getMedia().volume(parseInt(d,10))}return true}catch(e){c.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function s(d){try{if(typeof d=="undefined")b.getMedia().mute(!b.mute);else if(d.toString().toLowerCase()=="true")b.getMedia().mute(true);else b.getMedia().mute(false);return true}catch(e){c.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function q(e,d){try{b.width=e;b.height=d;g.resize(e,d);c.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});return true}catch(f){c.sendEvent(a.api.events.JWPLAYER_ERROR,f)}return false}function y(d){try{if(typeof d=="undefined"){b.fullscreen=!b.fullscreen;g.fullscreen(!b.fullscreen)}else if(d.toString().toLowerCase()=="true"){b.fullscreen=true;g.fullscreen(true)}else{b.fullscreen=false;g.fullscreen(false)}c.sendEvent(a.api.events.JWPLAYER_RESIZE,{width:b.width,height:b.height});c.sendEvent(a.api.events.JWPLAYER_FULLSCREEN,{fullscreen:d});return true}catch(e){c.sendEvent(a.api.events.JWPLAYER_ERROR,e)}return false}function o(e){try{j();b.loadPlaylist(e);d(b.item);return true}catch(f){c.sendEvent(a.api.events.JWPLAYER_ERROR,f)}return false}a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function t(){b.resetEventListeners();b.addGlobalListener(k);switch(b.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:e();break;case a.html5.controller.repeatoptions.ALWAYS:if(b.item==b.playlist.length-1&&!b.config.shuffle){d(0);e()}else i();break;case a.html5.controller.repeatoptions.LIST:if(b.item==b.playlist.length-1&&!b.config.shuffle)d(0);else i()}}this.play=e;this.pause=n;this.seek=z;this.stop=j;this.next=i;this.prev=p;this.item=d;this.setVolume=A;this.setMute=s;this.resize=q;this.setFullscreen=y;this.load=o}})(jwplayer);(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser;this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(a){_css=a.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.display=function(x,B){var y={icons:true},p=a.utils.extend({},y,B),c=x,b={},f,d,q,s,n,j,h,w=c.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(c.skin.getComponentSettings("display").bufferrotation,10),v=c.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(c.skin.getComponentSettings("display").bufferinterval,10),k={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:A},display_icon:{style:{cursor:"pointer",position:"absolute",top:(c.skin.getSkinElement("display","background").height-c.skin.getSkinElement("display","playIcon").height)/2,left:(c.skin.getSkinElement("display","background").width-c.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(d-c.skin.getSkinElement("display","background").height)/2,left:(f-c.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",c.skin.getSkinElement("display","background").src,")"].join(""),width:c.skin.getSkinElement("display","background").width,height:c.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:f,height:d,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}}};c.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,i);c.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,i);c.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,i);c.jwAddEventListener(a.api.events.JWPLAYER_ERROR,z);u();function u(){b.display=e("div","display");b.display_text=e("div","display_text");b.display.appendChild(b.display_text);b.display_image=e("img","display_image");b.display_image.onerror=function(){_hide(b.display_image)};b.display_image.onload=r;b.display_icon=e("div","display_icon");b.display_iconBackground=e("div","display_iconBackground");b.display.appendChild(b.display_image);b.display_iconBackground.appendChild(b.display_icon);b.display.appendChild(b.display_iconBackground);t()}this.getDisplayElement=function(){return b.display};this.resize=function(a,e){f=a;d=e;_css(b.display,{width:a,height:e});_css(b.display_text,{width:a-10,top:(d-b.display_text.getBoundingClientRect().height)/2});_css(b.display_iconBackground,{top:(d-c.skin.getSkinElement("display","background").height)/2,left:(f-c.skin.getSkinElement("display","background").width)/2});o();i({})};this.show=function(){_show(b.display_icon);_show(b.display_iconBackground)};this.hide=function(){l()};function r(){q=b.display_image.naturalWidth;s=b.display_image.naturalHeight;o()}function o(){a.utils.stretch(c.jwGetStretching(),b.display_image,f,d,q,s)}function e(d,b){var a=document.createElement(d);a.id=c.id+"_jwplayer_"+b;_css(a,k[b].style);return a}function t(){for(var a in b)if(k[a].click!==undefined)b[a].onclick=k[a].click}function A(b){if(typeof b.preventDefault!="undefined")b.preventDefault();else b.returnValue=false;if(c.jwGetState()!=a.api.events.state.PLAYING)c.jwPlay();else c.jwPause()}function g(a){if(h||!p.icons){l();return}_show(b.display_iconBackground);b.display_icon.style.backgroundImage=["url(",c.skin.getSkinElement("display",a).src,")"].join("");_css(b.display_icon,{display:"block",width:c.skin.getSkinElement("display",a).width,height:c.skin.getSkinElement("display",a).height,top:(c.skin.getSkinElement("display","background").height-c.skin.getSkinElement("display",a).height)/2,left:(c.skin.getSkinElement("display","background").width-c.skin.getSkinElement("display",a).width)/2});if(c.skin.getSkinElement("display",a+"Over")!==undefined){b.display_icon.onmouseover=function(){b.display_icon.style.backgroundImage=["url(",c.skin.getSkinElement("display",a+"Over").src,")"].join("")};b.display_icon.onmouseout=function(){b.display_icon.style.backgroundImage=["url(",c.skin.getSkinElement("display",a).src,")"].join("")}}else{b.display_icon.onmouseover=null;b.display_icon.onmouseout=null}}function l(){_hide(b.display_icon);_hide(b.display_iconBackground)}function z(a){h=true;l();b.display_text.innerHTML=a.error;_show(b.display_text);b.display_text.style.top=(d-b.display_text.getBoundingClientRect().height)/2+"px"}function m(){var a=b.display_image;b.display_image=e("img","display_image");b.display_image.onerror=function(){_hide(b.display_image)};b.display_image.onload=r;b.display.replaceChild(b.display_image,a)}function i(d){if((d.type==a.api.events.JWPLAYER_PLAYER_STATE||d.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&h){h=false;_hide(b.display_text)}if(j!==undefined){clearInterval(j);j=null;a.utils.animations.rotate(b.display_icon,0)}switch(c.jwGetState()){case a.api.events.state.BUFFERING:g("bufferIcon");n=0;j=setInterval(function(){n+=w;a.utils.animations.rotate(b.display_icon,n%360)},v);g("bufferIcon");break;case a.api.events.state.PAUSED:c.jwGetPlaylist()[c.jwGetItem()].provider!="sound"&&_css(b.display_image,{background:"transparent no-repeat center center"});g("playIcon");break;case a.api.events.state.IDLE:if(c.jwGetPlaylist()[c.jwGetItem()].image){_css(b.display_image,{display:"block"});b.display_image.src=a.utils.getAbsolutePath(c.jwGetPlaylist()[c.jwGetItem()].image)}else m();g("playIcon");break;default:if(c.jwGetMute()&&p.showmute){c.jwGetPlaylist()[c.jwGetItem()].provider!="sound"&&m();g("muteIcon")}else{c.jwGetPlaylist()[c.jwGetItem()].provider!="sound"&&m();_hide(b.display_iconBackground);_hide(b.display_icon)}}}return this}})(jwplayer);(function(a){_css=a.utils.css;a.html5.dock=function(c,j){function k(){return{align:a.html5.view.positions.RIGHT}}var i=a.utils.extend({},k(),j);if(i.align=="FALSE")return;var b={},d=[],f,g,e=document.createElement("div");e.id=c.id+"_jwplayer_dock";this.getDisplayElement=function(){return e};this.setButton=function(i,j,k,l){if(!j&&b[i]){a.utils.arrays.remove(d,i);e.removeChild(b[i].div);delete b[i]}else if(j){if(!b[i])b[i]={};b[i].handler=j;b[i].outGraphic=k;b[i].overGraphic=l;if(!b[i].div){d.push(i);b[i].div=document.createElement("div");b[i].div.style.position="relative";e.appendChild(b[i].div);b[i].div.appendChild(document.createElement("img"));b[i].div.childNodes[0].style.position="absolute";b[i].div.childNodes[0].style.left=0;b[i].div.childNodes[0].style.top=0;b[i].div.childNodes[0].style.zIndex=10;b[i].div.childNodes[0].style.cursor="pointer";b[i].div.appendChild(document.createElement("img"));b[i].div.childNodes[1].style.position="absolute";b[i].div.childNodes[1].style.left=0;b[i].div.childNodes[1].style.top=0;if(c.skin.getSkinElement("dock","button"))b[i].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src;b[i].div.childNodes[1].style.zIndex=9;b[i].div.childNodes[1].style.cursor="pointer";b[i].div.onmouseover=function(){if(b[i].overGraphic)b[i].div.childNodes[0].src=b[i].overGraphic;if(c.skin.getSkinElement("dock","buttonOver"))b[i].div.childNodes[1].src=c.skin.getSkinElement("dock","buttonOver").src};b[i].div.onmouseout=function(){if(b[i].outGraphic)b[i].div.childNodes[0].src=b[i].outGraphic;if(c.skin.getSkinElement("dock","button"))b[i].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src};if(b[i].overGraphic)b[i].div.childNodes[0].src=b[i].overGraphic;if(b[i].outGraphic)b[i].div.childNodes[0].src=b[i].outGraphic;if(c.skin.getSkinElement("dock","button"))b[i].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src}if(j)b[i].div.onclick=function(d){d.preventDefault();a(c.id).callback(i);if(b[i].overGraphic)b[i].div.childNodes[0].src=b[i].overGraphic;if(c.skin.getSkinElement("dock","button"))b[i].div.childNodes[1].src=c.skin.getSkinElement("dock","button").src}}h(f,g)};function h(m,h){f=m;g=h;if(d.length>0){var e=10,o=m-c.skin.getSkinElement("dock","button").width-e,j=e,n=-1;if(i.align==a.html5.view.positions.LEFT){n=1;o=e}for(var k=0;k<d.length;k++){var l=Math.floor(j/h);if(j+c.skin.getSkinElement("dock","button").height+e>(l+1)*h){j=(l+1)*h+e;l=Math.floor(j/h)}b[d[k]].div.style.top=j%h+"px";b[d[k]].div.style.left=o+(c.skin.getSkinElement("dock","button").width+e)*l*n+"px";j+=c.skin.getSkinElement("dock","button").height+e}}}this.resize=h;this.show=function(){_css(e,{display:"block"})};this.hide=function(){_css(e,{display:"none"})};return this}})(jwplayer);(function(a){a.html5.eventdispatcher=function(d,c){var b=new a.events.eventdispatcher(c);a.utils.extend(this,b);this.sendEvent=function(e,c){if(c===undefined)c={};a.utils.extend(c,{id:d,version:a.version,type:e});b.sendEvent(e,c)}}})(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:3,hide:true,position:"bottom-left"};_css=a.utils.css;a.html5.logo=function(g,h){var e=g,i,c,d;n();function n(){q();j();k()}function q(){if(b.prefix){var d=g.version.split(/\W/).splice(0,2).join("/");if(b.prefix.indexOf(d)<0)b.prefix+=d+"/"}if(h.position==a.html5.view.positions.OVER)h.position=b.position;c=a.utils.extend({},b)}function j(){d=document.createElement("img");d.id=e.id+"_jwplayer_logo";d.style.display="none";d.onload=function(){_css(d,r());e.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,s);f()};if(!c.file)return;if(c.file.indexOf("http://")===0)d.src=c.file;else d.src=c.prefix+c.file}if(!c.file)return;this.resize=function(){};this.getDisplayElement=function(){return d};function k(){if(c.link){d.onmouseover=m;d.onmouseout=f;d.onclick=p}else this.mouseEnabled=false}function p(a){typeof a!="undefined"&&a.stopPropagation();e.jwPause();e.jwSetFullscreen(false);c.link&&window.open(c.link,"_blank");return}function f(){if(c.link)d.style.opacity=c.out;return}function m(){if(c.hide)d.style.opacity=c.over;return}function r(){var a={textDecoration:"none",position:"absolute",cursor:"pointer"};a.display=c.hide?"none":"block";var b=c.position.toLowerCase().split("-");for(var d in b)a[b[d]]=c.margin;return a}function o(){if(c.hide){d.style.display="block";d.style.opacity=0;a.utils.fadeTo(d,c.out,.1,parseFloat(d.style.opacity));i=setTimeout(function(){l()},c.timeout*1e3)}}function l(){c.hide&&a.utils.fadeTo(d,0,.1,parseFloat(d.style.opacity))}function s(b){if(b.newstate==a.api.events.state.BUFFERING){clearTimeout(i);o()}}return this}})(jwplayer);(function(a){var b={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING},c=a.utils.css;a.html5.mediavideo=function(m,I){var z={abort:i,canplay:g,canplaythrough:g,durationchange:x,emptied:i,ended:g,error:L,loadeddata:x,loadedmetadata:x,loadstart:g,pause:g,play:s,playing:g,progress:w,ratechange:i,seeked:g,seeking:g,stalled:g,suspend:g,timeupdate:s,volumechange:i,waiting:g,canshowcurrentframe:i,dataunavailable:i,empty:i,load:y,loadedfirstframe:i},f=new a.html5.eventdispatcher;a.utils.extend(this,f);var e=m,d=I,r,k,h=a.api.events.state.IDLE,p=null,t,O=0,o=false,v=false,u,n,l=[],E,q=false;function y(){}function i(){}function g(a){b[a.type]&&j(b[a.type])}function j(b){if(q)return;if(t)b=a.api.events.state.IDLE;if(b==a.api.events.state.PAUSED&&h==a.api.events.state.IDLE)return;if(b==a.api.events.state.PLAYING&&h==a.api.events.state.IDLE){j(a.api.events.state.BUFFERING);f.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:e.buffer});G();return}if(h!=b){var g=h;e.state=b;h=b;var c=false;if(b==a.api.events.state.IDLE){D();if(e.position>=e.duration&&(e.position>0||e.duration>0))c=true;if(d.style.display!="none"&&!e.config.chromeless)d.style.display="none"}f.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:b});c&&f.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE)}t=false}function x(b){var c={height:b.target.videoHeight,width:b.target.videoWidth,duration:Math.round(b.target.duration*10)/10};if(e.duration===0||isNaN(e.duration))e.duration=Math.round(b.target.duration*10)/10;e.playlist[e.item]=a.utils.extend(e.playlist[e.item],c);f.sendEvent(a.api.events.JWPLAYER_MEDIA_META,{metadata:c})}function s(b){if(t)return;if(b!==undefined&&b.target!==undefined){if(e.duration===0||isNaN(e.duration))e.duration=Math.round(b.target.duration*10)/10;!o&&d.readyState>0&&j(a.api.events.state.PLAYING);if(h==a.api.events.state.PLAYING){if(!o&&d.readyState>0){o=true;try{d.currentTime=e.playlist[e.item].start}catch(c){}d.volume=e.volume/100;d.muted=e.mute}e.position=Math.round(b.target.currentTime*10)/10;f.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:b.target.currentTime,duration:b.target.duration})}}w(b)}function G(){if(r===false&&h==a.api.events.state.BUFFERING){f.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL);r=true}}function J(){var a=(l[l.length-1]-l[0])/l.length;E=setTimeout(function(){!k&&w({lengthComputable:true,loaded:1,total:1})},a*10)}function w(c){var b,g;if(c!==undefined&&c.lengthComputable&&c.total){C();b=c.loaded/c.total*100;g=b/100*(e.duration-d.currentTime);if(50<b&&!k){clearTimeout(E);J()}}else if(d.buffered!==undefined&&d.buffered.length>0){maxBufferIndex=0;if(maxBufferIndex>=0){b=d.buffered.end(maxBufferIndex)/d.duration*100;g=d.buffered.end(maxBufferIndex)-d.currentTime}}G();if(!k){if(b==100&&k===false)k=true;if(b!==null&&b>e.buffer){e.buffer=Math.round(b);f.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(b)})}}}function M(){if(p===null)p=setInterval(function(){s()},100)}function D(){clearInterval(p);p=null}function L(c){var b="There was an error: ";if(c.target.error&&c.target.tagName.toLowerCase()=="video"||c.target.parentNode.error&&c.target.parentNode.tagName.toLowerCase()=="video"){var d=c.target.error===undefined?c.target.parentNode.error:c.target.error;switch(d.code){case d.MEDIA_ERR_ABORTED:b="You aborted the video playback: ";break;case d.MEDIA_ERR_NETWORK:b="A network error caused the video download to fail part-way: ";break;case d.MEDIA_ERR_DECODE:b="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case d.MEDIA_ERR_SRC_NOT_SUPPORTED:b="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:b="An unknown error occurred: "}}else if(c.target.tagName.toLowerCase()=="source"){n--;if(n>0)return;b="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{a.utils.log("Erroneous error received. Continuing...");return}F();b+=A();q=true;f.sendEvent(a.api.events.JWPLAYER_ERROR,{error:b});return}function A(){var b="";for(var c in u.levels){var e=u.levels[c],f=d.ownerDocument.createElement("source");b+=a.utils.getAbsolutePath(e.file);if(c<u.levels.length-1)b+=", "}return b}this.getDisplayElement=function(){return d};this.play=function(){if(h!=a.api.events.state.PLAYING){if(d.style.display!="block")d.style.display="block";d.play();M();r&&j(a.api.events.state.PLAYING)}};this.pause=function(){d.pause();j(a.api.events.state.PAUSED)};this.seek=function(a){if(!(e.duration===0||isNaN(e.duration))&&!(e.position===0||isNaN(e.position))){d.currentTime=a;d.play()}};function F(){d.pause();d.removeAttribute("src");for(var c=d.getElementsByTagName("source"),b=0;b<c.length;b++)d.removeChild(c[b]);typeof d.load=="function"&&d.load();D();e.position=0;t=true;j(a.api.events.state.IDLE)}this.stop=F;this.volume=function(b){d.volume=b/100;e.volume=b;f.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})};this.mute=function(b){d.muted=b;e.mute=b;f.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})};this.resize=function(g,b){false&&c(d,{width:g,height:b});f.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:e.fullscreen,width:g,hieght:b})};this.fullscreen=function(a){if(a===true)this.resize("100%","100%");else this.resize(e.config.width,e.config.height)};this.load=function(b){B(b);f.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);r=false;k=false;o=false;if(!e.config.chromeless&&!v){l=[];C();j(a.api.events.state.BUFFERING);setTimeout(function(){s()},25)}};function C(){var a=(new Date).getTime();l.push(a)}this.hasChrome=function(){return v};function B(a){switch(a.provider){case"youtube":K(a);break;default:H(a,document.createElement("video"))}}function H(g,b){e.duration=g.duration;v=false;u=g;b.preload="none";b.setAttribute("x-webkit-airplay","allow");q=false;n=0;for(var j=0;j<g.levels.length;j++){var h=g.levels[j],c,i=a.utils.extension(h.file);if(h.type===undefined){if(a.utils.extensionmap[i]!==undefined&&a.utils.extensionmap[i].html5!==undefined)c=a.utils.extensionmap[i].html5}else c=h.type;if(!c||b.canPlayType(c)||a.utils.isLegacyAndroid()&&i.match(/m4v|mp4/)){var k=d.ownerDocument.createElement("source");k.src=a.utils.getAbsolutePath(h.file);if(c&&!a.utils.isLegacyAndroid())k.type=c;n++;b.appendChild(k)}}if(n===0){q=true;f.sendEvent(a.api.events.JWPLAYER_ERROR,{error:"The media could not be loaded because the format is not supported by your browser: "+A()})}if(e.config.chromeless){b.poster=a.utils.getAbsolutePath(g.image);b.controls="controls"}b.style.top=d.style.top;b.style.left=d.style.left;b.style.width=d.style.width;b.style.height=d.style.height;b.style.zIndex=d.style.zIndex;b.onload=y;b.volume=0;d.parentNode.replaceChild(b,d);b.id=d.id;d=b;for(var l in z)d.addEventListener(l,function(a){a.target.parentNode!==null&&z[a.type](a)},true)}function K(j){var b=j.levels[0].file,a=document.createElement("object");b=["http://www.youtube.com/v/",N(b),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var h={movie:b,allowFullScreen:"true",allowscriptaccess:"always"};for(var e in h){var c=document.createElement("param");c.name=e;c.value=h[e];a.appendChild(c)}var i=document.createElement("embed"),f={src:b,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(m.id).style.width,height:document.getElementById(m.id).style.height};for(var g in f)i[g]=f[g];a.appendChild(i);a.style.position=d.style.position;a.style.top=d.style.top;a.style.left=d.style.left;a.style.width=document.getElementById(m.id).style.width;a.style.height=document.getElementById(m.id).style.height;a.style.zIndex=2147483000;d.parentNode.replaceChild(a,d);a.id=d.id;d=a;v=true}function N(b){for(var d=b.split(/\?|\#\!/),a="",c=0;c<d.length;c++)if(d[c].substr(0,2)=="v=")a=d[c].substr(2);if(a=="")if(b.indexOf("/v/")>=0)a=b.substr(b.indexOf("/v/")+3);else if(b.indexOf("youtu.be")>=0)a=b.substr(b.indexOf("youtu.be/")+9);else a=b;if(a.indexOf("?")>-1)a=a.substr(0,a.indexOf("?"));if(a.indexOf("&")>-1)a=a.substr(0,a.indexOf("&"));return a}this.embed=B;return this}})(jwplayer);(function(a){var b=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];a.html5.model=function(B,v,h){var A=B,n=v,c={id:n.id,playlist:[],state:a.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",stretching:a.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}},e,k=new a.html5.eventdispatcher,u=["display","logo","controlbar","dock"];a.utils.extend(c,k);for(var f in h){if(typeof h[f]=="string"){var z=/color$/.test(f)?"color":null;h[f]=a.utils.typechecker(h[f],z)}var i=c.config,g=f.split(".");for(var j in g)if(j==g.length-1)i[g[j]]=h[f];else{if(i[g[j]]===undefined)i[g[j]]={};i=i[g[j]]}}for(var y in b){var o=b[y];c[o]=c.config[o]}var l=u.concat([]);if(c.plugins!==undefined)if(typeof c.plugins=="string"){var m=c.plugins.split(",");for(var q in m)typeof m[q]=="string"&&l.push(m[q].replace(/^\s+|\s+$/g,""))}if(typeof c.config.chromeless=="undefined"&&a.utils.isIOS())c.config.chromeless=true;if(c.config.chromeless){l=["logo"];if(c.config.repeat===undefined||c.config.repeat=="none")c.config.repeat="list"}c.plugins={order:l,config:{},object:{}};if(typeof c.config.components!="undefined")for(var r in c.config.components)c.plugins.config[r]=c.config.components[r];for(var t in c.plugins.order){var d=c.plugins.order[t],p=c.config[d]===undefined?{}:c.config[d];c.plugins.config[d]=c.plugins.config[d]===undefined?p:a.utils.extend(c.plugins.config[d],p);if(typeof c.plugins.config[d].position=="undefined")c.plugins.config[d].position=a.html5.view.positions.OVER;else c.plugins.config[d].position=c.plugins.config[d].position.toString().toUpperCase()}if(typeof c.plugins.config.dock!="undefined"){if(typeof c.plugins.config.dock!="object"){var w=c.plugins.config.dock.toString().toUpperCase();c.plugins.config.dock={position:w}}if(typeof c.plugins.config.dock.position!="undefined"){c.plugins.config.dock.align=c.plugins.config.dock.position;c.plugins.config.dock.position=a.html5.view.positions.OVER}}c.loadPlaylist=function(e,f){var b;if(typeof e=="string")try{b=eval(e)}catch(g){b=e}else b=e;var d;switch(a.utils.typeOf(b)){case"object":d=b;break;case"array":d={playlist:b};break;default:d={file:b}}c.playlist=new a.html5.playlist(d);if(c.config.shuffle)c.item=s();else{if(c.config.item>=c.playlist.length)c.config.item=c.playlist.length-1;else if(c.config.item<0)c.config.item=0;c.item=c.config.item}!f&&k.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:c.playlist});c.setActiveMediaProvider(c.playlist[c.item])};function s(){var a=null;if(c.playlist.length>1)while(a===null){a=Math.floor(Math.random()*c.playlist.length);if(a==c.item)a=null}else a=0;return a}function x(b){if(b.type==a.api.events.JWPLAYER_MEDIA_LOADED)n=e.getDisplayElement();k.sendEvent(b.type,b)}c.setActiveMediaProvider=function(b){e!==undefined&&e.resetEventListeners();e=new a.html5.mediavideo(c,n);e.addGlobalListener(x);c.config.chromeless&&e.load(b);return true};c.getMedia=function(){return e};c.seek=function(b){k.sendEvent(a.api.events.JWPLAYER_MEDIA_SEEK,{position:c.position,offset:b});return e.seek(b)};c.setupPlugins=function(){for(var d in c.plugins.order)try{var b=c.plugins.order[d];if(a.html5[b]!==undefined)c.plugins.object[b]=new a.html5[b](A,c.plugins.config[b]);else c.plugins.order.splice(d,d+1)}catch(e){a.utils.log("Could not setup "+b)}};return c}})(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){a.html5.playlistitem=function(d){var e={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},c=a.utils.extend({},e,d);if(c.type){c.provider=c.type;delete c.type}if(c.levels.length===0)c.levels[0]=new a.html5.playlistitemlevel(c);if(!c.provider)c.provider=b(c.levels[0]);else c.provider=c.provider.toLowerCase();return c};function b(c){if(a.utils.isYouTube(c.file))return"youtube";else{var e=a.utils.extension(c.file),b;if(e&&a.utils.extensionmap[e])b=a.utils.extensionmap[e].html5;else if(c.type)b=c.type;if(b){var d=b.split("/")[0];if(d=="audio")return"sound";else if(d=="video")return d}}return""}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(c){var b={file:"",streamer:"",bitrate:0,width:0};for(var a in b)if(c[a]!==undefined)b[a]=c[a];return b}})(jwplayer);(function(a){a.html5.skin=function(){var b={},c=false;this.load=function(e,d){new a.html5.skinloader(e,function(a){c=true;b=a;d()},function(){new a.html5.skinloader("",function(a){c=true;b=a;d()})})};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(k,p,m){var b={},j=p,n=m,g=true,e,d=k,h=false;function o(){if(typeof d!="string"||d==="")c(a.html5.defaultSkin().xml);else a.utils.ajax(a.utils.getAbsolutePath(d),function(b){try{if(b.responseXML!==null){c(b.responseXML);return}}catch(d){}c(a.html5.defaultSkin().xml)},function(){c(a.html5.defaultSkin().xml)})}function c(B){var e=B.getElementsByTagName("component");if(e.length===0)return;for(var h=0;h<e.length;h++){var c=e[h].getAttribute("name"),C={settings:{},elements:{},layout:{}};b[c]=C;for(var u=e[h].getElementsByTagName("elements")[0].getElementsByTagName("element"),m=0;m<u.length;m++)i(u[m],c);var s=e[h].getElementsByTagName("settings")[0];if(s!==undefined&&s.childNodes.length>0)for(var n=s.getElementsByTagName("setting"),k=0;k<n.length;k++){var y=n[k].getAttribute("name"),z=n[k].getAttribute("value"),A=/color$/.test(y)?"color":null;b[c].settings[y]=a.utils.typechecker(z,A)}var o=e[h].getElementsByTagName("layout")[0];if(o!==undefined&&o.childNodes.length>0)for(var w=o.getElementsByTagName("group"),r=0;r<w.length;r++){var d=w[r];b[c].layout[d.getAttribute("position")]={elements:[]};for(var p=0;p<d.attributes.length;p++){var t=d.attributes[p];b[c].layout[d.getAttribute("position")][t.name]=t.value}for(var x=d.getElementsByTagName("*"),j=0;j<x.length;j++){var l=x[j];b[c].layout[d.getAttribute("position")].elements.push({type:l.tagName});for(var q=0;q<l.attributes.length;q++){var v=l.attributes[q];b[c].layout[d.getAttribute("position")].elements[j][v.name]=v.value}if(b[c].layout[d.getAttribute("position")].elements[j].name===undefined)b[c].layout[d.getAttribute("position")].elements[j].name=l.tagName}}g=false;f()}}function f(){clearInterval(e);if(!h)e=setInterval(function(){q()},100)}function i(m,g){var c=new Image,j=m.getAttribute("name"),e=m.getAttribute("src"),i;if(e.indexOf("data:image/png;base64,")===0)i=e;else{var k=a.utils.getAbsolutePath(d),o=k.substr(0,k.lastIndexOf("/"));i=[o,g,e].join("/")}b[g].elements[j]={height:0,width:0,src:"",ready:false};c.onload=function(){l(c,j,g)};c.onerror=function(){h=true;f();n()};c.src=i}function q(){for(var a in b)if(a!="properties")for(var c in b[a].elements)if(!b[a].elements[c].ready)return;if(g===false){clearInterval(e);j(b)}}function l(d,c,a){b[a].elements[c].height=d.height;b[a].elements[c].width=d.width;b[a].elements[c].src=d.src;b[a].elements[c].ready=true;f()}o()}})(jwplayer);(function(a){a.html5.api=function(h,l){var b={},g=document.createElement("div");h.parentNode.replaceChild(g,h);g.id=h.id;b.version=a.version;b.id=g.id;var d=new a.html5.model(b,g,l),i=new a.html5.view(b,g,d),c=new a.html5.controller(b,g,d,i);b.skin=new a.html5.skin;b.jwPlay=function(a){if(typeof a=="undefined")k();else if(a.toString().toLowerCase()=="true")c.play();else c.pause()};b.jwPause=function(a){if(typeof a=="undefined")k();else if(a.toString().toLowerCase()=="true")c.pause();else c.play()};function k(){if(d.state==a.api.events.state.PLAYING||d.state==a.api.events.state.BUFFERING)c.pause();else c.play()}b.jwStop=c.stop;b.jwSeek=c.seek;b.jwPlaylistItem=c.item;b.jwPlaylistNext=c.next;b.jwPlaylistPrev=c.prev;b.jwResize=c.resize;b.jwLoad=c.load;function e(a){return function(){return d[a]}}function f(b,a,c){return function(){var e=d.plugins.object[b];e&&e[a]&&typeof e[a]=="function"&&e[a].apply(e,c)}}b.jwGetItem=e("item");b.jwGetPosition=e("position");b.jwGetDuration=e("duration");b.jwGetBuffer=e("buffer");b.jwGetWidth=e("width");b.jwGetHeight=e("height");b.jwGetFullscreen=e("fullscreen");b.jwSetFullscreen=c.setFullscreen;b.jwGetVolume=e("volume");b.jwSetVolume=c.setVolume;b.jwGetMute=e("mute");b.jwSetMute=c.setMute;b.jwGetStretching=e("stretching");b.jwGetState=e("state");b.jwGetVersion=function(){return b.version};b.jwGetPlaylist=function(){return d.playlist};b.jwGetPlaylistIndex=b.jwGetItem;b.jwAddEventListener=c.addEventListener;b.jwRemoveEventListener=c.removeEventListener;b.jwSendEvent=c.sendEvent;b.jwDockSetButton=function(e,a,b,c){d.plugins.object.dock&&d.plugins.object.dock.setButton&&d.plugins.object.dock.setButton(e,a,b,c)};b.jwShowControlbar=f("controlbar","show");b.jwHideControlbar=f("controlbar","hide");b.jwShowDock=f("dock","show");b.jwHideDock=f("dock","hide");b.jwShowDisplay=f("display","show");b.jwHideDisplay=f("display","hide");b.jwGetLevel=function(){};b.jwGetBandwidth=function(){};b.jwGetLockState=function(){};b.jwLock=function(){};b.jwUnlock=function(){};function j(c,e,d){return function(){c.loadPlaylist(c.config,true);c.setupPlugins();e.setup(c.getMedia().getDisplayElement());var f={id:b.id,version:b.version};d.sendEvent(a.api.events.JWPLAYER_READY,f);playerReady!==undefined&&playerReady(f);window[c.config.playerReady]!==undefined&&window[c.config.playerReady](f);c.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:c.playlist});d.item(c.item)}}if(d.config.chromeless)setTimeout(j(d,i,c),25);else b.skin.load(d.config.skin,j(d,i,c));return b}})(jwplayer)};var postal=function(){"use strict";var b=[],g=[],e=0,k=m();function m(){var a=-1;if(navigator.appName==="Microsoft Internet Explorer"){var c=navigator.userAgent,b=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(b.exec(c)!==null)a=parseFloat(RegExp.$1)}return a}function l(d){var a=[],g=[],e,f,c,b;for(c in d)d.hasOwnProperty(c)&&a.push([c,d[c]]);a.sort();k>=6&&k<=8&&a.sort(function(a,b){e=Number(a[0]);if(isNaN(e))return 0;f=Number(b[0]);return isNaN(f)?0:e-f});for(b=0;b<a.length;b+=1)g[a[b][0]]=a[b][1];return g}function a(a){return a!==null&&typeof a!=="undefined"}function c(b){return!a(b)}function i(a){return typeof a!=="number"}function d(a){return typeof a!=="string"&&typeof a!=="number"}function h(a){return typeof a!=="object"&&typeof a!=="string"&&typeof a!=="number"}function j(a){return typeof a==="object"}function f(a){return typeof a!=="function"}function n(a){return typeof a!=="object"&&typeof a!=="function"}function p(f,g,b,d){var c,e;e=postal.notify(f,g,b);if(a(d)){c=window;if(j(b))c=b;d.call(c,e)}}function o(g){var b,c,e,f,d;b=g.shift();if(a(b)){c=false;if(a(b.timeout)){e=(new Date).getTime();c=e-b.timestamp>b.timeout}if(!c){f=postal.notify(b.message,b.data,b.caller);if(a(b.oncomplete)){d=window;if(j(b.caller))d=b.caller;b.oncomplete.call(d,f)}}}}return{subscribe:function(e,g,k,m){var n,i;if(c(e))throw new Error("You must provide a message to subscribe to.");if(d(e))throw new Error("The message must be a string or a number.");if(c(g))throw new Error("You must provide a subscriber to the message.");if(h(g))throw new Error("The subscriber must be an object, a string or a number.");if(a(k)||a(g[e])){if(c(b[e]))b[e]=[];i=g[e+"Id"];if(c(i)){i=g.subscriberId;if(c(i))i=g}if(d(i))throw new Error("The id must be a number or a string.");if(c(k)){k=g[e];if(c(k))throw new Error("You must provide a callback to subscribe to the message.");}if(f(k))throw new Error("The callback must be a callable function.");if(c(m))m=g["_"+e];if(a(m)&&f(m))throw new Error("The blocker must be a callable function.");n=null;if(j(g))n=g;b[e][i]={callback:k,blocker:m,scope:n};b[e]=l(b[e])}else throw new Error("You must provide a callback to subscribe to the message.");},unsubscribe:function(g,f){var e,j,i;if(a(g)){if(d(g))throw new Error("The message must be a string or a number.");if(a(b[g]))if(a(f)){if(h(f))throw new Error("The subscriber must be an object, a string or a number.");e=f[g+"Id"];if(c(e)){e=f.subscriberId;if(c(e))e=f}if(d(e))throw new Error("The id must be a number or a string.");delete b[g][e];if(b[g].length===0)delete b[g]}else delete b[g]}else if(a(f)){if(h(f))throw new Error("The subscriber must be an object, a string or a number.");e=f.subscriberId;if(c(e))e=f;for(i in b)if(b.hasOwnProperty(i)){j=f[i+"Id"];if(a(j))e=j;if(d(e))throw new Error("The id must be a number or a string.");delete b[i][e];if(b[i].length===0)delete b[i]}}else throw new Error("You must provide a message or subscriber to unsubscribe.");},trigger:function(a){if(c(a))throw new Error("You must provide an options object to trigger.");if(c(a.method))throw new Error("You must provide a method to deliver the message.");switch(a.method){case"notify":return this.notify(a.message,a.data,a.caller);case"publish":this.publish(a.message,a.data,a.caller,a.delay,a.oncomplete);break;case"dispatch":this.dispatch(a.message,a.data,a.caller,a.timeout,a.oncomplete);break;default:throw new Error("The method provided does not exist.");}},notify:function(i,p,g){var o=[],e,f,m,h,l,j,k;if(c(i))throw new Error("You must provide a message to deliver.");if(d(i))throw new Error("The message must be a string or a number.");if(a(g)&&n(g))throw new Error("The caller must be an object or a function.");e=b[i];for(f in e)if(e.hasOwnProperty(f)){m=e[f].callback;h=e[f].blocker;l=e[f].scope||window;j=false;if(a(h))j=h.call(l,p,g);if(!j){k=m.call(l,p,g);a(k)&&o.push(k)}}return o},publish:function(d,g,e,b,c){if(a(b)){if(i(b))throw new Error("The delay must be a number.");}else b=500;if(a(c)&&f(c))throw new Error("The oncomplete callback must be a callable function.");window.setTimeout(function(){p(d,g,e,c)},b)},dispatch:function(h,k,j,c,b){var d;if(a(c)&&i(c))throw new Error("The timeout must be a number.");if(a(b)&&f(b))throw new Error("The oncomplete callback must be a callable function.");d=(new Date).getTime();g.push({message:h,data:k,caller:j,timestamp:d,timeout:c,oncomplete:b});e===0&&this.startPoll()},startPoll:function(b){if(a(b)){if(i(b))throw new Error("The interval must be a number.");}else b=1e3;e!==0&&this.stopPoll();e=window.setInterval(function(){o(g)},b)},stopPoll:function(){if(e>0){window.clearInterval(e);e=0;g=[]}},exists:function(e){if(c(e))throw new Error("You must provide a message to verify its existence.");if(d(e))throw new Error("The message must be a string or a number.");return a(b[e])},count:function(e){var g,f;if(c(e))throw new Error("You must provide a message to count its subscribers.");if(d(e))throw new Error("The message must be a string or a number.");g=0;for(f=0;f<b[e].length;f+=1)if(a(b[e][f]))g+=1;return g},reset:function(){b=[];g=[]}}}();if(typeof scribd=="undefined"){var scribd={};scribd.Document=function(){this.__params=[];this.__callQueue=[];this.__listenerLookup={};if(arguments.length==2){this.document_id=arguments[0];this.access_key=arguments[1];return this}if(scribd.Document.caller!=scribd.Document.getDoc&&scribd.Document.caller!=scribd.Document.getDocFromUrl&&scribd.Document.caller!=scribd.Document.getDocFromUrlForExtension&&scribd.Document.caller!=undefined)throw new Error("There is no public constructor for scribd.Document.");};scribd.Document.getDoc=function(a,b){scribd_doc=new scribd.Document;scribd_doc.document_id=a;scribd_doc.access_key=b;return scribd_doc};scribd.Document.getDocFromUrl=function(b,a){scribd_doc=new scribd.Document;scribd_doc.url=b;scribd_doc.publisher_id=a;return scribd_doc};scribd.Document.getDocFromUrlForExtension=function(b,a){scribd_doc=new scribd.Document;scribd_doc.url=b;scribd_doc.extension_id=a;scribd_doc.addParam("should_redirect",true);return scribd_doc};scribd.Document.prototype={__handleEvent:function(c){for(var b=this.__listenerLookup[c]||[],a=0;a<b.length;a++)b[a]()},__addRoutedListener:function(a,b){if(this.__listenerExists(a,b))return;if(this.__listenerLookup[a])this.__listenerLookup[a].push(b);else this.__listenerLookup[a]=new Array(b)},__removeRoutedListener:function(c,d){for(var b=this.__listenerLookup[c],a=0;a<b.length;a++)b[a]==d&&b.splice(a,1)},__listenerExists:function(c,d){for(var b=this.__listenerLookup[c]||[],a=0;a<b.length;a++)if(b[a]==d)return true;return false},addEventListener:function(a,b){if(this.api)if(window.addEventListener)this.api.parentNode.addEventListener(a,b,false);else this.__addRoutedListener(a,b);else this.__callQueue.push(["addEventListener",a,b,false])},removeEventListener:function(a,b){if(this.api)if(window.addEventListener)this.api.removeEventListener(a,b,false);else this.__removeRoutedListener(a,b);else this.__callQueue.push(["removeEventListener",a,b])},getElement:function(){return document.getElementsByName(this.__embedName)[0]},addParam:function(b,a){this.__params[b]=a},grantAccess:function(b,a,c){this.__params.user_identifier=b;this.__params.secure_session_id=a;this.__params.signature=c},write:function(q){var d=document.getElementById(q);quickswitch=this.__params.quickswitch==true;if(quickswitch){var f=document.createElement("div");f.style.width="100%";f.style.height="100%";document.body.appendChild(f)}var j=d.offsetWidth,r="",a="";if(this.__params.width&&this.__params.width!="parent")j=this.__params.width;if(this.__params.mode){r=this.__params.mode;a+="&viewMode="+escape(this.__params.mode)}if(this.__params.height!="parent"){var e=Math.round(j*11/8.5);if(r=="slideshow")e=35+Math.round(j*3/4);var i=window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:0;i-=25;if(e<200)e=200;if(e>i)e=i;var o=e+"px"}else var o="100%";var p="100%",c=q+"_embed"+Math.round(Math.random()*9e9);this.__embedName=c;var k="ScribdViewer";if(this.__params.auto_size!=true)a+="&auto_size=false";if(this.__params.height&&this.__params.height!="parent")o=this.__params.height+"px";if(this.__params.width&&this.__params.width!="parent")p=this.__params.width+"px";if(this.__params.swf_name)k=this.__params.swf_name;if(this.__params.disable_related_docs)a+="&disable_related_docs="+this.__params.disable_related_docs;if(this.__params.page)a+="&page="+this.__params.page;if(this.__params.extension)a+="&extension="+this.__params.extension;if(this.__params.title)a+="&title="+escape(this.__params.title);if(this.__params.my_user_id)a+="&my_user_id="+this.__params.my_user_id;if(this.__params.api_url)a+="&api_url="+this.__params.api_url;if(this.__params.doctype)a+="&doctype="+this.__params.doctype;if(this.__params.current_user_id)a+="&current_user_id="+this.__params.current_user_id;if(this.__params.search_query)a+="&search_query="+escape(this.__params.search_query);if(this.__params.search_keywords)a+="&search_keywords="+escape(this.__params.search_keywords);if(this.__params.transferCookie==true)a+="&cookie="+escape(document.cookie);if(this.__params.should_redirect)a+="&should_redirect="+this.__params.should_redirect;if(this.__params.secret_password)a+="&secret_password="+this.__params.secret_password;if(this.__params["public"]==true)a+="&privacy=0";else a+="&privacy=1";if(this.__params.user_identifier)a+="&user_identifier="+escape(this.__params.user_identifier);if(this.__params.secure_session_id)a+="&secure_session_id="+escape(this.__params.secure_session_id);if(this.__params.signature)a+="&signature="+this.__params.signature;if(this.__params.docinfo)a+="&docinfo="+encodeURIComponent(this.__params.docinfo);if(this.__params.useIntegratedUi)a+="&useIntegratedUi="+this.__params.useIntegratedUi;if(this.document_id)a+="&document_id="+this.document_id;if(this.access_key)a+="&access_key="+this.access_key;if(this.extension_id)a+="&extension_id="+this.extension_id;if(this.url)a+="&url="+escape(this.url);if(this.publisher_id)a+="&publisher_id="+escape(this.publisher_id);var g="http://d1.scribdassets.com/",l="http://";if(this.__params.use_ssl==true){g="https://s3.amazonaws.com/documents.scribd.com/";a+="&use_ssl=true";l="https://"}if(this.__params.src_path)g=this.__params.src_path;if(this.__params.hide_sample_banner)a+="&hide_sample_banner="+this.__params.hide_sample_banner;if(this.__params.disable_resume_reading==true)a+="&disable_resume_reading=true";if(this.__params.hide_full_screen_button==true)a+="&hide_full_screen_button=true";if(this.__params.hide_disabled_buttons==true)a+="&hide_disabled_buttons=true";if(this.__params.full_screen_type)a+="&full_screen_type="+this.__params.full_screen_type;if(this.__params.custom_logo_image_url)a+="&custom_logo_image_url="+escape(this.__params.custom_logo_image_url);if(this.__params.custom_logo_click_url)a+="&custom_logo_click_url="+escape(this.__params.custom_logo_click_url);var h=Scribd_AC_RunActiveContent.Mod_AC_FL_RunContent("codebase",l+"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width",p,"height",o,"flashvars",a,"src",g+k,"quality","high","pluginspage",l+"www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","showall","wmode","opaque","devicefont","false","id",c,"bgcolor","#ffffff","name",c,"menu","true","allowFullScreen","true","allowScriptAccess","always","movie",g+k,"salign",""),s=Scribd_AC_RunActiveContent.DetectFlashVer(9,0,0);if(!s)h='<div style="font-size:16px;width:300px;border:1px solid #dddddd;padding:3px">Hello, you have an old version of Adobe Flash Player. To use iPaper (and lots of other stuff on the web) you need to <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">get the latest Flash player</a>.  </div>';if(quickswitch){f.innerHTML=h;if(d.hasChildNodes())while(d.childNodes.length>=1)d.removeChild(d.firstChild);d.appendChild(f)}else d.innerHTML=h;var b=this;window["_scribd_event_handler_"+c]=function(a){b.__handleEvent(a)};var n=function(h){var h=h||{},g=h.srcElement||document.getElementsByName(c)[0];if(g.getAttribute("name")==c){b.api=g;for(var f,a,e=[],d=0;d<b.__callQueue.length;d++){a=b.__callQueue[d];if(a[0]=="addEventListener"){f=a.shift();b[f].apply(b,a)}else e.push(a)}b.__callQueue=e}},m=function(f){var f=f||{},h=f.srcElement||document.getElementsByName(c)[0];if(h.getAttribute("name")==c){b.onReady&&b.onReady();for(var d,a,e=[],g=0;g<b.__callQueue.length;g++){a=b.__callQueue.pop();if(a[0]!="addEventListener"){d=a.shift();typeof d!="function"&&alert(typeof d);b[d].apply(b,a)}else e.push(a)}b.__callQueue=e}};if(window.addEventListener){window.addEventListener("iPaperReady",m,true);window.addEventListener("setupJsApi",n,true)}else{this.__addRoutedListener("iPaperReady",m);this.__addRoutedListener("setupJsApi",n)}}};var Scribd_AC_RunActiveContent=new function(){var c=navigator.appVersion.indexOf("MSIE")!=-1?true:false,b=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,a=navigator.userAgent.indexOf("Opera")!=-1?true:false;this.ControlVersion=function(){var a,b,c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}return a};this.GetSwfVer=function(){var e=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var k=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",h=navigator.plugins["Shockwave Flash"+k].description,f=h.split(" "),g=f[2].split("."),i=g[0],j=g[1],d=f[3];if(d=="")d=f[4];if(d[0]=="d")d=d.substring(1);else if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0)d=d.substring(0,d.indexOf("d"))}var e=i+"."+j+"."+d}}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)e=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)e=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)e=2;else if(c&&b&&!a)e=this.ControlVersion();return e};this.DetectFlashVer=function(f,g,i){versionStr=this.GetSwfVer();if(versionStr==-1)return false;else if(versionStr!=0){if(c&&b&&!a){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else versionArray=versionStr.split(".");var d=versionArray[0],e=versionArray[1],h=versionArray[2];if(d>parseFloat(f))return true;else if(d==parseFloat(f))if(e>parseFloat(g))return true;else if(e==parseFloat(g))if(h>=parseFloat(i))return true;return false}};this.AC_AddExtension=function(a,b){return a.indexOf("?")!=-1?a.replace(/\?/,b+"?"):a+b};this.Mod_AC_Generateobj=function(g,h,f){var d="";if(c&&b&&!a){d+="<object ";for(var e in g)d+=e+'="'+g[e]+'" ';d+=">";for(var e in h)d+='<param name="'+e+'" value="'+h[e]+'" /> ';d+="</object>"}else{d+="<embed ";for(var e in f)d+=e+'="'+f[e]+'" ';d+="> </embed>"}return d};this.Mod_AC_FL_RunContent=function(){var a=this.Mod_AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");return this.Mod_AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)};this.Mod_AC_SW_RunContent=function(){var a=this.Mod_AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);return this.Mod_AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)};this.Mod_AC_GetArgs=function(b,h,e,f,d){var c={};c.embedAttrs={};c.params={};c.objAttrs={};for(var a=0;a<b.length;a=a+2){var g=b[a].toLowerCase();switch(g){case"classid":break;case"pluginspage":c.embedAttrs[b[a]]=b[a+1];break;case"src":case"movie":b[a+1]=this.AC_AddExtension(b[a+1],h);c.embedAttrs.src=b[a+1];c.params[e]=b[a+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":c.objAttrs[b[a]]=b[a+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":c.embedAttrs[b[a]]=c.objAttrs[b[a]]=b[a+1];break;default:c.embedAttrs[b[a]]=c.params[b[a]]=b[a+1]}}c.objAttrs.classid=f;if(d)c.embedAttrs.type=d;return c};typeof scribd_view_callback!="undefined"&&scribd_view_callback()}}
