var cityWay=cityWay||{},jwplayer,$jw,_userPlayerReady;cityWay.namespace=function(n){var t=n.split("."),r=cityWay,i;for(t[0]==="cityWay"&&(t=t.slice(1)),i=0;i<t.length;i+=1)typeof r[t[i]]=="undefined"&&(r[t[i]]={}),r=r[t[i]];return r};cityWay.namespace("cityWay.texts.map");cityWay.namespace("cityWay.forms");cityWay.namespace("cityWay.ui");cityWay.namespace("cityWay.links");cityWay.namespace("cityWay.buttons");cityWay.namespace("cityWay.events");cityWay.namespace("cityWay.consts");cityWay.namespace("cityWay.config.map");cityWay.namespace("cityWay.config.sections");cityWay.namespace("cityWay.tasks");cityWay.namespace("cityWay.tools");cityWay.namespace("cityWay.helpers");cityWay.namespace("cityWay.modules"),function(){String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})})}();cityWay.Lazy=function(n){if(!$.isFunction(n))throw new Error("instanceFactory parameter must be a function that returns the instance of the object to lazy load.");var t=this;return Object.defineProperty(t,"value",{get:function(){var t=arguments.callee;return t.cache||(t.cache=n()),t.cache}}),t};cityWay.Lazy.empty=function(){return{}};cityWay.events.favorites={journeyChanged:"favorites:journey:changed",pointChanged:"favorites:point:changed",journeyHasToChange:"favorites:journey:hasToChange",stopChanged:"favorites:stop:changed",lineChanged:"favorites:line:changed"};cityWay.events.map={initialized:"map:initialized",clicked:"map:clicked",boundsChanged:"map:boundsChanged",nodeClicked:"map:nodeClicked",legendStateChanged:"map:legendStateChanged",zoomChanged:"map:zoomChanged",responsiveOpenPopup:"map:openPopup",nearestRoadNotFound:"map:nearestRoadNotFound",departureNodeDragged:"map:departureNodeDragged",viaNodeDragged:"map:viaNodeDragged",arrivalNodeDragged:"map:arrivalNodeDragged",departureSelected:"map:popupDepartureSelected",viaSelected:"map:popupViaSelected",arrivalSelected:"map:popupArrivalSelected",consultTimeToStopRequested:"map:popupConsultTimeToStopRequested",directTripFromLocalitySelected:"map:directTripFromLocalitySelected",directTripToLocalitySelected:"map:directTripToLocalitySelected",directTripFromStopSelected:"map:directTripFromStopSelected",directTripToStopSelected:"map:directTripToStopSelected",radiusChanged:"map:radiusChanged",locationSelected:"map:locationSelected",nearBySpecificSelected:"map:nearBySpecificSelected",lineTimeTablePOIFrom:"map:lineTimeTablePOIFrom",trafficInfoDateChanged:"map:trafficInfoDateChanged",trafficInfoItemsChanged:"map:trafficInfoItemsChanged",trafficInfoItemPopupOpened:"map:trafficInfoItemPopupOpened",preferencesApplied:"map:preferencesApplied",responsivePopupOpen:"map:responsivePopupOpen",responsivePopupClose:"map:responsivePopupClose",responsivePopupContentUpdate:"map:responsivePopupContentUpdate"};cityWay.events.journeyPlanner={searchFormChanged:"journeyPlanner:searchFormChanged"};cityWay.events.lineTimeTable={stopLinkClicked:"lineTimeTable:stopLinkClicked"};cityWay.events.animations={end:"webkitAnimationEnd oanimationend msAnimationEnd animationend"};cityWay.events.form={inputShouldBeCleared:"form:inputShouldBeCleared"};cityWay.events.ws={getPointsByCategoriesSuccess:"ws:getPointsByCategoriesSuccess"};cityWay.events.autocomplete={itemSelected:"autocomplete:itemSelected"};cityWay.events.geolocation={found:"geolocation:found",error:"geolocation:error",get:"geolocation:get"};cityWay.events.template={showPanel:"template:showPanel"};cityWay.events.responsive={mapshown:"map:shown",maphidden:"map:hidden",infoshown:"info:shown",infoshidden:"info:hidden"};cityWay.eventManager=function(n){"use strict";function i(i){if(arguments.length<2)throw new Error("The event id and source are required");var r=n.makeArray(arguments);r.shift();t.trigger.apply(t,[i,r])}function r(i,r){if(!n.isFunction(r))throw new Error("The event handler must be a function");r._actualHandler=function(){var i=n.makeArray(arguments);i.shift();r.apply(t,i)};t.on(i,r._actualHandler)}function u(n,i){t.off(n,i._actualHandler)}var t=n({});return{publish:i,subscribe:r,unsubscribe:u}}(jQuery);cityWay.notificationManager=function(n){"use strict";function t(t){n("#"+t).modal("show")}function i(t){n("#"+t).modal("hide")}return{modalId:{roadNotFound:"modal-road-notfound"},showModal:t,hideModal:i}}(jQuery);$(function(){cityWay.keys={backspace:8,enter:13,del:46,upArrow:38,downArrow:40,leftArrow:37,rightArrow:39,escape:27};cityWay.StatusCode={Ok:0,NoSolution:400,Error:500};cityWay.TypeDate={LeaveAt:68,ArriveAt:65};cityWay.GeolocationErrorCode={PermissionDenied:1,PositionUnavailable:2,Timeout:3,NotSupported:101};cityWay.geometryType={point:1,line:2,polygon:3,layer:4};cityWay.pointType={poi:1,physicalStop:2,address:3,logicalStop:4,roadLink:7,traffic:100,disrupt:101,myPosition:102,event:210};cityWay.poi={category:{locality:3,bikeStation:4,bikePark:5,parkNRide:6,parking:11,carSharing:12,carPoolZone:13}};cityWay.itemType={unknow:100,roadWorks:101,roadBlock:102,openMountainPass:103,closedMountainPass:104,specialEquipmentRequired:105,roadAccident:106,trafficJam:107,otherIncident:108,sportingEvent:109,bikeStation:110,bikePark:111,webcam:112,multiPurposeTrafficSign:113,parkNRide:114,parking:115,carPoolZone:116,carSharing:117,followDiversionSigns:118,closedPermanentlyForTheWinter:119,mountainPassWithSpecialEquipmentRequired:120,disrupt:200,event:210};cityWay.disruptionType={Commercial:1,Disruption:2,RealTime:3,Traffic:4,Weather:5,ItineraryUpdate:8,WorkInProgress:9,Accident:10,SocialMovement:11,Manifestation:12,Event:13,Timetable:14};cityWay.disruptionTypeReverse={1:"Commercial",2:"Disruption",3:"RealTime",4:"Traffic",5:"Weather",8:"ItineraryUpdate",9:"WorkInProgress",10:"Accident",11:"SocialMovement",12:"Manifestation",13:"Event",14:"Timetable"};cityWay.trafficEventType={Unknow:0,Weather:1,Pollution:2,Kidnapping:3}});cityWay.eventManager.subscribe(cityWay.events.geolocation.get,function(n){var t=function(n){cityWay.eventManager.publish(cityWay.events.geolocation.found,n)},i=function(n){cityWay.eventManager.publish(cityWay.events.geolocation.error,n.code)};geoPosition.init()?geoPosition.getCurrentPosition(t,i,n||{}):cityWay.eventManager.publish(cityWay.events.geolocation.error,cityWay.GeolocationErrorCode.NotSupported)});cityWay.tools=function(n){"use strict";function i(n,t,i){var e,o,u,s;n=n.split("#")[0];var r="",h=!1,f="";if(n!=""&&(e=n.split("?"),r=e[0]+"?",e.length>1))for(o=e[1].split("&"),u=0;u<o.length;u++)s=o[u].split("="),s[0].toLowerCase()==t.toLowerCase()?(r+=f+s[0]+"="+i,h=!0):r+=f+o[u],f="&";return h||(r+=f+t+"="+i),r}function r(n){var i=document.location.href,r,t;return i=i.split("#")[0],r=new RegExp("(\\?|&|^)"+n+"=(.*?)(&|$)"),n.replace("E","e"),t=i.match(r),t!=null?t[2]!=undefined?decodeURIComponent(unescape(t[2]).replace(/\+/g," ")):"":""}function u(n,t){var i=document.createElement("script");i.type="text/javascript";typeof t!="undefined"&&(i.readyState?i.onreadystatechange=function(){(i.readyState=="loaded"||i.readyState=="complete")&&t()}:i.onload=function(){t()});i.src=n;document.getElementsByTagName("head")[0].appendChild(i)}function f(n,t){function i(t){return n.apply(this,t)}return i.prototype=n.prototype,new i(t)}function e(){n(".list-group-item-toggle").each(function(){var i=n(this),t=i.prop("id"),r=n("[data-trigger="+t+"]");n("#"+t).attr("aria-expanded","true");r.hasClass("active")||(r.hide(),n("#"+t).attr("aria-expanded","false"));i.toggle(function(){n("[data-trigger="+t+"]").show();n("#"+t).attr("aria-expanded","true")},function(){n("[data-trigger="+t+"]").hide();n("#"+t).attr("aria-expanded","false")})})}function o(n,t){for(var r,u,a,f,o,s,h,v,i,y,p,w=t===undefined?!0:t,c={},b="em,ex,ch,rem,vw,vh,vmin,cm,mm,in,pt,pc,px,deg,grad,rad,turn,s,ms,Hz,kHz,dpi,dpcm,dppx".split(","),k="#"+n,l=document.styleSheets,e=0,d=l.length;e<d;e++)try{if(r=l[e].cssRules,r!=null)for(u=0,a=r.length;u<a;u++)f=r[u].cssText,o=f.match(/\#\w+/),o&&o[0]==k&&(s=f.match(/\.(\w+)/),h=f.match(/:\s?(.*)\s?;\s?\}/),s&&h&&(v=s[1],i=h[1],w&&(y=i.match(/[a-z]+$/))&&b.indexOf(y[0])!==-1?i=parseFloat(i):(p=i.match(/^'([^']+)'$/))&&(i=p[1]),c[v]=i))}catch(g){if(g.name!=="SecurityError")continue}return c}function s(t,i,r){document.getElementById(t).value="";document.getElementById(i).value="";n("#"+t).addClass("loading");cityWay.eventManager.publish(cityWay.events.geolocation.get,{});cityWay.eventManager.subscribe(cityWay.events.geolocation.found,function(u){cityWay.mapDataService.getLocality(u.coords.latitude,u.coords.longitude).then(function(u){u.Data?(document.getElementById(t).value=u.Data.Name,document.getElementById(i).value=u.Data.Id):n("#"+r).html(cityWay.texts.error.Locality_NotFound)});n("#"+t).removeClass("loading")});cityWay.eventManager.subscribe(cityWay.events.geolocation.error,function(i){var u="";i==cityWay.GeolocationErrorCode.PermissionDenied?u=cityWay.texts.error.Geolocation_PermissionDenied:i==cityWay.GeolocationErrorCode.PositionUnavailable||i==cityWay.GeolocationErrorCode.Timeout?u=cityWay.texts.error.Geolocation_NotFound:i==cityWay.GeolocationErrorCode.NotSupported&&(u=cityWay.texts.error.Geolocation_NotSupported);n("#"+t).removeClass("loading");n("#"+r).html(u)})}function h(t,i,r){document.getElementById(t).value="";document.getElementById(i).value="";n("#"+t).addClass("loading");cityWay.eventManager.publish(cityWay.events.geolocation.get,{});cityWay.eventManager.subscribe(cityWay.events.geolocation.found,function(u){cityWay.mapDataService.getNearestRoad(u.coords.latitude,u.coords.longitude).then(function(u){u.Data?(document.getElementById(t).value=u.Data.Name,document.getElementById(i).value=u.Data.Id+"_"+cityWay.pointType.roadLink):n("#"+r).html(cityWay.texts.error.Locality_NotFound)});n("#"+t).removeClass("loading")});cityWay.eventManager.subscribe(cityWay.events.geolocation.error,function(i){var u="";i==cityWay.GeolocationErrorCode.PermissionDenied?u=cityWay.texts.error.Geolocation_PermissionDenied:i==cityWay.GeolocationErrorCode.PositionUnavailable||i==cityWay.GeolocationErrorCode.Timeout?u=cityWay.texts.error.Geolocation_NotFound:i==cityWay.GeolocationErrorCode.NotSupported&&(u=cityWay.texts.error.Geolocation_NotSupported);n("#"+t).removeClass("loading");n("#"+r).html(u)})}function c(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}function l(){function r(t){var r=0,u,f;if(t.href!=null&&t.href.indexOf(location.origin)!=0){console.log("CSS file couldn't be analyzed because it is not on the same domain: "+t.href);return}if(t&&t.cssRules){for(u=0,f=t.cssRules.length;u<f;u++)t.cssRules[u].selectorText&&(r+=t.cssRules[u].selectorText.split(",").length);n+="\nFile: "+(t.href?t.href:"inline <style> tag");n+="\nRules: "+t.cssRules.length;n+="\nSelectors: "+r;n+="\n--------------------------";r>=4096&&(i+="\n********************************\nWARNING:\n There are "+r+" CSS rules in the stylesheet "+t.href+" - IE will ignore the last "+(r-4096)+" rules!\n")}}var i="",n="",t;if(document.styleSheets){for(t=0;t<document.styleSheets.length;t++)r(document.styleSheets[t]);console.log(n);console.log(i)}}function a(n,t){document.getElementById(n)&&(document.getElementById(n).value=t)}function v(n){return n.toString().replace(/\\n/g,"<br />").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#34;/g,'"').replace(/&#38;/g,"&").replace(/&#39;/g,"'").replace(/&#60;/g,"<").replace(/&#62;/g,">").replace(/&#192;/g,"à").replace(/&#219;/g,"Û").replace(/&#224;/g,"à").replace(/&#226;/g,"â").replace(/&#231;/g,"ç").replace(/&#232;/g,"è").replace(/&#233;/g,"é").replace(/&#234;/g,"ê").replace(/&#235;/g,"ë").replace(/&#238;/g,"î").replace(/&#244;/g,"ô").replace(/&#251;/g,"û").replace(/&amp;/g,"&")}function y(t,i,r){cityWay.tools.setInputValue(t,"");cityWay.tools.setInputValue(i,"");n("#"+t).addClass("loading");cityWay.eventManager.publish(cityWay.events.geolocation.get,{});cityWay.eventManager.subscribe(cityWay.events.geolocation.found,function(n){var t=cityWay.config.urls.searchStopByLocation,i,r,u;t!=""&&(t=t.replace("{lat}",n.coords.latitude),t=t.replace("{lng}",n.coords.longitude),i=sessionStorage.getItem("wlCode"),(cityWay.config.site.type=="WhiteLabelStandard"||cityWay.config.site.type=="WhiteLabelMapCentric")&&i!=null&&(r=t.split("?")[0],u=t.split("?")[1],t=r+"?wlCode="+i+"&"+u),window.location.href=encodeURI(t))});cityWay.eventManager.subscribe(cityWay.events.geolocation.error,function(i){var u="";i==cityWay.GeolocationErrorCode.PermissionDenied?u=cityWay.texts.error.Geolocation_PermissionDenied:i==cityWay.GeolocationErrorCode.PositionUnavailable||i==cityWay.GeolocationErrorCode.Timeout?u=cityWay.texts.error.Geolocation_NotFound:i==cityWay.GeolocationErrorCode.NotSupported&&(u=cityWay.texts.error.Geolocation_NotSupported);n("#"+t).removeClass("loading");n("#"+r).html(u)})}function t(n){var i,r;try{n.focus()}catch(u){}if(document.activeElement==n)return!0;for(i=0;i<n.childNodes.length;i++)if(r=n.childNodes[i],t(r))return!0;return!1}function p(){var t=n.cookie(cityWay.consts.map.cookies.disabledMap);return!t?!0:t==="false"}function w(n,t,i){return n.replace(new RegExp(t,"g"),i)}function b(){cityWay.notificationManager.hideModal(cityWay.notificationManager.modalId.roadNotFound)}function k(){return cityWay.config.site.language}return{updateParamUrl:i,getParamValue:r,lazyLoad:u,create:f,bindListGroupItemToggle:e,getLessVars:o,getLocality:s,getStreet:h,debounce:c,countCSSRules:l,setInputValue:a,replaceSpecialCharacters:v,getStopFromLocation:y,focusFirst:t,isMapEnabled:p,replaceAll:w,closeModelRoadNotFound:b,getLanguage:k}}(jQuery);cityWay.links=function(n){"use strict";function t(t,i,r){n(t).click(function(u){return u.preventDefault(),n.ajax({url:n(t).attr("href"),cache:!1,dataType:"html",headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(f,e,o){n(i).html(f);!r||r(n(this),f,e,o,u,t)}}),!0})}function i(){n(document).on("click","a[data-show-modal=true][href!='']",function(t){t.preventDefault();var i=this;return n.ajax(this.href,{type:"GET",dataType:"html",headers:{wlCode:sessionStorage.getItem("wlCode")},data:{isModal:!0},beforeSend:function(){n("body").addClass("wait")},success:function(t){if(!!t){var r=n(t),u="modal"+ +new Date;r.prop("id",u);n(document.body).append(r);r.modal();r.on("hidden.bs.modal",function(){n(".modal-backdrop.in").remove();n("#"+u).remove();i.focus()})}},complete:function(){n("body").removeClass("wait")}}),!0})}return{ajaxLoad:t,bindModalLinks:i}}(jQuery);cityWay.ui=function(n){"use strict";function t(t){var i=n(t),r=5;return n("html").hasClass("navbar-fixed")&&(r+=n("header").height()),i.size()==1&&n("html, body").animate({scrollTop:i.offset().top-r},"slow"),i}function i(t,i){var r=n(t);return n(i).css("position")!="absolute"&&n(i).css("position","relative"),r.size()==1&&setTimeout(function(){n(i).animate({scrollTop:r.position().top+n(i).scrollTop()},"slow",function(){n(i).css("position","")})},100),r}function r(t){n(t).show()}function u(t,i,r,u){n(document).on("keyup",t,function(){var t=n(this).val(),f;return t.length==0?(n(i).slideDown(),n(u).hide()):(f=n(i).filter(function(){var i=new RegExp("\\b"+t,"i");return i.test(n(r,this).text())}).slideDown(),n(i).not(f).slideUp(),setTimeout(function(){n(i).parent().each(function(){n(i,this).find(r+":visible").size()==0?n(u,this).show():n(u,this).hide()})},500)),!1})}return{vscrollTo:t,vscrollToWithin:i,showJsElements:r,filter:u}}(jQuery),function(n){"use strict";function f(t,i,r){"addEventListener"in n?t.addEventListener(i,r,!1):"attachEvent"in n&&t.attachEvent("on"+i,r)}function pt(t,i,r){"removeEventListener"in n?t.removeEventListener(i,r,!1):"detachEvent"in n&&t.detachEvent("on"+i,r)}function wt(){for(var r=["moz","webkit","o","ms"],t=0;t<r.length&&!e;t+=1)e=n[r[t]+"RequestAnimationFrame"];e||i("setup","RequestAnimationFrame not supported")}function bt(t){var i="Host page: "+t;return n.top!==n.self&&(i=n.parentIFrame&&n.parentIFrame.getId?n.parentIFrame.getId()+": "+t:"Nested host page: "+t),i}function kt(n){return s+"["+bt(n)+"]"}function nt(n){return t[n]?t[n].log:d}function i(n,t){p("log",n,t,nt(n))}function y(n,t){p("info",n,t,nt(n))}function o(n,t){p("warn",n,t,!0)}function p(t,i,r,u){!0===u&&"object"==typeof n.console&&console[t](kt(i),r)}function dt(e){function b(){function n(){ot(a);ut(h)}k("Height");k("Width");st(n,a,"init")}function at(){var n=p.substr(l).split(":");return{iframe:t[n[0]].iframe,id:n[0],height:n[1],width:n[2],type:n[3]}}function k(n){var f=Number(t[h]["max"+n]),e=Number(t[h]["min"+n]),r=n.toLowerCase(),u=Number(a[r]);i(h,"Checking "+r+" is in range "+e+"-"+f);u<e&&(u=e,i(h,"Set "+r+" to min value"));u>f&&(u=f,i(h,"Set "+r+" to max value"));a[r]=""+u}function yt(){function u(){function u(){var t=0,u=!1;for(i(h,"Checking connection is from allowed list of origins: "+n);t<n.length;t++)if(n[t]===r){u=!0;break}return u}function f(){var n=t[h].remoteHost;return i(h,"Checking connection is from: "+n),r===n}return n.constructor===Array?u():f()}var r=e.origin,n=t[h].checkOrigin;if(n&&""+r!="null"&&!u())throw new Error("Unexpected message received from: "+r+" for "+a.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function wt(){return s===(""+p).substr(0,l)&&p.substr(l).split(":")[0]in t}function bt(){var n=a.type in{"true":1,"false":1,undefined:1};return n&&i(h,"Ignoring init message from meta parent page"),n}function d(n){return p.substr(p.indexOf(":")+vt+n)}function kt(n){i(h,"MessageCallback passed: {iframe: "+a.iframe.id+", message: "+n+"}");w("messageCallback",{iframe:a.iframe,message:JSON.parse(n)});i(h,"--")}function dt(){var i=document.body.getBoundingClientRect(),t=a.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,n.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,n.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:n.pageYOffset,scrollLeft:n.pageXOffset})}function g(n,t){function i(){u("Send Page Info","pageInfo:"+dt(),n,t)}c(i,32)}function gt(){function u(u,f){function o(){t[r]?g(t[r].iframe,r):e()}["scroll","resize"].forEach(function(t){i(r,u+t+" listener for sendPageInfo");f(n,t,o)})}function e(){u("Remove ",pt)}function o(){u("Add ",f)}var r=h;o();t[r].stopPageInfo=e}function ni(){t[h]&&t[h].stopPageInfo&&(t[h].stopPageInfo(),delete t[h].stopPageInfo)}function ti(){var n=!0;return null===a.iframe&&(o(h,"IFrame ("+a.id+") not found"),n=!1),n}function nt(n){var t=n.getBoundingClientRect();return rt(h),{x:Math.floor(Number(t.left)+Number(r.x)),y:Math.floor(Number(t.top)+Number(r.y))}}function ct(t){function e(){r=f;lt();i(h,"--")}function s(){return{x:Number(a.width)+u.x,y:Number(a.height)+u.y}}function c(){n.parentIFrame?n.parentIFrame["scrollTo"+(t?"Offset":"")](f.x,f.y):o(h,"Unable to scroll to requested position, window.parentIFrame not found")}var u=t?nt(a.iframe):{x:0,y:0},f=s();i(h,"Reposition requested from iFrame (offset x:"+u.x+" y:"+u.y+")");n.top!==n.self?c():e()}function lt(){!1!==w("scrollCallback",r)?ut(h):ft()}function ii(t){function o(){var n=nt(e);i(h,"Moving to in page link (#"+u+") at x: "+n.x+" y: "+n.y);r={x:n.x,y:n.y};lt();i(h,"--")}function s(){n.parentIFrame?n.parentIFrame.moveToAnchor(u):i(h,"In page link #"+u+" not found and window.parentIFrame not found")}var u=t.split("#")[1]||"",f=decodeURIComponent(u),e=document.getElementById(f)||document.getElementsByName(f)[0];e?o():n.top!==n.self?s():i(h,"In page link #"+u+" not found")}function w(n,t){return tt(h,n,t)}function ri(){t[h].firstRun&&ei();switch(a.type){case"close":it(a.iframe);break;case"message":kt(d(6));break;case"scrollTo":ct(!1);break;case"scrollToOffset":ct(!0);break;case"pageInfo":g(t[h].iframe,h);gt();break;case"pageInfoStop":ni();break;case"inPageLink":ii(d(9));break;case"reset":et(a);break;case"init":b();w("initCallback",a.iframe);w("resizedCallback",a);break;default:b();w("resizedCallback",a)}}function ui(n){var i=!0;return t[n]||(i=!1,o(a.type+" No settings for "+n+". Message was: "+p)),i}function fi(){for(var n in t)u("iFrame requested init",ht(n),document.getElementById(n),n)}function ei(){t[h].firstRun=!1}var p=e.data,a={},h=null;"[iFrameResizerChild]Ready"===p?fi():wt()?(a=at(),h=v=a.id,!bt()&&ui(h)&&(i(h,"Received: "+p),ti()&&yt()&&ri())):y(h,"Ignored: "+p)}function tt(n,i,r){var u=null,f=null;if(t[n])if(u=t[n][i],"function"==typeof u)f=u(r);else throw new TypeError(i+" on iFrame["+n+"] is not a function");return f}function it(n){var r=n.id;i(r,"Removing iFrame: "+r);n.parentNode.removeChild(n);tt(r,"closedCallback",r);i(r,"--");delete t[r]}function rt(t){null===r&&(r={x:n.pageXOffset!==undefined?n.pageXOffset:document.documentElement.scrollLeft,y:n.pageYOffset!==undefined?n.pageYOffset:document.documentElement.scrollTop},i(t,"Get page position: "+r.x+","+r.y))}function ut(t){null!==r&&(n.scrollTo(r.x,r.y),i(t,"Set page position: "+r.x+","+r.y),ft())}function ft(){r=null}function et(n){function t(){ot(n);u("reset","reset",n.iframe,n.id)}i(n.id,"Size reset requested by "+("init"===n.type?"host page":"iFrame"));rt(n.id);st(t,n,"reset")}function ot(n){function f(t){n.iframe.style[t]=n[t]+"px";i(n.id,"IFrame ("+r+") "+t+" set to "+n[t]+"px")}function e(t){g||"0"!==n[t]||(g=!0,i(r,"Hidden iFrame detected, creating visibility listener"),gt())}function u(n){f(n);e(n)}var r=n.iframe.id;t[r]&&(t[r].sizeHeight&&u("height"),t[r].sizeWidth&&u("width"))}function st(n,t,r){r!==t.type&&e?(i(t.id,"Requesting animation frame"),e(n)):n()}function u(n,r,u,f){function e(){var e=t[f].targetOrigin;i(f,"["+n+"] Sending msg to iframe["+f+"] ("+r+") targetOrigin: "+e);u.contentWindow.postMessage(s+r,e)}function o(){y(f,"["+n+"] IFrame("+f+") not found");t[f]&&delete t[f]}function h(){u&&"contentWindow"in u&&null!==u.contentWindow?e():o()}f=f||u.id;t[f]&&h()}function ht(n){return n+":"+t[n].bodyMarginV1+":"+t[n].sizeWidth+":"+t[n].log+":"+t[n].interval+":"+t[n].enablePublicMethods+":"+t[n].autoResize+":"+t[n].bodyMargin+":"+t[n].heightCalculationMethod+":"+t[n].bodyBackground+":"+t[n].bodyPadding+":"+t[n].tolerance+":"+t[n].inPageLinks+":"+t[n].resizeFrom+":"+t[n].widthCalculationMethod}function ct(n,r){function s(){function r(r){Infinity!==t[e][r]&&0!==t[e][r]&&(n.style[r]=t[e][r]+"px",i(e,"Set "+r+" = "+t[e][r]+"px"))}function u(n){if(t[e]["min"+n]>t[e]["max"+n])throw new Error("Value for min"+n+" can not be greater than max"+n);}u("Height");u("Width");r("maxHeight");r("minHeight");r("maxWidth");r("minWidth")}function c(){var n=r&&r.id||h.id+k++;return null!==document.getElementById(n)&&(n=n+k++),n}function l(t){return v=t,""===t&&(n.id=t=c(),d=(r||{}).log,v=t,i(t,"Added missing iframe ID: "+t+" ("+n.src+")")),t}function a(){i(e,"IFrame scrolling "+(t[e].scrolling?"enabled":"disabled")+" for "+e);n.style.overflow=!1===t[e].scrolling?"hidden":"auto";n.scrolling=!1===t[e].scrolling?"no":"yes"}function y(){("number"==typeof t[e].bodyMargin||"0"===t[e].bodyMargin)&&(t[e].bodyMarginV1=t[e].bodyMargin,t[e].bodyMargin=""+t[e].bodyMargin+"px")}function p(){var i=t[e].firstRun,r=t[e].heightCalculationMethod in yt;!i&&r&&et({iframe:n,height:0,width:0,type:"init"})}function w(){Function.prototype.bind&&(t[e].iframe.iFrameResizer={close:it.bind(null,t[e].iframe),resize:u.bind(null,"Window resize","resize",t[e].iframe),moveToAnchor:function(n){u("Move to anchor","moveToAnchor:"+n,t[e].iframe,e)},sendMessage:function(n){n=JSON.stringify(n);u("Send Message","message:"+n,t[e].iframe,e)}})}function b(t){function i(){u("iFrame.onload",t,n);p()}f(n,"load",i);u("init",t,n)}function g(n){if("object"!=typeof n)throw new TypeError("Options is not an object");}function nt(n){for(var i in h)h.hasOwnProperty(i)&&(t[e][i]=n.hasOwnProperty(i)?n[i]:h[i])}function tt(n){return""===n||"file://"===n?"*":n}function rt(i){i=i||{};t[e]={firstRun:!0,iframe:n,remoteHost:n.src.split("/").slice(0,3).join("/")};g(i);nt(i);t[e].targetOrigin=!0===t[e].checkOrigin?tt(t[e].remoteHost):"*"}function ut(){return e in t&&"iFrameResizer"in n}var e=l(n.id);ut()?o(e,"Ignored iFrame, already setup."):(rt(r),a(),s(),y(),b(ht(e)),w())}function c(n,t){null===a&&(a=setTimeout(function(){a=null;n()},t))}function gt(){function f(){function n(n){function i(i){return"0px"===t[n].iframe.style[i]}function r(n){return null!==n.offsetParent}r(t[n].iframe)&&(i("height")||i("width"))&&u("Visibility change","resize",t[n].iframe,n)}for(var i in t)n(i)}function e(n){i("window","Mutation observed: "+n[0].target+" "+n[0].type);c(f,16)}function o(){var n=document.querySelector("body"),t=new r(e);t.observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}var r=n.MutationObserver||n.WebKitMutationObserver;r&&o()}function w(n){function t(){at("Window "+n,"resize")}i("window","Trigger event: "+n);c(t,16)}function lt(){function n(){at("Tab Visable","resize")}"hidden"!==document.visibilityState&&(i("document","Trigger event: Visiblity change"),c(n,16))}function at(n,i){function f(n){return"parent"===t[n].resizeFrom&&t[n].autoResize&&!t[n].firstRun}for(var r in t)f(r)&&u(n,i,document.getElementById(r),r)}function ni(){f(n,"message",dt);f(n,"resize",function(){w("resize")});f(document,"visibilitychange",lt);f(document,"-webkit-visibilitychange",lt);f(n,"focusin",function(){w("focus")});f(n,"focus",function(){w("focus")})}function b(){function t(t,i){function r(){if(i.tagName){if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">");}else throw new TypeError("Object is not a valid DOM element");}i&&(r(),ct(i,t),n.push(i))}var n;return wt(),ni(),function(i,r){n=[];switch(typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(undefined,i));break;case"object":t(i,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")");}return n}}function ti(n){n.fn?n.fn.iFrameResize=function(n){function t(t,i){ct(i,n)}return this.filter("iframe").each(t).end()}:y("","Unable to bind to jQuery, it is not fully loaded.")}var k=0,d=!1,g=!1,vt=7,s="[iFrameSizer]",l=s.length,r=null,e=n.requestAnimationFrame,yt={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},t={},a=null,v="Host Page",h={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:Infinity,maxWidth:Infinity,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){o("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};n.jQuery&&ti(jQuery);typeof define=="function"&&define.amd?define([],b):typeof module=="object"&&typeof module.exports=="object"?module.exports=b():n.iFrameResize=n.iFrameResize||b()}(window||{});cityWay.buttons=function(n){function t(t,i,r){"use strict";n(t).click(function(u){return u.preventDefault(),n(t).prop("disabled",!0),n(i).load(n(t).data("href"),function(i,f,e){!r||(r(n(this),i,f,e,u),n(t).prop("disabled",!1))}),!0})}return{ajaxLoad:t}}(jQuery);typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.10.2295",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(n){function t(t){if(n.utils.exists(t)){var i=t.indexOf("://"),r=t.indexOf("?");return i>0&&(r<0||r>i)}}n.utils=function(){};n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t};n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null};n.utils.clone=function(){var r,t=n.utils.clone.arguments,i;if(t.length==1)switch(n.utils.typeOf(t[0])){case"object":r={};for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;case"array":r=[];for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;default:return t[0]}return r};n.utils.extension=function(n){return n?(n=n.substring(n.lastIndexOf("/")+1,n.length),n=n.split("?")[0],n.lastIndexOf(".")>-1)?n.substr(n.lastIndexOf(".")+1,n.length).toLowerCase():void 0:""};n.utils.html=function(n,t){n.innerHTML=t};n.utils.wrap=function(n,t){n.parentNode&&n.parentNode.replaceChild(t,n);t.appendChild(n)};n.utils.ajax=function(t,i,r){var u;u=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");u.onreadystatechange=function(){if(u.readyState===4)if(u.status===200){if(i){if(!n.utils.exists(u.responseXML))try{if(window.DOMParser){var f=(new DOMParser).parseFromString(u.responseText,"text/xml");f&&(u=n.utils.extend({},u,{responseXML:f}))}else f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(u.responseText),u=n.utils.extend({},u,{responseXML:f})}catch(e){r&&r(t)}i(u)}}else r&&r(t)};try{u.open("GET",t,!0);u.send(null)}catch(f){r&&r(t)}return u};n.utils.load=function(n,t,i){n.onreadystatechange=function(){n.readyState===4&&(n.status===200?t&&t():i&&i())}};n.utils.find=function(n,t){return n.getElementsByTagName(t)};n.utils.append=function(n,t){n.appendChild(t)};n.utils.isIE=function(){return!+"\v1"||typeof ActiveXObject!="undefined"};n.utils.userAgentMatch=function(n){var t=navigator.userAgent.toLowerCase();return t.match(n)!==null};n.utils.isIOS=function(){return n.utils.userAgentMatch(/iP(hone|ad|od)/i)};n.utils.isIPad=function(){return n.utils.userAgentMatch(/iPad/i)};n.utils.isIPod=function(){return n.utils.userAgentMatch(/iP(hone|od)/i)};n.utils.isAndroid=function(){return n.utils.userAgentMatch(/android/i)};n.utils.isLegacyAndroid=function(){return n.utils.userAgentMatch(/android 2.[012]/i)};n.utils.isBlackberry=function(){return n.utils.userAgentMatch(/blackberry/i)};n.utils.isMobile=function(){return n.utils.userAgentMatch(/(iP(hone|ad|od))|android/i)};n.utils.getFirstPlaylistItemFromConfig=function(n){var t={},i;return i=n.playlist&&n.playlist.length?n.playlist[0]:n,t.file=i.file,t.levels=i.levels,t.streamer=i.streamer,t.playlistfile=i.playlistfile,t.provider=i.provider,t.provider||(t.file&&(t.file.toLowerCase().indexOf("youtube.com")>-1||t.file.toLowerCase().indexOf("youtu.be")>-1)&&(t.provider="youtube"),t.streamer&&t.streamer.toLowerCase().indexOf("rtmp://")==0&&(t.provider="rtmp"),i.type&&(t.provider=i.type.toLowerCase())),t.provider=="audio"&&(t.provider="sound"),t};n.utils.getOuterHTML=function(n){if(n.outerHTML)return n.outerHTML;try{return(new XMLSerializer).serializeToString(n)}catch(t){return""}};n.utils.setOuterHTML=function(n,t){var i,r,u;n.outerHTML?n.outerHTML=t:(i=document.createElement("div"),i.innerHTML=t,r=document.createRange(),r.selectNodeContents(i),u=r.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))};n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1};n.utils.getPluginName=function(n){return n.lastIndexOf("/")>=0&&(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")>=0&&(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")>=0&&(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")>=0&&(n=n.substring(0,n.lastIndexOf(".js"))),n};n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".js")):n.lastIndexOf(".swf")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".swf")):n.substring(n.lastIndexOf("-")+1):""};n.utils.getAbsolutePath=function(i,r){var e,h,u,o,s,f;if(n.utils.exists(r)||(r=document.location.href),!n.utils.exists(i))return undefined;if(t(i))return i;for(e=r.substring(0,r.indexOf("://")+3),h=r.substring(e.length,r.indexOf("/",e.length+1)),i.indexOf("/")===0?u=i.split("/"):(o=r.split("?")[0],o=o.substring(e.length+h.length+1,o.lastIndexOf("/")),u=o.split("/").concat(i.split("/"))),s=[],f=0;f<u.length;f++)if(u[f]&&n.utils.exists(u[f])&&u[f]!=".")u[f]==".."?s.pop():s.push(u[f]);else continue;return e+h+"/"+s.join("/")};n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};n.utils.getPluginPathType=function(t){var i,u,r;if(typeof t=="string")return(t=t.split("?")[0],i=t.indexOf("://"),i>0)?n.utils.pluginPathType.ABSOLUTE:(u=t.indexOf("/"),r=n.utils.extension(t),i<0&&u<0&&(!r||!isNaN(r)))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE};n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0};n.utils.mapLength=function(n){var t=0;for(var i in n)t++;return t};n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))};n.utils.css=function(t,i){if(n.utils.exists(t))for(var r in i)try{if(typeof i[r]=="undefined")continue;else if(typeof i[r]=="number"&&!(r=="zIndex"||r=="opacity")){if(isNaN(i[r]))continue;i[r]=r.match(/color/i)?"#"+n.utils.strings.pad(i[r].toString(16),6):Math.ceil(i[r])+"px"}t.style[r]=i[r]}catch(u){}};n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1};n.utils.transform=function(t,i,r,u,f){if(n.utils.exists(i)||(i=1),n.utils.exists(r)||(r=1),n.utils.exists(u)||(u=0),n.utils.exists(f)||(f=0),i==1&&r==1&&u==0&&f==0)t.style.webkitTransform="",t.style.MozTransform="",t.style.OTransform="";else{var e="scale("+i+","+r+") translate("+u+"px,"+f+"px)";t.style.webkitTransform=e;t.style.MozTransform=e;t.style.OTransform=e}};n.utils.stretch=function(t,i,r,u,f,e){var l,a;if(typeof r!="undefined"&&typeof u!="undefined"&&typeof f!="undefined"&&typeof e!="undefined"){var s=r/f,h=u/e,c=!1,o={};i.parentElement&&(i.parentElement.style.overflow="hidden");n.utils.transform(i);switch(t.toUpperCase()){case n.utils.stretching.NONE:o.width=f;o.height=e;o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.UNIFORM:s>h?(o.width=f*h,o.height=e*h,o.width/r>.95&&(c=!0,s=Math.ceil(100*r/o.width)/100,h=1,o.width=r)):(o.width=f*s,o.height=e*s,o.height/u>.95&&(c=!0,s=1,h=Math.ceil(100*u/o.height)/100,o.height=u));o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.FILL:s>h?(o.width=f*s,o.height=e*s):(o.width=f*h,o.height=e*h);o.top=(u-o.height)/2;o.left=(r-o.width)/2;break;case n.utils.stretching.EXACTFIT:o.width=f;o.height=e;l=Math.round(f/2*(1-1/s));a=Math.round(e/2*(1-1/h));c=!0;o.top=o.left=0}c&&n.utils.transform(i,s,h,l,a);n.utils.css(i,o)}};n.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};n.utils.deepReplaceKeyName=function(t,i,r){var f,o,s,e,u;switch(n.utils.typeOf(t)){case"array":for(u=0;u<t.length;u++)t[u]=n.utils.deepReplaceKeyName(t[u],i,r);break;case"object":for(f in t){if(i instanceof Array&&r instanceof Array)if(i.length!=r.length)continue;else o=i,s=r;else o=[i],s=[r];for(e=f,u=0;u<o.length;u++)e=e.replace(new RegExp(i[u],"g"),r[u]);t[e]=n.utils.deepReplaceKeyName(t[f],i,r);f!=e&&delete t[f]}}return t};n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1};n.utils.exists=function(n){switch(typeof n){case"string":return n.length>0;case"object":return n!==null;case"undefined":return!1}return!0};n.utils.empty=function(n){if(typeof n.hasChildNodes=="function")while(n.hasChildNodes())n.removeChild(n.firstChild)};n.utils.parseDimension=function(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n};n.utils.getDimensions=function(t){return t&&t.style?{x:n.utils.parseDimension(t.style.left),y:n.utils.parseDimension(t.style.top),width:n.utils.parseDimension(t.style.width),height:n.utils.parseDimension(t.style.height)}:{}};n.utils.getElementWidth=function(t){return t?t==document.body?n.utils.parentNode(t).clientWidth:t.clientWidth>0?t.clientWidth:t.style?n.utils.parseDimension(t.style.width):null:null};n.utils.getElementHeight=function(t){return t?t==document.body?n.utils.parentNode(t).clientHeight:t.clientHeight>0?t.clientHeight:t.style?n.utils.parseDimension(t.style.height):null:null};n.utils.timeFormat=function(n){return str="00:00",n>0&&(str=(Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":")+(Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60))),str};n.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0};n.utils.parentNode=function(n){return n?n.parentNode?n.parentNode:n.parentElement?n.parentElement:n:document.body};n.utils.getBoundingClientRect=function(n){return typeof n.getBoundingClientRect=="function"?n.getBoundingClientRect():{left:n.offsetLeft+document.body.scrollLeft,top:n.offsetTop+document.body.scrollTop,width:n.offsetWidth,height:n.offsetHeight}};n.utils.translateEventResponse=function(t,i){var r=n.utils.extend({},i),u,f;t!=n.api.events.JWPLAYER_FULLSCREEN||r.fullscreen?typeof r.data=="object"?(r=n.utils.extend(r,r.data),delete r.data):typeof r.metadata=="object"&&n.utils.deepReplaceKeyName(r.metadata,["__dot__","__spc__","__dsh__"],["."," ","-"]):(r.fullscreen=r.message=="true"?!0:!1,delete r.message);u=["position","duration","offset"];for(f in u)r[u[f]]&&(r[u[f]]=Math.round(r[u[f]]*1e3)/1e3);return r};n.utils.saveCookie=function(n,t){document.cookie="jwplayer."+n+"="+t+"; path=/"};n.utils.getCookies=function(){for(var n,i={},r=document.cookie.split("; "),t=0;t<r.length;t++)n=r[t].split("="),n[0].indexOf("jwplayer.")==0&&(i[n[0].substring(9,n[0].length)]=n[1]);return i};n.utils.readCookie=function(t){return n.utils.getCookies()[t]}}(jwplayer),function(n){n.events=function(){};n.events.COMPLETE="COMPLETE";n.events.ERROR="ERROR"}(jwplayer),function(n){n.events.eventdispatcher=function(t){var u=t,i,r;this.resetEventListeners=function(){i={};r=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{n.utils.exists(i[type])||(i[type]=[]);typeof listener=="string"&&eval("listener = "+listener);i[type].push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeEventListener=function(t,r){if(i[t]){try{for(var u=0;u<i[t].length;u++)if(i[t][u].listener.toString()==r.toString()){i[t].splice(u,1);break}}catch(f){n.utils.log("error",f)}return!1}};this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener);r.push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeGlobalListener=function(t){if(t){try{for(var i=0;i<r.length;i++)if(r[i].listener.toString()==t.toString()){r.splice(i,1);break}}catch(u){n.utils.log("error",u)}return!1}};this.sendEvent=function(t,f){var e,o;if(n.utils.exists(f)||(f={}),u&&n.utils.log(t,f),typeof i[t]!="undefined")for(e=0;e<i[t].length;e++){try{i[t][e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][e].listener)}i[t][e]&&(i[t][e].count===1?delete i[t][e]:i[t][e].count>0&&(i[t][e].count=i[t][e].count-1))}for(o=0;o<r.length;o++){try{r[o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[o].listener)}r[o]&&(r[o].count===1?delete r[o]:r[o].count>0&&(r[o].count=r[o].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){};n.utils.animations.transform=function(n,t){n.style.webkitTransform=t;n.style.MozTransform=t;n.style.OTransform=t;n.style.msTransform=t};n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t;n.style.MozTransformOrigin=t;n.style.OTransformOrigin=t;n.style.msTransformOrigin=t};n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))};n.utils.cancelAnimation=function(n){delete t[n.id]};n.utils.fadeTo=function(i,r,u,f,e,o){var h,c,l,s;if((t[i.id]==o||!n.utils.exists(o))&&i.style.opacity!=r){if(h=(new Date).getTime(),o>h&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-h),i.style.display=="none"&&(i.style.display="block"),n.utils.exists(f)||(f=i.style.opacity===""?1:i.style.opacity),i.style.opacity==r&&i.style.opacity!==""&&n.utils.exists(o)){r===0&&(i.style.display="none");return}if(n.utils.exists(o)||(o=h,t[i.id]=o),n.utils.exists(e)||(e=0),c=u>0?(h-o)/(u*1e3):0,c=c>1?1:c,l=r-f,s=f+c*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s,e>0){t[i.id]=o+e*1e3;n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}}(jwplayer),function(n){n.utils.arrays=function(){};n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1};n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(n){function i(t,i){return n.utils.exists(i)?n.utils.extend(i,f[t]):i=f[t],i}function r(r,u){var e,o,s,f;if(t[r.tagName.toLowerCase()]&&!n.utils.exists(u))return t[r.tagName.toLowerCase()](r);u=i("element",u);e={};for(o in u)o!="length"&&(s=r.getAttribute(o),n.utils.exists(s)&&(e[u[o]]=s));return f=r.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,f;u=i("media",u);o=[];s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(e(s[h]));return f=r(t,u),n.utils.exists(f.file)&&(o[0]={file:f.file}),f.levels=o,f}function e(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var f={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)};t.media=u;t.audio=u;t.source=e;t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r);this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE;r.sendEvent(n.events.COMPLETE)};u.onerror=function(){i=n.utils.loaderstatus.ERROR;r.sendEvent(n.events.ERROR)};u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))};document.getElementsByTagName("head")[0].appendChild(u);u.src=t}};this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){var r,u;return n.utils.exists(i)||(i=document),t=n.utils.strings.trim(t),r=t.charAt(0),r=="#"?i.getElementById(t.substr(1)):r=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(u=t.split("."),n.utils.selectors.getElementsByTagAndClass(u[0],u[1])):i.getElementsByTagName(t)};n.utils.selectors.getElementsByTagAndClass=function(t,i,r){var s=[],f,u,o,e;for(n.utils.exists(r)||(r=document),f=r.getElementsByTagName(t),u=0;u<f.length;u++)if(n.utils.exists(f[u].className))for(o=f[u].className.split(" "),e=0;e<o.length;e++)o[e]==i&&s.push(f[u]);return s}}(jwplayer),function(n){n.utils.strings=function(){};n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")};n.utils.strings.pad=function(n,t,i){for(i||(i="0");n.length<t;)n=i+n;return n};n.utils.strings.serialize=function(n){return n==null?null:n=="true"?!0:n=="false"?!1:isNaN(Number(n))||n.length>5||n.length==0?n:Number(n)};n.utils.strings.seconds=function(n){n=n.replace(",",".");var t=n.split(":"),i=0;return n.substr(-1)=="s"?i=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?i=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?i=Number(n.substr(0,n.length-1))*3600:t.length>1?(i=Number(t[t.length-1]),i+=Number(t[t.length-2])*60,t.length==3&&(i+=Number(t[t.length-3])*3600)):i=Number(n),i};n.utils.strings.xmlAttribute=function(n,t){for(var i=0;i<n.attributes.length;i++)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""};n.utils.strings.jsonToString=function(t){var u=u||{},f,r,e,o,i;if(u&&u.stringify)return u.stringify(t);if(f=typeof t,f!="object"||t===null)if(f=="string")t='"'+t.replace(/"/g,'\\"')+'"';else return String(t);else{r=[];e=t&&t.constructor==Array;for(o in t){i=t[o];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":n.utils.exists(i)&&(i=n.utils.strings.jsonToString(i))}e?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+o+'":'+String(i))}return e?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function i(n){if(["true","false","t","f"].toString().indexOf(n.toLowerCase().replace(" ",""))>=0)return"boolean";if(t.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer";return"string"}function r(t,i){if(!n.utils.exists(i))return t;switch(i){case"color":return t.length>0?u(t):null;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"boolean":return t.toLowerCase()=="true"?!0:t=="1"?!0:!1}return t}function u(n){switch(n.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var t=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(t,u){return u=n.utils.exists(u)?u:i(t),r(t,u)}}(jwplayer),function(n){n.utils.parsers=function(){};n.utils.parsers.localName=function(n){return n?n.localName?n.localName:n.baseName?n.baseName:"":""};n.utils.parsers.textContent=function(n){return n?n.textContent?n.textContent:n.text?n.text:"":""}}(jwplayer),function(n){n.utils.parsers.jwparser=function(){};n.utils.parsers.jwparser.PREFIX="jwplayer";n.utils.parsers.jwparser.parseEntry=function(t,i){for(var r=0;r<t.childNodes.length;r++)t.childNodes[r].prefix==n.utils.parsers.jwparser.PREFIX&&(i[n.utils.parsers.localName(t.childNodes[r])]=n.utils.strings.serialize(n.utils.parsers.textContent(t.childNodes[r])),n.utils.parsers.localName(t.childNodes[r])=="file"&&i.levels&&delete i.levels),!i.file&&String(i.link).toLowerCase().indexOf("youtube")>-1&&(i.file=i.link);return i};n.utils.parsers.jwparser.getProvider=function(t){if(t.type)return t.type;if(t.file.indexOf("youtube.com/w")>-1||t.file.indexOf("youtube.com/v")>-1||t.file.indexOf("youtu.be/")>-1)return"youtube";if(t.streamer&&t.streamer.indexOf("rtmp")==0)return"rtmp";if(t.streamer&&t.streamer.indexOf("http")==0)return"http";var i=n.utils.strings.extension(t.file);return extensions.hasOwnProperty(i)?extensions[i]:""}}(jwplayer),function(n){n.utils.parsers.mediaparser=function(){};n.utils.parsers.mediaparser.PREFIX="media";n.utils.parsers.mediaparser.parseGroup=function(t,i){for(var u,f=!1,r=0;r<t.childNodes.length;r++)if(t.childNodes[r].prefix==n.utils.parsers.mediaparser.PREFIX){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"content":f||(i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));n.utils.strings.xmlAttribute(t.childNodes[r],"duration")&&(i.duration=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"duration")));n.utils.strings.xmlAttribute(t.childNodes[r],"start")&&(i.start=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"start")));t.childNodes[r].childNodes&&t.childNodes[r].childNodes.length>0&&(i=n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i));(n.utils.strings.xmlAttribute(t.childNodes[r],"width")||n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate")||n.utils.strings.xmlAttribute(t.childNodes[r],"url"))&&(i.levels||(i.levels=[]),i.levels.push({width:n.utils.strings.xmlAttribute(t.childNodes[r],"width"),bitrate:n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate"),file:n.utils.strings.xmlAttribute(t.childNodes[r],"url")}));break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"keywords":i.tags=n.utils.parsers.textContent(t.childNodes[r]);break;case"thumbnail":i.image=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"credit":i.author=n.utils.parsers.textContent(t.childNodes[r]);break;case"player":u=t.childNodes[r].url;(u.indexOf("youtube.com")>=0||u.indexOf("youtu.be")>=0)&&(f=!0,i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));break;case"group":n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)}}return i}}(jwplayer),function(n){function t(t){for(var i={},r=0;r<t.childNodes.length;r++)if(n.utils.parsers.localName(t.childNodes[r]))switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"enclosure":i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"pubdate":i.date=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"link":i.link=n.utils.parsers.textContent(t.childNodes[r]);break;case"category":i.tags?i.tags+=n.utils.parsers.textContent(t.childNodes[r]):i.tags=n.utils.parsers.textContent(t.childNodes[r])}return i=n.utils.parsers.mediaparser.parseGroup(t,i),i=n.utils.parsers.jwparser.parseEntry(t,i),new n.html5.playlistitem(i)}n.utils.parsers.rssparser=function(){};n.utils.parsers.rssparser.parse=function(i){for(var u,f=[],r=0;r<i.childNodes.length;r++)if(n.utils.parsers.localName(i.childNodes[r]).toLowerCase()=="channel")for(u=0;u<i.childNodes[r].childNodes.length;u++)n.utils.parsers.localName(i.childNodes[r].childNodes[u]).toLowerCase()=="item"&&f.push(t(i.childNodes[r].childNodes[u]));return f}}(jwplayer),function(n){var i={},t={};n.plugins=function(){};n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u),t[r]};n.plugins.registerPlugin=function(r,u,f){var e=n.utils.getPluginName(r),o;if(i[e])i[e].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(o in t)t[o].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};n.plugins.plugin=function(t){function s(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var i=n.utils.getPluginName(t),r=n.utils.getPluginVersion(t),u=window.location.href.indexOf("https://")==0?o.replace("http://","https://secure"):o;return u+"/"+n.version.split(".")[0]+"/"+i+"/"+i+(r!==""?"-"+r:"")+".js"}}function h(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)},1e3)}function c(){r=n.utils.loaderstatus.ERROR;f.sendEvent(n.events.ERROR)}var o="http://plugins.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f);this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t;r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(s());u.addEventListener(n.events.COMPLETE,h);u.addEventListener(n.events.ERROR,c);u.load()}};this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined);o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t);r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)};this.getStatus=function(){return r};this.getPluginName=function(){return n.utils.getPluginName(t)};this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,s());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null};this.getJS=function(){return u};this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0};this.getNewInstance=function(n,t,i){return new u(n,t,i)};this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function h(){f||(f=!0,u=n.utils.loaderstatus.COMPLETE,s.sendEvent(n.events.COMPLETE))}function e(){var t,i;if(!f){t=0;for(plugin in r)i=r[plugin].getStatus(),(i==n.utils.loaderstatus.LOADING||i==n.utils.loaderstatus.NEW)&&t++;t==0&&h()}}var r={},u=n.utils.loaderstatus.NEW,o=!1,f=!1,s=new n.events.eventdispatcher;n.utils.extend(this,s);this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r)if(o=r[u].getPluginName(),r[u].getFlashPath()&&(s.plugins[r[u].getFlashPath()]=t.plugins[u],s.plugins[r[u].getFlashPath()].pluginmode=r[u].getPluginmode(),s.length++),r[u].getJS()&&(e=document.createElement("div"),e.id=n.id+"_"+o,e.style.position="absolute",e.style.zIndex=f.length+10,f.plugins[o]=r[u].getNewInstance(n,t.plugins[u],e),f.length++,typeof f.plugins[o].resize!="undefined")){n.onReady(i(f.plugins[o],e,!0));n.onResize(i(f.plugins[o],e))}return n.plugins=f.plugins,s};this.load=function(){u=n.utils.loaderstatus.LOADING;o=!0;for(var f in i)n.utils.exists(f)&&(r[f]=t.addPlugin(f),r[f].addEventListener(n.events.COMPLETE,e),r[f].addEventListener(n.events.ERROR,e));for(f in r)r[f].load();o=!1;e()};this.pluginFailed=function(){h()};this.getStatus=function(){return u}}}(jwplayer),function(n){var t=[];n.api=function(t){function v(n,t){return function(r,u,e,o){if(n.renderingMode=="flash"||n.renderingMode=="html5"){var s;u?(f[r]=u,s="jwplayer('"+n.id+"').callback('"+r+"')"):!u&&f[r]&&delete f[r];i.jwDockSetButton(r,s,e,o)}return t}}function a(t){s=[];n.utils.getOuterHTML(t.container)!=l&&n.api.destroyPlayer(t.id,l)}function y(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=e[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u})}}function p(n,t){return function(i){var r,f;if(n==i.component&&(r=u[n][t],r))for(f=0;f<r.length;f++)typeof r[f]=="function"&&r[f].call(this,i)}}this.container=t;this.id=t.id;var r={},e={},u={},i=undefined,o=!1,s=[],h=undefined,l=n.utils.getOuterHTML(t),c={},f={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(t){var r=this,i={};return t=="dock"?n.utils.extend(i,{setButton:v(r,i),show:function(){return r.callInternal("jwDockShow"),i},hide:function(){return r.callInternal("jwDockHide"),i},onShow:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="controlbar"?n.utils.extend(i,{show:function(){return r.callInternal("jwControlbarShow"),i},hide:function(){return r.callInternal("jwControlbarHide"),i},onShow:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="display"?n.utils.extend(i,{show:function(){return r.callInternal("jwDisplayShow"),i},hide:function(){return r.callInternal("jwDisplayHide"),i},onShow:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):this.plugins[t]},this.callback=function(n){if(f[n])return f[n]()},this.getDuration=function(){return this.callInternal("jwGetDuration")},this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")},this.getHeight=function(){return this.callInternal("jwGetHeight")},this.getLockState=function(){return this.callInternal("jwGetLockState")},this.getMeta=function(){return this.getItemMeta()},this.getMute=function(){return this.callInternal("jwGetMute")},this.getPlaylist=function(){var i=this.callInternal("jwGetPlaylist"),t;for(this.renderingMode=="flash"&&n.utils.deepReplaceKeyName(i,["__dot__","__spc__","__dsh__"],["."," ","-"]),t=0;t<i.length;t++)n.utils.exists(i[t].index)||(i[t].index=t);return i},this.getPlaylistItem=function(t){return n.utils.exists(t)||(t=this.getCurrentItem()),this.getPlaylist()[t]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(t){return n.utils.exists(t)?this.callInternal("jwSetFullscreen",t):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")),this},this.setMute=function(t){return n.utils.exists(t)?this.callInternal("jwSetMute",t):this.callInternal("jwSetMute",!this.callInternal("jwGetMute")),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(n){return this.callInternal("jwLoad",n),this},this.playlistItem=function(n){return this.callInternal("jwPlaylistItem",n),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(n,t){if(this.renderingMode=="html5")i.jwResize(n,t);else{this.container.width=n;this.container.height=t;var r=document.getElementById(this.id+"_wrapper");r&&(r.style.width=n+"px",r.style.height=t+"px")}return this},this.play=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",t),this},this.pause=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",t),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(n){return this.callInternal("jwSeek",n),this},this.setVolume=function(n){return this.callInternal("jwSetVolume",n),this},this.loadInstream=function(t,r){return h=new n.api.instream(this,i,t,r)},this.onBufferChange=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,t)},this.onBufferFull=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)},this.onError=function(t){return this.eventListener(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return this.eventListener(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onPlaylist=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,t)},this.onPlaylistItem=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,t)},this.onReady=function(t){return this.eventListener(n.api.events.API_READY,t)},this.onResize=function(t){return this.eventListener(n.api.events.JWPLAYER_RESIZE,t)},this.onComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBeforePlay=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,t)},this.onBeforeComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE,t)},this.onBuffer=function(t){return this.stateListener(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return this.stateListener(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return this.stateListener(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return this.stateListener(n.api.events.state.IDLE,t)},this.remove=function(){if(!o)throw"Cannot call remove() before player is ready";a(this)},this.setup=function(t){var r,i;return n.embed?(r=this.id,a(this),i=n(r),i.config=t,new n.embed(i)):this},this.registerPlugin=function(t,i,r){n.plugins.registerPlugin(t,i,r)},this.setPlayer=function(n,t){i=n;this.renderingMode=t},this.stateListener=function(t,i){return e[t]||(e[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,y(t))),e[t].push(i),this},this.detachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwDetachMedia")},this.attachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwAttachMedia")},this.componentListener=function(n,t,i){return u[n]||(u[n]={}),u[n][t]||(u[n][t]=[],this.eventListener(t,p(n,t))),u[n][t].push(i),this},this.addInternalListener=function(t,i){try{t.jwAddEventListener(i,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+i+'", dat); }')}catch(r){n.utils.log("Could not add internal listener")}},this.eventListener=function(n,t){return r[n]||(r[n]=[],i&&o&&this.addInternalListener(i,n)),r[n].push(t),this},this.dispatchEvent=function(n){var i,t;if(r[n])for(i=_utils.translateEventResponse(n,arguments[1]),t=0;t<r[n].length;t++)typeof r[n][t]=="function"&&r[n][t].call(this,i)},this.dispatchInstreamEvent=function(n){h&&h.dispatchEvent(n,arguments)},this.callInternal=function(){var t,n,r;if(o){for(t=arguments[0],n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);return typeof i!="undefined"&&typeof i[t]=="function"?n.length==2?i[t](n[0],n[1]):n.length==1?i[t](n[0]):i[t]():null}s.push(arguments)},this.playerReady=function(t){o=!0;i||this.setPlayer(document.getElementById(t.id));this.container=document.getElementById(this.id);for(var u in r)this.addInternalListener(i,u);for(this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,function(){c={}}),this.eventListener(n.api.events.JWPLAYER_MEDIA_META,function(t){n.utils.extend(c,t.metadata)}),this.dispatchEvent(n.api.events.API_READY);s.length>0;)this.callInternal.apply(this,s.shift())},this.getItemMeta=function(){return c},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this};n.api.selectPlayer=function(t){var i,r;return(n.utils.exists(t)||(t=0),t.nodeType?i=t:typeof t=="string"&&(i=document.getElementById(t)),i)?(r=n.api.playerById(i.id),r?r:n.api.addPlayer(new n.api(i))):typeof t=="number"?n.getPlayers()[t]:null};n.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"};n.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};n.api.playerById=function(n){for(var i=0;i<t.length;i++)if(t[i].id==n)return t[i];return null};n.api.addPlayer=function(n){for(var i=0;i<t.length;i++)if(t[i]==n)return n;return t.push(n),n};n.api.destroyPlayer=function(i,r){for(var u,o,s,f=-1,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}if(f>=0){try{t[f].callInternal("jwDestroy")}catch(h){}u=document.getElementById(t[f].id);document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper"));u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u)));t.splice(f,1)}return null};n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t?t.playerReady(n):jwplayer.api.selectPlayer(n.id).playerReady(n);_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){n.api.instream=function(t,i,r,u){function l(){c.callInternal("jwLoadInstream",r,u)}function a(n,t){e.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+c.id+'").dispatchInstreamEvent("'+t+'", dat); }')}function f(n,t){return o[n]||(o[n]=[],a(e,n)),o[n].push(t),this}function h(t,i){return s[t]||(s[t]=[],f(n.api.events.JWPLAYER_PLAYER_STATE,v(t))),s[t].push(i),this}function v(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=s[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u,type:t.type})}}var c=t,e=i,y=r,p=u,o={},s={};this.dispatchEvent=function(n,t){var r,i;if(o[n])for(r=_utils.translateEventResponse(n,t[1]),i=0;i<o[n].length;i++)typeof o[n][i]=="function"&&o[n][i].call(this,r)};this.onError=function(t){return f(n.api.events.JWPLAYER_ERROR,t)};this.onFullscreen=function(t){return f(n.api.events.JWPLAYER_FULLSCREEN,t)};this.onMeta=function(t){return f(n.api.events.JWPLAYER_MEDIA_META,t)};this.onMute=function(t){return f(n.api.events.JWPLAYER_MEDIA_MUTE,t)};this.onComplete=function(t){return f(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)};this.onSeek=function(t){return f(n.api.events.JWPLAYER_MEDIA_SEEK,t)};this.onTime=function(t){return f(n.api.events.JWPLAYER_MEDIA_TIME,t)};this.onVolume=function(t){return f(n.api.events.JWPLAYER_MEDIA_VOLUME,t)};this.onBuffer=function(t){return h(n.api.events.state.BUFFERING,t)};this.onPause=function(t){return h(n.api.events.state.PAUSED,t)};this.onPlay=function(t){return h(n.api.events.state.PLAYING,t)};this.onIdle=function(t){return h(n.api.events.state.IDLE,t)};this.onInstreamClick=function(t){return f(n.api.events.JWPLAYER_INSTREAM_CLICK,t)};this.onInstreamDestroyed=function(t){return f(n.api.events.JWPLAYER_INSTREAM_DESTROYED,t)};this.play=function(n){e.jwInstreamPlay(n)};this.pause=function(n){e.jwInstreamPause(n)};this.seek=function(n){e.jwInstreamSeek(n)};this.destroy=function(){e.jwInstreamDestroy()};this.getState=function(){return e.jwInstreamGetState()};this.getDuration=function(){return e.jwInstreamGetDuration()};this.getPosition=function(){return e.jwInstreamGetPosition()};l()}}(jwplayer),function(n){function i(){var f,r,u;if(!document.body)return setTimeout(i,15);for(f=t.selectors.getElementsByTagAndClass("video","jwplayer"),r=0;r<f.length;r++)u=f[r],u.id==""&&(u.id="jwplayer_"+Math.round(Math.random()*1e5)),n(u.id).setup({})}var t=n.utils;n.embed=function(i){function o(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function f(){var f,e,s,h,c,y,l,a,v;if(u.getStatus()==t.loaderstatus.COMPLETE){for(f=0;f<r.modes.length;f++)if(r.modes[f].type&&n.embed[r.modes[f].type]){if(e=r.modes[f].config,s=r,e)for(s=t.extend(t.clone(r),e),h=["file","levels","playlist"],c=0;c<h.length;c++)if(y=h[c],t.exists(e[y]))for(l=0;l<h.length;l++)l!=c&&(a=h[l],t.exists(s[a])&&!t.exists(e[a])&&delete s[a]);if(v=new n.embed[r.modes[f].type](document.getElementById(i.id),r.modes[f],s,u,i),v.supportsConfig())return v.embed(),o(i,r.events),i}t.log("No suitable players found");new n.embed.logo(t.extend({hide:!0},r.components.logo),"none",i.id)}}var e=t.mediaparser.parseMedia(i.container),r=new n.embed.config(t.extend({width:400,height:300,components:{controlbar:{position:"over"}}},e,i.config),this),u=n.plugins.loadPlugins(i.id,r.plugins);return u.addEventListener(n.events.COMPLETE,f),u.addEventListener(n.events.ERROR,f),u.load(),i};i()}(jwplayer),function(n){function i(n){var i=[{type:"flash",src:n?n:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}];return t.isAndroid()&&(i[0]=i.splice(1,1,i[0])[0]),i}function o(n){return n instanceof Array||typeof n=="object"&&!n.position&&!n.size}function e(n){return typeof n=="string"&&(parseInt(n).toString()==n||n.toLowerCase().indexOf("px")>-1)?parseInt(n):n}function s(n){var u={},f,r,i;switch(t.typeOf(n.plugins)){case"object":for(f in n.plugins)u[t.getPluginName(f)]=f;break;case"string":for(r=n.plugins.split(","),i=0;i<r.length;i++)u[t.getPluginName(r[i])]=r[i]}return u}function f(n,i,r,u){var f,e;t.typeOf(n[i])!="object"&&(n[i]={});f=n[i][r];t.typeOf(f)!="object"&&(n[i][r]=f={});u&&(i=="plugins"?(e=t.getPluginName(r),f[u]=n[e+"."+u],delete n[e+"."+u]):(f[u]=n[r+"."+u],delete n[r+"."+u]))}var t=n.utils,r={players:"modes",autoplay:"autostart"},u=["playlist","dock","controlbar","logo","display"];n.embed.deserialize=function(n){var r=s(n),o,i;for(o in r)f(n,"plugins",r[o]);for(i in n)if(i.indexOf(".")>-1){var h=i.split("."),e=h[0],i=h[1];t.isInArray(u,e)?f(n,"components",e,i):r[e]&&f(n,"plugins",r[e],i)}return n};n.embed.config=function(f){var s=t.extend({},f),w,v,c,y,p,h,l,a;if(o(s.playlist)&&(w=s.playlist,delete s.playlist),s=n.embed.deserialize(s),s.height=e(s.height),s.width=e(s.width),typeof s.plugins=="string")for(v=s.plugins.split(","),typeof s.plugins!="object"&&(s.plugins={}),c=0;c<v.length;c++)y=t.getPluginName(v[c]),typeof s[y]=="object"?(s.plugins[v[c]]=s[y],delete s[y]):s.plugins[v[c]]={};for(p=0;p<u.length;p++)h=u[p],t.exists(s[h])&&(typeof s[h]!="object"?(s.components[h]||(s.components[h]={}),h=="logo"?s.components[h].file=s[h]:s.components[h].position=s[h],delete s[h]):(s.components[h]||(s.components[h]={}),t.extend(s.components[h],s[h]),delete s[h])),typeof s[h+"size"]!="undefined"&&(s.components[h]||(s.components[h]={}),s.components[h].size=s[h+"size"],delete s[h+"size"]);typeof s.icons!="undefined"&&(s.components.display||(s.components.display={}),s.components.display.icons=s.icons,delete s.icons);for(l in r)s[l]&&(s[r[l]]||(s[r[l]]=s[l]),delete s[l]);return s.flashplayer&&!s.modes?(a=i(s.flashplayer),delete s.flashplayer):s.modes?(typeof s.modes=="string"?a=i(s.modes):s.modes instanceof Array?a=s.modes:typeof s.modes=="object"&&s.modes.type&&(a=[s.modes]),delete s.modes):a=i(),s.modes=a,w&&(s.playlist=w),s}}(jwplayer),function(n){n.embed.download=function(t,i,r,u,f){function e(t,i,r){var f,u;return r?!1:(f=["image","sound","youtube","http"],i&&f.toString().indexOf(i)>-1)?!0:(!i||i&&i=="video")&&(u=n.utils.extension(t),u&&n.utils.extensionmap[u])?!0:!1}this.embed=function(){function v(){_imageWidth=i.display_image.naturalWidth;_imageHeight=i.display_image.naturalHeight;y()}function y(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,o,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},o=r.width?r.width:480,e,s,h,c,u,a,l,p;typeof o!="number"&&(o=parseInt(o,10));e=r.height?r.height:320;typeof e!="number"&&(e=parseInt(e,10));u={};r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,h=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,h=r.image,u.levels=r.levels);u.file?s=u.file:u.levels&&u.levels.length&&(s=u.levels[0].file);c=s?"pointer":"auto";a={display:{style:{cursor:c,width:o,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:(e-50)/2,left:(o-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:o,height:e,display:h?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};l=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f};i.display=l("a","display",t.id);s&&i.display.setAttribute("href",n.utils.getAbsolutePath(s));i.display_image=l("img","display_image");i.display_image.setAttribute("alt","Click to download...");h&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(h));!0&&(i.display_icon=l("div","display_icon"),i.display_iconBackground=l("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground));_css=n.utils.css;_hide=function(n){_css(n,{display:"none"})};i.display_image.onerror=function(){_hide(i.display_image)};i.display_image.onload=v;t.parentNode.replaceChild(i.display,t);p=r.plugins&&r.plugins.logo?r.plugins.logo:{};i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id));f.container=document.getElementById(f.id);f.setPlayer(i.display,"download")};this.supportsConfig=function(){var t,i;if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return e(t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&e(t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0}}}(jwplayer),function(n){n.embed.flash=function(t,i,r,u,f){function e(n,t,i){var r=document.createElement("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function h(t,i,r){return function(){var u,e;r&&document.getElementById(f.id+"_wrapper").appendChild(i);u=document.getElementById(f.id).getPluginConfig("display");t.resize(u.width,u.height);e={left:u.x,top:u.y};n.utils.css(i,e)}}function o(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f)if(r=f[i],typeof r=="string")n[i]||(n[i]=r);else for(u in r)n[i+"."+u]||(n[i+"."+u]=r[u]);delete n[t]}}function c(t){var i,u,r,o,f,e;if(!t)return{};i={};u=[];for(r in t){o=n.utils.getPluginName(r);f=t[r];u.push(r);for(e in f)i[o+"."+e]=f[e]}return i.plugins=u.join(","),i}function s(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var d,g,p,w,nt,b,tt,k,v,a;r.id=f.id;var y,l=n.utils.extend({},r),it=l.width,rt=l.height;for(t.id+"_wrapper"==t.parentNode.id?y=document.getElementById(t.id+"_wrapper"):(y=document.createElement("div"),y.id=t.id+"_wrapper",n.utils.wrap(t,y),n.utils.css(y,{position:"relative",width:it,height:rt})),d=u.setupPlugins(f,l,h),d.length>0?n.utils.extend(l,c(d.plugins)):delete l.plugins,g=["height","width","modes","events"],p=0;p<g.length;p++)delete l[g[p]];w="opaque";l.wmode&&(w=l.wmode);o(l,"components");o(l,"providers");typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]);nt=n.utils.getCookies();for(b in nt)typeof l[b]=="undefined"&&(l[b]=nt[b]);tt="#000000";n.utils.isIE()?(v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+tt+'" width="100%" height="100%" id="'+t.id+'" name="'+t.id+'" tabindex=0"">',v+='<param name="movie" value="'+i.src+'">',v+='<param name="allowfullscreen" value="true">',v+='<param name="allowscriptaccess" value="always">',v+='<param name="seamlesstabbing" value="true">',v+='<param name="wmode" value="'+w+'">',v+='<param name="flashvars" value="'+s(l)+'">',v+="<\/object>",n.utils.setOuterHTML(t,v),k=document.getElementById(t.id)):(a=document.createElement("object"),a.setAttribute("type","application/x-shockwave-flash"),a.setAttribute("data",i.src),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("bgcolor","#000000"),a.setAttribute("id",t.id),a.setAttribute("name",t.id),a.setAttribute("tabindex",0),e(a,"allowfullscreen","true"),e(a,"allowscriptaccess","always"),e(a,"seamlesstabbing","true"),e(a,"wmode",w),e(a,"flashvars",s(l)),t.parentNode.replaceChild(a,t),k=a);f.container=k;f.setPlayer(k,"flash")};this.supportsConfig=function(){var t,i;if(n.utils.hasFlash())if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return flashCanPlay(t.file,t.provider);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&flashCanPlay(t.levels[i].file,t.provider))return!0}else return!0;return!1};flashCanPlay=function(t,i){var r;return i&&["video","http","sound","image"].toString().indexOf(i)<0?!0:(r=n.utils.extension(t),!r)?!0:n.utils.exists(n.utils.extensionmap[r])&&!n.utils.exists(n.utils.extensionmap[r].flash)?!1:!0}}}(jwplayer),function(n){n.embed.html5=function(t,i,r,u,f){function e(n,i,r){return function(){var u=document.getElementById(t.id+"_displayarea");r&&u.appendChild(i);n.resize(u.clientWidth,u.clientHeight);i.left=u.style.left;i.top=u.style.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels);i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml"));h=new(n.html5(t).setup)(i);f.container=document.getElementById(f.id);f.setPlayer(h,"html5")}else return null};this.supportsConfig=function(){var t,i;if(!!n.vid.canPlayType)if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return html5CanPlay(n.vid,t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&html5CanPlay(n.vid,t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0;return!1};html5CanPlay=function(t,i,r,u){if(u)return!1;if(r&&r=="youtube")return!0;if(r&&r!="video"&&r!="http"&&r!="sound"||navigator.userAgent.match(/BlackBerry/i)!==null)return!1;var f=n.utils.extension(i);return!n.utils.exists(f)||!n.utils.exists(n.utils.extensionmap[f])?!0:n.utils.exists(n.utils.extensionmap[f].html5)?n.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(t,n.utils.extensionmap[f].html5):!1};browserCanPlay=function(n,t){return t?n.canPlayType(t)?!0:t=="audio/mp3"&&navigator.userAgent.match(/safari/i)?n.canPlayType("audio/mpeg"):!1:!0}}}(jwplayer),function(n){n.embed.logo=function(t,i,r){function s(){h();l();a()}function h(){if(e.prefix){var t=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(t)<0&&(e.prefix+=t+"/")}u=n.utils.extend({},e)}function c(){var n={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},t,i;n.display=u.hide?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=u.margin;return n}function l(){(f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,c());o()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function a(){u.link?(f.onmouseover=y,f.onmouseout=o,f.onclick=v):this.mouseEnabled=!1}function v(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation());u.link&&window.open(u.link,u.linktarget);return}function o(){u.link&&(f.style.opacity=u.out);return}function y(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!1,position:"bottom-left"},f,u;if(_css=n.utils.css,s(),u.file)return f}}(jwplayer),function(n){n.html5=function(t){var i=t;return this.setup=function(t){return n.utils.extend(this,new n.html5.api(i,t)),this},this}}(jwplayer),function(n){var t=n.utils,i=t.css,r=t.isIOS();n.html5.view=function(u,f,e){function at(){function n(){return c.skin.getComponentSettings("display")&&c.skin.getComponentSettings("display").backgroundcolor?c.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}h=document.createElement("div");h.id=l.id;h.className=l.className;_videowrapper=document.createElement("div");_videowrapper.id=h.id+"_video_wrapper";l.id=h.id+"_video";i(h,{position:"relative",height:o.height,width:o.width,padding:0,backgroundColor:n(),zIndex:0});i(l,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});i(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});t.wrap(l,h);t.wrap(l,_videowrapper);s=document.createElement("div");s.id=h.id+"_displayarea";h.appendChild(s);_instreamArea=document.createElement("div");_instreamArea.id=h.id+"_instreamarea";i(_instreamArea,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:100,background:"000000",display:"none"});h.appendChild(_instreamArea)}function vt(){for(var n,i=0;i<o.plugins.order.length;i++)n=o.plugins.order[i],t.exists(o.plugins.object[n].getDisplayElement)&&(o.plugins.object[n].height=t.parseDimension(o.plugins.object[n].getDisplayElement().style.height),o.plugins.object[n].width=t.parseDimension(o.plugins.object[n].getDisplayElement().style.width),o.plugins.config[n].currentPosition=o.plugins.config[n].position);et()}function yt(){rt=o.fullscreen}function pt(t){if(!g){switch(t.newstate){case n.api.events.state.PLAYING:o.getMedia()&&o.getMedia().hasChrome()&&(s.style.display="none");break;default:s.style.display="block"}w()}}function et(){var n=o.getMedia()?o.getMedia().getDisplayElement():null,i,r;if(t.exists(n))for(y!=n&&(y&&y.parentNode&&y.parentNode.replaceChild(n,y),y=n),i=0;i<o.plugins.order.length;i++)r=o.plugins.order[i],t.exists(o.plugins.object[r].getDisplayElement)&&(o.plugins.config[r].currentPosition=o.plugins.config[r].position);p(o.width,o.height)}function wt(t){switch(t.keyCode){case 27:c.jwGetFullscreen()&&c.jwSetFullscreen(!1);break;case 32:c.jwGetState()!=n.api.events.state.IDLE&&c.jwGetState()!=n.api.events.state.PAUSED?c.jwPause():c.jwPlay()}}function p(n,u){var e,p,c,l,g,f,y,b;if(h.style.display!="none"){if(e=[].concat(o.plugins.order),e.reverse(),d=e.length+2,rt&&k())try{o.fullscreen&&!o.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(o.fullscreen=!1)}catch(nt){}if(o.fullscreen)k()||r||it(dt,e,!0);else{a=n;v=u;a=typeof n=="string"&&n.indexOf("%")>0?t.getElementWidth(t.parentNode(h))*parseInt(n.replace("%"),"")/100:n;v=typeof u=="string"&&u.indexOf("%")>0?t.getElementHeight(t.parentNode(h))*parseInt(u.replace("%"),"")/100:u;p={top:0,bottom:0,left:0,right:0,width:a,height:v,position:"absolute"};i(s,p);c={};try{l=o.plugins.object.display.getDisplayElement()}catch(nt){}l&&(c.width=t.parseDimension(l.style.width),c.height=t.parseDimension(l.style.height));g=t.extend({},p,c,{zIndex:_instreamArea.style.zIndex,display:_instreamArea.style.display});i(_instreamArea,g);i(h,{height:v,width:a});f=it(bt,e);f.length>0&&(d+=f.length,y=f.indexOf("playlist"),b=f.indexOf("controlbar"),y>=0&&b>=0&&(f[y]=f.splice(b,1,f[y])[0]),it(kt,f,!0));ut=t.getElementWidth(s);ft=t.getElementHeight(s)}w()}}function it(r,u,f){var c,h,e,s,l,a;for(tt=0,c=[],h=0;h<u.length;h++)e=u[h],t.exists(o.plugins.object[e].getDisplayElement)&&(o.plugins.config[e].currentPosition!=n.html5.view.positions.NONE?(s=r(e,d--),s?(l=s.width,a=s.height,f&&(delete s.width,delete s.height),i(o.plugins.object[e].getDisplayElement(),s),o.plugins.object[e].resize(l,a)):c.push(e)):i(o.plugins.object[e].getDisplayElement(),{display:"none"}));return c}function bt(n,i){if(t.exists(o.plugins.object[n].getDisplayElement)&&o.plugins.config[n].position&&ni(o.plugins.config[n].position)){t.exists(o.plugins.object[n].getDisplayElement().parentNode)||h.appendChild(o.plugins.object[n].getDisplayElement());var r=ot(n);return r.zIndex=i,r}return!1}function kt(n,i){return t.exists(o.plugins.object[n].getDisplayElement().parentNode)||s.appendChild(o.plugins.object[n].getDisplayElement()),{position:"absolute",width:t.getElementWidth(s)-t.parseDimension(s.style.right),height:t.getElementHeight(s)-t.parseDimension(s.style.bottom),zIndex:i}}function dt(n,t){return{position:"fixed",width:o.width,height:o.height,zIndex:t}}function ni(t){return[n.html5.view.positions.TOP,n.html5.view.positions.RIGHT,n.html5.view.positions.BOTTOM,n.html5.view.positions.LEFT].toString().indexOf(t.toUpperCase())>-1}function k(){return c.jwGetState()!=n.api.events.state.IDLE&&!b&&o.getMedia()&&o.getMedia().getDisplayElement()&&o.getMedia().getDisplayElement().webkitSupportsFullscreen&&t.useNativeFullscreen()?!0:!1}var c=u,l=f,o=e,h,a,v,s,d,lt,y,b=!1,rt=!1,ut,ft,g,nt,tt,w,ot,st,ht,ct,gt,ti;this.setup=function(){o&&o.getMedia()&&(l=o.getMedia().getDisplayElement());at();vt();c.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,pt);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,et);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,yt);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){w()});var i;t.exists(window.onresize)&&(i=window.onresize);window.onresize=function(n){if(t.exists(i))try{i(n)}catch(u){}if(c.jwGetFullscreen()){if(!k()){var r=t.getBoundingClientRect(document.body);o.width=Math.abs(r.left)+Math.abs(r.right);o.height=window.innerHeight;p(o.width,o.height)}}else p(o.width,o.height)}};w=this.resizeMedia=function(){var u,f,e;if(s.style.position="absolute",u=o.getMedia()?o.getMedia().getDisplayElement():nt,u)if(u&&u.tagName.toLowerCase()=="video"){if(!u.videoWidth||!u.videoHeight){u.style.width=s.style.width;u.style.height=s.style.height;return}u.style.position="absolute";t.fadeTo(u,1,.25);u.parentNode&&(u.parentNode.style.left=s.style.left,u.parentNode.style.top=s.style.top);o.fullscreen&&c.jwGetStretching()==n.utils.stretching.EXACTFIT&&!t.isMobile()?(f=document.createElement("div"),t.stretch(n.utils.stretching.UNIFORM,f,t.getElementWidth(s),t.getElementHeight(s),ut,ft),t.stretch(n.utils.stretching.EXACTFIT,u,t.parseDimension(f.style.width),t.parseDimension(f.style.height),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300),i(u,{left:f.style.left,top:f.style.top})):r||t.stretch(c.jwGetStretching(),u,t.getElementWidth(s),t.getElementHeight(s),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300)}else e=o.plugins.object.display.getDisplayElement(),e?o.getMedia().resize(t.parseDimension(e.style.width),t.parseDimension(e.style.height)):o.getMedia().resize(t.parseDimension(s.style.width),t.parseDimension(s.style.height))};ot=this.getComponentPosition=function(i){var r={position:"absolute",margin:0,padding:0,top:null},u=o.plugins.config[i].currentPosition.toLowerCase();switch(u.toUpperCase()){case n.html5.view.positions.TOP:r.top=t.parseDimension(s.style.top);r.left=t.parseDimension(s.style.left);r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right);r.height=o.plugins.object[i].height;s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].height+"px";s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.RIGHT:r.top=t.parseDimension(s.style.top);r.right=t.parseDimension(s.style.right);r.width=o.plugins.object[i].width;r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom);s.style.width=t.getElementWidth(s)-r.width+"px";break;case n.html5.view.positions.BOTTOM:r.left=t.parseDimension(s.style.left);r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right);r.height=o.plugins.object[i].height;r.bottom=t.parseDimension(s.style.bottom+tt);tt+=r.height;s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.LEFT:r.top=t.parseDimension(s.style.top);r.left=t.parseDimension(s.style.left);r.width=o.plugins.object[i].width;r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom);s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].width+"px";s.style.width=t.getElementWidth(s)-r.width+"px"}return r};this.resize=p;gt=this.fullscreen=function(n){var u,f,e,c;if(!r){try{u=o.getMedia().getDisplayElement()}catch(l){}if(n&&(ht=o.width,ct=o.height),f={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},e={position:"relative",height:ht,width:ct,zIndex:0},k()&&u&&u.webkitSupportsFullscreen){if(n&&!u.webkitDisplayingFullscreen)try{i(u,f);t.transform(u);st=s.style.display;s.style.display="none";u.webkitEnterFullscreen()}catch(y){}else if(!n){if(i(u,e),w(),u.webkitDisplayingFullscreen)try{u.webkitExitFullscreen()}catch(y){}s.style.display=st}b=!1}else n?(document.onkeydown=wt,clearInterval(lt),c=t.getBoundingClientRect(document.body),o.width=Math.abs(c.left)+Math.abs(c.right),o.height=window.innerHeight,i(h,f),f.zIndex=1,o.getMedia()&&o.getMedia().getDisplayElement()&&i(o.getMedia().getDisplayElement(),f),f.zIndex=2,i(s,f),b=!0):(document.onkeydown="",o.width=a,o.height=v,i(h,e),b=!1),p(o.width,o.height)}};this.setupInstream=function(n,i){t.css(_instreamArea,{display:"block",position:"absolute"});s.style.display="none";_instreamArea.appendChild(n);nt=i;g=!0};ti=this.destroyInstream=function(){_instreamArea.style.display="none";_instreamArea.innerHTML="";s.style.display="block";nt=null;g=!1;p(o.width,o.height)}};n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,forcenextprev:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.controlbar=function(i,r){function c(){return d||(d=u.skin.getSkinElement("controlbar","background"),d||(d={width:0,height:0,src:null})),d}function ci(){var t,n,i;pt=0;wt=0;yt=0;p||(t={height:c().height,backgroundColor:e.backgroundcolor},o=document.createElement("div"),o.id=u.id+"_jwplayer_controlbar",_css(o,t));n=u.skin.getSkinElement("controlbar","capLeft");i=u.skin.getSkinElement("controlbar","capRight");n&&s("capLeft","left",!1,o);w("background",o,{position:"absolute",height:c().height,left:n?n.width:0,zIndex:0},"img");c().src&&(f.background.src=c().src);w("elements",o,{position:"relative",height:c().height,zIndex:1});i&&s("capRight","right",!1,o)}function ni(){var t=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],i,n;for(i in t)n=t[i],typeof f[n]!="undefined"&&(l[n]=_utils.getBoundingClientRect(f[n]))}function ht(t){if(!v)if(clearTimeout(ut),e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())switch(u.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:o&&o.style.opacity<1&&(!e.idlehide||_utils.exists(t))&&(st=!1,setTimeout(function(){st||ct()},100));e.idlehide&&(ut=setTimeout(function(){ti()},2e3));break;default:st=!0;t&&ct();ut=setTimeout(function(){ti()},2e3)}else ct()}function ti(){v||(lt(),o.style.opacity==1&&(_utils.cancelAnimation(o),_utils.fadeTo(o,0,.1,1,0)))}function ct(){v||(tt(),o.style.opacity==0&&(_utils.cancelAnimation(o),_utils.fadeTo(o,1,.1,0,0)))}function ii(n){return function(){et&&ft!=n&&(ft=n,gt.sendEvent(n,{component:"controlbar",boundingRect:li()}))}}function li(){return e.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?_utils.getDimensions(o):{x:0,y:0,width:0,height:0}}function w(n,t,i,r){var u;return p?u=document.getElementById(o.id+"_"+n):(r||(r="div"),u=document.createElement(r),f[n]=u,u.id=o.id+"_"+n,t.appendChild(u)),_utils.exists(i)&&_css(u,i),u}function ai(){if(u.jwGetHeight()<=40){e.layout=_utils.clone(e.layout);for(var n=0;n<e.layout.left.elements.length;n++)e.layout.left.elements[n].name=="fullscreen"&&e.layout.left.elements.splice(n,1);for(n=0;n<e.layout.right.elements.length;n++)e.layout.right.elements[n].name=="fullscreen"&&e.layout.right.elements.splice(n,1);oi()}at(e.layout.left);at(e.layout.center);at(e.layout.right)}function at(n,t){var u=n.position=="right"?"right":"left",r=_utils.extend([],n.elements),n,i;for(_utils.exists(t)&&r.reverse(),n=w(n.position+"Group",f.elements,{float:"left",styleFloat:"left",cssFloat:"left",height:"100%"}),i=0;i<r.length;i++)yi(r[i],u,n)}function vi(){return yt++}function yi(n,t,i){var v,o,h,y,l,r,e;if(i||(i=f.elements),n.type=="divider"){s("divider"+vi(),t,!0,i,undefined,n.width,n.element);return}switch(n.name){case"play":s("playButton",t,!1,i);s("pauseButton",t,!0,i);a("playButton","jwPlay");a("pauseButton","jwPause");break;case"prev":s("prevButton",t,!0,i);a("prevButton","jwPlaylistPrev");break;case"stop":s("stopButton",t,!0,i);a("stopButton","jwStop");break;case"next":s("nextButton",t,!0,i);a("nextButton","jwPlaylistNext");break;case"elapsed":s("elapsedText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","elapsedBackground"));break;case"time":o=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapLeft"))?u.skin.getSkinElement("controlbar","timeSliderCapLeft").width:0;h=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapRight"))?u.skin.getSkinElement("controlbar","timeSliderCapRight").width:0;v=t=="left"?o:h;l={height:c().height,position:"relative",float:"left",styleFloat:"left",cssFloat:"left"};r=w("timeSlider",i,l);s("timeSliderCapLeft",t,!0,r,"relative");s("timeSliderRail",t,!1,r,"relative");s("timeSliderBuffer",t,!1,r,"absolute");s("timeSliderProgress",t,!1,r,"absolute");s("timeSliderThumb",t,!1,r,"absolute");s("timeSliderCapRight",t,!0,r,"relative");ui("time");break;case"fullscreen":s("fullscreenButton",t,!1,i);s("normalscreenButton",t,!0,i);a("fullscreenButton","jwSetFullscreen",!0);a("normalscreenButton","jwSetFullscreen",!1);break;case"volume":o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;h=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapRight"))?u.skin.getSkinElement("controlbar","volumeSliderCapRight").width:0;v=t=="left"?o:h;y=u.skin.getSkinElement("controlbar","volumeSliderRail").width+o+h;l={height:c().height,position:"relative",width:y,float:"left",styleFloat:"left",cssFloat:"left"};e=w("volumeSlider",i,l);s("volumeSliderCapLeft",t,!1,e,"relative");s("volumeSliderRail",t,!1,e,"relative");s("volumeSliderProgress",t,!1,e,"absolute");s("volumeSliderThumb",t,!1,e,"absolute");s("volumeSliderCapRight",t,!1,e,"relative");ui("volume");break;case"mute":s("muteButton",t,!1,i);s("unmuteButton",t,!0,i);a("muteButton","jwSetMute",!0);a("unmuteButton","jwSetMute",!1);break;case"duration":s("durationText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","durationBackground"))}}function s(n,t,i,r,o,s,h){var l,a,y,v;(_utils.exists(u.skin.getSkinElement("controlbar",n))||n.indexOf("Text")>0||n.indexOf("divider")===0)&&(l={height:"100%",position:o?o:"relative",display:"block",float:"left",styleFloat:"left",cssFloat:"left"},(n.indexOf("next")===0||n.indexOf("prev")===0)&&(u.jwGetPlaylist().length<2||e.hideplaylistcontrols.toString()=="true")&&e.forcenextprev.toString()!="true"&&(i=!1,l.display="none"),n.indexOf("Text")>0?(n.innerhtml="00:00",l.font=e.fontsize+"px/"+(c().height+1)+"px "+e.font,l.color=e.fontcolor,l.textAlign="center",l.fontWeight=e.fontweight,l.fontStyle=e.fontstyle,l.cursor="default",h&&(l.background="url("+h.src+") no-repeat center",l.backgroundSize="100% "+c().height+"px"),l.padding="0 5px"):n.indexOf("divider")===0?s?isNaN(parseInt(s))||(a=parseInt(s)):h?(y=u.skin.getSkinElement("controlbar",h),y&&(l.background="url("+y.src+") repeat-x center left",a=y.width)):(l.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",a=u.skin.getSkinElement("controlbar","divider").width):(l.background="url("+u.skin.getSkinElement("controlbar",n).src+") repeat-x center left",a=u.skin.getSkinElement("controlbar",n).width),t=="left"?i&&(pt+=a):t=="right"&&i&&(wt+=a),_utils.typeOf(r)=="undefined"&&(r=f.elements),l.width=a,p?_css(f[n],l):(v=w(n,r,l),_utils.exists(u.skin.getSkinElement("controlbar",n+"Over"))&&(v.onmouseover=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n+"Over").src,")"].join("")},v.onmouseout=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n).src,")"].join("")}),n.indexOf("divider")==0&&v.setAttribute("class","divider"),v.innerHTML="&nbsp;"))}function pi(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,wi);u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,bi);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,g);u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ei);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,b);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,fi);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,si);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,di)}function wi(){e.hideplaylistcontrols||(u.jwGetPlaylist().length>1||e.forcenextprev.toString()=="true"?(_show(f.nextButton),_show(f.prevButton)):(_hide(f.nextButton),_hide(f.prevButton)),vt(),ri())}function bi(n){h=u.jwGetPlaylist()[n.index].duration;rt=-1;b({id:u.id,duration:h,position:0});g({id:u.id,bufferProgress:0})}function ri(){b({id:u.id,duration:u.jwGetDuration(),position:0});g({id:u.id,bufferProgress:0});fi({id:u.id,mute:u.jwGetMute()});ei({id:u.id,newstate:n.api.events.state.IDLE});si({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(!p&&_utils.exists(u.skin.getSkinElement("controlbar",n))){var r=f[n];_utils.exists(r)&&(_css(r,{cursor:"pointer"}),r.onmouseup=t=="fullscreen"?function(n){n.stopPropagation();u.jwSetFullscreen(!u.jwGetFullscreen())}:function(n){n.stopPropagation();_utils.exists(i)?u[t](i):u[t]()})}}function ui(n){if(!p){var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"});_css(t,{cursor:"pointer"});t.onmousedown=function(){y=n};t.onmouseup=function(n){n.stopPropagation();ki(n.pageX)};t.onmousemove=function(t){if(y=="time"){it=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f[y+"SliderThumb"],{left:i})}}}}function ki(t){var f,i,r;it=!1;y=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*h,i<0?i=0:i>h&&(i=h-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):y=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<10?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r));y="none"}function g(n){if(_utils.exists(n.bufferPercent)&&(nt=n.bufferPercent),l.timeSliderRail){var t=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),i=l.timeSliderRail.width,r=isNaN(Math.round(i*nt/100))?0:Math.round(i*nt/100);_css(f.timeSliderBuffer,{width:r,left:t?t.width:0})}}function fi(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function ei(t){t.newstate==n.api.events.state.BUFFERING||t.newstate==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton));ht();t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),b({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function di(n){g({bufferPercent:0});b(_utils.extend(n,{position:0,duration:h}))}function b(n){var t,o,i,e;if(_utils.exists(n.position)&&(k=n.position),t=!1,_utils.exists(n.duration)&&n.duration!=h&&(h=n.duration,t=!0),o=k/h,i=l.timeSliderRail,i){var s=isNaN(Math.round(i.width*o))?0:Math.round(i.width*o),r=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),c=s+(r?r.width:0);f.timeSliderProgress&&(_css(f.timeSliderProgress,{width:s,left:r?r.width:0}),it||f.timeSliderThumb&&(f.timeSliderThumb.style.left=c+"px"))}f.durationText&&(f.durationText.innerHTML=_utils.timeFormat(h));f.elapsedText&&(e=_utils.timeFormat(k),f.elapsedText.innerHTML=e,rt!=e.length&&(t=!0,rt=e.length));t&&vt()}function oi(){for(var n,t,e=f.elements.childNodes,r,i,u=0;u<e.length;u++){n=e[u].childNodes;for(t in n)isNaN(parseInt(t,10))||(n[t].id.indexOf(o.id+"_divider")===0&&i&&i.id.indexOf(o.id+"_divider")===0&&n[t].style.backgroundImage==i.style.backgroundImage?n[t].style.display="none":n[t].id.indexOf(o.id+"_divider")===0&&r&&r.style.display!="none"&&(n[t].style.display="block"),n[t].style.display!="none"&&(i=n[t]),r=n[t])}}function gi(){u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton));u.jwGetState()==n.api.events.state.BUFFERING||u.jwGetState()==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton));u.jwGetMute()==!0?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function vt(){var t,i,r,s;oi();gi();t={width:bt};i={float:"left",styleFloat:"left",cssFloat:"left"};(e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())&&(t.left=e.margin,t.width-=2*e.margin,t.top=kt-c().height-e.margin,t.height=c().height);r=u.skin.getSkinElement("controlbar","capLeft");s=u.skin.getSkinElement("controlbar","capRight");i.width=t.width-(r?r.width:0)-(s?s.width:0);var y=_utils.getBoundingClientRect(f.leftGroup).width,p=_utils.getBoundingClientRect(f.rightGroup).width,l=i.width-y-p-1,h=l,a=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),v=u.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(a)&&(h-=a.width),_utils.exists(v)&&(h-=v.width),f.timeSlider.style.width=l+"px",f.timeSliderRail.style.width=h+"px",_css(o,t),_css(f.elements,i),_css(f.background,i),ni(),t}function si(n){var t;if(_utils.exists(f.volumeSliderRail)){var r=isNaN(n.volume/100)?1:n.volume/100,i=_utils.parseDimension(f.volumeSliderRail.style.width),e=isNaN(Math.round(i*r))?0:Math.round(i*r),s=_utils.parseDimension(f.volumeSliderRail.style.right),o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(f.volumeSliderProgress,{width:e,left:o});f.volumeSliderThumb&&(t=e-Math.round(_utils.parseDimension(f.volumeSliderThumb.style.width)/2),t=Math.min(Math.max(t,0),i-_utils.parseDimension(f.volumeSliderThumb.style.width)),_css(f.volumeSliderThumb,{left:t}));_utils.exists(f.volumeSliderCapLeft)&&_css(f.volumeSliderCapLeft,{left:0})}}function hi(){try{var n=u.id.indexOf("_instream")>0?u.id.replace("_instream",""):u.id;dt=document.getElementById(n);dt.addEventListener("mousemove",ht)}catch(t){_utils.log("Could not add mouse listeners to controlbar: "+t)}}function nr(){ci();ai();ni();p=!0;pi();e.idlehide=e.idlehide.toString().toLowerCase()=="true";e.position==n.html5.view.positions.OVER&&e.idlehide?(o.style.opacity=0,et=!0):(o.style.opacity=1,setTimeout(function(){et=!0;tt()},1));hi();ri()}var u,e,st,tt,lt;if(window.controlbar=this,u=i,e=_utils.extend({},t,u.skin.getComponentSettings("controlbar"),r),e.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[e.position]!="undefined"){_utils.mapLength(u.skin.getComponentLayout("controlbar"))>0&&(e.layout=u.skin.getComponentLayout("controlbar"));var o,yt,pt,wt,y="none",it,k,h,nt,bt,kt,f={},p=!1,l={},rt=-1,d,v=!1,ut,ft,et=!1,ot=!1,dt,gt=new n.html5.eventdispatcher;return _utils.extend(this,gt),this.getDisplayElement=function(){return o},this.resize=function(n,t){hi();_utils.cancelAnimation(o);bt=n;kt=t;ot!=u.jwGetFullscreen()&&(ot=u.jwGetFullscreen(),ot||ht(),ft=undefined);var i=vt();return b({id:u.id,duration:h,position:k}),g({id:u.id,bufferPercent:nt}),i},this.show=function(){v&&(v=!1,_show(o),tt())},this.hide=function(){v||(v=!0,_hide(o),lt())},tt=ii(n.api.events.JWPLAYER_COMPONENT_SHOW),lt=ii(n.api.events.JWPLAYER_COMPONENT_HIDE),nr(),this}}}(jwplayer),function(n){var t=n.utils;n.html5.controller=function(r,u,f,e){function ct(n){b?s.sendEvent(n.type,n):g.push(n)}function lt(t){var i,r;if(!b){for(b=!0,s.sendEvent(n.api.events.JWPLAYER_READY,t),n.utils.exists(window.playerReady)&&playerReady(t),n.utils.exists(window[f.config.playerReady])&&window[f.config.playerReady](t);g.length>0;)i=g.shift(),s.sendEvent(i.type,i);for(f.config.autostart&&!n.utils.isIOS()&&ft();k.length>0;)r=k.shift(),ot(r.method,r.arguments)}}function a(){try{if(v=a,!l&&(l=!0,s.sendEvent(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY),l=!1,w)){w=!1;v=null;return}return h(o.item),o.playlist[o.item].levels[0].file.length>0&&(d||o.state==n.api.events.state.IDLE?(o.getMedia().load(o.playlist[o.item]),d=!1):o.state==n.api.events.state.PAUSED&&o.getMedia().play()),!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t);v=null}return!1}function at(){try{if(o.playlist[o.item].levels[0].file.length>0)switch(o.state){case n.api.events.state.PLAYING:case n.api.events.state.BUFFERING:o.getMedia()&&o.getMedia().pause();break;default:l&&(w=!0)}return!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function vt(t){try{if(o.playlist[o.item].levels[0].file.length>0){typeof t!="number"&&(t=parseFloat(t));switch(o.state){case n.api.events.state.IDLE:p<0&&(p=o.playlist[o.item].start,o.playlist[o.item].start=t);l||a();break;case n.api.events.state.PLAYING:case n.api.events.state.PAUSED:case n.api.events.state.BUFFERING:o.seek(t)}}return!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function y(i){v=null;t.exists(i)||(i=!0);try{return(o.state!=n.api.events.state.IDLE||i)&&o.getMedia()&&o.getMedia().stop(i),l&&(w=!0),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function nt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item+1==o.playlist.length?h(0):h(o.item+1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE;s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function yt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item===0?h(o.playlist.length-1):h(o.item-1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE;s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function it(){var n=null;if(o.playlist.length>1)while(!t.exists(n))n=Math.floor(Math.random()*o.playlist.length),n==o.item&&(n=null);else n=0;return n}function rt(t){if(!o.playlist||!o.playlist[t])return!1;try{if(o.playlist[t].levels[0].file.length>0){var i=o.state;i!==n.api.events.state.IDLE&&(o.playlist[o.item]&&o.playlist[o.item].provider==o.playlist[t].provider?y(!1):y());h(t);a()}return!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function h(t){o.playlist[t]&&(o.setActiveMediaProvider(o.playlist[t]),o.item!=t&&(o.item=t,d=!0,s.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:t})))}function pt(t){try{h(o.item);var i=o.getMedia();switch(typeof t){case"number":i.volume(t);break;case"string":i.volume(parseInt(t,10))}return o.setVolume(t),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function wt(t){try{h(o.item);var i=o.getMedia();return typeof t=="undefined"?(i.mute(!o.mute),o.setMute(!o.mute)):t.toString().toLowerCase()=="true"?(i.mute(!0),o.setMute(!0)):(i.mute(!1),o.setMute(!1)),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function bt(t,i){try{return o.width=t,o.height=i,tt.resize(t,i),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height}),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ut(t,i){try{return typeof t=="undefined"&&(t=!o.fullscreen),typeof i=="undefined"&&(i=!0),t!=o.fullscreen&&(o.fullscreen=t.toString().toLowerCase()=="true",tt.fullscreen(o.fullscreen),i&&s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:o.fullscreen}),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height})),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function kt(i){try{return y(),l&&(w=!1),o.loadPlaylist(i),o.playlist[o.item].provider?(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||l||a(),!0):!1}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ft(){t.isIOS()||(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||a())}function dt(n){ut(n.fullscreen,!1)}function gt(){try{return o.getMedia().detachMedia()}catch(n){return null}}function ni(){try{var n=o.getMedia().attachMedia();typeof v=="function"&&v()}catch(t){return null}}function et(){if(o.state==n.api.events.state.IDLE){v=et;switch(o.config.repeat.toUpperCase()){case n.html5.controller.repeatoptions.SINGLE:a();break;case n.html5.controller.repeatoptions.ALWAYS:o.item!=o.playlist.length-1||o.config.shuffle?nt():rt(0);break;case n.html5.controller.repeatoptions.LIST:o.item!=o.playlist.length-1||o.config.shuffle?nt():(y(),h(0));break;default:y()}}}function c(n){return function(){b?ot(n,arguments):k.push({method:n,arguments:arguments})}}function ot(n,t){var r=[];for(i=0;i<t.length;i++)r.push(t[i]);n.apply(this,r)}var ti=r,o=f,tt=e,st=u,d=!0,p=-1,l=!1,w=!1,v,g=[],b=!1,ht=t.exists(o.config.debug)&&o.config.debug.toString().toLowerCase()=="console",s=new n.html5.eventdispatcher(st.id,ht),k;t.extend(this,s);o.addGlobalListener(ct);o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){o.getMedia().play()});o.addEventListener(n.api.events.JWPLAYER_MEDIA_TIME,function(n){n.position>=o.playlist[o.item].start&&p>=0&&(o.playlist[o.item].start=p,p=-1)});o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(et,25)});o.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ft);o.addEventListener(n.api.events.JWPLAYER_FULLSCREEN,dt);n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};k=[];this.play=c(a);this.pause=c(at);this.seek=c(vt);this.stop=c(y);this.next=c(nt);this.prev=c(yt);this.item=c(rt);this.setVolume=c(pt);this.setMute=c(wt);this.resize=c(bt);this.setFullscreen=c(ut);this.load=c(kt);this.playerReady=lt;this.detachMedia=gt;this.attachMedia=ni;this.beforePlay=function(){return l};this.destroy=function(){o.getMedia()&&o.getMedia().destroy()}}}(jwplayer),function(n){n.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/><\/settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/><\/group><group position="center"><slider name="time"/><\/group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/><\/group><\/layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/><\/elements><\/component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/><\/elements><\/component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/><\/settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><\/elements><\/component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/><\/settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><\/elements><\/component><\/components><\/skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(n){_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.display=function(t,i){function dt(){u.display=h("div","display");u.display_text=h("div","display_text");u.display.appendChild(u.display_text);u.display_image=h("img","display_image");u.display_image.onerror=function(){_hide(u.display_image)};u.display_image.onload=gt;u.display_icon=h("div","display_icon");u.display_iconBackground=h("div","display_iconBackground");u.display.appendChild(u.display_image);u.display_iconBackground.appendChild(u.display_icon);u.display.appendChild(u.display_iconBackground);ni();setTimeout(function(){ct=!0;l.icons.toString()=="true"&&g()},1)}function gt(){nt=u.display_image.naturalWidth;tt=u.display_image.naturalHeight;yt();(r.jwGetState()==n.api.events.state.IDLE||r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound")&&(_css(u.display_image,{display:"block",opacity:0}),_utils.fadeTo(u.display_image,1,.1));ft=!1}function yt(){if(r.jwGetFullscreen()&&r.jwGetStretching()==n.utils.stretching.EXACTFIT){var t=document.createElement("div");_utils.stretch(n.utils.stretching.UNIFORM,t,e,f,lt,at);_utils.stretch(n.utils.stretching.EXACTFIT,u.display_image,_utils.parseDimension(t.style.width),_utils.parseDimension(t.style.height),nt,tt);_css(u.display_image,{left:t.style.left,top:t.style.top})}else _utils.stretch(r.jwGetStretching(),u.display_image,e,f,nt,tt)}function h(n,t){var i=document.createElement(n);return i.id=r.id+"_jwplayer_"+t,_css(i,w[t].style),i}function ni(){for(var n in u)_utils.exists(w[n].click)&&(u[n].onclick=w[n].click)}function ti(t){if(typeof t.preventDefault!="undefined"?t.preventDefault():t.returnValue=!1,typeof p=="function"){p(t);return}r.jwGetState()!=n.api.events.state.PLAYING?r.jwPlay():r.jwPause()}function b(n){if(v){c();return}u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("");_css(u.display_icon,{width:r.skin.getSkinElement("display",n).width,height:r.skin.getSkinElement("display",n).height,top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display",n).height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display",n).width)/2});ii();_utils.exists(r.skin.getSkinElement("display",n+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null)}function c(){l.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),wt())}function ii(){s||l.icons.toString()!="true"||(_show(u.display_icon),_show(u.display_iconBackground),g())}function ri(n){v=!0;c();u.display_text.innerHTML=n.message;_show(u.display_text);u.display_text.style.top=(f-_utils.getBoundingClientRect(u.display_text).height)/2+"px"}function k(){et=!1;u.display_image.style.display="none"}function ui(){rt=""}function d(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&v&&(v=!1,_hide(u.display_text));var i=r.jwGetState();i!=rt&&(rt=i,y>=0&&clearTimeout(y),o||r.jwGetState()==n.api.events.state.PLAYING||r.jwGetState()==n.api.events.state.PAUSED?ot(r.jwGetState()):y=setTimeout(fi(r.jwGetState()),500))}function fi(n){return function(){ot(n)}}function ot(t){_utils.exists(a)&&(clearInterval(a),a=null,_utils.animations.rotate(u.display_icon,0));switch(t){case n.api.events.state.BUFFERING:_utils.isIPod()?(k(),c()):(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"&&st(),it=0,a=setInterval(function(){it+=bt;_utils.animations.rotate(u.display_icon,it%360)},kt),b("bufferIcon"),o=!0);break;case n.api.events.state.PAUSED:_utils.isIPod()||(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider!="sound"&&_css(u.display_image,{background:"transparent no-repeat center center"}),b("playIcon"),o=!0);break;case n.api.events.state.IDLE:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image?st():k();b("playIcon");o=!0;break;default:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"?_utils.isIPod()?(k(),o=!1):st():(k(),o=!1);r.jwGetMute()&&l.showmute?b("muteIcon"):c()}y=-1}function st(){if(r.jwGetPlaylist()[r.jwGetPlaylistIndex()]){var n=r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image;n&&(n!=ht?(ht=n,ft=!0,u.display_image.src=_utils.getAbsolutePath(n)):ft||et||(et=!0,u.display_image.style.opacity=0,u.display_image.style.display="block",_utils.fadeTo(u.display_image,1,.1)))}}function pt(n){return function(){ct&&(s||ut==n||(ut=n,vt.sendEvent(n,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)})))}}var l=_utils.extend({},{icons:!0,showmute:!1},i),r=t,u={},e,f,nt,tt,it,a,v,bt=_utils.exists(r.skin.getComponentSettings("display").bufferrotation)?parseInt(r.skin.getComponentSettings("display").bufferrotation,10):15,kt=_utils.exists(r.skin.getComponentSettings("display").bufferinterval)?parseInt(r.skin.getComponentSettings("display").bufferinterval,10):100,y=-1,rt=n.api.events.state.IDLE,o=!0,ut,ft=!1,et=!0,ht="",s=!1,ct=!1,p,lt,at,vt=new n.html5.eventdispatcher,w,g,wt;return _utils.extend(this,vt),w={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:ti},display_icon:{style:{cursor:"pointer",position:"absolute",top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display","playIcon").height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(f-r.skin.getSkinElement("display","background").height)/2,left:(e-r.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",r.skin.getSkinElement("display","background").src,")"].join(""),width:r.skin.getSkinElement("display","background").width,height:r.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:e,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}},r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d),r.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,d),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ui),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,d),r.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ri),dt(),this.getDisplayElement=function(){return u.display},this.resize=function(n,t){r.jwGetFullscreen()&&_utils.isMobile()||(_css(u.display,{width:n,height:t}),_css(u.display_text,{width:n-10,top:(t-_utils.getBoundingClientRect(u.display_text).height)/2}),_css(u.display_iconBackground,{top:(t-r.skin.getSkinElement("display","background").height)/2,left:(n-r.skin.getSkinElement("display","background").width)/2}),(e!=n||f!=t)&&(e=n,f=t,ut=undefined,g()),r.jwGetFullscreen()||(lt=n,at=t),yt(),d({}))},this.show=function(){s&&(s=!1,ot(r.jwGetState()))},this.hide=function(){s||(c(),s=!0)},g=pt(n.api.events.JWPLAYER_COMPONENT_SHOW),wt=pt(n.api.events.JWPLAYER_COMPONENT_HIDE),this.setAlternateClickHandler=function(n){p=n},this.revertAlternateClickHandler=function(){p=undefined},this}}(jwplayer),function(n){var t=n.utils,i=t.css;n.html5.dock=function(r,u){function st(){return{align:n.html5.view.positions.RIGHT}}function h(n){return"url("+n+") no-repeat center center"}function rt(i,u){var k,b,y,p;if(ot(),s.length>0){var h=10,w=h,rt=-1,tt=r.skin.getSkinElement("dock","button").height,it=r.skin.getSkinElement("dock","button").width,ut=i-it-h,e,o;for(d.align==n.html5.view.positions.LEFT&&(rt=1,ut=h),k=0;k<s.length;k++)b=Math.floor(w/u),w+tt+h>(b+1)*u&&(w=(b+1)*u+h,b=Math.floor(w/u)),y=f[s[k]].div,y.style.top=w%u+"px",y.style.left=ut+(r.skin.getSkinElement("dock","button").width+h)*b*rt+"px",p={x:t.parseDimension(y.style.left),y:t.parseDimension(y.style.top),width:it,height:tt},(!e||p.x<=e.x&&p.y<=e.y)&&(e=p),(!o||p.x>=o.x&&p.y>=o.y)&&(o=p),y.style.width=it+"px",y.style.height=tt+"px",w+=r.skin.getSkinElement("dock","button").height+h;nt={x:e.x,y:e.y,width:o.x-e.x+o.width,height:e.y-o.y+o.height}}(g!=r.jwGetFullscreen()||l!=i||a!=u)&&(l=i,a=u,g=r.jwGetFullscreen(),v=undefined,setTimeout(c,1))}function ut(n){return function(){!o&&v!=n&&s.length>0&&(v=n,it.sendEvent(n,{component:"dock",boundingRect:nt}))}}function ht(i){t.isMobile()?i.newstate==n.api.events.state.IDLE?w():b():ft()}function ft(i){if(!o)if(clearTimeout(y),u.position==n.html5.view.positions.OVER||r.jwGetFullscreen())switch(r.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:e&&e.style.opacity<1&&(!u.idlehide||t.exists(i))&&k();u.idlehide&&(y=setTimeout(function(){et()},2e3));break;default:t.exists(i)&&k();y=setTimeout(function(){et()},2e3)}else k()}function et(){o||(p(),e.style.opacity==1&&(t.cancelAnimation(e),t.fadeTo(e,0,.1,1,0)))}function k(){o||(c(),e.style.opacity==0&&(t.cancelAnimation(e),t.fadeTo(e,1,.1,0,0)))}function ot(){try{tt=document.getElementById(r.id);tt.addEventListener("mousemove",ft)}catch(n){t.log("Could not add mouse listeners to dock: "+n)}}var d=t.extend({},st(),u),e,c,p,w,b;if(d.align!="FALSE"){var f={},s=[],l,a,o=!1,g=!1,nt={x:0,y:0,width:0,height:0},v,tt,y,it=new n.html5.eventdispatcher;return t.extend(this,it),e=document.createElement("div"),e.id=r.id+"_jwplayer_dock",e.style.opacity=1,ot(),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ht),this.getDisplayElement=function(){return e},this.setButton=function(i,u,o,c){!u&&f[i]?(t.arrays.remove(s,i),e.removeChild(f[i].div),delete f[i]):u&&(f[i]||(f[i]={}),f[i].handler=u,f[i].outGraphic=o,f[i].overGraphic=c,f[i].div||(s.push(i),f[i].div=document.createElement("div"),f[i].div.style.position="absolute",e.appendChild(f[i].div),f[i].div.appendChild(document.createElement("div")),f[i].div.childNodes[0].style.position="relative",f[i].div.childNodes[0].style.width="100%",f[i].div.childNodes[0].style.height="100%",f[i].div.childNodes[0].style.zIndex=10,f[i].div.childNodes[0].style.cursor="pointer",f[i].div.appendChild(document.createElement("img")),f[i].div.childNodes[1].style.position="absolute",f[i].div.childNodes[1].style.left=0,f[i].div.childNodes[1].style.top=0,r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src),f[i].div.childNodes[1].style.zIndex=9,f[i].div.childNodes[1].style.cursor="pointer",f[i].div.onmouseover=function(){f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic));r.skin.getSkinElement("dock","buttonOver")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","buttonOver").src)},f[i].div.onmouseout=function(){f[i].outGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].outGraphic));r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)},r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)),f[i].outGraphic?f[i].div.childNodes[0].style.background=h(f[i].outGraphic):f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic)),u&&(f[i].div.onclick=function(t){t.preventDefault();n(r.id).callback(i);f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic));r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)}));rt(l,a)},c=ut(n.api.events.JWPLAYER_COMPONENT_SHOW),p=ut(n.api.events.JWPLAYER_COMPONENT_HIDE),this.resize=rt,w=function(){i(e,{display:"block"});o&&(o=!1,c())},b=function(){i(e,{display:"none"});o||(p(),o=!0)},this.hide=b,this.show=w,this}}}(jwplayer),function(n){n.html5.eventdispatcher=function(t,i){var r=new n.events.eventdispatcher(i);n.utils.extend(this,r);this.sendEvent=function(i,u){n.utils.exists(u)||(u={});n.utils.extend(u,{id:t,version:n.version,type:i});r.sendEvent(i,u)}}}(jwplayer),function(n){var t=n.utils;n.html5.instream=function(i,r,u,f){function ot(){_fakemodel=new n.html5.model(this,e.getMedia()?e.getMedia().getDisplayElement():e.container,e);p=new n.html5.eventdispatcher;h.jwAddEventListener(n.api.events.JWPLAYER_RESIZE,tt);h.jwAddEventListener(n.api.events.JWPLAYER_FULLSCREEN,tt)}function st(){_fakemodel.setMute(e.mute);_fakemodel.setVolume(e.volume)}function ht(){o||(o=new n.html5.mediavideo(_fakemodel,e.getMedia()?e.getMedia().getDisplayElement():e.container),o.addGlobalListener(ct),o.addEventListener(n.api.events.JWPLAYER_MEDIA_META,vt),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,at),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,lt));o.attachMedia()}function ct(n){s&&nt(n.type,n)}function lt(){s&&o.play()}function at(){s&&setTimeout(function(){k.jwInstreamDestroy(!0)},10)}function vt(n){n.metadata.width&&n.metadata.height&&w.resizeMedia()}function nt(n,t,i){(s||i)&&p.sendEvent(n,t)}function tt(){var n=e.plugins.object.display.getDisplayElement().style,i;l&&(i=e.plugins.object.controlbar.getDisplayElement().style,l.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(l.getDisplayElement(),t.extend({},i,{zIndex:1001,opacity:1})));y&&(y.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(y.getDisplayElement(),t.extend({},n,{zIndex:1e3})));w&&w.resizeMedia()}var ut={controlbarseekable:"always",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},d,a,h=i,e=r,w=u,it=f,c,ft,et,rt,v,g,o,l,y,s=!1,p,b,k=this;return this.load=function(i,r){if(st(),s=!0,a=t.extend(ut,r),d=n.html5.playlistitem(i),ht(),b=document.createElement("div"),b.id=k.id+"_instream_container",it.detachMedia(),c=o.getDisplayElement(),g=e.playlist[e.item],v=h.jwGetState(),(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&c.pause(),ft=c.src?c.src:c.currentSrc,et=c.innerHTML,rt=c.currentTime,y=new n.html5.display(k,t.extend({},e.plugins.config.display)),y.setAlternateClickHandler(function(t){_fakemodel.state==n.api.events.state.PAUSED?k.jwInstreamPlay():nt(n.api.events.JWPLAYER_INSTREAM_CLICK,t)}),b.appendChild(y.getDisplayElement()),!t.isMobile())if(l=new n.html5.controlbar(k,t.extend({},e.plugins.config.controlbar,{})),e.plugins.config.controlbar.position==n.html5.view.positions.OVER)b.appendChild(l.getDisplayElement());else{var u=e.plugins.object.controlbar.getDisplayElement().parentNode;u.appendChild(l.getDisplayElement())}w.setupInstream(b,c);tt();o.load(d)},this.jwInstreamDestroy=function(t){if(s){if(s=!1,v!=n.api.events.state.IDLE?(o.load(g,!1),o.stop(!1)):o.stop(!0),o.detachMedia(),w.destroyInstream(),l)try{l.getDisplayElement().parentNode.removeChild(l.getDisplayElement())}catch(i){}nt(n.api.events.JWPLAYER_INSTREAM_DESTROYED,{reason:t?"complete":"destroyed"},!0);it.attachMedia();(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&(c.play(),e.playlist[e.item]==g&&e.getMedia().seek(rt));return}},this.jwInstreamAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwInstreamRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.jwInstreamPlay=function(){s&&o.play(!0)},this.jwInstreamPause=function(){s&&o.pause(!0)},this.jwInstreamSeek=function(n){s&&o.seek(n)},this.jwInstreamGetState=function(){return s?_fakemodel.state:undefined},this.jwInstreamGetPosition=function(){return s?_fakemodel.position:undefined},this.jwInstreamGetDuration=function(){return s?_fakemodel.duration:undefined},this.playlistClickable=function(){return!s||a.playlistclickable.toString().toLowerCase()=="true"},this.jwPlay=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPlay()},this.jwPause=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPause()},this.jwStop=function(){a.controlbarstoppable.toString().toLowerCase()=="true"&&(this.jwInstreamDestroy(),h.jwStop())},this.jwSeek=function(n){switch(a.controlbarseekable.toLowerCase()){case"always":this.jwInstreamSeek(n);break;case"backwards":_fakemodel.position>n&&this.jwInstreamSeek(n)}},this.jwGetPosition=function(){},this.jwGetDuration=function(){},this.jwGetWidth=h.jwGetWidth,this.jwGetHeight=h.jwGetHeight,this.jwGetFullscreen=h.jwGetFullscreen,this.jwSetFullscreen=h.jwSetFullscreen,this.jwGetVolume=function(){return e.volume},this.jwSetVolume=function(n){o.volume(n);h.jwSetVolume(n)},this.jwGetMute=function(){return e.mute},this.jwSetMute=function(n){o.mute(n);h.jwSetMute(n)},this.jwGetState=function(){return _fakemodel.state},this.jwGetPlaylist=function(){return[d]},this.jwGetPlaylistIndex=function(){return 0},this.jwGetStretching=function(){return e.config.stretching},this.jwAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.skin=h.skin,this.id=h.id+"_instream",ot(),this}}(jwplayer),function(n){var t={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=n.utils.css;n.html5.logo=function(i,r){function c(){l();o.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d);a();v()}function l(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);try{window.location.href.indexOf("https")==0&&(t.prefix=t.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(e){}u=n.utils.extend({},t)}function a(){(f=document.createElement("img"),f.id=o.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,w());h()},u.file)&&(f.src=u.file.indexOf("/")>=0?u.file:u.prefix+u.file)}function v(){u.link?(f.onmouseover=p,f.onmouseout=h,f.onclick=y):this.mouseEnabled=!1}function y(n){if(typeof n!="undefined"&&n.stopPropagation(),e){o.jwPause();o.jwSetFullscreen(!1);u.link&&window.open(u.link,u.linktarget);return}}function h(){u.link&&e&&(f.style.opacity=u.out);return}function p(){e&&(f.style.opacity=u.over);return}function w(){var n={textDecoration:"none",position:"absolute",cursor:"pointer"},t,i;n.display=u.hide.toString()=="true"&&!e?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=parseInt(u.margin);return n}function b(){u.hide.toString()=="true"&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),s=setTimeout(function(){k()},u.timeout*1e3));e=!0}function k(){e=!1;u.hide.toString()=="true"&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function d(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(s),b())}var o=i,s,u,f,e=!1;if(c(),u.file)return this.resize=function(){},this.getDisplayElement=function(){return f},this}}(jwplayer),function(n){var e={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils,r=t.isMobile(),i,u,f={};n.html5.mediavideo=function(o,s){function at(n,i){return it[n]?it[n]:(it[n]=function(n){t.exists(n.target.parentNode)&&i(n)},it[n])}function kt(){y=n.api.events.state.IDLE;a=!0;h=dt();h.setAttribute("x-webkit-airplay","allow");p.parentNode&&(h.id=p.id,p.parentNode.replaceChild(h,p))}function dt(){var n=f[c.id],t;n||(n=p.tagName.toLowerCase()=="video"?p:document.createElement("video"),f[c.id]=n,n.id||(n.id=p.id));for(t in tt)n.addEventListener(t,at(t,tt[t]),!0);return n}function k(t){if(t!=n.api.events.state.PAUSED||y!=n.api.events.state.IDLE){if(r)switch(t){case n.api.events.state.PLAYING:wt();break;case n.api.events.state.BUFFERING:case n.api.events.state.PAUSED:bt()}if(y!=t){var i=y;c.state=y=t;l(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}}function w(){}function gt(){var t=Math.round(h.volume*100);l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t},!0);l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:h.muted},!0)}function lt(i){var r,u;a&&(t.exists(i)&&i.lengthComputable&&i.total?r=i.loaded/i.total*100:t.exists(h.buffered)&&h.buffered.length>0&&(u=h.buffered.length-1,u>=0&&(r=h.buffered.end(u)/h.duration*100)),t.useNativeFullscreen()&&t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen!=h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:h.webkitDisplayingFullscreen},!0),nt===!1&&y==n.api.events.state.BUFFERING&&(l(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),nt=!0),ct||(r==100&&(ct=!0),t.exists(r)&&r>c.buffer&&(c.buffer=Math.round(r),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(r)}))))}function ni(i){if(a){if(t.exists(i)&&t.exists(i.target)&&(ht>0&&!isNaN(i.target.duration)&&(isNaN(c.duration)||c.duration<1)&&(c.duration=i.target.duration==Infinity?0:Math.round(i.target.duration*10)/10),!g&&h.readyState>0&&k(n.api.events.state.PLAYING),y==n.api.events.state.PLAYING)){if(h.readyState>0&&(b>-1||!g)){g=!0;try{h.currentTime!=b&&b>-1&&(h.currentTime=b,b=-1)}catch(r){}h.volume=c.volume/100;h.muted=c.mute}if(c.position=c.duration>0?Math.round(i.target.currentTime*10)/10:0,l(n.api.events.JWPLAYER_MEDIA_TIME,{position:c.position,duration:c.duration}),c.position>=c.duration&&(c.position>0||c.duration>0)){pt();return}}lt(i)}}function ti(){}function v(n){a&&(i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),e[n.type]&&(n.type=="ended"?pt():k(e[n.type])))}function et(){if(a){var t=Math.round(h.duration*10)/10,i={height:h.videoHeight,width:h.videoWidth,duration:t};ht||(c.duration<t||isNaN(c.duration))&&h.duration!=Infinity&&(c.duration=t);l(n.api.events.JWPLAYER_MEDIA_META,{metadata:i})}}function ii(i){var r,u;if(a&&y!=n.api.events.state.IDLE){if(r="There was an error: ",i.target.error&&i.target.tagName.toLowerCase()=="video"||i.target.parentNode.error&&i.target.parentNode.tagName.toLowerCase()=="video"){u=t.exists(i.target.error)?i.target.error:i.target.parentNode.error;switch(u.code){case u.MEDIA_ERR_ABORTED:t.log("User aborted the video playback.");return;case u.MEDIA_ERR_NETWORK:r="A network error caused the video download to fail part-way: ";break;case u.MEDIA_ERR_DECODE:r="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case u.MEDIA_ERR_SRC_NOT_SUPPORTED:r="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:r="An unknown error occurred: "}}else if(i.target.tagName.toLowerCase()=="source"){if(ut--,ut>0)return;if(t.userAgentMatch(/firefox/i)){t.log("The video could not be loaded, either because the server or network failed or because the format is not supported.");ft(!1);return}r="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{t.log("An unknown error occurred.  Continuing...");return}ft(!1);r+=ri();_error=!0;l(n.api.events.JWPLAYER_ERROR,{message:r});return}}function ri(){var t="",i,r,u;for(i in d.levels)r=d.levels[i],u=p.ownerDocument.createElement("source"),t+=n.utils.getAbsolutePath(r.file),i<d.levels.length-1&&(t+=", ");return t}function vt(){t.exists(rt)||(rt=setInterval(function(){lt()},100))}function yt(){clearInterval(rt);rt=null}function pt(){y==n.api.events.state.PLAYING&&(ft(!1),l(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE),l(n.api.events.JWPLAYER_MEDIA_COMPLETE))}function ui(){t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen&&!h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1},!0)}function fi(n){var r,i,u;if(n.length>0&&t.userAgentMatch(/Safari/i)&&!t.userAgentMatch(/Chrome/i)){for(r=-1,i=0;i<n.length;i++)switch(t.extension(n[i].file)){case"mp4":r<0&&(r=i);break;case"webm":n.splice(i,1)}r>0&&(u=n.splice(r,1)[0],n.unshift(u))}}function wt(){setTimeout(function(){h.setAttribute("controls","controls")},100)}function bt(){setTimeout(function(){h.removeAttribute("controls")},250)}function l(n,t,i){(a||i)&&(t?ot.sendEvent(n,t):ot.sendEvent(n))}var tt={abort:w,canplay:v,canplaythrough:v,durationchange:et,emptied:w,ended:v,error:ii,loadeddata:et,loadedmetadata:et,loadstart:v,pause:v,play:w,playing:v,progress:lt,ratechange:w,seeked:v,seeking:v,stalled:v,suspend:v,timeupdate:ni,volumechange:gt,waiting:v,canshowcurrentframe:w,dataunavailable:w,empty:w,load:ti,loadedfirstframe:w,webkitfullscreenchange:ui},it={},ot=new n.html5.eventdispatcher,ft;t.extend(this,ot);var c=o,p=s,h,y,g,d,rt,b,st=!1,a=!1,ht=!1,ct,nt,ut;kt();this.load=function(f,e){var o,s;if(typeof e=="undefined"&&(e=!0),a){if(d=f,ht=d.duration>0,c.duration=d.duration,t.empty(h),h.style.display="block",h.style.opacity=1,i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),ut=0,fi(f.levels),f.levels&&f.levels.length>0)if(f.levels.length==1||t.isIOS())h.src=f.levels[0].file;else for(h.src&&h.removeAttribute("src"),o=0;o<f.levels.length;o++)s=h.ownerDocument.createElement("source"),s.src=f.levels[o].file,h.appendChild(s),ut++;else h.src=f.file;h.volume=c.volume/100;h.muted=c.mute;r&&wt();ct=nt=g=!1;c.buffer=0;t.exists(f.start)||(f.start=0);b=f.start>0?f.start:-1;l(n.api.events.JWPLAYER_MEDIA_LOADED);(r||f.levels.length!=1)&&st||h.load();st=!1;e&&(k(n.api.events.state.BUFFERING),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),vt());h.videoWidth>0&&h.videoHeight>0&&et()}};this.play=function(){a&&(vt(),nt?k(n.api.events.state.PLAYING):(h.load(),k(n.api.events.state.BUFFERING)),h.play())};this.pause=function(){a&&(h.pause(),k(n.api.events.state.PAUSED))};this.seek=function(n){a&&(!g&&h.readyState>0?c.duration<=0||isNaN(c.duration)||c.position<=0||isNaN(c.position)||(h.currentTime=n,h.play()):b=n)};ft=this.stop=function(r){if(a){if(t.exists(r)||(r=!0),yt(),r){nt=!1;var f=navigator.userAgent;if(h.webkitSupportsFullscreen)try{h.webkitExitFullscreen()}catch(e){}h.style.opacity=0;bt();t.isIE()?h.src="":h.removeAttribute("src");t.empty(h);h.load();st=!0}if(t.isIPod())i=h.style.width,u=h.style.height,h.style.width=0,h.style.height=0;else if(t.isIPad()){h.style.display="none";try{h.webkitExitFullscreen()}catch(o){}}k(n.api.events.state.IDLE)}};this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(c.config.width,c.config.height)};this.resize=function(){};this.volume=function(t){r||(h.volume=t/100,l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t/100}))};this.mute=function(t){r||(h.muted=t,l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t}))};this.getDisplayElement=function(){return h};this.hasChrome=function(){return r&&y==n.api.events.state.PLAYING};this.detachMedia=function(){return a=!1,this.getDisplayElement()};this.attachMedia=function(){a=!0};this.destroy=function(){if(h&&h.parentNode){yt();for(var n in tt)h.removeEventListener(n,at(n,tt[n]),!0);t.empty(h);p=h.parentNode;h.parentNode.removeChild(h);delete f[c.id];h=null}}}}(jwplayer),function(n){var i={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils.css;n.html5.mediayoutube=function(i,r){function c(t){if(s!=t){var i=s;h.state=t;s=t;e.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function l(n){var t=n.levels[0].file,r,e,i,s,h;t=["http://www.youtube.com/v/",a(t),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");u=document.createElement("object");u.id=f.id;u.style.position="absolute";r={movie:t,allowfullscreen:"true",allowscriptaccess:"always"};for(e in r)i=document.createElement("param"),i.name=e,i.value=r[e],u.appendChild(i);o=document.createElement("embed");u.appendChild(o);s={src:t,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:u.width,height:u.height};for(h in s)o.setAttribute(h,s[h]);u.appendChild(o);u.style.zIndex=2147483e3;f!=u&&f.parentNode&&f.parentNode.replaceChild(u,f);f=u}function a(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")>=0?n.substr(n.indexOf("/v/")+3):n.indexOf("youtu.be")>=0?n.substr(n.indexOf("youtu.be/")+9):n),t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?"))),t.indexOf("&")>-1&&(t=t.substr(0,t.indexOf("&"))),t}var e=new n.html5.eventdispatcher;n.utils.extend(this,e);var h=i,f=document.getElementById(r.id),s=n.api.events.state.IDLE,u,o;return this.getDisplayElement=this.detachMedia=function(){return f},this.attachMedia=function(){},this.play=function(){s==n.api.events.state.IDLE?(e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),c(n.api.events.state.PLAYING)):s==n.api.events.state.PAUSED&&c(n.api.events.state.PLAYING)},this.pause=function(){c(n.api.events.state.PAUSED)},this.seek=function(){},this.stop=function(i){_utils.exists(i)||(i=!0);h.position=0;c(n.api.events.state.IDLE);i&&t(f,{display:"none"})},this.volume=function(t){h.setVolume(t);e.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(t)})},this.mute=function(t){f.muted=t;e.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t})},this.resize=function(n,t){n*t>0&&u&&(u.width=o.width=n,u.height=o.height=t)},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(h.config.width,h.config.height)},this.load=function(i){l(i);t(u,{display:"block"});c(n.api.events.state.BUFFERING);e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});e.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED);this.play()},this.hasChrome=function(){return s!=n.api.events.state.IDLE},this.embed=o,this}}(jwplayer),function(n){var i=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"],t=n.utils;n.html5.model=function(r,u,f){function ct(t){var i=new n.html5.playlistloader;i.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,function(t){e.playlist=new n.html5.playlist(t);rt(!0)});i.addEventListener(n.api.events.JWPLAYER_ERROR,function(){e.playlist=new n.html5.playlist({playlist:[]});rt(!1)});i.load(t)}function rt(){e.config.shuffle?e.item=lt():(e.config.item>=e.playlist.length?e.config.item=e.playlist.length-1:e.config.item<0&&(e.config.item=0),e.item=e.config.item);e.position=0;e.duration=e.playlist.length>0?e.playlist[e.item].duration:0;y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist});y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:e.item})}function lt(){var t=null;if(e.playlist.length>1)while(!n.utils.exists(t))t=Math.floor(Math.random()*e.playlist.length),t==e.item&&(t=null);else t=0;return t}function ht(t){switch(t.type){case n.api.events.JWPLAYER_MEDIA_LOADED:v=o.getDisplayElement();break;case n.api.events.JWPLAYER_MEDIA_MUTE:this.mute=t.mute;break;case n.api.events.JWPLAYER_MEDIA_VOLUME:this.volume=t.volume}y.sendEvent(t.type,t)}var ut=r,v=u,b=t.getCookies(),e={id:v.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,container:v,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:b.volume?b.volume:90,mute:b.mute&&b.mute.toString().toLowerCase()=="true"?!0:!1,fullscreen:!1,repeat:"",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},o,y=new n.html5.eventdispatcher,h,ft,l,c,a,et,d,p,k,g,nt,tt,ot,s,it,st,w;n.utils.extend(e,y);for(h in f){typeof f[h]=="string"&&(ft=/color$/.test(h)?"color":null,f[h]=n.utils.typechecker(f[h],ft));l=e.config;c=h.split(".");for(a in c)a==c.length-1?l[c[a]]=f[h]:(n.utils.exists(l[c[a]])||(l[c[a]]={}),l=l[c[a]])}for(et in i)d=i[et],e[d]=e.config[d];if(p=["display","logo","controlbar","playlist","dock"].concat([]),n.utils.exists(e.plugins)&&typeof e.plugins=="string"){k=e.plugins.split(",");for(g in k)typeof k[g]=="string"&&p.push(k[g].replace(/^\s+|\s+$/g,""))}if(n.utils.isMobile()?(p=["display","logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")):e.config.chromeless&&(p=["logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")),e.plugins={order:p,config:{},object:{}},typeof e.config.components!="undefined")for(nt in e.config.components)e.plugins.config[nt]=e.config.components[nt];tt=!1;for(ot in e.plugins.order)s=e.plugins.order[ot],it=n.utils.exists(e.plugins.config[s])?e.plugins.config[s]:{},e.plugins.config[s]=n.utils.exists(e.plugins.config[s])?n.utils.extend(e.plugins.config[s],it):it,n.utils.exists(e.plugins.config[s].position)?(s=="playlist"&&(tt=!0),e.plugins.config[s].position=e.plugins.config[s].position.toString().toUpperCase()):e.plugins.config[s].position=s=="playlist"?n.html5.view.positions.NONE:n.html5.view.positions.OVER;if(e.plugins.config.controlbar&&tt&&(e.plugins.config.controlbar.hideplaylistcontrols=!0),typeof e.plugins.config.dock!="undefined"&&(typeof e.plugins.config.dock!="object"&&(st=e.plugins.config.dock.toString().toUpperCase(),e.plugins.config.dock={position:st}),typeof e.plugins.config.dock.position!="undefined"&&(e.plugins.config.dock.align=e.plugins.config.dock.position,e.plugins.config.dock.position=n.html5.view.positions.OVER),typeof e.plugins.config.dock.idlehide=="undefined"))try{e.plugins.config.dock.idlehide=e.plugins.config.controlbar.idlehide}catch(at){}return e.loadPlaylist=function(arg){var input,config;if(typeof arg=="string")if(arg.indexOf("[")==0||arg.indexOf("{")=="0")try{input=eval(arg)}catch(err){input=arg}else input=arg;else input=arg;switch(n.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}e.playlist=new n.html5.playlist(config);e.item=e.config.item>=0?e.config.item:0;!e.playlist[0].provider&&e.playlist[0].file?ct(e.playlist[0].file):rt()},w={},e.setActiveMediaProvider=function(t){t.provider=="audio"&&(t.provider="sound");var i=t.provider,r=o?o.getDisplayElement():null;if((i=="sound"||i=="http"||i=="")&&(i="video"),n.utils.exists(w[i]))o!=w[i]&&(o&&o.stop(),o=w[i]);else{switch(i){case"video":o=new n.html5.mediavideo(e,r?r:v);break;case"youtube":o=new n.html5.mediayoutube(e,r?r:v)}if(!n.utils.exists(o))return!1;o.addGlobalListener(ht);w[i]=o}return!0},e.getMedia=function(){return o},e.seek=function(t){return y.sendEvent(n.api.events.JWPLAYER_MEDIA_SEEK,{position:e.position,offset:t}),o.seek(t)},e.setVolume=function(n){t.saveCookie("volume",n);e.volume=n},e.setMute=function(n){t.saveCookie("mute",n);e.mute=n},e.setupPlugins=function(){var i,t;if(!n.utils.exists(e.plugins)||!n.utils.exists(e.plugins.order)||e.plugins.order.length==0)return n.utils.log("No plugins to set up"),e;for(i=0;i<e.plugins.order.length;i++)try{t=e.plugins.order[i];n.utils.exists(n.html5[t])?e.plugins.object[t]=t=="playlist"?new n.html5.playlistcomponent(ut,e.plugins.config[t]):new n.html5[t](ut,e.plugins.config[t]):e.plugins.order.splice(plugin,plugin+1);typeof e.plugins.object[t].addGlobalListener=="function"&&e.plugins.object[t].addGlobalListener(ht)}catch(r){n.utils.log("Could not setup "+t)}},e}}(jwplayer),function(n){n.html5.playlist=function(t){var i=[],r;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(r in t.playlist)isNaN(parseInt(r))||i.push(new n.html5.playlistitem(t.playlist[r]));else i.push(new n.html5.playlistitem(t));return i}}(jwplayer),function(n){var i={size:180,position:n.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},t={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=n.utils;_css=_utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.playlistcomponent=function(r,u){function p(){o=document.createElement("div");o.id=s.id+"_jwplayer_playlistcomponent";o.style.overflow="hidden";switch(f.position){case n.html5.view.positions.RIGHT:case n.html5.view.positions.LEFT:o.style.width=f.size+"px";break;case n.html5.view.positions.TOP:case n.html5.view.positions.BOTTOM:o.style.height=f.size+"px"}ft();e.item&&(f.itemheight=e.item.height);o.style.backgroundColor="#C6C6C6";s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,d);s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,rt);s.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ut)}function w(){var n=document.createElement("ul");return _css(n,{width:o.style.width,minWidth:o.style.width,height:o.style.height,backgroundColor:f.backgroundcolor,backgroundImage:e.background?"url("+e.background.src+")":"",color:f.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:t[f.font]?t[f.font]:t._sans,fontSize:(f.fontsize?f.fontsize:11)+"px",fontStyle:f.fontstyle,fontWeight:f.fontweight,overflowY:"auto"}),n}function b(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")"));_css(r,{color:f.overcolor!==""?f.overcolor:t,backgroundImage:e.itemOver?"url("+e.itemOver.src+")":i})}}function a(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")"));_css(r,{color:t,backgroundImage:i})}}function k(t){var i=c[t],u=document.createElement("li"),d,s,l,o,p;u.className="item";_css(u,{height:f.itemheight,display:"block",cursor:"pointer",backgroundImage:e.item?"url("+e.item.src+")":"",backgroundSize:"100% "+f.itemheight+"px"});u.onmouseover=b(t);u.onmouseout=a(t);var g=document.createElement("div"),r=new Image,w=0,h=0,k=0;return it()&&(i.image||i["playlist.image"]||e.itemImage)&&(r.className="image",e.itemImage?(w=(f.itemheight-e.itemImage.height)/2,h=e.itemImage.width,k=e.itemImage.height):(h=f.itemheight*4/3,k=f.itemheight),_css(g,{height:k,width:h,float:"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:w+"px",position:"relative"}),_css(r,{position:"relative"}),g.appendChild(r),r.onload=function(){n.utils.stretch(n.utils.stretching.FILL,r,h,k,this.naturalWidth,this.naturalHeight)},i["playlist.image"]?r.src=i["playlist.image"]:i.image?r.src=i.image:e.itemImage&&(r.src=e.itemImage.src),u.appendChild(g)),d=v-h-w*2,y<f.itemheight*c.length&&(d-=15),s=document.createElement("div"),_css(s,{position:"relative",height:"100%",overflow:"hidden"}),l=document.createElement("span"),i.duration>0&&(l.className="duration",_css(l,{fontSize:(f.fontsize?f.fontsize:11)+"px",fontWeight:f.fontweight?f.fontweight:"bold",width:"40px",height:f.fontsize?f.fontsize+10:20,lineHeight:24,float:"right",styleFloat:"right",cssFloat:"right"}),l.innerHTML=_utils.timeFormat(i.duration),s.appendChild(l)),o=document.createElement("span"),o.className="title",_css(o,{padding:"5px 5px 0 "+(w?0:"5px"),height:f.fontsize?f.fontsize+10:20,lineHeight:f.fontsize?f.fontsize+10:20,overflow:"hidden",float:"left",styleFloat:"left",cssFloat:"left",width:(i.duration>0?d-50:d)-10+"px",fontSize:(f.fontsize?f.fontsize:13)+"px",fontWeight:f.fontweight?f.fontweight:"bold"}),o.innerHTML=i?i.title:"",s.appendChild(o),i.description&&(p=document.createElement("span"),p.className="description",_css(p,{display:"block",float:"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:o.style.paddingLeft,paddingRight:o.style.paddingRight,lineHeight:(f.fontsize?f.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),p.innerHTML=i.description,s.appendChild(p)),u.appendChild(s),u}function d(){var n,t,i;if(o.innerHTML="",c=g(),c){for(items=[],h=w(),n=0;n<c.length;n++)t=k(n),t.onclick=nt(n),h.appendChild(t),items.push(t);l=s.jwGetPlaylistIndex();a(l)();o.appendChild(h);_utils.isIOS()&&window.iScroll&&(h.style.height=f.itemheight*c.length+"px",i=new iScroll(o.id))}}function g(){for(var t=s.jwGetPlaylist(),i=[],n=0;n<t.length;n++)t[n]["ova.hidden"]||i.push(t[n]);return i}function nt(n){return function(){s.jwPlaylistItem(n);s.jwPlay(!0)}}function tt(){h.scrollTop=s.jwGetPlaylistIndex()*f.itemheight}function it(){return f.thumbs.toString().toLowerCase()=="true"}function rt(n){l>=0&&(a(l)(),l=n.index);a(n.index)();tt()}function ut(){if(f.position==n.html5.view.positions.OVER)switch(s.jwGetState()){case n.api.events.state.IDLE:_show(o);break;default:_hide(o)}}function ft(){for(var n in e)e[n]=et(n)}function et(n){return s.skin.getSkinElement("playlist",n)}var s=r,f=n.utils.extend({},i,s.skin.getComponentSettings("playlist"),u),o,v,y,c,h,l,e;if(f.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[f.position]!="undefined")return l=-1,e={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined},this.getDisplayElement=function(){return o},this.resize=function(n,t){if(v=n,y=t,s.jwGetFullscreen())_hide(o);else{var i={display:"block",width:v,height:y};_css(o,i)}},this.show=function(){_show(o)},this.hide=function(){_hide(o)},p(),this}}(jwplayer),function(n){function t(t){var i,r,u;if(n.utils.isYouTube(t.file))return"youtube";if(i=n.utils.extension(t.file),i&&n.utils.extensionmap[i]){if(i=="m3u8")return"video";r=n.utils.extensionmap[i].html5}else t.type&&(r=t.type);if(r){if(u=r.split("/")[0],u=="audio")return"sound";if(u=="video")return u}return""}n.html5.playlistitem=function(i){var r=n.utils.extend({},{author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(t){var i={file:"",streamer:"",bitrate:0,width:0};for(var r in i)n.utils.exists(t[r])&&(i[r]=t[r]);return i}}(jwplayer),function(n){n.html5.playlistloader=function(){function r(r){var u=[];try{u=n.utils.parsers.rssparser.parse(r.responseXML.firstChild);t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new n.html5.playlist({playlist:u})})}catch(f){i("Could not parse the playlist")}}function i(i){t.sendEvent(n.api.events.JWPLAYER_ERROR,{message:i?i:"Could not load playlist an unknown reason."})}var t=new n.html5.eventdispatcher;n.utils.extend(this,t);this.load=function(t){n.utils.ajax(t,r,i)}}}(jwplayer),function(n){n.html5.skin=function(){var t={},i=!1;this.load=function(r,u){new n.html5.skinloader(r,function(n){i=!0;t=n;u()},function(){new n.html5.skinloader("",function(n){i=!0;t=n;u()})})};this.getSkinElement=function(r,u){if(i)try{return t[r].elements[u]}catch(f){n.utils.log("No such skin component / element: ",[r,u])}return null};this.getComponentSettings=function(n){return i&&t&&t[n]?t[n].settings:null};this.getComponentLayout=function(n){return i?t[n].layout:null}}}(jwplayer),function(n){n.html5.skinloader=function(t,i,r){function v(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(n.utils.exists(t.responseXML)){e(t.responseXML);return}}catch(i){p()}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),f,i,ut,g,a,v,p,c,w,nt,b,r,k,tt,it,e,l,d,rt;if(o.length!==0)for(f=0;f<o.length;f++){for(i=o[f].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,g=o[f].getElementsByTagName("elements")[0].getElementsByTagName("element"),a=0;a<g.length;a++)y(g[a],i);if(v=o[f].getElementsByTagName("settings")[0],v&&v.childNodes.length>0)for(p=v.getElementsByTagName("setting"),c=0;c<p.length;c++){var ft=p[c].getAttribute("name"),et=p[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}if(w=o[f].getElementsByTagName("layout")[0],w&&w.childNodes.length>0)for(nt=w.getElementsByTagName("group"),b=0;b<nt.length;b++){for(r=nt[b],u[i].layout[r.getAttribute("position")]={elements:[]},k=0;k<r.attributes.length;k++)tt=r.attributes[k],u[i].layout[r.getAttribute("position")][tt.name]=tt.value;for(it=r.getElementsByTagName("*"),e=0;e<it.length;e++){for(l=it[e],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),d=0;d<l.attributes.length;d++)rt=l.attributes[d],u[i].layout[r.getAttribute("position")].elements[e][rt.name]=rt.value;n.utils.exists(u[i].layout[r.getAttribute("position")].elements[e].name)||(u[i].layout[r.getAttribute("position")].elements[e].name=l.tagName)}}h=!1;s()}}function s(){clearInterval(o);c||(o=setInterval(function(){w()},100))}function y(t,i){var r=new Image,l=t.getAttribute("name"),e=t.getAttribute("src"),o,h,v;e.indexOf("data:image/png;base64,")===0?o=e:(h=n.utils.getAbsolutePath(f),v=h.substr(0,h.lastIndexOf("/")),o=[v,i,e].join("/"));u[i].elements[l]={height:0,width:0,src:"",ready:!1,image:r};r.onload=function(){b(r,l,i)};r.onerror=function(){c=!0;s();a()};r.src=o}function p(){var t,n,i,r,f;for(t in u){n=u[t];for(i in n.elements)r=n.elements[i],f=r.image,f.onload=null,f.onerror=null,delete r.image,delete n.elements[i];delete u[t]}}function w(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),l(u))}function b(t,i,r){u[r]&&u[r].elements[i]?(u[r].elements[i].height=t.height,u[r].elements[i].width=t.width,u[r].elements[i].src=t.src,u[r].elements[i].ready=!0,s()):n.utils.log("Loaded an image for a missing element: "+r+"."+i)}var u={},l=i,a=r,h=!0,o,f=t,c=!1;v()}}(jwplayer),function(n){n.html5.api=function(t,i){function v(){u.state==n.api.events.state.PLAYING||u.state==n.api.events.state.BUFFERING?f.pause():f.play()}function o(n){return function(){return u[n]}}function c(n,t,i){return function(){var r=u.plugins.object[n];r&&r[t]&&typeof r[t]=="function"&&r[t].apply(r,i)}}function s(n){return function(){if(e&&typeof e[n]=="function")return e[n].apply(this,arguments);_utils.log("Could not call instream method - instream API not initialized")}}function y(){u.config.playlistfile?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlistfile)):typeof u.config.playlist=="string"?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlist)):(u.loadPlaylist(u.config),setTimeout(l,25))}function l(t){u.removeEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l);u.setupPlugins();a.setup();var t={id:r.id,version:r.version};f.playerReady(t)}var r={},h=document.createElement("div"),e;t.parentNode.replaceChild(h,t);h.id=t.id;r.version=n.version;r.id=h.id;var u=new n.html5.model(r,h,i),a=new n.html5.view(r,h,u),f=new n.html5.controller(r,h,u,a);return r.skin=new n.html5.skin,r.jwPlay=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.play():f.pause()},r.jwPause=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.pause():f.play()},r.jwStop=f.stop,r.jwSeek=f.seek,r.jwPlaylistItem=function(n){if(e){if(e.playlistClickable())return e.jwInstreamDestroy(),f.item(n)}else return f.item(n)},r.jwPlaylistNext=f.next,r.jwPlaylistPrev=f.prev,r.jwResize=f.resize,r.jwLoad=f.load,r.jwDetachMedia=f.detachMedia,r.jwAttachMedia=f.attachMedia,r.jwGetPlaylistIndex=o("item"),r.jwGetPosition=o("position"),r.jwGetDuration=o("duration"),r.jwGetBuffer=o("buffer"),r.jwGetWidth=o("width"),r.jwGetHeight=o("height"),r.jwGetFullscreen=o("fullscreen"),r.jwSetFullscreen=f.setFullscreen,r.jwGetVolume=o("volume"),r.jwSetVolume=f.setVolume,r.jwGetMute=o("mute"),r.jwSetMute=f.setMute,r.jwGetStretching=function(){return u.stretching.toUpperCase()},r.jwGetState=o("state"),r.jwGetVersion=function(){return r.version},r.jwGetPlaylist=function(){return u.playlist},r.jwAddEventListener=f.addEventListener,r.jwRemoveEventListener=f.removeEventListener,r.jwSendEvent=f.sendEvent,r.jwDockSetButton=function(n,t,i,r){u.plugins.object.dock&&u.plugins.object.dock.setButton&&u.plugins.object.dock.setButton(n,t,i,r)},r.jwControlbarShow=c("controlbar","show"),r.jwControlbarHide=c("controlbar","hide"),r.jwDockShow=c("dock","show"),r.jwDockHide=c("dock","hide"),r.jwDisplayShow=c("display","show"),r.jwDisplayHide=c("display","hide"),r.jwLoadInstream=function(t,i){e||(e=new n.html5.instream(r,u,a,f));setTimeout(function(){e.load(t,i)},10)},r.jwInstreamDestroy=function(){e&&e.jwInstreamDestroy()},r.jwInstreamAddEventListener=s("jwInstreamAddEventListener"),r.jwInstreamRemoveEventListener=s("jwInstreamRemoveEventListener"),r.jwInstreamGetState=s("jwInstreamGetState"),r.jwInstreamGetDuration=s("jwInstreamGetDuration"),r.jwInstreamGetPosition=s("jwInstreamGetPosition"),r.jwInstreamPlay=s("jwInstreamPlay"),r.jwInstreamPause=s("jwInstreamPause"),r.jwInstreamSeek=s("jwInstreamSeek"),r.jwDestroy=function(){f.destroy()},r.jwGetLevel=function(){},r.jwGetBandwidth=function(){},r.jwGetLockState=function(){},r.jwLock=function(){},r.jwUnlock=function(){},u.config.chromeless&&!n.utils.isIOS()?y():r.skin.load(u.config.skin,y),r}}(jwplayer)),function(n){n.fn.slides=function(t){t=n.extend({},n.fn.slides.option,t);var r=function(n){return window.document[n]?window.document[n]:navigator.appName.indexOf("Microsoft Internet")==-1&&document.embeds&&document.embeds[n]?document.embeds[n]:document.getElementById(n)},u=function(t){return n(":first-child",t).attr("name")||""},f=function(t){return n("object",t).attr("name")||""},i=function(){return!n(".play").hasClass("active")&&!t.playAfterChange};return this.each(function(){var rt;n(".slides ."+t.slideClass,e).addClass("slide");var e=n(this),l=n(".slides",e),v=t.start-1,h=n(".slide",e).size(),c=n(".slide",e).outerWidth(),ut=n(".slide",e).outerHeight(),b=t.effect.indexOf(",")<0?t.effect:t.effect.replace(" ","").split(",")[0],et=t.effect.indexOf(",")<0?b:t.effect.replace(" ","").split(",")[1],nt=n(".slideshow-paging",e).hide(),ot=n("li",nt).remove(),o=0,y=0,s=0,st,k,tt,w,d,a;n(e).css({overflow:"hidden",width:c,height:ut});var p=function(t){return n(".slide",e).eq(t)},g=function(i){var i=i||{};if(!k&&h>1){k=!0;p(s).data().stop();switch(i.direction){case"next":y=s;o=s+1;o=h===o?0:o;w=c*2;d=-c*2;s=o;break;case"prev":y=s;o=s-1;o=o===-1?h-1:o;w=0;d=0;s=o;break;case"paging":o=parseInt(i.clicked,10);y=s;o>y?(w=c*2,d=-c*2):(w=0,d=0);s=o}i.effect==="slide"?(l.children(":eq("+o+")").css({left:w,display:"block"}),l.animate({left:i.direction},parseInt(t.slideSpeed),t.slideEasing,function(){l.css({left:-c});l.children(":eq("+o+")").css({left:c,zIndex:5});l.children(":eq("+y+")").css({left:c,display:"none",zIndex:0});var n=p(s).data();n.play(!0);i.once||n.scheduleNext();k=!1})):l.children(":eq("+y+")",e).fadeOut(parseInt(t.fadeSpeed),t.fadeEasing,function(){l.children(":eq("+o+")",e).fadeIn(parseInt(t.fadeSpeed),t.fadeEasing,function(){is.ie()&&n(this).get(0).style.removeAttribute("filter")});var r=p(s).data();r.play(!0);i.once||r.scheduleNext();k=!1});n(".slideshow-paging li.current",e).removeClass("current");n(".slideshow-paging li button",e).removeAttr("disabled");n(".slideshow-paging li:eq("+o+")",e).addClass("current");n(".slideshow-paging li:eq("+o+") button",e).attr("disabled","true")}},ft=function(){n(".play").removeClass("active");n(".stop").addClass("active");t.togglePlayPauseButton&&(n(".stop").hide(),n(".play").show());p(s).data().stop()},it=function(){var n=p(s);n.data().play();n.data().scheduleNext();n.fadeIn(parseInt(t.fadeSpeed),t.fadeEasing,function(){st=!0})},ht=function(){n(".slide",e).each(function(){var i=ot.clone(),r=n(this).index()+1;n(".button-pager",i).attr("title",t.pagingTitle+r);n(".button-pager .item-text",i).text(r);n(nt).append(i)});n(".slideshow-paging li:eq("+v+")",e).addClass("current");n(".slideshow-paging li:eq("+o+") button",e).attr("disabled","true");n(".button-pager",e).click(function(t){return tt=n(this).parent().index(),s!=tt&&g({direction:"paging",effect:et,clicked:tt,once:i()}),t.preventDefault(),!1});n(nt).show()};h<-2||(v<0&&(v=0),v>h&&(v=h-1),t.start&&(s=v),l.children().css({position:"absolute",top:0,left:c,zIndex:0,display:"none"}),l.css({position:"relative",width:c*3,height:ut,left:-c}),n(".stop",e).click(function(t){return n(this).hasClass("active")||ft(),t.preventDefault(),!1}),n(".play",e).click(function(t){return n(this).hasClass("active")||it(),t.preventDefault(),!1}),t.hoverPause&&(e.mouseover(ft),e.mouseleave(it)),n(".next",e).click(function(n){return g({direction:"next",effect:b,once:i()}),n.preventDefault(),!1}),n(".prev",e).click(function(n){return g({direction:"prev",effect:b,once:i()}),n.preventDefault(),!1}),n(".slide",e).each(function(){var i=0;jQuery.each(n(this).attr("class").split(" "),function(n,t){t.indexOf("delay-")!==-1&&(i=parseInt(t.substring(6),10))});(i===0||isNaN(i))&&(i=t.displayTimeSlide);n(this).data({delay:i*1e3})}),rt=function(){n(".play").addClass("active");n(".stop").removeClass("active");t.togglePlayPauseButton&&(n(".stop").show(),n(".play").hide())},n(".slide",e).each(function(){n(this).data({init:jQuery.noop,play:jQuery.noop,stop:function(){clearTimeout(a)},scheduleNext:function(){if(h===1){clearTimeout(a);var t=p(s).data();a=setTimeout(function(){t.stop();t.play(!0);t.scheduleNext()},this.delay);rt()}else h>1&&(clearTimeout(a),a=setTimeout(function(){n(".slide",e).eq(s).data().stop();g({direction:"next",effect:b})},this.delay),rt())}})}),n(".slide.swf",e).each(function(t,i){n(this).data({play:function(t){var f=r(u(i));try{t&&f.Rewind();f.Play()}catch(e){n(i).html(n(i).html());console.log("Flash reloaded")}},stop:function(){var n=r(u(i));try{n.StopPlay()}catch(t){}clearTimeout(a)}})}),n(".slide.flv",e).each(function(t,i){n(this).data({player:jwplayer(f(i)),init:function(){var n=this;n.player.onPause(function(){n.playing&&n.player.pause(!1)}).onPlay(function(){n.playing||n.player.pause(!0)}).onReady(function(){this.playing=!0;n.player.play(!0)}).onIdle(function(n){console.log("Idle: "+n.oldstate)})},play:function(n){this.playing=!0;n?this.player.play(!0).seek(0):this.player.play(!0)},stop:function(){this.playing=!1;this.player.pause(!0);clearTimeout(a)}})}),n(".slide",e).each(function(){n(this).data().init();n(this).data().stop()}),h>1&&t.paging&&ht(),(h>1||t.alwaysDisplayNavbar&&h>0)&&n(".slideshow-navbar",e).show(),n(".slide:eq(0)",e).each(function(){n(this).fadeIn(parseInt(t.fadeSpeed),t.fadeEasing)}),h>0&&it())})};n.fn.slides.option={preload:!0,preloadImage:"evenementiel/img/loader.gif",paging:!0,pagingTitle:"Diapo ",alwaysDisplayNavbar:!1,fadeSpeed:300,fadeEasing:"",slideSpeed:300,slideEasing:"",start:1,effect:"fade",displayTimeSlide:3,hoverPause:!0,playAfterChange:!1,togglePlayPauseButton:!1,slideClass:""}}(jQuery);$(document).ready(function(){$("#slideshow").each(function(){var n=$("#slideshow").find(".slides");$("#slideshow").slides({slideClass:n.attr("data-slideClass"),paging:n.attr("data-paging").toLowerCase()=="true",pagingTitle:n.attr("data-pagingTitle"),alwaysDisplayNavbar:n.attr("data-alwaysDisplayNavbar").toLowerCase()=="true",fadeSpeed:n.attr("data-fadeSpeed"),slideSpeed:n.attr("data-slideSpeed"),effect:n.attr("data-effect"),displayTimeSlide:n.attr("data-displayTimeSlide"),hoverPause:n.attr("data-hoverPause").toLowerCase()=="true",playAfterChange:n.attr("data-playAfterChange").toLowerCase()=="true",togglePlayPauseButton:n.attr("data-togglePlayPauseButton").toLowerCase()=="true"})})});cityWay.forms.algolia=function(n){function i(n){var t=n.ID_TRIPPOINT+"_"+n.POINTTYPE,i;return n.POINTTYPE==3&&(i=r(n._highlightResult.NAMEWITHSN.value),i!=""&&(t=t+"_"+i)),t}function t(n){var i="",r=n.POICATEGORY!=null?n.POICATEGORY:0,t;return i=n.POINTTYPE==cityWay.pointType.poi&&r==cityWay.poi.category.locality?n.NAME:n.NAME+", "+n.LOCALITYNAME,n.POINTTYPE==cityWay.pointType.address&&(t="",n._highlightResult.NAMEWITHSN.value.indexOf("<streetnumber")==0||n.NAMEWITHSN==""?t=n.NAME:(t=n._highlightResult.NAMEWITHSN.value,t=cityWay.tools.replaceAll(t,"<em>",""),t=cityWay.tools.replaceAll(t,"<\/em>","")),i=t+", "+n.LOCALITYNAME),i}function u(n){var t="cw-transinfo ";switch(n.POINTTYPE){case cityWay.pointType.poi:return t+"picto-point poi categ-"+(n.POICATEGORY!=null?n.POICATEGORY:0);case cityWay.pointType.physicalStop:return t+"picto-iti physicalstop";case cityWay.pointType.logicalStop:return t+"picto-iti logicalstop";case cityWay.pointType.address:case cityWay.pointType.roadLink:return t+"picto-point roadlink"}return t}function f(n,t){var i,r;if(t)return"";i="";switch(n.POINTTYPE){case cityWay.pointType.physicalStop:r=n.Code!=null&&n.Code!=""?" (#"+n.Code+")":"";i=cityWay.texts.map.Title_Stop+r;break;case cityWay.pointType.logicalStop:i=cityWay.texts.map.Title_Stop;break;case cityWay.pointType.address:i=cityWay.texts.map.Title_Address;break;case cityWay.pointType.poi:n.POICATEGORY!=null&&(i=cityWay.texts.map["Legend_Poi_Category_"+n.POICATEGORY])}return' <span class="info-autocomplete">'+i+"<\/span>"}function e(n,t){var r={Id:n.ID_TRIPPOINT,TypePoint:n.POINTTYPE,Value:i(n),Name:n.NAME,Latitude:n._geoloc.lat,Longitude:n._geoloc.lng,Locality:{Name:n.LOCALITYNAME}},u,f;if(n.POINTTYPE==cityWay.pointType.poi&&(r.Categories=[{Id:n.POICATEGORY,Name:cityWay.texts.map["Legend_Poi_Category_"+n.POICATEGORY]}]),n.POINTTYPE==cityWay.pointType.address&&t!=null){var o=n.STARTNUMROAD,s=n.ENDNUMROAD,e=!1;if(n.LOCATIONS!=null)for(u in n.LOCATIONS)if(f=n.LOCATIONS[u],t==u){r.Latitude=f.lat;r.Longitude=f.lng;r.Number=t;e=!0;break}!e&&o<=t&&t<=s&&cityWay.mapDataService.getNearestRoad(r.Latitude,r.Longitude,t).then(function(n){n.Data&&(r.Latitude=n.Data.Latitude,r.Longitude=n.Data.Longitude,r.Number=t)})}return r}function r(n){var i=cityWay.tools.replaceAll(n,"<em>",""),r,t;return(i=cityWay.tools.replaceAll(i,"<\/em>",""),r=i.split(" "),t=r[0],t=t.replace(",",""),isNaN(t))?"":t}function o(n){var t=document.createElement("span"),i;return t.setAttribute("role","status"),t.setAttribute("aria-live","assertive"),t.setAttribute("class","sr-only "+n),t.setAttribute("className","sr-only "+n),i=document.createElement("span"),t.appendChild(i),t}function s(s,h,c,l,a,v){var d,k,w,b,g;a==null&&(a=10);document.getElementById(h).setAttribute("autocomplete","off");var nt=s.initIndex(cityWay.config.site.algolia.index.trippoint),p="",y="";if(v!=""&&v!=null)for(d=v.split("|"),k=0;k<d.length;k++)y!=""&&(y+=" OR "),y+=" POICATEGORY="+d[k];if(l!=0)for(w=l.split("|"),l.indexOf("$")>-1&&(w=l.split("$")),b=0;b<w.length;b++)p!=""&&(p+=" OR "),(w[b]!=cityWay.pointType.poi||w[b]==cityWay.pointType.poi&&y=="")&&(p+=" POINTTYPE="+w[b]);y!=""&&(p=l==cityWay.pointType.poi?"("+y+") AND (POINTTYPE = "+cityWay.pointType.poi+" )":p==""?"("+y+") OR (POINTTYPE != "+cityWay.pointType.poi+" )":y+" OR ("+p+")");g=l==cityWay.pointType.logicalStop;n(function(){n("#"+h).typeahead({minLength:3,highlight:!0,autoselect:!1},{source:nt.ttAdapter({filters:p}),displayKey:function(n){return t(n)},limit:a,templates:{suggestion:function(n){return'<p><span class="'+u(n)+'"><\/span>'+t(n)+""+f(n,g)+"<\/p>"},notFound:function(){return'<p><span class="info-no-result">'+cityWay.texts.site.Autocomplete_NoResult+"<\/span><\/p>"}}}).bind("typeahead:selected",function(u,f){document.getElementById(h).value=t(f);document.getElementById(c).value=i(f);n("#"+h).val(t(f));var o=r(f._highlightResult.NAMEWITHSN.value);cityWay.eventManager.publish(cityWay.events.journeyPlanner.searchFormChanged,h,e(f,o),o)}).bind("typeahead:asyncreceive",function(){if(document.getElementById(c).parentNode!=null){var t=document.getElementById(c).parentNode.querySelectorAll(".tt-suggestion").length;n(".nb-result-"+h+" > SPAN").text(t+" "+cityWay.texts.site.Autocomplete_NbResult)}})});document.getElementById(c).parentNode!=null&&document.getElementById(c).parentNode.insertBefore(o("nb-result-"+h),document.getElementById(h))}return{addAutocompletePoint:s}}(jQuery);cityWay.forms.autocomplete=function(n){function s(u,f,e,o,s,h){o==null&&(o=10);s==null&&(s="PartnerId");document.getElementById(u).setAttribute("autocomplete","off");n(function(){var t={};n("#"+u).typeahead({minLength:1,highlight:!0,autoselect:!1},{name:"select-line",displayKey:"name",templates:{suggestion:function(n){return"<p>"+n.name+' <span class="info-autocomplete">'+n.network+"<\/span><\/p>"}},source:function(f,c){var l,v,y,a,b,p,w;for(f=f.replace(/'/gi," "),l=0,document.getElementById(s||"selectPartner")!=null&&(l=document.getElementById(s||"selectPartner").value,l==""&&(l=0)),v=document.getElementsByName("TransportModes"),y="",a=0,b=v.length;a<b;a++)v[a].checked&&(y+=y==""?v[a].value:"|"+v[a].value);p=n.trim(f)+"|"+l+"|"+y;p in t?(w=t[p],c(n.map(w.Data,function(n){return{value:n.Id,name:i(n.Number,n.Name),network:r(n,e)}})),n(".nb-result-"+u+" > SPAN").text(w.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult)):cityWay.forms.searchLine(f,c,u,o,l,e,t,y,h)}}).bind("typeahead:selected",function(n,t){document.getElementById(u).value=t.name;document.getElementById(f).value=t.value;cityWay.eventManager.publish(cityWay.events.autocomplete.itemSelected,u,t)})});document.getElementById(f).parentNode.insertBefore(t("nb-result-"+u),document.getElementById(u))}function h(i,r,u){u==null&&(u=10);document.getElementById(i).setAttribute("autocomplete","off");n(function(){var t={};n("#"+i).typeahead({minLength:3,highlight:!0,autoselect:!1},{name:"select-locality",displayKey:"name",source:function(r,f){var e,o;r=r.replace(/'/gi," ");e=n.trim(r);e in t?(o=t[e],f(n.map(o.Data,function(n){return{value:n.Id,name:n.Name}})),n(".nb-result-"+i+" > SPAN").text(o.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult)):cityWay.forms.searchLocality(r,f,i,u,t)}}).bind("typeahead:selected",function(n,t){document.getElementById(i).value=t.name;document.getElementById(r).value=t.value})});document.getElementById(r).parentNode.insertBefore(t("nb-result-"+i),document.getElementById(i))}function c(i,r,s,h,c){h==null&&(h=10);document.getElementById(i).setAttribute("autocomplete","off");var a="";n(function(){var t={};n("#"+i).typeahead({minLength:3,highlight:!0,autoselect:!1},{name:"select-stop",displayKey:"name",templates:{suggestion:function(n){return'<p><span class="'+n.cssClass+'"><\/span>'+n.name+' <span class="info-autocomplete">'+n.type+"<\/span><\/p>"}},source:function(r,v){var y,p;r=r.replace(/'/gi," ");y=n.trim(r);a=l(y);y in t?(p=t[y],v(n.map(p.Data,function(n){return{value:u(n),name:f(n),number:n.Number,cssClass:e(n),type:o(n),source:n}})),n(".nb-result-"+i+" > SPAN").html(p.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult)):cityWay.forms.searchPoint(r,v,i,s,h,c,t)}}).bind("typeahead:selected",function(n,t){document.getElementById(i).value=t.name;document.getElementById(r).value=t.value;cityWay.eventManager.publish(cityWay.events.journeyPlanner.searchFormChanged,i,t.source,a)})});document.getElementById(r).parentNode.insertBefore(t("nb-result-"+i),document.getElementById(i))}function i(n,t){var i=t;return n!=null&&n!=""&&(i=n+" "+i),i}function r(n,t){return t&&n.Partner!=null?n.Partner.ShortName:""}function u(n){var t=n.Id+"_"+n.TypePoint;return n.TypePoint==3&&n.Number!=""&&n.Number!="0"&&n.Number!=null&&(t+="_"+n.Number),t}function f(n){var t="",i=n.Locality.Name,r;return n.PostalCode!=null&&n.PostalCode!=""&&(i=n.PostalCode+" "+n.Locality.Name),r=n.Categories!=null&&n.Categories.length>0?n.Categories[0].Id:0,t=n.TypePoint==cityWay.pointType.poi&&r==cityWay.poi.category.locality?i:n.Name+" - "+i,n.TypePoint==cityWay.pointType.address&&n.Number!=""&&n.Number!="0"&&n.Number!=null&&(t=n.Number+", "+t),t}function e(n){var t="cw-transinfo ";switch(n.TypePoint){case cityWay.pointType.poi:return t+"picto-point poi categ-"+(n.Categories.length>0?n.Categories[0].Id:0);case cityWay.pointType.physicalStop:return t+"picto-iti physicalstop";case cityWay.pointType.logicalStop:return t+"picto-iti logicalstop";case cityWay.pointType.address:case cityWay.pointType.roadLink:return t+"picto-point roadlink"}return t}function o(n){switch(n.TypePoint){case cityWay.pointType.physicalStop:var t=n.Code!=null&&n.Code!=""?" (#"+n.Code+")":"";return cityWay.texts.map.Title_Stop+t;case cityWay.pointType.logicalStop:return cityWay.texts.map.Title_Stop;case cityWay.pointType.address:return cityWay.texts.map.Title_Address;case cityWay.pointType.poi:if(n.Categories.length>0)return n.Categories[0].Name}return""}function l(n){var i=n.split(" "),t=i[0];return(t=t.replace(",",""),isNaN(t))?"":t}function t(n){var t=document.createElement("span"),i;return t.setAttribute("role","status"),t.setAttribute("aria-live","assertive"),t.setAttribute("class","sr-only "+n),t.setAttribute("className","sr-only "+n),i=document.createElement("span"),t.appendChild(i),t}return cityWay.forms.searchLine=cityWay.tools.debounce(function(t,u,f,e,o,s,h,c,l){n.ajax({url:"/api/Lines/Search",type:"GET",data:{keywords:t,partnerId:o,maxItems:e,transportModes:c,excludePartners:l},dataType:"json",scriptCharset:"utf-8",beforeSend:function(){n("#"+f).addClass("loading")},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(e){h[n.trim(t)+"|"+o+"|"+c]=e;e.StatusCode=="0"&&(u(n.map(e.Data,function(n){return{value:n.Id,name:i(n.Number,n.Name),network:r(n,s)}})),n(".nb-result-"+f+" > SPAN").text(e.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult));n("#"+f).removeClass("loading")}})},200),cityWay.forms.searchLocality=cityWay.tools.debounce(function(t,i,r,u,f){n.ajax({url:"/api/Localities/Search",type:"GET",data:{keywords:t,maxItems:u},dataType:"json",scriptCharset:"utf-8",beforeSend:function(){n("#"+r).addClass("loading")},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(u){f[n.trim(t)]=u;u.StatusCode=="0"&&(i(n.map(u.Data,function(n){return{value:n.Id,name:n.Name}})),n(".nb-result-"+r+" > SPAN").text(u.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult));n("#"+r).removeClass("loading")}})},200),cityWay.forms.searchPoint=cityWay.tools.debounce(function(t,i,r,s,h,c,l){n.ajax({url:"/api/TripPoint/Search",type:"GET",data:{keywords:t,maxItems:h,pointTypes:s.replace("$","|"),categories:c||""},dataType:"json",scriptCharset:"utf-8",beforeSend:function(){n("#"+r).addClass("loading")},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(s){l[n.trim(t)]=s;s.StatusCode=="0"&&(i(n.map(s.Data,function(n){return{value:u(n),name:f(n),number:n.Number,cssClass:e(n),type:o(n),source:n}})),n(".nb-result-"+r+" > SPAN").html(s.Data.length+" "+cityWay.texts.site.Autocomplete_NbResult));n("#"+r).removeClass("loading")}})},200),{addAutocompleteLine:s,addAutocompleteLocality:h,addAutocompletePoint:c}}(jQuery);$(function(){$("form").submit(function(){$(this).valid()?($(this).find("div.form-group").each(function(){$(this).find("span.field-validation-error").length==0&&$(this).removeClass("has-error")}),$(this).find("div.summary-form").each(function(){$(this).html("");$(this).addClass("hidden")})):($(this).find("div.form-group").each(function(){$(this).find("span.field-validation-error").length>0&&$(this).addClass("has-error")}),$(this).find("div.summary-form").each(function(){$(this).html($(this).attr("data-valmsg"));$(this).removeClass("hidden")}));$(this).find("div.form-group").each(function(){$("input, textarea").change(function(){$(this).hasClass("input-validation-error")&&$(this).parent().parent().addClass("has-error");$(this).hasClass("valid")&&$(this).parent().parent().removeClass("has-error")});$("select").change(function(){$(this).val()!=""?$(this).parent().parent().removeClass("has-error"):$(this).parent().parent().addClass("has-error")})})});$(".validation-summary-errors").each(function(){$(this).attr("role","alert")})});cityWay.forms.onChangeObject=function(n,t,i){document.getElementById(n).value==t?$("#"+i).removeClass("hidden"):$("#"+i).addClass("hidden")};cityWay.forms.DisplaySlider=function(n,t,i,r,u,f,e){"use strict";$("#"+t).slider({min:r,max:u,step:f,value:i,tooltip:"hide"}).on("slide",function(i){$("#"+n).val(i.value);var r=$("#"+t).parent().find(".slider-track > .slider-handle:eq(0)");r.attr("aria-valuenow",i.value);r.attr("aria-valuetext",i.value+" "+e)}).on("slideStop",function(){$("#"+n).change()});$("#"+n).attr("readonly","readonly");$("#"+n).addClass("noborder");$("label[for='"+n+"']").attr("id","lbl-"+n);var o=$("#"+t).parent().find(".slider-track > .slider-handle:eq(0)");o.attr("aria-labelledby","lbl-"+n);o.attr("aria-valuemax",u);o.attr("aria-valuemin",r);o.attr("aria-valuenow",i);o.attr("aria-valuetext",i+" "+e);o.attr("tabindex","0");o.attr("role","slider");$("#"+t).parent().find(".slider-track > .slider-handle:eq(0)").on("keydown",function(i){i=i||window.event;var e;i.keyCode==cityWay.keys.leftArrow?(e=Number(o.attr("aria-valuenow"))-f,e>=r&&cityWay.forms.setValueSlider(n,t,e)):i.keyCode==cityWay.keys.rightArrow&&(e=Number(o.attr("aria-valuenow"))+f,e<=u&&cityWay.forms.setValueSlider(n,t,Number(o.attr("aria-valuenow"))+f))})};cityWay.forms.setValueSlider=function(n,t,i){$("#"+n).val(i);$("#"+t).slider("setValue",i);var r=$("#"+t).parent().find(".slider-track > .slider-handle:eq(0)");r.attr("aria-valuenow",i);$("#"+n).change()};cityWay.forms.bindCheckboxToggle=function(n,t){"use strict";var i=$(n),r=$(t).find(":checkbox"),u;if(i.size()!=0&&r.size()!=0){u=!1;i.is(":checkbox")&&(u=i.is(":checked"),i.prop("checked",u));i.data("checked",u);i.on("click",function(){var n=$(this),t=!n.data("checked");return r.prop("checked",t),!0});r.on("click",function(){var n=$(this);return n.is(":checked")?r.is(":not(:checked)")?(i.data("checked",!1),i.prop("checked",!1),!0):(i.data("checked",!0),i.prop("checked",!0),!0):(i.data("checked",!1),i.prop("checked",!1),!0)})}};cityWay.forms.ajaxSubmit=function(n){"use strict";$(n).submit(function(n){n.preventDefault();var t=$(this);t.find("[type=submit]").prop("disabled","disabled");$.ajax({url:t.attr("action"),async:!1,type:t.attr("method"),data:t.serialize(),headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(n){t.parent().empty().html(n)}})})};cityWay.networkstate={};cityWay.networkstate.loadPartialLineResult=function(n){$.ajax({url:"./PartialLineResult",type:"POST",data:{territoryId:n,dateValue:0},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(n){$("#vehicleJourney").empty();$("#lineName").empty();$("#lineList").empty();$("#lineList").html(n)}})};cityWay.networkstate.territoryLinkClicked=function(n,t,i){$.ajax({url:"./PartialLineResult",type:"POST",data:{territoryId:n,dateValue:t},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(t){var r=$("#link_territory"+n).text();$("#territoyName").html(i+" : "+r);$("#vehicleJourney").empty();$("#lineName").empty();$("#lineList").empty();$("#lineList").html(t);window.location.href="#territoyName"}})};cityWay.networkstate.lineLinkClicked=function(n,t,i,r){$.ajax({url:"./PartialVehicleJourneyResult",type:"POST",headers:{wlCode:sessionStorage.getItem("wlCode")},data:{lineId:n,dateValue:t},success:function(t){var u=$("#line_"+n).text();$("#lineName").html(i+" "+r+" : "+u);$("#vehicleJourney").empty();$("#vehicleJourney").html(t);window.location.href="#lineName"}})};cityWay.networkstate.selectPeriode=function(n){var t=parseInt(n.options[n.selectedIndex].value);$.ajax({url:"./PartialTerritoriesResult",type:"POST",headers:{wlCode:sessionStorage.getItem("wlCode")},data:{dateValue:t},success:function(n){$("#territoriesList").empty();$("#vehicleJourney").empty();$("#lineName").empty();$("#lineList").empty();$("#territoyName").empty();$("#territoriesList").html(n)}})};$(function(){cityWay.FavoriteManager=function(){"use strict";function e(n,t){var e,f,i,u;t=t||{};e=t.errorMessage||"Error";$(n).on("click","a.selectable",function(n){n.preventDefault();var t=$(this),f=t.data("text-target"),p=t.data("value-target"),w=t.data("lat-target"),b=t.data("lng-target"),k=t.data("num-target"),i=$(f),o=$(p),s=$(w),h=$(b),c=$(k),l=t.data("value"),u=l.split("_");$("body").addClass("wait");var a=parseInt(u[0]),v=parseInt(u[1]),y=parseInt(u[2])||0;if(isNaN(a)||isNaN(v)){error();return}i.attr("data-autocomplete")?i.typeahead("val",t.html()):i.val(t.html());o.val(l);s.val(t.data("lat"));h.val(t.data("lng"));c.val(y);r(a,v,y,f.replace("#",""),t,i,o,e,s,h,c,t.data("lat"),t.data("lng"))});if(f=t.favoriteToggleUrl,!!f){i=function(n){if(!!n&&n.size()!=0){var i=n.data("action"),r=n.data("value");$.ajax(f,{type:"POST",dataType:"html",data:n.data(),headers:{wlCode:sessionStorage.getItem("wlCode")},beforeSend:function(){$("body").addClass("wait")}}).then(function(u){if(n.parents("ul").empty().append(u),i!=cityWay.FavoriteManager.Actions.GetAll){cityWay.eventManager.publish(cityWay.events.favorites.pointChanged,r,n);var f=t.dropDownTrigger;if(!!f)$(f).addClass("update-success pulse-once").one(cityWay.events.animations.end,function(){$(this).removeClass("update-success pulse-once")})}}).fail(function(){var i=$("<div/>").addClass("required").append($("<span/>").html(t.favoriteErrorMessage||"Error")).insertAfter($(n.data("text-target")).parent());setTimeout(function(){i.hide("slow").remove()},5e3)}).always(function(){$("body").removeClass("wait")})}};$(n).on("click","a.favorite",function(n){n.preventDefault();i($(this))});cityWay.eventManager.subscribe(cityWay.events.journeyPlanner.searchFormChanged,function(t,r){var u=$(n).find("a.data-reference[data-text-target=#"+t+"]"),f;u.size()>0&&(!r||(f="",r.Number>0&&(f="_"+r.Number,$(u.data("num-target")).val(r.Number)),u.data({value:r.Id+"_"+r.TypePoint+f,lng:r.Longitude,lat:r.Latitude})),i(u))});cityWay.eventManager.subscribe(cityWay.events.favorites.pointChanged,function(t,r){if(!!r){var u=r.data("text-target");$(n).find("a.data-reference").each(function(){var n=$(this);n.data("text-target")!=u&&(n.data("value",$(n.data("value-target")).val()),i(n))})}});cityWay.eventManager.subscribe(cityWay.events.map.departureSelected,function(n,t,i,r){u(n,r,"KeywordDep")});cityWay.eventManager.subscribe(cityWay.events.map.arrivalSelected,function(n,t,i,r){u(n,r,"KeywordArr")});cityWay.eventManager.subscribe(cityWay.events.map.viaSelected,function(n,t,i,r){u(n,r,"KeywordVia")});u=function(t,r,u){var e=$(n).find("a.data-reference[data-text-target=#"+u+"]"),f;e.data({value:r,lng:t.longitude,lat:t.latitude});i(e);f={Id:t.id,TypePoint:t.pointType,Number:t.Number};(t.pointType==cityWay.pointType.physicalStop||t.pointType==cityWay.pointType.logicalStop)&&(f.Id=t.logicalId,f.TypePoint=cityWay.pointType.logicalStop);cityWay.eventManager.publish(cityWay.events.favorites.journeyHasToChange,u,f)}}}function o(n,t){var u={get:function(){return null},set:function(){}},l=t.textSelector,a=t.valueSelector,y=t.errorMessage||"Error",v=["Dep","Arr","Via"],f=t.typeDateCb||u,e=t.algorithmCb||u,o=t.viaDurationCb||u,s,h,i,c;$(n).on("click","a.selectable",function(n){var s;n.preventDefault();var t=$(this),tt=t.data("lat-target"),it=t.data("lng-target"),rt=t.data("num-target");for(s=0;s<v.length;s++){var i=v[s],u=i.toLowerCase(),w=t.data(u+"-value"),h=$("#"+l+i),ut=$("#"+a+i),b=$("#"+tt+i),k=$("#"+it+i),d=$("#"+rt+i);h.attr("data-autocomplete")?h.typeahead("val",t.data(u+"-text")):h.val(t.data(u+"-text"));$("#"+a+i).val(w);b.val(t.data(u+"-lat"));k.val(t.data(u+"-lng"));var c=w.split("_"),p=parseInt(c[0])||0,g=parseInt(c[1])||0,nt=parseInt(c[2])||0;d.val(nt);p!=0&&g!=0&&r(p,g,nt,l+i,t,h,ut,y,b,k,d,t.data(u+"-lat"),t.data(u+"-lng"));u=="via"&&p!=0&&$("#linkAddVia").click()}f.set(t.data("dateType"));e.set(t.data("algorithm"));o.set(t.data("viaDuration"))});if(s=t.favoriteToggleUrl,!!s){h=function(n){if(!!n&&n.size()!=0){var i=n.data("action");n.data("dateType",f.get());n.data("viaDuration",o.get());n.data("algorithm",e.get());$.ajax(s,{type:"POST",dataType:"html",data:n.data(),headers:{wlCode:sessionStorage.getItem("wlCode")},beforeSend:function(){$("body").addClass("wait")},async:!1}).then(function(r){if(n.parents("ul").empty().append(r),i!=cityWay.FavoriteManager.Actions.GetAll){var u=t.dropDownTrigger;if(!!u)$(u).addClass("pulse-once").one(cityWay.events.animations.end,function(){$(this).removeClass("pulse-once")})}}).fail(function(){var i=$("<div/>").addClass("required").append($("<span/>").html(t.favoriteErrorMessage||"Error")).insertAfter(n.parents(".open:first"));setTimeout(function(){i.hide("slow").remove()},5e3)}).always(function(){$("body").removeClass("wait")})}};$(n).on("click","a.favorite",function(n){n.preventDefault();h($(this))});i={depValue:null,viaValue:null,arrValue:null,action:cityWay.FavoriteManager.Actions.GetAll};!t.initialValues||(i.depValue=t.initialValues.depValue||null,i.viaValue=t.initialValues.viaValue||null,i.arrValue=t.initialValues.arrValue||null);cityWay.eventManager.subscribe(cityWay.events.journeyPlanner.searchFormChanged,function(n,t){c(n,t)});c=function(t,r){var u=!r?null:r.Id+"_"+r.TypePoint,s;!u||isNaN(r.Number)||parseInt(r.Number)==0||(u+="_"+parseInt(r.Number));t==="KeywordDep"?i.depValue=u:t==="KeywordVia"?i.viaValue=u:t==="KeywordArr"&&(i.arrValue=u);s=$(n).find("a.data-reference");i.dateType=f.get();i.viaDuration=o.get();i.algorithm=e.get();s.data(i);cityWay.eventManager.publish(cityWay.events.favorites.journeyChanged,s)};cityWay.eventManager.subscribe(cityWay.events.favorites.journeyChanged,function(n){h(n)});cityWay.eventManager.subscribe(cityWay.events.favorites.journeyHasToChange,function(n,t){c(n,t)})}}function s(n,t){var i,r;if(t=t||{},i=t.favoriteToggleUrl,!!i){r=function(n){if(!!n&&n.size()!=0){var r=n.data("action"),u=n.data("value"),f=$("[data-include-Stops]").data("includeStops");f===1?n.data("includeStops","true"):n.data("includeStops","false");$.ajax(i,{async:!1,type:"POST",dataType:"html",data:n.data(),headers:{wlCode:sessionStorage.getItem("wlCode")},beforeSend:function(){$("body").addClass("wait")}}).then(function(i){if(n.parents("ul").empty().append(i),r!=cityWay.FavoriteManager.Actions.GetAll){cityWay.eventManager.publish(cityWay.events.favorites.pointChanged,u,n);var f=t.dropDownTrigger;if(!!f)$(f).addClass("update-success pulse-once").one(cityWay.events.animations.end,function(){$(this).removeClass("update-success pulse-once")})}}).fail(function(){var i=$("<div/>").addClass("required").append($("<span/>").html(t.favoriteErrorMessage||"Error")).insertAfter($(n.data("text-target")).parent());setTimeout(function(){i.hide("slow").remove()},5e3)}).always(function(){$("body").removeClass("wait")})}};$(n).on("click","a.favorite",function(n){n.preventDefault();r($(this))});cityWay.eventManager.subscribe(cityWay.events.journeyPlanner.searchFormChanged,function(t,i){var u=$(n).find("a.data-reference[data-text-target=#"+t+"]"),f;u.size()>0&&(!i||(f="",i.Number>0&&(f="_"+i.Number),u.data("value",i.Id+"_"+i.TypePoint+f)),r(u))})}}var n=this,u=function(n,t,r,u,f,e,o,s,h,c){t.Data?(t.Data.Number=o,cityWay.eventManager.publish(cityWay.events.journeyPlanner.searchFormChanged,n,t.Data,o),u.change(),f.change(),s.change(),h.change(),c.change()):i(r,u,f,e,s,h,c)},i=function(n,t,i,r,u,f,e){var o,s;if(t.val(""),i.val(""),u.val(""),f.val(""),e.val(""),n.addClass("strike").removeClass("selectable").removeAttr("href"),o=t.parents("div:first"),$(".error-message",o.parent()).size()==0){s=$("<div/>").addClass("required error-message").append($("<span/>").html(r)).insertAfter(o);t.one("change keydown keyup",function(){s.hide("slow");s.remove()})}cityWay.eventManager.publish(cityWay.events.journeyPlanner.searchFormChanged,t.selector.replace("#",""),null);$("body").removeClass("wait")},f=function(){$("body").removeClass("wait")},t=function(){$("body").addClass("wait")},r=function(n,r,e,o,s,h,c,l,a,v,y,p,w){var b;return b=r==cityWay.pointType.roadLink?cityWay.mapDataService.getStreet(n,{beforeSend:t}):r==cityWay.pointType.address?cityWay.mapDataService.getRoad(n,e,p,w,{beforeSend:t}):cityWay.mapDataService.getPoint(n,r,{beforeSend:t}),b.then(function(n){u(o,n,s,h,c,l,e,a,v,y)}).fail(function(){i(s,h,c,l,a,v,y)}).always(f),b};return n.bindJourneyPlannerDropdown=e,n.bindFavoritesJourneysDropdown=o,n.bindJourneyNearByDropdown=s,n};cityWay.FavoriteManager.Actions={Add:"Add",Remove:"Remove",GetAll:"GetAll"}});cityWay.modules.favorite=function(n){function t(t){cityWay.config.urls.favoriteStop!=null&&cityWay.config.urls.favoriteStop!=""&&n.ajax(cityWay.config.urls.favoriteStop+t,{cache:!1,headers:{wlCode:sessionStorage.getItem("wlCode")},beforeSend:function(){n("body").addClass("wait")},success:function(t){n(".favorite-stops").html(t);n(".favorite-stops-trigger").addClass("update-success pulse-once").one(cityWay.events.animations.end,function(){n(this).removeClass("update-success pulse-once")})},complete:function(){n("body").removeClass("wait")}})}function i(t){cityWay.config.urls.favoriteLine!=null&&cityWay.config.urls.favoriteLine!=""&&n.ajax(cityWay.config.urls.favoriteLine+t,{cache:!1,beforeSend:function(){n("body").addClass("wait")},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(t){n(".favorite-lines").html(t);n(".favorite-lines-trigger").addClass("update-success pulse-once").one(cityWay.events.animations.end,function(){n(this).removeClass("update-success pulse-once")})},complete:function(){n("body").removeClass("wait")}})}function r(t,i,r,u){cityWay.config.urls.favoriteJourneyLink!=null&&cityWay.config.urls.favoriteJourneyLink!=""&&n.ajax(cityWay.config.urls.favoriteJourneyLink,{cache:!1,data:{depValue:t,arrValue:i,viaValue:r,messageContainer:u},beforeSend:function(){n("body").addClass("wait")},headers:{wlCode:sessionStorage.getItem("wlCode")},success:function(t){t!=null&&n("[data-link-journey]").html(t)},complete:function(){n("body").removeClass("wait")}})}return{reloadStopList:t,reloadLineList:i,reloadJourneyLink:r}}(jQuery);cityWay.links.ajaxLoad("[data-action-favorite-line] a",$("[data-action-favorite-line]").parent(),function(n,t,i,r,u,f){var s=$(f).data("id"),e=$("[data-container-message='"+$(f).data("container")+"']"),o=$(f).data("other-container");o!=""&&e.detach().appendTo(o);$(document).trigger(cityWay.events.favorites.pointChanged);cityWay.eventManager.publish(cityWay.events.favorites.lineChanged,s,n);e.size()>0&&setTimeout(function(){e.slideUp("slow",function(){$(this).remove()})},3e3)});cityWay.links.ajaxLoad("[data-action-favorite-stop] a",$("[data-action-favorite-stop]").parent(),function(n,t,i,r,u,f){var s=$(f).data("id"),e=$("[data-container-message='"+$(f).data("container")+"']"),o=$(f).data("other-container");o!=""&&e.detach().appendTo(o);$(document).trigger(cityWay.events.favorites.pointChanged);cityWay.eventManager.publish(cityWay.events.favorites.stopChanged,s,n);e.size()>0&&setTimeout(function(){e.slideUp("slow",function(){$(this).remove()})},3e3)});cityWay.links.ajaxLoad("[data-action-favorite-place] a",$("[data-action-favorite-place]").parent(),function(n,t,i,r,u,f){var e=$("[data-container-message='"+$(f).data("container")+"']");$(document).trigger(cityWay.events.favorites.pointChanged);e.size()>0&&setTimeout(function(){e.slideUp("slow",function(){$(this).remove()})},3e3)});cityWay.links.ajaxLoad("[data-action-favorite-journey] a",$("[data-action-favorite-journey]").parent(),function(n,t,i,r,u,f){var e=$("[data-container-message='"+$(f).data("container")+"']"),o=$(f).data("other-container");o!=""&&e.detach().appendTo(o);$(document).trigger(cityWay.events.favorites.journeyChanged);e.size()>0&&setTimeout(function(){e.slideUp("slow",function(){$(this).remove()})},3e3)});$(function(){function r(n){n.removeClass("check-password-invalid");n.removeClass("check-password-checked")}function u(n,t){n?(t.removeClass("check-password-invalid"),t.addClass("check-password-checked")):(t.removeClass("check-password-checked"),t.addClass("check-password-invalid"))}function o(){return $("[data-check-password]").length&&($("[data-check-password] > li.check-password-invalid").length===0&&$("[data-check-password] > li.check-password-checked").length===0||$("[data-check-password] > li.check-password-invalid").length>0)?!1:!0}function e(){$("[data-check-password]").parent().removeClass("hidden");$("[data-check-password]").parent().attr("aria-hidden","false");$("[data-info-check-pass='sr-only']").text("")}var n={charLength:$("[data-check-pass='length']"),lowercase:$("[data-check-pass='lowercase']"),uppercase:$("[data-check-pass='uppercase']"),symbols:$("[data-check-pass='symbols']"),number:$("[data-check-pass='number']"),login:$("[data-check-pass='login']")},t;if($("#signup_form").submit(function(){return o()?!0:(e(),$("#Password").parent().parent().addClass("has-error"),!1)}),$("#editprofil_form").submit(function(){if($("#Password").val()!="")return o()?!0:(e(),$("#Password").parent().parent().addClass("has-error"),!1)}),t={charLength:function(n,t){if(n.value.length>=t)return!0},lowercase:function(n){if(/^(?=.*[a-z]).+$/.test(n.value))return!0},uppercase:function(n){if(/^(?=.*[A-Z]).+$/.test(n.value))return!0},number:function(n){if(/^(?=.*[0-9]).+$/.test(n.value))return!0},symbols:function(n){if(/^(?=.*[-!$%^&*()_+|~=`{}:;<>?,.@#]).+$/.test(n.value))return!0},login:function(n,t){return t.value==""?!0:n.value.indexOf(t.value)!=-1?!1:!0}},$("[data-check-password]").length){var i=$("[data-check-password]")[0],s=$("[data-check-password]").data("check-password"),f=$("#"+s).parent().find("input");f.on("keyup",function(){var f=$(this)[0],e;f.value==""?(r(n.lowercase),r(n.uppercase),r(n.charLength),r(n.number),r(n.symbols),r(n.login)):(i.hasAttribute("data-check-lowercase")&&u(t.lowercase(f),n.lowercase),i.hasAttribute("data-check-uppercase")&&u(t.uppercase(f),n.uppercase),i.hasAttribute("data-check-length")&&u(t.charLength(f,$("[data-check-password]").attr("data-check-length")),n.charLength),i.hasAttribute("data-check-number")&&u(t.number(f),n.number),i.hasAttribute("data-check-symbols")&&u(t.symbols(f),n.symbols),i.hasAttribute("data-check-login")&&(e=$("#"+$("[data-check-password]").attr("data-check-login"))[0],u(t.login(f,e),n.login)))});f.on("focusin",function(){e()});f.on("focusout",function(){$("[data-check-password]").parent().addClass("hidden");$("[data-check-password]").parent().attr("aria-hidden","true");var n="";$("[data-check-password] > li.check-password-invalid").each(function(){n+=$(this)[0].innerText+" "});$("[data-info-check-pass='sr-only']").text(n);n==""?$(this).attr("aria-invalid","false"):$(this).attr("aria-invalid","true")})}});$(function(){function n(n,t,i){var r=new Date(n),u=new Date(n),f=t.split(":"),e=i.split(":");return r.setHours(f[0]),r.setMinutes(f[1]),r.setSeconds(f[2]),u.setHours(e[0]),u.setMinutes(e[1]),u.setSeconds(e[2]),r.getTime()<=n.getTime()&&n.getTime()<=u.getTime()}$("body").on("click","[data-share]",function(){var n=$(this).data("format-url"),t=$(this).data("section");n=cityWay.tools.replaceAll(n,"%URL%",encodeURI(window.location.href));n=cityWay.tools.replaceAll(n,"%SECTION%",t);$(this).attr("href",n)});cityWay.formatParkingInfos=function(t){var e=t.OpeningPeriods,f=e[0],o=" ",i=cityWay.texts.map.Label_Parking_OpeningPeriod,r=f.OpeningPeriodHours[0],s=new Date,c=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],l=s.getDay(),u="text-danger bold",h,a;if(f.DayOfWeekValidityList[0]=="Semaine")f.OpeningPeriodHours&&(n(s,r.EntranceStartHour,r.ExitEndHour)&&(u="text-success bold"),i=i.replace("{0}",'<span class="'+u+'">'+r.FormattedEntranceHour+"<\/span>"),i=i.replace("{1}",'<span class="'+u+'">'+r.FormattedExitHour+"<\/span>"),o+=cityWay.texts.map.Label_Parking_AllDays+" "+i);else if(e.length>1){h='<ul class="list-unstyled">';for(a in e)u="text-danger bold",i=cityWay.texts.map.Label_Parking_OpeningPeriod,f=e[a],r=f.OpeningPeriodHours[0],c[l]==f.DayOfWeekValidityList[0]&&n(s,r.EntranceStartHour,r.ExitEndHour)&&(u="text-success bold"),i=i.replace("{0}",'<span class="'+u+'">'+r.FormattedEntranceHour+"<\/span>"),i=i.replace("{1}",'<span class="'+u+'">'+r.FormattedExitHour+"<\/span>"),h+="<li>"+f.DayOfWeekValidityList[0]+" "+i+"<\/li>";h+="<\/ul>";o+=h}else c[l]==f.DayOfWeekValidityList[0]&&n(s,r.EntranceStartHour,r.ExitEndHour)&&(u="text-success bold"),i=i.replace("{0}",'<span class="'+u+'">'+r.FormattedEntranceHour+"<\/span>"),i=i.replace("{1}",'<span class="'+u+'">'+r.FormattedExitHour+"<\/span>"),o+=f.DayOfWeekValidityList[0]+" "+i;return o}})