# HG changeset patch # User ymh # Date 1382628463 -7200 # Node ID e3c427afccfbbb26bb933f09ebe9823464a2eece # Parent 9783029ea81d1c8b410a0699abae320fa208a038# Parent 30864533a3567d42d256cdc7e8dc4cfe0fca19bb merge diff -r 9783029ea81d -r e3c427afccfb web/css/ds.css --- a/web/css/ds.css Thu Oct 24 17:26:24 2013 +0200 +++ b/web/css/ds.css Thu Oct 24 17:27:43 2013 +0200 @@ -22,7 +22,7 @@ border-right: none; border-bottom: 5px solid rgb(233, 234, 238); } -.navbar-inverse .navbar-nav > li > a:hover{ +.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus{ color: #333333; } .logo{ diff -r 9783029ea81d -r e3c427afccfb web/fullrenkan.html --- a/web/fullrenkan.html Thu Oct 24 17:26:24 2013 +0200 +++ b/web/fullrenkan.html Thu Oct 24 17:27:43 2013 +0200 @@ -106,7 +106,7 @@ + ' type: "AutoPlayer",' + ' height: "360",' + ' autostart: true,' - + ' url_transform: function(url) { if(url.substr(url.length - 4).toLowerCase()==".flv"){ return url.replace("/ddc_player/video/","/ddc_player/flv:video/"); } return url.replace("/ddc_player/video/","/ddc_player/mp4:video/"); }' + + ' url_transform: function(url) { var can_play_mp4 = !!document.createElement("video").canPlayType("video/mp4"); if(!can_play_mp4){ return url.replace(/\.mp4$/i,".webm"); }else{ return url; } }' + ' }' + ' ,{' + ' type: "Polemic",' diff -r 9783029ea81d -r e3c427afccfb web/index.html --- a/web/index.html Thu Oct 24 17:26:24 2013 +0200 +++ b/web/index.html Thu Oct 24 17:27:43 2013 +0200 @@ -166,7 +166,7 @@ + ' type: "AutoPlayer",' + ' height: "360",' + ' autostart: true,' - + ' url_transform: function(url) { if(url.substr(url.length - 4).toLowerCase()==".flv"){ return url.replace("/ddc_player/video/","/ddc_player/flv:video/"); } return url.replace("/ddc_player/video/","/ddc_player/mp4:video/"); }' + + ' url_transform: function(url) { var can_play_mp4 = !!document.createElement("video").canPlayType("video/mp4"); if(!can_play_mp4){ return url.replace(/\.mp4$/i,".webm"); }else{ return url; } }' + ' }' + ' ,{' + ' type: "Polemic",' diff -r 9783029ea81d -r e3c427afccfb web/js/jwplayer.html5.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/js/jwplayer.html5.js Thu Oct 24 17:27:43 2013 +0200 @@ -0,0 +1,195 @@ +(function(f){f.html5={};f.html5.version="6.6.3896"})(jwplayer); +(function(f){f.parseDimension=function(g){if("string"==typeof g){if(""===g)return 0;if(!(-1e?"0":"")+e+":"+(10>g?"0":"")+g}return"00:00"};f.bounds=function(g){try{var b=g.getBoundingClientRect(g),e=window.pageYOffset,c=window.pageXOffset;return{left:b.left+c,right:b.right+c,top:b.top+e,bottom:b.bottom+ +e,width:b.right-b.left,height:b.bottom-b.top}}catch(a){return{left:0,right:0,width:0,height:0,top:0,bottom:0}}};f.empty=function(g){if(g)for(;0c.indexOf("url")?"url("+c+")":c+k;else switch(b){case "z-index":case "opacity":a=c+k;break a;default:a=b.match(/color/i)?"#"+f.pad(c.toString(16).replace(/^0x/i,""),6)+k:0===c?0+k:Math.ceil(c)+"px"+k}}}j(d[e][b])&&!j(a)?delete d[e][b]:j(a)&&(d[e][b]=a)}); +0h?(d*=j,r*=j):(d*=h,r*=h);case g.NONE:j=h=1;case g.EXACTFIT:A=!0;break;default:j>h?0.95=u.length||(u[z].data?s.populate(u[z].data):(C=a=u[z].file,g.ajax(a,y,k)),l(!1))}function w(){var a=[];a.push({label:"Off"});for(var b=0;b=n)){a=b;break}-1==a?c(""):a!=f&&(f=a,c(j[b].text))}function r(a,b){g(b, +function(b,c){a.style[b]=c})}var j,h,q,f,n,y="visible",k;this.hide=function(){r(h,{display:"none"});k&&(clearInterval(k),k=null)};this.populate=function(a){f=-1;j=a;d()};this.resize=function(){a()};h=document.createElement("div");q=document.createElement("span");h.appendChild(q);e.appendChild(h);r(h,{display:"block",height:"auto",position:"absolute",bottom:"20px",textAlign:"center",width:"100%"});r(q,{color:"#"+b.color.substr(-6),display:"inline-block",fontFamily:b.fontFamily,fontStyle:b.fontStyle, +fontWeight:b.fontWeight,height:"auto",margin:"auto",position:"relative",textAlign:"center",textDecoration:b.textDecoration,wordWrap:"break-word",width:"auto"});b.back?r(q,{background:"#000"}):r(q,{textShadow:"-2px 0px 1px #000,2px 0px 1px #000,0px -2px 1px #000,0px 2px 1px #000,-1px 1px 1px #000,1px 1px 1px #000,1px -1px 1px #000,1px 1px 1px #000"});this.show=function(){r(h,{display:"block"});k||(k=setInterval(a,250));a()};this.update=function(a){n=a;j&&d()}}})(jwplayer.html5); +(function(f){var g=f.html5,b=f.utils,e=f.events,c=e.state,a=b.css;f=b.transitionStyle;var d=b.isMobile(),r=b.isAndroid(4)&&!b.isChrome(),j="button",h="text",q="slider",A="100%",n={display:"none"},y={display:"block"},k={display:t},p=!1,l=!0,I=null,t=void 0,w=window,D=document;g.controlbar=function(f,m){function s(a,b,c){return{name:a,type:b,className:c}}function v(a){var c=p,e;a.duration==Number.POSITIVE_INFINITY||!a.duration&&b.isSafari()&&!d?$.setText(H.jwGetPlaylist()[H.jwGetPlaylistIndex()].title|| +"Live broadcast"):(L.elapsed&&(e=b.timeFormat(a.position),L.elapsed.innerHTML=e,c=e.length!=b.timeFormat(La).length),L.duration&&(e=b.timeFormat(a.duration),L.duration.innerHTML=e,c=c||e.length!=b.timeFormat(ua).length),0ca.right?a.offsetX(ca.right-c.right):c.lefta&&(a=0);0.9W.maxwidth;d=pa?0:W.margin;a(F(),{left:c? +"50%":d,right:c?t:d,"margin-left":c?S.clientWidth/-2:t,width:c?A:t});a(F(".jwfullscreen"),{display:pa||eb?"none":t});a(F(".jwvolumeH"),{display:pa?"block":"none"});a(F(".jwhd"),{display:!pa&&fa&&1d-ga?(x.jwSetFullscreen(),ga=void 0):ga=(new Date).getTime();var k=g.bounds(m.parentNode.querySelector(".jwcontrolbar")),f=g.bounds(m),d=k.left-10-f.left,j=k.left+30-f.left,l=f.bottom-40,h=f.bottom,n=k.right- +30-f.left,k=k.right+10-f.left;if(a&&!(c.x>=d&&c.x<=j&&c.y>=l&&c.y<=h)){if(c.x>=n&&c.x<=k&&c.y>=l&&c.y<=h){x.jwSetFullscreen();return}da.sendEvent(b.JWPLAYER_DISPLAY_CLICK);if(O)return}switch(x.jwGetState()){case e.PLAYING:case e.BUFFERING:x.jwPause();break;default:x.jwPlay()}}}function y(a,b){Y.showicons&&(a||b?(J.setRotation("buffer"==a?parseInt(Y.bufferrotation):0,parseInt(Y.bufferinterval)),J.setIcon(a),J.setText(b)):J.hide())}function k(a){u!=a?(u&&D(r,h),(u=a)?(a=new Image,a.addEventListener("load", +I,h),a.src=u):(c("#"+m.id+" "+r,{"background-image":void 0}),D(r,h),B=G=0)):u&&!O&&D(r,j);l(x.jwGetState())}function p(a){clearTimeout(ka);ka=setTimeout(function(){l(a.newstate)},100)}function l(a){a=Z?Z:x?x.jwGetState():e.IDLE;if(a!=Q)switch(Q=a,J&&J.setRotation(0),a){case e.IDLE:!F&&!P&&(u&&!C&&D(r,j),a=!0,x._model&&!1===x._model.config.displaytitle&&(a=!1),y("play",z&&a?z.title:""));break;case e.BUFFERING:F=h;M.error&&M.error.setText();P=h;y("buffer");break;case e.PLAYING:y();break;case e.PAUSED:y("play")}} +function I(){B=this.width;G=this.height;l(x.jwGetState());w();u&&c("#"+m.id+" "+r,{"background-image":"url("+u+")"})}function t(a){F=j;y("error",a.message)}function w(){0=M)clearInterval(C);else{M--;var c=Math.max(B.width,g.bounds(x).width-s.width-m.width);(g.isFF()||g.isIE())&&c++;g.isChrome()&&1==x.parentNode.clientWidth%2&&c++;b(A(),{"background-size":[m.width+a,c+a,s.width+a].join()},!0)}}function I(){E=(E+P)%360;g.rotate(u,E)}var t=j,w=t.skin,D=f,x,m,s,v,z,u,B,G=0,C,M;this.element=function(){return x};this.setText=function(a){var b=z.style;z.innerHTML=a?a.replace(":",":\x3cbr\x3e"):"";b.height="0";b.display= +"block";if(a)for(;2c.left&&a.offsetX(d.left-c.left+8);n.show();g.foreach(x,function(a,b){a!=k&&b.hide()})},!1);l.addEventListener("mouseout",function(){q=setTimeout(n.hide,100)},!1);m.appendChild(n.element()); +x[k]=n}}w++;p()}};z.removeButton=function(a){if(D[a]){s.removeChild(D[a].element);s.removeChild(D[a].divider);var b=document.getElementById(""+I+"_"+a+"_tooltip");b&&m.removeChild(b);delete D[a];w--;p()}};z.numButtons=function(){return w};z.visible=!1;m=y("div","jwdock");s=y("div","jwdockbuttons");m.appendChild(s);m.id=I;var u=k("button"),B=k("buttonOver"),G=k("buttonActive");u&&(b(n(),{height:u.height,padding:l.margin}),b(c,{height:u.height}),b(n("button"),g.extend(q(u),{width:u.width,cursor:"pointer", +border:d})),b(n("button:hover"),q(B)),b(n("button:active"),q(G)),b(n("button\x3ediv"),{opacity:l.iconalpha}),b(n("button:hover\x3ediv"),{opacity:l.iconalphaover}),b(n("button:active\x3ediv"),{opacity:l.iconalphaactive}),b(n(".jwoverlay"),{top:l.margin+u.height}),A("capLeft",s),A("capRight",s),A("divider"));setTimeout(function(){e(m)})};b(".jwdock",{opacity:0,display:d});b(".jwdock \x3e *",{height:"100%","float":"left"});b(".jwdock \x3e .jwoverlay",{height:"auto","float":d,"z-index":99});b(c+" button", +{position:"relative"});b(c+" \x3e *",{height:"100%","float":"left"});b(c+" .divider",{display:d});b(c+" button ~ .divider",{display:r});b(c+" .capLeft, "+c+" .capRight",{display:d});b(c+" .capRight",{"float":"right"});b(c+" button \x3e div",{left:0,right:0,top:0,bottom:0,margin:5,position:"absolute","background-position":"center","background-repeat":"no-repeat"});g.transitionStyle(".jwdock","background .25s, opacity .25s");g.transitionStyle(".jwdock .jwoverlay","opacity .25s");g.transitionStyle(c+ +" button div","opacity .25s")})(jwplayer.html5); +(function(f){var g=jwplayer,b=g.utils,e=g.events,c=e.state,a=g.playlist;f.instream=function(d,g,j,h){function q(a){a.type==e.JWPLAYER_MEDIA_ERROR&&(a=b.extend({},a),a.type=e.JWPLAYER_ERROR);l(a.type,a);O=!0;E.jwInstreamDestroy(!1)}function A(a){P.state=a.newstate;n(a)}function n(a){C&&l(a.type,a)}function y(){C&&u.play()}function k(){C&&setTimeout(function(){E.jwInstreamDestroy(!0)},10)}function p(a){a.width&&a.height&&x.resizeMedia()}function l(a,b,c){(C||c)&&M.sendEvent(a,b)}function I(){B&&B.redraw(); +G&&G.redraw()}var t={controlbarseekable:"never",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},w,D,x=j,m,s,v,z,u,B,G,C=!1,M,F,P,E=this,O=!1,U=!0;E.load=function(j,M){b.isAndroid(2.3)?q({type:e.JWPLAYER_ERROR,message:"Error loading instream: Cannot play instream on Android 2.3"}):(C=!0,D=b.extend(t,M),w=new a.item(j),F=document.createElement("div"),F.id=E.id+"_instream_container",m=h.detachMedia(),u=new f.video(m),u.addGlobalListener(n),u.addEventListener(e.JWPLAYER_MEDIA_META, +p),u.addEventListener(e.JWPLAYER_MEDIA_COMPLETE,k),u.addEventListener(e.JWPLAYER_MEDIA_BUFFER_FULL,y),u.addEventListener(e.JWPLAYER_MEDIA_ERROR,q),u.addEventListener(e.JWPLAYER_PLAYER_STATE,A),u.attachMedia(),u.mute(g.mute),u.volume(g.volume),P=new f.model({},u),P.setVolume(g.volume),P.setMute(g.mute),P.addEventListener(e.JWPLAYER_ERROR,q),z=g.playlist[g.item],v=g.getVideo().checkComplete()?c.IDLE:d.jwGetState(),h.checkBeforePlay()&&(v=c.PLAYING,U=!1),s=m.currentTime,P.setPlaylist([j]),O||((v==c.BUFFERING|| +v==c.PLAYING)&&m.pause(),G=new f.display(E),G.setAlternateClickHandler(function(a){d.jwGetControls()?(P.state==c.PAUSED?E.jwInstreamPlay():E.jwInstreamPause(),a.hasControls=!0):a.hasControls=!1;l(e.JWPLAYER_INSTREAM_CLICK,a)}),F.appendChild(G.element()),B=new f.controlbar(E),F.appendChild(B.element()),B.show(),d.jwGetControls()?(B.show(),G.show()):(B.hide(),G.hide()),x.setupInstream(F,B,G),I(),u.load(P.playlist[0])))};E.jwInstreamDestroy=function(a){if(C){C=!1;v!=c.IDLE?u.load(z,!1):u.stop();M.resetEventListeners(); +O||G.revertAlternateClickHandler();u.detachMedia();x.destroyInstream();if(B)try{B.element().parentNode.removeChild(B.getDisplayElement())}catch(b){}l(e.JWPLAYER_INSTREAM_DESTROYED,{reason:a?"complete":"destroyed"},!0);h.attachMedia();if(v==c.BUFFERING||v==c.PLAYING)m.play(),g.playlist[g.item]==z&&U&&g.getVideo().seek(s)}};E.jwInstreamAddEventListener=function(a,b){M.addEventListener(a,b)};E.jwInstreamRemoveEventListener=function(a,b){M.removeEventListener(a,b)};E.jwInstreamPlay=function(){C&&(u.play(!0), +g.state=jwplayer.events.state.PLAYING,G.show())};E.jwInstreamPause=function(){C&&(u.pause(!0),g.state=jwplayer.events.state.PAUSED,d.jwGetControls()&&G.show())};E.jwInstreamSeek=function(a){C&&u.seek(a)};E.jwInstreamSetText=function(a){B.setText(a)};E.jwPlay=function(){"true"==D.controlbarpausable.toString().toLowerCase()&&E.jwInstreamPlay()};E.jwPause=function(){"true"==D.controlbarpausable.toString().toLowerCase()&&E.jwInstreamPause()};E.jwStop=function(){"true"==D.controlbarstoppable.toString().toLowerCase()&& +(E.jwInstreamDestroy(),d.jwStop())};E.jwSeek=function(a){switch(D.controlbarseekable.toLowerCase()){case "always":E.jwInstreamSeek(a);break;case "backwards":P.position>a&&E.jwInstreamSeek(a)}};E.jwSeekDrag=function(a){P.seekDrag(a)};E.jwGetPosition=function(){};E.jwGetDuration=function(){};E.jwGetWidth=d.jwGetWidth;E.jwGetHeight=d.jwGetHeight;E.jwGetFullscreen=d.jwGetFullscreen;E.jwSetFullscreen=d.jwSetFullscreen;E.jwGetVolume=function(){return g.volume};E.jwSetVolume=function(a){P.setVolume(a);d.jwSetVolume(a)}; +E.jwGetMute=function(){return g.mute};E.jwSetMute=function(a){P.setMute(a);d.jwSetMute(a)};E.jwGetState=function(){return P.state};E.jwGetPlaylist=function(){return[w]};E.jwGetPlaylistIndex=function(){return 0};E.jwGetStretching=function(){return g.config.stretching};E.jwAddEventListener=function(a,b){M.addEventListener(a,b)};E.jwRemoveEventListener=function(a,b){M.removeEventListener(a,b)};E.jwSetCurrentQuality=function(){};E.jwGetQualityLevels=function(){return[]};E.skin=d.skin;E.id=d.id+"_instream"; +M=new e.eventdispatcher;d.jwAddEventListener(e.JWPLAYER_RESIZE,I);d.jwAddEventListener(e.JWPLAYER_FULLSCREEN,function(a){n(a);I();b.isIPad()&&(!a.fullscreen&&P.state==jwplayer.events.state.PAUSED)&&G.show(!0);b.isIPad()&&(!a.fullscreen&&P.state==jwplayer.events.state.PLAYING)&&G.hide()});return E}})(jwplayer.html5); +(function(f){var g=f.utils,b=g.css,e=f.events.state,c=f.html5.logo=function(a,d){function r(a){g.exists(a)&&a.stopPropagation&&a.stopPropagation();if(!y||!q.link)j.jwGetState()==e.IDLE||j.jwGetState()==e.PAUSED?j.jwPlay():j.jwPause();y&&q.link&&(j.jwPause(),j.jwSetFullscreen(!1),window.open(q.link,q.linktarget))}var j=a,h=j.id+"_logo",q,A,n=c.defaults,y=!1;this.resize=function(){};this.element=function(){return A};this.offset=function(a){b("#"+h+" ",{"margin-bottom":a})};this.position=function(){return q.position}; +this.margin=function(){return parseInt(q.margin)};this.hide=function(a){if(q.hide||a)y=!1,A.style.visibility="hidden",A.style.opacity=0};this.show=function(){y=!0;A.style.visibility="visible";A.style.opacity=1};var k="o";j.edition&&(k=j.edition(),k="pro"==k?"p":"premium"==k?"r":"ads"==k?"a":"free"==k?"f":"o");if("o"==k||"f"==k)n.link="http://www.longtailvideo.com/jwpabout/?a\x3dl\x26v\x3d"+f.version+"\x26m\x3dh\x26e\x3d"+k;q=g.extend({},n,d);q.hide="true"==q.hide.toString();A=document.createElement("img"); +A.className="jwlogo";A.id=h;if(q.file){var n=/(\w+)-(\w+)/.exec(q.position),k={},p=q.margin;3==n.length?(k[n[1]]=p,k[n[2]]=p):k.top=k.right=p;b("#"+h+" ",k);A.src=(q.prefix?q.prefix:"")+q.file;g.isMobile()?(new g.touch(A)).addEventListener(g.touchEvents.TAP,r):A.onclick=r}else A.style.display="none";return this};c.defaults={prefix:g.repo(),file:"logo.png",linktarget:"_top",margin:8,hide:!1,position:"top-right"};b(".jwlogo",{cursor:"pointer",position:"absolute","z-index":100,opacity:0});g.transitionStyle(".jwlogo", +"visibility .25s, opacity .25s")})(jwplayer); +(function(f){var g=f.html5,b=f.utils,e=b.css,c=void 0;g.menu=function(a,d,f,j){function h(a){return!a||!a.src?{}:{background:"url("+a.src+") no-repeat left","background-size":a.width+"px "+a.height+"px"}}function q(a,b){return function(){I(a);y&&y(b)}}function A(a,b){var c=document.createElement("div");a&&(c.className=a);b&&b.appendChild(c);return c}function n(a){return(a=f.getSkinElement("tooltip",a))?a:{width:0,height:0,src:c}}var y=j,k=new g.overlay(d+"_overlay",f);j=b.extend({fontcase:c,fontcolor:"#cccccc", +fontsize:11,fontweight:c,activecolor:"#ffffff",overcolor:"#ffffff"},f.getComponentSettings("tooltip"));var p,l=[];this.element=function(){return k.element()};this.addOption=function(a,c){var e=A("jwoption",p);e.id=d+"_option_"+c;e.innerHTML=a;b.isMobile()?(new b.touch(e)).addEventListener(b.touchEvents.TAP,q(l.length,c)):e.addEventListener("click",q(l.length,c));l.push(e)};this.clearOptions=function(){for(;0a?(a=0,c=!0):a=-1==a||a>d.playlist.length?d.playlist.length-1:a;if(c||a!=d.item)d.item=a,d.sendEvent(b.JWPLAYER_PLAYLIST_ITEM,{index:d.item})};d.setVolume=function(c){d.mute&& +0a&&(a=0);1parseFloat(jwplayer.version))&&p("Incompatible player version"); +if(0===a.length)k(y);else for(c=0;ch[b].end;)b++;b==h.length&&b--;if(h[b].text)if(a=h[b].text,0>a.indexOf("://")&&(a=q?q+"/"+a:a),0B)&&aa(B);h()}},emptied:j,ended:function(){O&&C!=e.IDLE&&(J=-1,Y=c,f(b.JWPLAYER_MEDIA_BEFORECOMPLETE),O&&(l(e.IDLE),Y=a,f(b.JWPLAYER_MEDIA_COMPLETE)))}, +error:function(){O&&(g.log("Error playing media: %o",m.error),E.sendEvent(b.JWPLAYER_MEDIA_ERROR,{message:"Error loading media: File could not be played"}),l(e.IDLE))},loadeddata:j,loadedmetadata:q,loadstart:j,pause:n,play:n,playing:n,progress:function(){z&&(0J&&(J=0);for(a=0;aa)&&(J=a,g.saveCookie("qualityLabel",U[a].label),f(b.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:a,levels:k(U)}),a=m.currentTime, +p(),Q.seek(a)))};Q.getCurrentQuality=function(){return J};Q.getQualityLevels=function(){return k(U)};m=d;g.foreach(w,function(b,c){m.addEventListener(b,c,a)});m.controls=c;m.controls=a;m.setAttribute("x-webkit-airplay","allow");O=c}})(jwplayer); +(function(f){var g=jwplayer.utils,b=jwplayer.events,e=b.state,c=g.css,a=g.isMobile(),d=g.isIPad(),r=g.isIPod(),j=g.isAndroid(),h=g.isIOS(),q=document,A="aspectMode",n="jwmain",y="jwvideo",k="jwplaylistcontainer",p=!0,l=!1,I="hidden",t="none",w="block";f.view=function(D,x){function m(a){a&&(a.element().addEventListener("mousemove",u,l),a.element().addEventListener("mouseout",B,l))}function s(a,b){var c=q.createElement(a);b&&(c.className=b);return c}function v(){clearTimeout(ma);ma=setTimeout(Q,Ia)} +function z(){clearTimeout(ma);if(X.jwGetState()==e.PAUSED||X.jwGetState()==e.PLAYING)Y(),ua||(ma=setTimeout(Q,Ia))}function u(){clearTimeout(ma);ua=p}function B(){ua=l}function G(a){fa.sendEvent(a.type,a)}function C(a,d,e){g.exists(e)||(e=p);g.exists(a)&&g.exists(d)&&(K.width=a,K.height=d);T.style.width=isNaN(a)?a:a+"px";-1==T.className.indexOf(A)&&(T.style.height=isNaN(d)?d:d+"px");V&&V.redraw();R&&R.redraw(p);H&&(H.offset(R&&0<=H.position().indexOf("bottom")?R.height()+R.margin():0),setTimeout(function(){N&& +N.offset("top-left"==H.position()?H.element().clientWidth+H.margin():0)},500));a=K.playlistsize;var f=K.playlistposition;M(d);if(Ea&&a&&("right"==f||"bottom"==f)){Ea.redraw();d={display:w};var h={};d[f]=0;h[f]=a;"right"==f?d.width=a:d.height=a;c(qa(k),d);c(qa(n),h)}F();e&&fa.sendEvent(b.JWPLAYER_RESIZE)}function M(a){var b=g.bounds(T);W=0=b.height;R&&(W?(R.audioMode(p),Y(),V.hidePreview(p),V&&V.hide(), +da(l)):(R.audioMode(l),ab(X.jwGetState())));H&&W&&H&&H.hide(W);T.style.backgroundColor=W?"transparent":"#000"}function F(){ba&&-1==T.className.indexOf(A)&&g.stretch(K.stretching,ba,ta.clientWidth,ta.clientHeight,ba.videoWidth,ba.videoHeight)}function P(a){if(K.fullscreen)switch(a.keyCode){case 27:Na(l)}}function E(a){h||(a?(T.className+=" jwfullscreen",q.getElementsByTagName("body")[0].style["overflow-y"]=I):(T.className=T.className.replace(/\s+jwfullscreen/,""),q.getElementsByTagName("body")[0].style["overflow-y"]= +""))}function O(){var a;a:{a=[q.mozFullScreenElement,q.webkitCurrentFullScreenElement,ba.webkitDisplayingFullscreen];for(var b=0;bc||c>d)}else d=void 0;if(d)return h;d=a.substring(0,a.indexOf("://")+3);var c=a.substring(d.length,a.indexOf("/",d.length+1)),e;0===h.indexOf("/")?e=h.split("/"):(e=a.split("?")[0],e=e.substring(d.length+c.length+1,e.lastIndexOf("/")),e=e.split("/").concat(h.split("/"))); -for(var g=[],m=0;md&&0>c&&(!a||!isNaN(a))?n.CDN:n.RELATIVE}};b.getPluginName=function(a){return a.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};b.getPluginVersion=function(a){return a.replace(/[^-]*-?([^\.]*).*$/,"$1")}; -b.isYouTube=function(a){return-1=d.length&&(d[1]=0);for(var n=a.strToLongs(e.encode(b).slice(0,16)),h=d.length,f=d[h-1],p=d[0],q,j=Math.floor(6+52/h),g=0;0>>2&3;for(var m=0;m>>5^p<<2)+(p>>>3^f<<4)^(g^p)+(n[m&3^q]^f),f=d[m]+=f}d=a.longsToStr(d);return k.encode(d)};a.decrypt=function(c, -b){if(0==c.length)return"";for(var d=a.strToLongs(k.decode(c)),n=a.strToLongs(e.encode(b).slice(0,16)),h=d.length,f=d[h-1],p=d[0],q,j=2654435769*Math.floor(6+52/h);0!=j;){q=j>>>2&3;for(var g=h-1;0<=g;g--)f=d[0>>5^p<<2)+(p>>>3^f<<4)^(j^p)+(n[g&3^q]^f),p=d[g]-=f;j-=2654435769}d=a.longsToStr(d);d=d.replace(/\0+$/,"");return e.decode(d)};a.strToLongs=function(a){for(var b=Array(Math.ceil(a.length/4)),d=0;d>>8&255,a[d]>>>16&255,a[d]>>>24&255);return b.join("")};var k={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,b){var d,n,h,f,p=[],q="",j,g,m=k.code;g=("undefined"==typeof b?0:b)?e.encode(a):a;j=g.length%3;if(0j++;)q+="\x3d",g+="\x00";for(j=0;j>18&63,n=f>>12&63,h=f>>6&63,f&=63,p[j/3]=m.charAt(d)+m.charAt(n)+m.charAt(h)+m.charAt(f);p=p.join("");return p=p.slice(0,p.length-q.length)+q},decode:function(a,b){b="undefined"==typeof b?!1:b;var d,f,h,r,p,q=[],j,g=k.code;j=b?e.decode(a):a;for(var m=0;m>>16&255,f=h>>>8&255,h&=255,q[m/4]=String.fromCharCode(d,f, -h),64==p&&(q[m/4]=String.fromCharCode(d,f)),64==r&&(q[m/4]=String.fromCharCode(d));r=q.join("");return b?e.decode(r):r}},e={encode:function(a){a=a.replace(/[\u0080-\u07ff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(192|a>>6,128|a&63)});return a=a.replace(/[\u0800-\uffff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)})},decode:function(a){a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&15)<<12| -(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(a)});return a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(a)})}}}(jwplayer.utils),function(f){f.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_SETUP_ERROR:"jwplayerSetupError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay", +"undefined"==typeof jwplayer&&(jwplayer=function(d){if(jwplayer.api)return jwplayer.api.selectPlayer(d)},jwplayer.version="6.6.3896",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(d){function a(b){return function(){return c(b)}}function k(b){return function(){b("Error loading file")}}function f(m,a,e,g){return function(){try{var c=m.responseXML;if(c&&c.firstChild)return e(m)}catch(j){}(c=b.parseXML(m.responseText))&& +c.firstChild?(m=b.extend({},m,{responseXML:c}),e(m)):g&&g(m.responseText?"Invalid XML":a)}}var h=document,e=window,j=navigator,b=d.utils=function(){};b.exists=function(b){switch(typeof b){case "string":return 0g||g>c)}else c=void 0;if(c)return a;c=e.substring(0,e.indexOf("://")+3);var g=e.substring(c.length,e.indexOf("/",c.length+1)),j;0===a.indexOf("/")?j=a.split("/"):(j=e.split("?")[0],j=j.substring(c.length+g.length+1,j.lastIndexOf("/")),j=j.split("/").concat(a.split("/")));for(var f=[],t=0;tc&&0>e&&(!a||!isNaN(a))?n.CDN:n.RELATIVE}};b.getPluginName=function(b){return b.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};b.getPluginVersion=function(b){return b.replace(/[^-]*-?([^\.]*).*$/,"$1")};b.isYouTube=function(b){return/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(b)};b.youTubeID=function(b){try{return/v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(b).slice(1).join("").replace("?", +"")}catch(a){return""}};b.isRtmp=function(b,a){return 0==b.indexOf("rtmp")||"rtmp"==a};b.foreach=function(a,c){var e,g;for(e in a)"function"==b.typeOf(a.hasOwnProperty)?a.hasOwnProperty(e)&&(g=a[e],c(e,g)):(g=a[e],c(e,g))};b.isHTTPS=function(){return 0==e.location.href.indexOf("https")};b.repo=function(){var a="http://p.jwpcdn.com/"+d.version.split(/\W/).splice(0,2).join("/")+"/";try{b.isHTTPS()&&(a=a.replace("http://","https://ssl."))}catch(c){}return a};b.ajax=function(a,c,j){var g;0=j.length&&(j[1]=0);for(var b=a.strToLongs(f.encode(e).slice(0,16)),c=j.length,d=j[c-1],m=j[0],p,l=Math.floor(6+52/c),g=0;0>>2&3;for(var q=0;q>>5^m<<2)+(m>>>3^d<<4)^(g^m)+(b[q&3^p]^d),d=j[q]+=d}j=a.longsToStr(j);return k.encode(j)};a.decrypt=function(h, +e){if(0==h.length)return"";for(var j=a.strToLongs(k.decode(h)),b=a.strToLongs(f.encode(e).slice(0,16)),c=j.length,d=j[c-1],m=j[0],p,l=2654435769*Math.floor(6+52/c);0!=l;){p=l>>>2&3;for(var g=c-1;0<=g;g--)d=j[0>>5^m<<2)+(m>>>3^d<<4)^(l^m)+(b[g&3^p]^d),m=j[g]-=d;l-=2654435769}j=a.longsToStr(j);j=j.replace(/\0+$/,"");return f.decode(j)};a.strToLongs=function(a){for(var e=Array(Math.ceil(a.length/4)),j=0;j>>8&255,a[j]>>>16&255,a[j]>>>24&255);return e.join("")};var k={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,e){var j,b,c,d,m=[],p="",l,g,q=k.code;g=("undefined"==typeof e?0:e)?f.encode(a):a;l=g.length%3;if(0l++;)p+="\x3d",g+="\x00";for(l=0;l>18&63,b=d>>12&63,c=d>>6&63,d&=63,m[l/3]=q.charAt(j)+q.charAt(b)+q.charAt(c)+q.charAt(d);m=m.join("");return m=m.slice(0,m.length-p.length)+p},decode:function(a,e){e="undefined"==typeof e?!1:e;var j,b,c,d,m,p=[],l,g=k.code;l=e?f.decode(a):a;for(var q=0;q>>16&255,b=c>>>8&255,c&=255,p[q/4]=String.fromCharCode(j,b, +c),64==m&&(p[q/4]=String.fromCharCode(j,b)),64==d&&(p[q/4]=String.fromCharCode(j));d=p.join("");return e?f.decode(d):d}},f={encode:function(a){a=a.replace(/[\u0080-\u07ff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(192|a>>6,128|a&63)});return a=a.replace(/[\u0800-\uffff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)})},decode:function(a){a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&15)<<12| +(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(a)});return a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(a)})}}}(jwplayer.utils),function(d){d.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_SETUP_ERROR:"jwplayerSetupError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay", JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",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_MEDIA_LEVELS:"jwplayerMediaLevels",JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete", -JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick",JWPLAYER_CONTROLS:"jwplayerViewControls",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed",JWPLAYER_AD_TIME:"jwplayerAdTime",JWPLAYER_AD_ERROR:"jwplayerAdError",JWPLAYER_AD_CLICK:"jwplayerAdClicked",JWPLAYER_AD_COMPLETE:"jwplayerAdComplete",JWPLAYER_AD_IMPRESSION:"jwplayerAdImpression",JWPLAYER_AD_COMPANIONS:"jwplayerAdCompanions"}}(jwplayer),function(f){var a=jwplayer.utils;f.eventdispatcher=function(f, -e){var c,b;this.resetEventListeners=function(){c={};b=[]};this.resetEventListeners();this.addEventListener=function(b,e,h){try{a.exists(c[b])||(c[b]=[]),"string"==a.typeOf(e)&&(e=(new Function("return "+e))()),c[b].push({listener:e,count:h})}catch(f){a.log("error",f)}return!1};this.removeEventListener=function(b,e){if(c[b]){try{for(var h=0;hparseFloat(f.version)))p=!0,q="Incompatible player version",d()}); -0==b&&d()}}var h=a.loaderstatus.NEW,r=!1,p=!1,q,j=b,g=new k.eventdispatcher;a.extend(this,g);this.setupPlugins=function(b,d,g){var h={length:0,plugins:{}},m=0,f={},j=c.getPlugins();e(d.plugins,function(c,e){var A=a.getPluginName(c),n=j[A],k=n.getFlashPath(),p=n.getJS(),q=n.getURL();k&&(h.plugins[k]=a.extend({},e),h.plugins[k].pluginmode=n.getPluginmode(),h.length++);try{if(p&&d.plugins&&d.plugins[q]){var r=document.createElement("div");r.id=b.id+"_"+A;r.style.position="absolute";r.style.top=0;r.style.zIndex= -m+10;f[A]=n.getNewInstance(b,a.extend({},d.plugins[q]),r);m++;b.onReady(g(f[A],r,!0));b.onResize(g(f[A],r))}}catch(E){a.log("ERROR: Failed to load "+A+".")}});b.plugins=f;return h};this.load=function(){if(!(a.exists(b)&&"object"!=a.typeOf(b))){h=a.loaderstatus.LOADING;e(b,function(b){a.exists(b)&&(b=c.addPlugin(b),b.addEventListener(k.COMPLETE,n),b.addEventListener(k.ERROR,m))});var d=c.getPlugins();e(d,function(a,b){b.load()})}n()};var m=this.pluginFailed=function(){p||(p=!0,q="File not found",d())}; -this.getStatus=function(){return h}}}(jwplayer),function(f){f.playlist=function(a){var k=[];if("array"==f.utils.typeOf(a))for(var e=0;em.playlist.length&&(0==m.playlist.length||!m.playlist[0].sources|| -0==m.playlist[0].sources.length))p();else if(y.getStatus()==a.loaderstatus.COMPLETE){for(var f=0;f=d||0>=c?0:100*(c/d)+"%")}-1==b.width.toString().indexOf("%")?delete b.aspectratio:d?b.aspectratio=d:delete b.aspectratio;return b}).addConfig=function(b,c){a(c);return e.extend(b,c)}}(jwplayer),function(f){var a=f.utils,k=document;f.embed.download=function(e,c,b){function d(b,c){for(var d=k.querySelectorAll(b),e=0;eg)return j.sendEvent(k.ERROR,{message:"Flash version must be 10.0 or greater"}), -!1;var f,l,t=h.config.listbar,u=a.extend({},d);if(c.id+"_wrapper"==c.parentNode.id)f=document.getElementById(c.id+"_wrapper");else{f=document.createElement("div");l=document.createElement("div");l.style.display="none";l.id=c.id+"_aspect";f.id=c.id+"_wrapper";f.style.position="relative";f.style.display="block";f.style.width=a.styleDimension(u.width);f.style.height=a.styleDimension(u.height);if(h.config.aspectratio){var w=parseFloat(h.config.aspectratio);l.style.display="block";l.style.marginTop=h.config.aspectratio; -f.style.height="auto";f.style.display="inline-block";t&&("bottom"==t.position?l.style.paddingBottom=t.size+"px":"right"==t.position&&(l.style.marginBottom=-1*t.size*(w/100)+"px"))}c.parentNode.replaceChild(f,c);f.appendChild(c);f.appendChild(l)}f=n.setupPlugins(h,u,p);0= -u.height?"transparent":"opaque";l="height width modes events primary base fallback volume".split(" ");for(t=0;tparseFloat(d.version)))m=!0,p="Incompatible player version",j()}); +0==b&&j()}}var c=a.loaderstatus.NEW,n=!1,m=!1,p,l=e,g=new k.eventdispatcher;a.extend(this,g);this.setupPlugins=function(b,c,e){var g={length:0,plugins:{}},j=0,d={},n=h.getPlugins();f(c.plugins,function(f,h){var k=a.getPluginName(f),l=n[k],m=l.getFlashPath(),q=l.getJS(),p=l.getURL();m&&(g.plugins[m]=a.extend({},h),g.plugins[m].pluginmode=l.getPluginmode(),g.length++);try{if(q&&c.plugins&&c.plugins[p]){var A=document.createElement("div");A.id=b.id+"_"+k;A.style.position="absolute";A.style.top=0;A.style.zIndex= +j+10;d[k]=l.getNewInstance(b,a.extend({},c.plugins[p]),A);j++;b.onReady(e(d[k],A,!0));b.onResize(e(d[k],A))}}catch(D){a.log("ERROR: Failed to load "+k+".")}});b.plugins=d;return g};this.load=function(){if(!(a.exists(e)&&"object"!=a.typeOf(e))){c=a.loaderstatus.LOADING;f(e,function(c){a.exists(c)&&(c=h.addPlugin(c),c.addEventListener(k.COMPLETE,b),c.addEventListener(k.ERROR,q))});var g=h.getPlugins();f(g,function(a,b){b.load()})}b()};var q=this.pluginFailed=function(){m||(m=!0,p="File not found",j())}; +this.getStatus=function(){return c}}}(jwplayer),function(){jwplayer.parsers={localName:function(d){return d?d.localName?d.localName:d.baseName?d.baseName:"":""},textContent:function(d){return d?d.textContent?d.textContent:d.text?d.text:"":""},getChildNode:function(d,a){return d.childNodes[a]},numChildren:function(d){return d.childNodes?d.childNodes.length:0}}}(jwplayer),function(d){var a=d.parsers;(a.jwparser=function(){}).parseEntry=function(k,f){for(var h=[],e=[],j=d.utils.xmlAttribute,b=0;br.playlist.length&&(0==r.playlist.length||!r.playlist[0].sources|| +0==r.playlist[0].sources.length))p();else if(!z)if("string"==a.typeOf(r.playlist)){var g=new d.playlist.loader;g.addEventListener(k.JWPLAYER_PLAYLIST_LOADED,function(a){r.playlist=a.playlist;z=h;n()});g.addEventListener(k.JWPLAYER_ERROR,function(a){z=h;p(a)});z=f;g.load(r.playlist)}else if(y.getStatus()==a.loaderstatus.COMPLETE){for(g=0;g=j||0>=b?0:100*(b/j)+"%")}-1==e.width.toString().indexOf("%")?delete e.aspectratio:j?e.aspectratio=j:delete e.aspectratio;return e}).addConfig=function(e,d){a(d);return f.extend(e,d)}}(jwplayer),function(d){var a=d.utils,k=document;d.embed.download=function(d,h,e){function j(b,c){for(var e=k.querySelectorAll(b),d=0;dq)return g.sendEvent(k.ERROR,{message:"Flash version must be 10.0 or greater"}),!1;var d,h,u=n.config.listbar,v=a.extend({}, +b);if(e.id+"_wrapper"==e.parentNode.id)d=document.getElementById(e.id+"_wrapper");else{d=document.createElement("div");h=document.createElement("div");h.style.display="none";h.id=e.id+"_aspect";d.id=e.id+"_wrapper";d.style.position="relative";d.style.display="block";d.style.width=a.styleDimension(v.width);d.style.height=a.styleDimension(v.height);if(n.config.aspectratio){var w=parseFloat(n.config.aspectratio);h.style.display="block";h.style.marginTop=n.config.aspectratio;d.style.height="auto";d.style.display= +"inline-block";u&&("bottom"==u.position?h.style.paddingBottom=u.size+"px":"right"==u.position&&(h.style.marginBottom=-1*u.size*(w/100)+"px"))}e.parentNode.replaceChild(d,e);d.appendChild(e);d.appendChild(h)}d=c.setupPlugins(n,v,p);0=v.height?"transparent":"opaque";h="height width modes events primary base fallback volume".split(" "); +for(u=0;u