(function(a){var c=!1,b=[],d=[],f=!1,h=!1,g=null,e={},j={},o=function(){0<$("#videos").find(".jspPane").find(".videos_carousel").length?SF.Player.refreshCarousel():A&&A.reinitialise()},n=!1,q=function(){n||(fetchingMoreVideos=!0,0<p.length?(n=!0,$.ajax({type:"get",url:e.earlierVideosUrl(SF.Player.channel.id,p[0].video_id),success:function(a){$("#videos").find(".load_progress.first_video").remove();$("#videos").find(".videos_container").prepend(a);o();SF.Player.VideoPlayer.current()&&SF.Player.moveVideoToTopOfScrollPane(SF.Player.VideoPlayer.current(),
!1);n=!1},error:function(){n=!1}})):f=!0)},m=!1,t=function(){m||(0<p.length?(m=!0,$.ajax({type:"get",url:e.laterVideosUrl(SF.Player.channel.id,p[p.length-1].video_id),success:function(a){$("#videos").find(".load_progress.last_video").remove();$("#videos").find(".videos_container").append(a);o();m=!1},error:function(){m=!1}})):h=!0)},v=function(){f&&h?g&&clearInterval(g):((f?0:"function"===typeof e.needEarlierVideos&&e.needEarlierVideos())&&q(),(h?0:"function"===typeof e.needLaterVideos&&e.needLaterVideos())&&
t())},x=function(a,b){a?SF.Player.VideoPlayer.load(a.video,!b,w):"function"===typeof j.selectNextChannel&&j.selectNextChannel()},p=[],l=function(){var a,b=$.inArray(SF.Player.currentChannelVideo(),p);if(D()){for(a=b+1;a<b+p.length&&(!(a>=p.length)||B());a++)if(!channelVideoHasBeenSeen(p[a%p.length]))return p[a%p.length];return null}return b+1>=p.length&&!B()?null:p[(b+1)%p.length]},y=function(){var a=$.inArray(SF.Player.currentChannelVideo(),p);return p[(p.length+a-1)%p.length]},z=function(a){var b;
$("#videos").find(".video[data-video-id="+a+"]").slideUp(function(){$(this).remove()});for(b=0;b<p.length;b++)if(p[b].video.id==a){p.splice(b,1);break}},s=0,k=function(a){$("#videos").find(".video[data-video-id="+a.id+"]").removeClass("unseen")},u={},w={onLoadStart:function(a,b){var c=SF.Utils.currentUri(),d,e=a.title+" | "+SF.Player.channel.display_name+" | ShortForm";SF.Player.embedded?(d=SF.Helpers.Channel.embedPath(SF.Player.channel,a),c.query&&(d+="?"+c.query)):d=SF.Helpers.Channel.watchPath(SF.Player.channel,
a);"/widget"!==c.path&&SF.Utils.replaceHistoryState(a,e,d);$("#videos").find(".video").removeClass("selected");$("#videos").find(".video[data-video-id="+a.id+"]").addClass("selected");SF.Player.VideoPlayer.hasFeature(SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO)&&SF.Models.VideoAction.create({channel_id:SF.Player.channel.id,video_id:a&&a.id});if("function"===typeof u.onLoadStart)u.onLoadStart(a,b)},onStart:function(a){SF.Player.channel.has_played||(SF.Tracker.trackPageView("/channel:/"+SF.Player.channel.user.user_name+
"/"+SF.Player.channel.name),SF.Player.channel.has_played=!0);k(a);SF.Tracker.trackPageView("/video:/"+SF.Player.channel.user.user_name+"/"+SF.Player.channel.name+"/"+a.title_for_url);SF.Tracker.trackEvent("VIDEO","source-view",a.source_name);SF.Tracker.trackEvent("CHANNEL","play","started-"+SF.Utils.padNumber(s,3));s++;if("function"===typeof u.onStart)u.onStart(a)},onPlay:function(a){if("function"===typeof u.onPlay)u.onPlay(a)},onPause:function(a){if("function"===typeof u.onPause)u.onPause(a)},onError:function(a,
b){var c=l();SF.Player.VideoPlayer.hasFeature(SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO)&&($.post("/videos/track_error",{id:a.id}),a.is_available=!1,z(a.id));SF.Player.Alert.show({message:{template:SF.Locale.VIDEO_NOT_PLAYABLE},submessage:{template:SF.Locale.VIDEO_NOT_PLAYABLE_SUB,params:{video_title:a.title}},onResume:function(){SF.Player.playChannelVideo(c)}});if("function"===typeof u.onError)u.onError(a,b)},onFinish:function(a){SF.Player.playChannelVideo(l());a.start_at=0;if("function"===typeof u.onFinish)u.onFinish(a)}};
$(a).unload(function(){var a;try{(a=SF.Player.currentChannelVideo())&&a.video&&SF.Player.channel&&SF.Tracker.trackPageView("/exit:/"+SF.Player.channel.user.user_name+"/"+SF.Player.channel.name+"/"+a.video.title_for_url)}catch(b){}});var D=function(){return!1},B=function(){return!0},C=!1,A;SF.Player={channel:null,registerPlayNew:function(a){D=a},registerLoop:function(a){B=a},registerVideoCallbacks:function(a){u=a||{}},registerVideosScrollApi:function(a){A=a},registerFetchVideoFunctions:function(a){e=
a||{}},registerChannelNavigationFunctions:function(a){j=a||{}},setPlayerReady:function(){if(!c){var a;for(a=0;a<b.length;a++)b[a]();c=!0}},refreshCarousel:function(a){var b=$("#videos").find(".jspPane").find(".videos_carousel"),c=0;0<b.length&&(b.children().each(function(a,b){c+=$(b).outerWidth(!0)}),b.width(c),A&&(a||c!==A.getContentWidth())&&A.reinitialise())},currentChannelVideo:function(){var a,b;(a=(a=SF.Player.VideoPlayer.current())?a.id:SF.Player.videoIdFromHistory())&&(b=SF.Player.findChannelVideoByVideoId(a));
b||(b=p[0]);return b},playChannelVideo:function(a){x(a,!0)},playPrevious:function(){SF.Player.playChannelVideo(y())},playNext:function(){SF.Player.playChannelVideo(l())},findChannelVideoByVideoId:function(a){var b;for(b=0;b<p.length;b++)if(p[b].video.id==a)return p[b];return null},videoIdFromHistory:function(){var a;return(a=SF.Utils.getHistoryState())?a.id:(a=SF.Utils.currentUri().path.match(/\/(watch|embed)\/([0-9]+)_/))&&a[2]?a[2]:null},addChannelVideo:function(a){var b;for(b=0;b<p.length;b++)if(-1===
(a.play_order<p[b].play_order?-1:a.play_order>p[b].play_order?1:a.created_at<p[b].created_at?-1:a.created_at>p[b].created_at?1:0)){p.splice(b,0,a);return}p.push(a);d.push(a.video.id)},getVideoActions:function(){videoIds=d;SF.Models.VideoAction.findAllByUserIdAndVideoIds(SF.currentUser.id,videoIds,{success:function(a){for(var b=SF.Utils.getAjaxPayload(a),a=0;a<videoIds.length;a++)videoIds[a]!=SF.Player.VideoPlayer.current().id&&$("#videos").find(".video[data-video-id="+videoIds[a]+"]").addClass("unseen");
for(a=0;a<b.length;a++){var c=b[a];for(i=0;i<p.length;i++)if(p[i].video.id==c.video_id){p[i].video.video_action=c;k(p[i].video);1==c.rating&&activateLikeButton(c.video_id,!0);break}}}});d=[]},onPlayerReady:function(a){c?a():b.push(a)},updateHasFirstVideo:function(a){var b=$("#videos");0<b.find(".videos_container").length&&(b=b.find(".videos_container"));f=f||a;b.find(".load_progress.first_video").remove();f||(b.prepend('<div class="load_progress first_video"><div class="progress small"></div></div>'),
o())},updateHasLastVideo:function(a){var b=$("#videos"),c="progress small";0<b.find(".videos_container").length&&(b=b.find(".videos_container"));h=h||a;b.find(".load_progress.last_video").remove();h&&(c+=" done");b.append('<div class="load_progress last_video"><div class="'+c+'"></div></div>');o()},moveVideoToTopOfScrollPane:function(a,b){A&&A.scrollToElement($("#videos").find(".video[data-video-id="+a.id+"]"),!0,b)},bindHotKeys:function(){$(document).keydown(function(a){if(!SF.Player.VideoPlayer.canChangeVideo())return!0;
switch(a.keyCode){case SF.Utils.KEY_CODE.KEY_LEFT:return SF.Player.playPrevious(),!1;case SF.Utils.KEY_CODE.KEY_RIGHT:return SF.Player.playNext(),!1;case SF.Utils.KEY_CODE.SPACE:return SF.Player.Controller.togglePause(),!1;case SF.Utils.KEY_CODE.KEY_DOWN:if(C&&"function"===typeof j.selectNextChannel)j.selectNextChannel();else break;case SF.Utils.KEY_CODE.KEY_UP:if(C&&"function"===typeof j.selectPreviousChannel)j.selectPreviousChannel();else break;case SF.Utils.KEY_CODE.M_LOWER:return SF.Player.VideoPlayer.toggleMute(),
!1;case SF.Utils.KEY_CODE.CTRL:C=!0}return!0});$(document).keyup(function(a){switch(a.keyCode){case SF.Utils.KEY_CODE.CTRL:C=!1}return!0})},unbindHotKeys:function(){$(document).unbind("keydown");$(document).unbind("keyup")}};SF.Player.onPlayerReady(function(){var a=SF.Utils.currentUri(),b=function(){"function"===typeof j.selectNextChannel&&j.selectNextChannel()};0==SF.Player.channel.videos_count?SF.Player.channel.user.id==SF.currentUser.id?"friends"===SF.Player.channel.name?SF.Player.Alert.emptyFriendsChannel(b):
"likes"===SF.Player.channel.name?SF.Player.Alert.emptyLikesChannel(b):SF.Player.Alert.emptyMyChannel(b):SF.Player.Alert.emptySelectedChannel(b):(SF.Player.VideoPlayer.init({width:SF.Layout.playerWidth,height:SF.Layout.playerHeight}),x(SF.Player.currentChannelVideo(),!SF.Player.embedded||"true"===a.queryKey.autoplay));g=setInterval(v,100)})})(this);
(function(){var a=null,c=null,b=function(){SF.Player.VideoPlayer.isPaused(function(b){a=function(){SF.Player.Controller.playChannel();b||SF.Player.VideoPlayer.play()}})};SF.Player.Alert={show:function(d){var f,h,g=["message","submessage"],e,j,d=d||{};c&&(clearTimeout(c),c=null);"function"===typeof d.onResume?a=d.onResume:b();for(f=0;f<g.length;f++){e=d[g[f]]&&d[g[f]].template||"";j=d[g[f]]&&d[g[f]].params||{};for(h in j)e=e.replace(RegExp("<"+h+">"),j[h]);$("#player-message ."+g[f]).html(e)}SF.Player.VideoPlayer.pause();
SF.Player.VideoPlayer.activePlayer&&$("#"+SF.Player.VideoPlayer.activePlayer.elemId).hide();d.hideContinue?$("#player-message").find(".continue").hide():$("#player-message").find(".continue").show();$(".player_curtain").hide();$("#player-message").show();0!==d.duration&&(c=setTimeout(function(){SF.Player.Alert.hide()},d.duration||5E3))},emptyMyChannel:function(a){this.show({message:{template:SF.Locale.EMPTY_MY_CHANNEL},submessage:{template:SF.Locale.EMPTY_MY_CHANNEL_SUB},onResume:a})},channelNotFound:function(a){this.show({message:{template:SF.Locale.CHANNEL_NOT_FOUND},
submessage:{template:SF.Locale.CHANNEL_NOT_FOUND_SUB},onResume:a})},emptySelectedChannel:function(a){this.show({message:{template:SF.Locale.EMPTY_CHANNEL},submessage:{template:a?SF.Locale.EMPTY_CHANNEL_SUB:""},onResume:a})},emptyFriendsChannel:function(a){var b=null,b=SF.currentUser.anonymous?SF.Locale.FRIENDS_CHANNEL_NOT_LOGGED_IN_SUB:-1===$.inArray("facebook",SF.currentUser.connections)?SF.Locale.EMPTY_FRIENDS_CHANNEL_SUB_NOT_CONNECTED:SF.Locale.EMPTY_FRIENDS_CHANNEL_SUB_WAITING;this.show({message:{template:SF.currentUser.anonymous?
SF.Locale.FRIENDS_CHANNEL_NOT_LOGGED_IN:SF.Locale.EMPTY_FRIENDS_CHANNEL},submessage:{template:b},onResume:a})},emptyLikesChannel:function(a){this.show({message:{template:SF.currentUser.anonymous?SF.Locale.LIKES_CHANNEL_NOT_LOGGED_IN:SF.Locale.EMPTY_LIKES_CHANNEL},submessage:{template:SF.currentUser.anonymous?SF.Locale.LIKES_CHANNEL_NOT_LOGGED_IN_SUB:SF.Locale.EMPTY_LIKES_CHANNEL_SUB},onResume:a})},privateChannel:function(a){this.show({message:{template:SF.Locale.PRIVATE_CHANNEL},submessage:{template:SF.currentUser.anonymous?
SF.Locale.PRIVATE_CHANNEL_NOT_LOGGED_IN_SUB:SF.Locale.PRIVATE_CHANNEL_LOGGED_IN_SUB},onResume:a,duration:0,hideContinue:!0})},hide:function(){var b=a;a=null;c&&(clearTimeout(c),c=null);$("#player-message").hide();SF.Player.VideoPlayer.activePlayer&&$("#"+SF.Player.VideoPlayer.activePlayer.elemId).show();"function"===typeof b&&(b(),SF.Player.VideoPlayer.current()||$(".player_curtain").show())}}})(this);
(function(a,c){var b=function(a){var b,a=a||{};a.embed=a.embed||{};b=a.elemId;return{elemId:b,isReady:function(){return!0},controls:function(){return[SF.Player.VideoPlayer.FEATURES.PLAY_PAUSE]},load:function(c){this.elemId=b+"_"+(new Date).getTime();if(a.embed.useObjectTag){var d=this.elemId,e,c="config="+c.opts.config_url,g={movie:a.embed.playerSwf,bgcolor:"#000000",allowScriptAccess:"always",allowFullScreen:!0,flashvars:c};$("#players").append('<div id="'+d+'" class="iframe_player"></div>');$("#"+
d).append('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+q+'" height="'+m+'" id="'+d+'" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">');for(e in g)g.hasOwnProperty(e)&&$("#"+d+" object").append('<param name="'+e+'" value="'+g[e]+'"/>');$("#"+d+" object").append('<embed name="'+d+'" src="'+a.embed.playerSwf+'" width="'+q+'" height="'+m+'" bgcolor="#000000" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" flashvars="'+
c+'" pluginspage="http://www.adobe.com/go/getflashplayer" wmode="opaque" /></object>')}else c.ova&&(d=this.elemId,e={plugins:"ova",config:c.ova.config_url,autostart:!n,volume:100*j},0==$("#"+d).length&&$("#players").append('<div id="'+d+'" class="iframe_player"></div>'),$("#"+d).html('<embed id="'+d+'" wmode="opaque" name="'+d+'" data="/flash/jwplayer/player5.7.swf" src="/flash/jwplayer/player5.7.swf" width="'+q+'" height="'+m+'" allowscriptaccess="always" allowfullscreen="true" flashvars="'+SF.Utils.objectToHttpParams(e)+
'" />'));a.quantcastId&&(d=a.quantcastId,e=document.createElement("script"),c=document.createElement("script"),g=document.createElement("noscript"),$("body").find(".quantcast_tracking").remove(),$("body").append('<div class="quantcast_tracking"></div>'),e.type="text/javascript",e.innerHTML='_qoptions={media:"ad",qacct:"'+d+'",labels:"_imp.adserver.doubleclick,_imp.publisher.%epid!,_imp.placement.%eaid!,_imp.creative.%ecid!"};',$("body").find(".quantcast_tracking").append(e),c.type="text/javascript",
c.src="http://edge.quantserve.com/quant.js",$("body").find(".quantcast_tracking").append(c),g.innerHTML='<img src="http://pixel.quantserve.com/pixel/'+d+'.gif?media=ad&labels=_imp.adserver.doubleclick,_imp.publisher.%epid!,_imp.placement.%eaid!,_imp.creative.%ecid!" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>',$("body").find(".quantcast_tracking").append(g));if(player=jwplayer(this.elemId))$(".player_curtain").hide(),player.onReady(l.onReady),player.onPlay(l.onPlay),player.onPause(l.onPause),
player.onComplete(l.onFinish),player.onError(l.onError);l.onLoadStart()},play:function(){this.isReady()&&jwplayer(this.elemId).play()},pause:function(){this.isReady()&&jwplayer(this.elemId).pause()},isPaused:function(a){var b=jwplayer(this.elemId).getState();"function"===typeof a&&(this.isReady()?a("PAUSED"===b||"IDLE"===b):a(!1))},seekTo:function(a){this.isReady()&&jwplayer(this.elemId).seek(a)},setVolume:function(a){this.isReady()&&jwplayer(this.elemId).setVolume(100*a)},getVolume:function(a){"function"===
typeof a&&a(this.isReady()?jwplayer(this.elemId).getVolume()/100:j)},setMuted:function(a){this.isReady()&&jwplayer(this.elemId).setMute(a)},isMuted:function(a){"function"===typeof a&&a(this.isReady()?jwplayer(this.elemId).getMute():o)},getDuration:function(a){"function"===typeof a&&a(this.isReady()?jwplayer(this.elemId).getDuration():0)},getCurrentTime:function(a){"function"===typeof a&&a(this.isReady()?jwplayer(this.elemId).getPosition():0)},canChangeVideo:function(){return!0},endVideo:function(){var a=
jwplayer(this.elemId);a&&a.stop();$("#"+this.elemId).remove()},endPlayer:function(){}}},d={alphabird:b({elemId:"alphabird_player",quantcastId:"p-9aUi7CO7nmLOI",embed:{useObjectTag:!0,playerSwf:"http://cdn.alphabird.com/evs-qa/test_campaigns/short_form/inpage_player.swf"}}),ova:b({elemId:"ova_player"}),college_humor:function(){var b=null,c="not-started",d=!1,e=0,g=0;a.CHPlayerReady=function(){n||b.togglePlay(!0)};a.getCurrentTime=function(a){e=a};a.getDuration=function(a){g=a};a.detectEndVideo=function(){d=
!1;l.onFinish()};a.getPlayerState=function(a){c=a;switch(c){case "playing":l.onPlay();break;case "pause":l.onPause();break;case "ended":d=!0}};return{elemId:"college_humor_player",isReady:function(){return b},load:function(a){l.onLoadStart();this.isReady()?b.load_video(a.external_vid):(a=new CH.SWFObject("http://www.collegehumor.com/moogaloop/moogaloop.swf?use_node_id=true&fullscreen=1&clip_id="+a.external_vid,"moogaloop",q,m,"9"),a.addParam("allowscriptaccess","always"),a.addParam("wmode","opaque"),
a.write("college_humor_player"),b=document.getElementById("moogaloop"))},controls:function(){return[SF.Player.VideoPlayer.FEATURES.AUTO_PLAY,SF.Player.VideoPlayer.FEATURES.PLAY_PAUSE,SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO]},play:function(){this.isReady()&&b.togglePlay(!0)},pause:function(){this.isReady()&&b.togglePlay(!1)},isPaused:function(a){"function"===typeof a&&(this.isReady()?a("pause"==c):a(!1))},seekTo:function(a){this.isReady()&&b.seekVideo(a)},setVolume:function(a){this.isReady()&&
b.setVolume(1*a)},getVolume:function(a){"function"===typeof a&&a(j)},setMuted:function(a){a=a?0:j;this.isReady()&&b.setVolume(a)},isMuted:function(a){"function"===typeof a&&a(o)},getDuration:function(a){"function"===typeof a&&(this.isReady()?a(g):a(0))},getCurrentTime:function(a){"function"===typeof a&&(this.isReady()?a(e):a(0))},canChangeVideo:function(){return!d},endVideo:function(){},endPlayer:function(){}}}(),vimeo:function(){var a=!1,b=null,c=!1,d=null,e=function(){c||(f(),c=!0);l.onPlay()},
g=function(){d=setTimeout(function(){if(!b||!b.getDuration)l.onError({data:0});else b.getDuration(function(a){if(0<a)f();else l.onError({data:0})})},7500)},f=function(){d&&(clearTimeout(d),d=null)};return{elemId:"vimeo_player",isReady:function(){return a&&b},load:function(d){f();l.onLoadStart();n||g();c=a=!1;$('<iframe id="'+this.elemId+'" class="iframe_player" src="'+document.location.protocol+"//player.vimeo.com/video/"+d.external_vid+"?api=1&player_id="+this.elemId+"&color="+(SF.Layout.embedColor||
"148ABF")+'" frameborder="0"></iframe>').insertAfter(".player_curtain");b=$f(this.elemId);b.addEvent("ready",function(){a=!0;l.onLoad();b.addEvent("play",e);b.addEvent("pause",l.onPause);b.addEvent("seek",l.onSeek);b.addEvent("finish",l.onFinish);n||SF.Player.VideoPlayer.play()})},controls:function(){return[SF.Player.VideoPlayer.FEATURES.AUTO_PLAY,SF.Player.VideoPlayer.FEATURES.PLAY_PAUSE,SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO]},play:function(){this.isReady()&&b.api("play",null)},pause:function(){this.isReady()&&
b.api("pause",null)},isPaused:function(a){"function"===typeof a&&(this.isReady()?b.api("paused",function(b){a(b)}):a(!1))},seekTo:function(a){this.isReady()&&b.api("seekTo",a)},setVolume:function(a){this.isReady()&&b.api("setVolume",1*a)},getVolume:function(a){"function"===typeof a&&(this.isReady()?b.api("getVolume",function(b){a(b/1)}):a(j))},setMuted:function(a){a=a?0:j;this.isReady()&&b.api("setVolume",a)},isMuted:function(a){"function"===typeof a&&(this.isReady()?b.api("getVolume",function(b){a(0===
b)}):a(o))},getDuration:function(a){"function"===typeof a&&(this.isReady()?b.api("getDuration",a):a(0))},getCurrentTime:function(a){"function"===typeof a&&(this.isReady()?b.api("getCurrentTime",a):a(0))},canChangeVideo:function(){return!0},endVideo:function(){a=!1;f();b&&b.api("unload");$("#"+this.elemId).remove()},endPlayer:function(){}}}(),youtube:function(){var b=null,e=null,g=null,f=function(a){l.onLoad();if(a.data===c)if(b.getCurrentTime()>=b.getDuration()-0.1)l.onFinish();else $(".player_curtain").fadeOut("fast");
else if(a.data==YT.PlayerState.PLAYING)l.onPlay();else if(a.data==YT.PlayerState.PAUSED)l.onPause();else if(a.data==YT.PlayerState.ENDED)l.onFinish();else if(a.data==YT.PlayerState.CUED)l.onCued();else if(a.data==YT.PlayerState.BUFFERING)l.onBuffering()},h=function(a){var c={autohide:1,color1:SF.Layout.embedColor||"148ABF",color2:SF.Layout.embedColor||"148ABF",disablekb:1,enablejsapi:1,iv_load_policy:3,origin:"shortform.com",rel:0,showinfo:0,start:Math.floor(a.start_at||0),wmode:"opaque"};n||(c.autoplay=
1);b=new YT.Player(d.youtube.elemId,{width:q,height:m,videoId:a.external_vid,playerVars:c,events:{onReady:l.onReady,onStateChange:f,onError:l.onError}})};a.onYouTubePlayerAPIReady=function(){d.youtube.onReadyCalled()};return{elemId:"youtube_player",onReadyCalled:function(){e=!0},isReady:function(){return e&&b},load:function(a){g&&(clearTimeout(g),g=null);e?(l.onLoadStart(),b?b.loadVideoById(a.external_vid,SF.livePlayer?0:a.start_at||0):h(a)):g=setTimeout(function(){d.youtube.load(a)},100)},controls:function(){return[SF.Player.VideoPlayer.FEATURES.AUTO_PLAY,
SF.Player.VideoPlayer.FEATURES.PLAY_PAUSE,SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO]},play:function(){this.isReady()&&b.playVideo()},pause:function(){this.isReady()&&b.pauseVideo()},isPaused:function(a){"function"===typeof a&&("function"===typeof b.getPlayerState?a(this.isReady()&&(-1===b.getPlayerState()||b.getPlayerState()===YT.PlayerState.PAUSED)):a(!1))},seekTo:function(a){this.isReady()&&b.seekTo(a,!0)},setVolume:function(a){this.isReady()&&b.setVolume(100*a)},getVolume:function(a){"function"===
typeof a&&a(this.isReady()?b.getVolume()/100:j)},setMuted:function(a){this.isReady()&&(a?b.mute():b.unMute())},isMuted:function(a){var d=o||!1;"function"===typeof a&&(this.isReady()&&b.isMuted()!==c&&(d=b.isMuted()),a(d))},getDuration:function(a){"function"===typeof a&&a(this.isReady()?b.getDuration():0)},getCurrentTime:function(a){"function"===typeof a&&a(this.isReady()?b.getCurrentTime():0)},canChangeVideo:function(){return!0},endVideo:function(){b&&b.stopVideo()},endPlayer:function(){$("#"+this.elemId).remove();
b=null;$("#players").append('<div id="'+this.elemId+'" class="iframe_player"></div>')}}}(),hulu:function(){var a=null,b=!1,e=3,g=null,f=null;return{elemId:"hulu_player",onVideoStateChange:function(b){var c=NewSite.videoPlayerComponent.getEmbedCode();if("ready"===b){if(!c||c.match(RegExp("/watch/"+a+"_")))if(0<e)e--,d.hulu._loadVideo();else l.onError({data:0})}else if("paused"==b)l.onPause();else if("playing"==b)l.onPlay();else if("stopped"==b)l.onFinish();else if("error"==b)l.onError({data:0});else if("buffering"==
b)l.onBuffering()},onError:function(a){l.onError(a)},isReady:function(){return NewSite.videoPlayerComponent&&"function"===typeof NewSite.videoPlayerComponent.instance.playVideo?!0:!1},_loadVideo:function(){var a=SF.Player.VideoPlayer.current();f&&(clearTimeout(f),f=null);g&&(clearTimeout(g),g=null);if(d.hulu.isReady())try{n?NewSite.videoPlayerComponent.cueVideoById(a.external_vid):NewSite.videoPlayerComponent.playVideo(a.external_vid)}catch(b){g=setTimeout(d.hulu._loadVideo,100)}else g=setTimeout(d.hulu._loadVideo,
100)},load:function(a){g&&(clearTimeout(g),g=null);"undefined"===typeof NewSite?g=setTimeout(function(){d.hulu.load(a)},100):(e=3,l.onLoadStart(),$(".player_curtain").hide(),NewSite.showAllComponents(),b?d.hulu._loadVideo():(NewSite.addListener("newsiteReady",this,"_loadVideo"),NewSite.addListener("videoStateChange",this,"onVideoStateChange"),NewSite.addListener("videoComplete",this,"endVideo"),NewSite.addListener("newsiteError",this,"onError"),b=!0,f=setTimeout(function(){d.hulu.load(a)},100)))},
controls:function(){return[SF.Player.VideoPlayer.FEATURES.AUTO_PLAY,SF.Player.VideoPlayer.FEATURES.PLAY_PAUSE,SF.Player.VideoPlayer.FEATURES.FINDABLE_VIDEO]},play:function(){var a=SF.Player.VideoPlayer.current();this.isReady()&&(NewSite.videoPlayerComponent.getCurrentTime()!==c&&0!==NewSite.videoPlayerComponent.getCurrentTime()?NewSite.videoPlayerComponent.resumeVideo():NewSite.videoPlayerComponent.playVideo(a.external_vid))},pause:function(){NewSite.videoPlayerComponent.pauseVideo()},isPaused:function(a){"function"===
typeof a&&a("paused"===NewSite.videoPlayerComponent.getProperties().status)},seekTo:function(a){this.isReady()&&NewSite.videoPlayerComponent.seek(a)},setVolume:function(a){this.isReady()&&NewSite.videoPlayerComponent.setVolume(100*a)},getVolume:function(a){"function"===typeof a&&(this.isReady()?a(NewSite.videoPlayerComponent.getProperties().volume/100):a(j))},setMuted:function(){this.isReady()},isMuted:function(a){var b=o||!1;0===NewSite.videoMute&&(b="muted"===NewSite.videoPlayerComponent.getProperties().status);
a(b)},getDuration:function(a){"function"===typeof a&&a(this.isReady()?NewSite.videoPlayheadInfo.duration:0)},getCurrentTime:function(a){"function"===typeof a&&a(this.isReady()?NewSite.videoPlayerComponent.getCurrentTime():0)},canChangeVideo:function(){return!0},endVideo:function(b){"ad"!==b&&(NewSite.videoPlayerComponent.stopVideo(),NewSite.hideAllComponents(),$(".player_curtain").show(),a=SF.Player.VideoPlayer.current().id);if("clip"===b)l.onFinish()},endPlayer:function(){}}}()},f=null,h={},g=!0,
e=null,j=1,o=!1,n=!0,q=720,m=405,t=null,v=function(){x();SF.Player.VideoPlayer.isMuted(function(a){if(a!==o)l.onMutedChange(a);SF.Player.VideoPlayer.getVolume(function(a){if(!o&&a!==j)l.onVolumeChange(a);f=setTimeout(function(){v()},100)})});SF.Player.VideoPlayer.getCurrentTime(function(a){SF.Player.VideoPlayer.savePosition(a)})},x=function(){f&&(clearTimeout(f),f=null)},p=function(a){$(".player_curtain").show();x();e&&(e.isMuted(function(a){(o=a)||e.getVolume(function(a){a!==c&&!isNaN(a)&&(j=a)})}),
e.endVideo(a),e!=(a.embed_code?d.embed_code:d[a.source_name])&&e.endPlayer());$(".iframe_player").hide()},l={onReady:function(){},onLoadStart:function(){g=!0;$("#"+e.elemId).show();n&&$(".player_curtain").fadeOut("fast");if(h.onLoadStart&&"function"===typeof h.onLoadStart)h.onLoadStart(SF.Player.VideoPlayer.current(),!SF.Player.VideoPlayer.hasFeature(SF.Player.VideoPlayer.FEATURES.AUTO_PLAY)||n)},onLoad:function(){if(SF.livePlayer)SF.livePlayer.onLoad()},onPlay:function(){SF.Utils.cookieForOnload("paused",
null);if(g&&(SF.Player.VideoPlayer.setVolume(j),SF.Player.VideoPlayer.setMuted(o),$(".player_curtain").fadeOut("fast"),v(),g=!1,h.onStart&&"function"===typeof h.onStart))h.onStart(t);if(SF.livePlayer)SF.livePlayer.onPlay();if(h.onPlay&&"function"===typeof h.onPlay)h.onPlay(t)},onSeek:function(){if(SF.livePlayer)SF.livePlayer.onSeek()},onPause:function(){SF.Utils.cookieForOnload("paused","1");if(h.onPause&&"function"===typeof h.onPause)h.onPause(t);if(SF.livePlayer)SF.livePlayer.onPause()},onFinish:function(){SF.Utils.cookieForOnload("paused",
null);x();if(h.onFinish&&"function"===typeof h.onFinish)h.onFinish(t);if(SF.livePlayer)SF.livePlayer.onFinish()},onCued:function(){},onBuffering:function(){if(SF.livePlayer)SF.livePlayer.onBuffering()},onError:function(a){if(h.onError&&"function"===typeof h.onError)h.onError(t,a.data)},onVolumeChange:function(a){a!==c&&!isNaN(a)&&(j=a,SF.Utils.permanentCookie("volume",j))},onMutedChange:function(a){o=a;SF.Utils.permanentCookie("mute",o?"1":null)}};SF.Player.VideoPlayer={FEATURES:{AUTO_PLAY:"auto_play",
PLAY_PAUSE:"play_pause",FINDABLE_VIDEO:"findable_video"},currentVideoViewTime:0,currentVideoId:0,updateCurrentVideoViewTime:function(){0==SF.Player.VideoPlayer.currentVideoId?SF.Player.VideoPlayer.currentVideoId=SF.Player.VideoPlayer.current().id:SF.Player.VideoPlayer.currentVideoId!=SF.Player.VideoPlayer.current().id&&(SF.Player.VideoPlayer.currentVideoViewTime=0,SF.Player.VideoPlayer.currentVideoId=SF.Player.VideoPlayer.current().id);SF.Player.VideoPlayer.isPaused(function(a){a||(SF.Player.VideoPlayer.currentVideoViewTime+=
2,0==SF.Player.VideoPlayer.currentVideoViewTime%10&&$.post("/videos/view_ten_seconds",{channel_video:SF.Player.currentChannelVideo().id}))})},init:function(a){var b=SF.Utils.permanentCookie("volume"),c=SF.Utils.permanentCookie("mute"),d=document.getElementsByTagName("head")[0],e=document.createElement("script");b&&this.setVolume(b);c&&this.setMuted(!0);q=a.width;m=a.height;e.type="text/javascript";e.id="NS_GUID_JS";e.src="http://config.hulu.com/js/hulu_global.js?guid=0B1CEA04-DCCB-40cf-AD0E-5222EF66D519&partner=ShortForm&height="+
m+"&width="+q+"&wmode=opaque";d.appendChild(e)},canChangeVideo:function(){return SF.livePlayer&&!SF.livePlayer.have_remote?!1:!e||e.canChangeVideo()},load:function(a,b,c){this.canChangeVideo()&&(h=c||{},p(a),n=b,t=a,(e=a.embed_code?d.embed_code:d[a.source_name])&&e.load(a))},hasFeature:function(a){var b=!1;e&&$.each(e.controls(),function(c,d){a===d&&(b=!0)});return b},current:function(){return t},play:function(){e&&e.play()},jumpAhead:function(a,b){e&&this.getCurrentTime(function(d){var e;d!==c&&
!isNaN(d)&&(e=Math.max(d+a,0),SF.Player.VideoPlayer.getDuration(function(a){a!==c&&!isNaN(a)&&(e=Math.min(e,a),SF.Player.VideoPlayer.seekTo(e),b&&"function"===typeof b&&b())}))})},pause:function(){e&&e.pause()},isPaused:function(a){"function"===typeof a&&(e?e.isPaused(a):a(!1))},togglePause:function(){this.isPaused(function(a){a?SF.Player.VideoPlayer.play():SF.Player.VideoPlayer.pause()})},seekTo:function(a){e&&e.seekTo(a)},setVolume:function(a){a!==c&&!isNaN(a)&&(j=Math.max(Math.min(a,1),0),e&&e.setVolume(j))},
getVolume:function(a){"function"===typeof a&&(e&&!o?e.getVolume(a):a(j))},setMuted:function(a){o=a;e&&e.setMuted(o)},isMuted:function(a){"function"===typeof a&&(e?e.isMuted(a):a(o))},toggleMute:function(){this.isMuted(function(a){SF.Player.VideoPlayer.setMuted(!a)})},getDuration:function(a){"function"===typeof a&&(e?e.getDuration(a):a(0))},getCurrentTime:function(a){"function"===typeof a&&(e?e.getCurrentTime(a):a(0))},getPctViewed:function(){return 0},getPctBuffered:function(){if(e)return e.getPctBuffered()},
savePosition:function(a){0>=a&&t&&(a=t.start_at);0>a||(SF.Utils.cookieForOnload("position",Math.floor(a)),SF.Utils.cookieForOnload("video_play_on_load",t.id))}}})(this);
var FlashDetect=new function(){var a=this;a.installed=!1;a.raw="";a.major=-1;a.minor=-1;a.revision=-1;a.revisionStr="";var c=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(a){return b(a)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(a){var c="6,0,21";try{a.AllowScriptAccess="always",c=b(a)}catch(h){}return c}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(a){return b(a)}}],b=function(a){var b=-1;try{b=a.GetVariable("$version")}catch(c){}return b};a.majorAtLeast=function(b){return a.major>=
b};a.minorAtLeast=function(b){return a.minor>=b};a.revisionAtLeast=function(b){return a.revision>=b};a.versionAtLeast=function(b){var c=[a.major,a.minor,a.revision],h=Math.min(c.length,arguments.length);for(i=0;i<h;i++)if(c[i]>=arguments[i]){if(!(i+1<h&&c[i]==arguments[i]))return!0}else return!1};a.FlashDetect=function(){var b,f,h,g,e;if(navigator.plugins&&0<navigator.plugins.length){var j=navigator.mimeTypes;if(j&&j["application/x-shockwave-flash"]&&j["application/x-shockwave-flash"].enabledPlugin&&
j["application/x-shockwave-flash"].enabledPlugin.description){b=j=j["application/x-shockwave-flash"].enabledPlugin.description;var j=b.split(/ +/),o=j[2].split(/\./),j=j[3];f=parseInt(o[0],10);h=parseInt(o[1],10);g=j;e=parseInt(j.replace(/[a-zA-Z]/g,""),10)||a.revision;a.raw=b;a.major=f;a.minor=h;a.revisionStr=g;a.revision=e;a.installed=!0}}else if(-1==navigator.appVersion.indexOf("Mac")&&window.execScript){j=-1;for(o=0;o<c.length&&-1==j;o++){b=-1;try{b=new ActiveXObject(c[o].name)}catch(n){b={activeXError:!0}}b.activeXError||
(a.installed=!0,j=c[o].version(b),-1!=j&&(b=j,g=b.split(","),f=parseInt(g[0].split(" ")[1],10),h=parseInt(g[1],10),e=parseInt(g[2],10),g=g[2],a.raw=b,a.major=f,a.minor=h,a.revision=e,a.revisionStr=g))}}}()};FlashDetect.JS_RELEASE="1.0.4";
(function(){if("undefined"==typeof a)var a={};"undefined"==typeof a.util&&(a.util={});"undefined"==typeof a.SWFObjectUtil&&(a.SWFObjectUtil={});a.SWFObject=function(c,b,d,f,h,g,e,j,o,n){document.getElementById&&(this.DETECT_KEY=n?n:"detectflash",this.skipDetect=a.util.getRequestParameter(this.DETECT_KEY),this.params={},this.variables={},this.attributes=[],c&&this.setAttribute("swf",c),b&&this.setAttribute("id",b),d&&this.setAttribute("width",d),f&&this.setAttribute("height",f),h&&this.setAttribute("version",
new a.PlayerVersion(h.toString().split("."))),this.installedVer=a.SWFObjectUtil.getPlayerVersion(),!window.opera&&document.all&&7<this.installedVer.major&&(a.SWFObject.doPrepUnload=!0),g&&this.addParam("bgcolor",g),this.addParam("quality",e?e:"high"),this.setAttribute("useExpressInstall",!1),this.setAttribute("doExpressInstall",!1),this.setAttribute("xiRedirectUrl",j?j:window.location),this.setAttribute("redirectUrl",""),o&&this.setAttribute("redirectUrl",o))};a.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=
!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",!0)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=[],b,d=this.getVariables();for(b in d)a[a.length]=b+"="+d[b];return a},
getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){this.getAttribute("doExpressInstall")&&(this.addVariable("MMplayerType","PlugIn"),this.setAttribute("swf",this.xiSWFPath));var a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"',a=a+(' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+
'" '),b=this.getParams(),d;for(d in b)a+=[d]+'="'+b[d]+'" ';d=this.getVariablePairs().join("&");0<d.length&&(a+='flashvars="'+d+'"');a+="/>"}else{this.getAttribute("doExpressInstall")&&(this.addVariable("MMplayerType","ActiveX"),this.setAttribute("swf",this.xiSWFPath));a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';a+='<param name="movie" value="'+
this.getAttribute("swf")+'" />';b=this.getParams();for(d in b)a+='<param name="'+d+'" value="'+b[d]+'" />';d=this.getVariablePairs().join("&");0<d.length&&(a+='<param name="flashvars" value="'+d+'" />');a+="</object>"}return a},write:function(c){this.getAttribute("useExpressInstall")&&this.installedVer.versionIsValid(new a.PlayerVersion([6,0,65]))&&!this.installedVer.versionIsValid(this.getAttribute("version"))&&(this.setAttribute("doExpressInstall",!0),this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))),
document.title=document.title.slice(0,47)+" - Flash Player Installation",this.addVariable("MMdoctitle",document.title));if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version")))return("string"==typeof c?document.getElementById(c):c).innerHTML=this.getSWFHTML(),!0;""!=this.getAttribute("redirectUrl")&&document.location.replace(this.getAttribute("redirectUrl"));return!1}};a.SWFObjectUtil.getPlayerVersion=function(){var c=new a.PlayerVersion([0,
0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];b&&b.description&&(c=new a.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")))}else if(navigator.userAgent&&0<=navigator.userAgent.indexOf("Windows CE"))for(var b=1,d=3;b;)try{d++,b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d),c=new a.PlayerVersion([d,0,0])}catch(f){b=null}else{try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{b=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),c=new a.PlayerVersion([6,0,21]),b.AllowScriptAccess="always"}catch(g){if(6==c.major)return c}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}null!=b&&(c=new a.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(",")))}return c};a.PlayerVersion=function(a){this.major=null!=a[0]?parseInt(a[0]):0;this.minor=null!=a[1]?parseInt(a[1]):0;this.rev=null!=a[2]?parseInt(a[2]):0};a.PlayerVersion.prototype.versionIsValid=function(a){return this.major<
a.major?!1:this.major>a.major?!0:this.minor<a.minor?!1:this.minor>a.minor?!0:this.rev<a.rev?!1:!0};a.util={getRequestParameter:function(a){var b=document.location.search||document.location.hash;if(null==a)return b;if(b)for(var b=b.substring(1).split("&"),d=0;d<b.length;d++)if(b[d].substring(0,b[d].indexOf("="))==a)return b[d].substring(b[d].indexOf("=")+1);return""}};a.SWFObjectUtil.cleanupSWFs=function(){for(var a=document.getElementsByTagName("OBJECT"),b=a.length-1;0<=b;b--){a[b].style.display=
"none";for(var d in a[b])"function"==typeof a[b][d]&&(a[b][d]=function(){})}};a.SWFObject.doPrepUnload&&!a.unloadSet&&(a.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",a.SWFObjectUtil.cleanupSWFs)},window.attachEvent("onbeforeunload",a.SWFObjectUtil.prepUnload),a.unloadSet=!0);!document.getElementById&&document.all&&(document.getElementById=function(a){return document.all[a]});window.CH={SWFObject:a.SWFObject}})();
(function(){var a=function(a,c){return"background:"+a+";background: -webkit-gradient(linear, left top, left bottom, from("+a+"), to("+c+"));background: -moz-gradient(top, from("+a+"), to("+c+"));-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(startColorstr='"+a+"', endColorstr='"+c+"')\";"},c=function(a){var c=350>a,f=600<=a;SF.Layout.embedWidth=Math.min(Math.max(a,200),1200);SF.Layout.playerWidth=SF.Layout.embedWidth-(350>SF.Layout.embedWidth?16:20);SF.Layout.playerHeight=Math.round(9*(SF.Layout.embedWidth-
(350>SF.Layout.embedWidth?16:20))/16);SF.Layout.embedHeight=SF.Layout.playerHeight+(c?195:203);$(".embed-container, #embed_container").removeClass("small");$(".embed-container, #embed_container").removeClass("large");$(".embed-container, #embed_container").outerWidth(SF.Layout.embedWidth);$(".embed-container, #embed_container").outerHeight(SF.Layout.embedHeight);$(".player-embedded, #carousel-container.videos.carousel-container-embedded").width(SF.Layout.playerWidth);$(".player_curtain img").css({"margin-top":Math.round((SF.Layout.playerHeight-
77)/2)+"px"});$("#carousel-container.videos #carousel, #carousel-container.videos #carousel-base").width(SF.Layout.playerWidth-2);$("#embed_container #player #players").width(SF.Layout.playerWidth-(c?2:0));$("#embed_container #player #players").height(SF.Layout.playerHeight-(c?2:0));$("#embed_container #player #players #player-message, #embed_container #player #players .iframe_player, #embed_container #player #players .player_curtain").width(SF.Layout.playerWidth-(c?2:0));$("#embed_container #player #players #player-message, #embed_container #player #players .iframe_player, #embed_container #player #players .player_curtain").height(SF.Layout.playerHeight-
(c?2:0));$("#carousel .jcarousel-clip-embedded").width(SF.Layout.playerWidth-14);$("#carousel .scroll-container").width(SF.Layout.playerWidth-60);$("#embed_container #player .title_container .title_bar, #embed_container #player .title_container .ellipsis_text").width(SF.Layout.playerWidth-(c?0:128)-(SF.Layout.isContest?35:0));$(".title-bar-embedded, .title-bar-embedded .ellipsis_text").width(SF.Layout.playerWidth-(c?0:129)-(SF.Layout.isContest?35:0));$("#players").height(SF.Layout.playerHeight);$(".iframe_player").find("embed").each(function(a,
b){b.width=SF.Layout.playerWidth;b.height=SF.Layout.playerHeight});$(".small-only").hide();$(".medium-only").show();c?($(".medium-only").hide(),$(".small-only").show(),$(".embed-container, #embed_container").addClass("small"),$(".link_embedded_container").width(SF.Layout.playerWidth)):f&&$(".embed-container, #embed_container").addClass("large")};SF.Layout={isContest:!1,autoplay:!1,contestWidth:518,contestHeight:520,contestColor:null,embedWidth:400,embedHeight:400,embedWhite:!1,embedColor:null,playerWidth:720,
playerHeight:405,updateCalled:!1,updateContest:function(b){b=b||{};"undefined"!=typeof b.width&&(SF.Layout.contestWidth=Math.min(Math.max(b.width,518),1200),SF.Layout.contestHeight=Math.round(9*(SF.Layout.contestWidth-48-(350>SF.Layout.contestWidth-48?16:20))/16)+(350>SF.Layout.contestWidth-48?195:203)+476,$(".contest-container").outerWidth(SF.Layout.contestWidth),$(".contest-container").outerHeight(SF.Layout.contestHeight));if(b.color){var b=b.color,c=SF.ColorPicker.darkenHex(b,15),f=SF.ColorPicker.darkenHex(b,
40);$("body").append('<style>input[type="submit"].contest-button, .contest-button { border-color:'+f+";"+a(b,c)+' }\ninput[type="submit"].contest-button:hover, .contest-button:hover { '+a(c,b)+" }.contest-button-disabled, .contest-button-disabled:hover { border-color:"+f+";"+a(SF.ColorPicker.darkenHex(b,20),SF.ColorPicker.darkenHex(b,35))+" }\n.contest-footer a, .contest-colored-text { color:"+b+" }.contest-colored-background { background-color:"+b+" }</style>")}$(".contest-container").fadeIn()},
updateEmbed:function(a){a=a||{};"undefined"!=typeof a.is_contest&&(this.isContest=a.is_contest);"undefined"!=typeof a.width&&c(a.width);if("undefined"!=typeof a.white){var d=a.white;(SF.Layout.embedWhite=d)?$(".embed-container, #embed_container").addClass("white"):$(".embed-container, #embed_container").removeClass("white");$("body").append("<style>.title-bar-button-embedded { background-color:"+(d?"#f2f2f2":"#333")+"; }</style>")}a.color&&(a=a.color,SF.Layout.embedColor=a.replace(/^#/,""),a="#"+
SF.Layout.embedColor,$(".video-unseen-indicator, #carousel-container.videos .scroll-handle").css({background:a}),$("body").append("<style>#embed_container #videos.scroll_pane .jspHorizontalBar .jspDrag { background-color: "+a+"}#embed_container #videos .jspContainer .jspPane .videos_container .video.selected { border-color: "+a+"}.title-bar-button-embedded.active, .embed-container.white .title-bar-button-embedded.active, .title-bar-button-embedded:hover, .embed-container.white .title-bar-button-embedded:hover, #carousel .video-unseen-indicator { background-color:"+
a+"; }\n.title-bar-button-embedded.disabled:hover { background-color:#333; }.embed-container.white .title-bar-button-embedded.disabled:hover { background-color:#F2F2F2; }.embed-container.white .title-bar-button-embedded.disabled:hover .button-text-embedded { color:#4D4D4D; }.embed-container.white.small .title-bar-button-embedded.disabled:hover .prev-embedded { background-position: -25px -25px }.embed-container.white .title-bar-button-embedded.disabled:hover .prev-embedded { background-position: -225px -25px }#carousel .jcarousel-item.current .jcarousel-item-video { border-color:"+
a+"; }</style>"),$("body").append("<style>#embed_container #player .title_container .embed_button:hover, #embed_container.white  #player .title_container .embed_button:hover { background-color:"+a+"; }\n#embed_container #player .title_container .embed_button.disabled:hover { background-color:#333; }#embed_container.white .title-bar-button-embedded.disabled:hover { background-color:#F2F2F2; }#embed_container.white .title-bar-button-embedded.disabled:hover .button-text-embedded { color:#4D4D4D; }#embed_container.white.small .title-bar-button-embedded.disabled:hover .prev-embedded { background-position: -25px -25px }#embed_container.white .title-bar-button-embedded.disabled:hover .prev-embedded { background-position: -225px -25px }#carousel .jcarousel-item.current .jcarousel-item-video { border-color:"+
a+"; }</style>"));$(".body-embedded, #embed_container").fadeIn();SF.Layout.updateCalled=!0},getEmbedUrl:function(a,c,f,h,g){a="http"+(h?"s":"")+"://"+a+"/"+c+"/"+f+"/embed?width="+this.embedWidth+(this.embedWhite?"&white=true":"")+(this.embedColor?"&color="+this.embedColor:"")+(this.autoplay?"&autoplay=true":"")+($.cookie("campaign")?"&sf_campaign="+$.cookie("campaign"):"");g&&(a+="&share_button_url="+encodeURIComponent(g));return a},getEmbedCode:function(a,c,f,h){a='<iframe src="'+this.getEmbedUrl(a,
c,f,!1,h)+'" style="width:'+this.embedWidth+"px;height:"+this.embedHeight+'px;overflow:hidden" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0"';return a+"></iframe>"}}})();
(function(){var a=function(a,b,d,f){a=SF.Utils.mergeObjects({url:a},f||{});if("get"===b)a.type="get";else{a.type="POST";d=d||{};if("put"===b||"delete"===b)d._method=b;a.data=SF.Utils.objectToHttpParams(d||{})}$.ajax(a)};SF.Models={findAll:function(c,b){a(c,"get",{},b)},find:function(c,b){a(c,"get",{},b)},create:function(c,b,d){a(c,"post",b,d)},update:function(c,b,d){a(c,"put",b,d)},destroy:function(c,b,d){a(c,"delete",b,d)}}})(this);
(function(a,c){SF.Models.Channel={find:function(a,d){var f="/channels/"+a+".js";SF.Contest!==c&&(f+="?contest_id="+SF.Contest.id);SF.Models.find(f,d)},update:function(a,c){var f,a=a||{};a.id?(f=a.id,delete a.id,a.settings&&(a["channel[settings]"]=JSON.stringify(a.settings),delete a.settings),SF.Models.update("/channels/"+f+".js",a,c)):c&&"function"===typeof c.error&&c.error()}}})(this);
(function(){SF.Models.ChannelSubscription={create:function(a,c){var b={},a=a||{};a.channel_id?(a.load_channel&&(b.load_channel=!0),SF.Models.create("/channels/"+a.channel_id+"/channel_subscriptions.js",b,c)):c&&"function"===typeof c.error&&c.error()},destroy:function(a,c){a=a||{};a.channel_id?SF.Models.destroy("/channels/"+a.channel_id+"/channel_subscriptions/0.js",{},c):c&&"function"===typeof c.error&&c.error()}}})(this);
(function(){SF.Models.ChannelVideo={create:function(a,c){a=a||a;a.channel_id?a.video_id?(a.video_ids=[a.video_id],this.bulkCreate(a,c)):a.url?SF.Models.create("/channels/"+a.channel_id+"/channel_videos.js",{url:a.url},c):c&&"function"===typeof c.error&&c.error():c&&"function"===typeof c.error&&c.error()},bulkCreate:function(a,c){var b={},a=a||{};!a.channel_id||!a.video_ids||0===a.video_ids.length?c&&"function"===typeof c.error&&c.error():(b.video_ids=a.video_ids,a.origin_channel_id&&(b.origin_channel_id=
a.origin_channel_id),SF.Models.create("/channels/"+a.channel_id+"/channel_videos.js",b,c))},update:function(a,c){var b={},a=a||{};!a.channel_id||!a.video_id?c&&"function"===typeof c.error&&c.error():(b.video_id=a.video_id,a.index&&(b.index=a.index),SF.Models.update("/channels/"+a.channel_id+"/channel_videos/0.js",b,c))},destroy:function(a,c){a=a||{};!a.channel_id||!a.video_id?c&&"function"===typeof c.error&&c.error():SF.Models.destroy("/channels/"+a.channel_id+"/channel_videos/0.js",{video_id:a.video_id},
c)}}})(this);(function(){SF.Models.User={update:function(a,c){var b,a=a||{};a.id?(b=a.id,delete a.id,a.settings&&(a["user[settings]"]=JSON.stringify(a.settings),delete a.settings),SF.Models.update("/users/"+b+".js",a,c)):c&&"function"===typeof c.error&&c.error()},updateCurrentUserSetting:function(a,c){var b=SF.currentUser;b.settings[a]=c;SF.Models.User.update({id:b.id,settings:b.settings})}}})(this);
(function(){SF.Models.VideoAction={findAllByUserIdAndVideoIds:function(a,c,b){SF.Models.findAll("/users/"+a+"/video_actions.js?video_ids[]="+c.join("&video_ids[]="),b)},create:function(a,c){a=a||a;!a.channel_id||!a.video_id?c&&"function"===typeof c.error&&c.error():SF.Models.create("/channels/"+a.channel_id+"/video_actions.js",{video_id:a.video_id},c)},update:function(a,c){var b,a=a||{};a.channel_id?(b=a.channel_id,delete a.channel_id,SF.Models.update("/channels/"+b+"/video_actions/0.js",a,c)):c&&
"function"===typeof c.error&&c.error()}}})(this);(function(a){SF.Helpers={resourcePath:function(a){return a.user_name?"/"+a.user_name:a.user&&a.name?"/"+a.user.user_name+"/"+a.name+"/watch":a.channel&&a.video?"/"+a.channel.user.user_name+"/"+a.channel.name+"/watch/"+a.video.id+"_"+a.video.title_for_url:"/"},resourceUrl:function(c,b){b=b||{};return"http://"+(b.domain||a.location.host)+SF.Helpers.resourcePath(c)}}})(this);
(function(a){SF.Helpers.Channel={watchPath:function(a,b){var d;b&&b.video&&(b=b.video);a.user?(d="/"+a.user.user_name+"/"+a.name+"/watch",b&&(d+="/"+b.id+"_"+b.title_for_url)):(d="/watch/channels/"+a.id,b&&(d+="/videos/"+b.id));return d},embedPath:function(a,b){var d="/"+a.user.user_name+"/"+a.name+"/embed";b&&(d+="/"+b.id+"_"+b.title_for_url);return d},watchPartyPath:function(a){return"/party"+a.getPath()},watchUrl:function(c,b,d){d=d||{};return"http://"+(d.domain||a.location.host)+this.watchPath(c,
b,d)},watchPartyUrl:function(c){return"http://"+a.location.host+this.watchPartyPath(c)},firstVideo:function(a){return a.playlist?a.playlist.videos[0]:null}}})(this);
(function(){var a=function(a){a.starts_at&&"string"===typeof a.starts_at&&(a.starts_at=new Date(a.starts_at));a.ends_at&&"string"===typeof a.ends_at&&(a.ends_at=new Date(a.ends_at))};SF.Helpers.Contest={hasStarted:function(c){a(c);return c.starts_at&&c.starts_at<=new Date},hasEnded:function(c){a(c);return!c.ends_at||c.ends_at<=new Date},isOpen:function(a){return SF.Contest?SF.Contest.isOpen:this.hasStarted(a)&&!this.hasEnded(a)}}})(this);
var Froogaloop=function(){function a(b){return new a.fn.init(b)}function c(a,b,c){if(!c.contentWindow.postMessage)return!1;var d=c.getAttribute("src").split("?")[0],a=JSON.stringify({method:a,value:b});c.contentWindow.postMessage(a,d)}function b(a){if(a.origin!=playerDomain)return!1;var b=JSON.parse(a.data),a=b.value,c=b.data,d=""==d?null:b.player_id,b=d?f[d][b.event||b.method]:f[b.event||b.method],h=[];if(!b)return!1;void 0!==a&&h.push(a);c&&h.push(c);d&&h.push(d);return 0<h.length?b.apply(null,
h):b.call()}function d(a,b,c){c?(f[c]||(f[c]={}),f[c][a]=b):f[a]=b}var f={},h=!1;a.fn=a.prototype={playerDomain:"",element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;return this},api:function(a,b){if(!this.element||!a)return!1;var h=this.element,f=""!=h.id?h.id:null,n=!b||!b.constructor||!b.call||!b.apply?b:null,q=b&&b.constructor&&b.call&&b.apply?b:null;q&&d(a,q,f);c(a,n,h);return this},addEvent:function(a,e){if(!this.element)return!1;var f=this.element;
d(a,e,""!=f.id?f.id:null);"ready"!=a&&c("addEventListener",a,f);if(h)return this;for(var f=f.getAttribute("src").split("/"),o="",n=0,q=f.length;n<q;n++){if(3>n)o+=f[n];else break;2>n&&(o+="/")}playerDomain=o;window.addEventListener?window.addEventListener("message",b,!1):window.attachEvent("onmessage",b,!1);h=!0;return this},removeEvent:function(a){if(!this.element)return!1;var b=this.element,d;a:{if((d=""!=b.id?b.id:null)&&f[d]){if(!f[d][a]){d=!1;break a}f[d][a]=null}else{if(!f[a]){d=!1;break a}f[a]=
null}d=!0}"ready"!=a&&d&&c("removeEventListener",a,b)}};a.fn.init.prototype=a.fn;return window.Froogaloop=window.$f=a}();jwplayer=function(a){return jwplayer.constructor(a)};jwplayer.constructor=function(){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(a){var c=typeof a;"object"===c&&(a?a instanceof Array&&(c="array"):c="null");return c};
jwplayer.utils.extend=function(){var a=jwplayer.utils.extend.arguments;if(1<a.length){for(var c=1;c<a.length;c++)for(element in a[c])a[0][element]=a[c][element];return a[0]}return null};jwplayer.utils.extension=function(a){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};jwplayer.utils.html=function(a,c){a.innerHTML=c};jwplayer.utils.append=function(a,c){a.appendChild(c)};jwplayer.utils.wrap=function(a,c){a.parentNode.replaceChild(c,a);c.appendChild(a)};
jwplayer.utils.ajax=function(a,c,b){var d;d=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");d.onreadystatechange=function(){4===d.readyState&&(200===d.status?c&&c(d):b&&b(a))};d.open("GET",a,!0);d.send(null);return d};jwplayer.utils.load=function(a,c,b){a.onreadystatechange=function(){4===a.readyState&&(200===a.status?c&&c():b&&b())}};jwplayer.utils.find=function(a,c){return a.getElementsByTagName(c)};jwplayer.utils.append=function(a,c){a.appendChild(c)};
jwplayer.utils.isIE=function(){return!+"\v1"};jwplayer.utils.isIOS=function(){return null!==navigator.userAgent.toLowerCase().match(/iP(hone|ad)/i)};
jwplayer.utils.hasHTML5=function(a){var c=document.createElement("video");if(c.canPlayType)if(a){var b;a.playlist&&a.playlist.length?(b=a.playlist[0].file,a=a.playlist[0].levels):(b=a.file,a=a.levels);if(b)return jwplayer.utils.vidCanPlay(c,b);if(a&&a.length)for(b=0;b<a.length;b++)if(a[b].file&&jwplayer.utils.vidCanPlay(c,a[b].file))return!0}else return!0;return!1};
jwplayer.utils.vidCanPlay=function(a,c){var b=jwplayer.utils.strings.extension(c);sourceType=void 0!==jwplayer.utils.extensionmap[b]?jwplayer.utils.extensionmap[b]:"video/"+b+";";return a.canPlayType(sourceType)||-1<c.toLowerCase().indexOf("youtube.com")};jwplayer.utils.hasFlash=function(){return"undefined"!=typeof navigator.plugins&&"undefined"!=typeof navigator.plugins["Shockwave Flash"]||"undefined"!=typeof window.ActiveXObject};
(function(a){function c(b,c){void 0===c?c=h[b]:a.utils.extend(c,h[b]);return c}function b(a,b){if(g[a.tagName.toLowerCase()]&&void 0===b)return g[a.tagName.toLowerCase()](a);var b=c("element",b),d={},f;for(f in b)if("length"!=f){var h=a.getAttribute(f);""===h||void 0===h||null===h||(d[b[f]]=a.getAttribute(f))}if((f=a.style["#background-color"])&&!("transparent"==f||"rgba(0, 0, 0, 0)"==f))d.screencolor=f;return d}function d(d,h){var h=c("media",h),g=[];if(a.utils.isIE()){var n=d.nextSibling;if(void 0!==
n)for(;"source"==n.tagName.toLowerCase();)g.push(f(n)),n=n.nextSibling}else{var n=a.utils.selectors("source",d),q;for(q in n)isNaN(q)||g.push(f(n[q]))}n=b(d,h);void 0!==n.file&&(g[0]={file:n.file});n.levels=g;return n}function f(a,d){var d=c("source",d),f=b(a,d);f.width=f.width?f.width:0;f.bitrate=f.bitrate?f.bitrate:0;return f}a.utils.mediaparser=function(){};var h={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"}},g={};a.utils.mediaparser.parseMedia=function(a){return b(a)};a.utils.mediaparser.replaceMediaElement=function(b,c){if(a.utils.isIE()){for(var d=!1,f=[],h=b.nextSibling;h&&!d;)f.push(h),1==h.nodeType&&h.tagName.toLowerCase()=="/"+b.tagName.toLowerCase()&&(d=!0),h=h.nextSibling;if(d)for(;0<f.length;)d=f.pop(),d.parentNode.removeChild(d);b.outerHTML=
c}};g.media=d;g.audio=d;g.source=f;g.video=function(a,b){b=c("video",b);return d(a,b)}})(jwplayer);
jwplayer.utils.selectors=function(a,c){void 0===c&&(c=document);var a=jwplayer.utils.strings.trim(a),b=a.charAt(0);if("#"==b)return c.getElementById(a.substr(1));if("."==b)return c.getElementsByClassName?c.getElementsByClassName(a.substr(1)):jwplayer.utils.selectors.getElementsByTagAndClass("*",a.substr(1));return 0<a.indexOf(".")?(selectors=a.split("."),jwplayer.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])):c.getElementsByTagName(a)};
jwplayer.utils.selectors.getElementsByTagAndClass=function(a,c,b){elements=[];void 0===b&&(b=document);a=b.getElementsByTagName(a);for(b=0;b<a.length;b++)if(void 0!==a[b].className)for(var d=a[b].className.split(" "),f=0;f<d.length;f++)d[f]==c&&elements.push(a[b]);return elements};jwplayer.utils.strings=function(){};jwplayer.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};jwplayer.utils.strings.extension=function(a){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};
(function(a){a.utils.extensionmap={"3gp":"video/3gpp","3gpp":"video/3gpp","3g2":"video/3gpp2","3gpp2":"video/3gpp2",flv:"video/x-flv",f4a:"audio/mp4",f4b:"audio/mp4",f4p:"video/mp4",f4v:"video/mp4",mov:"video/quicktime",m4a:"audio/mp4",m4b:"audio/mp4",m4p:"audio/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp4:"video/mp4",sdp:"application/sdp",vp6:"video/x-vp6",aac:"audio/aac",mp3:"audio/mp3",ogg:"audio/ogg",ogv:"video/ogg",webm:"video/webm"}})(jwplayer);
(function(a){var c=[];a.constructor=function(b){return a.api.selectPlayer(b)};a.api=function(){};a.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",
JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};a.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};a.api.PlayerAPI=function(b){function c(a){return function(b){var c=b.newstate,b=b.oldstate;if(c==a){var d=h[c];
if(d)for(var e in d)"function"==typeof d[e]&&d[e].call(this,{oldstate:b,newstate:c})}}}this.container=b;this.id=b.id;var f={},h={},g=void 0,e=!1,j=[],o=b.outerHTML,n={},q=0;this.setPlayer=function(a){g=a};this.stateListener=function(b,e){h[b]||(h[b]=[],this.eventListener(a.api.events.JWPLAYER_PLAYER_STATE,c(b)));h[b].push(e);return this};this.addInternalListener=function(a,b){a.jwAddEventListener(b,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+b+'", dat); }')};this.eventListener=function(a,
b){f[a]||(f[a]=[],g&&e&&this.addInternalListener(g,a));f[a].push(b);return this};this.dispatchEvent=function(b,c){if(f[b]){var d;d=a.utils.extend({},c);b==a.api.events.JWPLAYER_FULLSCREEN?(d.fullscreen=d.message,delete d.message):b==a.api.events.JWPLAYER_PLAYLIST_ITEM?d.item&&void 0===d.index&&(d.index=d.item,delete d.item):"object"==typeof d.data&&(d=a.utils.extend(d,d.data),delete d.data);for(var e in f[b])"function"==typeof f[b][e]&&f[b][e].call(this,d)}};this.callInternal=function(a,b){if(e)return"undefined"!=
typeof g&&"function"==typeof g[a]?void 0!==b?g[a](b):g[a]():null;j.push({method:a,parameters:b})};this.playerReady=function(b){e=!0;g||this.setPlayer(a.utils.isIE()?window[b.id]:document[b.id]);this.container=document.getElementById(this.id);for(var c in f)this.addInternalListener(g,c);this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,function(a){void 0!==a.index?q=a.index:void 0!==a.item&&(q=a.item);n={}});this.eventListener(a.api.events.JWPLAYER_MEDIA_META,function(b){a.utils.extend(n,b.metadata)});
for(this.dispatchEvent(a.api.events.API_READY);0<j.length;)b=j.shift(),this.callInternal(b.method,b.parameters)};this.getItemMeta=function(){return n};this.getCurrentItem=function(){return q};this.destroy=function(){f={};j=[];this.container.outerHTML!=o&&a.api.destroyPlayer(this.id,o)}};a.api.PlayerAPI.prototype={container:void 0,options:void 0,id:void 0,getBuffer:function(){return this.callInternal("jwGetBuffer")},getDuration:function(){return this.callInternal("jwGetDuration")},getFullscreen:function(){return this.callInternal("jwGetFullscreen")},
getHeight:function(){return this.callInternal("jwGetHeight")},getLockState:function(){return this.callInternal("jwGetLockState")},getMeta:function(){return this.getItemMeta()},getMute:function(){return this.callInternal("jwGetMute")},getPlaylist:function(){for(var a=this.callInternal("jwGetPlaylist"),c=0;c<a.length;c++)void 0===a[c].index&&(a[c].index=c);return a},getPlaylistItem:function(a){void 0==a&&(a=this.getCurrentItem());return this.getPlaylist()[a]},getPosition:function(){return this.callInternal("jwGetPosition")},
getState:function(){return this.callInternal("jwGetState")},getVolume:function(){return this.callInternal("jwGetVolume")},getWidth:function(){return this.callInternal("jwGetWidth")},setFullscreen:function(a){void 0===a?this.callInternal("jwSetFullscreen",!0):this.callInternal("jwSetFullscreen",a);return this},setMute:function(a){void 0===a?this.callInternal("jwSetMute",!0):this.callInternal("jwSetMute",a);return this},lock:function(){return this},unlock:function(){return this},load:function(a){this.callInternal("jwLoad",
a);return this},playlistItem:function(a){this.callInternal("jwPlaylistItem",a);return this},playlistPrev:function(){this.callInternal("jwPlaylistPrev");return this},playlistNext:function(){this.callInternal("jwPlaylistNext");return this},resize:function(a,c){this.container.width=a;this.container.height=c;return this},play:function(b){"undefined"===typeof b?(b=this.getState(),b==a.api.events.state.PLAYING||b==a.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",
b);return this},pause:function(){switch(this.getState()){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:this.callInternal("jwPause");break;case a.api.events.state.PAUSED:this.callInternal("jwPlay")}return this},stop:function(){this.callInternal("jwStop");return this},seek:function(a){this.callInternal("jwSeek",a);return this},setVolume:function(a){this.callInternal("jwSetVolume",a);return this},onBufferChange:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,
b)},onBufferFull:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,b)},onError:function(b){return this.eventListener(a.api.events.JWPLAYER_ERROR,b)},onFullscreen:function(b){return this.eventListener(a.api.events.JWPLAYER_FULLSCREEN,b)},onMeta:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_META,b)},onMute:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_MUTE,b)},onPlaylist:function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,
b)},onPlaylistItem:function(b){return this.eventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,b)},onReady:function(b){return this.eventListener(a.api.events.API_READY,b)},onResize:function(b){return this.eventListener(a.api.events.JWPLAYER_RESIZE,b)},onComplete:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,b)},onTime:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_TIME,b)},onVolume:function(b){return this.eventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,
b)},onBuffer:function(b){return this.stateListener(a.api.events.state.BUFFERING,b)},onPause:function(b){return this.stateListener(a.api.events.state.PAUSED,b)},onPlay:function(b){return this.stateListener(a.api.events.state.PLAYING,b)},onIdle:function(b){return this.stateListener(a.api.events.state.IDLE,b)},setup:function(){return this},remove:function(){this.destroy()},initializePlugin:function(){return this}};a.api.selectPlayer=function(b){var c;void 0==b&&(b=0);b.nodeType?c=b:"string"==typeof b&&
(c=document.getElementById(b));return c?(b=a.api.playerById(c.id))?b:a.api.addPlayer(new a.api.PlayerAPI(c)):"number"==typeof b?a.getPlayers()[b]:null};a.api.playerById=function(a){for(var d in c)if(c[d].id==a)return c[d];return null};a.api.addPlayer=function(a){for(var d in c)if(c[d]==a)return a;c.push(a);return a};a.api.destroyPlayer=function(a,d){var f=-1,h;for(h in c)c[h].id==a&&(f=h);if(0<=f){if(h=document.getElementById(c[f].id))if(d)h.outerHTML=d;else{var g=document.createElement("div");g.setAttribute("id",
h.id);h.parentNode.replaceChild(g,h)}c.splice(f,1)}return null};a.getPlayers=function(){return c.slice(0)}})(jwplayer);var _userPlayerReady="function"==typeof playerReady?playerReady:void 0;playerReady=function(a){var c=jwplayer.api.playerById(a.id);c&&c.playerReady(a);_userPlayerReady&&_userPlayerReady.call(this,a)};
(function(a){function c(){if(!document.body)return setTimeout(c,15);for(var b=a.utils.selectors.getElementsByTagAndClass("video","jwplayer"),d=0;d<b.length;d++)a(b[d].id).setup({players:[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"}]})}a.embed=function(){};a.embed.Embedder=function(a){this.constructor(a)};a.embed.defaults={width:400,height:300,players:[{type:"flash",src:"player.swf"},{type:"html5"}],components:{controlbar:{position:"over"}}};a.embed.Embedder.prototype={config:void 0,api:void 0,
events:{},players:void 0,constructor:function(b){this.api=b;b=a.utils.mediaparser.parseMedia(this.api.container);this.config=this.parseConfig(a.utils.extend({},a.embed.defaults,b,this.api.config))},embedPlayer:function(){var b=this.players[0];if(b&&b.type)switch(b.type){case "flash":if(a.utils.hasFlash()){if(this.config.file&&!this.config.provider)switch(a.utils.extension(this.config.file).toLowerCase()){case "webm":case "ogv":case "ogg":this.config.provider="video"}if(this.config.levels||this.config.playlist)this.api.onReady(this.loadAfterReady(this.config));
this.config.id=this.api.id;b=a.embed.embedFlash(document.getElementById(this.api.id),b,this.config);this.api.container=b;this.api.setPlayer(b)}else return this.players.splice(0,1),this.embedPlayer();break;case "html5":if(a.utils.hasHTML5(this.config))b=a.embed.embedHTML5(document.getElementById(this.api.id),b,this.config),this.api.container=document.getElementById(this.api.id),this.api.setPlayer(b);else return this.players.splice(0,1),this.embedPlayer()}else this.api.container.innerHTML="<p>No suitable players found</p>";
this.setupEvents();return this.api},setupEvents:function(){for(evt in this.events)"function"==typeof this.api[evt]&&this.api[evt].call(this.api,this.events[evt])},loadAfterReady:function(a){return function(){if(a.playlist)this.load(a.playlist);else if(a.levels){var c=this.getPlaylistItem(0);c||(c={file:a.levels[0].file,provider:a.provider?a.provider:"video"});c.image||(c.image=a.image);c.levels=a.levels;this.load(c)}}},parseConfig:function(b){b=a.utils.extend({},b);b.events&&(this.events=b.events,
delete b.events);b.players&&(this.players=b.players,delete b.players);b.plugins&&"object"==typeof b.plugins&&(b=a.utils.extend(b,a.embed.parsePlugins(b.plugins)));b.playlist&&"string"===typeof b.playlist&&!b["playlist.position"]&&(b["playlist.position"]=b.playlist,delete b.playlist);b.controlbar&&"string"===typeof b.controlbar&&!b["controlbar.position"]&&(b["controlbar.position"]=b.controlbar,delete b.controlbar);return b}};a.embed.embedFlash=function(b,c,f){var f=a.utils.extend({},f),h=f.width;delete f.width;
var g=f.height;delete f.height;delete f.levels;delete f.playlist;a.embed.parseConfigBlock(f,"components");a.embed.parseConfigBlock(f,"providers");if(a.utils.isIE())return h='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+h+'" height="'+g+'" id="'+b.id+'" name="'+b.id+'">',h+='<param name="movie" value="'+c.src+'">',h=h+'<param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="opaque">'+('<param name="flashvars" value="'+
a.embed.jsonToFlashvars(f)+'">'),h+="</object>","video"==b.tagName.toLowerCase()?a.utils.mediaparser.replaceMediaElement(b,h):b.outerHTML=h,document.getElementById(b.id);var e=document.createElement("object");e.setAttribute("type","application/x-shockwave-flash");e.setAttribute("data",c.src);e.setAttribute("width",h);e.setAttribute("height",g);e.setAttribute("id",b.id);e.setAttribute("name",b.id);a.embed.appendAttribute(e,"allowfullscreen","true");a.embed.appendAttribute(e,"allowscriptaccess","always");
a.embed.appendAttribute(e,"wmode","opaque");a.embed.appendAttribute(e,"flashvars",a.embed.jsonToFlashvars(f));b.parentNode.replaceChild(e,b);return e};a.embed.embedHTML5=function(b,c,f){return a.html5?(b.innerHTML="",c=a.utils.extend({screencolor:"0x000000"},f),a.embed.parseConfigBlock(c,"components"),c.levels&&!c.sources&&(c.sources=f.levels),c.skin&&0<c.skin.toLowerCase().indexOf(".zip")&&(c.skin=c.skin.replace(/\.zip/i,".xml")),new (a.html5(b).setup)(c)):null};a.embed.appendAttribute=function(a,
c,f){var h=document.createElement("param");h.setAttribute("name",c);h.setAttribute("value",f);a.appendChild(h)};a.embed.jsonToFlashvars=function(a){var c="";for(key in a)c+=key+"="+escape(a[key])+"&";return c.substring(0,c.length-1)};a.embed.parsePlugins=function(a){if(!a)return{};var c={},f=[];for(plugin in a){var h=0<plugin.indexOf("-")?plugin.substring(0,plugin.indexOf("-")):plugin,g=a[plugin];f.push(plugin);for(param in g)c[h+"."+param]=g[param]}c.plugins=f.join(",");return c};a.embed.parseConfigBlock=
function(a,c){if(a[c]){var f=a[c],h;for(h in f){var g=f[h];if("string"==typeof g)a[h]||(a[h]=g);else for(var e in g)a[h+"."+e]||(a[h+"."+e]=g[e])}delete a[c]}};a.api.PlayerAPI.prototype.setup=function(b,c){b&&b.flashplayer&&!b.players&&(b.players=[{type:"flash",src:b.flashplayer},{type:"html5"}],delete b.flashplayer);c&&!b.players&&("string"==typeof c?b.players=[{type:"flash",src:c}]:c instanceof Array?b.players=c:"object"==typeof c&&c.type&&(b.players=[c]));var f=this.id;this.remove();f=a(f);f.config=
b;return(new a.embed.Embedder(f)).embedPlayer()};c()})(jwplayer);(function(a){a.html5=function(c){this.setup=function(b){a.utils.extend(this,new a.html5.api(c,b));return this};return this};a.html5.version="5.3"})(jwplayer);
(function(a){a.html5.utils=function(){};a.html5.utils.extension=function(a){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};a.html5.utils.getAbsolutePath=function(a){if(void 0!==a){var b;if(null===a)b=void 0;else{b=a.indexOf("://");var d=a.indexOf("?");b=0<b&&(0>d||d>b)}if(b)return a;b=document.location.href.substring(0,document.location.href.indexOf("://")+3);d=document.location.href.substring(b.length,document.location.href.indexOf("/",b.length+1));if(0===a.indexOf("/"))a=a.split("/");
else var f=document.location.href.split("?")[0],f=f.substring(b.length+d.length+1,f.lastIndexOf("/")),a=f.split("/").concat(a.split("/"));for(var f=[],h=0;h<a.length;h++)if(a[h]&&!(void 0===a[h]||"."==a[h]))".."==a[h]?f.pop():f.push(a[h]);return b+d+"/"+f.join("/")}};a.html5.utils.mapEmpty=function(a){for(var b in a)return!1;return!0};a.html5.utils.mapLength=function(a){var b=0,d;for(d in a)b++;return b};a.html5.utils.log=function(a,b){"undefined"!=typeof console&&"undefined"!=typeof console.log&&
(b?console.log(a,b):console.log(a))};a.html5.utils.css=function(a,b){if(void 0!==a)for(var d in b)try{if("undefined"!==typeof b[d]){if("number"==typeof b[d]&&!("zIndex"==d||"opacity"==d)){if(isNaN(b[d]))continue;var f=b,h=d,g;if(d.match(/color/i)){for(var e=b[d].toString(16);6>e.length;)e="0"+e;g="#"+e}else g=b[d]+"px";f[h]=g}a.style[d]=b[d]}}catch(j){}};a.html5.utils.isYouTube=function(a){return-1<a.indexOf("youtube.com")};a.html5.utils.getYouTubeId=function(a){a.indexOf("youtube.com">0)}})(jwplayer);
(function(a){var c=a.html5.utils.css;a.html5.view=function(b,d,f){function h(){for(var a in l.plugins.order){var b=l.plugins.order[a];void 0!==l.plugins.object[b].getDisplayElement&&(l.plugins.object[b].height=e(l.plugins.object[b].getDisplayElement().style.height),l.plugins.object[b].width=e(l.plugins.object[b].getDisplayElement().style.width),l.plugins.config[b].currentPosition=l.plugins.config[b].position)}g()}function g(){if(void 0!==l.getMedia())for(var b in l.plugins.order){var c=l.plugins.order[b];
void 0!==l.plugins.object[c].getDisplayElement&&(l.plugins.config[c].currentPosition=l.config.chromeless||l.getMedia().hasChrome()?a.html5.view.positions.NONE:l.plugins.config[c].position)}n(l.width,l.height)}function e(a){return"number"==typeof a?a:""===a?0:parseInt(a.replace("px",""),10)}function j(){w=setInterval(function(){if(y.width&&y.height&&(l.width!==e(y.width)||l.height!==e(y.height)))n(e(y.width),e(y.height));else{var a=y.getBoundingClientRect();(l.width!==a.width||l.height!==a.height)&&
n(a.width,a.height);delete a}},100)}function o(b){switch(b.keyCode){case 27:x.jwGetFullscreen()&&x.jwSetFullscreen(!1);break;case 32:x.jwGetState()!=a.api.events.state.IDLE&&x.jwGetState()!=a.api.events.state.PAUSED?x.jwPause():x.jwPlay()}}function n(a,b){if("none"!=y.style.display){var d=[].concat(l.plugins.order);d.reverse();u=d.length+2;l.fullscreen?q(v,d,!0):(l.width=a,l.height=b,z=a,s=b,c(k,{top:0,bottom:0,left:0,right:0,width:a,height:b}),c(y,{height:s,width:z}),d=q(m,d),0<d.length&&(u+=d.length,
q(t,d,!0)),k.style.position="absolute",d={position:"absolute",width:e(k.style.width),height:e(k.style.height),top:e(k.style.top),left:e(k.style.left)},c(l.getMedia().getDisplayElement(),d))}}function q(b,d,e){var f=[],h;for(h in d){var g=d[h];if(void 0!==l.plugins.object[g].getDisplayElement)if(l.plugins.config[g].currentPosition.toUpperCase()!==a.html5.view.positions.NONE){var k=b(g,u--);k?(l.plugins.object[g].resize(k.width,k.height),e&&(delete k.width,delete k.height),c(l.plugins.object[g].getDisplayElement(),
k)):f.push(g)}else c(l.plugins.object[g].getDisplayElement(),{display:"none"})}return f}function m(b,c){if(void 0!==l.plugins.object[b].getDisplayElement&&-1<[a.html5.view.positions.TOP,a.html5.view.positions.RIGHT,a.html5.view.positions.BOTTOM,a.html5.view.positions.LEFT].indexOf(l.plugins.config[b].position.toUpperCase())){null===l.plugins.object[b].getDisplayElement().parentNode&&y.appendChild(l.plugins.object[b].getDisplayElement());var d={position:"absolute",margin:0,padding:0,top:null},f=l.plugins.config[b].currentPosition.toLowerCase();
switch(f.toUpperCase()){case a.html5.view.positions.TOP:d.top=e(k.style.top);d.left=e(k.style.left);d.width=z-e(k.style.left)-e(k.style.right);d.height=l.plugins.object[b].height;k.style[f]=e(k.style[f])+l.plugins.object[b].height+"px";k.style.height=e(k.style.height)-d.height+"px";break;case a.html5.view.positions.RIGHT:d.top=e(k.style.top);d.right=e(k.style.right);d.width=d.width=l.plugins.object[b].width;d.height=s-e(k.style.top)-e(k.style.bottom);k.style[f]=e(k.style[f])+l.plugins.object[b].width+
"px";k.style.width=e(k.style.width)-d.width+"px";break;case a.html5.view.positions.BOTTOM:d.bottom=e(k.style.bottom);d.left=e(k.style.left);d.width=z-e(k.style.left)-e(k.style.right);d.height=l.plugins.object[b].height;k.style[f]=e(k.style[f])+l.plugins.object[b].height+"px";k.style.height=e(k.style.height)-d.height+"px";break;case a.html5.view.positions.LEFT:d.top=e(k.style.top),d.left=e(k.style.left),d.width=l.plugins.object[b].width,d.height=s-e(k.style.top)-e(k.style.bottom),k.style[f]=e(k.style[f])+
l.plugins.object[b].width+"px",k.style.width=e(k.style.width)-d.width+"px"}d.zIndex=c;return d}return!1}function t(a,b){null===l.plugins.object[a].getDisplayElement().parentNode&&k.appendChild(l.plugins.object[a].getDisplayElement());return{position:"absolute",width:l.width-e(k.style.left)-e(k.style.right),height:l.height-e(k.style.top)-e(k.style.bottom),zIndex:b}}function v(a,b){return{position:"fixed",width:l.width,height:l.height,zIndex:b}}var x=b,p=d,l=f,y,z,s,k,u,w;this.setup=function(b){p=b;
y=document.createElement("div");y.id=p.id;y.className=p.className;p.id=y.id+"_video";c(y,{position:"relative",height:l.height,width:l.width,padding:0,backgroundColor:x.skin.getComponentSettings("display")&&x.skin.getComponentSettings("display").backgroundcolor?x.skin.getComponentSettings("display").backgroundcolor:0,zIndex:0});c(p,{position:"absolute",width:l.width,height:l.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});a.utils.wrap(p,y);k=document.createElement("div");k.id=y.id+"_displayarea";
y.appendChild(k);h();x.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_LOADED,g);j();var d;null!==window.onresize&&(d=window.onresize);window.onresize=function(a){if(void 0!==d)try{d(a)}catch(b){}x.jwGetFullscreen()&&(l.width=window.innerWidth,l.height=window.innerHeight);n(l.width,l.height)}};this.resize=n;this.fullscreen=function(a){0===navigator.vendor.indexOf("Apple")?l.getMedia().getDisplayElement().webkitSupportsFullscreen?a?(l.fullscreen=!1,l.getMedia().getDisplayElement().webkitEnterFullscreen()):
l.getMedia().getDisplayElement().webkitExitFullscreen():l.fullscreen=!1:(a?(document.onkeydown=o,clearInterval(w),l.width=window.innerWidth,l.height=window.innerHeight,a={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483E3},c(y,a),a.zIndex=1,c(l.getMedia().getDisplayElement(),a),a.zIndex=2,c(k,a)):(document.onkeydown="",j(),l.width=z,l.height=s,c(y,{position:"relative",height:l.height,width:l.width,zIndex:0})),n(l.width,l.height))}};a.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",
BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);
(function(a){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:0,fontstyle:"normal",fontweight:"bold",buttoncolor:16777215,position:a.html5.view.positions.BOTTOM,idlehide:!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"}]}}};_css=a.html5.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.controlbar=function(b,d){function f(){D=C=B=0;if(!K){var a={height:k.skin.getSkinElement("controlbar","background").height,
backgroundColor:u.backgroundcolor};w=document.createElement("div");w.id=k.id+"_jwplayer_controlbar";_css(w,a)}n("capLeft","left",!1,w);a={position:"absolute",height:k.skin.getSkinElement("controlbar","background").height,background:" url("+k.skin.getSkinElement("controlbar","background").src+") repeat-x center left",left:k.skin.getSkinElement("controlbar","capLeft").width};e("elements",w,a);n("capRight","right",!1,w)}function h(){var a=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],
b;for(b in a){var c=a[b];"undefined"!=typeof r[c]&&(H[c]=r[c].getBoundingClientRect())}}function g(){a.html5.utils.cancelAnimation(w);var b;b=k.jwGetState()==a.api.events.state.IDLE||k.jwGetState()==a.api.events.state.PAUSED?u.idlehide?!1:!0:k.jwGetFullscreen()||u.position.toUpperCase()==a.html5.view.positions.OVER?!1:!0;b?a.html5.utils.fadeTo(w,1,0,1,0):a.html5.utils.fadeTo(w,0,0.1,1,2)}function e(a,b,c){var d;K?d=document.getElementById(w.id+"_"+a):(d=document.createElement("div"),r[a]=d,d.id=w.id+
"_"+a,b.appendChild(d));void 0!==c&&_css(d,c);return d}function j(){o(u.layout.left);o(u.layout.right,-1);o(u.layout.center)}function o(b,c){var d="right"==b.position?"right":"left",f=a.utils.extend([],b.elements);void 0!==c&&f.reverse();for(var h=0;h<f.length;h++){var g=d,j=void 0,l=void 0,p=void 0,l=l=void 0;switch(f[h].name){case "play":n("playButton",g,!1);n("pauseButton",g,!0);m("playButton","jwPlay");m("pauseButton","jwPause");break;case "divider":n("divider"+D++,g,!0);break;case "prev":n("prevButton",
g,!0);m("prevButton","jwPlaylistPrev");break;case "next":n("nextButton",g,!0);m("nextButton","jwPlaylistNext");break;case "elapsed":n("elapsedText",g,!0);break;case "time":l=void 0===k.skin.getSkinElement("controlbar","timeSliderCapLeft")?0:k.skin.getSkinElement("controlbar","timeSliderCapLeft").width;p=void 0===k.skin.getSkinElement("controlbar","timeSliderCapRight")?0:k.skin.getSkinElement("controlbar","timeSliderCapRight").width;j="left"==g?l:p;l=k.skin.getSkinElement("controlbar","timeSliderRail").width+
l+p;l={height:k.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:l};l[g]="left"==g?B:C;l=e("timeSlider",r.elements,l);n("timeSliderCapLeft",g,!0,l,"left"==g?0:j);n("timeSliderRail",g,!1,l,j);n("timeSliderBuffer",g,!1,l,j);n("timeSliderProgress",g,!1,l,j);n("timeSliderThumb",g,!1,l,j);n("timeSliderCapRight",g,!0,l,"right"==g?0:j);t("time");break;case "fullscreen":n("fullscreenButton",g,!1);n("normalscreenButton",g,!0);m("fullscreenButton","jwSetFullscreen",!0);
m("normalscreenButton","jwSetFullscreen",!1);break;case "volume":l=void 0===k.skin.getSkinElement("controlbar","volumeSliderCapLeft")?0:k.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;p=void 0===k.skin.getSkinElement("controlbar","volumeSliderCapRight")?0:k.skin.getSkinElement("controlbar","volumeSliderCapRight").width;j="left"==g?l:p;l=k.skin.getSkinElement("controlbar","volumeSliderRail").width+l+p;l={height:k.skin.getSkinElement("controlbar","background").height,position:"absolute",
top:0,width:l};l[g]="left"==g?B:C;l=e("volumeSlider",r.elements,l);n("volumeSliderCapLeft",g,!0,l,"left"==g?0:j);n("volumeSliderRail",g,!0,l,j);n("volumeSliderProgress",g,!1,l,j);n("volumeSliderCapRight",g,!0,l,"right"==g?0:j);t("volume");break;case "mute":n("muteButton",g,!1);n("unmuteButton",g,!0);m("muteButton","jwSetMute",!0);m("unmuteButton","jwSetMute",!1);break;case "duration":n("durationText",g,!0)}}}function n(a,b,c,d,f){if((void 0!==k.skin.getSkinElement("controlbar",a)||0<a.indexOf("Text")||
0===a.indexOf("divider"))&&!(0===a.indexOf("divider")&&0===M.indexOf("divider"))){M=a;var g={height:k.skin.getSkinElement("controlbar","background").height,position:"absolute",display:"block",top:0};if((0===a.indexOf("next")||0===a.indexOf("prev"))&&2>k.jwGetPlaylist().length)c=!1,g.display="none";var h;0<a.indexOf("Text")?(a.innerhtml="00:00",g.font=u.fontsize+"px/"+(k.skin.getSkinElement("controlbar","background").height+1)+"px "+u.font,g.color=u.fontcolor,g.textAlign="center",g.fontWeight=u.fontweight,
g.fontStyle=u.fontstyle,g.cursor="default",h=14+3*u.fontsize):0===a.indexOf("divider")?(g.background="url("+k.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",h=k.skin.getSkinElement("controlbar","divider").width):(g.background="url("+k.skin.getSkinElement("controlbar",a).src+") repeat-x center left",h=k.skin.getSkinElement("controlbar",a).width);"left"==b?(g.left=void 0===f?B:f,c&&(B+=h)):"right"==b&&(g.right=void 0===f?C:f,c&&(C+=h));void 0===d&&(d=r.elements);g.width=h;
if(K)_css(r[a],g);else{var l=e(a,d,g);void 0!==k.skin.getSkinElement("controlbar",a+"Over")&&(l.onmouseover=function(){l.style.backgroundImage=["url(",k.skin.getSkinElement("controlbar",a+"Over").src,")"].join("")},l.onmouseout=function(){l.style.backgroundImage=["url(",k.skin.getSkinElement("controlbar",a).src,")"].join("")})}}}function q(){l({id:k.id,duration:k.jwGetDuration(),position:0});v({id:k.id,bufferProgress:0});x({id:k.id,mute:k.jwGetMute()});p({id:k.id,newstate:a.api.events.state.IDLE});
s({id:k.id,volume:k.jwGetVolume()})}function m(a,b,c){!K&&void 0!==k.skin.getSkinElement("controlbar",a)&&(a=r[a],null!==a&&(_css(a,{cursor:"pointer"}),a.onmouseup="fullscreen"==b?function(a){a.stopPropagation();k.jwSetFullscreen(!k.jwGetFullscreen())}:function(a){a.stopPropagation();if(null!==c)k[b](c);else k[b]()}))}function t(b){if(!K){var c=r[b+"Slider"];_css(r.elements,{cursor:"pointer"});_css(c,{cursor:"pointer"});c.onmousedown=function(){A=b};c.onmouseup=function(b){b.stopPropagation();b=b.pageX;
I=!1;"time"==A?(b=b-H.timeSliderRail.left+window.pageXOffset,b=b/H.timeSliderRail.width*E,0>b?b=0:b>E&&(b=E-3),k.jwSeek(b),k.jwGetState()!=a.api.events.state.PLAYING&&k.jwPlay()):"volume"==A&&(b=b-H.volumeSliderRail.left-window.pageXOffset,b=Math.round(100*(b/H.volumeSliderRail.width)),0>b?b=0:100<b&&(b=100),k.jwGetMute()&&k.jwSetMute(!1),k.jwSetVolume(b));A="none"};c.onmousemove=function(a){"time"==A&&(I=!0,_css(r.timeSliderThumb,{left:a.pageX-H[b+"Slider"].left-window.pageXOffset}))}}}function v(a){null!==
a.bufferPercent&&(F=a.bufferPercent);a=H.timeSliderRail.width;a=isNaN(Math.round(a*F/100))?0:Math.round(a*F/100);_css(r.timeSliderBuffer,{width:a})}function x(a){a.mute?(_hide(r.muteButton),_show(r.unmuteButton),_hide(r.volumeSliderProgress)):(_show(r.muteButton),_hide(r.unmuteButton),_show(r.volumeSliderProgress))}function p(b){b.newstate==a.api.events.state.BUFFERING||b.newstate==a.api.events.state.PLAYING?(_show(r.pauseButton),_hide(r.playButton)):(_hide(r.pauseButton),_show(r.playButton));g();
b.newstate==a.api.events.state.IDLE?(_hide(r.timeSliderBuffer),_hide(r.timeSliderProgress),_hide(r.timeSliderThumb),l({id:k.id,duration:k.jwGetDuration(),position:0})):(_show(r.timeSliderBuffer),b.newstate!=a.api.events.state.BUFFERING&&(_show(r.timeSliderProgress),_show(r.timeSliderThumb)))}function l(a){null!==a.position&&(G=a.position);null!==a.duration&&(E=a.duration);a=0===(G===E)?0:G/E;a=isNaN(Math.round(H.timeSliderRail.width*a))?0:Math.round(H.timeSliderRail.width*a);r.timeSliderProgress.style.width=
a+"px";!I&&r.timeSliderThumb&&(r.timeSliderThumb.style.left=a+"px");r.durationText&&(r.durationText.innerHTML=y(E));r.elapsedText&&(r.elapsedText.innerHTML=y(G))}function y(a){str="00:00";0<a&&(str=10>Math.floor(a/60)?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":",str+=10>Math.floor(a%60)?"0"+Math.floor(a%60):Math.floor(a%60));return str}function z(){var b,c,d=document.getElementById(w.id+"_elements").childNodes,e;for(e in document.getElementById(w.id+"_elements").childNodes)isNaN(parseInt(e,10))||
(0===d[e].id.indexOf(w.id+"_divider")&&0===c.id.indexOf(w.id+"_divider")?d[e].style.display="none":0===d[e].id.indexOf(w.id+"_divider")&&"none"!=b.style.display&&(d[e].style.display="block"),"none"!=d[e].style.display&&(c=d[e]),b=d[e]);k.jwGetFullscreen()?(_show(r.normalscreenButton),_hide(r.fullscreenButton)):(_hide(r.normalscreenButton),_show(r.fullscreenButton));b={width:L};c={};u.position.toUpperCase()==a.html5.view.positions.OVER||k.jwGetFullscreen()?(b.left=u.margin,b.width-=2*u.margin,b.top=
J-k.skin.getSkinElement("controlbar","background").height-u.margin,b.height=k.skin.getSkinElement("controlbar","background").height):b.left=0;c.left=k.skin.getSkinElement("controlbar","capLeft").width;c.width=b.width-k.skin.getSkinElement("controlbar","capLeft").width-k.skin.getSkinElement("controlbar","capRight").width;d=void 0===k.skin.getSkinElement("controlbar","timeSliderCapLeft")?0:k.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(r.timeSliderRail,{width:c.width-B-C,left:d});
void 0!==r.timeSliderCapRight&&_css(r.timeSliderCapRight,{left:d+(c.width-B-C)});_css(w,b);_css(r.elements,c);h();return b}function s(a){if(void 0!==r.volumeSliderRail){var a=isNaN(a.volume/100)?1:a.volume/100,b=parseInt(r.volumeSliderRail.style.width.replace("px",""),10),a=isNaN(Math.round(b*a))?0:Math.round(b*a);parseInt(r.volumeSliderRail.style.right.replace("px",""),10);b=void 0===k.skin.getSkinElement("controlbar","volumeSliderCapLeft")?0:k.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;
_css(r.volumeSliderProgress,{width:a,left:b});void 0!==r.volumeSliderCapLeft&&_css(r.volumeSliderCapLeft,{left:0})}}var k=b,u=a.utils.extend({},c,k.skin.getComponentSettings("controlbar"),d);0<a.html5.utils.mapLength(k.skin.getComponentLayout("controlbar"))&&(u.layout=k.skin.getComponentLayout("controlbar"));var w,D,B,C,A="none",I,G,E,F,L,J,M,r={},K=!1,H={};this.getDisplayElement=function(){return w};this.resize=function(b,c){a.html5.utils.cancelAnimation(w);document.getElementById(k.id).onmousemove=
g;L=b;J=c;g();var d=z();l({id:k.id,duration:E,position:G});v({id:k.id,bufferPercent:F});return d};f();j();h();K=!0;k.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_LOADED,function(){f();j();z();q()});k.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER,v);k.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,p);k.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_TIME,l);k.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,x);k.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_VOLUME,s);k.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,
function(b){l(a.utils.extend(b,{position:0,duration:E}))});q();w.style.opacity=u.idlehide?0:1;return this}})(jwplayer);
(function(a){a.html5.controller=function(c,b,d,f){function h(a){v.sendEvent(a.type,a)}function g(){try{return 0<m.playlist[0].levels[0].file.length&&(t||m.state==a.api.events.state.IDLE?(m.setActiveMediaProvider(m.playlist[m.item]),m.addEventListener(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){m.getMedia().play()}),m.config.repeat&&m.addEventListener(a.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(q,25)}),m.getMedia().load(m.playlist[m.item]),t=!1):m.state==a.api.events.state.PAUSED&&
m.getMedia().play()),!0}catch(b){v.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function e(){try{return 0<m.playlist[0].levels[0].file.length&&m.state!=a.api.events.state.IDLE&&m.getMedia().stop(),!0}catch(b){v.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1}function j(){try{return 0<m.playlist[0].levels[0].file.length&&(m.config.shuffle?n(o()):m.item+1==m.playlist.length?n(0):n(m.item+1)),m.state!=a.api.events.state.PLAYING&&m.state!=a.api.events.state.BUFFERING&&g(),!0}catch(b){v.sendEvent(a.api.events.JWPLAYER_ERROR,
b)}return!1}function o(){var a=null;if(1<m.playlist.length)for(;null===a;)a=Math.floor(Math.random()*m.playlist.length),a==m.item&&(a=null);else a=0;return a}function n(b){m.resetEventListeners();m.addGlobalListener(h);try{if(0<m.playlist[0].levels[0].file.length){var c=m.state;c!==a.api.events.state.IDLE&&e();m.item=b;t=!0;v.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{item:b});(c==a.api.events.state.PLAYING||c==a.api.events.state.BUFFERING)&&g()}return!0}catch(d){v.sendEvent(a.api.events.JWPLAYER_ERROR,
d)}return!1}function q(){m.resetEventListeners();m.addGlobalListener(h);switch(m.config.repeat.toUpperCase()){case a.html5.controller.repeatoptions.SINGLE:g();break;case a.html5.controller.repeatoptions.ALWAYS:m.item==m.playlist.length-1&&!m.config.shuffle?(n(0),g()):j();break;case a.html5.controller.repeatoptions.LIST:m.item==m.playlist.length-1&&!m.config.shuffle?n(0):j()}}var m=d,t=!0,c=void 0!==m.config.debug&&"console"==m.config.debug.toString().toLowerCase(),v=new a.html5.eventdispatcher(b.id,
c);a.utils.extend(this,v);m.addGlobalListener(h);a.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};this.play=g;this.pause=function(){try{if(0<m.playlist[0].levels[0].file.length)switch(m.state){case a.api.events.state.PLAYING:case a.api.events.state.BUFFERING:m.getMedia().pause()}return!0}catch(b){v.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1};this.seek=function(b){try{if(0<m.playlist[0].levels[0].file.length)switch(m.state){case a.api.events.state.PLAYING:case a.api.events.state.PAUSED:case a.api.events.state.BUFFERING:m.getMedia().seek(b)}return!0}catch(c){v.sendEvent(a.api.events.JWPLAYER_ERROR,
c)}return!1};this.stop=e;this.next=j;this.prev=function(){try{return 0<m.playlist[0].levels[0].file.length&&(m.config.shuffle?n(o()):0===m.item?n(m.playlist.length-1):n(m.item-1)),m.state!=a.api.events.state.PLAYING&&m.state!=a.api.events.state.BUFFERING&&g(),!0}catch(b){v.sendEvent(a.api.events.JWPLAYER_ERROR,b)}return!1};this.item=n;this.setVolume=function(b){try{switch(typeof b){case "number":m.getMedia().volume(b);break;case "string":m.getMedia().volume(parseInt(b,10))}return!0}catch(c){v.sendEvent(a.api.events.JWPLAYER_ERROR,
c)}return!1};this.setMute=function(b){try{return m.getMedia().mute(b),!0}catch(c){v.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1};this.resize=function(b,c){try{return m.width=b,m.height=c,f.resize(b,c),!0}catch(d){v.sendEvent(a.api.events.JWPLAYER_ERROR,d)}return!1};this.setFullscreen=function(b){try{return m.fullscreen=b,f.fullscreen(b),!0}catch(c){v.sendEvent(a.api.events.JWPLAYER_ERROR,c)}return!1};this.load=function(b){try{return e(),m.loadPlaylist(b),t=!0}catch(c){v.sendEvent(a.api.events.JWPLAYER_ERROR,
c)}return!1}}})(jwplayer);
(function(a){a.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';this.xml=
null;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));return this}})(jwplayer);
(function(a){_css=a.html5.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};a.html5.display=function(c){function b(a,b){var c=document.createElement(a);c.id=g.id+"_jwplayer_"+b;_css(c,x[b].style);return c}function d(){for(var a in e)void 0!==x[a].click&&(e[a].onclick=x[a].click)}function f(a){m||(_show(e.display_iconBackground),e.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a).src,")"].join(""),_css(e.display_icon,{display:"block",
width:g.skin.getSkinElement("display",a).width,height:g.skin.getSkinElement("display",a).height,top:(g.skin.getSkinElement("display","background").height-g.skin.getSkinElement("display",a).height)/2,left:(g.skin.getSkinElement("display","background").width-g.skin.getSkinElement("display",a).width)/2}),void 0!==g.skin.getSkinElement("display",a+"Over")?(e.display_icon.onmouseover=function(){e.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a+"Over").src,")"].join("")},e.display_icon.onmouseout=
function(){e.display_icon.style.backgroundImage=["url(",g.skin.getSkinElement("display",a).src,")"].join("")}):(e.display_icon.onmouseover=null,e.display_icon.onmouseout=null))}function h(b){if((b.type==a.api.events.JWPLAYER_PLAYER_STATE||b.type==a.api.events.JWPLAYER_PLAYLIST_ITEM)&&m)m=!1,_hide(e.display_text);void 0!==q&&(clearInterval(q),q=null,a.html5.utils.animations.rotate(e.display_icon,0));switch(g.jwGetState()){case a.api.events.state.BUFFERING:f("bufferIcon");n=0;q=setInterval(function(){n+=
t;a.html5.utils.animations.rotate(e.display_icon,n%360)},v);f("bufferIcon");break;case a.api.events.state.PAUSED:_css(e.display_image,{background:"transparent no-repeat center center"});f("playIcon");break;case a.api.events.state.IDLE:g.jwGetPlaylist()[g.jwGetItem()].image?(_css(e.display_image,{display:"block"}),e.display_image.src=a.html5.utils.getAbsolutePath(g.jwGetPlaylist()[g.jwGetItem()].image)):(_css(e.display_image,{display:"none"}),delete e.display_image.src);f("playIcon");break;default:g.jwGetMute()?
(_css(e.display_image,{display:"none"}),delete e.display_image.src,f("muteIcon")):(_css(e.display_image,{display:"none"}),delete e.display_image.src,_hide(e.display_iconBackground),_hide(e.display_icon))}}var g=c,e={},j,o,n,q,m,t=void 0===g.skin.getComponentSettings("display").bufferrotation?15:parseInt(g.skin.getComponentSettings("display").bufferrotation,10),v=void 0===g.skin.getComponentSettings("display").bufferinterval?100:parseInt(g.skin.getComponentSettings("display").bufferinterval,10),x=
{display:{style:{cursor:"pointer",top:0,left:0},click:function(b){"undefined"!=typeof b.preventDefault?b.preventDefault():b.returnValue=!1;g.jwGetState()!=a.api.events.state.PLAYING?g.jwPlay():g.jwPause()}},display_icon:{style:{cursor:"pointer",position:"absolute",top:(g.skin.getSkinElement("display","background").height-g.skin.getSkinElement("display","playIcon").height)/2,left:(g.skin.getSkinElement("display","background").width-g.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,
padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(o-g.skin.getSkinElement("display","background").height)/2,left:(j-g.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",g.skin.getSkinElement("display","background").src,")"].join(""),width:g.skin.getSkinElement("display","background").width,height:g.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:j,
height:o,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:0,color:16777215,textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,h);g.jwAddEventListener(a.api.events.JWPLAYER_MEDIA_MUTE,h);g.jwAddEventListener(a.api.events.JWPLAYER_PLAYLIST_ITEM,h);g.jwAddEventListener(a.api.events.JWPLAYER_ERROR,
function(a){m=!0;_hide(e.display_icon);_hide(e.display_iconBackground);e.display_text.innerHTML=a.error;_show(e.display_text);e.display_text.style.top=(o-e.display_text.getBoundingClientRect().height)/2+"px"});(function(){e.display=b("div","display");e.display_text=b("div","display_text");e.display.appendChild(e.display_text);e.display_image=b("img","display_image");e.display_image.onerror=function(){_hide(e.display_image)};e.display_icon=b("div","display_icon");e.display_iconBackground=b("div","display_iconBackground");
e.display.appendChild(e.display_image);e.display_iconBackground.appendChild(e.display_icon);e.display.appendChild(e.display_iconBackground);d()})();this.getDisplayElement=function(){return e.display};this.resize=function(a,b){j=a;o=b;_css(e.display,{width:a,height:b});_css(e.display_text,{width:a-10,top:(o-e.display_text.getBoundingClientRect().height)/2});_css(e.display_image,{width:a,height:b});_css(e.display_iconBackground,{top:(o-g.skin.getSkinElement("display","background").height)/2,left:(j-
g.skin.getSkinElement("display","background").width)/2});h({})};return this}})(jwplayer);
(function(a){a.html5.eventdispatcher=function(c,b){var d,f;this.resetEventListeners=function(){d={};f=[]};this.resetEventListeners();this.addEventListener=function(b,c,e){try{void 0===d[b]&&(d[b]=[]),"string"==typeof c&&eval("listener = "+c),d[b].push({listener:c,count:e})}catch(f){a.html5.utils.log("error",f)}return!1};this.removeEventListener=function(b,c){try{for(var e in d[b])if(d[b][e].toString()==c.toString()){d[b].slice(e,e+1);break}}catch(f){a.html5.utils.log("error",f)}return!1};this.addGlobalListener=
function(b,c){try{"string"==typeof b&&eval("listener = "+b),f.push({listener:b,count:c})}catch(d){a.html5.utils.log("error",d)}return!1};this.removeGlobalListener=function(b){try{for(var c in f)if(f[c].toString()==b.toString()){f.slice(c,c+1);break}}catch(d){a.html5.utils.log("error",d)}return!1};this.sendEvent=function(h,g){void 0===g&&(g={});a.utils.extend(g,{id:c,version:a.html5.version,type:h});b&&a.html5.utils.log(h,g);for(var e in d[h]){try{d[h][e].listener(g)}catch(j){a.html5.utils.log("There was an error while handling a listener",
d[h][e].listener,j)}1===d[h][e].count?delete d[h][e]:0<d[h][e].count&&(d[h][e].count-=1)}for(var o in f){try{f[o].listener(g)}catch(n){a.html5.utils.log("There was an error while handling a listener",f[o].listener,n)}1===f[o].count?delete f[o]:0<f[o].count&&(f[o].count-=1)}}}})(jwplayer);
(function(a){a.html5.extensionmap={"3gp":"video/3gpp","3gpp":"video/3gpp","3g2":"video/3gpp2","3gpp2":"video/3gpp2",flv:"video/x-flv",f4a:"audio/mp4",f4b:"audio/mp4",f4p:"video/mp4",f4v:"video/mp4",mov:"video/quicktime",m4a:"audio/mp4",m4b:"audio/mp4",m4p:"audio/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp4:"video/mp4",sdp:"application/sdp",vp6:"video/x-vp6",aac:"audio/aac",mp3:"audio/mp3",ogg:"audio/ogg",ogv:"video/ogg",webm:"video/webm"}})(jwplayer);
(function(a){var c={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:3,hide:!0,position:"bottom-left"};_css=a.html5.utils.css;a.html5.logo=function(b,d){function f(){e&&clearTimeout(e);e=setTimeout(function(){a.html5.utils.fadeTo(n,0,0.1,parseFloat(n.style.opacity))},1E3*o.timeout)}function h(){switch(g.jwGetState()){case a.api.events.state.BUFFERING:n.style.display="block";n.style.opacity=o.out;o.hide&&
f();break;case a.api.events.state.PAUSED:break;case a.api.events.state.IDLE:break;case a.api.events.state.PLAYING:break;default:o.hide&&f()}}var g=b,e;if(c.prefix){var j=b.version.split(/\W/).splice(0,2).join("/");0>c.prefix.indexOf(j)&&(c.prefix+=j+"/")}d.position==a.html5.view.positions.OVER&&(d.position=c.position);var o=a.utils.extend({},c,d);if(o.file){var n=document.createElement("img");n.id=g.id+"_jwplayer_logo";n.style.display="none";n.onload=function(){var b=_css,c=n,d={textDecoration:"none",
position:"absolute"};d.display=o.hide?"none":"block";var e=o.position.toLowerCase().split("-"),f;for(f in e)d[e[f]]=o.margin;b(c,d);g.jwAddEventListener(a.api.events.JWPLAYER_PLAYER_STATE,h)};n.src=0===o.file.indexOf("http://")?o.file:o.prefix+o.file;n.onmouseover=function(){n.style.opacity=o.over;f()};n.onmouseout=function(){n.style.opacity=o.out;f()};n.onclick=function(a){a.stopPropagation();window.open(o.link,"_blank")};this.resize=function(){};this.getDisplayElement=function(){return n};return this}}})(jwplayer);
(function(a){var c={ended:a.api.events.state.IDLE,playing:a.api.events.state.PLAYING,pause:a.api.events.state.PAUSED,buffering:a.api.events.state.BUFFERING};a.html5.mediavideo=function(b,d){function f(){}function h(){}function g(a){c[a.type]&&e(c[a.type])}function e(b){if(!J&&(C&&(b=a.api.events.state.IDLE),!(b==a.api.events.state.PAUSED&&D==a.api.events.state.IDLE))){if(D!=b){var c=D;D=s.state=b;var d=!1;if(b==a.api.events.state.IDLE){clearInterval(B);B=null;if(s.position>=s.duration&&(s.position||
s.duration))d=!0;"none"!=k.style.display&&!s.config.chromeless&&(k.style.display="none")}z.sendEvent(a.api.events.JWPLAYER_PLAYER_STATE,{oldstate:c,newstate:b});d&&z.sendEvent(a.api.events.JWPLAYER_MEDIA_COMPLETE)}C=!1}}function j(b){var c={height:b.target.videoHeight,width:b.target.videoWidth,duration:Math.round(10*b.target.duration)/10};if(0===s.duration||isNaN(s.duration))s.duration=Math.round(10*b.target.duration)/10;s.playlist[s.item]=a.utils.extend(s.playlist[s.item],c);z.sendEvent(a.api.events.JWPLAYER_MEDIA_META,
{metadata:c})}function o(b){if(!C){if(void 0!==b&&void 0!==b.target){if(0===s.duration||isNaN(s.duration))s.duration=Math.round(10*b.target.duration)/10;!A&&0<k.readyState&&e(a.api.events.state.PLAYING);if(D==a.api.events.state.PLAYING){if(!A&&0<k.readyState){A=!0;try{k.currentTime=s.playlist[s.item].start}catch(c){}k.volume=s.volume/100;k.muted=s.mute}s.position=Math.round(10*b.target.currentTime)/10;z.sendEvent(a.api.events.JWPLAYER_MEDIA_TIME,{position:Math.round(10*b.target.currentTime)/10,duration:Math.round(10*
b.target.duration)/10})}}q(b)}}function n(){L=setTimeout(function(){w||q({lengthComputable:!0,loaded:1,total:1})},10*((F[F.length-1]-F[0])/F.length))}function q(b){var c;void 0!==b&&b.lengthComputable&&b.total?(x(),c=100*(b.loaded/b.total),50<c&&!w&&(clearTimeout(L),n())):void 0!==k.buffered&&0<k.buffered.length&&(maxBufferIndex=0,0<=maxBufferIndex&&(c=100*(k.buffered.end(maxBufferIndex)/k.duration),k.buffered.end(maxBufferIndex)));!1===u&&D==a.api.events.state.BUFFERING&&(u=!0,z.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER_FULL));
w||(100==c&&!1===w&&(w=!0),null!==c&&c>s.buffer&&(s.buffer=Math.round(c),z.sendEvent(a.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(c)})))}function m(){null===B&&(B=setInterval(function(){o()},100))}function t(){var b="",c;for(c in G.levels){var d=G.levels[c];k.ownerDocument.createElement("source");b+=a.html5.utils.getAbsolutePath(d.file);c<G.levels.length-1&&(b+=", ")}return b}function v(){k.pause();clearInterval(B);B=null;s.position=0;C=!0;e(a.api.events.state.IDLE)}function x(){var a=
(new Date).getTime();F.push(a)}function p(b){s.duration=b.duration;I=!1;G=b;var c=document.createElement("video");c.preload="none";J=!1;E=0;for(var d in b.levels){var e=b.levels[d];if(a.html5.utils.isYouTube(e.file)){delete c;l(e.file);return}var g;void 0===e.type?(g=a.html5.utils.extension(e.file),g=void 0!==a.html5.extensionmap[g]?a.html5.extensionmap[g]:"video/"+g+";"):g=e.type;if(""!==c.canPlayType(g)){var h=k.ownerDocument.createElement("source");h.src=a.html5.utils.getAbsolutePath(e.file);h.type=
g;E++;c.appendChild(h)}}0===E&&(J=!0,z.sendEvent(a.api.events.JWPLAYER_ERROR,{error:"The video could not be loaded because the format is not supported by your browser: "+t()}));s.config.chromeless&&(c.poster=a.html5.utils.getAbsolutePath(b.image),c.controls="controls");c.style.position=k.style.position;c.style.top=k.style.top;c.style.left=k.style.left;c.style.width=k.style.width;c.style.height=k.style.height;c.style.zIndex=k.style.zIndex;c.onload=f;c.volume=0;k.parentNode.replaceChild(c,k);c.id=k.id;
k=c;for(var j in y)k.addEventListener(j,function(a){if(null!==a.target.parentNode)y[a.type](a)},!0)}function l(a){var c=document.createElement("object"),a=["http://www.youtube.com/v/",a.replace(/^[^v]+v.(.{11}).*/,"$1"),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join(""),d={movie:a,allowFullScreen:"true",allowscriptaccess:"always"},e;for(e in d){var f=document.createElement("param");f.name=e;f.value=d[e];c.appendChild(f)}var d=document.createElement("embed"),a={src:a,type:"application/x-shockwave-flash",
allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(b.id).style.width,height:document.getElementById(b.id).style.height},g;for(g in a)d[g]=a[g];c.appendChild(d);c.style.position=k.style.position;c.style.top=k.style.top;c.style.left=k.style.left;c.style.width=document.getElementById(b.id).style.width;c.style.height=document.getElementById(b.id).style.height;c.style.zIndex=2147483E3;k.parentNode.replaceChild(c,k);c.id=k.id;k=c;I=!0}var y={abort:h,canplay:g,canplaythrough:g,
durationchange:j,emptied:h,ended:g,error:function(b){var c="There was an error: ";if(b.target.error&&"video"==b.target.tagName.toLowerCase()||b.target.parentNode.error&&"video"==b.target.parentNode.tagName.toLowerCase())switch(b=void 0===b.target.error?b.target.parentNode.error:b.target.error,b.code){case b.MEDIA_ERR_ABORTED:c="You aborted the video playback: ";break;case b.MEDIA_ERR_NETWORK:c="A network error caused the video download to fail part-way: ";break;case b.MEDIA_ERR_DECODE:c="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";
break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:c="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:c="An unknown error occurred: "}else if("source"==b.target.tagName.toLowerCase()){E--;if(0<E)return;c="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{a.html5.utils.log("Erroneous error received. Continuing...");return}v();c+=t();J=!0;z.sendEvent(a.api.events.JWPLAYER_ERROR,
{error:c})},loadeddata:j,loadedmetadata:j,loadstart:g,pause:g,play:o,playing:g,progress:q,ratechange:h,seeked:g,seeking:g,stalled:g,suspend:g,timeupdate:o,volumechange:h,waiting:g,canshowcurrentframe:h,dataunavailable:h,empty:h,load:f,loadedfirstframe:h},z=new a.html5.eventdispatcher;a.utils.extend(this,z);var s=b,k=d,u,w,D=a.api.events.state.IDLE,B=null,C,A=!1,I=!1,G,E,F=[],L,J=!1;this.getDisplayElement=function(){return k};this.play=function(){D!=a.api.events.state.PLAYING&&("block"!=k.style.display&&
(k.style.display="block"),k.play(),m())};this.pause=function(){k.pause();e(a.api.events.state.PAUSED)};this.seek=function(a){if(!(0===s.duration||isNaN(s.duration))&&!(0===s.position||isNaN(s.position)))k.currentTime=a,k.play()};this.stop=v;this.volume=function(b){k.volume=b/100;s.volume=b;z.sendEvent(a.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(b)})};this.mute=function(b){k.muted=b;s.mute=b;z.sendEvent(a.api.events.JWPLAYER_MEDIA_MUTE,{mute:b})};this.resize=function(b,c){z.sendEvent(a.api.events.JWPLAYER_MEDIA_RESIZE,
{fullscreen:s.fullscreen,width:b,hieght:c})};this.fullscreen=function(a){!0===a?this.resize("100%","100%"):this.resize(s.config.width,s.config.height)};this.load=function(b){p(b);z.sendEvent(a.api.events.JWPLAYER_MEDIA_LOADED);A=w=u=!1;s.config.chromeless||(F=[],x(),e(a.api.events.state.BUFFERING),setTimeout(function(){o()},25))};this.hasChrome=function(){return I};this.embed=p;return this}})(jwplayer);
(function(a){var c="width,height,start,duration,volume,mute,fullscreen,item,plugins".split(",");a.html5.model=function(b,d,f){function h(){var a=null;if(1<j.playlist.length)for(;null===a;)a=Math.floor(Math.random()*j.playlist.length),a==j.item&&(a=null);else a=0;return a}function g(b){b.type==a.api.events.JWPLAYER_MEDIA_LOADED&&(e=o.getDisplayElement());n.sendEvent(b.type,b)}var e=d,j={id:e.id,playlist:[],state:a.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:0,skin:void 0,
file:void 0,image:void 0,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,repeat:"none",autostart:!1,debug:void 0,screencolor:void 0}},o,n=new a.html5.eventdispatcher;a.utils.extend(j,n);for(var q in f){"string"==typeof f[q]&&(d=/color$/.test(q)?"color":null,f[q]=a.html5.utils.typechecker(f[q],d));var d=j.config,m=q.split("."),t;for(t in m)t==m.length-1?d[m[t]]=f[q]:(void 0===d[m[t]]&&(d[m[t]]={}),d=d[m[t]])}for(var v in c)f=c[v],j[f]=j.config[f];v=["display","logo","controlbar"].concat([]);
if(void 0!==j.plugins)if("string"==typeof j.plugins){var x=j.plugins.split(","),p;for(p in x)v.push(p.replace(/^\s+|\s+$/g,""))}else for(x in j.plugins)v.push(x.replace(/^\s+|\s+$/g,""));a.utils.isIOS()&&(j.config.chromeless=!0);j.config.chromeless&&(v=[]);j.plugins={order:v,config:{controlbar:{position:a.html5.view.positions.BOTTOM}},object:{}};if("undefined"!=typeof j.config.components)for(var l in j.config.components)j.plugins.config[l]=j.config.components[l];for(var y in j.plugins.order)p=j.plugins.order[y],
l=void 0===j.config[p]?{}:j.config[p],j.plugins.config[p]=void 0===j.plugins.config[p]?l:a.utils.extend(j.plugins.config[p],l),void 0===j.plugins.config[p].position&&(j.plugins.config[p].position=a.html5.view.positions.OVER);j.loadPlaylist=function(b,c){var d;if("string"==typeof b)try{d=eval(b)}catch(e){d=b}else d=b;switch(a.utils.typeOf(d)){case "object":break;case "array":d={playlist:d};break;default:d={file:d}}j.playlist=new a.html5.playlist(d);j.config.shuffle?j.item=h():(j.config.item>=j.playlist.length&&
(j.config.item=j.playlist.length-1),j.item=j.config.item);c||(n.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED),n.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{item:j.item}));j.setActiveMediaProvider(j.playlist[j.item])};j.setActiveMediaProvider=function(b){void 0!==o&&o.resetEventListeners();o=new a.html5.mediavideo(j,e);o.addGlobalListener(g);j.config.chromeless&&o.load(b);return!0};j.getMedia=function(){return o};j.setupPlugins=function(){for(var c in j.plugins.order)try{void 0!==a.html5[j.plugins.order[c]]?
j.plugins.object[j.plugins.order[c]]=new a.html5[j.plugins.order[c]](b,j.plugins.config[j.plugins.order[c]]):void 0!==window[j.plugins.order[c]]?j.plugins.object[j.plugins.order[c]]=new window[j.plugins.order[c]](b,j.plugins.config[j.plugins.order[c]]):j.plugins.order.splice(c,c+1)}catch(d){a.html5.utils.log("Could not setup "+j.plugins.order[c])}};return j}})(jwplayer);
(function(a){a.html5.playlist=function(c){var b=[];if(c.playlist&&0<c.playlist.length)for(var d in c.playlist)b.push(new a.html5.playlistitem(c.playlist[d]));else b.push(new a.html5.playlistitem(c));return b}})(jwplayer);
(function(a){a.html5.playlistitem=function(c){var b={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},d;for(d in b)void 0!==c[d]&&(b[d]=c[d]);0===b.levels.length&&(b.levels[0]=new a.html5.playlistitemlevel(b));return b}})(jwplayer);(function(a){a.html5.playlistitemlevel=function(a){var b={file:"",streamer:"",bitrate:0,width:0},d;for(d in b)void 0!==a[d]&&(b[d]=a[d]);return b}})(jwplayer);
(function(a){a.html5.skin=function(){var c={},b=!1;this.load=function(d,f){new a.html5.skinloader(d,function(a){b=!0;c=a;f()},function(){new a.html5.skinloader("",function(a){b=!0;c=a;f()})})};this.getSkinElement=function(d,f){if(b)try{return c[d].elements[f]}catch(h){a.html5.utils.log("No such skin component / element: ",[d,f])}return null};this.getComponentSettings=function(a){return b?c[a].settings:null};this.getComponentLayout=function(a){return b?c[a].layout:null}}})(jwplayer);
(function(a){a.html5.skinloader=function(c,b,d){function f(b){b=b.getElementsByTagName("component");if(0!==b.length)for(var c=0;c<b.length;c++){var d=b[c].getAttribute("name");e[d]={settings:{},elements:{},layout:{}};for(var f=b[c].getElementsByTagName("elements")[0].getElementsByTagName("element"),j=0;j<f.length;j++)g(f[j],d);f=b[c].getElementsByTagName("settings")[0];if(void 0!==f&&0<f.childNodes.length){f=f.getElementsByTagName("setting");for(j=0;j<f.length;j++){var m=f[j].getAttribute("name"),
o=f[j].getAttribute("value"),k=/color$/.test(m)?"color":null;e[d].settings[m]=a.html5.utils.typechecker(o,k)}}f=b[c].getElementsByTagName("layout")[0];if(void 0!==f&&0<f.childNodes.length){f=f.getElementsByTagName("group");for(j=0;j<f.length;j++){m=f[j];e[d].layout[m.getAttribute("position")]={elements:[]};for(o=0;o<m.attributes.length;o++)k=m.attributes[o],e[d].layout[m.getAttribute("position")][k.name]=k.value;o=m.getElementsByTagName("*");for(k=0;k<o.length;k++){var q=o[k];e[d].layout[m.getAttribute("position")].elements.push({type:q.tagName});
for(var t=0;t<q.attributes.length;t++){var D=q.attributes[t];e[d].layout[m.getAttribute("position")].elements[k][D.name]=D.value}void 0===e[d].layout[m.getAttribute("position")].elements[k].name&&(e[d].layout[m.getAttribute("position")].elements[k].name=q.tagName)}}}n=!1;h()}}function h(){clearInterval(q);t||(q=setInterval(function(){a:{for(var a in e)if("properties"!=a)for(var b in e[a].elements)if(!e[a].elements[b].ready)break a;!1===n&&(clearInterval(q),j(e))}},100))}function g(b,c){var d=new Image,
f=b.getAttribute("name"),g=b.getAttribute("src");if(0!==g.indexOf("data:image/png;base64,"))var j=a.html5.utils.getAbsolutePath(m),g=[j.substr(0,j.lastIndexOf("/")),c,g].join("/");e[c].elements[f]={height:0,width:0,src:"",ready:!1};d.onload=function(){e[c].elements[f].height=d.height;e[c].elements[f].width=d.width;e[c].elements[f].src=d.src;e[c].elements[f].ready=!0;h()};d.onerror=function(){t=!0;h();o()};d.src=g}var e={},j=b,o=d,n=!0,q,m=c,t=!1;(function(){void 0===m||""===m?f(a.html5.defaultSkin().xml):
a.utils.ajax(a.html5.utils.getAbsolutePath(m),function(a){f(a.responseXML)},function(){f(a.html5.defaultSkin().xml)})})()}})(jwplayer);
(function(a){var c={};a.html5.utils.animations=function(){};a.html5.utils.animations.transform=function(a,c){a.style.webkitTransform=c;a.style.MozTransform=c;a.style.OTransform=c};a.html5.utils.animations.transformOrigin=function(a,c){a.style.webkitTransformOrigin=c;a.style.MozTransformOrigin=c;a.style.OTransformOrigin=c};a.html5.utils.animations.rotate=function(b,c){a.html5.utils.animations.transform(b,["rotate(",c,"deg)"].join(""))};a.html5.utils.cancelAnimation=function(a){delete c[a.id]};a.html5.utils.fadeTo=
function(b,d,f,h,g,e){if(!(c[b.id]!=e&&void 0!==e)){var j=(new Date).getTime();e>j&&setTimeout(function(){a.html5.utils.fadeTo(b,d,f,h,0,e)},e-j);b.style.display="block";void 0===h&&(h=""===b.style.opacity?1:b.style.opacity);b.style.opacity==d&&""!==b.style.opacity&&void 0!==e?0===d&&(b.style.display="none"):(void 0===e&&(e=j,c[b.id]=e),void 0===g&&(g=0),j=(j-e)/(1E3*f),j=h+(1<j?1:j)*(d-h),1<j?j=1:0>j&&(j=0),b.style.opacity=j,0<g?(c[b.id]=e+1E3*g,a.html5.utils.fadeTo(b,d,f,h,0,c[b.id])):setTimeout(function(){a.html5.utils.fadeTo(b,
d,f,h,0,e)},10))}}})(jwplayer);
(function(a){function c(a,c){if(null===c)return a;switch(c){case "color":return 0<a.length?b(a):null;case "integer":return parseInt(a,10);case "float":return parseFloat(a);case "boolean":return"true"==a.toLowerCase()||"1"==a?!0:!1}return a}function b(a){switch(a.toLowerCase()){case "blue":return 255;case "green":return 65280;case "red":return 16711680;case "cyan":return 65535;case "magenta":return 16711935;case "yellow":return 16776960;case "black":return 0;case "white":return 16777215;default:return a=
a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),3==a.length&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)}}var d=RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);a.html5.utils.typechecker=function(a,b){var g;g=null===b?0<=["true","false","t","f"].indexOf(a.toLowerCase().replace(" ",""))?"boolean":d.test(a)?"color":!isNaN(parseInt(a,10))&&parseInt(a,10).toString().length==a.length?"integer":!isNaN(parseFloat(a))&&parseFloat(a).toString().length==a.length?"float":"string":
b;return c(a,g)}})(jwplayer);
(function(a){a.html5.api=function(c,b){function d(a){return function(){return e[a]}}function f(b,c,d){return function(){b.loadPlaylist(b.config,!0);b.setupPlugins();c.setup(b.getMedia().getDisplayElement());var e={id:h.id,version:h.version};d.sendEvent(a.api.events.JWPLAYER_READY,e);void 0!==playerReady&&playerReady(e);if(void 0!==window[b.config.playerReady])window[b.config.playerReady](e);b.sendEvent(a.api.events.JWPLAYER_PLAYLIST_LOADED);b.sendEvent(a.api.events.JWPLAYER_PLAYLIST_ITEM,{item:b.config.item});
!0===b.config.autostart&&!b.config.chromeless&&d.play()}}var h={};if(!a.utils.hasHTML5())return h;var g=document.createElement("div");c.parentNode.replaceChild(g,c);g.id=c.id;h.version=a.html5.version;h.id=g.id;var e=new a.html5.model(h,g,b),j=new a.html5.view(h,g,e),g=new a.html5.controller(h,g,e,j);h.skin=new a.html5.skin;h.jwPlay=g.play;h.jwPause=g.pause;h.jwStop=g.stop;h.jwSeek=g.seek;h.jwPlaylistItem=g.item;h.jwPlaylistNext=g.next;h.jwPlaylistPrev=g.prev;h.jwResize=g.resize;h.jwLoad=g.load;h.jwGetItem=
d("item");h.jwGetPosition=d("position");h.jwGetDuration=d("duration");h.jwGetBuffer=d("buffer");h.jwGetWidth=d("width");h.jwGetHeight=d("height");h.jwGetFullscreen=d("fullscreen");h.jwSetFullscreen=g.setFullscreen;h.jwGetVolume=d("volume");h.jwSetVolume=g.setVolume;h.jwGetMute=d("mute");h.jwSetMute=g.setMute;h.jwGetState=d("state");h.jwGetVersion=function(){return h.version};h.jwGetPlaylist=function(){return e.playlist};h.jwAddEventListener=g.addEventListener;h.jwRemoveEventListener=g.removeEventListener;
h.jwSendEvent=g.sendEvent;h.jwGetLevel=function(){};h.jwGetBandwidth=function(){};h.jwGetLockState=function(){};h.jwLock=function(){};h.jwUnlock=function(){};e.config.chromeless?setTimeout(f(e,j,g),25):h.skin.load(e.config.skin,f(e,j,g));return h}})(jwplayer);
