﻿function AjaxError(n){alert(n.Message)}function AjaxTimeout(){alert("Ajax Timeout")}function StartAjax(){$(".waiter").show(),$(".waitererror").hide(),$(".waiterok").hide()}function EndAjax(){$(".waiter").fadeOut(200)}function EndAjaxWithResult(n){$(".waiter").fadeOut(200),n.Code==200?($(".waiterok").html("response: "+n.Description),$(".waiterok").fadeIn(200),window.setTimeout("HideWaiter()",1e3)):($(".waitererror").html("response: "+n.Description),$(".waitererror").fadeIn(200))}function HideWaiter(){$(".waiter").hide(),$(".waitererror").hide(),$(".waiterok").hide()}function playfile(n){return jwplayer().load(n),jwplayer().play(),!1}function HidePlayer(){jQuery("#preview").attr("style","top:-1000px")}function UnHidePlayer(){setTimeout(UnHidePlayerDoit,100)}function UnHidePlayerDoit(){jQuery("#preview").attr("style","")}function StopPlayer(){jwplayer().stop()}function StartPlayer(){jwplayer().play()}function downloadfile(n,t){var i=String.format("/register.aspx?id={0}&name={1}&TB_iframe=1&modal=true&width=500&height=350",n,t);return jQuery.colorbox({href:i}),!1}function InitSortableLists(){jQuery("ul#sl").easyPaginate({delay:0,step:10,prevtext:"(‹)",nexttext:"(›)"})}function InitContentLoader(){jQuery("#logo a").each(UpdateContentLinks),jQuery("#navcontainer a").each(UpdateContentLinks),jQuery("#content a").each(UpdateContentLinks),jQuery("#relateds a").each(UpdateContentLinks),jQuery("#footer a[class!='atom']").each(UpdateContentLinks),jQuery("#display a.thickbox").colorbox(),jQuery("a.thickboxextern").colorbox({iframe:!0,width:"80%",height:"80%",rel:"tbextern"}),jQuery("a.canvaspage").colorbox({iframe:!0,width:"80%",height:"80%",rel:"tbcanvas",onLoad:function(){jQuery("a.canvaspage").removeClass("canvaspage")},open:function(){return jQuery("a.canvaspage").length>0}}),InitSortableLists()}function UpdateContentLinks(){var n=jQuery(this).attr("href");if(!n)return;jQuery.scrollTo(0);if(n=="http://newsletter")$clearHandlers(this),$addHandler(this,"click",OpenNewsletter);else if(n=="http://contact")$clearHandlers(this),$addHandler(this,"click",OpenContact);else{var r=n.startsWith(MainDomain)||n.startsWith("/"),i=n.indexOf("/data/"),t=i==-1;r&&t&&($clearHandlers(this),$addHandler(this,"click",LoadContent))}}function LoadContent(n){jQuery("#ucAktionsForm_up1").hide(),jQuery("#container").addClass("wait"),n.preventDefault(),n.stopPropagation();var t=jQuery(this).attr("href");location.href="#"+t,Backend.GetContent(t,LoadContentDone)}function LoadContentDone(n){jQuery("#container").removeClass("wait");if(n.OK){jQuery("#navcontainer .subnav").html(n.SubNav),jQuery("#display").html(n.Body1),jQuery("#display2").html(n.Body2),jQuery("#related .in").html(n.Teaser),jQuery("head #mTitle").attr("content",n.MetaTitle),jQuery("head #mDescription").attr("content",n.MetaDescription),document.title="MIA. - "+n.Title,jQuery('meta[property^="og:"]').remove(),jQuery("head").append(jQuery(n.FaceBookTags)),n.ShowAddThis?(jQuery("#pnlAddThis").show(),addthis.update("share","title",n.Title),addthis.update("share","url",n.FullURL)):jQuery("#pnlAddThis").hide(),n.SubNav.length==0?jQuery("#navcontainer .subnav").hide():jQuery("#navcontainer .subnav").show(),jQuery("#nav a").each(function(){jQuery(this).attr("class",""),this.id=="link"+n.RootID&&jQuery(this).attr("class","sel")}),jQuery("#display a.thickbox").colorbox({rel:"group1"}),InitContentLoader();try{pageTracker._trackPageview(n.URL)}catch(t){}}else alert("LoadContent failed!")}function OpenNewsletter(n){n.preventDefault(),n.stopPropagation();var t="/subscribe.aspx";return jQuery.colorbox({iframe:!0,href:t,width:520,height:480,initialWidth:100,initialHeight:50}),!1}function OpenContact(n){n.preventDefault(),n.stopPropagation();var t="/contact.aspx";return jQuery.colorbox({iframe:!0,href:t,width:520,height:480,initialWidth:100,initialHeight:50}),!1}function OpenComment(n){var t="/comment.aspx?id="+n;return jQuery.colorbox({iframe:!0,href:t,width:520,height:480,initialWidth:100,initialHeight:50}),!1}var jwplayer,$jw,_userPlayerReady;(function(n,t,i){function u(i,r,u){var f=t.createElement(i);return r&&(f.id=h+r),u&&(f.style.cssText=u),n(f)}function pt(n){var i=c.length,t=(y+n)%i;return t<0?i+t:t}function v(n,t){return Math.round((/%/.test(n)?(t==="x"?l.width():l.height())/100:1)*parseInt(n,10))}function li(n){return r.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(n)}function ai(){var t;r=n.extend({},n.data(p,g));for(t in r)n.isFunction(r[t])&&t.slice(0,2)!=="on"&&(r[t]=r[t].call(p));r.rel=r.rel||p.rel||"nofollow",r.href=r.href||n(p).attr("href"),r.title=r.title||p.title,typeof r.href=="string"&&(r.href=n.trim(r.href))}function ut(t,i){n.event.trigger(t),i&&i.call(p)}function ki(){var i,n=h+"Slideshow_",t="click."+h,f,u,s;r.slideshow&&c[1]?(f=function(){ht.text(r.slideshowStop).unbind(t).bind(ri,function(){(r.loop||c[y+1])&&(i=setTimeout(e.next,r.slideshowSpeed))}).bind(ii,function(){clearTimeout(i)}).one(t+" "+vt,u),o.removeClass(n+"off").addClass(n+"on"),i=setTimeout(e.next,r.slideshowSpeed)},u=function(){clearTimeout(i),ht.text(r.slideshowStart).unbind([ri,ii,vt,t].join(" ")).one(t,function(){e.next(),f()}),o.removeClass(n+"on").addClass(n+"off")},r.slideshowAuto?f():u()):o.removeClass(n+"off "+n+"on")}function ci(t){yt||(p=t,ai(),c=n(p),y=0,r.rel!=="nofollow"&&(c=n("."+lt).filter(function(){var t=n.data(this,g).rel||this.rel;return t===r.rel}),y=c.index(p),y===-1&&(c=c.add(p),y=c.length-1)),d||(d=st=!0,o.show(),r.returnFocus&&n(p).blur().one(wi,function(){n(this).focus()}),tt.css({opacity:+r.opacity,cursor:r.overlayClose?"pointer":"auto"}).show(),r.w=v(r.initialWidth,"x"),r.h=v(r.initialHeight,"y"),e.position(),at&&l.bind("resize."+bt+" scroll."+bt,function(){tt.css({width:l.width(),height:l.height(),top:l.scrollTop(),left:l.scrollLeft()})}).trigger("resize."+bt),ut(yi,r.onOpen),dt.add(fi).hide(),gt.html(r.close).show()),e.load(!0))}function vi(){!o&&t.body&&(kt=!1,l=n(i),o=u(f).attr({id:g,"class":ct?h+(at?"IE6":"IE"):""}).hide(),tt=u(f,"Overlay",at?"position:absolute":"").hide(),rt=u(f,"Wrapper"),w=u(f,"Content").append(a=u(f,"LoadedContent","width:0; height:0; overflow:hidden"),oi=u(f,"LoadingOverlay").add(u(f,"LoadingGraphic")),fi=u(f,"Title"),ei=u(f,"Current"),et=u(f,"Next"),ot=u(f,"Previous"),ht=u(f,"Slideshow").bind(yi,ki),gt=u(f,"Close")),rt.append(u(f).append(u(f,"TopLeft"),ni=u(f,"TopCenter"),u(f,"TopRight")),u(f,!1,"clear:left").append(ti=u(f,"MiddleLeft"),w,ui=u(f,"MiddleRight")),u(f,!1,"clear:left").append(u(f,"BottomLeft"),si=u(f,"BottomCenter"),u(f,"BottomRight"))).find("div div").css({float:"left"}),ft=u(f,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),dt=et.add(ot).add(ei).add(ht),n(t.body).append(tt,o.append(rt,ft)))}function bi(){return o?(kt||(kt=!0,it=ni.height()+si.height()+w.outerHeight(!0)-w.height(),nt=ti.width()+ui.width()+w.outerWidth(!0)-w.width(),b=a.outerHeight(!0),k=a.outerWidth(!0),o.css({"padding-bottom":it,"padding-right":nt}),et.click(function(){e.next()}),ot.click(function(){e.prev()}),gt.click(function(){e.close()}),tt.click(function(){r.overlayClose&&e.close()}),n(t).bind("keydown."+h,function(n){var t=n.keyCode;d&&r.escKey&&t===27&&(n.preventDefault(),e.close()),d&&r.arrowKey&&c[1]&&(t===37?(n.preventDefault(),ot.click()):t===39&&(n.preventDefault(),et.click()))}),n("."+lt,t).live("click",function(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||(n.preventDefault(),ci(this))})),!0):!1}var pi={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},g="colorbox",h="cbox",lt=h+"Element",yi=h+"_open",ii=h+"_load",ri=h+"_complete",vt=h+"_cleanup",wi=h+"_closed",wt=h+"_purge",ct=!n.support.opacity&&!n.support.style,at=ct&&!i.XMLHttpRequest,bt=h+"_IE6",tt,o,rt,w,ni,ti,ui,si,c,l,a,ft,oi,fi,ei,ht,et,ot,gt,dt,r,it,nt,b,k,p,y,s,d,st,yt,hi,e,f="div",kt;if(n.colorbox)return;n(vi),e=n.fn[g]=n[g]=function(t,i){var r=this;t=t||{},vi();if(bi()){if(!r[0]){if(r.selector)return r;r=n("<a/>"),t.open=!0}i&&(t.onComplete=i),r.each(function(){n.data(this,g,n.extend({},n.data(this,g)||pi,t))}).addClass(lt),(n.isFunction(t.open)&&t.open.call(r)||t.open)&&ci(r[0])}return r},e.position=function(n,t){function a(n){ni[0].style.width=si[0].style.width=w[0].style.width=n.style.width,w[0].style.height=ti[0].style.height=ui[0].style.height=n.style.height}var u=0,i=0,f=o.offset(),c=l.scrollTop(),s=l.scrollLeft();l.unbind("resize."+h),o.css({top:-9e4,left:-9e4}),r.fixed&&!at?(f.top-=c,f.left-=s,o.css({position:"fixed"})):(u=c,i=s,o.css({position:"absolute"})),i+=r.right!==!1?Math.max(l.width()-r.w-k-nt-v(r.right,"x"),0):r.left!==!1?v(r.left,"x"):Math.round(Math.max(l.width()-r.w-k-nt,0)/2),u+=r.bottom!==!1?Math.max(l.height()-r.h-b-it-v(r.bottom,"y"),0):r.top!==!1?v(r.top,"y"):Math.round(Math.max(l.height()-r.h-b-it,0)/2),o.css({top:f.top,left:f.left}),n=o.width()===r.w+k&&o.height()===r.h+b?0:n||0,rt[0].style.width=rt[0].style.height="9999px",o.dequeue().animate({width:r.w+k,height:r.h+b,top:u,left:i},{duration:n,complete:function(){a(this),st=!1,rt[0].style.width=r.w+k+nt+"px",rt[0].style.height=r.h+b+it+"px",r.reposition&&setTimeout(function(){l.bind("resize."+h,e.position)},1),t&&t()},step:function(){a(this)}})},e.resize=function(n){d&&(n=n||{},n.width&&(r.w=v(n.width,"x")-k-nt),n.innerWidth&&(r.w=v(n.innerWidth,"x")),a.css({width:r.w}),n.height&&(r.h=v(n.height,"y")-b-it),n.innerHeight&&(r.h=v(n.innerHeight,"y")),!n.innerHeight&&!n.height&&(a.css({height:"auto"}),r.h=a.height()),a.css({height:r.h}),e.position(r.transition==="none"?0:r.speed))},e.prep=function(t){function p(){return r.w=r.w||a.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function v(){return r.h=r.h||a.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(!d)return;var i,l=r.transition==="none"?0:r.speed;a.remove(),a=u(f,"LoadedContent").append(t),a.hide().appendTo(ft.show()).css({width:p(),overflow:r.scrolling?"auto":"hidden"}).css({height:v()}).prependTo(w),ft.hide(),n(s).css({float:"none"}),at&&n("select").not(o.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(vt,function(){this.style.visibility="inherit"}),i=function(){function k(){ct&&o[0].style.removeAttribute("filter")}var b,e,v=c.length,t,nt="frameBorder",w="allowTransparency",f,i,p;if(!d)return;f=function(){clearTimeout(hi),oi.hide(),ut(ri,r.onComplete)},ct&&s&&a.fadeIn(100),fi.html(r.title).add(a).show();if(v>1){typeof r.current=="string"&&ei.html(r.current.replace("{current}",y+1).replace("{total}",v)).show(),et[r.loop||y<v-1?"show":"hide"]().html(r.next),ot[r.loop||y?"show":"hide"]().html(r.previous),r.slideshow&&ht.show();if(r.preloading){b=[pt(-1),pt(1)];while(e=c[b.pop()])i=n.data(e,g).href||e.href,n.isFunction(i)&&(i=i.call(e)),li(i)&&(p=new Image,p.src=i)}}else dt.hide();r.iframe?(t=u("iframe")[0],nt in t&&(t[nt]=0),w in t&&(t[w]="true"),t.name=h+ +new Date,r.fastIframe?f():n(t).one("load",f),t.src=r.href,r.scrolling||(t.scrolling="no"),n(t).addClass(h+"Iframe").appendTo(a).one(wt,function(){t.src="//about:blank"})):f(),r.transition==="fade"?o.fadeTo(l,1,k):k()},r.transition==="fade"?o.fadeTo(l,0,function(){e.position(0,i)}):e.position(l,i)},e.load=function(t){var i,l,o=e.prep;st=!0,s=!1,p=c[y],t||ai(),ut(wt),ut(ii,r.onLoad),r.h=r.height?v(r.height,"y")-b-it:r.innerHeight&&v(r.innerHeight,"y"),r.w=r.width?v(r.width,"x")-k-nt:r.innerWidth&&v(r.innerWidth,"x"),r.mw=r.w,r.mh=r.h,r.maxWidth&&(r.mw=v(r.maxWidth,"x")-k-nt,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.maxHeight&&(r.mh=v(r.maxHeight,"y")-b-it,r.mh=r.h&&r.h<r.mh?r.h:r.mh),i=r.href,hi=setTimeout(function(){oi.show()},100),r.inline?(u(f).hide().insertBefore(n(i)[0]).one(wt,function(){n(this).replaceWith(a.children())}),o(n(i))):r.iframe?o(" "):r.html?o(r.html):li(i)?(n(s=new Image).addClass(h+"Photo").error(function(){r.title=!1,o(u(f,"Error").text("This image could not be loaded"))}).load(function(){var n;s.onload=null,r.scalePhotos&&(l=function(){s.height-=s.height*n,s.width-=s.width*n},r.mw&&s.width>r.mw&&(n=(s.width-r.mw)/s.width,l()),r.mh&&s.height>r.mh&&(n=(s.height-r.mh)/s.height,l())),r.h&&(s.style.marginTop=Math.max(r.h-s.height,0)/2+"px"),c[1]&&(r.loop||c[y+1])&&(s.style.cursor="pointer",s.onclick=function(){e.next()}),ct&&(s.style.msInterpolationMode="bicubic"),setTimeout(function(){o(s)},1)}),setTimeout(function(){s.src=i},1)):i&&ft.load(i,r.data,function(t,i,r){o(i==="error"?u(f,"Error").text("Request unsuccessful: "+r.statusText):n(this).contents())})},e.next=function(){!st&&c[1]&&(r.loop||c[y+1])&&(y=pt(1),e.load())},e.prev=function(){!st&&c[1]&&(r.loop||y)&&(y=pt(-1),e.load())},e.close=function(){d&&!yt&&(yt=!0,d=!1,ut(vt,r.onCleanup),l.unbind("."+h+" ."+bt),tt.fadeTo(200,0),o.stop().fadeTo(300,0,function(){o.add(tt).css({opacity:1,cursor:"auto"}).hide(),ut(wt),a.remove(),setTimeout(function(){yt=!1,ut(wi,r.onClosed)},1)}))},e.remove=function(){n([]).add(o).add(tt).remove(),o=null,n("."+lt).removeData(g).removeClass(lt).die()},e.element=function(){return n(p)},e.settings=pi})(jQuery,document,this),jQuery(document).ready(function(){InitContentLoader(),AutostartPlayer&&setTimeout(StartPlayer,1e3)}),jQuery.fn.hoverClass=function(n){return this.each(function(){jQuery(this).hover(function(){jQuery(this).addClass(n)},function(){jQuery(this).removeClass(n)})})},typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.8.2011",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(n){function t(t){if(!n.utils.exists(t))return;var r=t.indexOf("://"),i=t.indexOf("?");return r>0&&(i<0||i>r)}n.utils=function(){},n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t},n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null},n.utils.clone=function(){var u,i=n.utils.clone.arguments,r;if(i.length==1)switch(n.utils.typeOf(i[0])){case"object":u={};for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;case"array":u=[];for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;default:return i[0]}return u},n.utils.extension=function(n){if(!n)return"";return n=n.substring(n.lastIndexOf("/")+1,n.length),n=n.split("?")[0],n.lastIndexOf(".")>-1?n.substr(n.lastIndexOf(".")+1,n.length).toLowerCase():void 0},n.utils.html=function(n,t){n.innerHTML=t},n.utils.wrap=function(n,t){n.parentNode&&n.parentNode.replaceChild(t,n),t.appendChild(n)},n.utils.ajax=function(t,i,r){var u;u=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),u.onreadystatechange=function(){if(u.readyState===4)if(u.status===200){if(i){if(!n.utils.exists(u.responseXML))try{if(window.DOMParser){var f=(new DOMParser).parseFromString(u.responseText,"text/xml");f&&(u=n.utils.extend({},u,{responseXML:f}))}else f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(u.responseText),u=n.utils.extend({},u,{responseXML:f})}catch(e){r&&r(t)}i(u)}}else r&&r(t)};try{u.open("GET",t,!0),u.send(null)}catch(f){r&&r(t)}return u},n.utils.load=function(n,t,i){n.onreadystatechange=function(){n.readyState===4&&(n.status===200?t&&t():i&&i())}},n.utils.find=function(n,t){return n.getElementsByTagName(t)},n.utils.append=function(n,t){n.appendChild(t)},n.utils.isIE=function(){return!+"\v1"||typeof window.ActiveXObject!="undefined"},n.utils.userAgentMatch=function(n){var t=navigator.userAgent.toLowerCase();return t.match(n)!==null},n.utils.isIOS=function(){return n.utils.userAgentMatch(/iP(hone|ad|od)/i)},n.utils.isIPad=function(){return n.utils.userAgentMatch(/iPad/i)},n.utils.isIPod=function(){return n.utils.userAgentMatch(/iP(hone|od)/i)},n.utils.isAndroid=function(){return n.utils.userAgentMatch(/android/i)},n.utils.isLegacyAndroid=function(){return n.utils.userAgentMatch(/android 2.[012]/i)},n.utils.isBlackberry=function(){return n.utils.userAgentMatch(/blackberry/i)},n.utils.isMobile=function(){return n.utils.isIOS()},n.utils.getFirstPlaylistItemFromConfig=function(n){var t={},i;return i=n.playlist&&n.playlist.length?n.playlist[0]:n,t.file=i.file,t.levels=i.levels,t.streamer=i.streamer,t.playlistfile=i.playlistfile,t.provider=i.provider,t.provider||(t.file&&(t.file.toLowerCase().indexOf("youtube.com")>-1||t.file.toLowerCase().indexOf("youtu.be")>-1)&&(t.provider="youtube"),t.streamer&&t.streamer.toLowerCase().indexOf("rtmp://")==0&&(t.provider="rtmp"),i.type&&(t.provider=i.type.toLowerCase())),t.provider=="audio"&&(t.provider="sound"),t},n.utils.getOuterHTML=function(n){if(n.outerHTML)return n.outerHTML;try{return(new XMLSerializer).serializeToString(n)}catch(t){return""}},n.utils.setOuterHTML=function(n,t){var r,i,u;n.outerHTML?n.outerHTML=t:(r=document.createElement("div"),r.innerHTML=t,i=document.createRange(),i.selectNodeContents(r),u=i.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))},n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1},n.utils.getPluginName=function(n){return n.lastIndexOf("/")<0||(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")<0||(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")<0||(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")<0||(n=n.substring(0,n.lastIndexOf(".js"))),n},n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")<0?n.lastIndexOf(".swf")<0?n.substring(n.lastIndexOf("-")+1):n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".swf")):n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".js")):""},n.utils.getAbsolutePath=function(i,r){var o,h,u,e,s,f;n.utils.exists(r)||(r=document.location.href);if(!n.utils.exists(i))return undefined;if(t(i))return i;for(o=r.substring(0,r.indexOf("://")+3),h=r.substring(o.length,r.indexOf("/",o.length+1)),i.indexOf("/")===0?u=i.split("/"):(e=r.split("?")[0],e=e.substring(o.length+h.length+1,e.lastIndexOf("/")),u=e.split("/").concat(i.split("/"))),s=[],f=0;f<u.length;f++)if(u[f]&&n.utils.exists(u[f])&&u[f]!=".")u[f]==".."?s.pop():s.push(u[f]);else continue;return o+h+"/"+s.join("/")},n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"},n.utils.getPluginPathType=function(t){var r,u,i;if(typeof t!="string")return;t=t.split("?")[0],r=t.indexOf("://");if(r>0)return n.utils.pluginPathType.ABSOLUTE;return u=t.indexOf("/"),i=n.utils.extension(t),r<0&&u<0&&(!i||!isNaN(i))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE},n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0},n.utils.mapLength=function(n){var t=0,i;for(i in n)t++;return t},n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))},n.utils.css=function(t,i){if(n.utils.exists(t))for(var u in i)try{if(typeof i[u]=="undefined")continue;else if(typeof i[u]=="number"&&!(u=="zIndex"||u=="opacity")){if(isNaN(i[u]))continue;i[u]=u.match(/color/i)?"#"+n.utils.strings.pad(i[u].toString(16),6):Math.ceil(i[u])+"px"}t.style[u]=i[u]}catch(f){}},n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1},n.utils.transform=function(t,i,r,u,f){n.utils.exists(i)||(i=1),n.utils.exists(r)||(r=1),n.utils.exists(u)||(u=0),n.utils.exists(f)||(f=0);if(i==1&&r==1&&u==0&&f==0)t.style.webkitTransform="",t.style.MozTransform="",t.style.OTransform="";else{var e="scale("+i+","+r+") translate("+u+"px,"+f+"px)";t.style.webkitTransform=e,t.style.MozTransform=e,t.style.OTransform=e}},n.utils.stretch=function(t,i,r,u,f,e){var c,l;if(typeof r=="undefined"||typeof u=="undefined"||typeof f=="undefined"||typeof e=="undefined")return;var h=r/f,s=u/e,a=0,v=0,o={};i.parentElement&&(i.parentElement.style.overflow="hidden"),n.utils.transform(i);switch(t.toUpperCase()){case n.utils.stretching.NONE:o.width=f,o.height=e,o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.UNIFORM:h>s?(o.width=f*s,o.height=e*s):(o.width=f*h,o.height=e*h),o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.FILL:h>s?(o.width=f*h,o.height=e*h):(o.width=f*s,o.height=e*s),o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.EXACTFIT:o.width=f,o.height=e,c=Math.round(f/2*(1-1/h)),l=Math.round(e/2*(1-1/s)),n.utils.transform(i,h,s,c,l),o.top=o.left=0}n.utils.css(i,o)},n.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"},n.utils.deepReplaceKeyName=function(t,i,r){var f,u,e;switch(n.utils.typeOf(t)){case"array":for(f=0;f<t.length;f++)t[f]=n.utils.deepReplaceKeyName(t[f],i,r);break;case"object":for(u in t)e=u.replace(new RegExp(i,"g"),r),t[e]=n.utils.deepReplaceKeyName(t[u],i,r),u!=e&&delete t[u]}return t},n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1},n.utils.exists=function(n){switch(typeof n){case"string":return n.length>0;case"object":return n!==null;case"undefined":return!1}return!0},n.utils.empty=function(n){if(typeof n.hasChildNodes=="function")while(n.hasChildNodes())n.removeChild(n.firstChild)},n.utils.parseDimension=function(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n},n.utils.getDimensions=function(t){return t&&t.style?{x:n.utils.parseDimension(t.style.left),y:n.utils.parseDimension(t.style.top),width:n.utils.parseDimension(t.style.width),height:n.utils.parseDimension(t.style.height)}:{}},n.utils.getElementWidth=function(t){return t?t==document.body?n.utils.parentNode(t).clientWidth:t.clientWidth>0?t.clientWidth:t.style?n.utils.parseDimension(t.style.width):null:null},n.utils.getElementHeight=function(t){return t?t==document.body?n.utils.parentNode(t).clientHeight:t.clientHeight>0?t.clientHeight:t.style?n.utils.parseDimension(t.style.height):null:null},n.utils.timeFormat=function(n){return str="00:00",n>0&&(str=Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":",str+=Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60)),str},n.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0},n.utils.parentNode=function(n){return n?n.parentNode?n.parentNode:n.parentElement?n.parentElement:n:docuemnt.body},n.utils.getBoundingClientRect=function(n){return typeof n.getBoundingClientRect=="function"?n.getBoundingClientRect():{left:n.offsetLeft+document.body.scrollLeft,top:n.offsetTop+document.body.scrollTop,width:n.offsetWidth,height:n.offsetHeight}}}(jwplayer),function(n){n.events=function(){},n.events.COMPLETE="COMPLETE",n.events.ERROR="ERROR"}(jwplayer),function(n){n.events.eventdispatcher=function(t){var u=t,i,r;this.resetEventListeners=function(){i={},r=[]},this.resetEventListeners(),this.addEventListener=function(t,r,u){try{n.utils.exists(i[t])||(i[t]=[]),typeof r=="string"&&eval("listener = "+r),i[t].push({listener:r,count:u})}catch(f){n.utils.log("error",f)}return!1},this.removeEventListener=function(t,r){if(!i[t])return;try{for(var u=0;u<i[t].length;u++)if(i[t][u].listener.toString()==r.toString()){i[t].splice(u,1);break}}catch(f){n.utils.log("error",f)}return!1},this.addGlobalListener=function(t,i){try{typeof t=="string"&&eval("listener = "+t),r.push({listener:t,count:i})}catch(u){n.utils.log("error",u)}return!1},this.removeGlobalListener=function(t){if(!r[type])return;try{for(var i=0;i<r.length;i++)if(r[i].listener.toString()==t.toString()){r.splice(i,1);break}}catch(u){n.utils.log("error",u)}return!1},this.sendEvent=function(t,f){var o,e;n.utils.exists(f)||(f={}),u&&n.utils.log(t,f);if(typeof i[t]!="undefined")for(o=0;o<i[t].length;o++){try{i[t][o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][o].listener)}i[t][o]&&(i[t][o].count===1?delete i[t][o]:i[t][o].count>0&&(i[t][o].count=i[t][o].count-1))}for(e=0;e<r.length;e++){try{r[e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[e].listener)}r[e]&&(r[e].count===1?delete r[e]:r[e].count>0&&(r[e].count=r[e].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){},n.utils.animations.transform=function(n,t){n.style.webkitTransform=t,n.style.MozTransform=t,n.style.OTransform=t,n.style.msTransform=t},n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t,n.style.MozTransformOrigin=t,n.style.OTransformOrigin=t,n.style.msTransformOrigin=t},n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))},n.utils.cancelAnimation=function(n){delete t[n.id]},n.utils.fadeTo=function(i,r,u,f,e,o){var c,h,l,s;if(t[i.id]!=o&&n.utils.exists(o))return;if(i.style.opacity==r)return;c=+new Date,o>c&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-c),i.style.display=="none"&&(i.style.display="block"),n.utils.exists(f)||(f=i.style.opacity===""?1:i.style.opacity);if(i.style.opacity==r&&i.style.opacity!==""&&n.utils.exists(o)){r===0&&(i.style.display="none");return}n.utils.exists(o)||(o=c,t[i.id]=o),n.utils.exists(e)||(e=0),h=u>0?(c-o)/(u*1e3):0,h=h>1?1:h,l=r-f,s=f+h*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s;if(e>0){t[i.id]=o+e*1e3,n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}(jwplayer),function(n){n.utils.arrays=function(){},n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1},n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(n){function i(t,i){return n.utils.exists(i)?n.utils.extend(i,e[t]):i=e[t],i}function r(r,u){var e,o,s,f;if(t[r.tagName.toLowerCase()]&&!n.utils.exists(u))return t[r.tagName.toLowerCase()](r);u=i("element",u),e={};for(o in u)o!="length"&&(s=r.getAttribute(o),n.utils.exists(s)&&(e[u[o]]=s));return f=r.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,e;u=i("media",u),o=[],s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(f(s[h]));return e=r(t,u),n.utils.exists(e.file)&&(o[0]={file:e.file}),e.levels=o,e}function f(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var e={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"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)},t.media=u,t.audio=u,t.source=f,t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"},n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r),this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE)},u.onerror=function(){i=n.utils.loaderstatus.ERROR,r.sendEvent(n.events.ERROR)},u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))},document.getElementsByTagName("head")[0].appendChild(u),u.src=t}},this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){var u,r;return n.utils.exists(i)||(i=document),t=n.utils.strings.trim(t),u=t.charAt(0),u=="#"?i.getElementById(t.substr(1)):u=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(r=t.split("."),n.utils.selectors.getElementsByTagAndClass(r[0],r[1])):i.getElementsByTagName(t)},n.utils.selectors.getElementsByTagAndClass=function(t,i,r){var s=[],f,u,o,e;for(n.utils.exists(r)||(r=document),f=r.getElementsByTagName(t),u=0;u<f.length;u++)if(n.utils.exists(f[u].className))for(o=f[u].className.split(" "),e=0;e<o.length;e++)o[e]==i&&s.push(f[u]);return s}}(jwplayer),function(n){n.utils.strings=function(){},n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")},n.utils.strings.pad=function(n,t,i){i||(i="0");while(n.length<t)n=i+n;return n},n.utils.strings.serialize=function(n){return n==null?null:n=="true"?!0:n=="false"?!1:isNaN(Number(n))||n.length>5||n.length==0?n:Number(n)},n.utils.strings.seconds=function(n){n=n.replace(",",".");var i=n.split(":"),t=0;return n.substr(-1)=="s"?t=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?t=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?t=Number(n.substr(0,n.length-1))*3600:i.length>1?(t=Number(i[i.length-1]),t+=Number(i[i.length-2])*60,i.length==3&&(t+=Number(i[i.length-3])*3600)):t=Number(n),t},n.utils.strings.xmlAttribute=function(n,t){for(var i=0;i<n.attributes.length;i++)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""},n.utils.strings.jsonToString=function(t){var u=u||{},f,r,o,e,i;if(u&&u.stringify)return u.stringify(t);f=typeof t;if(f!="object"||t===null)if(f=="string")t='"'+t.replace(/"/g,'\\"')+'"';else return String(t);else{r=[],o=t&&t.constructor==Array;for(e in t){i=t[e];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":n.utils.exists(i)&&(i=n.utils.strings.jsonToString(i))}o?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+e+'":'+String(i))}return o?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function u(n){var t=["true","false","t","f"];if(t.toString().indexOf(n.toLowerCase().replace(" ",""))<0){if(r.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer"}else return"boolean";return"string"}function t(t,r){if(!n.utils.exists(r))return t;switch(r){case"color":return t.length>0?i(t):null;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"boolean":return t.toLowerCase()=="true"?!0:t=="1"?!0:!1}return t}function i(n){switch(n.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var r=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(i,r){return r=n.utils.exists(r)?r:u(i),t(i,r)}}(jwplayer),function(n){n.utils.parsers=function(){},n.utils.parsers.localName=function(n){return n?n.localName?n.localName:n.baseName?n.baseName:"":""},n.utils.parsers.textContent=function(n){return n?n.textContent?n.textContent:n.text?n.text:"":""}}(jwplayer),function(n){n.utils.parsers.jwparser=function(){},n.utils.parsers.jwparser.PREFIX="jwplayer",n.utils.parsers.jwparser.parseEntry=function(t,i){for(var r=0;r<t.childNodes.length;r++)t.childNodes[r].prefix==n.utils.parsers.jwparser.PREFIX&&(i[n.utils.parsers.localName(t.childNodes[r])]=n.utils.strings.serialize(n.utils.parsers.textContent(t.childNodes[r]))),!i.file&&String(i.link).toLowerCase().indexOf("youtube")>-1&&(i.file=i.link);return i},n.utils.parsers.jwparser.getProvider=function(t){if(t.type)return t.type;if(t.file.indexOf("youtube.com/w")>-1||t.file.indexOf("youtube.com/v")>-1||t.file.indexOf("youtu.be/")>-1)return"youtube";if(t.streamer&&t.streamer.indexOf("rtmp")==0)return"rtmp";if(t.streamer&&t.streamer.indexOf("http")==0)return"http";var i=n.utils.strings.extension(t.file);return extensions.hasOwnProperty(i)?extensions[i]:""}}(jwplayer),function(n){n.utils.parsers.mediaparser=function(){},n.utils.parsers.mediaparser.PREFIX="media",n.utils.parsers.mediaparser.parseGroup=function(t,i){for(var f=!1,u,r=0;r<t.childNodes.length;r++)if(t.childNodes[r].prefix==n.utils.parsers.mediaparser.PREFIX){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"content":f||(i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url")),n.utils.strings.xmlAttribute(t.childNodes[r],"duration")&&(i.duration=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"duration"))),n.utils.strings.xmlAttribute(t.childNodes[r],"start")&&(i.start=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"start"))),t.childNodes[r].childNodes&&t.childNodes[r].childNodes.length>0&&(i=n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)),(n.utils.strings.xmlAttribute(t.childNodes[r],"width")||n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate")||n.utils.strings.xmlAttribute(t.childNodes[r],"url"))&&(i.levels||(i.levels=[]),i.levels.push({width:n.utils.strings.xmlAttribute(t.childNodes[r],"width"),bitrate:n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate"),file:n.utils.strings.xmlAttribute(t.childNodes[r],"url")}));break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"keywords":i.tags=n.utils.parsers.textContent(t.childNodes[r]);break;case"thumbnail":i.image=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"credit":i.author=n.utils.parsers.textContent(t.childNodes[r]);break;case"player":u=t.childNodes[r].url,u.indexOf("youtube.com")<0&&u.indexOf("youtu.be")<0||(f=!0,i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));break;case"group":n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)}}return i}}(jwplayer),function(n){function t(t){for(var i={},r=0;r<t.childNodes.length;r++){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"enclosure":i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"pubdate":i.date=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"link":i.link=n.utils.parsers.textContent(t.childNodes[r]);break;case"category":i.tags?i.tags+=n.utils.parsers.textContent(t.childNodes[r]):i.tags=n.utils.parsers.textContent(t.childNodes[r])}}return i=n.utils.parsers.mediaparser.parseGroup(t,i),i=n.utils.parsers.jwparser.parseEntry(t,i),new n.html5.playlistitem(i)}n.utils.parsers.rssparser=function(){},n.utils.parsers.rssparser.parse=function(i){for(var f=[],u,r=0;r<i.childNodes.length;r++)if(n.utils.parsers.localName(i.childNodes[r]).toLowerCase()=="channel")for(u=0;u<i.childNodes[r].childNodes.length;u++)n.utils.parsers.localName(i.childNodes[r].childNodes[u]).toLowerCase()=="item"&&f.push(t(i.childNodes[r].childNodes[u]));return f}}(jwplayer),function(n){var i={},t={};n.plugins=function(){},n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u)},n.plugins.registerPlugin=function(r,u,f){var o=n.utils.getPluginName(r),e;if(i[o])i[o].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(e in t)t[e].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"},n.plugins.plugin=function(t){function o(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var r=n.utils.getPluginName(t),i=n.utils.getPluginVersion(t),u=window.location.href.indexOf("https://")==0?s.replace("http://","https://secure"):s;return u+"/"+n.version.split(".")[0]+"/"+r+"/"+r+(i!==""?"-"+i:"")+".js"}}function c(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},1e3)}function h(){r=n.utils.loaderstatus.ERROR,f.sendEvent(n.events.ERROR)}var s="http://plugins.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f),this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t,r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(o());u.addEventListener(n.events.COMPLETE,c),u.addEventListener(n.events.ERROR,h),u.load()}},this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined),o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t),r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},this.getStatus=function(){return r},this.getPluginName=function(){return n.utils.getPluginName(t)},this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,o());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null},this.getJS=function(){return u},this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0},this.getNewInstance=function(n,t,i){return new u(n,t,i)},this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function s(){u||(u=!0,e=n.utils.loaderstatus.COMPLETE,h.sendEvent(n.events.COMPLETE))}function f(){var i,t;if(!u){i=0;for(plugin in r)t=r[plugin].getStatus(),(t==n.utils.loaderstatus.LOADING||t==n.utils.loaderstatus.NEW)&&i++;i==0&&s()}}var r={},e=n.utils.loaderstatus.NEW,o=!1,u=!1,h=new n.events.eventdispatcher;n.utils.extend(this,h),this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r){o=r[u].getPluginName(),r[u].getFlashPath()&&(s.plugins[r[u].getFlashPath()]=t.plugins[u],s.plugins[r[u].getFlashPath()].pluginmode=r[u].getPluginmode(),s.length++);if(r[u].getJS()){e=document.createElement("div"),e.id=n.id+"_"+o,e.style.position="absolute",e.style.zIndex=f.length+10,f.plugins[o]=r[u].getNewInstance(n,t.plugins[u],e),f.length++;if(typeof f.plugins[o].resize!="undefined"){n.onReady(i(f.plugins[o],e,!0));n.onResize(i(f.plugins[o],e))}}}return n.plugins=f.plugins,s},this.load=function(){e=n.utils.loaderstatus.LOADING,o=!0;for(var u in i)n.utils.exists(u)&&(r[u]=t.addPlugin(u),r[u].addEventListener(n.events.COMPLETE,f),r[u].addEventListener(n.events.ERROR,f));for(u in r)r[u].load();o=!1,f()},this.pluginFailed=function(){s()},this.getStatus=function(){return e}}}(jwplayer),function(n){var t=[];n.api=function(t){function y(n,t){return function(r,u,e,o){if(n.renderingMode=="flash"||n.renderingMode=="html5"){var s;u?(f[r]=u,s="jwplayer('"+n.id+"').callback('"+r+"')"):!u&&f[r]&&delete f[r],i.jwDockSetButton(r,s,e,o)}return t}}function v(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n){i=o[u];if(i)for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u})}}}function l(n,t){return function(i){var f,r;if(n==i.component){f=u[n][t];if(f)for(r=0;r<f.length;r++)typeof f[r]=="function"&&f[r].call(this,i)}}}function a(t,i){var r=n.utils.extend({},i),u,f;t!=n.api.events.JWPLAYER_FULLSCREEN||r.fullscreen?typeof r.data=="object"&&(r=n.utils.extend(r,r.data),delete r.data):(r.fullscreen=r.message=="true"?!0:!1,delete r.message),u=["position","duration","offset"];for(f in u)r[u[f]]&&(r[u[f]]=Math.round(r[u[f]]*1e3)/1e3);return r}this.container=t,this.id=t.id;var r={},o={},u={},p=[],i=undefined,h=!1,e=[],c=n.utils.getOuterHTML(t),s={},f={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(t){var r=this,i={};return t=="dock"?n.utils.extend(i,{setButton:y(r,i),show:function(){return r.callInternal("jwDockShow"),i},hide:function(){return r.callInternal("jwDockHide"),i},onShow:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="controlbar"?n.utils.extend(i,{show:function(){return r.callInternal("jwControlbarShow"),i},hide:function(){return r.callInternal("jwControlbarHide"),i},onShow:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="display"?n.utils.extend(i,{show:function(){return r.callInternal("jwDisplayShow"),i},hide:function(){return r.callInternal("jwDisplayHide"),i},onShow:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):this.plugins[t]},this.callback=function(n){if(f[n])return f[n]()},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 i=this.callInternal("jwGetPlaylist"),t;for(this.renderingMode=="flash"&&n.utils.deepReplaceKeyName(i,"__dot__","."),t=0;t<i.length;t++)n.utils.exists(i[t].index)||(i[t].index=t);return i},this.getPlaylistItem=function(t){return n.utils.exists(t)||(t=this.getCurrentItem()),this.getPlaylist()[t]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(t){return n.utils.exists(t)?this.callInternal("jwSetFullscreen",t):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")),this},this.setMute=function(t){return n.utils.exists(t)?this.callInternal("jwSetMute",t):this.callInternal("jwSetMute",!this.callInternal("jwGetMute")),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(n){return this.callInternal("jwLoad",n),this},this.playlistItem=function(n){return this.callInternal("jwPlaylistItem",n),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(n,t){if(this.renderingMode=="html5")i.jwResize(n,t);else{this.container.width=n,this.container.height=t;var r=document.getElementById(this.id+"_wrapper");r&&(r.style.width=n+"px",r.style.height=t+"px")}return this},this.play=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",t),this},this.pause=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",t),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(n){return this.callInternal("jwSeek",n),this},this.setVolume=function(n){return this.callInternal("jwSetVolume",n),this},this.onBufferChange=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,t)},this.onBufferFull=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)},this.onError=function(t){return this.eventListener(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return this.eventListener(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onPlaylist=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,t)},this.onPlaylistItem=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,t)},this.onReady=function(t){return this.eventListener(n.api.events.API_READY,t)},this.onResize=function(t){return this.eventListener(n.api.events.JWPLAYER_RESIZE,t)},this.onComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBuffer=function(t){return this.stateListener(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return this.stateListener(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return this.stateListener(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return this.stateListener(n.api.events.state.IDLE,t)},this.remove=function(){r={},e=[],n.utils.getOuterHTML(this.container)!=c&&n.api.destroyPlayer(this.id,c)},this.setup=function(t){var r,i;return n.embed?(r=this.id,this.remove(),i=n(r),i.config=t,new n.embed(i)):this},this.registerPlugin=function(t,i,r){n.plugins.registerPlugin(t,i,r)},this.setPlayer=function(n,t){i=n,this.renderingMode=t},this.stateListener=function(t,i){return o[t]||(o[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,v(t))),o[t].push(i),this},this.detachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwDetachMedia")},this.attachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwAttachMedia")},this.componentListener=function(n,t,i){return u[n]||(u[n]={}),u[n][t]||(u[n][t]=[],this.eventListener(t,l(n,t))),u[n][t].push(i),this},this.addInternalListener=function(n,t){n.jwAddEventListener(t,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+t+'", dat); }')},this.eventListener=function(n,t){return r[n]||(r[n]=[],i&&h&&this.addInternalListener(i,n)),r[n].push(t),this},this.dispatchEvent=function(n){var i,t;if(r[n])for(i=a(n,arguments[1]),t=0;t<r[n].length;t++)typeof r[n][t]=="function"&&r[n][t].call(this,i)},this.callInternal=function(t,r){if(h)return typeof i!="undefined"&&typeof i[t]=="function"?n.utils.exists(r)?i[t](r):i[t]():null;e.push({method:t,parameters:r})},this.playerReady=function(t){var f,u;h=!0,i||this.setPlayer(document.getElementById(t.id)),this.container=document.getElementById(this.id);for(f in r)this.addInternalListener(i,f);this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,function(){s={}}),this.eventListener(n.api.events.JWPLAYER_MEDIA_META,function(t){n.utils.extend(s,t.metadata)}),this.dispatchEvent(n.api.events.API_READY);while(e.length>0)u=e.shift(),this.callInternal(u.method,u.parameters)},this.getItemMeta=function(){return s},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this},n.api.selectPlayer=function(t){var i,r;return n.utils.exists(t)||(t=0),t.nodeType?i=t:typeof t=="string"&&(i=document.getElementById(t)),i?(r=n.api.playerById(i.id),r?r:n.api.addPlayer(new n.api(i))):typeof t=="number"?n.getPlayers()[t]:null},n.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"},n.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},n.api.playerById=function(n){for(var i=0;i<t.length;i++)if(t[i].id==n)return t[i];return null},n.api.addPlayer=function(n){for(var i=0;i<t.length;i++)if(t[i]==n)return n;return t.push(n),n},n.api.destroyPlayer=function(i,r){for(var f=-1,u,o,s,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}return f<0||(u=document.getElementById(t[f].id),document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper")),u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u))),t.splice(f,1)),null},n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t?t.playerReady(n):jwplayer.api.selectPlayer(n.id).playerReady(n),_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){function i(){var f,u,r;if(!document.body)return setTimeout(i,15);for(f=t.selectors.getElementsByTagAndClass("video","jwplayer"),u=0;u<f.length;u++)r=f[u],r.id==""&&(r.id="jwplayer_"+Math.round(Math.random()*1e5)),n(r.id).setup({})}var t=n.utils;n.embed=function(i){function o(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function f(){var f,c,l,h,e,y,s,a,v;if(u.getStatus()==t.loaderstatus.COMPLETE){for(f=0;f<r.modes.length;f++)if(r.modes[f].type&&n.embed[r.modes[f].type]){c=r.modes[f].config,l=r;if(c)for(l=t.extend(t.clone(r),c),h=["file","levels","playlist"],e=0;e<h.length;e++){y=h[e];if(t.exists(c[y]))for(s=0;s<h.length;s++)s!=e&&(a=h[s],t.exists(l[a])&&!t.exists(c[a])&&delete l[a])}v=new n.embed[r.modes[f].type](document.getElementById(i.id),r.modes[f],l,u,i);if(v.supportsConfig())return v.embed(),o(i,r.events),i}t.log("No suitable players found"),new n.embed.logo(t.extend({hide:!0},r.components.logo),"none",i.id)}}var s={width:400,height:300,components:{controlbar:{position:"over"}}},e=t.mediaparser.parseMedia(i.container),r=new n.embed.config(t.extend(s,e,i.config),this),u=n.plugins.loadPlugins(i.id,r.plugins);return u.addEventListener(n.events.COMPLETE,f),u.addEventListener(n.events.ERROR,f),u.load(),i},i()}(jwplayer),function(n){function r(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function e(n){var t=!1;return t=n instanceof Array||typeof n=="object"&&!n.position&&!n.size}function f(n){if(typeof n=="string")if(parseInt(n).toString()==n||n.toLowerCase().indexOf("px")>-1)return parseInt(n);return n}function o(t){var f={},u,r,i;switch(n.utils.typeOf(t.plugins)){case"object":for(u in t.plugins)f[n.utils.getPluginName(u)]=u;break;case"string":for(r=t.plugins.split(","),i=0;i<r.length;i++)f[n.utils.getPluginName(r[i])]=r[i]}return f}function t(t,i,r,u){var f,e;n.utils.typeOf(t[i])!="object"&&(t[i]={}),f=t[i][r],n.utils.typeOf(f)!="object"&&(t[i][r]=f={}),u&&(i=="plugins"?(e=n.utils.getPluginName(r),f[u]=t[e+"."+u],delete t[e+"."+u]):(f[u]=t[r+"."+u],delete t[r+"."+u]))}var u={players:"modes",autoplay:"autostart"},i=["playlist","dock","controlbar","logo","display"];n.embed.deserialize=function(r){var e=o(r),s,u;for(s in e)t(r,"plugins",e[s]);for(u in r)if(u.indexOf(".")>-1){var h=u.split("."),f=h[0],u=h[1];n.utils.isInArray(i,f)?t(r,"components",f,u):e[f]&&t(r,"plugins",e[f],u)}return r},n.embed.config=function(t){var s=n.utils.extend({},t),w,v,a,p,y,h,l,c;e(s.playlist)&&(w=s.playlist,delete s.playlist),s=n.embed.deserialize(s),s.height=f(s.height),s.width=f(s.width);if(typeof s.plugins=="string")for(v=s.plugins.split(","),typeof s.plugins!="object"&&(s.plugins={}),a=0;a<v.length;a++)p=n.utils.getPluginName(v[a]),typeof s[p]=="object"?(s.plugins[v[a]]=s[p],delete s[p]):s.plugins[v[a]]={};for(y=0;y<i.length;y++)h=i[y],n.utils.exists(s[h])&&(typeof s[h]!="object"?(s.components[h]||(s.components[h]={}),h=="logo"?s.components[h].file=s[h]:s.components[h].position=s[h],delete s[h]):(s.components[h]||(s.components[h]={}),n.utils.extend(s.components[h],s[h]),delete s[h])),typeof s[h+"size"]!="undefined"&&(s.components[h]||(s.components[h]={}),s.components[h].size=s[h+"size"],delete s[h+"size"]);typeof s.icons!="undefined"&&(s.components.display||(s.components.display={}),s.components.display.icons=s.icons,delete s.icons);for(l in u)s[l]&&(s[u[l]]||(s[u[l]]=s[l]),delete s[l]);return s.flashplayer&&!s.modes?(c=r(),c[0].src=s.flashplayer,delete s.flashplayer):s.modes?(typeof s.modes=="string"?(c=r(),c[0].src=s.modes):s.modes instanceof Array?c=s.modes:typeof s.modes=="object"&&s.modes.type&&(c=[s.modes]),delete s.modes):c=r(),s.modes=c,w&&(s.playlist=w),s}}(jwplayer),function(n){n.embed.download=function(t,i,r,u,f){function e(t,i,r){var f,u;if(r)return!1;f=["image","sound","youtube","http"];if(i&&f.toString().indexOf(i)>-1)return!0;if(!i||i&&i=="video"){u=n.utils.extension(t);if(u&&n.utils.extensionmap[u])return!0}return!1}this.embed=function(){function y(){_imageWidth=i.display_image.naturalWidth,_imageHeight=i.display_image.naturalHeight,v()}function v(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,s,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},s=r.width?r.width:480,e,o,l,c,u,a,h,p;typeof s!="number"&&(s=parseInt(s,10)),e=r.height?r.height:320,typeof e!="number"&&(e=parseInt(e,10)),u={},r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,l=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,l=r.image,u.levels=r.levels),u.file?o=u.file:u.levels&&u.levels.length&&(o=u.levels[0].file),c=o?"pointer":"auto",a={display:{style:{cursor:c,width:s,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:o?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:c,position:"absolute",display:o?"block":"none",top:(e-50)/2,left:(s-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:s,height:e,display:l?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},h=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f},i.display=h("a","display",t.id),o&&i.display.setAttribute("href",n.utils.getAbsolutePath(o)),i.display_image=h("img","display_image"),i.display_image.setAttribute("alt","Click to download..."),l&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(l)),!0&&(i.display_icon=h("div","display_icon"),i.display_iconBackground=h("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground)),_css=n.utils.css,_hide=function(n){_css(n,{display:"none"})},i.display_image.onerror=function(){_hide(i.display_image)},i.display_image.onload=y,t.parentNode.replaceChild(i.display,t),p=r.plugins&&r.plugins.logo?r.plugins.logo:{},i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id)),f.container=document.getElementById(f.id),f.setPlayer(i.display,"download")},this.supportsConfig=function(){var t,i;if(r){t=n.utils.getFirstPlaylistItemFromConfig(r);if(typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return e(t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&e(t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0}}}(jwplayer),function(n){n.embed.flash=function(t,i,r,u,f){function e(n,t,i){var r=document.createElement("param");r.setAttribute("name",t),r.setAttribute("value",i),n.appendChild(r)}function h(t,i,r){return function(){var e,o;r&&document.getElementById(f.id+"_wrapper").appendChild(i),e=document.getElementById(f.id).getPluginConfig("display"),t.resize(e.width,e.height),o={left:e.x,top:e.y},n.utils.css(i,o)}}function s(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f){r=f[i];if(typeof r=="string")n[i]||(n[i]=r);else for(u in r)n[i+"."+u]||(n[i+"."+u]=r[u])}delete n[t]}}function c(t){var r,e,i,o,u,f;if(!t)return{};r={},e=[];for(i in t){o=n.utils.getPluginName(i),u=t[i],e.push(i);for(f in u)r[o+"."+f]=u[f]}return r.plugins=e.join(","),r}function o(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",i;for(i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var d,k,p,b,g,w,v,a;r.id=f.id;var y,l=n.utils.extend({},r),tt=l.width,nt=l.height;for(t.id+"_wrapper"==t.parentNode.id?y=document.getElementById(t.id+"_wrapper"):(y=document.createElement("div"),y.id=t.id+"_wrapper",n.utils.wrap(t,y),n.utils.css(y,{position:"relative",width:tt,height:nt})),d=u.setupPlugins(f,l,h),d.length>0?n.utils.extend(l,c(d.plugins)):delete l.plugins,k=["height","width","modes","events"],p=0;p<k.length;p++)delete l[k[p]];b="opaque",l.wmode&&(b=l.wmode),s(l,"components"),s(l,"providers"),typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]),g="#000000",n.utils.isIE()?(v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+g+'" width="100%" height="100%" id="'+t.id+'" name="'+t.id+'" tabindex=0"">',v+='<param name="movie" value="'+i.src+'">',v+='<param name="allowfullscreen" value="true">',v+='<param name="allowscriptaccess" value="always">',v+='<param name="seamlesstabbing" value="true">',v+='<param name="wmode" value="'+b+'">',v+='<param name="flashvars" value="'+o(l)+'">',v+="</object>",n.utils.setOuterHTML(t,v),w=document.getElementById(t.id)):(a=document.createElement("object"),a.setAttribute("type","application/x-shockwave-flash"),a.setAttribute("data",i.src),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("bgcolor","#000000"),a.setAttribute("id",t.id),a.setAttribute("name",t.id),a.setAttribute("tabindex",0),e(a,"allowfullscreen","true"),e(a,"allowscriptaccess","always"),e(a,"seamlesstabbing","true"),e(a,"wmode",b),e(a,"flashvars",o(l)),t.parentNode.replaceChild(a,t),w=a),f.container=w,f.setPlayer(w,"flash")},this.supportsConfig=function(){var t,i;if(n.utils.hasFlash())if(r){t=n.utils.getFirstPlaylistItemFromConfig(r);if(typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return flashCanPlay(t.file,t.provider);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&flashCanPlay(t.levels[i].file,t.provider))return!0}else return!0;return!1},flashCanPlay=function(t,i){var u=["video","http","sound","image"],r;if(i&&u.toString().indexOf(i<0))return!0;return r=n.utils.extension(t),r?n.utils.exists(n.utils.extensionmap[r])&&!n.utils.exists(n.utils.extensionmap[r].flash)?!1:!0:!0}}}(jwplayer),function(n){n.embed.html5=function(t,i,r,u,f){function e(n,i,r){return function(){var f=document.getElementById(t.id+"_displayarea");r&&f.appendChild(i),n.resize(f.clientWidth,f.clientHeight),i.left=f.style.left,i.top=f.style.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels),i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml")),h=new(n.html5(t).setup)(i),f.container=document.getElementById(f.id),f.setPlayer(h,"html5")}else return null},this.supportsConfig=function(){var t,i;if(!!n.vid.canPlayType)if(r){t=n.utils.getFirstPlaylistItemFromConfig(r);if(typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return html5CanPlay(n.vid,t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&html5CanPlay(n.vid,t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0;return!1},html5CanPlay=function(t,i,r,u){if(u)return!1;if(r&&r=="youtube")return!0;if(r&&r!="video"&&r!="http"&&r!="sound")return!1;var f=n.utils.extension(i);return!n.utils.exists(f)||!n.utils.exists(n.utils.extensionmap[f])?!0:n.utils.exists(n.utils.extensionmap[f].html5)?n.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(t,n.utils.extensionmap[f].html5):!1},browserCanPlay=function(n,t){return t?n.canPlayType(t)?!0:t=="audio/mp3"&&navigator.userAgent.match(/safari/i)?n.canPlayType("audio/mpeg"):!1:!0}}}(jwplayer),function(n){n.embed.logo=function(t,i,r){function a(){l(),v(),s()}function l(){if(e.prefix){var t=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(t)<0&&(e.prefix+=t+"/")}u=n.utils.extend({},e)}function y(){var t={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},n,i;t.display=u.hide?"none":"block",n=u.position.toLowerCase().split("-");for(i in n)t[n[i]]=u.margin;return t}function v(){f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,y()),o()};if(!u.file)return;f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file}function s(){u.link?(f.onmouseover=c,f.onmouseout=o,f.onclick=h):this.mouseEnabled=!1}function h(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation()),u.link&&window.open(u.link,"_blank");return}function o(){u.link&&(f.style.opacity=u.out);return}function c(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:5,hide:!1,position:"bottom-left"},f,u;return _css=n.utils.css,a(),u.file?f:void 0}}(jwplayer),function(n){n.html5=function(t){var i=t;return this.setup=function(t){return n.utils.extend(this,new n.html5.api(i,t)),this},this}}(jwplayer),function(n){var t=n.utils,i=t.css;n.html5.view=function(r,u,f){function lt(){function n(){return h.skin.getComponentSettings("display")&&h.skin.getComponentSettings("display").backgroundcolor?h.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}s=document.createElement("div"),s.id=c.id,s.className=c.className,_videowrapper=document.createElement("div"),_videowrapper.id=s.id+"_video_wrapper",c.id=s.id+"_video",i(s,{position:"relative",height:e.height,width:e.width,padding:0,backgroundColor:n(),zIndex:0}),i(c,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"}),i(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0}),t.wrap(c,s),t.wrap(c,_videowrapper),o=document.createElement("div"),o.id=s.id+"_displayarea",s.appendChild(o)}function ht(){for(var n,i=0;i<e.plugins.order.length;i++)n=e.plugins.order[i],t.exists(e.plugins.object[n].getDisplayElement)&&(e.plugins.object[n].height=t.parseDimension(e.plugins.object[n].getDisplayElement().style.height),e.plugins.object[n].width=t.parseDimension(e.plugins.object[n].getDisplayElement().style.width),e.plugins.config[n].currentPosition=e.plugins.config[n].position);g()}function st(t){i(o,{display:e.getMedia()&&e.getMedia().hasChrome()&&t.newstate!=n.api.events.state.IDLE?"none":"block"})}function g(){var u=e.getMedia()?e.getMedia().getDisplayElement():null,r,i;if(t.exists(u))for(l!=u&&(l&&l.parentNode&&l.parentNode.replaceChild(u,l),l=u),r=0;r<e.plugins.order.length;r++)i=e.plugins.order[r],t.exists(e.plugins.object[i].getDisplayElement)&&(e.plugins.config[i].currentPosition=e.plugins.config[i].position);y(e.width,e.height)}function ot(t){switch(t.keyCode){case 27:h.jwGetFullscreen()&&h.jwSetFullscreen(!1);break;case 32:h.jwGetState()!=n.api.events.state.IDLE&&h.jwGetState()!=n.api.events.state.PAUSED?h.jwPause():h.jwPlay()}}function y(n,r){var f,u,h,c;if(s.style.display=="none")return;f=[].concat(e.plugins.order),f.reverse(),d=f.length+2;if(p())try{e.fullscreen&&!e.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(e.fullscreen=!1)}catch(l){}e.fullscreen?p()||b(it,f,!0):(a=n,v=r,a=typeof n=="string"&&n.indexOf("%")>0?t.getElementWidth(t.parentNode(s))*parseInt(n.replace("%"),"")/100:n,v=typeof r=="string"&&r.indexOf("%")>0?t.getElementHeight(t.parentNode(s))*parseInt(r.replace("%"),"")/100:r,i(o,{top:0,bottom:0,left:0,right:0,width:a,height:v,position:"absolute"}),i(s,{height:v,width:a}),u=b(ct,f),u.length>0&&(d+=u.length,h=u.indexOf("playlist"),c=u.indexOf("controlbar"),h<0||c<0||(u[h]=u.splice(c,1,u[h])[0]),b(et,u,!0)),nt=t.getElementWidth(o),tt=t.getElementHeight(o)),k()}function b(r,u,f){for(var a=[],o,s,l,c,h=0;h<u.length;h++)o=u[h],t.exists(e.plugins.object[o].getDisplayElement)&&(e.plugins.config[o].currentPosition!=n.html5.view.positions.NONE?(s=r(o,d--),s?(l=s.width,c=s.height,f&&(delete s.width,delete s.height),i(e.plugins.object[o].getDisplayElement(),s),e.plugins.object[o].resize(l,c)):a.push(o)):i(e.plugins.object[o].getDisplayElement(),{display:"none"}));return a}function ct(n,i){if(t.exists(e.plugins.object[n].getDisplayElement))if(e.plugins.config[n].position&&ft(e.plugins.config[n].position)){t.exists(e.plugins.object[n].getDisplayElement().parentNode)||s.appendChild(e.plugins.object[n].getDisplayElement());var r=rt(n);return r.zIndex=i,r}return!1}function et(n,i){return t.exists(e.plugins.object[n].getDisplayElement().parentNode)||o.appendChild(e.plugins.object[n].getDisplayElement()),{position:"absolute",width:t.getElementWidth(o)-t.parseDimension(o.style.left)-t.parseDimension(o.style.right),height:t.getElementHeight(o)-t.parseDimension(o.style.top)-t.parseDimension(o.style.bottom),zIndex:i}}function it(n,t){return{position:"fixed",width:e.width,height:e.height,zIndex:t}}function k(){var r,u,f;if(!t.exists(e.getMedia()))return;o.style.position="absolute",r=e.getMedia().getDisplayElement(),r&&r.tagName.toLowerCase()=="video"?(r.style.position="absolute",r.parentNode&&(r.parentNode.style.left=o.style.left,r.parentNode.style.top=o.style.top),e.fullscreen&&h.jwGetStretching()==n.utils.stretching.EXACTFIT&&!t.isMobile()?(u=document.createElement("div"),t.stretch(n.utils.stretching.UNIFORM,u,t.getElementWidth(o),t.getElementHeight(o),nt,tt),t.stretch(n.utils.stretching.EXACTFIT,r,t.parseDimension(u.style.width),t.parseDimension(u.style.height),r.videoWidth?r.videoWidth:400,r.videoHeight?r.videoHeight:300),i(r,{left:u.style.left,top:u.style.top})):t.stretch(h.jwGetStretching(),r,t.getElementWidth(o),t.getElementHeight(o),r.videoWidth?r.videoWidth:400,r.videoHeight?r.videoHeight:300)):(f=e.plugins.object.display.getDisplayElement(),f?e.getMedia().resize(t.parseDimension(f.style.width),t.parseDimension(f.style.height)):e.getMedia().resize(t.parseDimension(o.style.width),t.parseDimension(o.style.height)))}function rt(i){var r={position:"absolute",margin:0,padding:0,top:null},u=e.plugins.config[i].currentPosition.toLowerCase();switch(u.toUpperCase()){case n.html5.view.positions.TOP:r.top=t.parseDimension(o.style.top),r.left=t.parseDimension(o.style.left),r.width=t.getElementWidth(o)-t.parseDimension(o.style.left)-t.parseDimension(o.style.right),r.height=e.plugins.object[i].height,o.style[u]=t.parseDimension(o.style[u])+e.plugins.object[i].height+"px",o.style.height=t.getElementHeight(o)-r.height+"px";break;case n.html5.view.positions.RIGHT:r.top=t.parseDimension(o.style.top),r.right=t.parseDimension(o.style.right),r.width=e.plugins.object[i].width,r.height=t.getElementHeight(o)-t.parseDimension(o.style.top)-t.parseDimension(o.style.bottom),o.style.width=t.getElementWidth(o)-r.width+"px";break;case n.html5.view.positions.BOTTOM:r.bottom=t.parseDimension(o.style.bottom),r.left=t.parseDimension(o.style.left),r.width=t.getElementWidth(o)-t.parseDimension(o.style.left)-t.parseDimension(o.style.right),r.height=e.plugins.object[i].height,o.style.height=t.getElementHeight(o)-r.height+"px";break;case n.html5.view.positions.LEFT:r.top=t.parseDimension(o.style.top),r.left=t.parseDimension(o.style.left),r.width=e.plugins.object[i].width,r.height=t.getElementHeight(o)-t.parseDimension(o.style.top)-t.parseDimension(o.style.bottom),o.style[u]=t.parseDimension(o.style[u])+e.plugins.object[i].width+"px",o.style.width=t.getElementWidth(o)-r.width+"px"}return r}function ft(t){return[n.html5.view.positions.TOP,n.html5.view.positions.RIGHT,n.html5.view.positions.BOTTOM,n.html5.view.positions.LEFT].toString().indexOf(t.toUpperCase())>-1}function p(){return h.jwGetState()!=n.api.events.state.IDLE&&!w&&e.getMedia()&&e.getMedia().getDisplayElement()&&e.getMedia().getDisplayElement().webkitSupportsFullscreen&&t.useNativeFullscreen()?!0:!1}var h=r,c=u,e=f,s,a,v,o,d,ut,l,w=!1,nt,tt;this.setup=function(){e&&e.getMedia()&&(c=e.getMedia().getDisplayElement()),lt(),ht(),h.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,st),h.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,g),h.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){k()});var i;t.exists(window.onresize)&&(i=window.onresize),window.onresize=function(n){if(t.exists(i))try{i(n)}catch(u){}if(h.jwGetFullscreen()){if(!p()){var r=t.getBoundingClientRect(document.body);e.width=Math.abs(r.left)+Math.abs(r.right),e.height=window.innerHeight,y(e.width,e.height)}}else y(e.width,e.height)}},this.resize=y,this.fullscreen=function(n){var r,f,u;try{r=e.getMedia().getDisplayElement()}catch(c){}if(p()&&r&&r.webkitSupportsFullscreen){if(n&&!r.webkitDisplayingFullscreen)try{t.transform(r),r.webkitEnterFullscreen()}catch(h){}else if(!n){k();if(r.webkitDisplayingFullscreen)try{r.webkitExitFullscreen()}catch(h){}}w=!1}else n?(document.onkeydown=ot,clearInterval(ut),f=t.getBoundingClientRect(document.body),e.width=Math.abs(f.left)+Math.abs(f.right),e.height=window.innerHeight,u={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},i(s,u),u.zIndex=1,e.getMedia()&&e.getMedia().getDisplayElement()&&i(e.getMedia().getDisplayElement(),u),u.zIndex=2,i(o,u),w=!0):(document.onkeydown="",e.width=a,e.height=v,i(s,{position:"relative",height:e.height,width:e.width,zIndex:0}),w=!1),y(e.width,e.height)}},n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.controlbar=function(i,r){function c(){return k||(k=u.skin.getSkinElement("controlbar","background"),k||(k={width:0,height:0,src:null})),k}function bi(){var i,n,t;ri=0,si=0,fi=0,p||(i={height:c().height,backgroundColor:e.backgroundcolor},o=document.createElement("div"),o.id=u.id+"_jwplayer_controlbar",_css(o,i)),n=u.skin.getSkinElement("controlbar","capLeft"),t=u.skin.getSkinElement("controlbar","capRight"),n&&s("capLeft","left",!1,o),y("background",o,{position:"absolute",height:c().height,left:n?n.width:0,zIndex:0},"img"),c().src&&(f.background.src=c().src),y("elements",o,{position:"relative",height:c().height,zIndex:1}),t&&s("capRight","right",!1,o)}function ii(){var t=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],i,n;for(i in t)n=t[i],typeof f[n]!="undefined"&&(l[n]=_utils.getBoundingClientRect(f[n]))}function kt(t){if(v)return;clearTimeout(ot);if(e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())switch(u.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:o&&o.style.opacity<1&&(!e.idlehide||_utils.exists(t))&&(it=!1,setTimeout(function(){it||rt()},100)),e.idlehide&&(ot=setTimeout(function(){ei()},2e3));break;default:it=!0,t&&rt(),ot=setTimeout(function(){ei()},2e3)}else rt()}function ei(){v||(ft(),o.style.opacity==1&&(_utils.cancelAnimation(o),_utils.fadeTo(o,0,.1,1,0)))}function rt(){v||(nt(),o.style.opacity==0&&(_utils.cancelAnimation(o),_utils.fadeTo(o,1,.1,0,0)))}function oi(n){return function(){ht&&st!=n&&(st=n,ni.sendEvent(n,{component:"controlbar",boundingRect:yi()}))}}function yi(){return e.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?_utils.getDimensions(o):{x:0,y:0,width:0,height:0}}function y(n,t,i,r){var u;return p?u=document.getElementById(o.id+"_"+n):(r||(r="div"),u=document.createElement(r),f[n]=u,u.id=o.id+"_"+n,t.appendChild(u)),_utils.exists(i)&&_css(u,i),u}function pi(){if(u.jwGetHeight()<=40){e.layout=_utils.clone(e.layout);for(var n=0;n<e.layout.left.elements.length;n++)e.layout.left.elements[n].name=="fullscreen"&&e.layout.left.elements.splice(n,1);for(n=0;n<e.layout.right.elements.length;n++)e.layout.right.elements[n].name=="fullscreen"&&e.layout.right.elements.splice(n,1);lt()}ut(e.layout.left),ut(e.layout.center),ut(e.layout.right)}function ut(n,t){var u=n.position=="right"?"right":"left",r=_utils.extend([],n.elements),n,i;for(_utils.exists(t)&&r.reverse(),n=y(n.position+"Group",f.elements,{float:"left",styleFloat:"left",cssFloat:"left",height:"100%"}),i=0;i<r.length;i++)vi(r[i],u,n)}function ai(){return fi++}function vi(n,t,i){var p,o,h,v,l,r,e;i||(i=f.elements);if(n.type=="divider"){s("divider"+ai(),t,!0,i,undefined,n.width,n.element);return}switch(n.name){case"play":s("playButton",t,!1,i),s("pauseButton",t,!0,i),a("playButton","jwPlay"),a("pauseButton","jwPause");break;case"prev":s("prevButton",t,!0,i),a("prevButton","jwPlaylistPrev");break;case"stop":s("stopButton",t,!0,i),a("stopButton","jwStop");break;case"next":s("nextButton",t,!0,i),a("nextButton","jwPlaylistNext");break;case"elapsed":s("elapsedText",t,!0,i);break;case"time":o=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapLeft"))?u.skin.getSkinElement("controlbar","timeSliderCapLeft").width:0,h=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapRight"))?u.skin.getSkinElement("controlbar","timeSliderCapRight").width:0,p=t=="left"?o:h,l={height:c().height,position:"relative",float:"left",styleFloat:"left",cssFloat:"left"},r=y("timeSlider",i,l),s("timeSliderCapLeft",t,!0,r,"relative"),s("timeSliderRail",t,!1,r,"relative"),s("timeSliderBuffer",t,!1,r,"absolute"),s("timeSliderProgress",t,!1,r,"absolute"),s("timeSliderThumb",t,!1,r,"absolute"),s("timeSliderCapRight",t,!0,r,"relative"),bt("time");break;case"fullscreen":s("fullscreenButton",t,!1,i),s("normalscreenButton",t,!0,i),a("fullscreenButton","jwSetFullscreen",!0),a("normalscreenButton","jwSetFullscreen",!1);break;case"volume":o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0,h=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapRight"))?u.skin.getSkinElement("controlbar","volumeSliderCapRight").width:0,p=t=="left"?o:h,v=u.skin.getSkinElement("controlbar","volumeSliderRail").width+o+h,l={height:c().height,position:"relative",width:v,float:"left",styleFloat:"left",cssFloat:"left"},e=y("volumeSlider",i,l),s("volumeSliderCapLeft",t,!1,e,"relative"),s("volumeSliderRail",t,!1,e,"relative"),s("volumeSliderProgress",t,!1,e,"absolute"),s("volumeSliderThumb",t,!1,e,"absolute"),s("volumeSliderCapRight",t,!1,e,"relative"),bt("volume");break;case"mute":s("muteButton",t,!1,i),s("unmuteButton",t,!0,i),a("muteButton","jwSetMute",!0),a("unmuteButton","jwSetMute",!1);break;case"duration":s("durationText",t,!0,i)}}function s(n,t,i,r,o,s,h){var l,a,w,v;(_utils.exists(u.skin.getSkinElement("controlbar",n))||n.indexOf("Text")>0||n.indexOf("divider")===0)&&(l={height:"100%",position:o?o:"relative",display:"block",float:"left",styleFloat:"left",cssFloat:"left"},(n.indexOf("next")===0||n.indexOf("prev")===0)&&(u.jwGetPlaylist().length<2||e.hideplaylistcontrols)&&(i=!1,l.display="none"),n.indexOf("Text")>0?(n.innerhtml="00:00",l.font=e.fontsize+"px/"+(c().height+1)+"px "+e.font,l.color=e.fontcolor,l.textAlign="center",l.fontWeight=e.fontweight,l.fontStyle=e.fontstyle,l.cursor="default",a=14+3*e.fontsize):n.indexOf("divider")===0?s?isNaN(parseInt(s))||(a=parseInt(s)):h?(w=u.skin.getSkinElement("controlbar",h),w&&(l.background="url("+w.src+") repeat-x center left",a=w.width)):(l.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",a=u.skin.getSkinElement("controlbar","divider").width):(l.background="url("+u.skin.getSkinElement("controlbar",n).src+") repeat-x center left",a=u.skin.getSkinElement("controlbar",n).width),t=="left"?i&&(ri+=a):t=="right"&&i&&(si+=a),_utils.typeOf(r)=="undefined"&&(r=f.elements),l.width=a,p?_css(f[n],l):(v=y(n,r,l),_utils.exists(u.skin.getSkinElement("controlbar",n+"Over"))&&(v.onmouseover=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n+"Over").src,")"].join("")},v.onmouseout=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n).src,")"].join("")}),n.indexOf("divider")==0&&v.setAttribute("class","divider")))}function wi(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,di),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,gi),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,g),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,yt),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,w),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,vt),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,wt),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,li)}function di(){e.hideplaylistcontrols||(u.jwGetPlaylist().length>1?(_show(f.nextButton),_show(f.prevButton)):(_hide(f.nextButton),_hide(f.prevButton)),at(),pt())}function gi(n){h=u.jwGetPlaylist()[n.index].duration,w({id:u.id,duration:h,position:0}),g({id:u.id,bufferProgress:0})}function pt(){w({id:u.id,duration:u.jwGetDuration(),position:0}),g({id:u.id,bufferProgress:0}),vt({id:u.id,mute:u.jwGetMute()}),yt({id:u.id,newstate:n.api.events.state.IDLE}),wt({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(p)return;if(_utils.exists(u.skin.getSkinElement("controlbar",n))){var r=f[n];_utils.exists(r)&&(_css(r,{cursor:"pointer"}),r.onmouseup=t=="fullscreen"?function(n){n.stopPropagation(),u.jwSetFullscreen(!u.jwGetFullscreen())}:function(n){n.stopPropagation(),_utils.exists(i)?u[t](i):u[t]()})}}function bt(n){if(p)return;var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"}),_css(t,{cursor:"pointer"}),t.onmousedown=function(){b=n},t.onmouseup=function(n){n.stopPropagation(),ki(n.pageX)},t.onmousemove=function(t){if(b=="time"){et=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f[b+"SliderThumb"],{left:i})}}}function ki(t){var f,i,r;et=!1,b=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*h,i<0?i=0:i>h&&(i=h-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):b=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<0?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r)),b="none"}function g(n){_utils.exists(n.bufferPercent)&&(tt=n.bufferPercent);if(l.timeSliderRail){var i=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),t=l.timeSliderRail.width,r=isNaN(Math.round(t*tt/100))?0:Math.round(t*tt/100);_css(f.timeSliderBuffer,{width:r,left:i?i.width:0})}}function vt(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function yt(t){t.newstate==n.api.events.state.BUFFERING||t.newstate==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton)),kt(),t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),w({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function li(n){g({bufferPercent:0}),w(_utils.extend(n,{position:0,duration:h}))}function w(n){var r,i;_utils.exists(n.position)&&(d=n.position),_utils.exists(n.duration)&&(h=n.duration),r=d/h,i=l.timeSliderRail;if(i){var e=isNaN(Math.round(i.width*r))?0:Math.round(i.width*r),t=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),o=e+(t?t.width:0);f.timeSliderProgress&&(_css(f.timeSliderProgress,{width:e,left:t?t.width:0}),et||f.timeSliderThumb&&(f.timeSliderThumb.style.left=o+"px"))}f.durationText&&(f.durationText.innerHTML=_utils.timeFormat(h)),f.elapsedText&&(f.elapsedText.innerHTML=_utils.timeFormat(d))}function lt(){for(var e=f.elements.childNodes,u,r,n,t,i=0;i<e.length;i++){n=e[i].childNodes;for(t in n){if(isNaN(parseInt(t,10)))continue;n[t].id.indexOf(o.id+"_divider")===0&&r&&r.id.indexOf(o.id+"_divider")===0&&n[t].style.backgroundImage==r.style.backgroundImage?n[t].style.display="none":n[t].id.indexOf(o.id+"_divider")===0&&u&&u.style.display!="none"&&(n[t].style.display="block"),n[t].style.display!="none"&&(r=n[t]),u=n[t]}}}function ci(){u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton)),u.jwGetState()==n.api.events.state.BUFFERING||u.jwGetState()==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton)),u.jwGetMute()==!0?(_hide(f.muteButton),_show(f.unmuteButton)):(_show(f.muteButton),_hide(f.unmuteButton))}function at(){var t,i,h,s;lt(),ci(),t={width:ui},i={float:"left",styleFloat:"left",cssFloat:"left"},(e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())&&(t.left=e.margin,t.width-=2*e.margin,t.top=dt-c().height-e.margin,t.height=c().height),h=u.skin.getSkinElement("controlbar","capLeft"),s=u.skin.getSkinElement("controlbar","capRight"),i.width=t.width-(h?h.width:0)-(s?s.width:0);var y=_utils.getBoundingClientRect(f.leftGroup).width,p=_utils.getBoundingClientRect(f.rightGroup).width,a=i.width-y-p,r=a,l=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),v=u.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(l)&&(r-=l.width),_utils.exists(v)&&(r-=v.width),f.timeSlider.style.width=a+"px",f.timeSliderRail.style.width=r+"px",_css(o,t),_css(f.elements,i),_css(f.background,i),ii(),t}function wt(n){var t;if(_utils.exists(f.volumeSliderRail)){var e=isNaN(n.volume/100)?1:n.volume/100,i=_utils.parseDimension(f.volumeSliderRail.style.width),r=isNaN(Math.round(i*e))?0:Math.round(i*e),s=_utils.parseDimension(f.volumeSliderRail.style.right),o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(f.volumeSliderProgress,{width:r,left:o}),f.volumeSliderThumb&&(t=r-Math.round(_utils.parseDimension(f.volumeSliderThumb.style.width)/2),t=Math.min(Math.max(t,0),i-_utils.parseDimension(f.volumeSliderThumb.style.width)),_css(f.volumeSliderThumb,{left:t})),_utils.exists(f.volumeSliderCapLeft)&&_css(f.volumeSliderCapLeft,{left:0})}}function ct(){gt=document.getElementById(u.id),gt.addEventListener("mousemove",kt)}function hi(){bi(),pi(),ii(),p=!0,wi(),e.idlehide=e.idlehide.toString().toLowerCase()=="true",e.position==n.html5.view.positions.OVER&&e.idlehide?(o.style.opacity=0,ht=!0):(o.style.opacity=1,setTimeout(function(){ht=!0,nt()},1)),ct(),pt()}var u,e,it,nt,ft;window.controlbar=this,u=i,e=_utils.extend({},t,u.skin.getComponentSettings("controlbar"),r);if(e.position==n.html5.view.positions.NONE||typeof n.html5.view.positions[e.position]=="undefined")return;_utils.mapLength(u.skin.getComponentLayout("controlbar"))>0&&(e.layout=u.skin.getComponentLayout("controlbar"));var o,fi,ri,si,b="none",et,d,h,tt,ui,dt,f={},p=!1,l={},k,v=!1,ot,st,ht=!1,ti=!1,gt,ni=new n.html5.eventdispatcher;return _utils.extend(this,ni),this.getDisplayElement=function(){return o},this.resize=function(n,t){ct(),_utils.cancelAnimation(o),ui=n,dt=t,ti!=u.jwGetFullscreen()&&(ti=u.jwGetFullscreen(),st=undefined);var i=at();return w({id:u.id,duration:h,position:d}),g({id:u.id,bufferPercent:tt}),i},this.show=function(){v&&(v=!1,_show(o),nt())},this.hide=function(){v||(v=!0,_hide(o),ft())},nt=oi(n.api.events.JWPLAYER_COMPONENT_SHOW),ft=oi(n.api.events.JWPLAYER_COMPONENT_HIDE),hi(),this}}(jwplayer),function(n){var r=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"],t=n.utils;n.html5.controller=function(r,u,f,e){function wt(n){v?s.sendEvent(n.type,n):w.push(n)}function at(t){var r,i;if(!v){v=!0,s.sendEvent(n.api.events.JWPLAYER_READY,t),n.utils.exists(window.playerReady)&&playerReady(t),n.utils.exists(window[f.config.playerReady])&&window[f.config.playerReady](t);while(w.length>0)r=w.shift(),s.sendEvent(r.type,r);f.config.autostart&&!n.utils.isIOS()&&g();while(p.length>0)i=p.shift(),rt(i.method,i.arguments)}}function l(){try{return h(o.item),o.playlist[o.item].levels[0].file.length>0&&(b||o.state==n.api.events.state.IDLE?(o.getMedia().load(o.playlist[o.item]),b=!1):o.state==n.api.events.state.PAUSED&&o.getMedia().play()),!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function vt(){try{if(o.playlist[o.item].levels[0].file.length>0)switch(o.state){case n.api.events.state.PLAYING:case n.api.events.state.BUFFERING:o.getMedia()&&o.getMedia().pause()}return!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function st(t){try{if(o.playlist[o.item].levels[0].file.length>0){typeof t!="number"&&(t=parseFloat(t));switch(o.state){case n.api.events.state.IDLE:y<0&&(y=o.playlist[o.item].start,o.playlist[o.item].start=t),l();break;case n.api.events.state.PLAYING:case n.api.events.state.PAUSED:case n.api.events.state.BUFFERING:o.seek(t)}}return!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function a(i){t.exists(i)||(i=!0);try{return o.getMedia()&&o.getMedia().stop(i),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function d(){try{o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(nt()):o.item+1==o.playlist.length?h(0):h(o.item+1));if(o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE,s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return l(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function yt(){try{o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(nt()):o.item===0?h(o.playlist.length-1):h(o.item-1));if(o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE,s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return l(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function nt(){var n=null;if(o.playlist.length>1)while(!t.exists(n))n=Math.floor(Math.random()*o.playlist.length),n==o.item&&(n=null);else n=0;return n}function it(t){if(!o.playlist||!o.playlist[t])return!1;try{if(o.playlist[t].levels[0].file.length>0){var i=o.state;i!==n.api.events.state.IDLE&&(o.playlist[o.item].provider==o.playlist[t].provider?a(!1):a()),h(t),l()}return!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function h(t){if(!o.playlist[t])return;o.setActiveMediaProvider(o.playlist[t]),o.item!=t&&(o.item=t,b=!0,s.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:t}))}function pt(t){try{h(o.item);var i=o.getMedia();switch(typeof t){case"number":i.volume(t);break;case"string":i.volume(parseInt(t,10))}return!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function kt(t){try{h(o.item);var i=o.getMedia();return typeof t=="undefined"?i.mute(!o.mute):t.toString().toLowerCase()=="true"?i.mute(!0):i.mute(!1),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function bt(t,i){try{return o.width=t,o.height=i,k.resize(t,i),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height}),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function tt(t){try{return typeof t=="undefined"&&(t=!o.fullscreen),t!=o.fullscreen&&(t.toString().toLowerCase()=="true"?(o.fullscreen=!0,k.fullscreen(!0),s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!0})):(o.fullscreen=!1,k.fullscreen(!1),s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1})),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height})),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function lt(t){try{return a(),o.loadPlaylist(t),o.playlist[o.item].provider?(h(o.item),o.config.autostart.toString().toLowerCase()=="true"&&l(),!0):!1}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function g(){h(o.playlist[o.item]),o.config.autostart.toString().toLowerCase()=="true"&&l()}function ft(n){tt(n.fullscreen)}function ut(){try{return o.getMedia().detachMedia()}catch(n){return null}}function ot(){try{return o.getMedia().attachMedia()}catch(n){return null}}function ct(){switch(o.config.repeat.toUpperCase()){case n.html5.controller.repeatoptions.SINGLE:l();break;case n.html5.controller.repeatoptions.ALWAYS:o.item!=o.playlist.length-1||o.config.shuffle?d():it(0);break;case n.html5.controller.repeatoptions.LIST:o.item!=o.playlist.length-1||o.config.shuffle?d():(a(),h(0));break;default:a()}}function c(n){return function(){v?rt(n,arguments):p.push({method:n,arguments:arguments})}}function rt(n,t){var r=[];for(i=0;i<t.length;i++)r.push(t[i]);n.apply(this,r)}var dt=r,o=f,k=e,ht=u,b=!0,y=-1,et=t.exists(o.config.debug)&&o.config.debug.toString().toLowerCase()=="console",s=new n.html5.eventdispatcher(ht.id,et),w,v,p;t.extend(this,s),w=[],v=!1,o.addGlobalListener(wt),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){o.getMedia().play()}),o.addEventListener(n.api.events.JWPLAYER_MEDIA_TIME,function(n){n.position<o.playlist[o.item].start||y<0||(o.playlist[o.item].start=y,y=-1)}),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(ct,25)}),o.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,g),o.addEventListener(n.api.events.JWPLAYER_FULLSCREEN,ft),n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"},p=[],this.play=c(l),this.pause=c(vt),this.seek=c(st),this.stop=c(a),this.next=c(d),this.prev=c(yt),this.item=c(it),this.setVolume=c(pt),this.setMute=c(kt),this.resize=c(bt),this.setFullscreen=c(tt),this.load=c(lt),this.playerReady=at,this.detachMedia=ut,this.attachMedia=ot}}(jwplayer),function(n){n.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(n){_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.display=function(t,i){function bt(){u.display=h("div","display"),u.display_text=h("div","display_text"),u.display.appendChild(u.display_text),u.display_image=h("img","display_image"),u.display_image.onerror=function(){_hide(u.display_image)},u.display_image.onload=gt,u.display_icon=h("div","display_icon"),u.display_iconBackground=h("div","display_iconBackground"),u.display.appendChild(u.display_image),u.display_iconBackground.appendChild(u.display_icon),u.display.appendChild(u.display_iconBackground),dt(),setTimeout(function(){lt=!0,y.icons.toString()=="true"&&b()},1)}function gt(){ut=u.display_image.naturalWidth,tt=u.display_image.naturalHeight,ot()}function ot(){if(r.jwGetFullscreen()&&r.jwGetStretching()==n.utils.stretching.EXACTFIT){var t=document.createElement("div");_utils.stretch(n.utils.stretching.UNIFORM,t,o,f,ct,at),_utils.stretch(n.utils.stretching.EXACTFIT,u.display_image,_utils.parseDimension(t.style.width),_utils.parseDimension(t.style.height),ut,tt),_css(u.display_image,{left:t.style.left,top:t.style.top})}else _utils.stretch(r.jwGetStretching(),u.display_image,o,f,ut,tt)}function h(n,t){var i=document.createElement(n);return i.id=r.id+"_jwplayer_"+t,_css(i,l[t].style),i}function dt(){for(var n in u)_utils.exists(l[n].click)&&(u[n].onclick=l[n].click)}function kt(t){typeof t.preventDefault!="undefined"?t.preventDefault():t.returnValue=!1,r.jwGetState()!=n.api.events.state.PLAYING?r.jwPlay():r.jwPause()}function d(n){if(k){c();return}u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join(""),_css(u.display_icon,{width:r.skin.getSkinElement("display",n).width,height:r.skin.getSkinElement("display",n).height,top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display",n).height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display",n).width)/2}),ti(),_utils.exists(r.skin.getSkinElement("display",n+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null)}function c(){y.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),ft())}function ti(){s||y.icons.toString()!="true"||(_show(u.display_icon),_show(u.display_iconBackground),b())}function ni(n){k=!0,c(),u.display_text.innerHTML=n.message,_show(u.display_text),u.display_text.style.top=(f-_utils.getBoundingClientRect(u.display_text).height)/2+"px"}function v(){u.display_image.style.display="none"}function p(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&k&&(k=!1,_hide(u.display_text));var i=r.jwGetState();if(i==st)return;st=i,a<0||clearTimeout(a),e||r.jwGetState()==n.api.events.state.PLAYING||r.jwGetState()==n.api.events.state.PAUSED?nt(r.jwGetState()):a=setTimeout(vt(r.jwGetState()),500)}function vt(n){return function(){nt(n)}}function nt(t){_utils.exists(w)&&(clearInterval(w),w=null,_utils.animations.rotate(u.display_icon,0));switch(t){case n.api.events.state.BUFFERING:_utils.isMobile()?(v(),c()):(r.jwGetPlaylist()[r.jwGetItem()].provider=="sound"&&it(),g=0,w=setInterval(function(){g+=pt,_utils.animations.rotate(u.display_icon,g%360)},yt),d("bufferIcon"),e=!0);break;case n.api.events.state.PAUSED:_utils.isMobile()||(r.jwGetPlaylist()[r.jwGetItem()].provider!="sound"&&_css(u.display_image,{background:"transparent no-repeat center center"}),d("playIcon"),e=!0);break;case n.api.events.state.IDLE:r.jwGetPlaylist()[r.jwGetItem()]&&r.jwGetPlaylist()[r.jwGetItem()].image?it():v(),d("playIcon"),e=!0;break;default:r.jwGetPlaylist()[r.jwGetItem()]&&r.jwGetPlaylist()[r.jwGetItem()].provider=="sound"?_utils.isMobile()?(v(),e=!1):it():(v(),e=!1),r.jwGetMute()&&y.showmute?d("muteIcon"):c()}a=-1}function it(){r.jwGetPlaylist()[r.jwGetItem()]&&r.jwGetPlaylist()[r.jwGetItem()].image&&(_css(u.display_image,{display:"block"}),u.display_image.src=_utils.getAbsolutePath(r.jwGetPlaylist()[r.jwGetItem()].image))}function et(n){return function(){if(!lt)return;s||rt==n||(rt=n,ht.sendEvent(n,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)}))}}var wt={icons:!0,showmute:!1},y=_utils.extend({},wt,i),r=t,u={},o,f,ut,tt,g,w,k,pt=_utils.exists(r.skin.getComponentSettings("display").bufferrotation)?parseInt(r.skin.getComponentSettings("display").bufferrotation,10):15,yt=_utils.exists(r.skin.getComponentSettings("display").bufferinterval)?parseInt(r.skin.getComponentSettings("display").bufferinterval,10):100,a=-1,st="",e=!0,rt,s=!1,lt=!1,ct,at,ht=new n.html5.eventdispatcher,l,b,ft;return _utils.extend(this,ht),l={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:kt},display_icon:{style:{cursor:"pointer",position:"absolute",top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display","playIcon").height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(f-r.skin.getSkinElement("display","background").height)/2,left:(o-r.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",r.skin.getSkinElement("display","background").src,")"].join(""),width:r.skin.getSkinElement("display","background").width,height:r.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:o,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}},r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,p),r.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,p),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,p),r.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ni),bt(),this.getDisplayElement=function(){return u.display},this.resize=function(n,t){_css(u.display,{width:n,height:t}),_css(u.display_text,{width:n-10,top:(t-_utils.getBoundingClientRect(u.display_text).height)/2}),_css(u.display_iconBackground,{top:(t-r.skin.getSkinElement("display","background").height)/2,left:(n-r.skin.getSkinElement("display","background").width)/2}),(o!=n||f!=t)&&(o=n,f=t,rt=undefined,b()),r.jwGetFullscreen()||(ct=n,at=t),ot(),p({})},this.show=function(){s&&(s=!1,nt(r.jwGetState()))},this.hide=function(){s||(c(),s=!0)},b=et(n.api.events.JWPLAYER_COMPONENT_SHOW),ft=et(n.api.events.JWPLAYER_COMPONENT_HIDE),this}}(jwplayer),function(n){var t=n.utils,i=t.css;n.html5.dock=function(r,u){function st(){return{align:n.html5.view.positions.RIGHT}}function ut(i,u){var g,v,y,c;d();if(s.length>0){var l=10,a=l,it=-1,ut=r.skin.getSkinElement("dock","button").height,tt=r.skin.getSkinElement("dock","button").width,rt=i-tt-l,e,o;for(nt.align==n.html5.view.positions.LEFT&&(it=1,rt=l),g=0;g<s.length;g++)v=Math.floor(a/u),a+ut+l>(v+1)*u&&(a=(v+1)*u+l,v=Math.floor(a/u)),y=f[s[g]].div,y.style.top=a%u+"px",y.style.left=rt+(r.skin.getSkinElement("dock","button").width+l)*v*it+"px",c={x:t.parseDimension(y.style.left),y:t.parseDimension(y.style.top),width:tt,height:ut},e&&(c.x>e.x||c.y>e.y)||(e=c),o&&(c.x<o.x||c.y<o.y)||(o=c),a+=r.skin.getSkinElement("dock","button").height+l;ft={x:e.x,y:e.y,width:o.x-e.x+o.width,height:e.y-o.y+o.height}}(k!=r.jwGetFullscreen()||w!=i||p!=u)&&(w=i,p=u,k=r.jwGetFullscreen(),b=undefined,setTimeout(h,1))}function et(n){return function(){!o&&b!=n&&s.length>0&&(b=n,rt.sendEvent(n,{component:"dock",boundingRect:ft}))}}function ot(i){t.isMobile()?i.newstate==n.api.events.state.IDLE?a():y():tt()}function tt(i){if(o)return;clearTimeout(c);if(u.position==n.html5.view.positions.OVER||r.jwGetFullscreen())switch(r.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:e&&e.style.opacity<1&&(!u.idlehide||t.exists(i))&&l(),u.idlehide&&(c=setTimeout(function(){g()},2e3));break;default:t.exists(i)&&l(),c=setTimeout(function(){g()},2e3)}else l()}function g(){o||(v(),e.style.opacity==1&&(t.cancelAnimation(e),t.fadeTo(e,0,.1,1,0)))}function l(){o||(h(),e.style.opacity==0&&(t.cancelAnimation(e),t.fadeTo(e,1,.1,0,0)))}function d(){it=document.getElementById(r.id),it.addEventListener("mousemove",tt)}var nt=t.extend({},st(),u),e,h,v,a,y;if(nt.align=="FALSE")return;var f={},s=[],w,p,o=!1,k=!1,ft={x:0,y:0,width:0,height:0},b,it,c,rt=new n.html5.eventdispatcher;return t.extend(this,rt),e=document.createElement("div"),e.id=r.id+"_jwplayer_dock",e.style.opacity=1,d(),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ot),this.getDisplayElement=function(){return e},this.setButton=function(i,u,o,h){!u&&f[i]?(t.arrays.remove(s,i),e.removeChild(f[i].div),delete f[i]):u&&(f[i]||(f[i]={}),f[i].handler=u,f[i].outGraphic=o,f[i].overGraphic=h,f[i].div||(s.push(i),f[i].div=document.createElement("div"),f[i].div.style.position="relative",e.appendChild(f[i].div),f[i].div.appendChild(document.createElement("img")),f[i].div.childNodes[0].style.position="absolute",f[i].div.childNodes[0].style.left=0,f[i].div.childNodes[0].style.top=0,f[i].div.childNodes[0].style.zIndex=10,f[i].div.childNodes[0].style.cursor="pointer",f[i].div.appendChild(document.createElement("img")),f[i].div.childNodes[1].style.position="absolute",f[i].div.childNodes[1].style.left=0,f[i].div.childNodes[1].style.top=0,r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src),f[i].div.childNodes[1].style.zIndex=9,f[i].div.childNodes[1].style.cursor="pointer",f[i].div.onmouseover=function(){f[i].overGraphic&&(f[i].div.childNodes[0].src=f[i].overGraphic),r.skin.getSkinElement("dock","buttonOver")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","buttonOver").src)},f[i].div.onmouseout=function(){f[i].outGraphic&&(f[i].div.childNodes[0].src=f[i].outGraphic),r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)},r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)),f[i].outGraphic?f[i].div.childNodes[0].src=f[i].outGraphic:f[i].overGraphic&&(f[i].div.childNodes[0].src=f[i].overGraphic),u&&(f[i].div.onclick=function(t){t.preventDefault(),n(r.id).callback(i),f[i].overGraphic&&(f[i].div.childNodes[0].src=f[i].overGraphic),r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)})),ut(w,p)},h=et(n.api.events.JWPLAYER_COMPONENT_SHOW),v=et(n.api.events.JWPLAYER_COMPONENT_HIDE),this.resize=ut,a=function(){i(e,{display:"block"}),o&&(o=!1,h())},y=function(){i(e,{display:"none"}),o||(v(),o=!0)},this.hide=y,this.show=a,this}}(jwplayer),function(n){n.html5.eventdispatcher=function(t,i){var r=new n.events.eventdispatcher(i);n.utils.extend(this,r),this.sendEvent=function(i,u){n.utils.exists(u)||(u={}),n.utils.extend(u,{id:t,version:n.version,type:i}),r.sendEvent(i,u)}}}(jwplayer),function(n){var t={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=n.utils.css,n.html5.logo=function(i,r){function w(){p(),o.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,v),b(),d()}function p(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);try{window.location.href.indexOf("https")==0&&(t.prefix=t.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(e){}u=n.utils.extend({},t)}function b(){f=document.createElement("img"),f.id=o.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,a()),s()};if(!u.file)return;f.src=u.file.indexOf("/")<0?u.prefix+u.file:u.file}function d(){u.link?(f.onmouseover=c,f.onmouseout=s,f.onclick=k):this.mouseEnabled=!1}function k(n){typeof n!="undefined"&&n.stopPropagation();if(!e)return;o.jwPause(),o.jwSetFullscreen(!1),u.link&&window.open(u.link,"_top");return}function s(){u.link&&e&&(f.style.opacity=u.out);return}function c(){e&&(f.style.opacity=u.over);return}function a(){var t={textDecoration:"none",position:"absolute",cursor:"pointer"},n,i;t.display=u.hide.toString()=="true"&&!e?"none":"block",n=u.position.toLowerCase().split("-");for(i in n)t[n[i]]=u.margin;return t}function y(){u.hide.toString()=="true"&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),h=setTimeout(function(){l()},u.timeout*1e3)),e=!0}function l(){e=!1,u.hide.toString()=="true"&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function v(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(h),y())}var o=i,h,u,f,e=!1;return w(),u.file?(this.resize=function(){},this.getDisplayElement=function(){return f},this):void 0}}(jwplayer),function(n){var r={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils,u=t.css,i=t.isMobile();n.html5.mediavideo=function(u,f){function at(n,i){return function(n){l&&t.exists(n.target.parentNode)&&i(n)}}function lt(){e=document.createElement("video"),c=n.api.events.state.IDLE;for(var t in ut)e.addEventListener(t,at(t,ut[t]),!0);l=!0,e.setAttribute("x-webkit-airplay","allow"),w.parentNode&&w.parentNode.replaceChild(e,w),e.id||(e.id=w.id),e.volume=o.volume/100}function v(t){if(t==n.api.events.state.PAUSED&&c==n.api.events.state.IDLE)return;if(c!=t){var i=c;o.state=c=t,s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function a(){}function ct(){var i=Math.round(e.volume*100);i!=o.volume&&(o.volume=i,s.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:o.volume})),e.muted!=o.mute&&(o.mute=e.muted,s.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:o.mute}))}function g(i){var r,u;t.exists(i)&&i.lengthComputable&&i.total?r=i.loaded/i.total*100:t.exists(e.buffered)&&e.buffered.length>0&&(u=e.buffered.length-1,u<0||(r=e.buffered.end(u)/e.duration*100)),p===!1&&c==n.api.events.state.BUFFERING&&(s.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),p=!0),tt||(r==100&&(tt=!0),t.exists(r)&&r>o.buffer&&(o.buffer=Math.round(r),s.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(r)})))}function pt(i){if(t.exists(i)&&t.exists(i.target)){!isNaN(i.target.duration)&&(isNaN(o.duration)||o.duration<1)&&(o.duration=i.target.duration==Infinity?0:Math.round(i.target.duration*10)/10),!d&&e.readyState>0&&(e.style.display="block",v(n.api.events.state.PLAYING));if(c==n.api.events.state.PLAYING){if(!d&&e.readyState>0){d=!0;try{e.currentTime<y.start&&(e.currentTime=y.start)}catch(r){}e.volume=o.volume/100,e.muted=o.mute}o.position=o.duration>0?Math.round(i.target.currentTime*10)/10:0,s.sendEvent(n.api.events.JWPLAYER_MEDIA_TIME,{position:o.position,duration:o.duration}),o.position>=o.duration&&(o.position>0||o.duration>0)&&rt()}}g(i)}function yt(){}function h(n){r[n.type]&&(n.type=="ended"?rt():v(r[n.type]))}function nt(t){var i=Math.round(t.target.duration*10)/10,r={height:t.target.videoHeight,width:t.target.videoWidth,duration:i};(o.duration<i||isNaN(o.duration))&&t.target.duration!=Infinity&&(o.duration=i),s.sendEvent(n.api.events.JWPLAYER_MEDIA_META,{metadata:r})}function vt(i){var r,u;if(c==n.api.events.state.IDLE)return;r="There was an error: ";if(i.target.error&&i.target.tagName.toLowerCase()=="video"||i.target.parentNode.error&&i.target.parentNode.tagName.toLowerCase()=="video"){u=t.exists(i.target.error)?i.target.error:i.target.parentNode.error;switch(u.code){case u.MEDIA_ERR_ABORTED:r="You aborted the video playback: ";break;case u.MEDIA_ERR_NETWORK:r="A network error caused the video download to fail part-way: ";break;case u.MEDIA_ERR_DECODE:r="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case u.MEDIA_ERR_SRC_NOT_SUPPORTED:r="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:r="An unknown error occurred: "}}else if(i.target.tagName.toLowerCase()=="source"){b--;if(b>0)return;r="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{t.log("An unknown error occurred.  Continuing...");return}_stop(!1),r+=ft(),_error=!0,s.sendEvent(n.api.events.JWPLAYER_ERROR,{message:r});return}function ft(){var i="",t,r,u;for(t in y.levels)r=y.levels[t],u=w.ownerDocument.createElement("source"),i+=n.utils.getAbsolutePath(r.file),t<y.levels.length-1&&(i+=", ");return i}function et(){t.exists(k)||(k=setInterval(function(){g()},100))}function ht(){clearInterval(k),k=null}function rt(){c!=n.api.events.state.IDLE&&(_stop(!1),s.sendEvent(n.api.events.JWPLAYER_MEDIA_COMPLETE))}function ot(){t.exists(e.webkitDisplayingFullscreen)&&o.fullscreen&&!e.webkitDisplayingFullscreen&&s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1})}function st(n){var r,i,u;if(n.length>0&&t.isIOS())if(t.extension(n[0].file)!="mp4"){for(r=-1,i=1;i<n.length;i++)if(t.extension(n[i].file)=="mp4"){r=i;break}r>-1&&(u=n.splice(r,1)[0],n.unshift(u))}}var ut={abort:a,canplay:h,canplaythrough:h,durationchange:nt,emptied:a,ended:h,error:vt,loadeddata:nt,loadedmetadata:nt,loadstart:h,pause:h,play:a,playing:h,progress:g,ratechange:a,seeked:h,seeking:h,stalled:h,suspend:h,timeupdate:pt,volumechange:ct,waiting:h,canshowcurrentframe:a,dataunavailable:a,empty:a,load:yt,loadedfirstframe:a,webkitfullscreenchange:ot},s=new n.html5.eventdispatcher;t.extend(this,s);var o=u,w=f,e,c,d,y,k,it=!1,l=!1,tt,p,b;lt(),this.load=function(r,u){var f,h;typeof u=="undefined"&&(u=!0);if(!l)return;y=r,t.empty(e),b=0;if(r.levels&&r.levels.length>0)if(r.levels.length==1)e.src=r.levels[0].file;else for(st(r.levels),e.src&&e.removeAttribute("src"),f=0;f<r.levels.length;f++)h=e.ownerDocument.createElement("source"),h.src=r.levels[f].file,e.appendChild(h),b++;else e.src=r.file;i&&(r.image&&(e.poster=r.image),e.style.display="block",setTimeout(function(){e.setAttribute("controls","controls")},100)),tt=p=d=!1,o.buffer=0,t.exists(r.start)||(r.start=0),o.duration=r.duration,s.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED),(i||r.levels.length!=1)&&it||e.load(),it=!1,u&&(v(n.api.events.state.BUFFERING),s.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),this.play())},this.play=function(){if(!l)return;c!=n.api.events.state.PLAYING&&(et(),p?v(n.api.events.state.PLAYING):v(n.api.events.state.BUFFERING),e.play())},this.pause=function(){if(!l)return;e.pause(),v(n.api.events.state.PAUSED)},this.seek=function(n){if(!l)return;o.duration<=0||isNaN(o.duration)||o.position<=0||isNaN(o.position)||(e.currentTime=n,e.play())},_stop=this.stop=function(i){if(!l)return;t.exists(i)||(i=!0),ht();if(i){e.style.display="none",p=!1;var r=navigator.userAgent;r.match(/chrome/i)?e.src=undefined:r.match(/safari/i)||r.match(/firefox/i)?e.removeAttribute("src"):e.src="",e.removeAttribute("controls"),e.removeAttribute("poster"),t.empty(e),e.load(),it=!0;if(e.webkitSupportsFullscreen)try{e.webkitExitFullscreen()}catch(u){}}v(n.api.events.state.IDLE)},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(o.config.width,o.config.height)},this.resize=function(){},this.volume=function(n){i||(e.volume=n/100)},this.mute=function(n){i||(e.muted=n)},this.getDisplayElement=function(){return e},this.hasChrome=function(){return i},this.detachMedia=function(){return l=!1,this.getDisplayElement()},this.attachMedia=function(){l=!0}}}(jwplayer),function(n){var i={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils.css;n.html5.mediayoutube=function(i,r){function c(t){if(h!=t){var i=h;s.state=t,h=t,e.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function a(n){var i=n.levels[0].file,s,h,t,e,r;i=["http://www.youtube.com/v/",l(i),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join(""),u=document.createElement("object"),u.id=f.id,u.style.position="absolute",s={movie:i,allowfullscreen:"true",allowscriptaccess:"always"};for(h in s)t=document.createElement("param"),t.name=h,t.value=s[h],u.appendChild(t);o=document.createElement("embed"),u.appendChild(o),e={src:i,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:u.width,height:u.height};for(r in e)o.setAttribute(r,e[r]);u.appendChild(o),u.style.zIndex=2147483e3,f!=u&&f.parentNode&&f.parentNode.replaceChild(u,f),f=u}function l(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")<0?n.indexOf("youtu.be")<0?n:n.substr(n.indexOf("youtu.be/")+9):n.substr(n.indexOf("/v/")+3)),t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?"))),t.indexOf("&")>-1&&(t=t.substr(0,t.indexOf("&"))),t}var e=new n.html5.eventdispatcher;n.utils.extend(this,e);var s=i,f=document.getElementById(r.id),h=n.api.events.state.IDLE,u,o;return this.getDisplayElement=this.detachMedia=function(){return f},this.attachMedia=function(){},this.play=function(){h==n.api.events.state.IDLE?(e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),c(n.api.events.state.PLAYING)):h==n.api.events.state.PAUSED&&c(n.api.events.state.PLAYING)},this.pause=function(){c(n.api.events.state.PAUSED)},this.seek=function(){},this.stop=function(i){_utils.exists(i)||(i=!0),s.position=0,c(n.api.events.state.IDLE),i&&t(f,{display:"none"})},this.volume=function(t){s.volume=t,e.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(t)})},this.mute=function(t){f.muted=t,s.mute=t,e.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t})},this.resize=function(n,t){n*t>0&&u&&(u.width=o.width=n,u.height=o.height=t)},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(s.config.width,s.config.height)},this.load=function(i){a(i),t(u,{display:"block"}),c(n.api.events.state.BUFFERING),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED),this.play()},this.hasChrome=function(){return h!=n.api.events.state.IDLE},this.embed=o,this}}(jwplayer),function(n){var t=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];n.html5.model=function(i,r,u){function ht(t){var i=new n.html5.playlistloader;i.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,function(t){f.playlist=new n.html5.playlist(t),d(!0)}),i.addEventListener(n.api.events.JWPLAYER_ERROR,function(){f.playlist=new n.html5.playlist({playlist:[]}),d(!1)}),i.load(t)}function d(){f.config.shuffle?f.item=st():(f.config.item<f.playlist.length?f.config.item<0&&(f.config.item=0):f.config.item=f.playlist.length-1,f.item=f.config.item),f.position=0,f.duration=f.playlist.length>0?f.playlist[f.item].duration:0,y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:f.playlist}),y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:f.item})}function st(){var t=null;if(f.playlist.length>1)while(!n.utils.exists(t))t=Math.floor(Math.random()*f.playlist.length),t==f.item&&(t=null);else t=0;return t}function rt(t){t.type==n.api.events.JWPLAYER_MEDIA_LOADED&&(p=e.getDisplayElement()),y.sendEvent(t.type,t)}var ut=i,p=r,f={id:p.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,repeat:"",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},e,y=new n.html5.eventdispatcher,ct=["display","logo","controlbar","playlist","dock"],s,ot,c,h,l,ft,nt,v,w,tt,b,g,et,o,k,it,a;n.utils.extend(f,y);for(s in u){typeof u[s]=="string"&&(ot=/color$/.test(s)?"color":null,u[s]=n.utils.typechecker(u[s],ot)),c=f.config,h=s.split(".");for(l in h)l==h.length-1?c[h[l]]=u[s]:(n.utils.exists(c[h[l]])||(c[h[l]]={}),c=c[h[l]])}for(ft in t)nt=t[ft],f[nt]=f.config[nt];v=ct.concat([]);if(n.utils.exists(f.plugins))if(typeof f.plugins=="string"){w=f.plugins.split(",");for(tt in w)typeof w[tt]=="string"&&v.push(w[tt].replace(/^\s+|\s+$/g,""))}n.utils.isMobile()?(v=["display","logo","dock","playlist"],n.utils.exists(f.config.repeat)||(f.config.repeat="list")):f.config.chromeless&&(v=["logo","dock","playlist"],n.utils.exists(f.config.repeat)||(f.config.repeat="list")),f.plugins={order:v,config:{},object:{}};if(typeof f.config.components!="undefined")for(b in f.config.components)f.plugins.config[b]=f.config.components[b];g=!1;for(et in f.plugins.order)o=f.plugins.order[et],k=n.utils.exists(f.plugins.config[o])?f.plugins.config[o]:{},f.plugins.config[o]=n.utils.exists(f.plugins.config[o])?n.utils.extend(f.plugins.config[o],k):k,n.utils.exists(f.plugins.config[o].position)?(o=="playlist"&&(g=!0),f.plugins.config[o].position=f.plugins.config[o].position.toString().toUpperCase()):f.plugins.config[o].position=o=="playlist"?n.html5.view.positions.NONE:n.html5.view.positions.OVER;f.plugins.config.controlbar&&g&&(f.plugins.config.controlbar.hideplaylistcontrols=!0);if(typeof f.plugins.config.dock!="undefined"){typeof f.plugins.config.dock!="object"&&(it=f.plugins.config.dock.toString().toUpperCase(),f.plugins.config.dock={position:it}),typeof f.plugins.config.dock.position!="undefined"&&(f.plugins.config.dock.align=f.plugins.config.dock.position,f.plugins.config.dock.position=n.html5.view.positions.OVER);if(typeof f.plugins.config.dock.idlehide=="undefined")try{f.plugins.config.dock.idlehide=f.plugins.config.controlbar.idlehide}catch(lt){}}return f.loadPlaylist=function(t){var i,r;if(typeof t=="string")if(t.indexOf("[")==0||t.indexOf("{")=="0")try{i=eval(t)}catch(u){i=t}else i=t;else i=t;switch(n.utils.typeOf(i)){case"object":r=i;break;case"array":r={playlist:i};break;default:r={file:i}}f.playlist=new n.html5.playlist(r),f.item=f.config.item>=0?f.config.item:0,f.playlist[f.item].provider?d():ht(f.playlist[f.item].file)},a={},f.setActiveMediaProvider=function(t){t.provider=="audio"&&(t.provider="sound");var i=t.provider,r=e?e.getDisplayElement():null;(i=="sound"||i=="http"||i=="")&&(i="video");if(n.utils.exists(a[i]))e!=a[i]&&(e&&e.stop(),e=a[i]);else{switch(i){case"video":e=new n.html5.mediavideo(f,r?r:p);break;case"youtube":e=new n.html5.mediayoutube(f,r?r:p)}if(!n.utils.exists(e))return!1;e.addGlobalListener(rt),a[i]=e}return!0},f.getMedia=function(){return e},f.seek=function(t){return y.sendEvent(n.api.events.JWPLAYER_MEDIA_SEEK,{position:f.position,offset:t}),e.seek(t)},f.setupPlugins=function(){var i,t;if(!n.utils.exists(f.plugins)||!n.utils.exists(f.plugins.order)||f.plugins.order.length==0)return n.utils.log("No plugins to set up"),f;for(i=0;i<f.plugins.order.length;i++)try{t=f.plugins.order[i],n.utils.exists(n.html5[t])?f.plugins.object[t]=t=="playlist"?new n.html5.playlistcomponent(ut,f.plugins.config[t]):new n.html5[t](ut,f.plugins.config[t]):f.plugins.order.splice(plugin,plugin+1),typeof f.plugins.object[t].addGlobalListener=="function"&&f.plugins.object[t].addGlobalListener(rt)}catch(r){n.utils.log("Could not setup "+t)}},f}}(jwplayer),function(n){n.html5.playlist=function(t){var r=[],i;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(i in t.playlist)isNaN(parseInt(i))||r.push(new n.html5.playlistitem(t.playlist[i]));else r.push(new n.html5.playlistitem(t));return r}}(jwplayer),function(n){var i={size:180,position:n.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},t={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.playlistcomponent=function(r,u){function it(){o=document.createElement("div"),o.id=s.id+"_jwplayer_playlistcomponent",o.style.overflow="hidden";switch(f.position){case n.html5.view.positions.RIGHT:case n.html5.view.positions.LEFT:o.style.width=f.size+"px";break;case n.html5.view.positions.TOP:case n.html5.view.positions.BOTTOM:o.style.height=f.size+"px"}d(),e.item&&(f.itemheight=e.item.height),o.style.backgroundColor="#C6C6C6",s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ut),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,b),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,g)}function tt(){var n=document.createElement("ul");return _css(n,{width:o.style.width,minWidth:o.style.width,height:o.style.height,backgroundColor:f.backgroundcolor,backgroundImage:e.background?"url("+e.background.src+")":"",color:f.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:t[f.font]?t[f.font]:t._sans,fontSize:(f.fontsize?f.fontsize:11)+"px",fontStyle:f.fontstyle,fontWeight:f.fontweight,overflowY:"auto"}),n}function rt(n){return function(){var r=h.getElementsByClassName("item")[n],i=f.fontcolor,t=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(i=f.activecolor),e.itemActive&&(t="url("+e.itemActive.src+")")),_css(r,{color:f.overcolor!==""?f.overcolor:i,backgroundImage:e.itemOver?"url("+e.itemOver.src+")":t})}}function a(n){return function(){var r=h.getElementsByClassName("item")[n],i=f.fontcolor,t=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(i=f.activecolor),e.itemActive&&(t="url("+e.itemActive.src+")")),_css(r,{color:i,backgroundImage:t})}}function ft(t){var i=l[t],u=document.createElement("li"),k,s,c,o,h;u.className="item",_css(u,{height:f.itemheight,display:"block",cursor:"pointer",backgroundImage:e.item?"url("+e.item.src+")":"",backgroundSize:"100% "+f.itemheight+"px"}),u.onmouseover=rt(t),u.onmouseout=a(t);var g=document.createElement("div"),r=new Image,b=0,p=0,d=0;return w()&&(i.image||i["playlist.image"]||e.itemImage)&&(r.className="image",e.itemImage?(b=(f.itemheight-e.itemImage.height)/2,p=e.itemImage.width,d=e.itemImage.height):(p=f.itemheight*4/3,d=f.itemheight),_css(g,{height:d,width:p,float:"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:b+"px",position:"relative"}),_css(r,{position:"relative"}),g.appendChild(r),r.onload=function(){n.utils.stretch(n.utils.stretching.FILL,r,p,d,this.naturalWidth,this.naturalHeight)},i["playlist.image"]?r.src=i["playlist.image"]:i.image?r.src=i.image:e.itemImage&&(r.src=e.itemImage.src),u.appendChild(g)),k=y-p-b*2,v<f.itemheight*l.length&&(k-=15),s=document.createElement("div"),_css(s,{position:"relative",height:"100%",overflow:"hidden"}),c=document.createElement("span"),i.duration>0&&(c.className="duration",_css(c,{fontSize:(f.fontsize?f.fontsize:11)+"px",fontWeight:f.fontweight?f.fontweight:"bold",width:"40px",height:f.fontsize?f.fontsize+10:20,lineHeight:24,float:"right",styleFloat:"right",cssFloat:"right"}),c.innerHTML=_utils.timeFormat(i.duration),s.appendChild(c)),o=document.createElement("span"),o.className="title",_css(o,{padding:"5px 5px 0 "+(b?0:"5px"),height:f.fontsize?f.fontsize+10:20,lineHeight:f.fontsize?f.fontsize+10:20,overflow:"hidden",float:"left",styleFloat:"left",cssFloat:"left",width:(i.duration>0?k-50:k)-10+"px",fontSize:(f.fontsize?f.fontsize:13)+"px",fontWeight:f.fontweight?f.fontweight:"bold"}),o.innerHTML=i?i.title:"",s.appendChild(o),i.description&&(h=document.createElement("span"),h.className="description",_css(h,{display:"block",float:"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:o.style.paddingLeft,paddingRight:o.style.paddingRight,lineHeight:(f.fontsize?f.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),h.innerHTML=i.description,s.appendChild(h)),u.appendChild(s),u}function ut(){var t,i,r;o.innerHTML="",l=s.jwGetPlaylist();if(!l)return;for(items=[],h=tt(),t=0;t<l.length;t++)i=ft(t),i.onclick=nt(t),h.appendChild(i),items.push(i);c=s.jwGetPlaylistIndex(),a(c)(),o.appendChild(h),_utils.isIOS()&&window.iScroll&&(h.style.height=f.itemheight*l.length+"px",r=new iScroll(o.id))}function nt(n){return function(){s.jwPlaylistItem(n),s.jwPlay(!0)}}function p(){h.scrollTop=s.jwGetPlaylistIndex()*f.itemheight}function w(){return f.thumbs.toString().toLowerCase()=="true"}function b(n){c<0||(a(c)(),c=n.index),a(n.index)(),p()}function g(){if(f.position==n.html5.view.positions.OVER)switch(s.jwGetState()){case n.api.events.state.IDLE:_show(o);break;default:_hide(o)}}function d(){for(var n in e)e[n]=k(n)}function k(n){return s.skin.getSkinElement("playlist",n)}var s=r,f=n.utils.extend({},i,s.skin.getComponentSettings("playlist"),u),o,y,v,l,et,h,c,e;if(f.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[f.position]!="undefined")return c=-1,e={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined},this.getDisplayElement=function(){return o},this.resize=function(n,t){y=n,v=t;if(s.jwGetFullscreen())_hide(o);else{var i={display:"block",width:y,height:v};_css(o,i)}},this.show=function(){_show(o)},this.hide=function(){_hide(o)},it(),this}}(jwplayer),function(n){function t(t){var i,u,r;if(n.utils.isYouTube(t.file))return"youtube";i=n.utils.extension(t.file);if(i&&n.utils.extensionmap[i]){if(i=="m3u8")return"video";u=n.utils.extensionmap[i].html5}else t.type&&(u=t.type);if(u){r=u.split("/")[0];if(r=="audio")return"sound";if(r=="video")return r}return""}n.html5.playlistitem=function(i){var u={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},r=n.utils.extend({},u,i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(t){var r={file:"",streamer:"",bitrate:0,width:0},i;for(i in r)n.utils.exists(t[i])&&(r[i]=t[i]);return r}}(jwplayer),function(n){n.html5.playlistloader=function(){function r(r){var u=[];try{u=n.utils.parsers.rssparser.parse(r.responseXML.firstChild),t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new n.html5.playlist({playlist:u})})}catch(f){i("Could not parse the playlist")}}function i(i){t.sendEvent(n.api.events.JWPLAYER_ERROR,{message:i?i:"Could not load playlist an unknown reason."})}var t=new n.html5.eventdispatcher;n.utils.extend(this,t),this.load=function(t){n.utils.ajax(t,r,i)}}}(jwplayer),function(n){n.html5.skin=function(){var i={},t=!1;this.load=function(r,u){new n.html5.skinloader(r,function(n){t=!0,i=n,u()},function(){new n.html5.skinloader("",function(n){t=!0,i=n,u()})})},this.getSkinElement=function(r,u){if(t)try{return i[r].elements[u]}catch(f){n.utils.log("No such skin component / element: ",[r,u])}return null},this.getComponentSettings=function(n){return t?i[n].settings:null},this.getComponentLayout=function(n){return t?i[n].layout:null}}}(jwplayer),function(n){n.html5.skinloader=function(t,i,r){function w(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(n.utils.exists(t.responseXML)){e(t.responseXML);return}}catch(i){a()}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),e,i,ut,it,d,b,w,c,a,rt,v,r,p,nt,g,f,l,k,tt;if(o.length===0)return;for(e=0;e<o.length;e++){for(i=o[e].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,it=o[e].getElementsByTagName("elements")[0].getElementsByTagName("element"),d=0;d<it.length;d++)y(it[d],i);b=o[e].getElementsByTagName("settings")[0];if(b&&b.childNodes.length>0)for(w=b.getElementsByTagName("setting"),c=0;c<w.length;c++){var ft=w[c].getAttribute("name"),et=w[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}a=o[e].getElementsByTagName("layout")[0];if(a&&a.childNodes.length>0)for(rt=a.getElementsByTagName("group"),v=0;v<rt.length;v++){for(r=rt[v],u[i].layout[r.getAttribute("position")]={elements:[]},p=0;p<r.attributes.length;p++)nt=r.attributes[p],u[i].layout[r.getAttribute("position")][nt.name]=nt.value;for(g=r.getElementsByTagName("*"),f=0;f<g.length;f++){for(l=g[f],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),k=0;k<l.attributes.length;k++)tt=l.attributes[k],u[i].layout[r.getAttribute("position")].elements[f][tt.name]=tt.value;n.utils.exists(u[i].layout[r.getAttribute("position")].elements[f].name)||(u[i].layout[r.getAttribute("position")].elements[f].name=l.tagName)}}h=!1,s()}}function s(){clearInterval(o),c||(o=setInterval(function(){v()},100))}function y(t,i){var r=new Image,v=t.getAttribute("name"),o=t.getAttribute("src"),e,h,a;o.indexOf("data:image/png;base64,")===0?e=o:(h=n.utils.getAbsolutePath(f),a=h.substr(0,h.lastIndexOf("/")),e=[a,i,o].join("/")),u[i].elements[v]={height:0,width:0,src:"",ready:!1,image:r},r.onload=function(){l(r,v,i)},r.onerror=function(){c=!0,s(),p()},r.src=e}function a(){var r,n,f,t,i;for(r in u){n=u[r];for(f in n.elements)t=n.elements[f],i=t.image,i.onload=null,i.onerror=null,delete t.image,delete n.elements[f];delete u[r]}}function v(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),b(u))}function l(t,i,r){u[r]&&u[r].elements[i]?(u[r].elements[i].height=t.height,u[r].elements[i].width=t.width,u[r].elements[i].src=t.src,u[r].elements[i].ready=!0,s()):n.utils.log("Loaded an image for a missing element: "+r+"."+i)}var u={},b=i,p=r,h=!0,o,f=t,c=!1;w()}}(jwplayer),function(n){n.html5.api=function(t,i){function a(){u.state==n.api.events.state.PLAYING||u.state==n.api.events.state.BUFFERING?f.pause():f.play()}function e(n){return function(){return u[n]}}function s(n,t,i){return function(){var r=u.plugins.object[n];r&&r[t]&&typeof r[t]=="function"&&r[t].apply(r,i)}}function l(){u.config.playlistfile?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,h),u.loadPlaylist(u.config.playlistfile)):typeof u.config.playlist=="string"?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,h),u.loadPlaylist(u.config.playlist)):(u.loadPlaylist(u.config),setTimeout(h,25))}function h(t){u.removeEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,h),u.setupPlugins(),c.setup();var t={id:r.id,version:r.version};f.playerReady(t)}var r={},o=document.createElement("div");t.parentNode.replaceChild(o,t),o.id=t.id,r.version=n.version,r.id=o.id;var u=new n.html5.model(r,o,i),c=new n.html5.view(r,o,u),f=new n.html5.controller(r,o,u,c);return r.skin=new n.html5.skin,r.jwPlay=function(n){typeof n=="undefined"?a():n.toString().toLowerCase()=="true"?f.play():f.pause()},r.jwPause=function(n){typeof n=="undefined"?a():n.toString().toLowerCase()=="true"?f.pause():f.play()},r.jwStop=f.stop,r.jwSeek=f.seek,r.jwPlaylistItem=f.item,r.jwPlaylistNext=f.next,r.jwPlaylistPrev=f.prev,r.jwResize=f.resize,r.jwLoad=f.load,r.jwDetachMedia=f.detachMedia,r.jwAttachMedia=f.attachMedia,r.jwGetItem=e("item"),r.jwGetPosition=e("position"),r.jwGetDuration=e("duration"),r.jwGetBuffer=e("buffer"),r.jwGetWidth=e("width"),r.jwGetHeight=e("height"),r.jwGetFullscreen=e("fullscreen"),r.jwSetFullscreen=f.setFullscreen,r.jwGetVolume=e("volume"),r.jwSetVolume=f.setVolume,r.jwGetMute=e("mute"),r.jwSetMute=f.setMute,r.jwGetStretching=function(){return u.stretching.toUpperCase()},r.jwGetState=e("state"),r.jwGetVersion=function(){return r.version},r.jwGetPlaylist=function(){return u.playlist},r.jwGetPlaylistIndex=r.jwGetItem,r.jwAddEventListener=f.addEventListener,r.jwRemoveEventListener=f.removeEventListener,r.jwSendEvent=f.sendEvent,r.jwDockSetButton=function(n,t,i,r){u.plugins.object.dock&&u.plugins.object.dock.setButton&&u.plugins.object.dock.setButton(n,t,i,r)},r.jwControlbarShow=s("controlbar","show"),r.jwControlbarHide=s("controlbar","hide"),r.jwDockShow=s("dock","show"),r.jwDockHide=s("dock","hide"),r.jwDisplayShow=s("display","show"),r.jwDisplayHide=s("display","hide"),r.jwGetLevel=function(){},r.jwGetBandwidth=function(){},r.jwGetLockState=function(){},r.jwLock=function(){},r.jwUnlock=function(){},u.config.chromeless&&!n.utils.isIOS()?l():r.skin.load(u.config.skin,l),r}}(jwplayer)),function(n){n.fn.easyPaginate=function(t){function u(){clearTimeout(l),o=(r-1)*i,s=o+i,n(a).each(function(r){var u=n(this);u.hide(),r>=o&&r<s&&setTimeout(function(){u.fadeIn("fast")},(r-Math.floor(r/i)*i)*t.delay),t.nextprev&&(s<f?c.fadeIn("fast"):c.fadeOut("fast"),o<1?h.fadeOut("fast"):h.fadeIn("fast"))}),n("li","#"+t.controls).removeClass(t.current),n('li[data-index="'+r+'"]',"#"+t.controls).addClass(t.current),t.auto&&(t.clickstop&&e||(l=setTimeout(y,t.pause)))}function y(){s>f||(r++,u())}var p={step:4,delay:100,numeric:!0,nextprev:!0,auto:!1,pause:4e3,clickstop:!0,controls:"pagination",current:"current",prextext:"Vor",nexttext:"Weiter"},t=n.extend(p,t),i=t.step,o,s,a=n(this).children(),f=a.length,v,c,h,r=1,l,e=!1;this.each(function(){var s,l,o;v=this;if(f>i){s=Math.floor(f/i),f/i>s&&s++,l=n('<ol id="'+t.controls+'"></ol>').insertAfter(v),t.nextprev&&(h=n('<li class="prev">'+t.prevtext+"</li>").hide().appendTo(l).click(function(){e=!0,r--,u()}));if(t.numeric)for(o=1;o<=s;o++)n('<li data-index="'+o+'">'+o+"</li>").appendTo(l).click(function(){e=!0,r=n(this).attr("data-index"),u()});t.nextprev&&(c=n('<li class="next">'+t.nexttext+"</li>").hide().appendTo(l).click(function(){e=!0,r++,u()})),u()}})}}(jQuery),function(n){n.fn.maxlength=function(t){function i(n){var i=n.value;return t.words&&(i=n.value.length?i.split(/\s+/):{length:0}),i.length}return typeof t=="string"&&(t={feedback:t}),t=n.extend({},n.fn.maxlength.defaults,t),this.each(function(){function h(n){var f=i(this),e=f>=u,r=n.keyCode;if(!e)return;switch(r){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return t.words&&r!=32&&r!=13&&f==u}}var r=this,e=n(r),o=n(r.form),u=t.useInput?o.find("input[name=maxlength]").val():e.attr("maxlength"),s=o.find(t.feedback),f=function(){var e=i(r),n=u-e;s.html(n||"0"),t.hardLimit&&n<0&&(r.value=t.words?r.value.split(/(\s+)/,u*2-1).join(""):r.value.substr(0,u),f())};e.keyup(f).change(f),t.hardLimit&&e.keydown(h),f()})},n.fn.maxlength.defaults={useInput:!1,hardLimit:!0,feedback:".charsLeft",words:!1}}(jQuery),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1},t.window=function(){return n(window)._scrollable()},n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,n.browser.safari||i.compatMode=="BackCompat"?i.body:i.documentElement):t})},n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.speed||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){c.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}var h=this,c=n(h),e=r,s,o={},a=c.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}e=n(e,this);case"object":(e.is||e.style)&&(s=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=h[r],w=t.max(h,i),v;s?(o[r]=s[u]+(a?0:p-c.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v),/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w)),!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])}),l(f.onAfter)}).end()},t.max=function(t,i){var u=i=="x"?"Width":"Height",r="scroll"+u;if(!n(t).is("html,body"))return t[r]-n(t)[u.toLowerCase()]();var o="client"+u,e=t.ownerDocument.documentElement,f=t.ownerDocument.body;return Math.max(e[r],f[r])-Math.min(e[o],f[o])}}(jQuery)
