function scaleSlides(n,t,i){for(var u=t>0?t:maxWidth,f=i>0?i:maxHeight,r=0;r<n.length;r++)scaleSlide(n[r].id,u,f)}function scaleSlide(n,t,i){var f=t>0?t:maxWidth,u=i>0?i:maxHeight,e=1,r,s,o;r=getNaturalSlideDimensions(n),r.h>u||r.w>f?e=r.h/u>r.w/f?u/r.h:f/r.w:r.h<u&&r.w<f&&(e=r.h/u<r.w/f?f/r.w:u/r.h),s=r.h*e,o=r.w*e,document.getElementById(n).height=s,document.getElementById(n).width=o,jQuery("#"+n).css("margin-top",(u-s)/2+"px"),jQuery("#"+n).css("margin-left",(f-o)/2+"px")}function getNaturalSlideDimensions(n){var i=jQuery("#"+n).naturalHeight(),t=jQuery("#"+n).naturalWidth();return{h:i,w:t}}function exists(n){return typeof n!="undefined"}function testCSS(n){return n in document.documentElement.style}function trace(n,t){document.getElementById("console")&&(document.getElementById("console").innerHTML+=n+"<br />"),exists(console)&&console.log(n,t)}function ltrim(n){for(var t=0;t<n.length&&n[t]===" ";)t+=1;return n.substring(t,n.length)}function rtrim(n){for(var t=n.length-1;t>0&&n[t]===" ";)t-=1;return n.substring(0,t+1)}var RealtimeMessaging,jwplayer,$jw,_userPlayerReady,maxHeight,maxWidth,alertClasses,browserType,UTILS;(function(n,t){function eu(n){var r=hr[n]={},t,i;for(n=n.split(/\s+/),t=0,i=n.length;t<i;t++)r[n[t]]=!0;return r}function vr(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(lr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNumeric(u)?parseFloat(u):cr.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function st(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function er(n,t,r){var e=t+"defer",o=t+"queue",u=t+"mark",f=i._data(n,e);!f||r!=="queue"&&i._data(n,o)||r!=="mark"&&i._data(n,u)||setTimeout(function(){i._data(n,o)||i._data(n,u)||(i.removeData(n,e,!0),f.fire())},0)}function h(){return!1}function b(){return!0}function nr(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function bi(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(kf.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function wi(n){var i=ki.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function uf(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function dt(n,t){if(t.nodeType===1&&i.hasData(n)){var f,u,o,s=i._data(n),e=i._data(t,s),r=s.events;if(r){delete e.handle,e.events={};for(f in r)for(u=0,o=r[f].length;u<o;u++)i.event.add(t,f+(r[f][u].namespace?".":"")+r[f][u].namespace,r[f][u],r[f][u].data)}e.data&&(e.data=i.extend({},e.data))}}function kt(n,t){var r;t.nodeType===1&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(n),r=t.nodeName.toLowerCase(),r==="object"?t.outerHTML=n.outerHTML:r==="input"&&(n.type==="checkbox"||n.type==="radio")?(n.checked&&(t.defaultChecked=t.checked=n.checked),t.value!==n.value&&(t.value=n.value)):r==="option"?t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue),t.removeAttribute(i.expando))}function w(n){return typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName("*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll("*"):[]}function wt(n){(n.type==="checkbox"||n.type==="radio")&&(n.defaultChecked=n.checked)}function bt(n){var t=(n.nodeName||"").toLowerCase();t==="input"?wt(n):t!=="script"&&typeof n.getElementsByTagName!="undefined"&&i.grep(n.getElementsByTagName("input"),wt)}function sf(n){var t=r.createElement("div");return at.appendChild(t),t.innerHTML=n.outerHTML,t.firstChild}function bu(n,t){t.src?i.ajax({url:t.src,async:!1,dataType:"script"}):i.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ef,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function yt(n,t,r){var u=t==="width"?n.offsetWidth:n.offsetHeight,e=t==="width"?gu:lf,f=0,o=e.length;if(u>0){if(r!=="border")for(;f<o;f++)r||(u-=parseFloat(i.css(n,"padding"+e[f]))||0),r==="margin"?u+=parseFloat(i.css(n,r+e[f]))||0:u-=parseFloat(i.css(n,"border"+e[f]+"Width"))||0;return u+"px"}if(u=l(n,t,t),(u<0||u==null)&&(u=n.style[t]||0),u=parseFloat(u)||0,r)for(;f<o;f++)u+=parseFloat(i.css(n,"padding"+e[f]))||0,r!=="padding"&&(u+=parseFloat(i.css(n,"border"+e[f]+"Width"))||0),r==="margin"&&(u+=parseFloat(i.css(n,r+e[f]))||0);return u+"px"}function ai(n){return function(t,r){if(typeof t!="string"&&(r=t,t="*"),i.isFunction(r))for(var s=t.toLowerCase().split(hi),e=0,h=s.length,u,o,f;e<h;e++)u=s[e],f=/^\+/.test(u),f&&(u=u.substr(1)||"*"),o=n[u]=n[u]||[],o[f?"unshift":"push"](r)}}function p(n,i,r,u,f,e){f=f||i.dataTypes[0],e=e||{},e[f]=!0;for(var h=n[f],c=0,l=h?h.length:0,s=n===rt,o;c<l&&(s||!o);c++)o=h[c](i,r,u),typeof o=="string"&&(!s||e[o]?o=t:(i.dataTypes.unshift(o),o=p(n,i,r,u,o,e)));return!s&&o||e["*"]||(o=p(n,i,r,u,"*",e)),o}function lt(n,r){var u,f,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);f&&i.extend(!0,n,f)}function et(n,t,r,u){if(i.isArray(t))i.each(t,function(t,f){r||gf.test(n)?u(n,f):et(n+"["+(typeof f=="object"||i.isArray(f)?t:"")+"]",f,r,u)});else if(r||t==null||typeof t!="object")u(n,t);else for(var f in t)et(n+"["+f+"]",t[f],r,u)}function ru(n,i,r){var h=n.contents,f=n.dataTypes,c=n.responseFields,o,u,e,s;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("content-type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return e!==f[0]&&f.unshift(e),r[e]}function iu(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,f=v[0],h,y,u,o,e,c=1;c<p;c++){if(c===1)for(l in n.converters)typeof l=="string"&&(s[l.toLowerCase()]=n.converters[l]);if(h=f,f=v[c],f==="*")f=h;else if(h!=="*"&&h!==f){if(y=h+" "+f,u=s[y]||s["* "+f],!u){e=t;for(o in s)if(a=o.split(" "),(a[0]===h||a[0]==="*")&&(e=s[a[1]+" "+f],e)){o=s[o],o===!0?u=e:e===!0&&(u=o);break}}u||e||i.error("No conversion from "+y.replace(" "," to ")),u!==!0&&(r=u?u(r):e(o(r)))}}return r}function ti(){try{return new n.XMLHttpRequest}catch(t){}}function cu(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function oi(){return setTimeout(uu,0),tt=i.now()}function uu(){tt=t}function a(n,t){var r={};return i.each(ui.concat.apply([],ui.slice(0,t)),function(){r[this]=n}),r}function ei(n){if(!ht[n]){var e=r.body,t=i("<"+n+">").appendTo(e),u=t.css("display");t.remove(),(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),c&&f.createElement||(c=(f.contentWindow||f.contentDocument).document,c.write((r.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),c.close()),t=c.createElement(n),c.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f)),ht[n]=u}return ht[n]}function it(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var r=n.document,ou=n.navigator,su=n.location,i=function(){function l(){if(!i.isReady){try{r.documentElement.doScroll("left")}catch(n){setTimeout(l,1);return}i.ready()}}var i=function(n,t){return new i.fn.init(n,t,p)},g=n.jQuery,it=n.$,p,tt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,w=/\S/,y=/^\s+/,b=/\s+$/,k=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rt=/^[\],:{}\s]*$/,ft=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ot=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,st=/(?:^|:|,)(?:\s*\[)+/g,et=/(webkit)[ \/]([\w.]+)/,ut=/(opera)(?:.*version)?[ \/]([\w.]+)/,nt=/(msie) ([\w.]+)/,at=/(mozilla)(?:.*? rv:([\w.]+))?/,vt=/-([a-z]|[0-9])/ig,lt=/^-ms-/,ht=function(n,t){return(t+"").toUpperCase()},ct=ou.userAgent,e,o,u,d=Object.prototype.toString,s=Object.prototype.hasOwnProperty,h=Array.prototype.push,f=Array.prototype.slice,a=String.prototype.trim,v=Array.prototype.indexOf,c={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){if(o=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:tt.exec(n),o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=k.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1,this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?h.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.add(n),this},eq:function(n){return n=+n,n===-1?this.slice(n):this.slice(n,n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var s,e,u,r,h,c,n=arguments[0]||{},f=1,l=arguments.length,o=!1;for(typeof n=="boolean"&&(o=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(o&&r&&(i.isPlainObject(r)||(h=i.isArray(r)))?(h?(h=!1,c=u&&i.isArray(u)?u:[]):c=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(o,c,r)):r!==t&&(n[e]=r));return n},i.extend({noConflict:function(t){return n.$===i&&(n.$=it),t&&n.jQuery===i&&(n.jQuery=g),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0&&!--i.readyWait||n!==!0&&!i.isReady){if(!r.body)return setTimeout(i.ready,1);if(i.isReady=!0,n!==!0&&--i.readyWait>0)return;o.fireWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=i.Callbacks("once memory"),r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u),n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&l()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):c[d.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!s.call(n,"constructor")&&!s.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}var r;for(r in n);return r===t||s.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseJSON:function(t){if(typeof t!="string"||!t)return null;if(t=i.trim(t),n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(rt.test(t.replace(ft,"@").replace(ot,"]").replace(st,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&w.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lt,"ms-").replace(vt,ht)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var e,f=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(e in n)if(r.apply(n[e],u)===!1)break}else for(;f<o;)if(r.apply(n[f++],u)===!1)break}else if(s){for(e in n)if(r.call(n[e],e,n[e])===!1)break}else for(;f<o;)if(r.call(n[f],f,n[f++])===!1)break;return n},trim:a?function(n){return n==null?"":a.call(n)}:function(n){return n==null?"":n.toString().replace(y,"").replace(b,"")},makeArray:function(n,t){var u=t||[],r;return n!=null&&(r=i.type(n),n.length==null||r==="string"||r==="function"||r==="regexp"||i.isWindow(n)?h.call(u,n):i.merge(u,n)),u},inArray:function(n,t,i){var r;if(t){if(v)return v.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var u=n.length,r=0,f;if(typeof i.length=="number")for(f=i.length;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var f=[],e,r,u;for(i=!!i,r=0,u=n.length;r<u;r++)e=!!t(n[r],r),i!==e&&f.push(n[r]);return f},map:function(n,r,u){var o,h,f=[],s=0,e=n.length,c=n instanceof i||e!==t&&typeof e=="number"&&(e>0&&n[0]&&n[e-1]||e===0||i.isArray(n));if(c)for(;s<e;s++)o=r(n[s],s,u),o!=null&&(f[f.length]=o);else for(h in n)o=r(n[h],h,u),o!=null&&(f[f.length]=o);return f.concat.apply([],f)},guid:1,proxy:function(n,r){var e,o,u;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(o=f.call(arguments,2),u=function(){return n.apply(r,o.concat(f.call(arguments)))},u.guid=n.guid=n.guid||u.guid||i.guid++,u)},access:function(n,r,u,f,e,o){var c=n.length,h,s;if(typeof r=="object"){for(h in r)i.access(n,h,r[h],f,e,u);return n}if(u!==t){for(f=!o&&f&&i.isFunction(u),s=0;s<c;s++)e(n[s],r,f?u.call(n[s],s,e(n[s],r)):u,o);return n}return c?e(n[0],r):t},now:function(){return+new Date},uaMatch:function(n){n=n.toLowerCase();var t=et.exec(n)||ut.exec(n)||nt.exec(n)||n.indexOf("compatible")<0&&at.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),n.fn.constructor=n,n.sub=this.sub,n.fn.init=function(r,u){return u&&u instanceof i&&!(u instanceof n)&&(u=n(u)),i.fn.init.call(this,r,u,t)},n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){c["[object "+t+"]"]=t.toLowerCase()}),e=i.uaMatch(ct),e.browser&&(i.browser[e.browser]=!0,i.browser.version=e.version),i.browser.webkit&&(i.browser.safari=!0),w.test(" ")&&(y=/^[\s\xA0]+/,b=/[\s\xA0]+$/),p=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1),i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),hr={},k,cr,lr,ri,y,d,ii,v,fi,ot;i.Callbacks=function(n){n=n?hr[n]||eu(n):{};var r=[],f=[],u,s,c,h,e,l=function(t){for(var u,e,h,f=0,s=t.length;f<s;f++)u=t[f],e=i.type(u),e==="array"?l(u):e==="function"&&(n.unique&&o.has(u)||r.push(u))},a=function(t,i){for(i=i||[],u=!n.memory||[t,i],s=!0,e=c||0,c=0,h=r.length;r&&e<h;e++)if(r[e].apply(t,i)===!1&&n.stopOnFalse){u=!0;break}s=!1,r&&(n.once?u===!0?o.disable():r=[]:f&&f.length&&(u=f.shift(),o.fireWith(u[0],u[1])))},o={add:function(){if(r){var n=r.length;l(arguments),s?h=r.length:u&&u!==!0&&(c=n,a(u[0],u[1]))}return this},remove:function(){var t;if(r)for(var u=arguments,i=0,f=u.length;i<f;i++)for(t=0;t<r.length;t++)if(u[i]===r[t]&&(s&&t<=h&&(h--,t<=e&&e--),r.splice(t--,1),n.unique))break;return this},has:function(n){if(r)for(var t=0,i=r.length;t<i;t++)if(n===r[t])return!0;return!1},empty:function(){return r=[],this},disable:function(){return r=f=u=t,this},disabled:function(){return!r},lock:function(){return f=t,u&&u!==!0||o.disable(),this},locked:function(){return!f},fireWith:function(t,i){return f&&(s?n.once||f.push([t,i]):n.once&&u||a(t,i)),this},fire:function(){return o.fireWith(this,arguments),this},fired:function(){return!!u}};return o},k=[].slice,i.extend({Deferred:function(n){var u=i.Callbacks("once memory"),o=i.Callbacks("once memory"),e=i.Callbacks("memory"),s="pending",h={resolve:u,reject:o,notify:e},f={done:u.add,fail:o.add,progress:e.add,state:function(){return s},isResolved:u.fired,isRejected:o.fired,then:function(n,i,r){return t.done(n).fail(i).progress(r),this},always:function(){return t.done.apply(t,arguments).fail.apply(t,arguments),this},pipe:function(n,r,u){return i.Deferred(function(f){i.each({done:[n,"resolve"],fail:[r,"reject"],progress:[u,"notify"]},function(n,r){var e=r[0],o=r[1],u;i.isFunction(e)?t[n](function(){u=e.apply(this,arguments),u&&i.isFunction(u.promise)?u.promise().then(f.resolve,f.reject,f.notify):f[o+"With"](this===t?f:this,[u])}):t[n](f[o])})}).promise()},promise:function(n){if(n==null)n=f;else for(var t in f)n[t]=f[t];return n}},t=f.promise({}),r;for(r in h)t[r]=h[r].fire,t[r+"With"]=h[r].fireWith;return t.done(function(){s="resolved"},o.disable,e.lock).fail(function(){s="rejected"},u.disable,e.lock),n&&n.call(t,t),t},when:function(n){function h(n){return function(i){u[n]=arguments.length>1?k.call(arguments,0):i,--e||t.resolveWith(t,u)}}function c(n){return function(i){o[n]=arguments.length>1?k.call(arguments,0):i,t.notifyWith(s,o)}}var u=k.call(arguments,0),r=0,f=u.length,o=new Array(f),e=f,l=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred(),s=t.promise();if(f>1){for(;r<f;r++)u[r]&&u[r].promise&&i.isFunction(u[r].promise)?u[r].promise().then(h(r),t.reject,c(r)):--e;e||t.resolveWith(t,u)}else t!==n&&t.resolveWith(t,f?[n]:[]);return s}}),i.support=function(){var u,y,o,v,a,f,h,e,c,k,l,p,s,t=r.createElement("div"),b=r.documentElement;if(t.setAttribute("className","t"),t.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",y=t.getElementsByTagName("*"),o=t.getElementsByTagName("a")[0],!y||!y.length||!o)return{};v=r.createElement("select"),a=v.appendChild(r.createElement("option")),f=t.getElementsByTagName("input")[0],u={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:f.value==="on",optSelected:a.selected,getSetAttribute:t.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},f.checked=!0,u.noCloneChecked=f.cloneNode(!0).checked,v.disabled=!0,u.optDisabled=!a.disabled;try{delete t.test}catch(w){u.deleteExpando=!1}if(!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),f=r.createElement("input"),f.value="t",f.setAttribute("type","radio"),u.radioValue=f.value==="t",f.setAttribute("checked","checked"),t.appendChild(f),e=r.createDocumentFragment(),e.appendChild(t.lastChild),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.appendChecked=f.checked,e.removeChild(f),e.appendChild(t),t.innerHTML="",n.getComputedStyle&&(h=r.createElement("div"),h.style.width="0",h.style.marginRight="0",t.style.width="2px",t.appendChild(h),u.reliableMarginRight=(parseInt((n.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(p in{submit:1,change:1,focusin:1})l="on"+p,s=l in t,s||(t.setAttribute(l,"return;"),s=typeof t[l]=="function"),u[p+"Bubbles"]=s;return e.removeChild(t),e=v=a=h=t=f=null,i(function(){var f,h,n,b,w,e,y,v,l,a,p,o=r.getElementsByTagName("body")[0];o&&(y=1,v="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",a="style='"+v+"border:5px solid #000;padding:0;'",p="<div "+a+"><div></div></div><table "+a+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",f=r.createElement("div"),f.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+y+"px",o.insertBefore(f,o.firstChild),t=r.createElement("div"),f.appendChild(t),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",c=t.getElementsByTagName("td"),s=c[0].offsetHeight===0,c[0].style.display="",c[1].style.display="none",u.reliableHiddenOffsets=s&&c[0].offsetHeight===0,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",i.boxModel=u.boxModel=t.offsetWidth===2,typeof t.style.zoom!="undefined"&&(t.style.display="inline",t.style.zoom=1,u.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="<div style='width:4px;'></div>",u.shrinkWrapBlocks=t.offsetWidth!==2),t.style.cssText=v+l,t.innerHTML=p,h=t.firstChild,n=h.firstChild,w=h.nextSibling.firstChild.firstChild,e={doesNotAddBorder:n.offsetTop!==5,doesAddBorderForTableAndCells:w.offsetTop===5},n.style.position="fixed",n.style.top="20px",e.fixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",h.style.overflow="hidden",h.style.position="relative",e.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,e.doesNotIncludeMarginInBodyOffset=o.offsetTop!==y,o.removeChild(f),t=f=null,i.extend(u,e))}),u}(),cr=/^(?:\{.*\}|\[.*\])$/,lr=/([A-Z])/g,i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!st(n)},data:function(n,r,u,f){if(i.acceptData(n)){var v,s,c,h=i.expando,y=typeof r=="string",l=n.nodeType,o=l?i.cache:n,e=l?n[h]:n[h]&&h,a=r==="events";if(e&&o[e]&&(a||f||o[e].data)||!y||u!==t)return(e||(l?n[h]=e=++i.uuid:e=h),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),v=s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a&&!s[r])?v.events:(y?(c=s[r],c==null&&(c=s[i.camelCase(r)])):c=s,c)}},removeData:function(n,t,r){if(i.acceptData(n)){var e,s,c,o=i.expando,h=n.nodeType,u=h?i.cache:n,f=h?n[o]:o;if(u[f]){if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)||(t in e?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" "))),s=0,c=t.length;s<c;s++)delete e[t[s]];if(!(r?st:i.isEmptyObject)(e))return}(r||(delete u[f].data,st(u[f])))&&(i.support.deleteExpando||!u.setInterval?delete u[f]:u[f]=null,h&&(i.support.deleteExpando?delete n[o]:n.removeAttribute?n.removeAttribute(o):n[o]=null))}}},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return!(t===!0||n.getAttribute("classid")!==t)}return!0}}),i.fn.extend({data:function(n,r){var u,s,e,f=null,o,h;if(typeof n=="undefined"){if(this.length&&(f=i.data(this[0]),this[0].nodeType===1&&!i._data(this[0],"parsedAttrs"))){for(s=this[0].attributes,o=0,h=s.length;o<h;o++)e=s[o].name,e.indexOf("data-")===0&&(e=i.camelCase(e.substring(5)),vr(this[0],e,f[e]));i._data(this[0],"parsedAttrs",!0)}return f}return typeof n=="object"?this.each(function(){i.data(this,n)}):(u=n.split("."),u[1]=u[1]?"."+u[1]:"",r===t?(f=this.triggerHandler("getData"+u[1]+"!",[u[0]]),f===t&&this.length&&(f=i.data(this[0],n),f=vr(this[0],n,f)),f===t&&u[1]?this.data(u[0]):f):this.each(function(){var f=i(this),t=[u[0],r];f.triggerHandler("setData"+u[1]+"!",t),i.data(this,n,r),f.triggerHandler("changeData"+u[1]+"!",t)}))},removeData:function(n){return this.each(function(){i.removeData(this,n)})}}),i.extend({_mark:function(n,t){n&&(t=(t||"fx")+"mark",i._data(n,t,(i._data(n,t)||0)+1))},_unmark:function(n,t,r){if(n!==!0&&(r=t,t=n,n=!1),t){r=r||"fx";var u=r+"mark",f=n?0:(i._data(t,u)||1)-1;f?i._data(t,u,f):(i.removeData(t,u,!0),er(t,r,"mark"))}},queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var u=i.queue(n,t),r=u.shift(),f={};r==="inprogress"&&(r=u.shift()),r&&(t==="fx"&&u.unshift("inprogress"),i._data(n,t+".run",f),r.call(n,function(){i.dequeue(n,t)},f)),u.length||(i.removeData(n,t+"queue "+t+".run",!0),er(n,t,"queue"))}}),i.fn.extend({queue:function(n,r){return(typeof n!="string"&&(r=n,n="fx"),r===t)?i.queue(this[0],n):this.each(function(){var t=i.queue(this,n,r);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){function o(){--h||c.resolveWith(u,[u])}typeof n!="string"&&(r=n,n=t),n=n||"fx";for(var c=i.Deferred(),u=this,f=u.length,h=1,s=n+"defer",l=n+"queue",a=n+"mark",e;f--;)(e=i.data(u[f],s,t,!0)||(i.data(u[f],l,t,!0)||i.data(u[f],a,t,!0))&&i.data(u[f],s,i.Callbacks("once memory"),!0))&&(h++,e.add(o));return o(),c.promise()}});var di=/[\n\t\r]/g,nt=/\s+/,vu=/\r/g,yu=/^(?:button|input)$/i,au=/^(?:button|input|object|select|textarea)$/i,lu=/^a(?:rea)?$/i,ur=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,fr=i.support.getSetAttribute,e,rr,ir;i.fn.extend({attr:function(n,t){return i.access(this,n,t,!0,i.attr)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,n,t,!0,i.prop)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t,delete this[n]}catch(i){}})},addClass:function(n){var u,e,s,t,f,r,o;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(n&&typeof n=="string")for(u=n.split(nt),e=0,s=this.length;e<s;e++)if(t=this[e],t.nodeType===1)if(t.className||u.length!==1){for(f=" "+t.className+" ",r=0,o=u.length;r<o;r++)~f.indexOf(" "+u[r]+" ")||(f+=u[r]+" ");t.className=i.trim(f)}else t.className=n;return this},removeClass:function(n){var o,e,h,r,u,f,s;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(n&&typeof n=="string"||n===t)for(o=(n||"").split(nt),e=0,h=this.length;e<h;e++)if(r=this[e],r.nodeType===1&&r.className)if(n){for(u=(" "+r.className+" ").replace(di," "),f=0,s=o.length;f<s;f++)u=u.replace(" "+o[f]+" "," ");r.className=i.trim(u)}else r.className="";return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var e,h=0,o=i(this),f=t,s=n.split(nt);e=s[h++];)f=u?f:!o.hasClass(e),o[f?"addClass":"removeClass"](e);else(r==="undefined"||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var r=" "+n+" ",t=0,i=this.length;t<i;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(di," ").indexOf(r)>-1)return!0;return!1},val:function(n){var r,u,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var o=i(this),f;this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.nodeName.toLowerCase()]||i.valHooks[this.type],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.nodeName.toLowerCase()]||i.valHooks[f.type],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(vu,""):u==null?"":u):void 0}}),i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,e,h,t,r=n.selectedIndex,s=[],u=n.options,f=n.type==="select-one";if(r<0)return null;for(e=f?r:0,h=f?r+1:u.length;e<h;e++)if(t=u[e],t.selected&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;s.push(o)}return f&&!s.length&&u.length?i(u[r]).val():s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var s,o,c,h=n.nodeType;if(n&&h!==3&&h!==8&&h!==2){if(f&&r in i.attrFn)return i(n)[r](u);if(typeof n.getAttribute=="undefined")return i.prop(n,r,u);if(c=h!==1||!i.isXMLDoc(n),c&&(r=r.toLowerCase(),o=i.attrHooks[r]||(ur.test(r)?rr:e)),u!==t){if(u===null){i.removeAttr(n,r);return}return o&&"set"in o&&c&&(s=o.set(n,u,r))!==t?s:(n.setAttribute(r,""+u),u)}return o&&"get"in o&&c&&(s=o.get(n,r))!==null?s:(s=n.getAttribute(r),s===null?t:s)}},removeAttr:function(n,t){var u,e,r,o,f=0;if(t&&n.nodeType===1)for(e=t.toLowerCase().split(nt),o=e.length;f<o;f++)r=e[f],r&&(u=i.propFix[r]||r,i.attr(n,r,""),n.removeAttribute(fr?r:u),ur.test(r)&&u in n&&(n[u]=!1))},attrHooks:{type:{set:function(n,t){if(yu.test(n.nodeName)&&n.parentNode)i.error("type property can't be changed");else if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}},value:{get:function(n,t){return e&&i.nodeName(n,"button")?e.get(n,t):t in n?n.value:null},set:function(n,t,r){if(e&&i.nodeName(n,"button"))return e.set(n,t,r);n.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var o,f,s,e=n.nodeType;if(n&&e!==3&&e!==8&&e!==2)return s=e!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(o=f.set(n,u,r))!==t?o:n[r]=u:f&&"get"in f&&(o=f.get(n,r))!==null?o:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):au.test(n.nodeName)||lu.test(n.nodeName)&&n.href?0:t}}}}),i.attrHooks.tabindex=i.propHooks.tabIndex,rr={get:function(n,r){var f,u=i.prop(n,r);return u===!0||typeof u!="boolean"&&(f=n.getAttributeNode(r))&&f.nodeValue!==!1?r.toLowerCase():t},set:function(n,t,r){var u;return t===!1?i.removeAttr(n,r):(u=i.propFix[r]||r,u in n&&(n[u]=!0),n.setAttribute(r,r.toLowerCase())),r}},fr||(ir={name:!0,id:!0},e=i.valHooks.button={get:function(n,i){var r;return r=n.getAttributeNode(i),r&&(ir[i]?r.nodeValue!=="":r.specified)?r.nodeValue:t},set:function(n,t,i){var u=n.getAttributeNode(i);return u||(u=r.createAttribute(i),n.setAttributeNode(u)),u.nodeValue=t+""}},i.attrHooks.tabindex.set=e.set,i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})}),i.attrHooks.contenteditable={get:e.get,set:function(n,t,i){t===""&&(t="false"),e.set(n,t,i)}}),i.support.hrefNormalized||i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i===null?t:i}})}),i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText.toLowerCase()||t},set:function(n,t){return n.style.cssText=""+t}}),i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),i.support.enctype||(i.propFix.enctype="encoding"),i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var ct=/^(?:textarea|input|select)$/i,gi=/^([^\.]*)?(?:\.(.+))?$/,nu=/\bhover(\.\S+)?\b/,kr=/^key/,dr=/^(?:mouse|contextmenu)|click/,yr=/^(?:focusinfocus|focusoutblur)$/,gr=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,tu=function(n){var t=gr.exec(n);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},wr=function(n,t){var i=n.attributes||{};return(!t[1]||n.nodeName.toLowerCase()===t[1])&&(!t[2]||(i.id||{}).value===t[2])&&(!t[3]||t[3].test((i["class"]||{}).value))},sr=function(n){return i.event.special.hover?n:n.replace(nu,"mouseenter$1 mouseleave$1")};i.event={add:function(n,r,u,f,e){var v,h,a,p,y,o,w,l,b,k,c,s;if(n.nodeType!==3&&n.nodeType!==8&&r&&u&&(v=i._data(n))){for(u.handler&&(b=u,u=b.handler),u.guid||(u.guid=i.guid++),a=v.events,a||(v.events=a={}),h=v.handle,h||(v.handle=h=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(h.elem,arguments):t},h.elem=n),r=i.trim(sr(r)).split(" "),p=0;p<r.length;p++)y=gi.exec(r[p])||[],o=y[1],w=(y[2]||"").split(".").sort(),s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},l=i.extend({type:o,origType:y[1],data:f,handler:u,guid:u.guid,selector:e,quick:tu(e),namespace:w.join(".")},b),c=a[o],c||(c=a[o]=[],c.delegateCount=0,s.setup&&s.setup.call(n,f,w,h)!==!1||(n.addEventListener?n.addEventListener(o,h,!1):n.attachEvent&&n.attachEvent("on"+o,h))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,l):c.push(l),i.event.global[o]=!0;n=null}},global:{},remove:function(n,t,r,u,f){var y=i.hasData(n)&&i._data(n),v,p,e,k,h,b,l,a,c,w,o,s;if(y&&(a=y.events)){for(t=i.trim(sr(t||"")).split(" "),v=0;v<t.length;v++){if(p=gi.exec(t[v])||[],e=k=p[1],h=p[2],!e){for(e in a)i.event.remove(n,e+t[v],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,o=a[e]||[],b=o.length,h=h?new RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,l=0;l<o.length;l++)s=o[l],(f||k===s.origType)&&(!r||r.guid===s.guid)&&(!h||h.test(s.namespace))&&(!u||u===s.selector||u==="**"&&s.selector)&&(o.splice(l--,1),s.selector&&o.delegateCount--,c.remove&&c.remove.call(n,s));o.length===0&&b!==o.length&&(c.teardown&&c.teardown.call(n,h)!==!1||i.removeEvent(n,e,y.handle),delete a[e])}i.isEmptyObject(a)&&(w=y.handle,w&&(w.elem=null),i.removeData(n,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(r,u,f,e){if(!f||f.nodeType!==3&&f.nodeType!==8){var o=r.type||r,w=[],p,k,c,s,h,a,l,v,y,b;if(!yr.test(o+i.event.triggered)&&(o.indexOf("!")>=0&&(o=o.slice(0,-1),k=!0),o.indexOf(".")>=0&&(w=o.split("."),o=w.shift(),w.sort()),f&&!i.event.customEvent[o]||i.event.global[o])){if(r=typeof r=="object"?r[i.expando]?r:new i.Event(o,r):new i.Event(o),r.type=o,r.isTrigger=!0,r.exclusive=k,r.namespace=w.join("."),r.namespace_re=r.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=o.indexOf(":")<0?"on"+o:"",!f){p=i.cache;for(c in p)p[c].events&&p[c].events[o]&&i.event.trigger(r,u,p[c].handle.elem,!0);return}if(r.result=t,r.target||(r.target=f),u=u!=null?i.makeArray(u):[],u.unshift(r),l=i.event.special[o]||{},!l.trigger||l.trigger.apply(f,u)!==!1){if(y=[[f,l.bindType||o]],!e&&!l.noBubble&&!i.isWindow(f)){for(b=l.delegateType||o,s=yr.test(b+o)?f:f.parentNode,h=null;s;s=s.parentNode)y.push([s,b]),h=s;h&&h===f.ownerDocument&&y.push([h.defaultView||h.parentWindow||n,b])}for(c=0;c<y.length&&!r.isPropagationStopped();c++)s=y[c][0],r.type=y[c][1],v=(i._data(s,"events")||{})[r.type]&&i._data(s,"handle"),v&&v.apply(s,u),v=a&&s[a],v&&i.acceptData(s)&&v.apply(s,u)===!1&&r.preventDefault();return r.type=o,e||r.isDefaultPrevented()||l._default&&l._default.apply(f.ownerDocument,u)!==!1||o==="click"&&i.nodeName(f,"a")||!i.acceptData(f)||a&&f[o]&&(o!=="focus"&&o!=="blur"||r.target.offsetWidth!==0)&&!i.isWindow(f)&&(h=f[a],h&&(f[a]=null),i.event.triggered=o,f[o](),i.event.triggered=t,h&&(f[a]=h)),r.result}}}},dispatch:function(r){r=i.event.fix(r||n.event);var h=(i._data(this,"events")||{})[r.type]||[],p=h.delegateCount,b=[].slice.call(arguments,0),k=!r.exclusive&&!r.namespace,y=[],f,w,e,a,v,c,s,l,u,o,d;if(b[0]=r,r.delegateTarget=this,p&&!r.target.disabled&&!(r.button&&r.type==="click"))for(a=i(this),a.context=this.ownerDocument||this,e=r.target;e!=this;e=e.parentNode||this){for(c={},l=[],a[0]=e,f=0;f<p;f++)u=h[f],o=u.selector,c[o]===t&&(c[o]=u.quick?wr(e,u.quick):a.is(o)),c[o]&&l.push(u);l.length&&y.push({elem:e,matches:l})}for(h.length>p&&y.push({elem:this,matches:h.slice(p)}),f=0;f<y.length&&!r.isPropagationStopped();f++)for(s=y[f],r.currentTarget=s.elem,w=0;w<s.matches.length&&!r.isImmediatePropagationStopped();w++)u=s.matches[w],(k||!r.namespace&&!u.namespace||r.namespace_re&&r.namespace_re.test(u.namespace))&&(r.data=u.data,r.handleObj=u,v=((i.event.special[u.origType]||{}).handle||u.handler).apply(s.elem,b),v!==t&&(r.result=v,v===!1&&(r.preventDefault(),r.stopPropagation())));return r.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var s,f,u,e=i.button,o=i.fromElement;return n.pageX==null&&i.clientX!=null&&(s=n.target.ownerDocument||r,f=s.documentElement,u=s.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?i.toElement:o),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var e,o,u=n,f=i.event.fixHooks[n.type]||{},s=f.props?this.props.concat(f.props):this.props;for(n=i.Event(u),e=s.length;e;)o=s[--e],n[o]=u[o];return n.target||(n.target=u.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey===t&&(n.metaKey=n.ctrlKey),f.filter?f.filter(n,u):n},special:{ready:{setup:i.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(n,t,r){i.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(n,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f),f.isDefaultPrevented()&&r.preventDefault()}},i.event.handle=i.event.dispatch,i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent&&n.detachEvent("on"+t,i)},i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?b:h):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0},i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=b;var n=this.originalEvent;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=b;var n=this.originalEvent;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=b,this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h},i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var e=this,u=n.relatedTarget,r=n.handleObj,o=r.selector,f;return u&&(u===e||i.contains(e,u))||(n.type=r.origType,f=r.handler.apply(this,arguments),n.type=t),f}}}),i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!r._submit_attached&&(i.event.add(r,"submit._submit",function(n){this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0)}),r._submit_attached=!0)})},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}}),i.support.changeBubbles||(i.event.special.change={setup:function(){if(ct.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1,i.event.simulate("change",this,n,!0))})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ct.test(t.nodeName)&&!t._change_attached&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),t._change_attached=!0)})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),ct.test(this.nodeName)}}),i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var f=0,u=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){f++==0&&r.addEventListener(n,u,!0)},teardown:function(){--f==0&&r.removeEventListener(n,u,!0)}}}),i.fn.extend({on:function(n,r,u,f,e){var o,s;if(typeof n=="object"){typeof r!="string"&&(u=r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=h;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on.call(this,n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.type+"."+f.namespace:f.type,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=h),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},live:function(n,t,r){i(this.context).on(n,this.selector,t,r);return this},die:function(n,t){return i(this.context).off(n,this.selector||"**",t),this},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length==1?this.off(n,"**"):this.off(t,n,i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){if(this[0])return i.event.trigger(n,t,this[0],!0)},toggle:function(n){var r=arguments,f=n.guid||i.guid++,t=0,u=function(u){var f=(i._data(this,"lastToggle"+n.guid)||0)%t;return i._data(this,"lastToggle"+n.guid,f+1),u.preventDefault(),r[f].apply(this,arguments)||!1};for(u.guid=f;t<r.length;)r[t++].guid=f;return this.click(u)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return i==null&&(i=n,n=null),arguments.length>0?this.on(t,null,n,i):this.trigger(t)},i.attrFn&&(i.attrFn[t]=!0),kr.test(t)&&(i.event.fixHooks[t]=i.event.keyHooks),dr.test(t)&&(i.event.fixHooks[t]=i.event.mouseHooks)}),function(){function k(n,t,i,r,u,f){for(var o,h,s=0,c=r.length;s<c;s++)if(o=r[s],o){for(h=!1,o=o[n];o;){if(o[e]===i){h=r[o.sizset];break}if(o.nodeType!==1||f||(o[e]=i,o.sizset=s),o.nodeName.toLowerCase()===t){h=o;break}o=o[n]}r[s]=h}}function b(t,i,r,u,f,o){for(var s,c,h=0,l=u.length;h<l;h++)if(s=u[h],s){for(c=!1,s=s[t];s;){if(s[e]===r){c=u[s.sizset];break}if(s.nodeType===1)if(o||(s[e]=r,s.sizset=h),typeof i!="string"){if(s===i){c=!0;break}}else if(n.filter(i,[s]).length>0){c=s;break}s=s[t]}u[h]=c}}var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),y=0,d=Object.prototype.toString,l=!1,g=!0,o=/\\/g,it=/\r\n/g,c=/\W/,n,s,f,a,h,v;[0,0].sort(function(){return g=!1,0}),n=function(t,i,e,o){var it;if(e=e||[],i=i||r,it=i,i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var y,a,h,g,l,w,b,c,rt=!0,k=n.isXML(i),s=[],tt=t;do if(p.exec(""),y=p.exec(tt),y&&(tt=y[3],s.push(y[1]),y[2])){g=y[3];break}while(y);if(s.length>1&&nt.exec(t))if(s.length===2&&u.relative[s[0]])a=v(s[0]+s[1],i,o);else for(a=u.relative[s[0]]?[i]:n(s.shift(),i);s.length;)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=v(t,a,o);else if(!o&&s.length>1&&i.nodeType===9&&!k&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,k),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]),i)for(l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,k),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):rt=!1;s.length;)w=s.pop(),b=w,u.relative[w]?b=s.pop():w="",b==null&&(b=i),u.relative[w](h,b,k);else h=s=[];if(h||(h=a),h||n.error(w||t),d.call(h)==="[object Array]")if(rt)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return g&&(n(g,it,e,o),n.uniqueSort(e)),e},n.uniqueSort=function(n){if(a&&(l=g,n.sort(a),l))for(var t=1;t<n.length;t++)n[t]===n[t-1]&&n.splice(t--,1);return n},n.matches=function(t,i){return n(t,null,null,i)},n.matchesSelector=function(t,i){return n(i,null,null,[t]).length>0},n.find=function(n,t,i){var f,s,c,r,e,h;if(!n)return[];for(s=0,c=u.order.length;s<c;s++)if(e=u.order[s],(r=u.leftMatch[e].exec(n))&&(h=r[1],r.splice(1,1),h.substr(h.length-1)!=="\\"&&(r[1]=(r[1]||"").replace(o,""),f=u.find[e](r,t,i),f!=null))){n=n.replace(u.match[e],"");break}return f||(f=typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName("*"):[]),{set:f,expr:n}},n.filter=function(i,r,f,e){for(var o,c,h,v,y,b,p,l,w,k=i,a=[],s=r,d=r&&r[0]&&n.isXML(r[0]);i&&r.length;){for(h in u.filter)if((o=u.leftMatch[h].exec(i))!=null&&o[2]){if(b=u.filter[h],p=o[1],c=!1,o.splice(1,1),p.substr(p.length-1)==="\\")continue;if(s===a&&(a=[]),u.preFilter[h])if(o=u.preFilter[h](o,s,f,a,e,d),o){if(o===!0)continue}else c=v=!0;if(o)for(l=0;(y=s[l])!=null;l++)y&&(v=b(y,o,l,s),w=e^v,f&&v!=null?w?c=!0:s[l]=!1:w&&(a.push(y),c=!0));if(v!==t){if(f||(s=a),i=i.replace(u.match[h],""),!c)return[];break}}if(i===k)if(c==null)n.error(i);else break;k=i}return s},n.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};var w=n.getText=function(n){var r,u,t=n.nodeType,i="";if(t){if(t===1||t===9){if(typeof n.textContent=="string")return n.textContent;if(typeof n.innerText=="string")return n.innerText.replace(it,"");for(n=n.firstChild;n;n=n.nextSibling)i+=w(n)}else if(t===3||t===4)return n.nodeValue}else for(r=0;u=n[r];r++)u.nodeType!==8&&(i+=w(u));return i},u=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")},type:function(n){return n.getAttribute("type")}},relative:{"+":function(t,i){var s=typeof i=="string",e=s&&!c.test(i),o=s&&!e,u,f,r;for(e&&(i=i.toLowerCase()),u=0,f=t.length;u<f;u++)if(r=t[u]){while((r=r.previousSibling)&&r.nodeType!==1);t[u]=o||r&&r.nodeName.toLowerCase()===i?r||!1:r===i}o&&n.filter(i,t,!0)},">":function(t,i){var u,e=typeof i=="string",r=0,o=t.length,f;if(e&&!c.test(i))for(i=i.toLowerCase();r<o;r++)u=t[r],u&&(f=u.parentNode,t[r]=f.nodeName.toLowerCase()===i?f:!1);else{for(;r<o;r++)u=t[r],u&&(t[r]=e?u.parentNode:u.parentNode===i);e&&n.filter(i,t,!0)}},"":function(n,t,i){var u,f=y++,r=b;typeof t!="string"||c.test(t)||(t=t.toLowerCase(),u=t,r=k),r("parentNode",t,f,n,u,i)},"~":function(n,t,i){var u,f=y++,r=b;typeof t!="string"||c.test(t)||(t=t.toLowerCase(),u=t,r=k),r("previousSibling",t,f,n,u,i)}},find:{ID:function(n,t,i){if(typeof t.getElementById!="undefined"&&!i){var r=t.getElementById(n[1]);return r&&r.parentNode?[r]:[]}},NAME:function(n,t){var u,r,i,f;if(typeof t.getElementsByName!="undefined"){for(u=[],r=t.getElementsByName(n[1]),i=0,f=r.length;i<f;i++)r[i].getAttribute("name")===n[1]&&u.push(r[i]);return u.length===0?null:u}},TAG:function(n,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(n[1])}},preFilter:{CLASS:function(n,t,i,r,u,f){if(n=" "+n[1].replace(o,"")+" ",f)return n;for(var s=0,e;(e=t[s])!=null;s++)e&&(u^(e.className&&(" "+e.className+" ").replace(/[\t\n\r]/g," ").indexOf(n)>=0)?i||r.push(e):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(o,"")},TAG:function(n){return n[1].replace(o,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0,t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=y++,t},ATTR:function(n,t,i,r,f,e){var s=n[1]=n[1].replace(o,"");return!e&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(o,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((p.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var i=n.getAttribute("type"),t=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===t&&(i===t||i===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return t<i[3]-0},gt:function(n,t,i){return t>i[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var o=i[1],c=u.filters[o],s,e,h;if(c)return c(t,r,i,f);if(o==="contains")return(t.textContent||t.innerText||w([t])||"").indexOf(i[3])>=0;if(o==="not"){for(s=i[3],e=0,h=s.length;e<h;e++)if(s[e]===t)return!1;return!0}n.error(o)},CHILD:function(n,t){var r,o,s,u,l,c,f,h=t[1],i=n;switch(h){case"only":case"first":while(i=i.previousSibling)if(i.nodeType===1)return!1;if(h==="first")return!0;i=n;case"last":while(i=i.nextSibling)if(i.nodeType===1)return!1;return!0;case"nth":if(r=t[2],o=t[3],r===1&&o===0)return!0;if(s=t[0],u=n.parentNode,u&&(u[e]!==s||!n.nodeIndex)){for(c=0,i=u.firstChild;i;i=i.nextSibling)i.nodeType===1&&(i.nodeIndex=++c);u[e]=s}return f=n.nodeIndex-o,r===0?f===0:f%r==0&&f/r>=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||!!n.nodeName&&n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(t,i){var o=i[1],s=n.attr?n.attr(t,o):u.attrHandle[o]?u.attrHandle[o](t):t[o]!=null?t[o]:t.getAttribute(o),f=s+"",e=i[2],r=i[4];return s==null?e==="!=":!e&&n.attr?s!=null:e==="="?f===r:e==="*="?f.indexOf(r)>=0:e==="~="?(" "+f+" ").indexOf(r)>=0:r?e==="!="?f!==r:e==="^="?f.indexOf(r)===0:e==="$="?f.substr(f.length-r.length)===r:e==="|="?f===r||f.substr(0,r.length+1)===r+"-":!1:f&&s!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},nt=u.match.POS,tt=function(n,t){return"\\"+(+t+1)};for(s in u.match)u.match[s]=new RegExp(u.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[s]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[s].source.replace(/\\(\d+)/g,tt));f=function(n,t){return(n=Array.prototype.slice.call(n,0),t)?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(rt){f=function(n,t){var i=0,r=t||[],u;if(d.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i<u;i++)r.push(n[i]);else for(;n[i];i++)r.push(n[i]);return r}}r.documentElement.compareDocumentPosition?a=function(n,t){return n===t?(l=!0,0):!n.compareDocumentPosition||!t.compareDocumentPosition?n.compareDocumentPosition?-1:1:n.compareDocumentPosition(t)&4?-1:1}:(a=function(n,t){var i;if(n===t)return l=!0,0;if(n.sourceIndex&&t.sourceIndex)return n.sourceIndex-t.sourceIndex;var o,c,f=[],u=[],s=n.parentNode,e=t.parentNode,r=s;if(s===e)return h(n,t);if(s){if(!e)return 1}else return-1;while(r)f.unshift(r),r=r.parentNode;for(r=e;r;)u.unshift(r),r=r.parentNode;for(o=f.length,c=u.length,i=0;i<o&&i<c;i++)if(f[i]!==u[i])return h(f[i],u[i]);return i===o?h(n,u[i],-1):h(f[i],t,1)},h=function(n,t,i){if(n===t)return i;for(var r=n.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var i=r.createElement("div"),f="script"+ +new Date,n=r.documentElement;i.innerHTML="<a name='"+f+"'/>",n.insertBefore(i,n.firstChild),r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t}),n.removeChild(i),n=i=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment("")),n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var r=t.getElementsByTagName(n[1]),u,i;if(n[1]==="*"){for(u=[],i=0;r[i];i++)r[i].nodeType===1&&u.push(r[i]);r=u}return r}),n.innerHTML="<a href='#'></a>",n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)}),n=null}(),r.querySelectorAll&&function(){var e=n,t=r.createElement("div"),o="__sizzle__",i;if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,i,s,h){var c,l;if(i=i||r,!h&&!n.isXML(i)){if(c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t),c&&(i.nodeType===1||i.nodeType===9)){if(c[1])return f(i.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&i.getElementsByClassName)return f(i.getElementsByClassName(c[2]),s)}if(i.nodeType===9){if(t==="body"&&i.body)return f([i.body],s);if(c&&c[3])if(l=i.getElementById(c[3]),l&&l.parentNode){if(l.id===c[3])return f([l],s)}else return f([],s);try{return f(i.querySelectorAll(t),s)}catch(k){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!=="object"){var w=i,v=i.getAttribute("id"),a=v||o,y=i.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):i.setAttribute("id",a),p&&y&&(i=i.parentNode);try{if(!p||y)return f(i.querySelectorAll("[id='"+a+"'] "+t),s)}catch(b){}finally{v||w.removeAttribute("id")}}}return e(t,i,s,h)};for(i in e)n[i]=e[i];t=null}}(),function(){var i=r.documentElement,t=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.msMatchesSelector,e,f;if(t){e=!t.call(r.createElement("div"),"div"),f=!1;try{t.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(i,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(i))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(i,r);if(o||!e||i.document&&i.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[i]).length>0}}}(),function(){var n=r.createElement("div");(n.innerHTML="<div class='test e'></div><div class='test'></div>",n.getElementsByClassName&&n.getElementsByClassName("e").length!==0)&&(n.lastChild.className="e",n.getElementsByClassName("e").length!==1)&&(u.order.splice(1,0,"CLASS"),u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])},n=null)}(),n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1},n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},v=function(t,i,r){for(var s,h=[],c="",e=i.nodeType?[i]:i,f,o;s=u.match.PSEUDO.exec(t);)c+=s[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,f=0,o=e.length;f<o;f++)n(t,e[f],h,r);return n.filter(c,h)},n.attr=i.attr,n.selectors.attrMap={},i.find=n,i.expr=n.selectors,i.expr[":"]=i.expr.filters,i.unique=n.uniqueSort,i.text=n.getText,i.isXMLDoc=n.isXML,i.contains=n.contains}();var br=/Until$/,bf=/^(?:parents|prevUntil|prevAll)/,wf=/,/,kf=/^.[^:#\[\.,]*$/,pf=Array.prototype.slice,tr=i.expr.match.POS,te={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var s=this,t,e,r,o,u,f;if(typeof n!="string")return i(n).filter(function(){for(t=0,e=s.length;t<e;t++)if(i.contains(s[t],this))return!0});for(r=this.pushStack("","find",n),t=0,e=this.length;t<e;t++)if(o=r.length,i.find(n,this[t],r),t>0)for(u=o;u<r.length;u++)for(f=0;f<o;f++)if(r[f]===r[u]){r.splice(u--,1);break}return r},has:function(n){var t=i(n);return this.filter(function(){for(var n=0,r=t.length;n<r;n++)if(i.contains(this,t[n]))return!0})},not:function(n){return this.pushStack(bi(this,n,!1),"not",n)},filter:function(n){return this.pushStack(bi(this,n,!0),"filter",n)},is:function(n){return!!n&&(typeof n=="string"?tr.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],u,s,r=this[0],e,o;if(i.isArray(n)){for(e=1;r&&r.ownerDocument&&r!==t;){for(u=0;u<n.length;u++)i(r).is(n[u])&&f.push({selector:n[u],elem:r,level:e});r=r.parentNode,e++}return f}for(o=tr.test(n)||typeof n!="string"?i(n,t||this.context):0,u=0,s=this.length;u<s;u++)for(r=this[u];r;)if(o?o.index(r)>-1:i.find.matchesSelector(r,n)){f.push(r);break}else if(r=r.parentNode,!r||!r.ownerDocument||r===t||r.nodeType===11)break;return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(nr(u[0])||nr(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return br.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!te[n]?i.unique(f):f,(this.length>1||wf.test(u))&&bf.test(n)&&(f=f.reverse()),this.pushStack(f,n,pf.call(arguments).join(","))}}),i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var u=0;n;n=n[i])if(n.nodeType===1&&++u===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var ki="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ku=/ jQuery\d+="(?:\d+|null)"/g,ft=/^\s+/,ar=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,pr=/<([\w:]+)/,of=/<tbody/i,cf=/<|&#?\w+;/,hf=/<(?:script|style)/i,rf=/<(?:script|object|embed|option|style)/i,or=new RegExp("<(?:"+ki+")","i"),pi=/checked\s*(?:[^=]|=\s*.checked.)/i,ff=/\/(java|ecma)script/i,ef=/^\s*<!(?:\[CDATA\[|\-\-)/,u={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},at=wi(r);u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,i.support.htmlSerialize||(u._default=[1,"div<div>","</div>"]),i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var r=i(this),t=r.contents();t.length?t.wrapAll(n):r.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i.clean(arguments);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i.clean(arguments)),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(t||r.nodeType!==1||(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++)for(n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ku,""):null;if(typeof n!="string"||hf.test(n)||!i.support.leadingWhitespace&&ft.test(n)||u[(pr.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(ar,"<$1></$2>");try{for(var r=0,f=this.length;r<f;r++)this[r].nodeType===1&&(i.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=n)}catch(e){this.empty().append(n)}}return this},replaceWith:function(n){return this[0]&&this[0].parentNode?i.isFunction(n)?this.each(function(t){var r=i(this),u=r.html();r.replaceWith(n.call(this,t,u))}):(typeof n!="string"&&(n=i(n).detach()),this.each(function(){var t=this.nextSibling,r=this.parentNode;i(this).remove(),t?i(t).before(n):i(r).append(n)})):this.length?this.pushStack(i(i.isFunction(n)?n():n),"replaceWith",n):this},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,u){var c,o,f,h,e=n[0],a=[];if(!i.support.checkClone&&arguments.length===3&&typeof e=="string"&&pi.test(e))return this.each(function(){i(this).domManip(n,r,u,!0)});if(i.isFunction(e))return this.each(function(f){var o=i(this);n[0]=e.call(this,f,r?o.html():t),o.domManip(n,r,u)});if(this[0]){if(h=e&&e.parentNode,c=i.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:i.buildFragment(n,this,a),f=c.fragment,o=f.childNodes.length===1?f=f.firstChild:f.firstChild,o){r=r&&i.nodeName(o,"tr");for(var s=0,l=this.length,v=l-1;s<l;s++)u.call(r?uf(this[s],o):this[s],c.cacheable||l>1&&s<v?i.clone(f,!0,!0):f)}a.length&&i.each(a,bu)}return this}}),i.buildFragment=function(n,t,u){var o,h,s,e,f=n[0];return t&&t[0]&&(e=t[0].ownerDocument||t[0]),e.createDocumentFragment||(e=r),n.length===1&&typeof f=="string"&&f.length<512&&e===r&&f.charAt(0)==="<"&&!rf.test(f)&&(i.support.checkClone||!pi.test(f))&&(i.support.html5Clone||!or.test(f))&&(h=!0,s=i.fragments[f],s&&s!==1&&(o=s)),o||(o=e.createDocumentFragment(),i.clean(n,e,o,u)),h&&(i.fragments[f]=s?o:1),{fragment:o,cacheable:h}},i.fragments={},i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(r){var o=[],u=i(r),s=this.length===1&&this[0].parentNode,f,h,e;if(s&&s.nodeType===11&&s.childNodes.length===1&&u.length===1)return u[t](this[0]),this;for(f=0,h=u.length;f<h;f++)e=(f>0?this.clone(!0):this).get(),i(u[f])[t](e),o=o.concat(e);return this.pushStack(o,n,u.selector)}}),i.extend({clone:function(n,t,r){var f,e,u,o=i.support.html5Clone||!or.test("<"+n.nodeName)?n.cloneNode(!0):sf(n);if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(kt(n,o),f=w(n),e=w(o),u=0;f[u];++u)e[u]&&kt(f[u],e[u]);if(t&&(dt(n,o),r))for(f=w(n),e=w(o),u=0;f[u];++u)dt(f[u],e[u]);return f=e=null,o},clean:function(n,t,f,e){var p,s,l,h,o,y,a,w,k;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++)if(typeof o=="number"&&(o+=""),o){if(typeof o=="string")if(cf.test(o)){o=o.replace(ar,"<$1></$2>");var b=(pr.exec(o)||["",""])[1].toLowerCase(),v=u[b]||u._default,d=v[0],c=t.createElement("div");for(t===r?at.appendChild(c):wi(t).appendChild(c),c.innerHTML=v[1]+o+v[2];d--;)c=c.lastChild;if(!i.support.tbody)for(y=of.test(o),a=b==="table"&&!y?c.firstChild&&c.firstChild.childNodes:v[1]==="<table>"&&!y?c.childNodes:[],l=a.length-1;l>=0;--l)i.nodeName(a[l],"tbody")&&!a[l].childNodes.length&&a[l].parentNode.removeChild(a[l]);!i.support.leadingWhitespace&&ft.test(o)&&c.insertBefore(t.createTextNode(ft.exec(o)[0]),c.firstChild),o=c.childNodes}else o=t.createTextNode(o);if(!i.support.appendChecked)if(o[0]&&typeof(w=o.length)=="number")for(l=0;l<w;l++)bt(o[l]);else bt(o);o.nodeType?s.push(o):s=i.merge(s,o)}if(f)for(p=function(n){return!n.type||ff.test(n.type)},h=0;s[h];h++)e&&i.nodeName(s[h],"script")&&(!s[h].type||s[h].type.toLowerCase()==="text/javascript")?e.push(s[h].parentNode?s[h].parentNode.removeChild(s[h]):s[h]):(s[h].nodeType===1&&(k=i.grep(s[h].getElementsByTagName("script"),p),s.splice.apply(s,[h+1,0].concat(k))),f.appendChild(s[h]));return s},cleanData:function(n){for(var r,f,o=i.cache,s=i.event.special,h=i.support.deleteExpando,t,u,e=0;(t=n[e])!=null;e++)if((!t.nodeName||!i.noData[t.nodeName.toLowerCase()])&&(f=t[i.expando],f)){if(r=o[f],r&&r.events){for(u in r.events)s[u]?i.event.remove(t,u):i.removeEvent(t,u,r.handle);r.handle&&(r.handle.elem=null)}h?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando),delete o[f]}}});var ut=/alpha\([^)]*\)/i,pu=/opacity=([^)]*)/,wu=/([A-Z]|^ms)/g,gt=/^-?\d+(?:px)?$/i,nf=/^-?\d/,tf=/^([\-+])=([\-+.\de]+)/,du={position:"absolute",visibility:"hidden",display:"block"},gu=["Left","Right"],lf=["Top","Bottom"],l,pt,vt;i.fn.css=function(n,r){return arguments.length===2&&r===t?this:i.access(this,n,r,!0,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)})},i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=l(n,"opacity","opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var s,o,h=i.camelCase(r),c=n.style,e=i.cssHooks[h];if(r=i.cssProps[h]||h,u!==t){if(o=typeof u,o==="string"&&(s=tf.exec(u))&&(u=+(s[1]+1)*+s[2]+parseFloat(i.css(n,r)),o="number"),u==null||o==="number"&&isNaN(u))return;if(o!=="number"||i.cssNumber[h]||(u+="px"),!e||!("set"in e)||(u=e.set(n,u))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(s=e.get(n,!1,f))!==t?s:c[r]}},css:function(n,r,u){var e,f;return(r=i.camelCase(r),f=i.cssHooks[r],r=i.cssProps[r]||r,r==="cssFloat"&&(r="float"),f&&"get"in f&&(e=f.get(n,!0,u))!==t)?e:l?l(n,r):void 0},swap:function(n,t,i){var u={},r;for(r in t)u[r]=n.style[r],n.style[r]=t[r];i.call(n);for(r in t)n.style[r]=u[r]}}),i.curCSS=i.css,i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){var f;if(r)return n.offsetWidth!==0?yt(n,t,u):(i.swap(n,du,function(){f=yt(n,t,u)}),f)},set:function(n,t){if(gt.test(t)){if(t=parseFloat(t),t>=0)return t+"px"}else return t}}}),i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return pu.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var f=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",r=u&&u.filter||f.filter||"";(f.zoom=1,t>=1&&i.trim(r.replace(ut,""))===""&&(f.removeAttribute("filter"),u&&!u.filter))||(f.filter=ut.test(r)?r.replace(ut,e):r+" "+e)}}),i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){var r;return i.swap(n,{display:"inline-block"},function(){r=t?l(n,"margin-right","marginRight"):n.style.marginRight}),r}})}),r.defaultView&&r.defaultView.getComputedStyle&&(pt=function(n,t){var r,f,u;return t=t.replace(wu,"-$1").toLowerCase(),(f=n.ownerDocument.defaultView)&&(u=f.getComputedStyle(n,null))&&(r=u.getPropertyValue(t),r!==""||i.contains(n.ownerDocument.documentElement,n)||(r=i.style(n,t))),r}),r.documentElement.currentStyle&&(vt=function(n,t){var e,u,f,i=n.currentStyle&&n.currentStyle[t],r=n.style;return i===null&&r&&(f=r[t])&&(i=f),!gt.test(i)&&nf.test(i)&&(e=r.left,u=n.runtimeStyle&&n.runtimeStyle.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=e,u&&(n.runtimeStyle.left=u)),i===""?"auto":i}),l=pt||vt,i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var r=n.offsetWidth,t=n.offsetHeight;return r===0&&t===0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var ie=/%20/g,gf=/\[\]$/,ni=/\r?\n/g,ne=/#.*$/,fe=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ee=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,re=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,ue=/^(?:GET|HEAD)$/,yf=/^\/\//,ci=/\?/,af=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,vf=/^(?:select|textarea)/i,hi=/\s+/,df=/([?&])_=[^&]*/,si=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,li=i.fn.load,rt={},yi={},o,s,vi=["*/"]+["*"];try{o=su.href}catch(oe){o=r.createElement("a"),o.href="",o=o.href}s=si.exec(o.toLowerCase())||[],i.fn.extend({load:function(n,r,u){var f,s,o,e;return typeof n!="string"&&li?li.apply(this,arguments):this.length?(f=n.indexOf(" "),f>=0&&(s=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),e=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText,n.isResolved()&&(n.done(function(n){r=n}),e.html(s?i("<div>").append(r.replace(af,"")).find(s):r)),u&&e.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vf.test(this.nodeName)||ee.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ni,"\r\n")}}):{name:t.name,value:r.replace(ni,"\r\n")}}).get()}}),i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}}),i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){return t?lt(n,i.ajaxSettings):(t=n,n=i.ajaxSettings),lt(n,t),n},ajaxSettings:{url:o,isLocal:re.test(s[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":vi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:ai(rt),ajaxTransport:ai(yi),ajax:function(n,r){function b(n,r,s,l){if(e!==2){e=2,tt&&clearTimeout(tt),c=t,it=l||"",f.readyState=n>0?4:0;var p,b,w,a=r,rt=s?ru(u,f,s):t,d,k;if(n>=200&&n<300||n===304)if(u.ifModified&&((d=f.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=d),(k=f.getResponseHeader("Etag"))&&(i.etag[o]=k)),n===304)a="notmodified",p=!0;else try{b=iu(u,rt),a="success",p=!0}catch(ft){a="parsererror",w=ft}else w=a,(!a||n)&&(a="error",n<0&&(n=0));f.status=n,f.statusText=""+(r||a),p?nt.resolveWith(h,[b,a,f]):nt.rejectWith(h,[f,a,w]),f.statusCode(y),y=t,v&&g.trigger("ajax"+(p?"Success":"Error"),[f,u,p?b:w]),ut.fireWith(h,[f,a]),v&&(g.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}}var k,d;typeof n=="object"&&(r=n,n=t),r=r||{};var u=i.ajaxSetup({},r),h=u.context||u,g=h!==u&&(h.nodeType||h instanceof i)?i(h):i.event,nt=i.Deferred(),ut=i.Callbacks("once memory"),y=u.statusCode||{},o,et={},ft={},it,w,c,tt,a,e=0,v,l,f={readyState:0,setRequestHeader:function(n,t){if(!e){var i=n.toLowerCase();n=ft[i]=ft[i]||n,et[n]=t}return this},getAllResponseHeaders:function(){return e===2?it:null},getResponseHeader:function(n){var i;if(e===2){if(!w)for(w={};i=fe.exec(it);)w[i[1].toLowerCase()]=i[2];i=w[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return e||(u.mimeType=n),this},abort:function(n){return n=n||"abort",c&&c.abort(n),b(0,n),this}};if(nt.promise(f),f.success=f.done,f.error=f.fail,f.complete=ut.add,f.statusCode=function(n){if(n){var t;if(e<2)for(t in n)y[t]=[y[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(ne,"").replace(yf,s[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(hi),u.crossDomain==null&&(a=si.exec(u.url.toLowerCase()),u.crossDomain=!!(a&&(a[1]!=s[1]||a[2]!=s[2]||(a[3]||(a[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),p(rt,u,r,f),e===2)return!1;v=u.global,u.type=u.type.toUpperCase(),u.hasContent=!ue.test(u.type),v&&i.active++==0&&i.event.trigger("ajaxStart"),u.hasContent||(u.data&&(u.url+=(ci.test(u.url)?"&":"?")+u.data,delete u.data),o=u.url,u.cache===!1&&(k=i.now(),d=u.url.replace(df,"$1_="+k),u.url=d+(d===u.url?(ci.test(u.url)?"&":"?")+"_="+k:""))),(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(o=o||u.url,i.lastModified[o]&&f.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&f.setRequestHeader("If-None-Match",i.etag[o])),f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+vi+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||e===2))return f.abort(),!1;for(l in{success:1,error:1,complete:1})f[l](u[l]);if(c=p(yi,u,r,f),c){f.readyState=1,v&&g.trigger("ajaxSend",[f,u]),u.async&&u.timeout>0&&(tt=setTimeout(function(){f.abort("timeout")},u.timeout));try{e=1,c.send(et,b)}catch(ot){if(e<2)b(-1,ot);else throw ot;}}else b(-1,"No Transport");return f},param:function(n,r){var f=[],e=function(n,t){t=i.isFunction(t)?t():t,f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},u;if(r===t&&(r=i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)et(u,n[u],r,e);return f.join("&").replace(ie,"+")}}),i.extend({active:0,lastModified:{},etag:{}}),ri=i.now(),y=/(\=)\?(&|$)|\?\?/i,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+ri++}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var l=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(y.test(t.url)||l&&y.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c=n[f],e=t.url,s=t.data,h="$1"+f+"$2";return t.jsonp!==!1&&(e=e.replace(y,h),t.url===e&&(l&&(s=s.replace(y,h)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.always(function(){n[f]=c,o&&i.isFunction(c)&&n[f](o[0])}),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1),n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script"),i.async="async",n.scriptCharset&&(i.charset=n.scriptCharset),i.src=n.url,i.onload=i.onreadystatechange=function(n,r){(r||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))},u.insertBefore(i,u.firstChild)},abort:function(){if(i)i.onload(0,1)}}}}),d=n.ActiveXObject?function(){for(var n in v)v[n](0,1)}:!1,ii=0,i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&ti()||cu()}:ti,function(n){i.extend(i.support,{ajax:!!n,cors:!!n&&"withCredentials"in n})}(i.ajaxSettings.xhr()),i.support.ajax&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var o=r.xhr(),h,s;if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null),u=function(n,f){var c,a,y,s,l;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,d&&delete v[h]),f)o.readyState!==4&&o.abort();else{c=o.status,y=o.getAllResponseHeaders(),s={},l=o.responseXML,l&&l.documentElement&&(s.xml=l),s.text=o.responseText;try{a=o.statusText}catch(w){a=""}c||!r.isLocal||r.crossDomain?c===1223&&(c=204):c=s.text?200:404}}catch(p){f||e(-1,p)}s&&e(c,a,s,y)},r.async&&o.readyState!==4?(h=++ii,d&&(v||(v={},i(n).unload(d)),v[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(0,1)}}}});var ht={},f,c,hu=/^(?:toggle|show|hide)$/,fu=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,g,ui=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],tt;i.fn.extend({show:function(n,t,r){var u,e,f,o;if(n||n===0)return this.animate(a("show",3),n,t,r);for(f=0,o=this.length;f<o;f++)u=this[f],u.style&&(e=u.style.display,i._data(u,"olddisplay")||e!=="none"||(e=u.style.display=""),e===""&&i.css(u,"display")==="none"&&i._data(u,"olddisplay",ei(u.nodeName)));for(f=0;f<o;f++)u=this[f],u.style&&(e=u.style.display,(e===""||e==="none")&&(u.style.display=i._data(u,"olddisplay")||""));return this},hide:function(n,t,r){if(n||n===0)return this.animate(a("hide",3),n,t,r);for(var f,e,u=0,o=this.length;u<o;u++)f=this[u],f.style&&(e=i.css(f,"display"),e==="none"||i._data(f,"olddisplay")||i._data(f,"olddisplay",e));for(u=0;u<o;u++)this[u].style&&(this[u].style.display="none");return this},_toggle:i.fn.toggle,toggle:function(n,t,r){var u=typeof n=="boolean";return i.isFunction(n)&&i.isFunction(t)?this._toggle.apply(this,arguments):n==null||u?this.each(function(){var t=u?n:i(this).is(":hidden");i(this)[t?"show":"hide"]()}):this.animate(a("toggle",3),n,t,r),this},fadeTo:function(n,t,i,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){function e(){f.queue===!1&&i._mark(this);var u=i.extend({},f),y=this.nodeType===1,v=y&&i(this).is(":hidden"),e,t,r,s,c,o,h,l,a;u.animatedProperties={};for(r in n){if(e=i.camelCase(r),r!==e&&(n[e]=n[r],delete n[r]),t=n[e],i.isArray(t)?(u.animatedProperties[e]=t[1],t=n[e]=t[0]):u.animatedProperties[e]=u.specialEasing&&u.specialEasing[e]||u.easing||"swing",t==="hide"&&v||t==="show"&&!v)return u.complete.call(this);y&&(e==="height"||e==="width")&&(u.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],i.css(this,"display")==="inline"&&i.css(this,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&ei(this.nodeName)!=="inline"?this.style.zoom=1:this.style.display="inline-block"))}u.overflow!=null&&(this.style.overflow="hidden");for(r in n)s=new i.fx(this,u,r),t=n[r],hu.test(t)?(a=i._data(this,"toggle"+r)||(t==="toggle"?v?"show":"hide":0),a?(i._data(this,"toggle"+r,a==="show"?"hide":"show"),s[a]()):s[t]()):(c=fu.exec(t),o=s.cur(),c?(h=parseFloat(c[2]),l=c[3]||(i.cssNumber[r]?"":"px"),l!=="px"&&(i.style(this,r,(h||1)+l),o=(h||1)/s.cur()*o,i.style(this,r,o+l)),c[1]&&(h=(c[1]==="-="?-1:1)*h+o),s.custom(o,h,l)):s.custom(o,t,""));return!0}var f=i.speed(t,r,u);return i.isEmptyObject(n)?this.each(f.complete,[!1]):(n=i.extend({},n),f.queue===!1?this.each(e):this.queue(f.queue,e))},stop:function(n,r,u){return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){function e(n,t,r){var f=t[r];i.removeData(n,r,!0),f.stop(u)}var t,o=!1,f=i.timers,r=i._data(this);if(u||i._unmark(!0,this),n==null)for(t in r)r[t]&&r[t].stop&&t.indexOf(".run")===t.length-4&&e(this,r,t);else r[t=n+".run"]&&r[t].stop&&e(this,r,t);for(t=f.length;t--;)f[t].elem===this&&(n==null||f[t].queue===n)&&(u?f[t](!0):f[t].saveState(),o=!0,f.splice(t,1));u&&o||i.dequeue(this,n)})}}),i.each({slideDown:a("show",1),slideUp:a("hide",1),slideToggle:a("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}}),i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(n){i.isFunction(u.old)&&u.old.call(this),u.queue?i.dequeue(this,u.queue):n!==!1&&i._unmark(this)},u},easing:{linear:function(n,t,i,r){return i+r*n},swing:function(n,t,i,r){return(-Math.cos(n*Math.PI)/2+.5)*r+i}},timers:[],fx:function(n,t,i){this.options=t,this.elem=n,this.prop=i,t.orig=t.orig||{}}}),i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(i.fx.step[this.prop]||i.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,r,u){function e(n){return f.step(n)}var f=this,o=i.fx;this.startTime=tt||oi(),this.end=r,this.now=this.start=n,this.pos=this.state=0,this.unit=u||this.unit||(i.cssNumber[this.prop]?"":"px"),e.queue=this.options.queue,e.elem=this.elem,e.saveState=function(){f.options.hide&&i._data(f.elem,"fxshow"+f.prop)===t&&i._data(f.elem,"fxshow"+f.prop,f.start)},e()&&i.timers.push(e)&&!g&&(g=setInterval(o.tick,o.interval))},show:function(){var n=i._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=n||i.style(this.elem,this.prop),this.options.show=!0,n!==t?this.custom(this.cur(),n):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i._data(this.elem,"fxshow"+this.prop)||i.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(n){var r,e,f,o=tt||oi(),s=!0,u=this.elem,t=this.options;if(n||o>=t.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),t.animatedProperties[this.prop]=!0;for(r in t.animatedProperties)t.animatedProperties[r]!==!0&&(s=!1);if(s){if(t.overflow==null||i.support.shrinkWrapBlocks||i.each(["","X","Y"],function(n,i){u.style["overflow"+i]=t.overflow[n]}),t.hide&&i(u).hide(),t.hide||t.show)for(r in t.animatedProperties)i.style(u,r,t.orig[r]),i.removeData(u,"fxshow"+r,!0),i.removeData(u,"toggle"+r,!0);f=t.complete,f&&(t.complete=!1,f.call(u))}return!1}return t.duration==Infinity?this.now=o:(e=o-this.startTime,this.state=e/t.duration,this.pos=i.easing[t.animatedProperties[this.prop]](this.state,e,0,1,t.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},i.extend(i.fx,{tick:function(){for(var r,t=i.timers,n=0;n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop()},interval:13,stop:function(){clearInterval(g),g=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(n){i.style(n.elem,"opacity",n.now)},_default:function(n){n.elem.style&&n.elem.style[n.prop]!=null?n.elem.style[n.prop]=n.now+n.unit:n.elem[n.prop]=n.now}}}),i.each(["width","height"],function(n,t){i.fx.step[t]=function(n){i.style(n.elem,t,Math.max(0,n.now)+n.unit)}}),i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length}),fi=/^t(?:able|d|h)$/i,ot=/^(?:body|html)$/i,i.fn.offset="getBoundingClientRect"in r.documentElement?function(n){var t=this[0],r,e,u;if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);try{r=t.getBoundingClientRect()}catch(y){}if(e=t.ownerDocument,u=e.documentElement,!r||!i.contains(u,t))return r?{top:r.top,left:r.left}:{top:0,left:0};var f=e.body,o=it(e),l=u.clientTop||f.clientTop||0,a=u.clientLeft||f.clientLeft||0,v=o.pageYOffset||i.support.boxModel&&u.scrollTop||f.scrollTop,s=o.pageXOffset||i.support.boxModel&&u.scrollLeft||f.scrollLeft,h=r.top+v-l,c=r.left+s-a;return{top:h,left:c}}:function(n){var t=this[0];if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);for(var f,h=t.offsetParent,a=t,l=t.ownerDocument,c=l.documentElement,o=l.body,s=l.defaultView,e=s?s.getComputedStyle(t,null):t.currentStyle,u=t.offsetTop,r=t.offsetLeft;(t=t.parentNode)&&t!==o&&t!==c;){if(i.support.fixedPosition&&e.position==="fixed")break;f=s?s.getComputedStyle(t,null):t.currentStyle,u-=t.scrollTop,r-=t.scrollLeft,t===h&&(u+=t.offsetTop,r+=t.offsetLeft,!i.support.doesNotAddBorder||i.support.doesAddBorderForTableAndCells&&fi.test(t.nodeName)||(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),a=h,h=t.offsetParent),i.support.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"&&(u+=parseFloat(f.borderTopWidth)||0,r+=parseFloat(f.borderLeftWidth)||0),e=f}return(e.position==="relative"||e.position==="static")&&(u+=o.offsetTop,r+=o.offsetLeft),i.support.fixedPosition&&e.position==="fixed"&&(u+=Math.max(c.scrollTop,o.scrollTop),r+=Math.max(c.scrollLeft,o.scrollLeft)),{top:u,left:r}},i.offset={bodyOffset:function(n){var r=n.offsetTop,t=n.offsetLeft;return i.support.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(i.css(n,"marginTop"))||0,t+=parseFloat(i.css(n,"marginLeft"))||0),{top:r,left:t}},setOffset:function(n,t,r){var s=i.css(n,"position");s==="static"&&(n.style.position="relative");var h=i(n),c=h.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(s==="absolute"||s==="fixed")&&i.inArray("auto",[l,a])>-1,u={},e={},f,o;v?(e=h.position(),f=e.top,o=e.left):(f=parseFloat(l)||0,o=parseFloat(a)||0),i.isFunction(t)&&(t=t.call(n,r,c)),t.top!=null&&(u.top=t.top-c.top+f),t.left!=null&&(u.left=t.left-c.left+o),"using"in t?t.using.call(n,u):h.css(u)}},i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],r=this.offsetParent(),n=this.offset(),t=ot.test(r[0].nodeName)?{top:0,left:0}:r.offset();return n.top-=parseFloat(i.css(u,"marginTop"))||0,n.left-=parseFloat(i.css(u,"marginLeft"))||0,t.top+=parseFloat(i.css(r[0],"borderTopWidth"))||0,t.left+=parseFloat(i.css(r[0],"borderLeftWidth"))||0,{top:n.top-t.top,left:n.left-t.left}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.body;n&&!ot.test(n.nodeName)&&i.css(n,"position")==="static";)n=n.offsetParent;return n})}}),i.each(["Left","Top"],function(n,r){var u="scroll"+r;i.fn[u]=function(r){var e,f;return r===t?(e=this[0],!e)?null:(f=it(e),f?"pageXOffset"in f?f[n?"pageYOffset":"pageXOffset"]:i.support.boxModel&&f.document.documentElement[u]||f.document.body[u]:e[u]):this.each(function(){f=it(this),f?f.scrollTo(n?i(f).scrollLeft():r,n?r:i(f).scrollTop()):this[u]=r})}}),i.each(["Height","Width"],function(n,r){var u=r.toLowerCase();i.fn["inner"+r]=function(){var n=this[0];return n?n.style?parseFloat(i.css(n,u,"padding")):this[u]():null},i.fn["outer"+r]=function(n){var t=this[0];return t?t.style?parseFloat(i.css(t,u,n?"margin":"border")):this[u]():null},i.fn[u]=function(n){var f=this[0],s,h,e,o;return f?i.isFunction(n)?this.each(function(t){var r=i(this);r[u](n.call(this,t,r[u]()))}):i.isWindow(f)?(s=f.document.documentElement["client"+r],h=f.document.body,f.document.compatMode==="CSS1Compat"&&s||h&&h["client"+r]||s):f.nodeType===9?Math.max(f.documentElement["client"+r],f.body["scroll"+r],f.documentElement["scroll"+r],f.body["offset"+r],f.documentElement["offset"+r]):n===t?(e=i.css(f,u),o=parseFloat(e),i.isNumeric(o)?o:e):this.css(u,typeof n=="string"?n:n+"px"):n==null?null:this}}),n.jQuery=n.$=i,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})})(window),function(n,t){var i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";n.fn.imagesLoaded=function(r){function l(){var i=n(s),t=n(o);f&&(o.length?f.reject(u,i,t):f.resolve(u)),n.isFunction(r)&&r.call(e,u,i,t)}function h(t,r){t.src===i||-1!==n.inArray(t,c)||(c.push(t),r?o.push(t):s.push(t),n.data(t,"imagesLoaded",{isBroken:r,src:t.src}),a&&f.notifyWith(n(t),[r,u,n(s),n(o)]),u.length===c.length&&(setTimeout(l),u.unbind(".imagesLoaded")))}var e=this,f=n.isFunction(n.Deferred)?n.Deferred():0,a=n.isFunction(f.notify),u=e.find("img").add(e.filter("img")),c=[],s=[],o=[];return u.length?u.bind("load.imagesLoaded error.imagesLoaded",function(n){h(n.target,"error"===n.type)}).each(function(r,u){var e=u.src,f=n.data(u,"imagesLoaded");f&&f.src===e?h(u,f.isBroken):u.complete&&u.naturalWidth!==t?h(u,0===u.naturalWidth||0===u.naturalHeight):(u.readyState||u.complete)&&(u.src=i,u.src=e)}):l(),f?f.promise(e):e}}(jQuery),function(){var d=this,bt=d._,l={},r=Array.prototype,ut=Object.prototype,wt=Function.prototype,g=r.push,i=r.slice,v=r.concat,e=ut.toString,pt=ut.hasOwnProperty,nt=r.forEach,tt=r.map,ft=r.reduce,ct=r.reduceRight,lt=r.filter,ht=r.every,ot=r.some,s=r.indexOf,et=r.lastIndexOf,vt=Array.isArray,st=Object.keys,p=wt.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},t,k,b,f,o,w,a,c,u,rt,it,h;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):d._=n,n.VERSION="1.6.0",t=n.each=n.forEach=function(t,i,r){var f,u,e;if(t==null)return t;if(nt&&t.forEach===nt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,e=t.length;u<e;u++)if(i.call(r,t[u],u,t)===l)return}else for(f=n.keys(t),u=0,e=f.length;u<e;u++)if(i.call(r,t[f[u]],f[u],t)===l)return;return t},n.map=n.collect=function(n,i,r){var u=[];return n==null?u:tt&&n.map===tt?n.map(i,r):(t(n,function(n,t,f){u.push(i.call(r,n,t,f))}),u)},k="Reduce of empty array with no initial value",n.reduce=n.foldl=n.inject=function(i,r,u,f){var e=arguments.length>2;if(i==null&&(i=[]),ft&&i.reduce===ft)return f&&(r=n.bind(r,f)),e?i.reduce(r,u):i.reduce(r);if(t(i,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(k);return u},n.reduceRight=n.foldr=function(i,r,u,f){var s=arguments.length>2,e,o;if(i==null&&(i=[]),ct&&i.reduceRight===ct)return f&&(r=n.bind(r,f)),s?i.reduceRight(r,u):i.reduceRight(r);if(e=i.length,e!==+e&&(o=n.keys(i),e=o.length),t(i,function(n,t,h){t=o?o[--e]:--e,s?u=r.call(f,u,i[t],t,h):(u=i[t],s=!0)}),!s)throw new TypeError(k);return u},n.find=n.detect=function(n,t,i){var r;return b(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r},n.filter=n.select=function(n,i,r){var u=[];return n==null?u:lt&&n.filter===lt?n.filter(i,r):(t(n,function(n,t,f){i.call(r,n,t,f)&&u.push(n)}),u)},n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)},n.every=n.all=function(i,r,u){r||(r=n.identity);var f=!0;return i==null?f:ht&&i.every===ht?i.every(r,u):(t(i,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return l}),!!f)},b=n.some=n.any=function(i,r,u){r||(r=n.identity);var f=!1;return i==null?f:ot&&i.some===ot?i.some(r,u):(t(i,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return l}),!!f)},n.contains=n.include=function(n,t){return n==null?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:b(n,function(n){return n===t})},n.invoke=function(t,r){var f=i.call(arguments,2),u=n.isFunction(r);return n.map(t,function(n){return(u?r:n[r]).apply(n,f)})},n.pluck=function(t,i){return n.map(t,n.property(i))},n.where=function(t,i){return n.filter(t,n.matches(i))},n.findWhere=function(t,i){return n.find(t,n.matches(i))},n.max=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.max.apply(Math,i);var e=-Infinity,f=-Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o>f&&(e=n,f=o)}),e},n.min=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.min.apply(Math,i);var e=Infinity,f=Infinity;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o<f&&(e=n,f=o)}),e},n.shuffle=function(i){var u,f=0,r=[];return t(i,function(t){u=n.random(f++),r[f-1]=r[u],r[u]=t}),r},n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))},f=function(t){return t==null?n.identity:n.isFunction(t)?t:n.property(t)},n.sortBy=function(t,i,r){return i=f(i),n.pluck(n.map(t,function(n,t,u){return{value:n,index:t,criteria:i.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,i=t.criteria;if(r!==i){if(r>i||r===void 0)return 1;if(r<i||i===void 0)return-1}return n.index-t.index}),"value")},o=function(n){return function(i,r,u){var e={};return r=f(r),t(i,function(t,f){var o=r.call(u,t,f,i);n(e,o,t)}),e}},n.groupBy=o(function(t,i,r){n.has(t,i)?t[i].push(r):t[i]=[r]}),n.indexBy=o(function(n,t,i){n[t]=i}),n.countBy=o(function(t,i){n.has(t,i)?t[i]++:t[i]=1}),n.sortedIndex=function(n,t,i,r){var u;i=f(i);for(var s=i.call(r,t),e=0,o=n.length;e<o;)u=e+o>>>1,i.call(r,n[u])<s?e=u+1:o=u;return e},n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]},n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length},n.first=n.head=n.take=function(n,t,r){if(n!=null)return t==null||r?n[0]:t<0?[]:i.call(n,0,t)},n.initial=function(n,t,r){return i.call(n,0,n.length-(t==null||r?1:t))},n.last=function(n,t,r){if(n!=null)return t==null||r?n[n.length-1]:i.call(n,Math.max(n.length-t,0))},n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,t==null||r?1:t)},n.compact=function(t){return n.filter(t,n.identity)},w=function(i,r,u){return r&&n.every(i,n.isArray)?v.apply(u,i):(t(i,function(t){n.isArray(t)||n.isArguments(t)?r?g.apply(u,t):w(t,r,u):u.push(t)}),u)},n.flatten=function(n,t){return w(n,t,[])},n.without=function(t){return n.difference(t,i.call(arguments,1))},n.partition=function(n,i,r){i=f(i);var e=[],u=[];return t(n,function(n){(i.call(r,n)?e:u).push(n)}),[e,u]},n.uniq=n.unique=function(i,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(i,u,f):i,o=[],e=[];return t(s,function(t,u){(r?u&&e[e.length-1]===t:n.contains(e,t))||(e.push(t),o.push(i[u]))}),o},n.union=function(){return n.uniq(n.flatten(arguments,!0))},n.intersection=function(t){var r=i.call(arguments,1);return n.filter(n.uniq(t),function(t){return n.every(r,function(i){return n.contains(i,t)})})},n.difference=function(t){var u=v.apply(r,i.call(arguments,1));return n.filter(t,function(t){return!n.contains(u,t)})},n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;t<i;t++)r[t]=n.pluck(arguments,""+t);return r},n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r},n.indexOf=function(t,i,r){if(t==null)return-1;var u=0,f=t.length;if(r)if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else return u=n.sortedIndex(t,i),t[u]===i?u:-1;if(s&&t.indexOf===s)return t.indexOf(i,r);for(;u<f;u++)if(t[u]===i)return u;return-1},n.lastIndexOf=function(n,t,i){var u,r;if(n==null)return-1;if(u=i!=null,et&&n.lastIndexOf===et)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1},n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0),i=arguments[2]||1;for(var f=Math.max(Math.ceil((t-n)/i),0),u=0,r=new Array(f);u<f;)r[u++]=n,n+=i;return r},a=function(){},n.bind=function(t,r){var u,f;if(p&&t.bind===p)return p.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError;return u=i.call(arguments,2),f=function(){var e,n;return this instanceof f?(a.prototype=t.prototype,e=new a,a.prototype=null,n=t.apply(e,u.concat(i.call(arguments))),Object(n)===n)?n:e:t.apply(r,u.concat(i.call(arguments)))}},n.partial=function(t){var r=i.call(arguments,1);return function(){for(var f=0,u=r.slice(),i=0,e=u.length;i<e;i++)u[i]===n&&(u[i]=arguments[f++]);while(f<arguments.length)u.push(arguments[f++]);return t.apply(this,u)}},n.bindAll=function(r){var u=i.call(arguments,1);if(u.length===0)throw new Error("bindAll must be passed function names");return t(u,function(t){r[t]=n.bind(r[t],r)}),r},n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}},n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},n.defer=function(t){return n.delay.apply(n,[t,1].concat(i.call(arguments,1)))},n.throttle=function(t,i,r){var e,o,s,u=null,f=0,h;return r||(r={}),h=function(){f=r.leading===!1?0:n.now(),u=null,s=t.apply(e,o),e=o=null},function(){var l=n.now(),c;return f||r.leading!==!1||(f=l),c=i-(l-f),e=this,o=arguments,c<=0?(clearTimeout(u),u=null,f=l,s=t.apply(e,o),e=o=null):u||r.trailing===!1||(u=setTimeout(h,c)),s}},n.debounce=function(t,i,r){var e,f,u,h,o,s=function(){var c=n.now()-h;c<i?e=setTimeout(s,i-c):(e=null,r||(o=t.apply(u,f),u=f=null))};return function(){u=this,f=arguments,h=n.now();var c=r&&!e;return e||(e=setTimeout(s,i)),c&&(o=t.apply(u,f),u=f=null),o}},n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}},n.wrap=function(t,i){return n.partial(i,t)},n.compose=function(){var n=arguments;return function(){for(var i=arguments,t=n.length-1;t>=0;t--)i=[n[t].apply(this,i)];return i[0]}},n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},n.keys=function(t){var r,i;if(!n.isObject(t))return[];if(st)return st(t);r=[];for(i in t)n.has(t,i)&&r.push(i);return r},n.values=function(t){for(var f=n.keys(t),r=f.length,u=new Array(r),i=0;i<r;i++)u[i]=t[f[i]];return u},n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f},n.invert=function(t){for(var f={},r=n.keys(t),i=0,u=r.length;i<u;i++)f[t[r[i]]]=r[i];return f},n.functions=n.methods=function(t){var r=[],i;for(i in t)n.isFunction(t[i])&&r.push(i);return r.sort()},n.extend=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n},n.pick=function(n){var u={},f=v.apply(r,i.call(arguments,1));return t(f,function(t){t in n&&(u[t]=n[t])}),u},n.omit=function(t){var f={},e=v.apply(r,i.call(arguments,1)),u;for(u in t)n.contains(e,u)||(f[u]=t[u]);return f},n.defaults=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n},n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t},n.tap=function(n,t){return t(n),n},c=function(t,i,r,u){var v,a,h,l,f,o,s;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),v=e.call(t),v!=e.call(i))return!1;switch(v){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:t==0?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if(typeof t!="object"||typeof i!="object")return!1;for(a=r.length;a--;)if(r[a]==t)return u[a]==i;if(h=t.constructor,l=i.constructor,h!==l&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(l)&&l instanceof l)&&"constructor"in t&&"constructor"in i)return!1;if(r.push(t),u.push(i),f=0,o=!0,v=="[object Array]"){if(f=t.length,o=f==i.length,o)while(f--)if(!(o=c(t[f],i[f],r,u)))break}else{for(s in t)if(n.has(t,s)&&(f++,!(o=n.has(i,s)&&c(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!f--)break;o=!f}}return r.pop(),u.pop(),o},n.isEqual=function(n,t){return c(n,t,[],[])},n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0},n.isElement=function(n){return!!(n&&n.nodeType===1)},n.isArray=vt||function(n){return e.call(n)=="[object Array]"},n.isObject=function(n){return n===Object(n)},t(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return e.call(n)=="[object "+t+"]"}}),n.isArguments(arguments)||(n.isArguments=function(t){return!!(t&&n.has(t,"callee"))}),typeof/./!="function"&&(n.isFunction=function(n){return typeof n=="function"}),n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},n.isNaN=function(t){return n.isNumber(t)&&t!=+t},n.isBoolean=function(n){return n===!0||n===!1||e.call(n)=="[object Boolean]"},n.isNull=function(n){return n===null},n.isUndefined=function(n){return n===void 0},n.has=function(n,t){return pt.call(n,t)},n.noConflict=function(){return d._=bt,this},n.identity=function(n){return n},n.constant=function(n){return function(){return n}},n.property=function(n){return function(t){return t[n]}},n.matches=function(n){return function(t){if(t===n)return!0;for(var i in n)if(n[i]!==t[i])return!1;return!0}},n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;r<n;r++)u[r]=t.call(i,r);return u},n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},n.now=Date.now||function(){return+new Date},u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}},u.unescape=n.invert(u.escape),rt={escape:new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")},n.each(["escape","unescape"],function(t){n[t]=function(n){return n==null?"":(""+n).replace(rt[t],function(n){return u[t][n]})}}),n.result=function(t,i){if(t==null)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r},n.mixin=function(i){t(n.functions(i),function(t){var r=n[t]=i[t];n.prototype[t]=function(){var t=[this._wrapped];return g.apply(t,arguments),h.call(this,r.apply(n,t))}})},it=0,n.uniqueId=function(n){var t=++it+"";return n?n+t:t},n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var y=/(.)^/,at={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},yt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var s=new RegExp([(r.escape||y).source,(r.interpolate||y).source,(r.evaluate||y).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(s,function(n,i,r,f,e){return u+=t.slice(o,e).replace(yt,function(n){return"\\"+at[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n}),u+="';\n",r.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","_",u)}catch(h){h.source=u;throw h;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)},n.chain=function(t){return n(t).chain()},h=function(t){return this._chain?n(t).chain():t},n.mixin(n),t(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t=="shift"||t=="splice")&&n.length===0&&delete n[0],h.call(this,n)}}),t(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return h.call(this,i.apply(this._wrapped,arguments))}}),n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),typeof define=="function"&&define.amd&&define("underscore",[],function(){return n})}.call(this),function(){function n(t,r){var u,f;i(t),r=r||{},u=this,this.key=t,this.config=n.Util.extend(n.getGlobalConfig(),r.cluster?n.getClusterConfig(r.cluster):{},r),this.channels=new n.Channels,this.global_emitter=new n.EventsDispatcher,this.sessionID=Math.floor(Math.random()*1e9),this.timeline=new n.Timeline(this.key,this.sessionID,{features:n.Util.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:n.Timeline.INFO,version:n.VERSION}),this.config.disableStats||(this.timelineSender=new n.TimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline"})),f=function(t){return n.StrategyBuilder.build(n.getDefaultStrategy(u.config),n.Util.extend({},u.config,t))},this.connection=new n.ConnectionManager(this.key,n.Util.extend({getStrategy:f,timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{encrypted:this.isEncrypted()})),this.connection.bind("connected",function(){u.subscribeAll(),u.timelineSender&&u.timelineSender.send(u.connection.isEncrypted())}),this.connection.bind("message",function(n){var i=n.event.indexOf("pusher_internal:")===0,t;n.channel&&(t=u.channel(n.channel),t&&t.handleEvent(n.event,n.data)),i||u.global_emitter.emit(n.event,n.data)}),this.connection.bind("disconnected",function(){u.channels.disconnect()}),this.connection.bind("error",function(t){n.warn("Error",t)}),n.instances.push(this),this.timeline.info({instances:n.instances.length}),n.isReady&&u.connect()}function i(t){(t===null||t===undefined)&&n.warn("Warning","You must pass your app key when you instantiate Pusher.")}var t=n.prototype;n.instances=[],n.isReady=!1,n.debug=function(){n.log&&n.log(n.Util.stringify.apply(this,arguments))},n.warn=function(){var t=n.Util.stringify.apply(this,arguments);window.console&&(window.console.warn?window.console.warn(t):window.console.log&&window.console.log(t)),n.log&&n.log(t)},n.ready=function(){n.isReady=!0;for(var t=0,i=n.instances.length;t<i;t++)n.instances[t].connect()},t.channel=function(n){return this.channels.find(n)},t.allChannels=function(){return this.channels.all()},t.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var i=this.connection.isEncrypted(),t=this.timelineSender;this.timelineSenderTimer=new n.PeriodicTimer(6e4,function(){t.send(i)})}},t.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},t.bind=function(n,t){return this.global_emitter.bind(n,t),this},t.bind_all=function(n){return this.global_emitter.bind_all(n),this},t.subscribeAll=function(){var n;for(n in this.channels.channels)this.channels.channels.hasOwnProperty(n)&&this.subscribe(n)},t.subscribe=function(n){var t=this.channels.add(n,this);return this.connection.state==="connected"&&t.subscribe(),t},t.unsubscribe=function(n){var t=this.channels.remove(n);this.connection.state==="connected"&&t.unsubscribe()},t.send_event=function(n,t,i){return this.connection.send_event(n,t,i)},t.isEncrypted=function(){return n.Util.getDocumentLocation().protocol==="https:"?!0:Boolean(this.config.encrypted)},this.Pusher=n}.call(this),function(){function t(n,t){var i=this;this.timeout=setTimeout(function(){i.timeout!==null&&(t(),i.timeout=null)},n)}var n=t.prototype;n.isRunning=function(){return this.timeout!==null},n.ensureAborted=function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},Pusher.Timer=t}.call(this),function(){function t(n,t){var i=this;this.interval=setInterval(function(){i.interval!==null&&t()},n)}var n=t.prototype;n.isRunning=function(){return this.interval!==null},n.ensureAborted=function(){this.interval&&(clearInterval(this.interval),this.interval=null)},Pusher.PeriodicTimer=t}.call(this),function(){Pusher.Util={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(n){return new Pusher.Timer(0,n)},extend:function(n){for(var i,t,r=1;r<arguments.length;r++){i=arguments[r];for(t in i)n[t]=i[t]&&i[t].constructor&&i[t].constructor===Object?Pusher.Util.extend(n[t]||{},i[t]):i[t]}return n},stringify:function(){for(var t=["Pusher"],n=0;n<arguments.length;n++)typeof arguments[n]=="string"?t.push(arguments[n]):window.JSON===undefined?t.push(arguments[n].toString()):t.push(JSON.stringify(arguments[n]));return t.join(" : ")},arrayIndexOf:function(n,t){var u=Array.prototype.indexOf,i,r;if(n===null)return-1;if(u&&n.indexOf===u)return n.indexOf(t);for(i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},objectApply:function(n,t){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t(n[i],i,n)},keys:function(n){var t=[];return Pusher.Util.objectApply(n,function(n,i){t.push(i)}),t},values:function(n){var t=[];return Pusher.Util.objectApply(n,function(n){t.push(n)}),t},apply:function(n,t){for(var i=0;i<n.length;i++)t(n[i],i,n)},map:function(n,t){for(var r=[],i=0;i<n.length;i++)r.push(t(n[i],i,n,r));return r},mapObject:function(n,t){var i={};return Pusher.Util.objectApply(n,function(n,r){i[r]=t(n)}),i},filter:function(n,t){var r,i;for(t=t||function(n){return!!n},r=[],i=0;i<n.length;i++)t(n[i],i,n,r)&&r.push(n[i]);return r},filterObject:function(n,t){var i={};return Pusher.Util.objectApply(n,function(r,u){(t&&t(r,u,n,i)||Boolean(r))&&(i[u]=r)}),i},flatten:function(n){var t=[];return Pusher.Util.objectApply(n,function(n,i){t.push([i,n])}),t},any:function(n,t){for(var i=0;i<n.length;i++)if(t(n[i],i,n))return!0;return!1},all:function(n,t){for(var i=0;i<n.length;i++)if(!t(n[i],i,n))return!1;return!0},method:function(n){var t=Array.prototype.slice.call(arguments,1);return function(i){return i[n].apply(i,t.concat(arguments))}},getDocument:function(){return document},getDocumentLocation:function(){return Pusher.Util.getDocument().location},getLocalStorage:function(){try{return window.localStorage}catch(n){return undefined}},getClientFeatures:function(){return Pusher.Util.keys(Pusher.Util.filterObject({ws:Pusher.WSTransport,flash:Pusher.FlashTransport},function(n){return n.isSupported()}))}}}.call(this),function(){Pusher.VERSION="2.1.6",Pusher.PROTOCOL=7,Pusher.host="ws.pusherapp.com",Pusher.ws_port=80,Pusher.wss_port=443,Pusher.sockjs_host="sockjs.pusher.com",Pusher.sockjs_http_port=80,Pusher.sockjs_https_port=443,Pusher.sockjs_path="/pusher",Pusher.stats_host="stats.pusher.com",Pusher.channel_auth_endpoint="/pusher/auth",Pusher.channel_auth_transport="ajax",Pusher.activity_timeout=12e4,Pusher.pong_timeout=3e4,Pusher.unavailable_timeout=1e4,Pusher.cdn_http="http://js.pusher.com/",Pusher.cdn_https="https://d3dy5gmtp8yhk7.cloudfront.net/",Pusher.dependency_suffix="",Pusher.getDefaultStrategy=function(n){return[[":def","ws_options",{hostUnencrypted:n.wsHost+":"+n.wsPort,hostEncrypted:n.wsHost+":"+n.wssPort}],[":def","sockjs_options",{hostUnencrypted:n.httpHost+":"+n.httpPort,hostEncrypted:n.httpHost+":"+n.httpsPort}],[":def","timeouts",{loop:!0,timeout:15e3,timeoutLimit:6e4}],[":def","ws_manager",[":transport_manager",{lives:2,minPingDelay:1e4,maxPingDelay:n.activity_timeout}]],[":def_transport","ws","ws",3,":ws_options",":ws_manager"],[":def_transport","flash","flash",2,":ws_options",":ws_manager"],[":def_transport","sockjs","sockjs",1,":sockjs_options"],[":def","ws_loop",[":sequential",":timeouts",":ws"]],[":def","flash_loop",[":sequential",":timeouts",":flash"]],[":def","sockjs_loop",[":sequential",":timeouts",":sockjs"]],[":def","strategy",[":cached",18e5,[":first_connected",[":if",[":is_supported",":ws"],[":best_connected_ever",":ws_loop",[":delayed",2e3,[":sockjs_loop"]]],[":if",[":is_supported",":flash"],[":best_connected_ever",":flash_loop",[":delayed",2e3,[":sockjs_loop"]]],[":sockjs_loop"]]]]]]]}}.call(this),function(){Pusher.getGlobalConfig=function(){return{wsHost:Pusher.host,wsPort:Pusher.ws_port,wssPort:Pusher.wss_port,httpHost:Pusher.sockjs_host,httpPort:Pusher.sockjs_http_port,httpsPort:Pusher.sockjs_https_port,httpPath:Pusher.sockjs_path,statsHost:Pusher.stats_host,authEndpoint:Pusher.channel_auth_endpoint,authTransport:Pusher.channel_auth_transport,activity_timeout:Pusher.activity_timeout,pong_timeout:Pusher.pong_timeout,unavailable_timeout:Pusher.unavailable_timeout}},Pusher.getClusterConfig=function(n){return{wsHost:"ws-"+n+".pusher.com",httpHost:"sockjs-"+n+".pusher.com"}}}.call(this),function(){function n(n){var t=function(t){Error.call(this,t),this.name=n};return Pusher.Util.extend(t.prototype,Error.prototype),t}Pusher.Errors={BadEventName:n("BadEventName"),UnsupportedTransport:n("UnsupportedTransport"),UnsupportedStrategy:n("UnsupportedStrategy"),TransportPriorityTooLow:n("TransportPriorityTooLow"),TransportClosed:n("TransportClosed")}}.call(this),function(){function i(t){this.callbacks=new n,this.global_callbacks=[],this.failThrough=t}function n(){this._callbacks={}}var t=i.prototype;t.bind=function(n,t){return this.callbacks.add(n,t),this},t.bind_all=function(n){return this.global_callbacks.push(n),this},t.unbind=function(n,t){return this.callbacks.remove(n,t),this},t.emit=function(n,t){for(var r,i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](n,t);if(r=this.callbacks.get(n),r&&r.length>0)for(i=0;i<r.length;i++)r[i](t);else this.failThrough&&this.failThrough(n,t);return this},n.prototype.get=function(n){return this._callbacks[this._prefix(n)]},n.prototype.add=function(n,t){var i=this._prefix(n);this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push(t)},n.prototype.remove=function(n,t){var r,i;this.get(n)&&(r=Pusher.Util.arrayIndexOf(this.get(n),t),r!==-1&&(i=this._callbacks[this._prefix(n)].slice(0),i.splice(r,1),this._callbacks[this._prefix(n)]=i))},n.prototype._prefix=function(n){return"_"+n},Pusher.EventsDispatcher=i}.call(this),function(){function t(n){this.options=n,this.loading={},this.loaded={}}function r(n,t){Pusher.Util.getDocument().addEventListener?n.addEventListener("load",t,!1):n.attachEvent("onreadystatechange",function(){(n.readyState==="loaded"||n.readyState==="complete")&&t()})}function i(n,t){var u=Pusher.Util.getDocument(),f=u.getElementsByTagName("head")[0],i=u.createElement("script");i.setAttribute("src",n),i.setAttribute("type","text/javascript"),i.setAttribute("async",!0),r(i,function(){setTimeout(t,0)}),f.appendChild(i)}var n=t.prototype;n.load=function(n,t){var r=this;this.loaded[n]?t():this.loading[n]&&this.loading[n].length>0?this.loading[n].push(t):(this.loading[n]=[t],i(this.getPath(n),function(){if(r.loaded[n]=!0,r.loading[n]){for(var t=0;t<r.loading[n].length;t++)r.loading[n][t]();delete r.loading[n]}}))},n.getRoot=function(n){var t,i=Pusher.Util.getDocumentLocation().protocol;return t=n&&n.encrypted||i==="https:"?this.options.cdn_https:this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version},n.getPath=function(n,t){return this.getRoot(t)+"/"+n+this.options.suffix+".js"},Pusher.DependencyLoader=t}.call(this),function(){function i(){Pusher.ready()}function t(n){document.body?n():setTimeout(function(){t(n)},0)}function n(){t(i)}Pusher.Dependencies=new Pusher.DependencyLoader({cdn_http:Pusher.cdn_http,cdn_https:Pusher.cdn_https,version:Pusher.VERSION,suffix:Pusher.dependency_suffix}),!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),window.JSON?n():Pusher.Dependencies.load("json2",n)}(),function(){for(var s={encode:function(n){return f(u(n))}},i=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={},t=0,r=n.length;t<r;t++)o[n.charAt(t)]=t;var h=function(n){var t=n.charCodeAt(0);return t<128?n:t<2048?i(192|t>>>6)+i(128|t&63):i(224|t>>>12&15)+i(128|t>>>6&63)+i(128|t&63)},u=function(n){return n.replace(/[^\x00-\x7F]/g,h)},e=function(t){var r=[0,2,1][t.length%3],i=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0),u=[n.charAt(i>>>18),n.charAt(i>>>12&63),r>=2?"=":n.charAt(i>>>6&63),r>=1?"=":n.charAt(i&63)];return u.join("")},f=window.btoa||function(n){return n.replace(/[\s\S]{1,3}/g,e)};Pusher.Base64=s}.call(this),function(){function n(n){this.options=n}function i(n){return Pusher.Util.mapObject(n,function(n){return typeof n=="object"&&(n=JSON.stringify(n)),encodeURIComponent(Pusher.Base64.encode(n.toString()))})}n.send=function(n,t){var r=new Pusher.JSONPRequest({url:n.url,receiver:n.receiverName,tagPrefix:n.tagPrefix}),i=n.receiver.register(function(n,i){r.cleanup(),t(n,i)});return r.send(i,n.data,function(t){var r=n.receiver.unregister(i);r&&r(t)})};var t=n.prototype;t.send=function(n,t,r){var e,f,u;if(this.script)return!1;var h=this.options.tagPrefix||"_pusher_jsonp_",o=Pusher.Util.extend({},t,{receiver:this.options.receiver}),s=Pusher.Util.map(Pusher.Util.flatten(i(Pusher.Util.filterObject(o,function(n){return n!==undefined}))),Pusher.Util.method("join","=")).join("&");return this.script=document.createElement("script"),this.script.id=h+n,this.script.src=this.options.url+"/"+n+"?"+s,this.script.type="text/javascript",this.script.charset="UTF-8",this.script.onerror=this.script.onload=r,this.script.async===undefined&&document.attachEvent&&/opera/i.test(navigator.userAgent)&&(e=this.options.receiver||"Pusher.JSONP.receive",this.errorScript=document.createElement("script"),this.errorScript.text=e+"("+n+", true);",this.script.async=this.errorScript.async=!1),f=this,this.script.onreadystatechange=function(){f.script&&/loaded|complete/.test(f.script.readyState)&&r(!0)},u=document.getElementsByTagName("head")[0],u.insertBefore(this.script,u.firstChild),this.errorScript&&u.insertBefore(this.errorScript,this.script.nextSibling),!0},t.cleanup=function(){this.script&&this.script.parentNode&&(this.script.parentNode.removeChild(this.script),this.script=null),this.errorScript&&this.errorScript.parentNode&&(this.errorScript.parentNode.removeChild(this.errorScript),this.errorScript=null)},Pusher.JSONPRequest=n}.call(this),function(){function t(){this.lastId=0,this.callbacks={}}var n=t.prototype;n.register=function(n){this.lastId++;var t=this.lastId;return this.callbacks[t]=n,t},n.unregister=function(n){if(this.callbacks[n]){var t=this.callbacks[n];return delete this.callbacks[n],t}return null},n.receive=function(n,t,i){var r=this.unregister(n);r&&r(t,i)},Pusher.JSONPReceiver=t,Pusher.JSONP=new t}.call(this),function(){function n(n,t,i){this.key=n,this.session=t,this.events=[],this.options=i||{},this.sent=0,this.uniqueID=0}var t=n.prototype;n.ERROR=3,n.INFO=6,n.DEBUG=7,t.log=function(t,i){(this.options.level===undefined||t<=this.options.level)&&(this.events.push(Pusher.Util.extend({},i,{timestamp:Pusher.Util.now(),level:t!==n.INFO?t:undefined})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.error=function(t){this.log(n.ERROR,t)},t.info=function(t){this.log(n.INFO,t)},t.debug=function(t){this.log(n.DEBUG,t)},t.isEmpty=function(){return this.events.length===0},t.send=function(n,t){var i=this,r=Pusher.Util.extend({session:i.session,bundle:i.sent+1,key:i.key,lib:"js",version:i.options.version,features:i.options.features,timeline:i.events},i.options.params);return i.events=[],n(r,function(n,r){n||i.sent++,t&&t(n,r)}),!0},t.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},Pusher.Timeline=n}.call(this),function(){function n(n,t){this.timeline=n,this.options=t||{}}var t=n.prototype;t.send=function(n,t){if(!this.timeline.isEmpty()){var i=this,u="http"+(n?"s":"")+"://",r=function(n,t){var r={data:Pusher.Util.filterObject(n,function(n){return n!==undefined}),url:u+(i.host||i.options.host)+i.options.path,receiver:Pusher.JSONP};return Pusher.JSONPRequest.send(r,function(n,r){r&&r.host&&(i.host=r.host),t&&t(n,r)})};i.timeline.send(r,t)}},Pusher.TimelineSender=n}.call(this),function(){function t(n){this.strategies=n}function u(n,t,r){var u=Pusher.Util.map(n,function(n,i,u,f){return n.connect(t,r(i,f))});return{abort:function(){Pusher.Util.apply(u,i)},forceMinPriority:function(n){Pusher.Util.apply(u,function(t){t.forceMinPriority(n)})}}}function r(n){return Pusher.Util.all(n,function(n){return Boolean(n.error)})}function i(n){n.error||n.aborted||(n.abort(),n.aborted=!0)}var n=t.prototype;n.isSupported=function(){return Pusher.Util.any(this.strategies,Pusher.Util.method("isSupported"))},n.connect=function(n,t){return u(this.strategies,n,function(n,i){return function(u,f){if(i[n].error=u,u){r(i)&&t(!0);return}Pusher.Util.apply(i,function(n){n.forceMinPriority(f.transport.priority)}),t(null,f)}})},Pusher.BestConnectedEverStrategy=t}.call(this),function(){function i(n,t,i){this.strategy=n,this.transports=t,this.ttl=i.ttl||18e5,this.encrypted=i.encrypted,this.timeline=i.timeline}function n(n){return"pusherTransport"+(n?"Encrypted":"Unencrypted")}function u(i){var u=Pusher.Util.getLocalStorage(),r;if(u)try{if(r=u[n(i)],r)return JSON.parse(r)}catch(f){t(i)}return null}function f(t,i,r){var u=Pusher.Util.getLocalStorage();if(u)try{u[n(t)]=JSON.stringify({timestamp:Pusher.Util.now(),transport:i,latency:r})}catch(f){}}function t(t){var i=Pusher.Util.getLocalStorage();if(i)try{delete i[n(t)]}catch(r){}}var r=i.prototype;r.isSupported=function(){return this.strategy.isSupported()},r.connect=function(n,i){var s=this.encrypted,e=u(s),o=[this.strategy],c,h,r;return e&&e.timestamp+this.ttl>=Pusher.Util.now()&&(c=this.transports[e.transport],c&&(this.timeline.info({cached:!0,transport:e.transport}),o.push(new Pusher.SequentialStrategy([c],{timeout:e.latency*2,failFast:!0})))),h=Pusher.Util.now(),r=o.pop().connect(n,function l(u,e){u?(t(s),o.length>0?(h=Pusher.Util.now(),r=o.pop().connect(n,l)):i(u)):(f(s,e.transport.name,Pusher.Util.now()-h),i(null,e))}),{abort:function(){r.abort()},forceMinPriority:function(t){n=t,r&&r.forceMinPriority(t)}}},Pusher.CachedStrategy=i}.call(this),function(){function t(n,t){this.strategy=n,this.options={delay:t.delay}}var n=t.prototype;n.isSupported=function(){return this.strategy.isSupported()},n.connect=function(n,t){var u=this.strategy,i,r=new Pusher.Timer(this.options.delay,function(){i=u.connect(n,t)});return{abort:function(){r.ensureAborted(),i&&i.abort()},forceMinPriority:function(t){n=t,i&&i.forceMinPriority(t)}}},Pusher.DelayedStrategy=t}.call(this),function(){function t(n){this.strategy=n}var n=t.prototype;n.isSupported=function(){return this.strategy.isSupported()},n.connect=function(n,t){var i=this.strategy.connect(n,function(n,r){r&&i.abort(),t(n,r)});return i},Pusher.FirstConnectedStrategy=t}.call(this),function(){function t(n,t,i){this.test=n,this.trueBranch=t,this.falseBranch=i}var n=t.prototype;n.isSupported=function(){var n=this.test()?this.trueBranch:this.falseBranch;return n.isSupported()},n.connect=function(n,t){var i=this.test()?this.trueBranch:this.falseBranch;return i.connect(n,t)},Pusher.IfStrategy=t}.call(this),function(){function t(n,t){this.strategies=n,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}var n=t.prototype;n.isSupported=function(){return Pusher.Util.any(this.strategies,Pusher.Util.method("isSupported"))},n.connect=function(n,t){var u=this,e=this.strategies,i=0,r=this.timeout,f=null,o=function(s,h){h?t(null,h):(i=i+1,u.loop&&(i=i%e.length),i<e.length?(r&&(r=r*2,u.timeoutLimit&&(r=Math.min(r,u.timeoutLimit))),f=u.tryStrategy(e[i],n,{timeout:r,failFast:u.failFast},o)):t(!0))};return f=this.tryStrategy(e[i],n,{timeout:r,failFast:this.failFast},o),{abort:function(){f.abort()},forceMinPriority:function(t){n=t,f&&f.forceMinPriority(t)}}},n.tryStrategy=function(n,t,i,r){var u=null,f=null;return i.timeout>0&&(u=new Pusher.Timer(i.timeout,function(){f.abort(),r(!0)})),f=n.connect(t,function(n,t){n&&u&&u.isRunning()&&!i.failFast||(u&&u.ensureAborted(),r(n,t))}),{abort:function(){u&&u.ensureAborted(),f.abort()},forceMinPriority:function(n){f.forceMinPriority(n)}}},Pusher.SequentialStrategy=t}.call(this),function(){function i(n,t,i,r){this.name=n,this.priority=t,this.transport=i,this.options=r||{}}function n(n,t){return Pusher.Util.defer(function(){t(n)}),{abort:function(){},forceMinPriority:function(){}}}var t=i.prototype;t.isSupported=function(){return this.transport.isSupported()},t.connect=function(t,i){if(this.isSupported()){if(this.priority<t)return n(new Pusher.Errors.TransportPriorityTooLow,i)}else return n(new Pusher.Errors.UnsupportedStrategy,i);var l=this,e=!1,r=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),u=null,o=function(){r.unbind("initialized",o),r.connect()},h=function(){u=new Pusher.Handshake(r,function(n){e=!0,f(),i(null,n)})},c=function(n){f(),i(n)},s=function(){f(),i(new Pusher.Errors.TransportClosed(r))},f=function(){r.unbind("initialized",o),r.unbind("open",h),r.unbind("error",c),r.unbind("closed",s)};return r.bind("initialized",o),r.bind("open",h),r.bind("error",c),r.bind("closed",s),r.initialize(),{abort:function(){e||(f(),u?u.close():r.close())},forceMinPriority:function(n){e||l.priority<n&&(u?u.close():r.close())}}},Pusher.TransportStrategy=i}.call(this),function(){function t(n,t,i,r){Pusher.EventsDispatcher.call(this),this.name=n,this.priority=t,this.key=i,this.state="new",this.timeline=r.timeline,this.activityTimeout=r.activityTimeout,this.id=this.timeline.generateUniqueID(),this.options={encrypted:Boolean(r.encrypted),hostUnencrypted:r.hostUnencrypted,hostEncrypted:r.hostEncrypted}}var n=t.prototype;Pusher.Util.extend(n,Pusher.EventsDispatcher.prototype),t.isSupported=function(){return!1},n.supportsPing=function(){return!1},n.initialize=function(){this.timeline.info(this.buildTimelineMessage({transport:this.name+(this.options.encrypted?"s":"")})),this.timeline.debug(this.buildTimelineMessage({method:"initialize"})),this.changeState("initialized")},n.connect=function(){var t=this.getURL(this.key,this.options),n;if(this.timeline.debug(this.buildTimelineMessage({method:"connect",url:t})),this.socket||this.state!=="initialized")return!1;try{this.socket=this.createSocket(t)}catch(i){return n=this,Pusher.Util.defer(function(){n.onError(i);n.changeState("closed")}),!1}return this.bindListeners(),Pusher.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0},n.close=function(){return this.timeline.debug(this.buildTimelineMessage({method:"close"})),this.socket?(this.socket.close(),!0):!1},n.send=function(n){if(this.timeline.debug(this.buildTimelineMessage({method:"send",data:n})),this.state==="open"){var t=this;return setTimeout(function(){t.socket&&t.socket.send(n)},0),!0}return!1},n.onOpen=function(){this.changeState("open"),this.socket.onopen=undefined},n.onError=function(n){this.emit("error",{type:"WebSocketError",error:n}),this.timeline.error(this.buildTimelineMessage({}))},n.onClose=function(n){n?this.changeState("closed",{code:n.code,reason:n.reason,wasClean:n.wasClean}):this.changeState("closed"),this.socket=undefined},n.onMessage=function(n){this.timeline.debug(this.buildTimelineMessage({message:n.data})),this.emit("message",n)},n.bindListeners=function(){var n=this;this.socket.onopen=function(){n.onOpen()},this.socket.onerror=function(t){n.onError(t)},this.socket.onclose=function(t){n.onClose(t)},this.socket.onmessage=function(t){n.onMessage(t)}},n.createSocket=function(){return null},n.getScheme=function(){return this.options.encrypted?"wss":"ws"},n.getBaseURL=function(){var n;return n=this.options.encrypted?this.options.hostEncrypted:this.options.hostUnencrypted,this.getScheme()+"://"+n},n.getPath=function(){return"/app/"+this.key},n.getQueryString=function(){return"?protocol="+Pusher.PROTOCOL+"&client=js&version="+Pusher.VERSION},n.getURL=function(){return this.getBaseURL()+this.getPath()+this.getQueryString()},n.changeState=function(n,t){this.state=n,this.timeline.info(this.buildTimelineMessage({state:n,params:t})),this.emit(n,t)},n.buildTimelineMessage=function(n){return Pusher.Util.extend({cid:this.id},n)},Pusher.AbstractTransport=t}.call(this),function(){function n(n,t,i,r){Pusher.AbstractTransport.call(this,n,t,i,r)}var t=n.prototype;Pusher.Util.extend(t,Pusher.AbstractTransport.prototype),n.createConnection=function(t,i,r,u){return new n(t,i,r,u)},n.isSupported=function(){try{return Boolean(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))}catch(n){try{return Boolean(navigator&&navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]!==undefined)}catch(n){return!1}}},t.initialize=function(){var n=this;this.timeline.info(this.buildTimelineMessage({transport:this.name+(this.options.encrypted?"s":"")})),this.timeline.debug(this.buildTimelineMessage({method:"initialize"})),this.changeState("initializing"),window.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR===undefined&&(window.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR=!0),window.WEB_SOCKET_SWF_LOCATION=Pusher.Dependencies.getRoot()+"/WebSocketMain.swf",Pusher.Dependencies.load("flashfallback",function(){n.changeState("initialized")})},t.createSocket=function(n){return new FlashWebSocket(n)},t.getQueryString=function(){return Pusher.AbstractTransport.prototype.getQueryString.call(this)+"&flash=true"},Pusher.FlashTransport=n}.call(this),function(){function t(n,t,i,r){Pusher.AbstractTransport.call(this,n,t,i,r),this.options.ignoreNullOrigin=r.ignoreNullOrigin}var n=t.prototype;Pusher.Util.extend(n,Pusher.AbstractTransport.prototype),t.createConnection=function(n,i,r,u){return new t(n,i,r,u)},t.isSupported=function(){return!0},n.initialize=function(){var n=this;this.timeline.info(this.buildTimelineMessage({transport:this.name+(this.options.encrypted?"s":"")})),this.timeline.debug(this.buildTimelineMessage({method:"initialize"})),this.changeState("initializing"),Pusher.Dependencies.load("sockjs",function(){n.changeState("initialized")})},n.supportsPing=function(){return!0},n.createSocket=function(n){return new SockJS(n,null,{js_path:Pusher.Dependencies.getPath("sockjs",{encrypted:this.options.encrypted}),ignore_null_origin:this.options.ignoreNullOrigin})},n.getScheme=function(){return this.options.encrypted?"https":"http"},n.getPath=function(){return this.options.httpPath||"/pusher"},n.getQueryString=function(){return""},n.onOpen=function(){this.socket.send(JSON.stringify({path:Pusher.AbstractTransport.prototype.getPath.call(this)+Pusher.AbstractTransport.prototype.getQueryString.call(this)})),this.changeState("open"),this.socket.onopen=undefined},Pusher.SockJSTransport=t}.call(this),function(){function n(n,t,i,r){Pusher.AbstractTransport.call(this,n,t,i,r)}var t=n.prototype;Pusher.Util.extend(t,Pusher.AbstractTransport.prototype),n.createConnection=function(t,i,r,u){return new n(t,i,r,u)},n.isSupported=function(){return window.WebSocket!==undefined||window.MozWebSocket!==undefined},t.createSocket=function(n){var t=window.WebSocket||window.MozWebSocket;return new t(n)},t.getQueryString=function(){return Pusher.AbstractTransport.prototype.getQueryString.call(this)+"&flash=false"},Pusher.WSTransport=n}.call(this),function(){function t(n,t,i){this.manager=n,this.transport=t,this.minPingDelay=i.minPingDelay,this.maxPingDelay=i.maxPingDelay,this.pingDelay=undefined}var n=t.prototype;n.createConnection=function(n,t,i,r){var u=this,r=Pusher.Util.extend({},r,{activityTimeout:u.pingDelay}),f=u.transport.createConnection(n,t,i,r),e=null,s=function(){f.unbind("open",s),f.bind("closed",o),e=Pusher.Util.now()},o=function(n){if(f.unbind("closed",o),n.code===1002||n.code===1003)u.manager.reportDeath();else if(!n.wasClean&&e){var t=Pusher.Util.now()-e;t<2*u.maxPingDelay&&(u.manager.reportDeath(),u.pingDelay=Math.max(t/2,u.minPingDelay))}};return f.bind("open",s),f},n.isSupported=function(){return this.manager.isAlive()&&this.transport.isSupported()},Pusher.AssistantToTheTransportManager=t}.call(this),function(){function t(n){this.options=n||{},this.livesLeft=this.options.lives||Infinity}var n=t.prototype;n.getAssistant=function(n){return new Pusher.AssistantToTheTransportManager(this,n,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},n.isAlive=function(){return this.livesLeft>0},n.reportDeath=function(){this.livesLeft-=1},Pusher.TransportManager=t}.call(this),function(){function n(n){return function(t){return[n.apply(this,arguments),t]}}function i(n){return typeof n=="string"&&n.charAt(0)===":"}function u(n,t){return t[n.slice(1)]}function r(n,i){if(n.length===0)return[[],i];var f=t(n[0],i),u=r(n.slice(1),f[1]);return[[f[0]].concat(u[0]),u[1]]}function f(n,t){if(!i(n))return[n,t];var r=u(n,t);if(r===undefined)throw"Undefined symbol "+n;return[r,t]}function e(n,f){var e,o;if(i(n[0])){if(e=u(n[0],f),n.length>1){if(typeof e!="function")throw"Calling non-function "+n[0];return o=[Pusher.Util.extend({},f)].concat(Pusher.Util.map(n.slice(1),function(n){return t(n,Pusher.Util.extend({},f))[0]})),e.apply(this,o)}return[e,f]}return r(n,f)}function t(n,t){var i=typeof n;return typeof n=="string"?f(n,t):typeof n=="object"&&n instanceof Array&&n.length>0?e(n,t):[n,t]}var o={build:function(n,i){var r=Pusher.Util.extend({},s,i);return t(n,r)[1].strategy}},c={ws:Pusher.WSTransport,flash:Pusher.FlashTransport,sockjs:Pusher.SockJSTransport},h={isSupported:function(){return!1},connect:function(n,t){var i=Pusher.Util.defer(function(){t(new Pusher.Errors.UnsupportedStrategy)});return{abort:function(){i.ensureAborted()},forceMinPriority:function(){}}}},s={def:function(n,t,i){if(n[t]!==undefined)throw"Redefining symbol "+t;return n[t]=i,[undefined,n]},def_transport:function(n,t,i,r,u,f){var s=c[i],l,e,o;if(!s)throw new Pusher.Errors.UnsupportedTransport(i);return l=(!n.enabledTransports||Pusher.Util.arrayIndexOf(n.enabledTransports,t)!==-1)&&(!n.disabledTransports||Pusher.Util.arrayIndexOf(n.disabledTransports,t)===-1)&&(t!=="flash"||n.disableFlash!==!0),e=l?new Pusher.TransportStrategy(t,r,f?f.getAssistant(s):s,Pusher.Util.extend({key:n.key,encrypted:n.encrypted,timeline:n.timeline,ignoreNullOrigin:n.ignoreNullOrigin},u)):h,o=n.def(n,t,e)[1],o.transports=n.transports||{},o.transports[t]=e,[undefined,o]},transport_manager:n(function(n,t){return new Pusher.TransportManager(t)}),sequential:n(function(n,t){var i=Array.prototype.slice.call(arguments,2);return new Pusher.SequentialStrategy(i,t)}),cached:n(function(n,t,i){return new Pusher.CachedStrategy(i,n.transports,{ttl:t,timeline:n.timeline,encrypted:n.encrypted})}),first_connected:n(function(n,t){return new Pusher.FirstConnectedStrategy(t)}),best_connected_ever:n(function(){var n=Array.prototype.slice.call(arguments,1);return new Pusher.BestConnectedEverStrategy(n)}),delayed:n(function(n,t,i){return new Pusher.DelayedStrategy(i,{delay:t})}),"if":n(function(n,t,i,r){return new Pusher.IfStrategy(t,i,r)}),is_supported:n(function(n,t){return function(){return t.isSupported()}})};Pusher.StrategyBuilder=o}.call(this),function(){var n={};n.decodeMessage=function(n){try{var t=JSON.parse(n.data);if(typeof t.data=="string")try{t.data=JSON.parse(t.data)}catch(i){if(!(i instanceof SyntaxError))throw i;}return t}catch(i){throw{type:"MessageParseError",error:i,data:n.data};}},n.encodeMessage=function(n){return JSON.stringify(n)},n.processHandshake=function(n){if(n=this.decodeMessage(n),n.event==="pusher:connection_established"){if(!n.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:n.data.socket_id,activityTimeout:n.data.activity_timeout*1e3}}if(n.event==="pusher:error")return{action:this.getCloseAction(n.data),error:this.getCloseError(n.data)};throw"Invalid handshake";},n.getCloseAction=function(n){return n.code<4e3?n.code>=1002&&n.code<=1004?"backoff":null:n.code===4e3?"ssl_only":n.code<4100?"refused":n.code<4200?"backoff":n.code<4300?"retry":"refused"},n.getCloseError=function(n){return n.code!==1e3&&n.code!==1001?{type:"PusherError",data:{code:n.code,message:n.reason||n.message}}:null},Pusher.Protocol=n}.call(this),function(){function t(n,t){Pusher.EventsDispatcher.call(this),this.id=n,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}var n=t.prototype;Pusher.Util.extend(n,Pusher.EventsDispatcher.prototype),n.supportsPing=function(){return this.transport.supportsPing()},n.send=function(n){return this.transport.send(n)},n.send_event=function(n,t,i){var r={event:n,data:t};return i&&(r.channel=i),Pusher.debug("Event sent",r),this.send(Pusher.Protocol.encodeMessage(r))},n.close=function(){this.transport.close()},n.bindListeners=function(){var n=this,r=function(t){var i;try{i=Pusher.Protocol.decodeMessage(t)}catch(r){n.emit("error",{type:"MessageParseError",error:r,data:t.data})}if(i!==undefined){Pusher.debug("Event recd",i);switch(i.event){case"pusher:error":n.emit("error",{type:"PusherError",data:i.data});break;case"pusher:ping":n.emit("ping");break;case"pusher:pong":n.emit("pong")}n.emit("message",i)}},i=function(t){n.emit("error",{type:"WebSocketError",error:t})},t=function(t){u(),t&&t.code&&n.handleCloseEvent(t),n.transport=null,n.emit("closed")},u=function(){n.transport.unbind("closed",t),n.transport.unbind("error",i),n.transport.unbind("message",r)};n.transport.bind("message",r),n.transport.bind("error",i),n.transport.bind("closed",t)},n.handleCloseEvent=function(n){var i=Pusher.Protocol.getCloseAction(n),t=Pusher.Protocol.getCloseError(n);t&&this.emit("error",t),i&&this.emit(i)},Pusher.Connection=t}.call(this),function(){function t(n,t){this.transport=n,this.callback=t,this.bindListeners()}var n=t.prototype;n.close=function(){this.unbindListeners(),this.transport.close()},n.bindListeners=function(){var n=this;n.onMessage=function(t){n.unbindListeners();try{var i=Pusher.Protocol.processHandshake(t);i.action==="connected"?n.finish("connected",{connection:new Pusher.Connection(i.id,n.transport),activityTimeout:i.activityTimeout}):(n.finish(i.action,{error:i.error}),n.transport.close())}catch(r){n.finish("error",{error:r}),n.transport.close()}},n.onClosed=function(t){n.unbindListeners();var r=Pusher.Protocol.getCloseAction(t)||"backoff",i=Pusher.Protocol.getCloseError(t);n.finish(r,{error:i})},n.transport.bind("message",n.onMessage),n.transport.bind("closed",n.onClosed)},n.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},n.finish=function(n,t){this.callback(Pusher.Util.extend({transport:this.transport,action:n},t))},Pusher.Handshake=t}.call(this),function(){function t(n,t){Pusher.EventsDispatcher.call(this),this.key=n,this.options=t||{},this.state="initialized",this.connection=null,this.encrypted=!!t.encrypted,this.timeline=this.options.timeline,this.connectionCallbacks=this.buildConnectionCallbacks(),this.errorCallbacks=this.buildErrorCallbacks(),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var i=this;Pusher.Network.bind("online",function(){i.timeline.info({netinfo:"online"}),(i.state==="connecting"||i.state==="unavailable")&&i.retryIn(0)}),Pusher.Network.bind("offline",function(){i.timeline.info({netinfo:"offline"}),i.state==="connected"&&i.sendActivityCheck()}),this.updateStrategy()}var n=t.prototype;Pusher.Util.extend(n,Pusher.EventsDispatcher.prototype),n.connect=function(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},n.send=function(n){return this.connection?this.connection.send(n):!1},n.send_event=function(n,t,i){return this.connection?this.connection.send_event(n,t,i):!1},n.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},n.isEncrypted=function(){return this.encrypted},n.startConnecting=function(){var n=this,t=function(i,r){i?n.runner=n.strategy.connect(0,t):r.action==="error"?(n.emit("error",{type:"HandshakeError",error:r.error}),n.timeline.error({handshakeError:r.error})):(n.abortConnecting(),n.handshakeCallbacks[r.action](r))};n.runner=n.strategy.connect(0,t)},n.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},n.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.stopActivityCheck(),this.connection){var n=this.abandonConnection();n.close()}},n.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,encrypted:this.encrypted})},n.retryIn=function(n){var t=this;t.timeline.info({action:"retry",delay:n}),n>0&&t.emit("connecting_in",Math.round(n/1e3)),t.retryTimer=new Pusher.Timer(n||0,function(){t.disconnectInternally(),t.connect()})},n.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},n.setUnavailableTimer=function(){var n=this;n.unavailableTimer=new Pusher.Timer(n.options.unavailableTimeout,function(){n.updateState("unavailable")})},n.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},n.sendActivityCheck=function(){var n=this;n.stopActivityCheck(),n.send_event("pusher:ping",{}),n.activityTimer=new Pusher.Timer(n.options.pongTimeout,function(){n.timeline.error({pong_timed_out:n.options.pongTimeout}),n.retryIn(0)})},n.resetActivityCheck=function(){var n=this;n.stopActivityCheck(),n.connection.supportsPing()||(n.activityTimer=new Pusher.Timer(n.activityTimeout,function(){n.sendActivityCheck()}))},n.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},n.buildConnectionCallbacks=function(){var n=this;return{message:function(t){n.resetActivityCheck(),n.emit("message",t)},ping:function(){n.send_event("pusher:pong",{})},error:function(t){n.emit("error",{type:"WebSocketError",error:t})},closed:function(){n.abandonConnection(),n.shouldRetry()&&n.retryIn(1e3)}}},n.buildHandshakeCallbacks=function(n){var t=this;return Pusher.Util.extend({},n,{connected:function(n){t.activityTimeout=Math.min(t.options.activityTimeout,n.activityTimeout,n.connection.activityTimeout||Infinity),t.clearUnavailableTimer(),t.setConnection(n.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},n.buildErrorCallbacks=function(){function t(t){return function(i){i.error&&n.emit("error",{type:"WebSocketError",error:i.error}),t(i)}}var n=this;return{ssl_only:t(function(){n.encrypted=!0,n.updateStrategy(),n.retryIn(0)}),refused:t(function(){n.disconnect()}),backoff:t(function(){n.retryIn(1e3)}),retry:t(function(){n.retryIn(0)})}},n.setConnection=function(n){this.connection=n;for(var t in this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},n.abandonConnection=function(){var n,t;if(this.connection){for(n in this.connectionCallbacks)this.connection.unbind(n,this.connectionCallbacks[n]);return t=this.connection,this.connection=null,t}},n.updateState=function(n,t){var i=this.state;this.state=n,i!==n&&(Pusher.debug("State changed",i+" -> "+n),this.timeline.info({state:n,params:t}),this.emit("state_change",{previous:i,current:n}),this.emit(n,t))},n.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},Pusher.ConnectionManager=t}.call(this),function(){function n(){Pusher.EventsDispatcher.call(this);var n=this;window.addEventListener!==undefined&&(window.addEventListener("online",function(){n.emit("online")},!1),window.addEventListener("offline",function(){n.emit("offline")},!1))}Pusher.Util.extend(n.prototype,Pusher.EventsDispatcher.prototype);var t=n.prototype;t.isOnline=function(){return window.navigator.onLine===undefined?!0:window.navigator.onLine},Pusher.NetInfo=n,Pusher.Network=new n}.call(this),function(){function t(){this.reset()}var n=t.prototype;n.get=function(n){return Object.prototype.hasOwnProperty.call(this.members,n)?{id:n,info:this.members[n]}:null},n.each=function(n){var t=this;Pusher.Util.objectApply(t.members,function(i,r){n(t.get(r))})},n.setMyID=function(n){this.myID=n},n.onSubscription=function(n){this.members=n.presence.hash,this.count=n.presence.count,this.me=this.get(this.myID)},n.addMember=function(n){return this.get(n.user_id)===null&&this.count++,this.members[n.user_id]=n.user_info,this.get(n.user_id)},n.removeMember=function(n){var t=this.get(n.user_id);return t&&(delete this.members[n.user_id],this.count--),t},n.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},Pusher.Members=t}.call(this),function(){function t(n,t){Pusher.EventsDispatcher.call(this,function(t){Pusher.debug("No callbacks on "+n+" for "+t)}),this.name=n,this.pusher=t,this.subscribed=!1}var n=t.prototype;Pusher.Util.extend(n,Pusher.EventsDispatcher.prototype),n.authorize=function(n,t){return t(!1,{})},n.trigger=function(n,t){if(n.indexOf("client-")!==0)throw new Pusher.Errors.BadEventName("Event '"+n+"' does not start with 'client-'");return this.pusher.send_event(n,t,this.name)},n.disconnect=function(){this.subscribed=!1},n.handleEvent=function(n,t){n.indexOf("pusher_internal:")===0?n==="pusher_internal:subscription_succeeded"&&(this.subscribed=!0,this.emit("pusher:subscription_succeeded",t)):this.emit(n,t)},n.subscribe=function(){var n=this;n.authorize(n.pusher.connection.socket_id,function(t,i){t?n.handleEvent("pusher:subscription_error",i):n.pusher.send_event("pusher:subscribe",{auth:i.auth,channel_data:i.channel_data,channel:n.name})})},n.unsubscribe=function(){this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},Pusher.Channel=t}.call(this),function(){function t(n,t){Pusher.Channel.call(this,n,t)}var n=t.prototype;Pusher.Util.extend(n,Pusher.Channel.prototype),n.authorize=function(n,t){var i=new Pusher.Channel.Authorizer(this,this.pusher.config);return i.authorize(n,t)},Pusher.PrivateChannel=t}.call(this),function(){function t(n,t){Pusher.PrivateChannel.call(this,n,t),this.members=new Pusher.Members}var n=t.prototype;Pusher.Util.extend(n,Pusher.PrivateChannel.prototype),n.authorize=function(n,t){var r=Pusher.PrivateChannel.prototype.authorize,i=this;r.call(i,n,function(n,r){if(!n){if(r.channel_data===undefined){Pusher.warn("Invalid auth response for channel '"+i.name+"', expected 'channel_data' field"),t("Invalid auth response");return}var u=JSON.parse(r.channel_data);i.members.setMyID(u.user_id)}t(n,r)})},n.handleEvent=function(n,t){var r,i;switch(n){case"pusher_internal:subscription_succeeded":this.members.onSubscription(t);this.subscribed=!0,this.emit("pusher:subscription_succeeded",this.members);break;case"pusher_internal:member_added":r=this.members.addMember(t),this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":i=this.members.removeMember(t),i&&this.emit("pusher:member_removed",i);break;default:Pusher.PrivateChannel.prototype.handleEvent.call(this,n,t)}},n.disconnect=function(){this.members.reset(),Pusher.PrivateChannel.prototype.disconnect.call(this)},Pusher.PresenceChannel=t}.call(this),function(){function t(){this.channels={}}function i(n,t){return n.indexOf("private-")===0?new Pusher.PrivateChannel(n,t):n.indexOf("presence-")===0?new Pusher.PresenceChannel(n,t):new Pusher.Channel(n,t)}var n=t.prototype;n.add=function(n,t){return this.channels[n]||(this.channels[n]=i(n,t)),this.channels[n]},n.all=function(){return Pusher.Util.values(this.channels)},n.find=function(n){return this.channels[n]},n.remove=function(n){var t=this.channels[n];return delete this.channels[n],t},n.disconnect=function(){Pusher.Util.objectApply(this.channels,function(n){n.disconnect()})},Pusher.Channels=t}.call(this),function(){Pusher.Channel.Authorizer=function(n,t){this.channel=n,this.type=t.authTransport,this.options=t,this.authOptions=(t||{}).auth||{}},Pusher.Channel.Authorizer.prototype={composeQuery:function(n){var i="&socket_id="+encodeURIComponent(n)+"&channel_name="+encodeURIComponent(this.channel.name),t;for(t in this.authOptions.params)i+="&"+encodeURIComponent(t)+"="+encodeURIComponent(this.authOptions.params[t]);return i},authorize:function(n,t){return Pusher.authorizers[this.type].call(this,n,t)}};var n=1;Pusher.auth_callbacks={},Pusher.authorizers={ajax:function(n,t){var u=this,i,r;i=Pusher.XHR?new Pusher.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),i.open("POST",u.options.authEndpoint,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(r in this.authOptions.headers)i.setRequestHeader(r,this.authOptions.headers[r]);return i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200){var r,n=!1;try{r=JSON.parse(i.responseText),n=!0}catch(u){t(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+i.responseText)}n&&t(!1,r)}else Pusher.warn("Couldn't get auth info from your webapp",i.status),t(!0,i.status)},i.send(this.composeQuery(n)),i},jsonp:function(t,i){var e,r,f,o,u;this.authOptions.headers!==undefined&&Pusher.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP."),e=n.toString(),n++,r=Pusher.Util.getDocument(),f=r.createElement("script"),Pusher.auth_callbacks[e]=function(n){i(!1,n)},o="Pusher.auth_callbacks['"+e+"']",f.src=this.options.authEndpoint+"?callback="+encodeURIComponent(o)+this.composeQuery(t),u=r.getElementsByTagName("head")[0]||r.documentElement,u.insertBefore(f,u.firstChild)}}}.call(this),RealtimeMessaging=function(n){this.key=n.key,this.channelName=n.channel,this.pusher=new Pusher(this.key),this.channel=this.pusher.subscribe(this.channelName)},RealtimeMessaging.log=function(n){Pusher.log=n},RealtimeMessaging.prototype.onMessage=function(n,t){this.channel.bind(n,t)},typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.9.2156",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 r=t.indexOf("://"),i=t.indexOf("?");return r>0&&(i<0||i>r)}}n.utils=function(){},n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t},n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null},n.utils.clone=function(){var u,i=n.utils.clone.arguments,r;if(i.length==1)switch(n.utils.typeOf(i[0])){case"object":u={};for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;case"array":u=[];for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;default:return i[0]}return u},n.utils.extension=function(n){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 window.ActiveXObject!="undefined"},n.utils.userAgentMatch=function(n){var t=navigator.userAgent.toLowerCase();return t.match(n)!==null},n.utils.isIOS=function(){return n.utils.userAgentMatch(/iP(hone|ad|od)/i)},n.utils.isIPad=function(){return n.utils.userAgentMatch(/iPad/i)},n.utils.isIPod=function(){return n.utils.userAgentMatch(/iP(hone|od)/i)},n.utils.isAndroid=function(){return n.utils.userAgentMatch(/android/i)},n.utils.isLegacyAndroid=function(){return n.utils.userAgentMatch(/android 2.[012]/i)},n.utils.isBlackberry=function(){return n.utils.userAgentMatch(/blackberry/i)},n.utils.isMobile=function(){return n.utils.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 r,i,u;n.outerHTML?n.outerHTML=t:(r=document.createElement("div"),r.innerHTML=t,i=document.createRange(),i.selectNodeContents(r),u=i.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))},n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1},n.utils.getPluginName=function(n){return n.lastIndexOf("/")>=0&&(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")>=0&&(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")>=0&&(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")>=0&&(n=n.substring(0,n.lastIndexOf(".js"))),n},n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")>=0?n.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 o,h,u,e,s,f;if(n.utils.exists(r)||(r=document.location.href),!n.utils.exists(i))return undefined;if(t(i))return i;for(o=r.substring(0,r.indexOf("://")+3),h=r.substring(o.length,r.indexOf("/",o.length+1)),i.indexOf("/")===0?u=i.split("/"):(e=r.split("?")[0],e=e.substring(o.length+h.length+1,e.lastIndexOf("/")),u=e.split("/").concat(i.split("/"))),s=[],f=0;f<u.length;f++)if(u[f]&&n.utils.exists(u[f])&&u[f]!=".")u[f]==".."?s.pop():s.push(u[f]);else continue;return o+h+"/"+s.join("/")},n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"},n.utils.getPluginPathType=function(t){var r,u,i;if(typeof t=="string")return(t=t.split("?")[0],r=t.indexOf("://"),r>0)?n.utils.pluginPathType.ABSOLUTE:(u=t.indexOf("/"),i=n.utils.extension(t),r<0&&u<0&&(!i||!isNaN(i)))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE},n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0},n.utils.mapLength=function(n){var t=0,i;for(i in n)t++;return t},n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))},n.utils.css=function(t,i){if(n.utils.exists(t))for(var u in i)try{if(typeof i[u]=="undefined")continue;else if(typeof i[u]=="number"&&!(u=="zIndex"||u=="opacity")){if(isNaN(i[u]))continue;i[u]=u.match(/color/i)?"#"+n.utils.strings.pad(i[u].toString(16),6):Math.ceil(i[u])+"px"}t.style[u]=i[u]}catch(f){}},n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1},n.utils.transform=function(t,i,r,u,f){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 h=r/f,s=u/e,v=0,y=0,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:h>s?(o.width=f*s,o.height=e*s,o.width/r>.95&&(c=!0,h=Math.ceil(100*r/o.width)/100,s=1,o.width=r)):(o.width=f*h,o.height=e*h,o.height/u>.95&&(c=!0,h=1,s=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:h>s?(o.width=f*h,o.height=e*h):(o.width=f*s,o.height=e*s),o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.EXACTFIT:o.width=f,o.height=e,l=Math.round(f/2*(1-1/h)),a=Math.round(e/2*(1-1/s)),c=!0,o.top=o.left=0}c&&n.utils.transform(i,h,s,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 e,o,s,f,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(e 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(f=e,u=0;u<o.length;u++)f=f.replace(new RegExp(i[u],"g"),r[u]);t[f]=n.utils.deepReplaceKeyName(t[e],i,r),e!=f&&delete t[e]}}return t},n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1},n.utils.exists=function(n){switch(typeof n){case"string":return n.length>0;case"object":return n!==null;case"undefined":return!1}return!0},n.utils.empty=function(n){if(typeof n.hasChildNodes=="function")while(n.hasChildNodes())n.removeChild(n.firstChild)},n.utils.parseDimension=function(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n},n.utils.getDimensions=function(t){return t&&t.style?{x:n.utils.parseDimension(t.style.left),y:n.utils.parseDimension(t.style.top),width:n.utils.parseDimension(t.style.width),height:n.utils.parseDimension(t.style.height)}:{}},n.utils.getElementWidth=function(t){return t?t==document.body?n.utils.parentNode(t).clientWidth:t.clientWidth>0?t.clientWidth:t.style?n.utils.parseDimension(t.style.width):null:null},n.utils.getElementHeight=function(t){return t?t==document.body?n.utils.parentNode(t).clientHeight:t.clientHeight>0?t.clientHeight:t.style?n.utils.parseDimension(t.style.height):null:null},n.utils.timeFormat=function(n){return str="00:00",n>0&&(str=Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":",str+=Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60)),str},n.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0},n.utils.parentNode=function(n){return n?n.parentNode?n.parentNode:n.parentElement?n.parentElement:n:docuemnt.body},n.utils.getBoundingClientRect=function(n){return typeof n.getBoundingClientRect=="function"?n.getBoundingClientRect():{left:n.offsetLeft+document.body.scrollLeft,top:n.offsetTop+document.body.scrollTop,width:n.offsetWidth,height:n.offsetHeight}},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 i={},r=document.cookie.split("; "),n,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 o,e;if(n.utils.exists(f)||(f={}),u&&n.utils.log(t,f),typeof i[t]!="undefined")for(o=0;o<i[t].length;o++){try{i[t][o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][o].listener)}i[t][o]&&(i[t][o].count===1?delete i[t][o]:i[t][o].count>0&&(i[t][o].count=i[t][o].count-1))}for(e=0;e<r.length;e++){try{r[e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[e].listener)}r[e]&&(r[e].count===1?delete r[e]:r[e].count>0&&(r[e].count=r[e].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){},n.utils.animations.transform=function(n,t){n.style.webkitTransform=t,n.style.MozTransform=t,n.style.OTransform=t,n.style.msTransform=t},n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t,n.style.MozTransformOrigin=t,n.style.OTransformOrigin=t,n.style.msTransformOrigin=t},n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))},n.utils.cancelAnimation=function(n){delete t[n.id]},n.utils.fadeTo=function(i,r,u,f,e,o){var c,h,l,s;if((t[i.id]==o||!n.utils.exists(o))&&i.style.opacity!=r){if(c=+new Date,o>c&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-c),i.style.display=="none"&&(i.style.display="block"),n.utils.exists(f)||(f=i.style.opacity===""?1:i.style.opacity),i.style.opacity==r&&i.style.opacity!==""&&n.utils.exists(o)){r===0&&(i.style.display="none");return}if(n.utils.exists(o)||(o=c,t[i.id]=o),n.utils.exists(e)||(e=0),h=u>0?(c-o)/(u*1e3):0,h=h>1?1:h,l=r-f,s=f+h*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s,e>0){t[i.id]=o+e*1e3,n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}}(jwplayer),function(n){n.utils.arrays=function(){},n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1},n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(n){function i(t,i){return n.utils.exists(i)?n.utils.extend(i,e[t]):i=e[t],i}function r(r,u){var e,o,s,f;if(t[r.tagName.toLowerCase()]&&!n.utils.exists(u))return t[r.tagName.toLowerCase()](r);u=i("element",u),e={};for(o in u)o!="length"&&(s=r.getAttribute(o),n.utils.exists(s)&&(e[u[o]]=s));return f=r.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,e;u=i("media",u),o=[],s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(f(s[h]));return e=r(t,u),n.utils.exists(e.file)&&(o[0]={file:e.file}),e.levels=o,e}function f(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var e={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)},t.media=u,t.audio=u,t.source=f,t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"},n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r),this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE)},u.onerror=function(){i=n.utils.loaderstatus.ERROR,r.sendEvent(n.events.ERROR)},u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))},document.getElementsByTagName("head")[0].appendChild(u),u.src=t}},this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){var u,r;return n.utils.exists(i)||(i=document),t=n.utils.strings.trim(t),u=t.charAt(0),u=="#"?i.getElementById(t.substr(1)):u=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(r=t.split("."),n.utils.selectors.getElementsByTagAndClass(r[0],r[1])):i.getElementsByTagName(t)},n.utils.selectors.getElementsByTagAndClass=function(t,i,r){var s=[],f,u,o,e;for(n.utils.exists(r)||(r=document),f=r.getElementsByTagName(t),u=0;u<f.length;u++)if(n.utils.exists(f[u].className))for(o=f[u].className.split(" "),e=0;e<o.length;e++)o[e]==i&&s.push(f[u]);return s}}(jwplayer),function(n){n.utils.strings=function(){},n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")},n.utils.strings.pad=function(n,t,i){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 i=n.split(":"),t=0;return n.substr(-1)=="s"?t=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?t=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?t=Number(n.substr(0,n.length-1))*3600:i.length>1?(t=Number(i[i.length-1]),t+=Number(i[i.length-2])*60,i.length==3&&(t+=Number(i[i.length-3])*3600)):t=Number(n),t},n.utils.strings.xmlAttribute=function(n,t){for(var i=0;i<n.attributes.length;i++)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""},n.utils.strings.jsonToString=function(t){var u=u||{},f,r,o,e,i;if(u&&u.stringify)return u.stringify(t);if(f=typeof t,f!="object"||t===null)if(f=="string")t='"'+t.replace(/"/g,'\\"')+'"';else return String(t);else{r=[],o=t&&t.constructor==Array;for(e in t){i=t[e];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":n.utils.exists(i)&&(i=n.utils.strings.jsonToString(i))}o?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+e+'":'+String(i))}return o?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function u(n){var t=["true","false","t","f"];if(t.toString().indexOf(n.toLowerCase().replace(" ",""))>=0)return"boolean";if(r.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer";return"string"}function t(t,r){if(!n.utils.exists(r))return t;switch(r){case"color":return t.length>0?i(t):null;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"boolean":return t.toLowerCase()=="true"?!0:t=="1"?!0:!1}return t}function i(n){switch(n.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var r=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(i,r){return r=n.utils.exists(r)?r:u(i),t(i,r)}}(jwplayer),function(n){n.utils.parsers=function(){},n.utils.parsers.localName=function(n){return n?n.localName?n.localName:n.baseName?n.baseName:"":""},n.utils.parsers.textContent=function(n){return n?n.textContent?n.textContent:n.text?n.text:"":""}}(jwplayer),function(n){n.utils.parsers.jwparser=function(){},n.utils.parsers.jwparser.PREFIX="jwplayer",n.utils.parsers.jwparser.parseEntry=function(t,i){for(var r=0;r<t.childNodes.length;r++)t.childNodes[r].prefix==n.utils.parsers.jwparser.PREFIX&&(i[n.utils.parsers.localName(t.childNodes[r])]=n.utils.strings.serialize(n.utils.parsers.textContent(t.childNodes[r])),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 f=!1,u,r=0;r<t.childNodes.length;r++)if(t.childNodes[r].prefix==n.utils.parsers.mediaparser.PREFIX){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"content":f||(i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url")),n.utils.strings.xmlAttribute(t.childNodes[r],"duration")&&(i.duration=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"duration"))),n.utils.strings.xmlAttribute(t.childNodes[r],"start")&&(i.start=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"start"))),t.childNodes[r].childNodes&&t.childNodes[r].childNodes.length>0&&(i=n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)),(n.utils.strings.xmlAttribute(t.childNodes[r],"width")||n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate")||n.utils.strings.xmlAttribute(t.childNodes[r],"url"))&&(i.levels||(i.levels=[]),i.levels.push({width:n.utils.strings.xmlAttribute(t.childNodes[r],"width"),bitrate:n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate"),file:n.utils.strings.xmlAttribute(t.childNodes[r],"url")}));break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"keywords":i.tags=n.utils.parsers.textContent(t.childNodes[r]);break;case"thumbnail":i.image=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"credit":i.author=n.utils.parsers.textContent(t.childNodes[r]);break;case"player":u=t.childNodes[r].url,(u.indexOf("youtube.com")>=0||u.indexOf("youtu.be")>=0)&&(f=!0,i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));break;case"group":n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)}}return i}}(jwplayer),function(n){function t(t){for(var i={},r=0;r<t.childNodes.length;r++)if(n.utils.parsers.localName(t.childNodes[r]))switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"enclosure":i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"pubdate":i.date=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"link":i.link=n.utils.parsers.textContent(t.childNodes[r]);break;case"category":i.tags?i.tags+=n.utils.parsers.textContent(t.childNodes[r]):i.tags=n.utils.parsers.textContent(t.childNodes[r])}return i=n.utils.parsers.mediaparser.parseGroup(t,i),i=n.utils.parsers.jwparser.parseEntry(t,i),new n.html5.playlistitem(i)}n.utils.parsers.rssparser=function(){},n.utils.parsers.rssparser.parse=function(i){for(var f=[],u,r=0;r<i.childNodes.length;r++)if(n.utils.parsers.localName(i.childNodes[r]).toLowerCase()=="channel")for(u=0;u<i.childNodes[r].childNodes.length;u++)n.utils.parsers.localName(i.childNodes[r].childNodes[u]).toLowerCase()=="item"&&f.push(t(i.childNodes[r].childNodes[u]));return f}}(jwplayer),function(n){var i={},t={};n.plugins=function(){},n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u)},n.plugins.registerPlugin=function(r,u,f){var o=n.utils.getPluginName(r),e;if(i[o])i[o].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(e in t)t[e].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"},n.plugins.plugin=function(t){function o(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var r=n.utils.getPluginName(t),i=n.utils.getPluginVersion(t),u=window.location.href.indexOf("https://")==0?s.replace("http://","https://secure"):s;return u+"/"+n.version.split(".")[0]+"/"+r+"/"+r+(i!==""?"-"+i:"")+".js"}}function c(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},1e3)}function h(){r=n.utils.loaderstatus.ERROR,f.sendEvent(n.events.ERROR)}var s="http://plugins.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f),this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t,r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(o());u.addEventListener(n.events.COMPLETE,c),u.addEventListener(n.events.ERROR,h),u.load()}},this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined),o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t),r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},this.getStatus=function(){return r},this.getPluginName=function(){return n.utils.getPluginName(t)},this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,o());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null},this.getJS=function(){return u},this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0},this.getNewInstance=function(n,t,i){return new u(n,t,i)},this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function s(){u||(u=!0,e=n.utils.loaderstatus.COMPLETE,h.sendEvent(n.events.COMPLETE))}function f(){var i,t;if(!u){i=0;for(plugin in r)t=r[plugin].getStatus(),(t==n.utils.loaderstatus.LOADING||t==n.utils.loaderstatus.NEW)&&i++;i==0&&s()}}var r={},e=n.utils.loaderstatus.NEW,o=!1,u=!1,h=new n.events.eventdispatcher;n.utils.extend(this,h),this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r)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(){e=n.utils.loaderstatus.LOADING,o=!0;for(var u in i)n.utils.exists(u)&&(r[u]=t.addPlugin(u),r[u].addEventListener(n.events.COMPLETE,f),r[u].addEventListener(n.events.ERROR,f));for(u in r)r[u].load();o=!1,f()},this.pluginFailed=function(){s()},this.getStatus=function(){return e}}}(jwplayer),function(n){var t=[];n.api=function(t){function p(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 l(t){e=[],n.utils.getOuterHTML(t.container)!=a&&n.api.destroyPlayer(t.id,a)}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})}}function y(n,t){return function(i){var f,r;if(n==i.component&&(f=u[n][t],f))for(r=0;r<f.length;r++)typeof f[r]=="function"&&f[r].call(this,i)}}this.container=t,this.id=t.id;var r={},s={},u={},w=[],i=undefined,h=!1,e=[],o=undefined,a=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:p(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.getSkin=function(){return i.skin},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 o=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(!h){throw"Cannot call remove() before player is ready";return}l(this)},this.setup=function(t){var r,i;return n.embed?(r=this.id,l(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 s[t]||(s[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,v(t))),s[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,y(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&&h&&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){o&&o.dispatchEvent(n,arguments)},this.callInternal=function(){var t,n,r;if(h){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}e.push(arguments)},this.playerReady=function(t){h=!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);e.length>0;)this.callInternal.apply(this,e.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 f=-1,u,o,s,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}return f>=0&&(u=document.getElementById(t[f].id),document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper")),u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u))),t.splice(f,1)),null},n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t?t.playerReady(n):jwplayer.api.selectPlayer(n.id).playerReady(n),_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){n.api.instream=function(t,i,r,u){function v(){c.callInternal("jwLoadInstream",r,u)}function l(n,t){e.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+c.id+'").dispatchInstreamEvent("'+t+'", dat); }')}function f(n,t){return o[n]||(o[n]=[],l(e,n)),o[n].push(t),this}function h(t,i){return s[t]||(s[t]=[],f(n.api.events.JWPLAYER_PLAYER_STATE,a(t))),s[t].push(i),this}function a(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,p=r,y=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()},v()}}(jwplayer),function(n){function i(){var f,u,r;if(!document.body)return setTimeout(i,15);for(f=t.selectors.getElementsByTagAndClass("video","jwplayer"),u=0;u<f.length;u++)r=f[u],r.id==""&&(r.id="jwplayer_"+Math.round(Math.random()*1e5)),n(r.id).setup({})}var t=n.utils;n.embed=function(i){function o(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function f(){var f,c,l,h,e,y,s,a,v;if(u.getStatus()==t.loaderstatus.COMPLETE){for(f=0;f<r.modes.length;f++)if(r.modes[f].type&&n.embed[r.modes[f].type]){if(c=r.modes[f].config,l=r,c)for(l=t.extend(t.clone(r),c),h=["file","levels","playlist"],e=0;e<h.length;e++)if(y=h[e],t.exists(c[y]))for(s=0;s<h.length;s++)s!=e&&(a=h[s],t.exists(l[a])&&!t.exists(c[a])&&delete l[a]);if(v=new n.embed[r.modes[f].type](document.getElementById(i.id),r.modes[f],l,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 s={width:400,height:300,components:{controlbar:{position:"over"}}},e=t.mediaparser.parseMedia(i.container),r=new n.embed.config(t.extend(s,e,i.config),this),u=n.plugins.loadPlugins(i.id,r.plugins);return u.addEventListener(n.events.COMPLETE,f),u.addEventListener(n.events.ERROR,f),u.load(),i},i()}(jwplayer),function(n){function u(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){var t=!1;return t=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 f={},u,r,i;switch(t.typeOf(n.plugins)){case"object":for(u in n.plugins)f[t.getPluginName(u)]=u;break;case"string":for(r=n.plugins.split(","),i=0;i<r.length;i++)f[t.getPluginName(r[i])]=r[i]}return f}function i(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,f={players:"modes",autoplay:"autostart"},r=["playlist","dock","controlbar","logo","display"];n.embed.deserialize=function(n){var e=s(n),o,u;for(o in e)i(n,"plugins",e[o]);for(u in n)if(u.indexOf(".")>-1){var h=u.split("."),f=h[0],u=h[1];t.isInArray(r,f)?i(n,"components",f,u):e[f]&&i(n,"plugins",e[f],u)}return n},n.embed.config=function(i){var h=t.extend({},i),b,y,v,p,w,c,a,l;if(o(h.playlist)&&(b=h.playlist,delete h.playlist),h=n.embed.deserialize(h),h.height=e(h.height),h.width=e(h.width),typeof h.plugins=="string")for(y=h.plugins.split(","),typeof h.plugins!="object"&&(h.plugins={}),v=0;v<y.length;v++)p=t.getPluginName(y[v]),typeof h[p]=="object"?(h.plugins[y[v]]=h[p],delete h[p]):h.plugins[y[v]]={};for(w=0;w<r.length;w++)c=r[w],t.exists(h[c])&&(typeof h[c]!="object"?(h.components[c]||(h.components[c]={}),c=="logo"?h.components[c].file=h[c]:h.components[c].position=h[c],delete h[c]):(h.components[c]||(h.components[c]={}),t.extend(h.components[c],h[c]),delete h[c])),typeof h[c+"size"]!="undefined"&&(h.components[c]||(h.components[c]={}),h.components[c].size=h[c+"size"],delete h[c+"size"]);typeof h.icons!="undefined"&&(h.components.display||(h.components.display={}),h.components.display.icons=h.icons,delete h.icons);for(a in f)h[a]&&(h[f[a]]||(h[f[a]]=h[a]),delete h[a]);return h.flashplayer&&!h.modes?(l=u(h.flashplayer),delete h.flashplayer):h.modes?(typeof h.modes=="string"?l=u(h.modes):h.modes instanceof Array?l=h.modes:typeof h.modes=="object"&&h.modes.type&&(l=[h.modes]),delete h.modes):l=u(),h.modes=l,b&&(h.playlist=b),h}}(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 y(){_imageWidth=i.display_image.naturalWidth,_imageHeight=i.display_image.naturalHeight,v()}function v(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,s,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},s=r.width?r.width:480,e,o,l,c,u,a,h,p;typeof s!="number"&&(s=parseInt(s,10)),e=r.height?r.height:320,typeof e!="number"&&(e=parseInt(e,10)),u={},r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,l=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,l=r.image,u.levels=r.levels),u.file?o=u.file:u.levels&&u.levels.length&&(o=u.levels[0].file),c=o?"pointer":"auto",a={display:{style:{cursor:c,width:s,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:o?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:c,position:"absolute",display:o?"block":"none",top:(e-50)/2,left:(s-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:s,height:e,display:l?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},h=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f},i.display=h("a","display",t.id),o&&i.display.setAttribute("href",n.utils.getAbsolutePath(o)),i.display_image=h("img","display_image"),i.display_image.setAttribute("alt","Click to download..."),l&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(l)),!0&&(i.display_icon=h("div","display_icon"),i.display_iconBackground=h("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground)),_css=n.utils.css,_hide=function(n){_css(n,{display:"none"})},i.display_image.onerror=function(){_hide(i.display_image)},i.display_image.onload=y,t.parentNode.replaceChild(i.display,t),p=r.plugins&&r.plugins.logo?r.plugins.logo:{},i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id)),f.container=document.getElementById(f.id),f.setPlayer(i.display,"download")},this.supportsConfig=function(){var t,i;if(r){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 e,o;r&&document.getElementById(f.id+"_wrapper").appendChild(i),e=document.getElementById(f.id).getPluginConfig("display"),t.resize(e.width,e.height),o={left:e.x,top:e.y},n.utils.css(i,o)}}function s(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f)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 r,e,i,o,u,f;if(!t)return{};r={},e=[];for(i in t){o=n.utils.getPluginName(i),u=t[i],e.push(i);for(f in u)r[o+"."+f]=u[f]}return r.plugins=e.join(","),r}function o(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",i;for(i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var d,g,k,p,nt,w,tt,b,v,a;r.id=f.id;var y,l=n.utils.extend({},r),rt=l.width,it=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:rt,height:it})),d=u.setupPlugins(f,l,h),d.length>0?n.utils.extend(l,c(d.plugins)):delete l.plugins,g=["height","width","modes","events"],k=0;k<g.length;k++)delete l[g[k]];p="opaque",l.wmode&&(p=l.wmode),s(l,"components"),s(l,"providers"),typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]),nt=n.utils.getCookies();for(w in nt)typeof l[w]=="undefined"&&(l[w]=nt[w]);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="'+p+'">',v+='<param name="flashvars" value="'+o(l)+'">',v+="</object>",n.utils.setOuterHTML(t,v),b=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",p),e(a,"flashvars",o(l)),t.parentNode.replaceChild(a,t),b=a),f.container=b,f.setPlayer(b,"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 u=["video","http","sound","image"],r;return i&&u.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 f=document.getElementById(t.id+"_displayarea");r&&f.appendChild(i),n.resize(f.clientWidth,f.clientHeight),i.left=f.style.left,i.top=f.style.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels),i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml")),h=new(n.html5(t).setup)(i),f.container=document.getElementById(f.id),f.setPlayer(h,"html5")}else return null},this.supportsConfig=function(){var t,i;if(!!n.vid.canPlayType)if(r){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 a(){l(),v(),s()}function l(){if(e.prefix){var i=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(i)<0&&(e.prefix+=i+"/")}u=n.utils.extend({},e,t)}function y(){var t={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},n,i;t.display=u.hide?"none":"block",n=u.position.toLowerCase().split("-");for(i in n)t[n[i]]=u.margin;return t}function v(){(f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,y()),o()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function s(){u.link?(f.onmouseover=c,f.onmouseout=o,f.onclick=h):this.mouseEnabled=!1}function h(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation()),u.link&&window.open(u.link,u.linktarget);return}function o(){u.link&&(f.style.opacity=u.out);return}function c(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"",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,a(),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;n.html5.view=function(r,u,f){function vt(){function n(){return h.skin.getComponentSettings("display")&&h.skin.getComponentSettings("display").backgroundcolor?h.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}s=document.createElement("div"),s.id=c.id,s.className=c.className,_videowrapper=document.createElement("div"),_videowrapper.id=s.id+"_video_wrapper",c.id=s.id+"_video",i(s,{position:"relative",height:e.height,width:e.width,padding:0,backgroundColor:n(),zIndex:0}),i(c,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"}),i(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0}),t.wrap(c,s),t.wrap(c,_videowrapper),o=document.createElement("div"),o.id=s.id+"_displayarea",s.appendChild(o),_instreamArea=document.createElement("div"),_instreamArea.id=s.id+"_instreamarea",i(_instreamArea,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:100,background:"000000",display:"none"}),s.appendChild(_instreamArea)}function at(){for(var n,i=0;i<e.plugins.order.length;i++)n=e.plugins.order[i],t.exists(e.plugins.object[n].getDisplayElement)&&(e.plugins.object[n].height=t.parseDimension(e.plugins.object[n].getDisplayElement().style.height),e.plugins.object[n].width=t.parseDimension(e.plugins.object[n].getDisplayElement().style.width),e.plugins.config[n].currentPosition=e.plugins.config[n].position);rt()}function lt(){ft=e.fullscreen}function yt(t){if(!k){if(e.getMedia()&&e.getMedia().hasChrome())o.style.display="none";else switch(t.newstate){case t.newstate==n.api.events.state.PLAYING:o.style.display="none";break;default:o.style.display="block"}p()}}function rt(){var u=e.getMedia()?e.getMedia().getDisplayElement():null,r,i;if(t.exists(u))for(a!=u&&(a&&a.parentNode&&a.parentNode.replaceChild(u,a),a=u),r=0;r<e.plugins.order.length;r++)i=e.plugins.order[r],t.exists(e.plugins.object[i].getDisplayElement)&&(e.plugins.config[i].currentPosition=e.plugins.config[i].position);l(e.width,e.height)}function bt(t){switch(t.keyCode){case 27:h.jwGetFullscreen()&&h.jwSetFullscreen(!1);break;case 32:h.jwGetState()!=n.api.events.state.IDLE&&h.jwGetState()!=n.api.events.state.PAUSED?h.jwPause():h.jwPlay()}}function l(n,r){var f,w,l,c,k,u,h,a;if(s.style.display!="none"){if(f=[].concat(e.plugins.order),f.reverse(),nt=f.length+2,ft&&b())try{e.fullscreen&&!e.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(e.fullscreen=!1)}catch(d){}if(e.fullscreen)b()||g(st,f,!0);else{y=n,v=r,y=typeof n=="string"&&n.indexOf("%")>0?t.getElementWidth(t.parentNode(s))*parseInt(n.replace("%"),"")/100:n,v=typeof r=="string"&&r.indexOf("%")>0?t.getElementHeight(t.parentNode(s))*parseInt(r.replace("%"),"")/100:r,w={top:0,bottom:0,left:0,right:0,width:y,height:v,position:"absolute"},i(o,w),l={};try{c=e.plugins.object.display.getDisplayElement()}catch(d){}c&&(l.width=t.parseDimension(c.style.width),l.height=t.parseDimension(c.style.height)),k=t.extend({},w,l,{zIndex:_instreamArea.style.zIndex,display:_instreamArea.style.display}),i(_instreamArea,k),i(s,{height:v,width:y}),u=g(pt,f),u.length>0&&(nt+=u.length,h=u.indexOf("playlist"),a=u.indexOf("controlbar"),h>=0&&a>=0&&(u[h]=u.splice(a,1,u[h])[0]),g(ot,u,!0)),it=t.getElementWidth(o),et=t.getElementHeight(o)}p()}}function g(r,u,f){for(var a=[],o,s,l,c,h=0;h<u.length;h++)o=u[h],t.exists(e.plugins.object[o].getDisplayElement)&&(e.plugins.config[o].currentPosition!=n.html5.view.positions.NONE?(s=r(o,nt--),s?(l=s.width,c=s.height,f&&(delete s.width,delete s.height),i(e.plugins.object[o].getDisplayElement(),s),e.plugins.object[o].resize(l,c)):a.push(o)):i(e.plugins.object[o].getDisplayElement(),{display:"none"}));return a}function pt(n,i){if(t.exists(e.plugins.object[n].getDisplayElement)&&e.plugins.config[n].position&&ht(e.plugins.config[n].position)){t.exists(e.plugins.object[n].getDisplayElement().parentNode)||s.appendChild(e.plugins.object[n].getDisplayElement());var r=tt(n);return r.zIndex=i,r}return!1}function ot(n,i){return t.exists(e.plugins.object[n].getDisplayElement().parentNode)||o.appendChild(e.plugins.object[n].getDisplayElement()),{position:"absolute",width:t.getElementWidth(o)-t.parseDimension(o.style.right),height:t.getElementHeight(o)-t.parseDimension(o.style.bottom),zIndex:i}}function st(n,t){return{position:"fixed",width:e.width,height:e.height,zIndex:t}}function ht(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 b(){return h.jwGetState()!=n.api.events.state.IDLE&&!w&&e.getMedia()&&e.getMedia().getDisplayElement()&&e.getMedia().getDisplayElement().webkitSupportsFullscreen&&t.useNativeFullscreen()?!0:!1}var h=r,c=u,e=f,s,y,v,o,nt,ct,a,w=!1,ft=!1,it,et,kt,k,d,p,tt,ut,wt;this.setup=function(){e&&e.getMedia()&&(c=e.getMedia().getDisplayElement()),vt(),at(),h.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,yt),h.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,rt),h.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,lt),h.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){p()});var i;t.exists(window.onresize)&&(i=window.onresize),window.onresize=function(n){if(t.exists(i))try{i(n)}catch(u){}if(h.jwGetFullscreen()){if(!b()){var r=t.getBoundingClientRect(document.body);e.width=Math.abs(r.left)+Math.abs(r.right),e.height=window.innerHeight,l(e.width,e.height)}}else l(e.width,e.height)}},p=this.resizeMedia=function(){var r,u,f;if(o.style.position="absolute",r=e.getMedia()?e.getMedia().getDisplayElement():d,r)if(r&&r.tagName.toLowerCase()=="video"){if(!r.videoWidth||!r.videoHeight){r.style.width=o.style.width,r.style.height=o.style.height;return}r.style.position="absolute",t.fadeTo(r,1,.25),r.parentNode&&(r.parentNode.style.left=o.style.left,r.parentNode.style.top=o.style.top),e.fullscreen&&h.jwGetStretching()==n.utils.stretching.EXACTFIT&&!t.isMobile()?(u=document.createElement("div"),t.stretch(n.utils.stretching.UNIFORM,u,t.getElementWidth(o),t.getElementHeight(o),it,et),t.stretch(n.utils.stretching.EXACTFIT,r,t.parseDimension(u.style.width),t.parseDimension(u.style.height),r.videoWidth?r.videoWidth:400,r.videoHeight?r.videoHeight:300),i(r,{left:u.style.left,top:u.style.top})):t.stretch(h.jwGetStretching(),r,t.getElementWidth(o),t.getElementHeight(o),r.videoWidth?r.videoWidth:400,r.videoHeight?r.videoHeight:300)}else f=e.plugins.object.display.getDisplayElement(),f?e.getMedia().resize(t.parseDimension(f.style.width),t.parseDimension(f.style.height)):e.getMedia().resize(t.parseDimension(o.style.width),t.parseDimension(o.style.height))},tt=this.getComponentPosition=function(i){var r={position:"absolute",margin:0,padding:0,top:null},u=e.plugins.config[i].currentPosition.toLowerCase();switch(u.toUpperCase()){case n.html5.view.positions.TOP:r.top=t.parseDimension(o.style.top),r.left=t.parseDimension(o.style.left),r.width=t.getElementWidth(o)-t.parseDimension(o.style.left)-t.parseDimension(o.style.right),r.height=e.plugins.object[i].height,o.style[u]=t.parseDimension(o.style[u])+e.plugins.object[i].height+"px",o.style.height=t.getElementHeight(o)-r.height+"px";break;case n.html5.view.positions.RIGHT:r.top=t.parseDimension(o.style.top),r.right=t.parseDimension(o.style.right),r.width=e.plugins.object[i].width,r.height=t.getElementHeight(o)-t.parseDimension(o.style.top)-t.parseDimension(o.style.bottom),o.style.width=t.getElementWidth(o)-r.width+"px";break;case n.html5.view.positions.BOTTOM:r.bottom=t.parseDimension(o.style.bottom),r.left=t.parseDimension(o.style.left),r.width=t.getElementWidth(o)-t.parseDimension(o.style.left)-t.parseDimension(o.style.right),r.height=e.plugins.object[i].height,o.style.height=t.getElementHeight(o)-r.height+"px";break;case n.html5.view.positions.LEFT:r.top=t.parseDimension(o.style.top),r.left=t.parseDimension(o.style.left),r.width=e.plugins.object[i].width,r.height=t.getElementHeight(o)-t.parseDimension(o.style.top)-t.parseDimension(o.style.bottom),o.style[u]=t.parseDimension(o.style[u])+e.plugins.object[i].width+"px",o.style.width=t.getElementWidth(o)-r.width+"px"}return r},this.resize=l,this.fullscreen=function(n){var r,f,u;try{r=e.getMedia().getDisplayElement()}catch(c){}if(b()&&r&&r.webkitSupportsFullscreen){if(n&&!r.webkitDisplayingFullscreen)try{t.transform(r),ut=o.style.display,o.style.display="none",r.webkitEnterFullscreen()}catch(h){}else if(!n){if(p(),r.webkitDisplayingFullscreen)try{r.webkitExitFullscreen()}catch(h){}o.style.display=ut}w=!1}else n?(document.onkeydown=bt,clearInterval(ct),f=t.getBoundingClientRect(document.body),e.width=Math.abs(f.left)+Math.abs(f.right),e.height=window.innerHeight,u={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},i(s,u),u.zIndex=1,e.getMedia()&&e.getMedia().getDisplayElement()&&i(e.getMedia().getDisplayElement(),u),u.zIndex=2,i(o,u),w=!0):(document.onkeydown="",e.width=y,e.height=v,i(s,{position:"relative",height:e.height,width:e.width,zIndex:0}),w=!1),l(e.width,e.height)},this.setupInstream=function(n,i){t.css(_instreamArea,{display:"block",position:"absolute"}),o.style.display="none",_instreamArea.appendChild(n),d=i,k=!0},wt=this.destroyInstream=function(){_instreamArea.style.display="none",_instreamArea.innerHTML="",o.style.display="block",d=null,k=!1,l(e.width,e.height)}},n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,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 g||(g=u.skin.getSkinElement("controlbar","background"),g||(g={width:0,height:0,src:null})),g}function yi(){var i,n,t;dt=0,bt=0,vt=0,y||(i={height:c().height,backgroundColor:e.backgroundcolor},o=document.createElement("div"),o.id=u.id+"_jwplayer_controlbar",_css(o,i)),n=u.skin.getSkinElement("controlbar","capLeft"),t=u.skin.getSkinElement("controlbar","capRight"),n&&s("capLeft","left",!1,o),p("background",o,{position:"absolute",height:c().height,left:n?n.width:0,zIndex:0},"img"),c().src&&(f.background.src=c().src),p("elements",o,{position:"relative",height:c().height,zIndex:1}),t&&s("capRight","right",!1,o)}function ri(){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 it(t){if(!v)if(clearTimeout(at),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))&&(ut=!1,setTimeout(function(){ut||ot()},100)),e.idlehide&&(at=setTimeout(function(){ni()},2e3));break;default:ut=!0,t&&ot(),at=setTimeout(function(){ni()},2e3)}else ot()}function ni(){v||(et(),o.style.opacity==1&&(_utils.cancelAnimation(o),_utils.fadeTo(o,0,.1,1,0)))}function ot(){v||(nt(),o.style.opacity==0&&(_utils.cancelAnimation(o),_utils.fadeTo(o,1,.1,0,0)))}function oi(n){return function(){st&&ct!=n&&(ct=n,ui.sendEvent(n,{component:"controlbar",boundingRect:pi()}))}}function pi(){return e.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?_utils.getDimensions(o):{x:0,y:0,width:0,height:0}}function p(n,t,i,r){var u;return y?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);yt()}rt(e.layout.left),rt(e.layout.center),rt(e.layout.right)}function rt(n,t){var u=n.position=="right"?"right":"left",r=_utils.extend([],n.elements),n,i;for(_utils.exists(t)&&r.reverse(),n=p(n.position+"Group",f.elements,{float:"left",styleFloat:"left",cssFloat:"left",height:"100%"}),i=0;i<r.length;i++)wi(r[i],u,n)}function vi(){return vt++}function wi(n,t,i){var y,o,h,v,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,y=t=="left"?o:h,l={height:c().height,position:"relative",float:"left",styleFloat:"left",cssFloat:"left"},r=p("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"),kt("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,y=t=="left"?o:h,v=u.skin.getSkinElement("controlbar","volumeSliderRail").width+o+h,l={height:c().height,position:"relative",width:v,float:"left",styleFloat:"left",cssFloat:"left"},e=p("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"),kt("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,v,w,a;(_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))||(v=parseInt(s)):h?(w=u.skin.getSkinElement("controlbar",h),w&&(l.background="url("+w.src+") repeat-x center left",v=w.width)):(l.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",v=u.skin.getSkinElement("controlbar","divider").width):(l.background="url("+u.skin.getSkinElement("controlbar",n).src+") repeat-x center left",v=u.skin.getSkinElement("controlbar",n).width),t=="left"?i&&(dt+=v):t=="right"&&i&&(bt+=v),_utils.typeOf(r)=="undefined"&&(r=f.elements),l.width=v,y?_css(f[n],l):(a=p(n,r,l),_utils.exists(u.skin.getSkinElement("controlbar",n+"Over"))&&(a.onmouseover=function(){a.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n+"Over").src,")"].join("")},a.onmouseout=function(){a.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n).src,")"].join("")}),n.indexOf("divider")==0&&a.setAttribute("class","divider"),a.innerHTML="&nbsp;"))}function di(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,gi),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,bi),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,d),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,wt),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,w),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,ei),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,fi),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,li)}function gi(){e.hideplaylistcontrols||(u.jwGetPlaylist().length>1||e.forcenextprev.toString()=="true"?(_show(f.nextButton),_show(f.prevButton)):(_hide(f.nextButton),_hide(f.prevButton)),ft(),gt())}function bi(n){h=u.jwGetPlaylist()[n.index].duration,w({id:u.id,duration:h,position:0}),d({id:u.id,bufferProgress:0})}function gt(){w({id:u.id,duration:u.jwGetDuration(),position:0}),d({id:u.id,bufferProgress:0}),ei({id:u.id,mute:u.jwGetMute()}),wt({id:u.id,newstate:n.api.events.state.IDLE}),fi({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(!y&&_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 kt(n){if(!y){var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"}),_css(t,{cursor:"pointer"}),t.onmousedown=function(){b=n},t.onmouseup=function(n){n.stopPropagation(),ki(n.pageX)},t.onmousemove=function(t){if(b=="time"){lt=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f[b+"SliderThumb"],{left:i})}}}}function ki(t){var f,i,r;lt=!1,b=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*h,i<0?i=0:i>h&&(i=h-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):b=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<10?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r)),b="none"}function d(n){if(_utils.exists(n.bufferPercent)&&(tt=n.bufferPercent),l.timeSliderRail){var i=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),t=l.timeSliderRail.width,r=isNaN(Math.round(t*tt/100))?0:Math.round(t*tt/100);_css(f.timeSliderBuffer,{width:r,left:i?i.width:0})}}function ei(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function wt(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)),it(),t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),w({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function li(n){d({bufferPercent:0}),w(_utils.extend(n,{position:0,duration:h}))}function w(n){var r,e,t;if(_utils.exists(n.position)&&(k=n.position),r=!1,_utils.exists(n.duration)&&n.duration!=h&&(h=n.duration,r=!0),e=k/h,t=l.timeSliderRail,t){var o=isNaN(Math.round(t.width*e))?0:Math.round(t.width*e),i=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),s=o+(i?i.width:0);f.timeSliderProgress&&(_css(f.timeSliderProgress,{width:o,left:i?i.width:0}),lt||f.timeSliderThumb&&(f.timeSliderThumb.style.left=s+"px"))}f.durationText&&(f.durationText.innerHTML=_utils.timeFormat(h)),f.elapsedText&&(f.elapsedText.innerHTML=_utils.timeFormat(k)),r&&ft()}function yt(){for(var e=f.elements.childNodes,u,r,n,t,i=0;i<e.length;i++){n=e[i].childNodes;for(t in n)isNaN(parseInt(t,10))||(n[t].id.indexOf(o.id+"_divider")===0&&r&&r.id.indexOf(o.id+"_divider")===0&&n[t].style.backgroundImage==r.style.backgroundImage?n[t].style.display="none":n[t].id.indexOf(o.id+"_divider")===0&&u&&u.style.display!="none"&&(n[t].style.display="block"),n[t].style.display!="none"&&(r=n[t]),u=n[t])}}function ci(){u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton)),u.jwGetState()==n.api.events.state.BUFFERING||u.jwGetState()==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton)),u.jwGetMute()==!0?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function ft(){var t,i,h,s;yt(),ci(),t={width:pt},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=ti-c().height-e.margin,t.height=c().height),h=u.skin.getSkinElement("controlbar","capLeft"),s=u.skin.getSkinElement("controlbar","capRight"),i.width=t.width-(h?h.width:0)-(s?s.width:0);var y=_utils.getBoundingClientRect(f.leftGroup).width,p=_utils.getBoundingClientRect(f.rightGroup).width,a=i.width-y-p-1,r=a,l=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),v=u.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(l)&&(r-=l.width),_utils.exists(v)&&(r-=v.width),f.timeSlider.style.width=a+"px",f.timeSliderRail.style.width=r+"px",_css(o,t),_css(f.elements,i),_css(f.background,i),ri(),t}function fi(n){var t;if(_utils.exists(f.volumeSliderRail)){var e=isNaN(n.volume/100)?1:n.volume/100,i=_utils.parseDimension(f.volumeSliderRail.style.width),r=isNaN(Math.round(i*e))?0:Math.round(i*e),s=_utils.parseDimension(f.volumeSliderRail.style.right),o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(f.volumeSliderProgress,{width:r,left:o}),f.volumeSliderThumb&&(t=r-Math.round(_utils.parseDimension(f.volumeSliderThumb.style.width)/2),t=Math.min(Math.max(t,0),i-_utils.parseDimension(f.volumeSliderThumb.style.width)),_css(f.volumeSliderThumb,{left:t})),_utils.exists(f.volumeSliderCapLeft)&&_css(f.volumeSliderCapLeft,{left:0})}}function si(){try{var n=u.id.indexOf("_instream")>0?u.id.replace("_instream",""):u.id;ii=document.getElementById(n),ii.addEventListener("mousemove",it)}catch(t){_utils.log("Could not add mouse listeners to controlbar: "+t)}}function hi(){yi(),ai(),ri(),y=!0,di(),e.idlehide=e.idlehide.toString().toLowerCase()=="true",e.position==n.html5.view.positions.OVER&&e.idlehide?(o.style.opacity=0,st=!0):(o.style.opacity=1,setTimeout(function(){st=!0,nt()},1)),si(),gt()}var u,e,ut,nt,et;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,vt,dt,bt,b="none",lt,k,h,tt,pt,ti,f={},y=!1,l={},g,v=!1,at,ct,st=!1,ht=!1,ii,ui=new n.html5.eventdispatcher;return _utils.extend(this,ui),this.getDisplayElement=function(){return o},this.resize=function(n,t){si(),_utils.cancelAnimation(o),pt=n,ti=t,ht!=u.jwGetFullscreen()&&(ht=u.jwGetFullscreen(),ht||it(),ct=undefined);var i=ft();return w({id:u.id,duration:h,position:k}),d({id:u.id,bufferPercent:tt}),i},this.show=function(){v&&(v=!1,_show(o),nt())},this.hide=function(){v||(v=!0,_hide(o),et())},nt=oi(n.api.events.JWPLAYER_COMPONENT_SHOW),et=oi(n.api.events.JWPLAYER_COMPONENT_HIDE),hi(),this}}}(jwplayer),function(n){var r=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"],t=n.utils;n.html5.controller=function(r,u,f,e){function dt(n){b?s.sendEvent(n.type,n):nt.push(n)}function pt(t){var r,i;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);nt.length>0;)r=nt.shift(),s.sendEvent(r.type,r);for(f.config.autostart&&!n.utils.isIOS()&&rt();k.length>0;)i=k.shift(),ot(i.method,i.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 lt(){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 wt(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 g(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(tt()):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 bt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(tt()):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 tt(){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 ft(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 kt(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 ni(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 gt(t,i){try{return o.width=t,o.height=i,et.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 it(t,i){try{return typeof t=="undefined"&&(t=!o.fullscreen),typeof i=="undefined"&&(i=!0),t!=o.fullscreen&&(o.fullscreen=t.toString().toLowerCase()=="true",et.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 yt(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 rt(){t.isIOS()||(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||a())}function ht(n){it(n.fullscreen,!1)}function st(){try{return o.getMedia().detachMedia()}catch(n){return null}}function vt(){try{var t=o.getMedia().attachMedia();typeof v=="function"&&v()}catch(n){return null}}function ut(){if(o.state==n.api.events.state.IDLE){v=ut;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?g():ft(0);break;case n.html5.controller.repeatoptions.LIST:o.item!=o.playlist.length-1||o.config.shuffle?g():(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,et=e,at=u,d=!0,p=-1,l=!1,w=!1,v,nt=[],b=!1,ct=t.exists(o.config.debug)&&o.config.debug.toString().toLowerCase()=="console",s=new n.html5.eventdispatcher(at.id,ct),k;t.extend(this,s),o.addGlobalListener(dt),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(ut,25)}),o.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,rt),o.addEventListener(n.api.events.JWPLAYER_FULLSCREEN,ht),n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"},k=[],this.play=c(a),this.pause=c(lt),this.seek=c(wt),this.stop=c(y),this.next=c(g),this.prev=c(bt),this.item=c(ft),this.setVolume=c(kt),this.setMute=c(ni),this.resize=c(gt),this.setFullscreen=c(it),this.load=c(yt),this.playerReady=pt,this.detachMedia=st,this.attachMedia=vt,this.beforePlay=function(){return l}}}(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 ni(){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=fi,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),ii(),setTimeout(function(){pt=!0,y.icons.toString()=="true"&&g()},1)}function fi(){it=u.display_image.naturalWidth,ut=u.display_image.naturalHeight,lt(),r.jwGetState()==n.api.events.state.IDLE&&(_css(u.display_image,{display:"block",opacity:0}),_utils.fadeTo(u.display_image,1,.1)),st=!1}function lt(){if(r.jwGetFullscreen()&&r.jwGetStretching()==n.utils.stretching.EXACTFIT){var t=document.createElement("div");_utils.stretch(n.utils.stretching.UNIFORM,t,o,f,yt,wt),_utils.stretch(n.utils.stretching.EXACTFIT,u.display_image,_utils.parseDimension(t.style.width),_utils.parseDimension(t.style.height),it,ut),_css(u.display_image,{left:t.style.left,top:t.style.top})}else _utils.stretch(r.jwGetStretching(),u.display_image,o,f,it,ut)}function h(n,t){var i=document.createElement(n);return i.id=r.id+"_jwplayer_"+t,_css(i,a[t].style),i}function ii(){for(var n in u)_utils.exists(a[n].click)&&(u[n].onclick=a[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 w(n){if(d){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}),ri(),_utils.exists(r.skin.getSkinElement("display",n+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null)}function c(){y.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),ct())}function ri(){s||y.icons.toString()!="true"||(_show(u.display_icon),_show(u.display_iconBackground),g())}function ei(n){d=!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 l(){et=!1,u.display_image.style.display="none"}function ui(){rt=""}function v(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&d&&(d=!1,_hide(u.display_text));var i=r.jwGetState();i!=rt&&(rt=i,b>=0&&clearTimeout(b),e||r.jwGetState()==n.api.events.state.PLAYING||r.jwGetState()==n.api.events.state.PAUSED?tt(r.jwGetState()):b=setTimeout(bt(r.jwGetState()),500))}function bt(n){return function(){tt(n)}}function tt(t){_utils.exists(k)&&(clearInterval(k),k=null,_utils.animations.rotate(u.display_icon,0));switch(t){case n.api.events.state.BUFFERING:_utils.isIPod()?(l(),c()):(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"&&ot(),nt=0,k=setInterval(function(){nt+=dt,_utils.animations.rotate(u.display_icon,nt%360)},kt),w("bufferIcon"),e=!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"}),w("playIcon"),e=!0);break;case n.api.events.state.IDLE:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image?ot():l(),w("playIcon"),e=!0;break;default:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"?_utils.isIPod()?(l(),e=!1):ot():(l(),e=!1),r.jwGetMute()&&y.showmute?w("muteIcon"):c()}b=-1}function ot(){if(r.jwGetPlaylist()[r.jwGetPlaylistIndex()]){var n=r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image;n&&(n!=at?(at=n,st=!0,u.display_image.src=_utils.getAbsolutePath(n)):st||et||(et=!0,u.display_image.style.opacity=0,u.display_image.style.display="block",_utils.fadeTo(u.display_image,1,.1)))}}function ht(n){return function(){pt&&(s||ft==n||(ft=n,vt.sendEvent(n,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)})))}}var gt={icons:!0,showmute:!1},y=_utils.extend({},gt,i),r=t,u={},o,f,it,ut,nt,k,d,dt=_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,b=-1,rt=n.api.events.state.IDLE,e=!0,ft,st=!1,et=!0,at="",s=!1,pt=!1,p,yt,wt,vt=new n.html5.eventdispatcher,a,g,ct;return _utils.extend(this,vt),a={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:(o-r.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",r.skin.getSkinElement("display","background").src,")"].join(""),width:r.skin.getSkinElement("display","background").width,height:r.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:o,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}},r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,v),r.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,v),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ui),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,v),r.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ei),ni(),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}),(o!=n||f!=t)&&(o=n,f=t,ft=undefined,g()),r.jwGetFullscreen()||(yt=n,wt=t),lt(),v({}))},this.show=function(){s&&(s=!1,tt(r.jwGetState()))},this.hide=function(){s||(c(),s=!0)},g=ht(n.api.events.JWPLAYER_COMPONENT_SHOW),ct=ht(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 ht(){return{align:n.html5.view.positions.RIGHT}}function h(n){return"url("+n+") no-repeat center center"}function ft(i,u){var p,y,l,h;if(g(),s.length>0){var a=10,v=a,ut=-1,it=r.skin.getSkinElement("dock","button").height,nt=r.skin.getSkinElement("dock","button").width,rt=i-nt-a,o,e;for(tt.align==n.html5.view.positions.LEFT&&(ut=1,rt=a),p=0;p<s.length;p++)y=Math.floor(v/u),v+it+a>(y+1)*u&&(v=(y+1)*u+a,y=Math.floor(v/u)),l=f[s[p]].div,l.style.top=v%u+"px",l.style.left=rt+(r.skin.getSkinElement("dock","button").width+a)*y*ut+"px",h={x:t.parseDimension(l.style.left),y:t.parseDimension(l.style.top),width:nt,height:it},(!o||h.x<=o.x&&h.y<=o.y)&&(o=h),(!e||h.x>=e.x&&h.y>=e.y)&&(e=h),l.style.width=nt+"px",l.style.height=it+"px",v+=r.skin.getSkinElement("dock","button").height+a;et={x:o.x,y:o.y,width:e.x-o.x+e.width,height:o.y-e.y+e.height}}(d!=r.jwGetFullscreen()||b!=i||k!=u)&&(b=i,k=u,d=r.jwGetFullscreen(),w=undefined,setTimeout(c,1))}function ot(n){return function(){!o&&w!=n&&s.length>0&&(w=n,ut.sendEvent(n,{component:"dock",boundingRect:et}))}}function st(i){t.isMobile()?i.newstate==n.api.events.state.IDLE?p():a():it()}function it(i){if(!o)if(clearTimeout(l),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))&&v(),u.idlehide&&(l=setTimeout(function(){nt()},2e3));break;default:t.exists(i)&&v(),l=setTimeout(function(){nt()},2e3)}else v()}function nt(){o||(y(),e.style.opacity==1&&(t.cancelAnimation(e),t.fadeTo(e,0,.1,1,0)))}function v(){o||(c(),e.style.opacity==0&&(t.cancelAnimation(e),t.fadeTo(e,1,.1,0,0)))}function g(){try{rt=document.getElementById(r.id),rt.addEventListener("mousemove",it)}catch(n){t.log("Could not add mouse listeners to dock: "+n)}}var tt=t.extend({},ht(),u),e,c,y,p,a;if(tt.align!="FALSE"){var f={},s=[],b,k,o=!1,d=!1,et={x:0,y:0,width:0,height:0},w,rt,l,ut=new n.html5.eventdispatcher;return t.extend(this,ut),e=document.createElement("div"),e.id=r.id+"_jwplayer_dock",e.style.opacity=1,g(),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,st),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)})),ft(b,k)},c=ot(n.api.events.JWPLAYER_COMPONENT_SHOW),y=ot(n.api.events.JWPLAYER_COMPONENT_HIDE),this.resize=ft,p=function(){i(e,{display:"block"}),o&&(o=!1,c())},a=function(){i(e,{display:"none"}),o||(y(),o=!0)},this.hide=a,this.show=p,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 lt(){_fakemodel=new n.html5.model(this,e.getMedia()?e.getMedia().getDisplayElement():e.container,e),v=new n.html5.eventdispatcher,h.jwAddEventListener(n.api.events.JWPLAYER_RESIZE,g),h.jwAddEventListener(n.api.events.JWPLAYER_FULLSCREEN,g)}function vt(){_fakemodel.setMute(e.mute),_fakemodel.setVolume(e.volume)}function at(){o||(o=new n.html5.mediavideo(_fakemodel,e.getMedia()?e.getMedia().getDisplayElement():e.container),o.addGlobalListener(st),o.addEventListener(n.api.events.JWPLAYER_MEDIA_META,ot),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,ut),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,ft)),o.attachMedia()}function st(n){s&&d(n.type,n)}function ft(){s&&o.play()}function ut(){s&&setTimeout(function(){b.jwInstreamDestroy(!0)},10)}function ot(n){n.metadata.width&&n.metadata.height&&w.resizeMedia()}function d(n,t,i){(s||i)&&v.sendEvent(n,t)}function g(){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(i.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 et={controlbarseekable:"always",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},nt,p,h=i,e=r,w=u,it=f,c,ht,ct,rt,a,tt,o,l,y,s=!1,v,k,b=this;return this.load=function(i,r){if(vt(),s=!0,p=t.extend(et,r),nt=n.html5.playlistitem(i),at(),k=document.createElement("div"),k.id=b.id+"_instream_container",it.detachMedia(),c=o.getDisplayElement(),tt=e.playlist[e.item],a=h.jwGetState(),(a==n.api.events.state.BUFFERING||a==n.api.events.state.PLAYING)&&c.pause(),ht=c.src?c.src:c.currentSrc,ct=c.innerHTML,rt=c.currentTime,y=new n.html5.display(b,t.extend({},e.plugins.config.display)),y.setAlternateClickHandler(function(t){_fakemodel.state==n.api.events.state.PAUSED?b.jwInstreamPlay():d(n.api.events.JWPLAYER_INSTREAM_CLICK,t)}),k.appendChild(y.getDisplayElement()),!t.isMobile())if(l=new n.html5.controlbar(b,t.extend({},e.plugins.config.controlbar,{})),e.plugins.config.controlbar.position==n.html5.view.positions.OVER)k.appendChild(l.getDisplayElement());else{var u=e.plugins.object.controlbar.getDisplayElement().parentNode;u.appendChild(l.getDisplayElement())}w.setupInstream(k,c),g(),o.load(nt)},this.jwInstreamDestroy=function(t){if(s){if(s=!1,a!=n.api.events.state.IDLE?(o.load(tt,!1),o.stop(!1)):o.stop(!0),o.detachMedia(),w.destroyInstream(),l)try{l.getDisplayElement().parentNode.removeChild(l.getDisplayElement())}catch(i){}d(n.api.events.JWPLAYER_INSTREAM_DESTROYED,{reason:t?"complete":"destroyed"},!0),it.attachMedia(),(a==n.api.events.state.BUFFERING||a==n.api.events.state.PLAYING)&&(c.play(),e.playlist[e.item]==tt&&e.getMedia().seek(rt));return}},this.jwInstreamAddEventListener=function(n,t){v.addEventListener(n,t)},this.jwInstreamRemoveEventListener=function(n,t){v.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||p.playlistclickable.toString().toLowerCase()=="true"},this.jwPlay=function(){p.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPlay()},this.jwPause=function(){p.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPause()},this.jwStop=function(){p.controlbarstoppable.toString().toLowerCase()=="true"&&(this.jwInstreamDestroy(),h.jwStop())},this.jwSeek=function(n){switch(p.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[nt]},this.jwGetPlaylistIndex=function(){return 0},this.jwGetStretching=function(){return e.config.stretching},this.jwAddEventListener=function(n,t){v.addEventListener(n,t)},this.jwRemoveEventListener=function(n,t){v.removeEventListener(n,t)},this.skin=h.skin,this.id=h.id+"_instream",lt(),this}}(jwplayer),function(n){var t={prefix:"http://l.longtailvideo.com/html5/",file:"",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 w(){p(),o.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,v),b(),d()}function p(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);try{window.location.href.indexOf("https")==0&&(t.prefix=t.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(e){}u=n.utils.extend({},t,r)}function b(){(f=document.createElement("img"),f.id=o.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,a()),s()},u.file)&&(f.src=u.file.indexOf("/")>=0?u.file:u.prefix+u.file)}function d(){u.link?(f.onmouseover=c,f.onmouseout=s,f.onclick=k):this.mouseEnabled=!1}function k(n){if(typeof n!="undefined"&&n.stopPropagation(),e){o.jwPause(),o.jwSetFullscreen(!1),u.link&&window.open(u.link,u.linktarget);return}}function s(){u.link&&e&&(f.style.opacity=u.out);return}function c(){e&&(f.style.opacity=u.over);return}function a(){var t={textDecoration:"none",position:"absolute",cursor:"pointer"},n,i;t.display=u.hide.toString()=="true"&&!e?"none":"block",n=u.position.toLowerCase().split("-");for(i in n)t[n[i]]=parseInt(u.margin);return t}function y(){u.hide.toString()=="true"&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),h=setTimeout(function(){l()},u.timeout*1e3)),e=!0}function l(){e=!1,u.hide.toString()=="true"&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function v(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(h),y())}var o=i,h,u,f,e=!1;if(w(),u.file)return this.resize=function(){},this.getDisplayElement=function(){return f},this}}(jwplayer),function(n){var u={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,i=t.isMobile(),r={};n.html5.mediavideo=function(f,e){function vt(n,i){return function(n){t.exists(n.target.parentNode)&&i(n)}}function kt(){a=n.api.events.state.IDLE,c=!0,o=dt(),o.setAttribute("x-webkit-airplay","allow"),v.parentNode&&(o.id=v.id,v.parentNode.replaceChild(o,v))}function dt(){var n=r[s.id],t;n||(n=v.tagName.toLowerCase()=="audio"?v:document.createElement("audio"),r[s.id]=n,n.id||(n.id=v.id));for(t in lt)n.addEventListener(t,vt(t,lt[t]),!0);return n}function p(t){if(t!=n.api.events.state.PAUSED||a!=n.api.events.state.IDLE){if(i)switch(t){case n.api.events.state.PLAYING:at();break;case n.api.events.state.BUFFERING:case n.api.events.state.PAUSED:ct()}if(a!=t){var r=a;s.state=a=t,h(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:r,newstate:t})}}}function y(){}function bt(){var i=Math.round(o.volume*100);h(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:i},!0),h(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:o.muted},!0)}function rt(i){var r,u;c&&(t.exists(i)&&i.lengthComputable&&i.total?r=i.loaded/i.total*100:t.exists(o.buffered)&&o.buffered.length>0&&(u=o.buffered.length-1,u>=0&&(r=o.buffered.end(u)/o.duration*100)),t.useNativeFullscreen()&&t.exists(o.webkitDisplayingFullscreen)&&s.fullscreen!=o.webkitDisplayingFullscreen&&h(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:o.webkitDisplayingFullscreen},!0),k===!1&&a==n.api.events.state.BUFFERING&&(h(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),k=!0),ot||(r==100&&(ot=!0),t.exists(r)&&r>s.buffer&&(s.buffer=Math.round(r),h(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(r)}))))}function gt(i){if(c){if(t.exists(i)&&t.exists(i.target)&&(et>0&&!isNaN(i.target.duration)&&(isNaN(s.duration)||s.duration<1)&&(s.duration=i.target.duration==Infinity?0:Math.round(i.target.duration*10)/10),!d&&o.readyState>0&&p(n.api.events.state.PLAYING),a==n.api.events.state.PLAYING)){if(o.readyState>0&&(w>-1||!d)){d=!0;try{o.currentTime!=w&&w>-1&&(o.currentTime=w,w=-1)}catch(r){}o.volume=s.volume/100,o.muted=s.mute}if(s.position=s.duration>0?Math.round(i.target.currentTime*10)/10:0,h(n.api.events.JWPLAYER_MEDIA_TIME,{position:s.position,duration:s.duration}),s.position>=s.duration&&(s.position>0||s.duration>0)){st();return}}rt(i)}}function ii(){}function l(n){c&&u[n.type]&&(n.type=="ended"?st():p(u[n.type]))}function tt(){if(c){var i=Math.round(o.duration*10)/10,r={height:o.videoHeight,width:o.videoWidth,duration:i};et||(s.duration<i||isNaN(s.duration))&&o.duration!=Infinity&&(s.duration=i),h(n.api.events.JWPLAYER_MEDIA_META,{metadata:r})}}function ti(i){var r,u;if(c&&a!=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(it--,it>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."),g(!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}g(!1),r+=ni(),_error=!0,h(n.api.events.JWPLAYER_ERROR,{message:r});return}}function ni(){var i="",t,r,u;for(t in b.levels)r=b.levels[t],u=v.ownerDocument.createElement("source"),i+=n.utils.getAbsolutePath(r.file),t<b.levels.length-1&&(i+=", ");return i}function ht(){t.exists(nt)||(nt=setInterval(function(){rt()},100))}function yt(){clearInterval(nt),nt=null}function st(){a==n.api.events.state.PLAYING&&(g(!1),h(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE),h(n.api.events.JWPLAYER_MEDIA_COMPLETE))}function wt(){t.exists(o.webkitDisplayingFullscreen)&&s.fullscreen&&!o.webkitDisplayingFullscreen&&h(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1},!0)}function pt(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 at(){setTimeout(function(){o.setAttribute("controls","controls")},100)}function ct(){setTimeout(function(){o.removeAttribute("controls")},250)}function h(n,t,i){(c||i)&&(t?ut.sendEvent(n,t):ut.sendEvent(n))}var lt={abort:y,canplay:l,canplaythrough:l,durationchange:tt,emptied:y,ended:l,error:ti,loadeddata:tt,loadedmetadata:tt,loadstart:l,pause:l,play:y,playing:l,progress:rt,ratechange:y,seeked:l,seeking:l,stalled:l,suspend:l,timeupdate:gt,volumechange:bt,waiting:l,canshowcurrentframe:y,dataunavailable:y,empty:y,load:ii,loadedfirstframe:y,webkitfullscreenchange:wt},ut=new n.html5.eventdispatcher,g;t.extend(this,ut);var s=f,v=e,o,a,d,b,nt,w,ft=!1,c=!1,et=!1,ot,k,it;kt(),this.load=function(r,u){var f,e;if(typeof u=="undefined"&&(u=!0),c){if(b=r,et=b.duration>0,s.duration=b.duration,t.empty(o),it=0,pt(r.levels),r.levels&&r.levels.length>0)if(r.levels.length==1||t.isIOS())o.src=r.levels[0].file;else for(o.src&&o.removeAttribute("src"),f=0;f<r.levels.length;f++)e=o.ownerDocument.createElement("source"),e.src=r.levels[f].file,o.appendChild(e),it++;else o.src=r.file;o.style.display="block",o.style.opacity=1,o.volume=s.volume/100,o.muted=s.mute,i&&at(),ot=k=d=!1,s.buffer=0,t.exists(r.start)||(r.start=0),w=r.start>0?r.start:-1,h(n.api.events.JWPLAYER_MEDIA_LOADED),(i||r.levels.length!=1)&&ft||o.load(),ft=!1,u&&(p(n.api.events.state.BUFFERING),h(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),ht()),o.videoWidth>0&&o.videoHeight>0&&tt()}},this.play=function(){c&&(ht(),k?p(n.api.events.state.PLAYING):p(n.api.events.state.BUFFERING),o.play())},this.pause=function(){c&&(o.pause(),p(n.api.events.state.PAUSED))},this.seek=function(n){c&&(!d&&o.readyState>0?s.duration<=0||isNaN(s.duration)||s.position<=0||isNaN(s.position)||(o.currentTime=n,o.play()):w=n)},g=this.stop=function(i){if(c){if(t.exists(i)||(i=!0),yt(),i){k=!1;var u=navigator.userAgent;if(o.webkitSupportsFullscreen)try{o.webkitExitFullscreen()}catch(r){}o.style.opacity=0,ct(),t.isIE()?o.src="":o.removeAttribute("src"),t.empty(o),o.load(),ft=!0}p(n.api.events.state.IDLE)}},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(s.config.width,s.config.height)},this.resize=function(){},this.volume=function(t){i||(o.volume=t/100,h(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t/100}))},this.mute=function(t){i||(o.muted=t,h(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t}))},this.getDisplayElement=function(){return o},this.hasChrome=function(){return i&&a==n.api.events.state.PLAYING},this.detachMedia=function(){return c=!1,this.getDisplayElement()},this.attachMedia=function(){c=!0}}}(jwplayer),function(n){var i={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils.css;n.html5.mediayoutube=function(i,r){function h(t){if(s!=t){var i=s;c.state=t,s=t,e.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function a(n){var i=n.levels[0].file,s,h,t,e,r;i=["http://www.youtube.com/v/",l(i),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join(""),u=document.createElement("object"),u.id=f.id,u.style.position="absolute",s={movie:i,allowfullscreen:"true",allowscriptaccess:"always"};for(h in s)t=document.createElement("param"),t.name=h,t.value=s[h],u.appendChild(t);o=document.createElement("embed"),u.appendChild(o),e={src:i,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:u.width,height:u.height};for(r in e)o.setAttribute(r,e[r]);u.appendChild(o),u.style.zIndex=2147483e3,f!=u&&f.parentNode&&f.parentNode.replaceChild(u,f),f=u}function l(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")>=0?n.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 c=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),h(n.api.events.state.PLAYING)):s==n.api.events.state.PAUSED&&h(n.api.events.state.PLAYING)},this.pause=function(){h(n.api.events.state.PAUSED)},this.seek=function(){},this.stop=function(i){_utils.exists(i)||(i=!0),c.position=0,h(n.api.events.state.IDLE),i&&t(f,{display:"none"})},this.volume=function(t){c.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(c.config.width,c.config.height)},this.load=function(i){a(i),t(u,{display:"block"}),h(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 lt(t){var i=new n.html5.playlistloader;i.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,function(t){e.playlist=new n.html5.playlist(t),tt(!0)}),i.addEventListener(n.api.events.JWPLAYER_ERROR,function(){e.playlist=new n.html5.playlist({playlist:[]}),tt(!1)}),i.load(t)}function tt(){e.config.shuffle?e.item=at():(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,p.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist}),p.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:e.item})}function at(){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 ft(t){switch(t.type){case n.api.events.JWPLAYER_MEDIA_LOADED:y=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}p.sendEvent(t.type,t)}var ot=r,y=u,k=t.getCookies(),e={id:y.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,container:y,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:k.volume?k.volume:90,mute:k.mute&&k.mute.toString().toLowerCase()=="true"?!0:!1,fullscreen:!1,repeat:"",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},o,p=new n.html5.eventdispatcher,ct=["display","logo","controlbar","playlist","dock"],c,et,a,h,l,st,rt,v,b,it,d,nt,ht,s,g,ut,w;n.utils.extend(e,p);for(c in f){typeof f[c]=="string"&&(et=/color$/.test(c)?"color":null,f[c]=n.utils.typechecker(f[c],et)),a=e.config,h=c.split(".");for(l in h)l==h.length-1?a[h[l]]=f[c]:(n.utils.exists(a[h[l]])||(a[h[l]]={}),a=a[h[l]])}for(st in i)rt=i[st],e[rt]=e.config[rt];if(v=ct.concat([]),n.utils.exists(e.plugins)&&typeof e.plugins=="string"){b=e.plugins.split(",");for(it in b)typeof b[it]=="string"&&v.push(b[it].replace(/^\s+|\s+$/g,""))}if(n.utils.isMobile()?(v=["display","logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")):e.config.chromeless&&(v=["logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")),e.plugins={order:v,config:{},object:{}},typeof e.config.components!="undefined")for(d in e.config.components)e.plugins.config[d]=e.config.components[d];nt=!1;for(ht in e.plugins.order)s=e.plugins.order[ht],g=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],g):g,n.utils.exists(e.plugins.config[s].position)?(s=="playlist"&&(nt=!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&&nt&&(e.plugins.config.controlbar.hideplaylistcontrols=!0),typeof e.plugins.config.dock!="undefined"&&(typeof e.plugins.config.dock!="object"&&(ut=e.plugins.config.dock.toString().toUpperCase(),e.plugins.config.dock={position:ut}),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(vt){}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?lt(e.playlist[0].file):tt()},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:y);break;case"youtube":o=new n.html5.mediayoutube(e,r?r:y)}if(!n.utils.exists(o))return!1;o.addGlobalListener(ft),w[i]=o}return!0},e.getMedia=function(){return o},e.seek=function(t){return p.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(ot,e.plugins.config[t]):new n.html5[t](ot,e.plugins.config[t]):e.plugins.order.splice(plugin,plugin+1),typeof e.plugins.object[t].addGlobalListener=="function"&&e.plugins.object[t].addGlobalListener(ft)}catch(r){n.utils.log("Could not setup "+t)}},e}}(jwplayer),function(n){n.html5.playlist=function(t){var r=[],i;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(i in t.playlist)isNaN(parseInt(i))||r.push(new n.html5.playlistitem(t.playlist[i]));else r.push(new n.html5.playlistitem(t));return r}}(jwplayer),function(n){var i={size:180,position:n.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},t={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.playlistcomponent=function(r,u){function rt(){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"}k(),e.item&&(f.itemheight=e.item.height),o.style.backgroundColor="#C6C6C6",s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ft),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,g),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,nt)}function it(){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 tt(n){return function(){var r=h.getElementsByClassName("item")[n],i=f.fontcolor,t=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(i=f.activecolor),e.itemActive&&(t="url("+e.itemActive.src+")")),_css(r,{color:f.overcolor!==""?f.overcolor:i,backgroundImage:e.itemOver?"url("+e.itemOver.src+")":t})}}function a(n){return function(){var r=h.getElementsByClassName("item")[n],i=f.fontcolor,t=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(i=f.activecolor),e.itemActive&&(t="url("+e.itemActive.src+")")),_css(r,{color:i,backgroundImage:t})}}function et(t){var i=l[t],u=document.createElement("li"),k,s,c,o,h;u.className="item",_css(u,{height:f.itemheight,display:"block",cursor:"pointer",backgroundImage:e.item?"url("+e.item.src+")":"",backgroundSize:"100% "+f.itemheight+"px"}),u.onmouseover=tt(t),u.onmouseout=a(t);var g=document.createElement("div"),r=new Image,b=0,p=0,d=0;return w()&&(i.image||i["playlist.image"]||e.itemImage)&&(r.className="image",e.itemImage?(b=(f.itemheight-e.itemImage.height)/2,p=e.itemImage.width,d=e.itemImage.height):(p=f.itemheight*4/3,d=f.itemheight),_css(g,{height:d,width:p,float:"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:b+"px",position:"relative"}),_css(r,{position:"relative"}),g.appendChild(r),r.onload=function(){n.utils.stretch(n.utils.stretching.FILL,r,p,d,this.naturalWidth,this.naturalHeight)},i["playlist.image"]?r.src=i["playlist.image"]:i.image?r.src=i.image:e.itemImage&&(r.src=e.itemImage.src),u.appendChild(g)),k=v-p-b*2,y<f.itemheight*l.length&&(k-=15),s=document.createElement("div"),_css(s,{position:"relative",height:"100%",overflow:"hidden"}),c=document.createElement("span"),i.duration>0&&(c.className="duration",_css(c,{fontSize:(f.fontsize?f.fontsize:11)+"px",fontWeight:f.fontweight?f.fontweight:"bold",width:"40px",height:f.fontsize?f.fontsize+10:20,lineHeight:24,float:"right",styleFloat:"right",cssFloat:"right"}),c.innerHTML=_utils.timeFormat(i.duration),s.appendChild(c)),o=document.createElement("span"),o.className="title",_css(o,{padding:"5px 5px 0 "+(b?0:"5px"),height:f.fontsize?f.fontsize+10:20,lineHeight:f.fontsize?f.fontsize+10:20,overflow:"hidden",float:"left",styleFloat:"left",cssFloat:"left",width:(i.duration>0?k-50:k)-10+"px",fontSize:(f.fontsize?f.fontsize:13)+"px",fontWeight:f.fontweight?f.fontweight:"bold"}),o.innerHTML=i?i.title:"",s.appendChild(o),i.description&&(h=document.createElement("span"),h.className="description",_css(h,{display:"block",float:"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:o.style.paddingLeft,paddingRight:o.style.paddingRight,lineHeight:(f.fontsize?f.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),h.innerHTML=i.description,s.appendChild(h)),u.appendChild(s),u}function ft(){var t,i,r;if(o.innerHTML="",l=ut(),l){for(items=[],h=it(),t=0;t<l.length;t++)i=et(t),i.onclick=p(t),h.appendChild(i),items.push(i);c=s.jwGetPlaylistIndex(),a(c)(),o.appendChild(h),_utils.isIOS()&&window.iScroll&&(h.style.height=f.itemheight*l.length+"px",r=new iScroll(o.id))}}function ut(){for(var t=s.jwGetPlaylist(),i=[],n=0;n<t.length;n++)t[n]["ova.hidden"]||i.push(t[n]);return i}function p(n){return function(){s.jwPlaylistItem(n),s.jwPlay(!0)}}function b(){h.scrollTop=s.jwGetPlaylistIndex()*f.itemheight}function w(){return f.thumbs.toString().toLowerCase()=="true"}function g(n){c>=0&&(a(c)(),c=n.index),a(n.index)(),b()}function nt(){if(f.position==n.html5.view.positions.OVER)switch(s.jwGetState()){case n.api.events.state.IDLE:_show(o);break;default:_hide(o)}}function k(){for(var n in e)e[n]=d(n)}function d(n){return s.skin.getSkinElement("playlist",n)}var s=r,f=n.utils.extend({},i,s.skin.getComponentSettings("playlist"),u),o,v,y,l,ot,h,c,e;if(f.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[f.position]!="undefined")return c=-1,e={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined},this.getDisplayElement=function(){return o},this.resize=function(n,t){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)},rt(),this}}(jwplayer),function(n){function t(t){var i,u,r;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";u=n.utils.extensionmap[i].html5}else t.type&&(u=t.type);if(u){if(r=u.split("/")[0],r=="audio")return"sound";if(r=="video")return r}return""}n.html5.playlistitem=function(i){var u={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},r=n.utils.extend({},u,i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(t){var r={file:"",streamer:"",bitrate:0,width:0},i;for(i in r)n.utils.exists(t[i])&&(r[i]=t[i]);return r}}(jwplayer),function(n){n.html5.playlistloader=function(){function r(r){var u=[];try{u=n.utils.parsers.rssparser.parse(r.responseXML.firstChild),t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new n.html5.playlist({playlist:u})})}catch(f){i("Could not parse the playlist")}}function i(i){t.sendEvent(n.api.events.JWPLAYER_ERROR,{message:i?i:"Could not load playlist an unknown reason."})}var t=new n.html5.eventdispatcher;n.utils.extend(this,t),this.load=function(t){n.utils.ajax(t,r,i)}}}(jwplayer),function(n){n.html5.skin=function(){var 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 w(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(n.utils.exists(t.responseXML)){e(t.responseXML);return}}catch(i){a()}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),e,i,ut,it,d,b,w,c,a,rt,v,r,p,nt,g,f,l,k,tt;if(o.length!==0)for(e=0;e<o.length;e++){for(i=o[e].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,it=o[e].getElementsByTagName("elements")[0].getElementsByTagName("element"),d=0;d<it.length;d++)y(it[d],i);if(b=o[e].getElementsByTagName("settings")[0],b&&b.childNodes.length>0)for(w=b.getElementsByTagName("setting"),c=0;c<w.length;c++){var ft=w[c].getAttribute("name"),et=w[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}if(a=o[e].getElementsByTagName("layout")[0],a&&a.childNodes.length>0)for(rt=a.getElementsByTagName("group"),v=0;v<rt.length;v++){for(r=rt[v],u[i].layout[r.getAttribute("position")]={elements:[]},p=0;p<r.attributes.length;p++)nt=r.attributes[p],u[i].layout[r.getAttribute("position")][nt.name]=nt.value;for(g=r.getElementsByTagName("*"),f=0;f<g.length;f++){for(l=g[f],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),k=0;k<l.attributes.length;k++)tt=l.attributes[k],u[i].layout[r.getAttribute("position")].elements[f][tt.name]=tt.value;n.utils.exists(u[i].layout[r.getAttribute("position")].elements[f].name)||(u[i].layout[r.getAttribute("position")].elements[f].name=l.tagName)}}h=!1,s()}}function s(){clearInterval(o),c||(o=setInterval(function(){v()},100))}function y(t,i){var r=new Image,v=t.getAttribute("name"),o=t.getAttribute("src"),e,h,a;o.indexOf("data:image/png;base64,")===0?e=o:(h=n.utils.getAbsolutePath(f),a=h.substr(0,h.lastIndexOf("/")),e=[a,i,o].join("/")),u[i].elements[v]={height:0,width:0,src:"",ready:!1,image:r},r.onload=function(){l(r,v,i)},r.onerror=function(){c=!0,s(),p()},r.src=e}function a(){var r,n,f,t,i;for(r in u){n=u[r];for(f in n.elements)t=n.elements[f],i=t.image,i.onload=null,i.onerror=null,delete t.image,delete n.elements[f];delete u[r]}}function v(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),b(u))}function l(t,i,r){u[r]&&u[r].elements[i]?(u[r].elements[i].height=t.height,u[r].elements[i].width=t.width,u[r].elements[i].src=t.src,u[r].elements[i].ready=!0,s()):n.utils.log("Loaded an image for a missing element: "+r+"."+i)}var u={},b=i,p=r,h=!0,o,f=t,c=!1;w()}}(jwplayer),function(n){n.html5.api=function(t,i){function 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 h(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={},c=document.createElement("div"),e;t.parentNode.replaceChild(c,t),c.id=t.id,r.version=n.version,r.id=c.id;var u=new n.html5.model(r,c,i),a=new n.html5.view(r,c,u),f=new n.html5.controller(r,c,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=h("controlbar","show"),r.jwControlbarHide=h("controlbar","hide"),r.jwDockShow=h("dock","show"),r.jwDockHide=h("dock","hide"),r.jwDisplayShow=h("display","show"),r.jwDisplayHide=h("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.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,t){function it(n,t){return function(){if(i.plugin.debug)return n.apply(this,arguments);try{return n.apply(this,arguments)}catch(r){i.plugin.errors.push({plugin:t,thrown:r,source:n.toString()}),this.trigger("error",i.plugin.errors)}}}function a(n){var i=typeof n=="string"?n:[n.language,n.region].join("-"),t=i.split("-");return{iso6391:i,language:t[0]||"",region:t[1]||""}}var e,l,v,f;if(!t.addEventListener){for(n.Popcorn={isSupported:!1},e="removeInstance addInstance getInstanceById removeInstanceById forEach extend effects error guid sizeOf isArray nop position disable enable destroyaddTrackEvent removeTrackEvent getTrackEvents getTrackEvent getLastTrackEventId timeUpdate plugin removePlugin compose effect parser xhr getJSONP getScript player".split(/\s+/);e.length;)n.Popcorn[e.shift()]=function(){};return}var d=Array.prototype,k=Object.prototype,w=d.forEach,p=d.slice,o=k.hasOwnProperty,b=k.toString,g=n.Popcorn,s=/^(#([\w\-\_\.]+))$/,u=[],y=!1,tt=!1,r={events:{hash:{},apis:{}}},h=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){n.setTimeout(t,16)}}(),nt=function(n){return Object.keys?Object.keys(n):function(n){var t,i=[];for(t in n)o.call(n,t)&&i.push(t);return i}(n)},c=function(n){for(var o=n.media.currentTime,h=n.options.frameAnimation,l=n.data.disabled,f=n.data.trackEvents,c=f.animating,u=f.startIndex,a=i.registryByName,s=0,t,r,e,u=Math.min(u+1,f.byStart.length-2);u>0&&f.byStart[u];)t=f.byStart[u],r=t._natives,e=r&&r.type,r&&!a[e]&&!n[e]||(t.start<=o&&t.end>o&&l.indexOf(e)===-1?t._running||(t._running=!0,r.start.call(n,null,t),h&&t&&t._running&&t.natives.frame&&r.frame.call(n,null,t,o)):t._running===!0&&(t._running=!1,r.end.call(n,null,t),h&&t._natives.frame&&(s=c.indexOf(t),s>=0&&c.splice(s,1)))),u--},i=function(n,t){return new i.p.init(n,t||null)};i.version="@VERSION",i.isSupported=!0,i.instances=[],i.p=i.prototype={init:function(n,r){var e,f=this,c,o;if(typeof n=="function"){if(t.readyState==="interactive"||t.readyState==="complete"){n(t,i);return}u.push(n),y||(y=!0,c=function(){tt=!0,t.removeEventListener("DOMContentLoaded",c,!1);for(var n=0,r=u.length;n<r;n++)u[n].call(t,i);u=null},t.addEventListener("DOMContentLoaded",c,!1));return}return e=s.exec(n),this.media=e&&e.length&&e[2]?t.getElementById(e[2]):n,this[this.media.nodeName&&this.media.nodeName.toLowerCase()||"video"]=this.media,i.instances.push(this),this.options=r||{},this.isDestroyed=!1,this.data={timeUpdate:i.nop,disabled:[],events:{},hooks:{},history:[],state:{volume:this.media.volume},trackRefs:{},trackEvents:{byStart:[{start:-1,end:-1}],byEnd:[{start:-1,end:-1}],animating:[],startIndex:0,endIndex:0,previousUpdateTime:-1}},o=function(){f.media.removeEventListener("loadeddata",o,!1);var n,t;n=f.media.duration,t=n!=n?Number.MAX_VALUE:n+1,i.addTrackEvent(f,{start:t,end:t}),f.options.frameAnimation?(f.data.timeUpdate=function(){i.timeUpdate(f,{}),f.trigger("timeupdate"),!f.isDestroyed&&h(f.data.timeUpdate)},!f.isDestroyed&&h(f.data.timeUpdate)):(f.data.timeUpdate=function(n){i.timeUpdate(f,n)},f.isDestroyed||f.media.addEventListener("timeupdate",f.data.timeUpdate,!1))},f.media.readyState>=2?o():f.media.addEventListener("loadeddata",o,!1),this}},i.p.init.prototype=i.p,i.forEach=function(n,t,i){if(!n||!t)return{};i=i||this;var r,u;if(w&&n.forEach===w)return n.forEach(t,i);if(b.call(n)==="[object NodeList]"){for(r=0,u=n.length;r<u;r++)t.call(i,n[r],r,n);return n}for(r in n)o.call(n,r)&&t.call(i,n[r],r,n);return n},i.extend=function(n){var t=n,r=p.call(arguments,1);return i.forEach(r,function(n){for(var i in n)t[i]=n[i]}),t},i.extend(i,{noConflict:function(t){return t&&(n.Popcorn=g),i},error:function(n){throw new Error(n);},guid:function(n){return i.guid.counter++,(n?n:"")+(+new Date+i.guid.counter)},sizeOf:function(n){var t=0,i;for(i in n)t++;return t},isArray:Array.isArray||function(n){return b.call(n)==="[object Array]"},nop:function(){},position:function(r){var e=r.getBoundingClientRect(),v={},p=r.ownerDocument,f=t.documentElement,u=t.body,l,y,a,s,h,c,o;l=f.clientTop||u.clientTop||0,y=f.clientLeft||u.clientLeft||0,a=n.pageYOffset&&f.scrollTop||u.scrollTop,s=n.pageXOffset&&f.scrollLeft||u.scrollLeft,h=Math.ceil(e.top+a-l),c=Math.ceil(e.left+s-y);for(o in e)v[o]=Math.round(e[o]);return i.extend({},v,{top:h,left:c})},disable:function(n,t){var i=n.data.disabled;return i.indexOf(t)===-1&&i.push(t),c(n),n},enable:function(n,t){var r=n.data.disabled,i=r.indexOf(t);return i>-1&&r.splice(i,1),c(n),n},destroy:function(n){var r=n.data.events,i,t,u;for(t in r){i=r[t];for(u in i)delete i[u];r[t]=null}n.isDestroyed||(n.data.timeUpdate&&n.media.removeEventListener("timeupdate",n.data.timeUpdate,!1),n.isDestroyed=!0)}}),i.guid.counter=1,i.extend(i.p,function(){var t="load play pause currentTime playbackRate volume duration preload playbackRate autoplay loop controls muted buffered readyState seeking paused played seekable ended",n={};return i.forEach(t.split(/\s+/g),function(t){n[t]=function(n){return typeof this.media[t]=="function"?(n!=null&&/play|pause/.test(t)&&(this.media.currentTime=i.util.toSeconds(n)),this.media[t](),this):n!=null?(this.media[t]=n,this):this.media[t]}}),n}()),i.forEach("enable disable".split(" "),function(n){i.p[n]=function(t){return i[n](this,t)}}),i.extend(i.p,{roundTime:function(){return-~this.media.currentTime},exec:function(n,t){return i.addTrackEvent(this,{start:n,end:n+1,_running:!1,_natives:{start:t||i.nop,end:i.nop,type:"exec"}}),this},mute:function(n){var t=n==null||n===!0?"muted":"unmuted";return t==="unmuted"&&(this.media.muted=!1,this.media.volume=this.data.state.volume),t==="muted"&&(this.data.state.volume=this.media.volume,this.media.muted=!0),this.trigger(t),this},unmute:function(n){return this.mute(n==null?!1:!n)},position:function(){return i.position(this.media)},toggle:function(n){return i[this.data.disabled.indexOf(n)>-1?"enable":"disable"](this,n)},defaults:function(n,t){return i.isArray(n)?(i.forEach(n,function(n){for(var t in n)this.defaults(t,n[t])},this),this):(this.options.defaults||(this.options.defaults={}),this.options.defaults[n]||(this.options.defaults[n]={}),i.extend(this.options.defaults[n],t),this)}}),i.Events={UIEvents:"blur focus focusin focusout load resize scroll unload",MouseEvents:"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave click dblclick",Events:"loadstart progress suspend emptied stalled play pause loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange"},i.Events.Natives=i.Events.UIEvents+" "+i.Events.MouseEvents+" "+i.Events.Events,r.events.apiTypes=["UIEvents","MouseEvents","Events"],function(n,t){for(var e=r.events.apiTypes,u=n.Natives.split(/\s+/g),i=0,f=u.length,o;i<f;i++)t.hash[u[i]]=!0;e.forEach(function(i){t.apis[i]={};for(var f=n[i].split(/\s+/g),e=f.length,u=0;u<e;u++)t.apis[i][f[u]]=!0})}(i.Events,r.events),i.events={isNative:function(n){return!!r.events.hash[n]},getInterface:function(n){if(!i.events.isNative(n))return!1;for(var e=r.events,o=e.apiTypes,s=e.apis,u=0,h=o.length,f,t;u<h;u++)if(t=o[u],s[t][n]){f=t;break}return f},all:i.Events.Natives.split(/\s+/g),fn:{trigger:function(r,u){var e,f;if(this.data.events[r]&&i.sizeOf(this.data.events[r])){if(e=i.events.getInterface(r),e)return f=t.createEvent(e),f.initEvent(r,!0,!0,n,1),this.media.dispatchEvent(f),this;i.forEach(this.data.events[r],function(n){n.call(this,u)},this)}return this},listen:function(n,t){var f=this,u=!0,r=i.events.hooks[n],o=n,e;return this.data.events[n]||(this.data.events[n]={},u=!1),r&&(r.add&&r.add.call(this,{},t),r.bind&&(n=r.bind),r.handler&&(e=t,t=function(n){r.handler.call(f,n,e)}),u=!0,this.data.events[n]||(this.data.events[n]={},u=!1)),this.data.events[n][t.name||t.toString()+i.guid()]=t,!u&&i.events.all.indexOf(n)>-1&&this.media.addEventListener(n,function(t){i.forEach(f.data.events[n],function(n){typeof n=="function"&&n.call(f,t)})},!1),this},unlisten:function(n,t){return this.data.events[n]&&this.data.events[n][t]?(delete this.data.events[n][t],this):(this.data.events[n]=null,this)}},hooks:{canplayall:{bind:"canplaythrough",add:function(n,t){var i=!1;this.media.readyState&&(t.call(this,n),i=!0),this.data.hooks.canplayall={fired:i}},handler:function(n,t){this.data.hooks.canplayall.fired||(t.call(this,n),this.data.hooks.canplayall.fired=!0)}}}},i.forEach(["trigger","listen","unlisten"],function(n){i.p[n]=i.events.fn[n]}),i.addTrackEvent=function(n,t){t&&t._natives&&t._natives.type&&n.options.defaults&&n.options.defaults[t._natives.type]&&(t=i.extend({},n.options.defaults[t._natives.type],t)),t._natives&&(t._id=t.id?t.id:i.guid(t._natives.type),n.data.history.push(t._id)),t.start=i.util.toSeconds(t.start,n.options.framerate),t.end=i.util.toSeconds(t.end,n.options.framerate);for(var o=n.data.trackEvents.byStart,e=n.data.trackEvents.byEnd,u,f,r=o.length-1;r>=0;r--)if(t.start>=o[r].start){o.splice(r+1,0,t);break}for(u=e.length-1;u>=0;u--)if(t.end>e[u].end){e.splice(u+1,0,t);break}!t._natives||!i.registryByName[t._natives.type]&&!n[t._natives.type]||(f=n.media.currentTime,t.end>f&&t.start<=f&&n.data.disabled.indexOf(t._natives.type)===-1&&(t._running=!0,t._natives.start.call(n,null,t),n.options.frameAnimation&&t._natives.frame&&(n.data.trackEvents.animating.push(t),t._natives.frame.call(n,null,t,f)))),r<=n.data.trackEvents.startIndex&&t.start<=n.data.trackEvents.previousUpdateTime&&n.data.trackEvents.startIndex++,u<=n.data.trackEvents.endIndex&&t.end<n.data.trackEvents.previousUpdateTime&&n.data.trackEvents.endIndex++,this.timeUpdate(n,null,!0),t._id&&i.addTrackEvent.ref(n,t)},i.addTrackEvent.ref=function(n,t){return n.data.trackRefs[t._id]=t,n},i.removeTrackEvent=function(n,t){var h=n.data.history.length,o=0,f=[],e=[],u=[],s=[],r;for(i.forEach(n.data.trackEvents.byStart,function(i,r){i._id||(f.push(n.data.trackEvents.byStart[r]),e.push(n.data.trackEvents.byEnd[r])),i._id&&(i._id!==t&&(f.push(n.data.trackEvents.byStart[r]),e.push(n.data.trackEvents.byEnd[r])),i._id===t&&(o=r,i._natives._teardown&&i._natives._teardown.call(n,i)))}),n.data.trackEvents.animating.length&&i.forEach(n.data.trackEvents.animating,function(i,r){i._id||u.push(n.data.trackEvents.animating[r]),i._id&&i._id!==t&&u.push(n.data.trackEvents.animating[r])}),o<=n.data.trackEvents.startIndex&&n.data.trackEvents.startIndex--,o<=n.data.trackEvents.endIndex&&n.data.trackEvents.endIndex--,n.data.trackEvents.byStart=f,n.data.trackEvents.byEnd=e,n.data.trackEvents.animating=u,r=0;r<h;r++)n.data.history[r]!==t&&s.push(n.data.history[r]);n.data.history=s,i.removeTrackEvent.ref(n,t)},i.removeTrackEvent.ref=function(n,t){return delete n.data.trackRefs[t],n},i.getTrackEvents=function(n){for(var u=[],r=n.data.trackEvents.byStart,f=r.length,t=0,i;t<f;t++)i=r[t],i._id&&u.push(i);return u},i.getTrackEvents.ref=function(n){return n.data.trackRefs},i.getTrackEvent=function(n,t){return n.data.trackRefs[t]},i.getTrackEvent.ref=function(n,t){return n.data.trackRefs[t]},i.getLastTrackEventId=function(n){return n.data.history[n.data.history.length-1]},i.timeUpdate=function(n,t){var s=n.media.currentTime,b=n.data.trackEvents.previousUpdateTime,r=n.data.trackEvents,l=r.animating,h=r.endIndex,c=r.startIndex,v=0,k=r.byStart.length,d=r.byEnd.length,p=i.registryByName,w="trackstart",y="trackend",f,e,a,u,o;if(b<=s){while(r.byEnd[h]&&r.byEnd[h].end<=s){if(f=r.byEnd[h],u=f._natives,o=u&&u.type,u&&!p[o]&&!n[o]){i.removeTrackEvent(n,f._id);return}f._running===!0&&(f._running=!1,u.end.call(n,t,f),n.trigger(y,i.extend({},f,{plugin:o,type:y}))),h++}while(r.byStart[c]&&r.byStart[c].start<=s){if(e=r.byStart[c],u=e._natives,o=u&&u.type,u&&!p[o]&&!n[o]){i.removeTrackEvent(n,e._id);return}e.end>s&&e._running===!1&&n.data.disabled.indexOf(o)===-1&&(e._running=!0,u.start.call(n,t,e),n.trigger(w,i.extend({},e,{plugin:o,type:w})),n.options.frameAnimation&&e&&e._running&&e._natives.frame&&l.push(e)),c++}if(n.options.frameAnimation)while(v<l.length)a=l[v],a._running?(a._natives.frame.call(n,t,a,s),v++):l.splice(v,1)}else if(b>s){while(r.byStart[c]&&r.byStart[c].start>s){if(e=r.byStart[c],u=e._natives,o=u&&u.type,u&&!p[o]&&!n[o]){i.removeTrackEvent(n,e._id);return}e._running===!0&&(e._running=!1,u.end.call(n,t,e),n.trigger(y,i.extend({},f,{plugin:o,type:y}))),c--}while(r.byEnd[h]&&r.byEnd[h].end>s){if(f=r.byEnd[h],u=f._natives,o=u&&u.type,u&&!p[o]&&!n[o]){i.removeTrackEvent(n,f._id);return}f.start<=s&&f._running===!1&&n.data.disabled.indexOf(o)===-1&&(f._running=!0,u.start.call(n,t,f),n.trigger(w,i.extend({},e,{plugin:o,type:w})),n.options.frameAnimation&&f&&f._running&&f._natives.frame&&l.push(f)),h--}if(n.options.frameAnimation)while(v<l.length)a=l[v],a._running?(a._natives.frame.call(n,t,a,s),v++):l.splice(v,1)}r.endIndex=h,r.startIndex=c,r.previousUpdateTime=s,r.byStart.length<k&&r.startIndex--,r.byEnd.length<d&&r.endIndex--},i.extend(i.p,{getTrackEvents:function(){return i.getTrackEvents.call(null,this)},getTrackEvent:function(n){return i.getTrackEvent.call(null,this,n)},getLastTrackEventId:function(){return i.getLastTrackEventId.call(null,this)},removeTrackEvent:function(n){return i.removeTrackEvent.call(null,this,n),this},removePlugin:function(n){return i.removePlugin.call(null,this,n),this},timeUpdate:function(n){return i.timeUpdate.call(null,this,n),this},destroy:function(){return i.destroy.call(null,this),this}}),i.manifest={},i.registry=[],i.registryByName={},i.plugin=function(n,t,r){var o,f;if(i.protect.natives.indexOf(n.toLowerCase())>=0){i.error("'"+n+"' is a protected function name");return}var c=["start","end"],u={},l,h=typeof t=="function",s=["_setup","_teardown","start","end","frame"],e=function(n,t){return n=n||i.nop,t=t||i.nop,function(){n.apply(this,arguments),t.apply(this,arguments)}};return i.manifest[n]=r=r||t.manifest||{},s.forEach(function(r){t[r]=it(t[r]||i.nop,n)}),o=function(t,u){if(!u)return this;var f=u._natives={},a="",l,v,h,o;return i.extend(f,t),u._natives.type=n,u._running=!1,f.start=f.start||f["in"],f.end=f.end||f.out,f._teardown=e(function(){var n=p.call(arguments);n.unshift(null),n[1]._running&&f.end.apply(this,n)},f._teardown),l=this.options.defaults&&this.options.defaults[u._natives&&u._natives.type],u.compose=u.compose&&u.compose.split(" ")||[],u.effect=u.effect&&u.effect.split(" ")||[],u.compose=u.compose.concat(u.effect),u.compose.forEach(function(n){a=i.compositions[n]||{},s.forEach(function(n){f[n]=e(f[n],a[n])})}),u._natives.manifest=r,"start"in u||(u.start=u["in"]||0),"end"in u||(u.end=u.out||this.duration()||Number.MAX_VALUE),o=l?i.extend({},l,u):u,o.target||(h="options"in r&&r.options,o.target=h&&"target"in h&&h.target),u._natives._setup&&u._natives._setup.call(this,o),i.addTrackEvent(this,i.extend(o,u)),i.forEach(t,function(n,t){t!=="type"&&c.indexOf(t)===-1&&this.listen(t,n)},this),this},u[n]=function(n){return o.call(this,h?t.call(this,n):t,n)},i.extend(i.p,u),f={fn:u[n],definition:t,base:t,parents:[],name:n},i.registry.push(i.extend(u,f,{type:n})),i.registryByName[n]=f,u},i.plugin.errors=[],i.plugin.debug=!1,i.removePlugin=function(n,t){var h,e;if(!t){if(t=n,n=i.p,i.protect.natives.indexOf(t.toLowerCase())>=0){i.error("'"+t+"' is a protected function name");return}for(h=i.registry.length,e=0;e<h;e++)if(i.registry[e].name===t){i.registry.splice(e,1),delete i.registryByName[t],delete i.manifest[t],delete n[t];return}}for(var u=n.data.trackEvents.byStart,s=n.data.trackEvents.byEnd,o=n.data.trackEvents.animating,r=0,f=u.length;r<f;r++)u[r]&&u[r]._natives&&u[r]._natives.type===t&&s[r]&&s[r]._natives&&s[r]._natives.type===t&&(u[r]._natives._teardown&&u[r]._natives._teardown.call(n,u[r]),u.splice(r,1),s.splice(r,1),r--,f--,n.data.trackEvents.startIndex<=r&&(n.data.trackEvents.startIndex--,n.data.trackEvents.endIndex--));for(r=0,f=o.length;r<f;r++)o[r]&&o[r]._natives&&o[r]._natives.type===t&&(o.splice(r,1),r--,f--)},i.compositions={},i.compose=function(n,t,r){i.manifest[n]=r=r||t.manifest||{},i.compositions[n]=t},i.plugin.effect=i.effect=i.compose,i.parsers={},i.parser=function(n,t,r){if(i.protect.natives.indexOf(n.toLowerCase())>=0){i.error("'"+n+"' is a protected function name");return}if(typeof t!="function"||r||(r=t,t=""),typeof r=="function"&&typeof t=="string"){var e=i.events.all,f,u={};return f=function(n,u){if(!n)return this;var f=this;return i.xhr({url:n,dataType:t,success:function(n){var c=r(n),h,s,i,e=0,t;if(h=c.data||[],s=h.length,i=null,s){for(;e<s;e++){i=h[e];for(t in i)o.call(i,t)&&!!f[t]&&f[t](i[t])}u&&u()}}}),this},u[n]=f,i.extend(i.p,u),u}},i.player=function(n,r){r=r||{};var u=function(n,u,f){var h,p;f=f||{};var a=new Date/1e3,w=a,v=0,y=1,l=!1,c={},o=t.getElementById(s.exec(n)&&s.exec(n)[2])||t.getElementById(n)||n,e={},k,b;for(h in o)typeof o[h]=="object"?e[h]=o[h]:typeof o[h]=="function"?e[h]=function(n){return"length"in o[n]&&!o[n].call?o[n]:function(){return o[n].apply(o,arguments)}}(h):i.player.defineProperty(e,h,{get:function(n){return function(){return o[n]}}(h),set:i.nop,configurable:!0});return p=function(){a=new Date/1e3,e.paused||(e.currentTime=e.currentTime+(a-w),e.dispatchEvent("timeupdate"),k=setTimeout(p,10)),w=a},e.play=function(){this.paused=!1,e.readyState>=4&&(w=new Date/1e3,e.dispatchEvent("play"),p())},e.pause=function(){this.paused=!0,e.dispatchEvent("pause")},i.player.defineProperty(e,"currentTime",{get:function(){return v},set:function(n){return v=+n,e.dispatchEvent("timeupdate"),v},configurable:!0}),i.player.defineProperty(e,"volume",{get:function(){return y},set:function(n){return y=+n,e.dispatchEvent("volumechange"),y},configurable:!0}),i.player.defineProperty(e,"muted",{get:function(){return l},set:function(n){return l=!!n,e.dispatchEvent("volumechange"),l},configurable:!0}),i.forEach(["offsetWidth","offsetHeight"],function(n){i.player.defineProperty(e,n,{get:function(){return+o[n]}})}),e.addEventListener=function(n,t){return c[n]||(c[n]=[]),c[n].push(t),t},e.dispatchEvent=function(n){var f,e=this,u,r=n.type;r||(r=n,u=i.events.getInterface(r),u&&(f=t.createEvent(u),f.initEvent(r,!0,!0,window,1))),i.forEach(c[r],function(n){n.call(e,f,e)})},e.src=u||"",e.readyState=0,e.duration=0,e.paused=!0,e.ended=0,r._setup?r._setup.call(e,f):(e.readyState=4,e.dispatchEvent("load"),e.dispatchEvent("loadeddata")),e.addEventListener("load",function(){e.currentTime=v,e.volume=y,e.muted=l}),e.addEventListener("loadeddata",function(){!e.paused&&e.play()}),b=new i.p.init(e,f)};i[n]=i[n]||u},i.player.defineProperty=Object.defineProperty||function(n,t,r){n.__defineGetter__(t,r.get||i.nop),n.__defineSetter__(t,r.set||i.nop)},l=/\?/,v={url:"",data:"",dataType:"",success:i.nop,type:"GET",async:!0,xhr:function(){return new n.XMLHttpRequest}},i.xhr=function(n){if(n.dataType=n.dataType&&n.dataType.toLowerCase()||null,n.dataType&&(n.dataType==="jsonp"||n.dataType==="script")){i.xhr.getJSONP(n.url,n.success,n.dataType==="script");return}var t=i.extend({},v,n);return t.ajax=t.xhr(),t.ajax?(t.type==="GET"&&t.data&&(t.url+=(l.test(t.url)?"&":"?")+t.data,t.data=null),t.ajax.open(t.type,t.url,t.async),t.ajax.send(t.data||null),i.xhr.httpData(t)):void 0},i.xhr.httpData=function(n){var t,r=null,u,i=null;return n.ajax.onreadystatechange=function(){if(n.ajax.readyState===4){try{r=JSON.parse(n.ajax.responseText)}catch(f){}if(t={xml:n.ajax.responseXML,text:n.ajax.responseText,json:r},!t.xml||!t.xml.documentElement){t.xml=null;try{u=new DOMParser,i=u.parseFromString(n.ajax.responseText,"text/xml"),i.getElementsByTagName("parsererror").length||(t.xml=i)}catch(f){}}n.dataType&&(t=t[n.dataType]),n.success.call(n.ajax,t)}},t},i.xhr.getJSONP=function(n,r,u){var h=t.head||t.getElementsByTagName("head")[0]||t.documentElement,s=t.createElement("script"),c=n.split("?")[1],l=!1,o=[],f,e,a;c&&!u&&(o=c.split("&")),o.length&&(e=o[o.length-1].split("=")),f=o.length?e[1]?e[1]:e[0]:"jsonp",c||u||(n+="?callback="+f),f&&!u&&(!window[f]||(f=i.guid(f)),window[f]=function(n){r&&r(n),l=!0},n=n.replace(e.join("="),e[0]+"="+f)),s.onload=function(){u&&r&&r(),l&&delete window[f],h.removeChild(s)},s.src=n,h.insertBefore(s,h.firstChild);return},i.getJSONP=i.xhr.getJSONP,i.getScript=i.xhr.getScript=function(n,t){return i.xhr.getJSONP(n,t,!0)},i.util={toSeconds:function(n,t){var c=/^([0-9]+:){0,2}[0-9]+([.;][0-9]+)?$/,h="Invalid time format",r,s,o,u,e,f;return typeof n=="number"?n:(typeof n!="string"||c.test(n)||i.error(h),r=n.split(":"),s=r.length-1,o=r[s],o.indexOf(";")>-1&&(e=o.split(";"),f=0,t&&typeof t=="number"&&(f=parseFloat(e[1],10)/t),r[s]=parseInt(e[0],10)+f),u=r[0],{1:parseFloat(u,10),2:parseInt(u,10)*60+parseFloat(r[1],10),3:parseInt(u,10)*3600+parseInt(r[1],10)*60+parseFloat(r[2],10)}[r.length||1])}},f=a(n.navigator.userLanguage||n.navigator.language),i.locale={get:function(){return f},set:function(n){return f=a(n),i.locale.broadcast(),f},broadcast:function(n){var u=i.instances,f=u.length,t=0,r;for(n=n||"locale:changed";t<f;t++)r=u[t],n in r.data.events&&r.trigger(n)}},i.p.cue=i.p.exec,i.protect={natives:nt(i.p).map(function(n){return n.toLowerCase()})},n.Popcorn=i}(window,window.document),function(n,t){"use strict";function r(n){n&&console.log(n.stack||n.stacktrace||n.message||n)}var f=n.document,e={},i,o,u;(typeof console=="undefined"||typeof console.log=="undefined")&&(console={},console.log=function(){}),i=function(r){var u;if(n===this||!(this instanceof i))return u=i.find(r),u||(u=new i(r)),u;this.popcorn=r,this.id=t.guid(),e[this.id]=this},i.find=function(n){var i,t;for(i in e)if(t=e[i],t&&t.popcorn===n)return t},i.plugins={},i.register=function(n,t){i.plugins[n]=t},o=function(n,r){var f,e=this;this.name=n,this.pluginFn=r,this.events={},f=function(n){var i=this,t=new u(i,e,n),o,s,r,f;return t.definition()},t.plugin(n,f),i.register(n,this)},u=function(t,u,e){function l(t){return t&&typeof t=="string"&&(t=n[t]),t&&typeof t=="function"?t:void 0}var a=!1,c=!1,y,w,p,k,b,o=this,v,h,d=i(t),s;this.options=e,this.popcorn=t,this.pluginName=u.name,typeof e.target=="string"?(this.target=f.getElementById(e.target),this.target||delete this.target):e.target instanceof n.HTMLElement&&(this.target=e.target),v=d.id,u.events[v]||(u.events[v]=[]),function(){var t,n;for(h=u.events[v],n=h.length-1;n>=0;n--)if(t=h[n].options,t.start<=e.start||t.start===e.start&&t.end<=e.end)break;h.splice(n+1,0,o)}(),this.onSetup=l(e.onSetup),this.onStart=l(e.onStart),this.onFrame=l(e.onFrame),this.onEnd=l(e.onEnd),this.onTeardown=l(e.onTeardown),this.definition=function(){return s},this.makeContainer=function(n,t){var e,i,r,u=null;if(t===undefined&&(t=!0),n||(n="div"),this.container=f.createElement(n),this.addClass(this.container,"popcorn-"+this.pluginName),t&&this.target){if(h){for(i=h.length-1;i>=0;i--)if(r=h[i].options,r.start<this.options.start||r.start===this.options.start&&r.end<this.options.end)break;i++,h[i]===this&&i++,i<h.length&&(u=h[i].container||null)}this.target.insertBefore(this.container,u)}return this.container},s=u.pluginFn.call(t,e,this),s||(s={}),y=s._setup,s._setup=typeof y=="function"?function(n){if(y.call(o,n),typeof o.onSetup=="function")try{o.onSetup.call(o,n)}catch(t){r(t)}}:function(n){if(typeof o.onSetup=="function")try{o.onSetup(n)}catch(t){r(t)}},w=s.start,s.start=typeof w=="function"?function(n,t){if(a=!0,c=!0,w.call(o,n,t),typeof o.onStart=="function")try{o.onStart.call(o,t)}catch(i){r(i)}}:function(n,t){if(a=!0,c=!0,typeof o.onStart=="function")try{o.onStart(t)}catch(i){r(i)}},p=s.frame,s.frame=typeof p=="function"?function(n,t,i){if(c&&(p.call(o,n,t,i),typeof o.onFrame=="function"))try{o.onFrame.call(o,t,i)}catch(u){r(u)}}:function(n,t){if(c&&typeof o.onFrame=="function")try{o.onFrame(t)}catch(u){r(u)}},k=s.end,s.end=typeof k=="function"?function(n,t){if(c){if(typeof o.onEnd=="function")try{o.onEnd.call(o,t)}catch(i){r(i)}k.call(o,n,t),c=!1}a=!1}:function(n,t){if(c&&typeof o.onEnd=="function")try{o.onEnd(t)}catch(i){r(i)}c=!1,a=!1},b=s._teardown,s._teardown=typeof b=="function"?function(n){var t;if(typeof o.onTeardown=="function")try{o.onTeardown.call(o,n)}catch(i){r(i)}b.call(o,n),o.container&&o.container.parentNode&&(t=o.container.parentNode,t.removeChild(o.container),delete o.container)}:function(n){var t;if(typeof o.onTeardown=="function")try{o.onTeardown(n)}catch(i){r(i)}o.container&&o.container.parentNode&&(t=o.container.parentNode,t.removeChild(o.container),delete o.container)}},u.prototype.toArray=function(n,t){var i;if(n===undefined)return[];if(Object.prototype.toString.call(n)==="[object Array]")return n;try{i=JSON.parse(n),Object.prototype.toString.call(i)!=="[object Array]"&&(i=[i])}catch(u){i=n}if(t&&typeof i=="string")try{i=i.split(t)}catch(r){}return i!==undefined&&i!==null&&Object.prototype.toString.call(i)!=="[object Array]"?[i]:i},u.prototype.toObject=function(n){if(typeof n=="object")return n;try{return JSON.parse(n)}catch(t){return n}},typeof f=="undefined"||f.createElement("a").classList?(u.prototype.addClass=function(n,t){var r,i;if(n&&n.classList)for(r=this.toArray(t,/[\s\t\r\n ]+/),i=0;i<r.length;i++)try{n.classList.add(r[i])}catch(u){}},u.prototype.removeClass=function(n,t){var r,i;if(n&&n.classList)for(r=this.toArray(t,/[\s\t\r\n ]+/),i=0;i<r.length;i++)try{n.classList.remove(r[i])}catch(u){}}):(u.prototype.addClass=function(n,t){var i,r;if(t&&n&&n.getAttribute){for(t=this.toArray(t,/[\s\t\r\n ]+/),i=n.getAttribute("class")||"",i=i.split(/[\s\t\r\n ]+/),r=0;r<t.length;r++)i.indexOf(t[r])<0&&i.push(t[r]);n.setAttribute("class",i.join(" "))}},u.prototype.removeClass=function(n,t){var i,r,u;if(t&&n&&n.getAttribute){for(t=this.toArray(t,/[\s\t\r\n ]+/),i=n.getAttribute("class")||"",i=i.split(/[\s\t\r\n ]+/),r=0;r<t.length;r++)u=i.indexOf(t[r]),u>=0&&i.splice(u,1);n.setAttribute("class",i.join(" "))}}),u.prototype.nop=function(){},t.basePlugin=function(n,t){var i=new o(n,t)},t.getBasePopcorn=i}(window,Popcorn),Popcorn.player("jwplayer",{_setup:function(n){function r(t,i,r){if(typeof r=="function"){if(s){if(i==="onReady"){r.call(this);return}if(typeof t[i]=="function"){t[i](r);return}}n.events||(n.events={}),n.events[i]=n.events[i]&&typeof n.events[i]=="function"?function(n){return function(){r.call(this),n.call(arguments)}}(n.events[i]):r}}var t=this,i,o=document.createElement("div"),u=0,f=0,e=0,h=0,s=!1;n&&!isNaN(n.duration)&&n.duration>0&&(f=n.duration),o.id=t.id+Popcorn.guid(),t.appendChild(o),i=jwplayer(o.id),t.play=function(){i.play(!0)},t.pause=function(){t.paused=!0,t.dispatchEvent("pause"),i.pause(!0)},Popcorn.player.defineProperty(t,"duration",{set:function(){},get:function(){return f||0}}),Popcorn.player.defineProperty(t,"readyState",{set:function(){return e},get:function(){return e||0}}),Popcorn.player.defineProperty(t,"currentTime",{set:function(n){return u=h=+n,i.seek(u),t.dispatchEvent("seeked"),t.dispatchEvent("timeupdate"),u},get:function(){return u}}),Popcorn.player.defineProperty(t,"muted",{set:function(n){return n=!!n,i.getMute()!==n&&(i.setMute(!0),t.dispatchEvent("volumechange")),i.getMute()},get:function(){return i.getMute()}}),Popcorn.player.defineProperty(t,"volume",{set:function(n){return n*=100,i.getVolume()!==n&&(i.setVolume(n),t.dispatchEvent("volumechange")),i.getVolume()/100},get:function(){return i.getVolume()/100}}),r(i,"onReady",function(){s=!0,t.paused&&i.pause(!0),e=0,t.dispatchEvent("loadstart")}),r(i,"onMeta",function(n){var r,u=e,i;i=n.metadata.duration||f||this.getDuration()*60,r=f!==i,e=Math.max(1,u),r&&(f=i,t.dispatchEvent("durationchange")),u<1&&(t.width=n.metadata.width,t.height=n.metadata.height,t.dispatchEvent("loadeddata"))}),r(i,"onPlaylistItem",function(){t.dispatchEvent("loadeddata")}),r(i,"onBufferChange",function(){}),r(i,"onPlay",function(){t.paused=!1,t.dispatchEvent("play"),t.dispatchEvent("playing")}),r(i,"onTime",function(){u=i.getPosition(),t.dispatchEvent("timeupdate")}),r(i,"onComplete",function(){t.dispatchEvent("ended")}),r(i,"onSeek",function(){t.dispatchEvent("seeking"),t.dispatchEvent("timeupdate")}),i.setup(n),t.paused=!(typeof n.autostart=="string"?n.autostart.toBoolean():n.autostart)}}),maxHeight=0,maxWidth=0,function(n){"use strict";var t=!0;n.basePlugin("slideshow",function(n,i){var o,s,h,u,f,r,e;if(i.target&&n.image)return o=this,s=o.media,t||(t=document.createElement("style"),t.setAttribute("type","text/css"),t.appendChild(document.createTextNode(".popcorn-slideshow { display: none; }\n.popcorn-slideshow.active { display: block; }\n")),document.head.appendChild(t)),u=i.makeContainer(),u.style.cssText=n.style||"",r=n.top,(r||r===0)&&(isNaN(r)||(r+="px"),u.style.top=r,u.style.position="absolute"),r=n.left,(r||r===0)&&(isNaN(r)||(r+="px"),u.style.left=r,u.style.position="absolute"),r=n.right,(r||r===0)&&(isNaN(r)||(r+="px"),u.style.right=r,u.style.position="absolute"),r=n.bottom,(r||r===0)&&(isNaN(r)||(r+="px"),u.style.bottom=r,u.style.position="absolute"),n.align&&(u.style.textAlign=n.align),n.classes&&i.addClass(u,n.classes),e="slide_"+jQuery(".popcorn-slideshow").length,f=document.createElement("img"),f.id=e,f.className="slideLoading",u.appendChild(f),maxHeight=n.height-2,maxWidth=n.width-2,f.src=n.image,jQuery("#"+e).imagesLoaded(function(n){scaleSlide(n[0].id,0,0),jQuery("img.slideLoading").removeClass("slideLoading")}),{start:function(){i.addClass(i.container,"active")},end:function(){i.removeClass(i.container,"active")}}})}(Popcorn),function(n){for(var i=["Width","Height"],t;t=i.pop();)(function(t,i){n.fn[t]=t in new Image?function(){return this[0][t]}:function(){var r=this[0],n,t;return r.tagName.toLowerCase()==="img"&&(n=new Image,n.src=r.src,t=n[i]),t}})("natural"+t,t.toLowerCase())}(jQuery),alertClasses={generic:"alert",success:"alert pass",error:"alert fail",misc:"alert misc"},(typeof console=="undefined"||typeof console.log=="undefined")&&(console={log:function(){},error:function(){},debug:function(){},warn:function(){},info:function(){}}),browserType={isOpera:!!(window.opera&&window.opera.version),isFirefox:testCSS("MozBoxSizing"),isSafari:Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,isChrome:!this.isSafari&&testCSS("WebkitTransform"),isIE:/*@cc_on!@*/!1||testCSS("msTransform")},String.prototype.toBoolean=function(){return this.toLowerCase()=="false"?!1:this.toLowerCase()=="true"?!0:undefined},String.prototype.endsWith=function(n){return this.indexOf(n,this.length-n.length)!==-1},String.prototype.unescapeHTML=function(){return this.stripTags().replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},String.prototype.escapeHTML=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},String.prototype.decodeUtf8=function(){return decodeURIComponent(escape(this))},String.prototype.escapeSpecialChars=function(){return this.replace(/[\"]/g,'\\"').replace(/[\\]/g,"\\\\").replace(/[\/]/g,"\\/").replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t")},String.prototype.stripHTMLViaDOM=function(){var n=document.createElement("DIV");return n.innerHTML=this,n.textContent||n.innerText||""},String.prototype.trim=function(){return rtrim(ltrim(this))},String.prototype.truncate=function(n,t){for(typeof n=="undefined"&&(n=100),typeof t=="undefined"&&(t="...");this.substr(n,1).match(new RegExp(/\w/));)n--;return this.substr(0,n).trim()+(n<this.length?t:"")},Array.prototype.getRef=function(n,t){var i;for(i in this)if(this[i][n]===t)return this[i];return!1},Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var i=this.length>>>0,t=Number(arguments[1])||0;for(t=t<0?Math.ceil(t):Math.floor(t),t<0&&(t+=i);t<i;t++)if(t in this&&this[t]===n)return t;return-1}),this.JSON||(this.JSON={}),function(){function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var c,l,h,a,v=n,s,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i)),typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o.replace(",","@%^%@"));case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,s=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,c=0;c<a;c+=1)s[c]=r(c,o)||"null";return h=s.length===0?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+v+"]":"["+s.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,c=0;c<a;c+=1)l=t[c],typeof l=="string"&&(h=r(l,o),h&&s.push(f(l)+(n?": ":":")+h));else for(l in o)Object.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&s.push(f(l)+(n?": ":":")+h));return h=s.length===0?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+v+"}":"{"+s.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return r("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),e.lastIndex=0,e.test(text)&&(text=text.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),UTILS={isProdEnv:function(){return window.location.host.toLowerCase()==="platform.cinchcast.com"||window.location.host.toLowerCase()==="st.platform.cinchcast.com"||window.location.host.toLowerCase()==="zatch.cinchcast.com"?!0:!1},urlencode:function(n){return escape(n).replace(/\+/g,"%2B").replace(/%20/g,"+").replace(/\*/g,"%2A").replace(/\//g,"%2F").replace(/@/g,"%40")},qsencode:function(n){return escape(n).replace(/\?/g,"%3F").replace(/\=/g,"%3D").replace(/&/g,"%26")},deleteCookie:function(n){UTILS.setCookie(n,"",-1)},getDomain:function(){return document.location.href.split(/\/+/g)[1]},getEnvironment:function(){return this.getDomain().indexOf("www")>=0?"www":"dev"},getURLParameters:function(n){for(var r=[],i,u=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),f,t=0;t<u.length;t+=1)i=u[t].split("="),r.push(i[0]),r[i[0]]=i[1];return n?r[n]:r}},function(n,t,i){"use strict";function p(n){var i=null,t;return"VIDEO"===n.tagName?i=n:(t=n.getElementsByTagName("video"),t[0]&&(i=t[0])),i}function l(n){var t=p(n);if(t&&t.webkitEnterFullscreen){try{t.addEventListener("webkitbeginfullscreen",function o(){t.removeEventListener("webkitbeginfullscreen",o,!1),u.onchange(t),y(t)},!1),t.addEventListener("webkitendfullscreen",function f(){t.removeEventListener("webkitendfullscreen",f,!1),u.onchange(),c()},!1),t.readyState<t.HAVE_METADATA?(t.addEventListener("loadedmetadata",function i(){t.removeEventListener("loadedmetadata",i,!1),t.webkitEnterFullscreen(),h=!!t.getAttribute("controls")},!1),t.load()):(t.webkitEnterFullscreen(),h=!!t.getAttribute("controls")),e=t}catch(l){return s("not_supported",n)}return!0}return s(void 0===r.request?"not_supported":"not_enabled",n)}function v(){u.element||(c(),a())}function w(){i&&"webkitfullscreenchange"===r.change&&n.addEventListener("resize",v,!1)}function a(){i&&"webkitfullscreenchange"===r.change&&n.removeEventListener("resize",v,!1)}var b="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,r=function(){for(var i,u=[{request:"requestFullscreen",exit:"exitFullscreen",enabled:"fullscreenEnabled",element:"fullscreenElement",change:"fullscreenchange",error:"fullscreenerror"},{request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",change:"webkitfullscreenchange",error:"webkitfullscreenerror"},{request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",element:"webkitCurrentFullScreenElement",change:"webkitfullscreenchange",error:"webkitfullscreenerror"},{request:"mozRequestFullScreen",exit:"mozCancelFullScreen",enabled:"mozFullScreenEnabled",element:"mozFullScreenElement",change:"mozfullscreenchange",error:"mozfullscreenerror"}],n=!1,f=t.createElement("video"),r=0;u.length>r;r++)if(u[r].request in f){n=u[r];for(i in n)"change"===i||"error"===i||n[i]in t||n[i]in f||delete n[i];break}return f=null,n}(),e=null,h=null,o=function(){},f=[],y=function(n){var t=f[f.length-1];(n!==t.element&&n!==e||!t.hasEntered)&&(1===f.length&&u.onenter(u.element),t.enter.call(t.element,n||t.element),t.hasEntered=!0)},c=function(){e&&!h&&(e.setAttribute("controls","controls"),e.removeAttribute("controls")),e=null,h=null;var n=f.pop();n&&(n.exit.call(n.element),u.element||(f.forEach(function(n){n.exit.call(n.element)}),f=[],u.onexit()))},s=function(n,t){if(f.length>0){var i=f.pop();t=t||i.element,i.error.call(t,n),u.onerror(t,n)}},u={request:function(n,u,e,h){if((n=n||t.documentElement,f.push({element:n,enter:u||o,exit:e||o,error:h||o}),void 0===r.request)||i&&t[r.enabled]===!1)return l(n);if(i&&void 0===r.enabled)return r.enabled="webkitFullscreenEnabled",n[r.request](),setTimeout(function(){t[r.element]?t[r.enabled]=!0:(t[r.enabled]=!1,l(n))},250),void 0;try{/5\.1[\.\d]* Safari/.test(navigator.userAgent)?n[r.request]():n[r.request](b&&Element.ALLOW_KEYBOARD_INPUT),setTimeout(function(){t[r.element]||s(i?"not_enabled":"not_allowed",n)},100)}catch(c){s("not_enabled",n)}},exit:function(){a(),t[r.exit]()},toggle:function(n,t,i,r){u.element?u.exit():u.request(n,t,i,r)},videoEnabled:function(n){if(u.enabled)return!0;n=n||t.documentElement;var i=p(n);return i&&void 0!==i.webkitSupportsFullscreen?i.readyState<i.HAVE_METADATA?"maybe":i.webkitSupportsFullscreen:!1},onenter:o,onexit:o,onchange:o,onerror:o};try{Object.defineProperties(u,{element:{enumerable:!0,get:function(){return e&&e.webkitDisplayingFullscreen?e:t[r.element]||null}},enabled:{enumerable:!0,get:function(){return"webkitCancelFullScreen"!==r.exit||i?t[r.enabled]||!1:!0}}})}catch(k){u.element=null,u.enabled=!1}r.change&&t.addEventListener(r.change,function(){if(u.onchange(u.element),u.element){var n=f[f.length-2];n&&n.element===u.element?c():(y(u.element),w())}else c()},!1),r.error&&t.addEventListener(r.error,function(){s("not_allowed")},!1),n.BigScreen=u}(window,document,self!==top);var popcorn,events=[],allEvents=[],CP={config:{abouttext:"",audioonlyheight:44,autostart:!1,base:null,bufferlength:5,callback:"",contentReady:!0,controlbar:"bottom",displaymode:"standard",dock:!1,dockHide:!1,events:{onPause:function(){$("#slide-overlay").show()},onPlay:function(){$("#slide-overlay").hide(),CP.config.live&&$("#slide-container").attr("onclick","return false;")},onPlaylistItem:function(){CP.removeAllSlides();var t=this[0].index;CP.config.slides.length>0&&CP.initializeSlides(CP.config.slides[t])},onReady:function(){CP.config.live&&CP.isIos()&&(CP.config["BTRplugin.media"]!=="audio"&&(CP.hideControlbarButton("playButton"),CP.hideControlbarButton("pauseButton")),jQuery("#"+jwplayer().id+"_jwplayer_controlbar_timeSlider > div").hide(),jQuery("#"+jwplayer().id+"_jwplayer_controlbar_durationText").hide())},onComplete:function(){jwplayer().getCurrentItem()==jwplayer().getPlaylist().length-1&&(popcorn.play(),popcorn.pause())}},framed:!1,fullscreen:!1,fullscreenSlides:!1,gaTrackingCode:"",height:0,registrationId:"",icons:!0,live:!1,logo:{},"logo.position":"none","BTRplugin.media":"multi","BTRplugin.size":12.5,"BTRplugin.position":"top",messagingKey:"",modes:[{type:"flash",config:{},src:appcfg.swarmFolder+"/content/swf/jwplayer-5.9.2156.swf"},{type:"html5",config:{}},{download:"download"}],playlistfile:null,"playlist.position":jwplayer.utils.hasFlash()?"none":"over",plugins:JSON.parse('{  "'+appcfg.swarmFolder+'/content/plugins/BTRplugin.swf" : { }, "'+appcfg.swarmFolder+'/bundles/btrplugin" : { },  "'+appcfg.swarmFolder+'/content/plugins/ova-jw.swf" : {"allowPlaylistControl": true,"useV2APICalls": true,"ads": {"filterOnLinearAdMimeTypes": false,"acceptedLinearAdMimeTypes": ["video/x-flv","video/x-mp4","application/x-shockwave-flash", "audio/mpeg"],"companions": {"restore": false,"regions": [{ "id":"REPLACE_COMPANION_ID", "width": 300, "height": 200, "index": 0 }]},"schedule": [{ "position": "pre-roll", "tag" : "REPLACE_AD_TAG" }]},"player": {"modes": {"linear": {"controls": { "enable": false }}}},"debug": { "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api" }}  }'),playbackposition:-1,primary:"flash",provider:"sound",pseudoFullscreenOption:!1,repeat:"list",repFrame:"about:blank",sharing:{},skin:"/content/clients/generic/skin/generic.zip",slides:[],slidesDelay:0,slidesHeight:0,volume:80,width:0},embedvars:{autostart:!1,cid:!1,client:"",color:"dark",containerID:!1,includePrivate:!1,itemcount:!1,playlistId:!1,live:!1,eventId:"",usid:"",media:"multi","playlist.position":"over","playlist.size":275,sameDomain:!1,ShowTitleAndInfo:null,size:"large",user:"",width:0},getSlideDimensions:function(){return{height:CP.config.fullscreen?jQuery("#main-slide").height():CP.config.slidesHeight,width:CP.config.fullscreen?jQuery("#main-slide").width():CP.config.width}},fullscreenPseudoInit:function(){CP.config.fullscreen=!0;var n=location.href;setInterval(function(){location.href=n+"#playbackposition="+jwplayer().getPosition()+"&state="+jwplayer().getState()},1e3),UTILS.getURLParameters("playbackstate")=="PLAYING"?popcorn.play(CP.config.playbackposition):popcorn.pause(CP.config.playbackposition),$(document).keydown(function(n){n.which==27&&CP.fullscreen()})},fullscreen:function(){var t=BigScreen.enabled&&!UTILS.getURLParameters("DisableBigScreen"),i=function(){var n,u,i,r;t?$("#media-wrapper").css({height:"100%",width:"100%"}):CP.config.framed||CP.config.pseudoFullscreenOption?(u=jwplayer().getPosition(),i=window.open(location.href+"&pseudofullscreen=true&playbackstate="+jwplayer().getState()+"&playbackposition="+u,"_blank","fullscreen=1"),popcorn.pause(),r=setInterval(function(){i.closed?(clearInterval(r),CP.config.fullscreen=!1,popcorn.play(UTILS.getDelimitedParameterFromString(n.substring(n.indexOf("#")+1),"&","playbackposition")),UTILS.getDelimitedParameterFromString(n.substring(n.indexOf("#")+1),"&","state")!="PLAYING"&&popcorn.pause()):n=i.location.href},1e3)):($("#player-wrapper").css({zindex:1001}),$("#media-wrapper").css({height:"100%",width:"100%",zindex:1e3,position:"absolute",top:0,left:0}),$("body").addClass("fullscreenScrollbarHide")),CP.config.fullscreen=!0,CP.resize()},n=function(){t?$("#media-wrapper").css({height:CP.config.slidesHeight,width:CP.config.width}):CP.config.framed||CP.config.pseudoFullscreenOption?window.close():($("#media-wrapper").css({height:CP.config.slidesHeight,width:CP.config.width,zindex:0,position:"relative"}),$("#player-wrapper").css({zindex:0}),$("body").removeClass("fullscreenScrollbarHide")),CP.config.fullscreen=!1,CP.resize()},r=function(n,t){console.log("Element: "+n+", Reason: "+t)};return t?BigScreen.toggle(document.getElementById("media-wrapper"),i,n,r):($(document).keydown(function(t){t.which==27&&n()}),CP.config.fullscreen?n():i()),CP.config.fullscreen},play:function(){$("#slide-overlay").hide(),jwplayer().play()},isIos:function(){return navigator.userAgent.indexOf("iPad")>-1||navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1},hideControlbarButton:function(n){jQuery("#"+jwplayer().id+"_jwplayer_controlbar_"+n).css("width","0px")},mergePlayerEventCallbacks:function(source,destination){for(sourcePropertyName in source)source.hasOwnProperty(sourcePropertyName)&&(destination[sourcePropertyName]=typeof destination[sourcePropertyName]=="function"?_.compose(destination[sourcePropertyName],eval(source[sourcePropertyName])):eval(source[sourcePropertyName]))},configure:function(n){var t,r,i=UTILS.getURLParameters(),u=this.config.plugins[appcfg.swarmFolder+"/content/plugins/ova-jw.swf"];n.adTagUrl?(u.ads.schedule[0].tag=n.adTagUrl,n.adCompanionId&&(u.ads.companions.regions[0].id=n.adCompanionId,u.ads.companions.regions[0].height=n.adCompanionHeight,u.ads.companions.regions[0].width=n.adCompanionWidth)):delete this.config.plugins[appcfg.swarmFolder+"/content/plugins/ova-jw.swf"],CP.config.live&&(i.autostart=!0);for(t in i)if(i.hasOwnProperty(t)){if(t==="media"){this.config["BTRplugin.media"]=i[t];continue}if(t===""||t===null)continue;t==="width"||t==="height"?this.config[t]=parseInt(i[t],10):t.toString().toLowerCase()==="includeprivate"?this.embedvars.includePrivate=i[t].toString().toLowerCase()=="true":t==="playlist"?this.config["playlist.position"]=i[t]:(typeof this.config[t]!="undefined"&&(this.config[t]=i[t]),typeof this.embedvars[t]!="undefined"&&(this.embedvars[t]=i[t]))}if(exists(n))for(t in n)if(n.hasOwnProperty(t)){if(t==="media"){this.config["BTRplugin.media"]=n[t];continue}else if(t==="sharenetworks"){this.config["BTRplugin.sharenetworks"]=n[t];continue}else if(t==="linkbackurl"){this.config["BTRplugin.linkbackurl"]=n[t];continue}if(typeof n[t]!="object"||n[t].length)typeof this.config[t]!="undefined"&&(this.config[t]=n[t]),typeof this.embedvars[t]!="undefined"&&(this.embedvars[t]=n[t]);else if(t==="events")this.mergePlayerEventCallbacks(n[t],this.config[t]);else for(r in n[t])n[t].hasOwnProperty(r)&&(typeof this.config[t][r]!="undefined",typeof this.embedvars[t]!="undefined"&&typeof this.embedvars[t][r]!="undefined"&&(this.embedvars[t][r]=n[t][r]))}n.sameDomain&&delete this.config.plugins["gapro-2"],navigator.userAgent.indexOf("iPad")<0&&navigator.userAgent.indexOf("iPhone")<0&&navigator.userAgent.indexOf("iPod")<0},embed:function(n){var r,i,t,u;typeof n=="undefined"&&(n={}),n.width||this.config.framed!=="true"||(typeof window.innerWidth!="undefined"?(r=window.innerWidth,i=window.innerHeight):typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!==0&&(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight),n.width=r,n.height=i),this.configure(n),this.embedvars.media==="audio"&&this.config["playlist.position"]==="bottom"&&(this.config.icons=!1,this.config.screencolor="FFFFFF",this.config.controlbar="top"),t=Math.max(document.documentElement.clientHeight,window.innerHeight||0),t<=this.config.audioonlyheight&&t>0&&(this.config.dockHide=!0,this.config.displaymode=null),UTILS.getURLParameters("autostart")!=undefined&&UTILS.getURLParameters("autostart")&&(this.config.autostart=UTILS.getURLParameters("autostart")),this.config["BTRplugin.media"]=="audio"&&$("#slide-overlay").hide(),this.config.fullscreenSlides=!(browserType.isIE&&new RegExp("MSIE [6-9].","g").exec(navigator.userAgent)&&this.config.framed&&this.config.live),this.config.height==0&&(this.config.height=window.innerHeight!=undefined?window.innerHeight:$(window).height()),jwplayer.utils.hasFlash()||(this.config.height-=25),this.config.slidesHeight=0,this.config.displaymode=="slides"&&this.config["BTRplugin.media"]!="audio"&&(u=$("#media-wrapper").height()>0?$("#media-wrapper").height():$(window).height(),this.config.slidesHeight=u-this.config.audioonlyheight,$("#main-slide").css({height:this.config.slidesHeight-2,width:$("#media-wrapper").width()-2}),$("#slide-overlay").css({height:this.config.slidesHeight-2,width:$("#media-wrapper").width()-2}),this.config.height=this.config.audioonlyheight,$("#slide-container").show()),this.config.width==0&&(this.config.width=$("#media-wrapper").width()),jwplayer.utils.isMobile=function(){return!1},this.registerTrackingEvents(this.config),popcorn=Popcorn.jwplayer("#mediaplayer","",this.config),this.config.displaymode=="slides"&&popcorn.listen("durationchange",function(){var n;events.length&&(n=events[events.length-1],n.end===undefined&&(n.end=popcorn.duration(),n.height=this.config.slidesHeight,n.width=this.config.width,popcorn.slideshow(n)))})},registerTrackingEvents:function(n){function t(n,t){ga("send",{hitType:"event",eventCategory:"player",eventAction:n,eventLabel:t})}var i={onPlay:function(){t("PLAY")},onPause:function(){t("PAUSE")},onComplete:function(){t("COMPLETE")},onIdle:function(){t("IDLE")},onError:function(){t("ERROR")},onSeek:function(n,i){t("SEEK",i)}};this.mergePlayerEventCallbacks(i,n.events)},update:function(n){var t=CP.embedvars,i=CP.config,r;if(typeof n=="undefined"&&(n={}),n.client&&(t.client=n.client),n.user&&(t.user=n.user),n.size&&(t.size=n.size),n.itemcount&&(t.itemcount=n.itemcount),n.playlistId&&(t.playlistId=i.playlistId=n.playlistId),n.media&&(t.media=n.media),n["playlist.position"]&&(t["playlist.position"]=n["playlist.position"]),n.playlist&&typeof n.playlist=="object"){for(r in n.playlist)n["playlist."+r]=n.playlist[r];delete n.playlist}if(n.containerID&&n.containerID>0?(t.containerID=n.containerID,n["playlist.position"]="none",t.playlistId=t.live=t.itemcount=!1):n.live&&n.live=="true"?(t.live=!0,n["playlist.position"]="none",t.playlistId=t.containerID=t.itemcount=!1):typeof n.itemcount!="undefined"&&n.itemcount>0?(t.itemcount=n.itemcount,i["playlist.position"]=t["playlist.position"]=t.media!=="audio"?"right":"bottom",t.playlistId=t.live=t.containerID=!1):typeof n.playlistId!="undefined"&&n.playlistId&&(t.playlistId=n.playlistId,i["playlist.position"]=t["playlist.position"]==="undefined"?t.media!=="audio"?"right":"bottom":t["playlist.position"],t.live=t.containerID=t.itemcount=!1),t.media==="audio"){if(n.height=t.playlistId?this.config.audioonlyheight-1:this.config.audioonlyheight,t.itemcount||t.playlistId)switch(t["playlist.position"]){case"none":case"right":case"left":t["playlist.position"]="bottom",n.height=(t.playlistId?this.config.audioonlyheight-1:this.config.audioonlyheight)+parseInt(i["playlist.size"],10);break;default:n.height=(t.playlistId?this.config.audioonlyheight-1:this.config.audioonlyheight)+parseInt(i["playlist.size"],10)}}else{switch(t.size.toLowerCase()){case"small":n.width=240,n.height=205;break;case"medium":n.width=320,n.height=265;break;case"x-large":n.width=600,n.height=475;break;case"large":n.width=400,n.height=325}if(t.itemcount||t.playlistId){typeof i["playlist.size"]=="undefined"&&(i["playlist.size"]=180);switch(i["playlist.position"]){case"left":case"right":n.width=i.width+parseInt(i["playlist.size"],10);break;case"top":case"bottom":n.height=i.width+parseInt(i["playlist.size"],10)}}}return n.includePrivate&&(t.includePrivate=n.includePrivate),this.configure(n),{embedCode:this.getEmbedCode(),config:i,embedvars:t}},getHTML5Playlist:function(){return{}},getPlaylist:function(){var t=window.location.protocol+"//"+window.location.host;return e=this.embedvars,e.live?t+="/epl/"+(e.user?e.user.toString():UTILS.getURLParameters("user")):e.containerID!=""&&e.containerID?t+="/sps/"+e.containerID:e.itemcount>0?(t+=(e.client?e.client.toString():UTILS.getURLParameters("client"))+"/"+(e.user?e.user.toString():UTILS.getURLParameters("user")),t+="/"+e.itemcount.toString(),t+="?preroll=false&includeprivate="+e.includePrivate.toString()):e.playlistId&&(t+="/spp/"+e.playlistId),jwplayer.utils.hasFlash()||(t+=(t.indexOf("?")>0?"&":"?")+"format=mrss"),e.sameDomain&&(t+=(t.indexOf("?")>0?"&":"?")+"localEmbed=true"),t},getObjectHtmlEmbedFlashVars:function(n,t){var e=!1,f=UTILS.getDomain().toString(),o="ccplayer1",i=[],r=CP.config,u;return typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0),u=CP.getPlaylist(),u=u.replace("localEmbed=true","localEmbed=false"),i.push(UTILS.qsencode(u)),i.push("&autostart="+r.autostart.toString()),i.push("&bufferlength="+r.bufferlength.toString()),i.push("&controlbar.position="+r.controlbar),i.push("&id="+o),r.logo.file&&i.push("&logo="+r.logo.file),r.screencolor&&i.push("&screencolor="+r.screencolor),t&&i.push("&skin="+UTILS.urlencode(r.skin.startsWith("http:")?r.skin:window.location.protocol+"//"+f+r.skin)),i.push("&dock="+r.dock),i.push("&provider="+r.provider),(CP.embedvars.itemcount>0||CP.embedvars.playlistId)&&(i.push("&playlist.position="+r["playlist.position"]),i.push("&playlist.size="+parseInt(r["playlist.size"],10))),CP.embedvars.media!=="multi"&&i.push("&media="+CP.embedvars.media),this.embedvars.size!=="large"&&i.push("&size="+CP.embedvars.size),n&&(i.push("&plugins="),r.plugins[appcfg.swarmFolder+"/content/swf/BTRplugin.swf"]&&!this.config.live&&e&&i.push(window.location.protocol+"//"+f+appcfg.swarmFolder+"/content/swf/BTRplugin.swf,"),i.push("gapro-1,timeslidertooltipplugin-1"),r.plugins["/content/swf/Cinchcast.swf"]&&i.push(","+window.location.protocol+"//"+f+"/content/swf/Cinchcast.swf"),i.push("&timeslidertooltipplugin.pluginmode=FLASH"),i.push("&gapro.trackstarts=true&gapro.trackpercentage=true&gapro.tracktime=true"),r.plugins[appcfg.swarmFolder+"/content/swf/BTRplugin.swf"]&&!this.config.live&&e&&i.push("&BTRplugin.pluginmode=FLASH"),this.config.plugins["/content/swf/Cinchcast.swf"]&&(i.push("&Cinchcast.pluginmode=FLASH"),i.push("&Cinchcast.logo="),i.push(window.location.protocol+"//"+f+(r.width<400?r.plugins["/content/swf/Cinchcast.swf"].icon:r.plugins["/content/swf/Cinchcast.swf"].logo)),i.push("&Cinchcast.link="+r.plugins["/content/swf/Cinchcast.swf"].link))),"playlistfile="+i.join("")},getObjectHtmlEmbedCode:function(){var i=UTILS.getDomain().toString(),t="ccplayer1",r=CP.getObjectHtmlEmbedFlashVars(),n=[];return n.push("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"),n.push(CP.config.width.toString()),n.push("' height='"),n.push(CP.config.height.toString()),n.push("' id='"+t+"' name='"+t),n.push("'  data='"+window.location.protocol+"//"),n.push(i),n.push("/content/swf/jwplayer-5.9.2156.swf'>"),n.push("<param name='flashvars' value='"),n.push(r),n.push("' />"),n.push("<param name='wmode' value='transparent' />"),n.push("<param name='allowScriptAccess' value='always' />"),n.push("<param name='allowfullscreen' value='true'/>"),n.push("<embed src='"+window.location.protocol+"//"+i),n.push("/content/swf/jwplayer-5.9.2156.swf' flashvars='"),n.push(r),n.push("' width='"+CP.config.width.toString()),n.push("' height='"+CP.config.height.toString()),n.push("' wmode='transparent' name='"+t+"' id='"+t+"' allowScriptAccess='always'></embed></object>"),n.join("")},selectedItemID:function(){return CP.embedvars.containerID>0?parseInt(CP.embedvars.containerID,10):0},getEmbedCode:function(n){var i="<iframe ",t=this.embedvars,r=this.config;return i+='width="'+r.width+'" height="'+r.height+'" ',i+='src="',i+=window.location.protocol+"//"+UTILS.getDomain(),t.live&&(i+="/eel/"+t.user),t.live?i+="/?framed=true&showTitleAndInfo="+(t.ShowTitleAndInfo===null?"false":t.ShowTitleAndInfo.toString()):t.containerID?i+="/sps/"+t.containerID+"?framed=true&showTitleAndInfo="+(t.ShowTitleAndInfo===null?"false":t.ShowTitleAndInfo.toString()):t.itemcount?(i+="/embed/"+t.client+"/"+t.user+"/"+t.itemcount.toString()+"?framed=true&ShowTitleAndInfo="+(t.ShowTitleAndInfo===null?"false":t.ShowTitleAndInfo.toString())+(t.media!=="multi"?"&media="+t.media:"")+(t.size!=="large"?"&size="+t.size:"")+(t.size==="custom"?"&width="+t.width.toString()+"&height="+t.height.toString():"")+(r.autostart===!0||r.autostart==="true"?"&autostart=true":"")+"&includeprivate="+t.includePrivate.toString(),r["playlist.position"]!=="over"&&(i+="&playlist="+r["playlist.position"])):t.playlistId&&(i+="/spp/"+t.playlistId+"?framed=true&ShowTitleAndInfo="+(t.ShowTitleAndInfo===null?"false":t.ShowTitleAndInfo.toString()),n&&(i+="&position="+r["playlist.position"])),n&&(i+="&media="+t.media,i+="&autostart="+r.autostart,i+="&size="+t.size,i+="&height="+t.height,i+="&width="+t.width),i+='" id="'+(t.live?"mediaplayer":t.containerID?"singleplayer":"playlistplayer")+'" frameborder="0"',i+="></iframe>"},resize:function(n,t){n==null&&t==null&&(n=jQuery("#media-wrapper").height()-CP.config.audioonlyheight,t=jQuery("#media-wrapper").width()),CP.config.displaymode=="slides"&&(jQuery("#main-slide").height(n),jQuery("#main-slide").width(t),jQuery("#slide-overlay").height(n),jQuery("#slide-overlay").width(t),scaleSlides(jQuery(".popcorn-slideshow > img"),t,n)),jwplayer().resize(t,CP.config.audioonlyheight)},removeAllSlides:function(){var n,t;for($(".popcorn-slideshow").remove(),events=[],allEvents=[],Popcorn.getBasePopcorn.plugins.slideshow.events=[],popcorn.data.trackEvents={byStart:[{start:-1,end:-1}],byEnd:[{start:-1,end:-1}],animating:[],startIndex:0,endIndex:0,previousUpdateTime:-1},n=0;n<CP.config.slides.length;n++)for(t=0;t<CP.config.slides[n].length;t++)CP.config.slides[n][t].compose=null,CP.config.slides[n][t].effect=null},showSlide:function(n){var t=allEvents.indexOf(n);this.addClass(n.thumbContainer,"active"),n.thumbContainer.scrollIntoView()},hideSlide:function(n){this.removeClass(n.thumbContainer,"active")},setupSlide:function(n){var t,i;n.start=Popcorn.util.toSeconds(n.start,25),n.end=Popcorn.util.toSeconds(n.end,25),allEvents.push(n),allEvents.sort(function(n,t){var i;return(i=n.start-t.start,i)?i:n.end-t.end}),n.thumbContainer||(i=events.filter(function(t){t.start>n.start}),i.sort(function(n,t){return n.start-t.start}),n.thumbContainer=document.createElement("div"),t=document.createElement("img"),t.src=n.thumb||n.image,n.thumbContainer.appendChild(t),t.addEventListener("click",function(){popcorn.currentTime(n.start),popcorn.play()},!1))},teardownSlide:function(n){var i;this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),delete this.container,i=allEvents.indexOf(n),allEvents.splice(i,1)},onSocketReceivedSlide:function(n){setTimeout(function(){jQuery(".popcorn-slideshow").removeClass("active"),n.start=0,n.end=999999,CP.initializeSlides(new Array(n))},CP.config.slidesDelay)},initializeSlides:function(n){var u,r,t,i;try{events=n}catch(f){return}for(events.sort(function(n,t){return n.start-t.start}),t=events[0],t.target="main-slide",t.onActive=CP.resize,i=CP.getSlideDimensions(),t.height=i.height,t.width=i.width,t.onSetup=this.setupSlide,t.onStart=this.showSlide,t.onEnd=this.hideSlide,t.onTearDown=this.teardownSlide,u=1;u<events.length;u++)r=events[u],r.target="main-slide",r.onSetup=this.setupSlide,r.onStart=this.showSlide,r.onEnd=this.hideSlide,t.end===undefined&&(t.end=r.start),t.height=i.height,t.width=i.width,popcorn.slideshow(t),t=r;t.height=i.height,t.width=i.width,popcorn.slideshow(t)}};onScriptsLoaded()