(function(){function l(t,i,r){var s,f,e,o;if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;if(t._chain&&(t=t._wrapped),i._chain&&(i=i._wrapped),t.isEqual&&n.isFunction(t.isEqual))return t.isEqual(i);if(i.isEqual&&n.isFunction(i.isEqual))return i.isEqual(t);if(s=u.call(t),s!=u.call(i))return!1;switch(s){case"[object String]":return t==""+i;case"[object Number]":return t!=+t?i!=+i:0==t?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("object"!=typeof t||"object"!=typeof i)return!1;for(f=r.length;f--;)if(r[f]==t)return!0;if(r.push(t),f=0,e=!0,"[object Array]"==s){if(f=t.length,e=f==i.length)for(;f--&&(e=f in t==f in i&&l(t[f],i[f],r)););}else{if("constructor"in t!="constructor"in i||t.constructor!=i.constructor)return!1;for(o in t)if(n.has(t,o)&&(f++,!(e=n.has(i,o)&&l(t[o],i[o],r))))break;if(e){for(o in i)if(n.has(i,o)&&!f--)break;e=!f}}return r.pop(),e}var b=this,st=b._,c={},r=Array.prototype,k=Object.prototype,t=r.slice,at=r.unshift,u=k.toString,lt=k.hasOwnProperty,tt=r.forEach,g=r.map,it=r.reduce,ot=r.reduceRight,et=r.filter,ft=r.every,rt=r.some,s=r.indexOf,ut=r.lastIndexOf,k=Array.isArray,ct=Object.keys,a=Function.prototype.bind,n=function(n){return new f(n)},i,p,w,d,o,e,y,f,h,nt;"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports._=n):b._=n,n.VERSION="1.3.3",i=n.each=n.forEach=function(t,i,r){if(t!=null)if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(var u=0,f=t.length;u<f;u++)if(u in t&&i.call(r,t[u],u,t)===c)break}else for(u in t)if(n.has(t,u)&&i.call(r,t[u],u,t)===c)break},n.map=n.collect=function(n,t,r){var u=[];return n==null?u:g&&n.map===g?n.map(t,r):(i(n,function(n,i,f){u[u.length]=t.call(r,n,i,f)}),n.length===+n.length&&(u.length=n.length),u)},n.reduce=n.foldl=n.inject=function(t,r,u,f){var e=arguments.length>2;if(t==null&&(t=[]),it&&t.reduce===it)return f&&(r=n.bind(r,f)),e?t.reduce(r,u):t.reduce(r);if(i(t,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError("Reduce of empty array with no initial value");return u},n.reduceRight=n.foldr=function(t,i,r,u){var e=arguments.length>2,f;return(t==null&&(t=[]),ot&&t.reduceRight===ot)?(u&&(i=n.bind(i,u)),e?t.reduceRight(i,r):t.reduceRight(i)):(f=n.toArray(t).reverse(),u&&!e&&(i=n.bind(i,u)),e?n.reduce(f,i,r,u):n.reduce(f,i))},n.find=n.detect=function(n,t,i){var r;return p(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r},n.filter=n.select=function(n,t,r){var u=[];return n==null?u:et&&n.filter===et?n.filter(t,r):(i(n,function(n,i,f){t.call(r,n,i,f)&&(u[u.length]=n)}),u)},n.reject=function(n,t,r){var u=[];return n==null?u:(i(n,function(n,i,f){t.call(r,n,i,f)||(u[u.length]=n)}),u)},n.every=n.all=function(n,t,r){var u=!0;return n==null?u:ft&&n.every===ft?n.every(t,r):(i(n,function(n,i,f){if(!(u=u&&t.call(r,n,i,f)))return c}),!!u)},p=n.some=n.any=function(t,r,u){r||(r=n.identity);var f=!1;return t==null?f:rt&&t.some===rt?t.some(r,u):(i(t,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return c}),!!f)},n.include=n.contains=function(n,t){var i=!1;return n==null?i:s&&n.indexOf===s?n.indexOf(t)!=-1:i=p(n,function(n){return n===t})},n.invoke=function(i,r){var u=t.call(arguments,2);return n.map(i,function(t){return(n.isFunction(r)?r||t:t[r]).apply(t,u)})},n.pluck=function(t,i){return n.map(t,function(n){return n[i]})},n.max=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0])return Math.max.apply(Math,t);if(!r&&n.isEmpty(t))return-Infinity;var f={computed:-Infinity};return i(t,function(n,t,i){t=r?r.call(u,n,t,i):n,t>=f.computed&&(f={value:n,computed:t})}),f.value},n.min=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0])return Math.min.apply(Math,t);if(!r&&n.isEmpty(t))return Infinity;var f={computed:Infinity};return i(t,function(n,t,i){t=r?r.call(u,n,t,i):n,t<f.computed&&(f={value:n,computed:t})}),f.value},n.shuffle=function(n){var t=[],r;return i(n,function(n,i){r=Math.floor(Math.random()*(i+1)),t[i]=t[r],t[r]=n}),t},n.sortBy=function(t,i,r){var u=n.isFunction(i)?i:function(n){return n[i]};return n.pluck(n.map(t,function(n,t,i){return{value:n,criteria:u.call(r,n,t,i)}}).sort(function(n,t){var r=n.criteria,i=t.criteria;return r===void 0?1:i===void 0?-1:r<i?-1:r>i?1:0}),"value")},n.groupBy=function(t,r){var u={},f=n.isFunction(r)?r:function(n){return n[r]};return i(t,function(n,t){var i=f(n,t);(u[i]||(u[i]=[])).push(n)}),u},n.sortedIndex=function(t,i,r){var u,e,f;for(r||(r=n.identity),u=0,e=t.length;u<e;)f=u+e>>1,r(t[f])<r(i)?u=f+1:e=f;return u},n.toArray=function(i){return i?n.isArray(i)||n.isArguments(i)?t.call(i):i.toArray&&n.isFunction(i.toArray)?i.toArray():n.values(i):[]},n.size=function(t){return n.isArray(t)?t.length:n.keys(t).length},n.first=n.head=n.take=function(n,i,r){return i!=null&&!r?t.call(n,0,i):n[0]},n.initial=function(n,i,r){return t.call(n,0,n.length-(i==null||r?1:i))},n.last=function(n,i,r){return i!=null&&!r?t.call(n,Math.max(n.length-i,0)):n[n.length-1]},n.rest=n.tail=function(n,i,r){return t.call(n,i==null||r?1:i)},n.compact=function(t){return n.filter(t,function(n){return!!n})},n.flatten=function(t,i){return n.reduce(t,function(t,r){return n.isArray(r)?t.concat(i?r:n.flatten(r)):(t[t.length]=r,t)},[])},n.without=function(i){return n.difference(i,t.call(arguments,1))},n.uniq=n.unique=function(t,i,r){var r=r?n.map(t,r):t,u=[];return t.length<3&&(i=!0),n.reduce(r,function(r,f,e){return(i?n.last(r)===f&&r.length:n.include(r,f))||(r.push(f),u.push(t[e])),r},[]),u},n.union=function(){return n.uniq(n.flatten(arguments,!0))},n.intersection=n.intersect=function(i){var r=t.call(arguments,1);return n.filter(n.uniq(i),function(t){return n.every(r,function(i){return n.indexOf(i,t)>=0})})},n.difference=function(i){var r=n.flatten(t.call(arguments,1),!0);return n.filter(i,function(t){return!n.include(r,t)})},n.zip=function(){for(var r=t.call(arguments),f=n.max(n.pluck(r,"length")),u=Array(f),i=0;i<f;i++)u[i]=n.pluck(r,""+i);return u},n.indexOf=function(t,i,r){if(t==null)return-1;var u;if(r)return r=n.sortedIndex(t,i),t[r]===i?r:-1;if(s&&t.indexOf===s)return t.indexOf(i);for(r=0,u=t.length;r<u;r++)if(r in t&&t[r]===i)return r;return-1},n.lastIndexOf=function(n,t){if(n==null)return-1;if(ut&&n.lastIndexOf===ut)return n.lastIndexOf(t);for(var i=n.length;i--;)if(i in n&&n[i]===t)return i;return-1},n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);for(var i=arguments[2]||1,f=Math.max(Math.ceil((t-n)/i),0),u=0,r=Array(f);u<f;)r[u++]=n,n=n+i;return r},w=function(){},n.bind=function(i,r){var f,u;if(i.bind===a&&a)return a.apply(i,t.call(arguments,1));if(!n.isFunction(i))throw new TypeError;return u=t.call(arguments,2),f=function(){if(!(this instanceof f))return i.apply(r,u.concat(t.call(arguments)));w.prototype=i.prototype;var e=new w,n=i.apply(e,u.concat(t.call(arguments)));return Object(n)===n?n:e}},n.bindAll=function(r){var u=t.call(arguments,1);return u.length==0&&(u=n.functions(r)),i(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,i){var r=t.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},i)},n.defer=function(i){return n.delay.apply(n,[i,1].concat(t.call(arguments,1)))},n.throttle=function(t,i){var e,o,f,r,u,h,s=n.debounce(function(){u=r=!1},i);return function(){return e=this,o=arguments,f||(f=setTimeout(function(){f=null,u&&t.apply(e,o),s()},i)),r?u=!0:h=t.apply(e,o),s(),r=!0,h}},n.debounce=function(n,t,i){var r;return function(){var f=this,u=arguments;i&&!r&&n.apply(f,u),clearTimeout(r),r=setTimeout(function(){r=null,i||n.apply(f,u)},t)}},n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments))}},n.wrap=function(n,i){return function(){var r=[n].concat(t.call(arguments,0));return i.apply(this,r)}},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 n<=0?t():function(){if(--n<1)return t.apply(this,arguments)}},n.keys=ct||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var r=[],i;for(i in t)n.has(t,i)&&(r[r.length]=i);return r},n.values=function(t){return n.map(t,n.identity)},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 i(t.call(arguments,1),function(t){for(var i in t)n[i]=t[i]}),n},n.pick=function(r){var u={};return i(n.flatten(t.call(arguments,1)),function(n){n in r&&(u[n]=r[n])}),u},n.defaults=function(n){return i(t.call(arguments,1),function(t){for(var i in t)n[i]==null&&(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},n.isEqual=function(n,t){return l(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=k||function(n){return u.call(n)=="[object Array]"},n.isObject=function(n){return n===Object(n)},n.isArguments=function(n){return u.call(n)=="[object Arguments]"},n.isArguments(arguments)||(n.isArguments=function(t){return!(!t||!n.has(t,"callee"))}),n.isFunction=function(n){return u.call(n)=="[object Function]"},n.isString=function(n){return u.call(n)=="[object String]"},n.isNumber=function(n){return u.call(n)=="[object Number]"},n.isFinite=function(t){return n.isNumber(t)&&isFinite(t)},n.isNaN=function(n){return n!==n},n.isBoolean=function(n){return n===!0||n===!1||u.call(n)=="[object Boolean]"},n.isDate=function(n){return u.call(n)=="[object Date]"},n.isRegExp=function(n){return u.call(n)=="[object RegExp]"},n.isNull=function(n){return n===null},n.isUndefined=function(n){return n===void 0},n.has=function(n,t){return lt.call(n,t)},n.noConflict=function(){return b._=st,this},n.identity=function(n){return n},n.times=function(n,t,i){for(var r=0;r<n;r++)t.call(i,r)},n.escape=function(n){return(""+n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},n.result=function(t,i){if(t==null)return null;var r=t[i];return n.isFunction(r)?r.call(t):r},n.mixin=function(t){i(n.functions(t),function(i){nt(i,n[i]=t[i])})},d=0,n.uniqueId=function(n){var t=d++;return n?n+t:t},n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},o=/.^/,e={"\\":"\\","'":"'",r:"\r",n:"\n",t:"\t",u2028:"\u2028",u2029:"\u2029"};for(y in e)e[e[y]]=y;var ht=/\\|'|\r|\n|\t|\u2028|\u2029/g,vt=/\\(\\|'|r|n|t|u2028|u2029)/g,v=function(n){return n.replace(vt,function(n,t){return e[t]})};n.template=function(t,i,r){r=n.defaults(r||{},n.templateSettings),t="__p+='"+t.replace(ht,function(n){return"\\"+e[n]}).replace(r.escape||o,function(n,t){return"'+\n_.escape("+v(t)+")+\n'"}).replace(r.interpolate||o,function(n,t){return"'+\n("+v(t)+")+\n'"}).replace(r.evaluate||o,function(n,t){return"';\n"+v(t)+"\n;__p+='"})+"';\n",r.variable||(t="with(obj||{}){\n"+t+"}\n");var t="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+t+"return __p;\n",u=new Function(r.variable||"obj","_",t);return i?u(i,n):(i=function(t){return u.call(this,t,n)},i.source="function("+(r.variable||"obj")+"){\n"+t+"}",i)},n.chain=function(t){return n(t).chain()},f=function(n){this._wrapped=n},n.prototype=f.prototype,h=function(t,i){return i?n(t).chain():t},nt=function(i,r){f.prototype[i]=function(){var i=t.call(arguments);return at.call(i,this._wrapped),h(r.apply(n,i),this._chain)}},n.mixin(n),i("pop,push,reverse,shift,sort,splice,unshift".split(","),function(n){var t=r[n];f.prototype[n]=function(){var i=this._wrapped,r;return t.apply(i,arguments),r=i.length,(n=="shift"||n=="splice")&&r===0&&delete i[0],h(i,this._chain)}}),i(["concat","join","slice"],function(n){var t=r[n];f.prototype[n]=function(){return h(t.apply(this._wrapped,arguments),this._chain)}}),f.prototype.chain=function(){return this._chain=!0,this},f.prototype.value=function(){return this._wrapped}}).call(this),function(n,t,i,r){var h=n(r),s="waypoint.reached",o=function(n,i){n.element.trigger(s,i),n.options.triggerOnce&&n.element[t]("destroy")},l=function(n,t){if(!t)return-1;for(var i=t.waypoints.length-1;i>=0&&t.waypoints[i].element[0]!==n[0];)i-=1;return i},f=[],a=function(t){n.extend(this,{element:n(t),oldScroll:0,waypoints:[],didScroll:!1,didResize:!1,doScroll:n.proxy(function(){var t=this.element.scrollTop(),u=t>this.oldScroll,e=this,r=n.grep(this.waypoints,function(n){return u?n.offset>e.oldScroll&&n.offset<=t:n.offset<=e.oldScroll&&n.offset>t}),f=r.length;(this.oldScroll&&t||n[i]("refresh"),this.oldScroll=t,f)&&(u||r.reverse(),n.each(r,function(n,t){(t.options.continuous||n===f-1)&&o(t,[u?"down":"up"])}))},this)}),n(t).bind("scroll.waypoints",n.proxy(function(){this.didScroll||(this.didScroll=!0,r.setTimeout(n.proxy(function(){this.doScroll(),this.didScroll=!1},this),n[i].settings.scrollThrottle))},this)).bind("resize.waypoints",n.proxy(function(){this.didResize||(this.didResize=!0,r.setTimeout(n.proxy(function(){n[i]("refresh"),this.didResize=!1},this),n[i].settings.resizeThrottle))},this)),h.load(n.proxy(function(){this.doScroll()},this))},v=function(t){var i=null;return n.each(f,function(n,r){if(r.element[0]===t)return i=r,!1}),i},e={init:function(r,u){return this.each(function(){var o=n.fn[t].defaults.context,e,c=n(this);u&&u.context&&(o=u.context),n.isWindow(o)||(o=c.closest(o)[0]),e=v(o),e||(e=new a(o),f.push(e));var y=l(c,e),p=y<0?n.fn[t].defaults:e.waypoints[y].options,h=n.extend({},p,u);h.offset=h.offset==="bottom-in-view"?function(){var t=n.isWindow(o)?n[i]("viewportHeight"):n(o).height();return t-n(this).outerHeight()}:h.offset,y<0?e.waypoints.push({element:c,offset:null,options:h}):e.waypoints[y].options=h,r&&c.bind(s,r),u&&u.handler&&c.bind(s,u.handler)}),n[i]("refresh"),this},remove:function(){return this.each(function(t,i){var r=n(i);n.each(f,function(n,t){var i=l(r,t);i>=0&&(t.waypoints.splice(i,1),t.waypoints.length||(t.element.unbind("scroll.waypoints resize.waypoints"),f.splice(n,1)))})})},destroy:function(){return this.unbind(s)[t]("remove")}},c={refresh:function(){n.each(f,function(t,r){var u=n.isWindow(r.element[0]),e=u?0:r.element.offset().top,s=u?n[i]("viewportHeight"):r.element.height(),f=u?0:r.element.scrollTop();n.each(r.waypoints,function(n,t){var u,i,h;t&&((u=t.options.offset,i=t.offset,typeof t.options.offset=="function"?u=t.options.offset.apply(t.element):typeof t.options.offset=="string"&&(h=parseFloat(t.options.offset),u=t.options.offset.indexOf("%")?Math.ceil(s*(h/100)):h),t.offset=t.element.offset().top-e+f-u,t.options.onlyOnScroll)||(i!==null&&r.oldScroll>i&&r.oldScroll<=t.offset?o(t,["up"]):i!==null&&r.oldScroll<i&&r.oldScroll>=t.offset?o(t,["down"]):!i&&f>t.offset&&o(t,["down"])))}),r.waypoints.sort(function(n,t){return n.offset-t.offset})})},viewportHeight:function(){return r.innerHeight?r.innerHeight:h.height()},aggregate:function(){var t=n();return n.each(f,function(i,r){n.each(r.waypoints,function(n,i){t=t.add(i.element)})}),t}};n.fn[t]=function(i){if(e[i])return e[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="function"&&i){if(typeof i=="object")return e.init.apply(this,[null,i]);n.error("Method "+i+" does not exist on jQuery "+t)}else return e.init.apply(this,arguments)},n.fn[t].defaults={continuous:!0,offset:0,triggerOnce:!1,context:r},n[i]=function(n){return c[n]?c[n].apply(this):c.aggregate()},n[i].settings={resizeThrottle:200,scrollThrottle:100},h.load(function(){n[i]("refresh")})}(jQuery,"waypoint","waypoints",window),function(n,t){"use strict";function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function f(t,i,r){var u=n(t).data("cycle.opts"),f=!!t.cyclePause;f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r)}function l(r,e,o){function c(t,r,f){if(!t&&r===!0){var e=n(f).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;f.cycleTimeout&&(clearTimeout(f.cycleTimeout),f.cycleTimeout=0),u(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop===t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&a(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),f(r),!1;case"pause":return r.cyclePause=1,f(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),f(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),u(e.elements,e,1,h>=e.currSlide),!1):e}function h(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function a(t,i){i.next&&n(i.next).unbind(i.prevNextEvent),i.prev&&n(i.prev).unbind(i.prevNextEvent),(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()}),i.pagerAnchors=null,n(t).unbind("mouseenter.cycle mouseleave.cycle"),i.destroy&&i.destroy(i)}function w(r,o,c,l,a){var at,w=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),yt=n.isFunction(r.data)?r.data(w.metaAttr):null,rt,ot,it,k,vt,nt,g,st,lt,ct,pt,ht,d;if(yt&&(w=n.extend(w,yt)),w.autostop&&(w.countdown=w.autostopCount||c.length),rt=r[0],r.data("cycle.opts",w),w.$cont=r,w.stopCount=rt.cycleStop,w.elements=c,w.before=w.before?[w.before]:[],w.after=w.after?[w.after]:[],!n.support.opacity&&w.cleartype&&w.after.push(function(){h(this,w)}),w.continuous&&w.after.push(function(){u(c,w,0,!w.backwards)}),p(w),n.support.opacity||!w.cleartype||w.cleartypeNoBg||s(o),r.css("position")=="static"&&r.css("position","relative"),w.width&&r.width(w.width),w.height&&w.height!="auto"&&r.height(w.height),w.startingSlide!==t?(w.startingSlide=parseInt(w.startingSlide,10),w.startingSlide>=c.length||w.startSlide<0?w.startingSlide=0:at=!0):w.startingSlide=w.backwards?c.length-1:0,w.random){for(w.randomMap=[],ot=0;ot<c.length;ot++)w.randomMap.push(ot);if(w.randomMap.sort(function(){return Math.random()-.5}),at)for(it=0;it<c.length;it++)w.startingSlide==w.randomMap[it]&&(w.randomIndex=it);else w.randomIndex=1,w.startingSlide=w.randomMap[1]}else w.startingSlide>=c.length&&(w.startingSlide=0);if(w.currSlide=w.startingSlide||0,k=w.startingSlide,o.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=w.backwards?k?t<=k?c.length+(t-k):k-t:c.length-t:k?t>=k?c.length-(t-k):k-t:c.length-t,n(this).css("z-index",i)}),n(c[k]).css("opacity",1).show(),h(c[k],w),w.fit&&(w.aspect?o.each(function(){var t=n(this),i=w.aspect===!0?t.width()/t.height():w.aspect;w.width&&t.width()!=w.width&&(t.width(w.width),t.height(w.width/i)),w.height&&t.height()<w.height&&(t.height(w.height),t.width(w.height*i))}):(w.width&&o.width(w.width),w.height&&w.height!="auto"&&o.height(w.height))),w.center&&(!w.fit||w.aspect)&&o.each(function(){var t=n(this);t.css({"margin-left":w.width?(w.width-t.width())/2+"px":0,"margin-top":w.height?(w.height-t.height())/2+"px":0})}),!w.center||w.fit||w.slideResize||o.each(function(){var t=n(this);t.css({"margin-left":w.width?(w.width-t.width())/2+"px":0,"margin-top":w.height?(w.height-t.height())/2+"px":0})}),vt=w.containerResize&&!r.innerHeight(),vt){for(nt=0,g=0,st=0;st<c.length;st++){var tt=n(c[st]),et=tt[0],ft=tt.outerWidth(),ut=tt.outerHeight();ft||(ft=et.offsetWidth||et.width||tt.attr("width")),ut||(ut=et.offsetHeight||et.height||tt.attr("height")),nt=ft>nt?ft:nt,g=ut>g?ut:g}nt>0&&g>0&&r.css({width:nt+"px",height:g+"px"})}if((lt=!1,w.pause&&r.bind("mouseenter.cycle",function(){lt=!0,this.cyclePause++,f(rt,!0)}).bind("mouseleave.cycle",function(){lt&&this.cyclePause--,f(rt,!0)}),y(w)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,o.each(function(){var t=n(this);if(this.cycleH=w.fit&&w.height?w.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=w.fit&&w.width?w.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")){var f=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,e=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,r=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,u=this.cycleH===0&&this.cycleW===0&&!this.complete;if(f||e||r||u){if(a.s&&w.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},w.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ct))return!1;if(w.cssBefore=w.cssBefore||{},w.cssAfter=w.cssAfter||{},w.cssFirst=w.cssFirst||{},w.animIn=w.animIn||{},w.animOut=w.animOut||{},o.not(":eq("+k+")").css(w.cssBefore),n(o[k]).css(w.cssFirst),w.timeout)for(w.timeout=parseInt(w.timeout,10),w.speed.constructor==String&&(w.speed=n.fx.speeds[w.speed]||parseInt(w.speed,10)),w.sync||(w.speed=w.speed/2),pt=w.fx=="none"?0:w.fx=="shuffle"?500:250;w.timeout-w.speed<pt;)w.timeout+=w.speed;if(w.easing&&(w.easeIn=w.easeOut=w.easing),w.speedIn||(w.speedIn=w.speed),w.speedOut||(w.speedOut=w.speed),w.slideCount=c.length,w.currSlide=w.lastSlide=k,w.random?(++w.randomIndex==c.length&&(w.randomIndex=0),w.nextSlide=w.randomMap[w.randomIndex]):w.nextSlide=w.backwards?w.startingSlide===0?c.length-1:w.startingSlide-1:w.startingSlide>=c.length-1?0:w.startingSlide+1,!w.multiFx)if(ht=n.fn.cycle.transitions[w.fx],n.isFunction(ht))ht(r,o,w);else if(w.fx!="custom"&&!w.multiFx)return i("unknown transition: "+w.fx,"; slideshow terminating"),!1;return d=o[k],w.skipInitializationCallbacks||(w.before.length&&w.before[0].apply(d,[d,d,w,!0]),w.after.length&&w.after[0].apply(d,[d,d,w,!0])),w.next&&n(w.next).bind(w.prevNextEvent,function(){return e(w,1)}),w.prev&&n(w.prev).bind(w.prevNextEvent,function(){return e(w,0)}),(w.pager||w.pagerAnchorBuilder)&&v(c,w),b(w,c),w}function p(t){t.original={before:[],after:[]},t.original.cssBefore=n.extend({},t.cssBefore),t.original.cssAfter=n.extend({},t.cssAfter),t.original.animIn=n.extend({},t.animIn),t.original.animOut=n.extend({},t.animOut),n.each(t.before,function(){t.original.before.push(this)}),n.each(t.after,function(){t.original.after.push(this)})}function y(t){var u,o,f=n.fn.cycle.transitions,s,e,c,h;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)s=t.fxs[u],o=f[s],o&&f.hasOwnProperty(s)&&n.isFunction(o)||(i("discarding unknown transition: ",s),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0,t.fxs=[];for(e in f)f.hasOwnProperty(e)&&(o=f[e],f.hasOwnProperty(e)&&n.isFunction(o)&&t.fxs.push(e))}if(t.multiFx&&t.randomizeEffects){for(c=Math.floor(Math.random()*20)+30,u=0;u<c;u++)h=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(h,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function b(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||s(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function u(i,f,e,s){function w(){var n=0,t=f.timeout;f.timeout&&!f.continuous?(n=o(i[f.currSlide],i[f.nextSlide],f,s),f.fx=="shuffle"&&(n-=f.speedOut)):f.continuous&&l.cyclePause&&(n=10),n>0&&(l.cycleTimeout=setTimeout(function(){u(i,f,0,!f.backwards)},n))}var l=f.$cont[0],c=i[f.currSlide],h=i[f.nextSlide],y,v,p,a;if(e&&f.busy&&f.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),f.busy=0,clearTimeout(l.cycleTimeout)),f.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==f.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!f.bounce&&(f.autostop&&--f.countdown<=0||f.nowrap&&!f.random&&f.nextSlide<f.currSlide)){f.end&&f.end(f);return}y=!1,(e||!l.cyclePause)&&f.nextSlide!=f.currSlide?(y=!0,v=f.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),f.multiFx&&(s&&(f.lastFx===t||++f.lastFx>=f.fxs.length)?f.lastFx=0:!s&&(f.lastFx===t||--f.lastFx<0)&&(f.lastFx=f.fxs.length-1),v=f.fxs[f.lastFx]),f.oneTimeFx&&(v=f.oneTimeFx,f.oneTimeFx=null),n.fn.cycle.resetState(f,v),f.before.length&&n.each(f.before,function(n,t){l.cycleStop==f.stopCount&&t.apply(h,[c,h,f,s])}),p=function(){f.busy=0,n.each(f.after,function(n,t){l.cycleStop==f.stopCount&&t.apply(h,[c,h,f,s])}),l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+f.currSlide+"; nextSlide: "+f.nextSlide),f.busy=1,f.fxFn?f.fxFn(c,h,f,p,s,e&&f.fastOnEvent):n.isFunction(n.fn.cycle[f.fx])?n.fn.cycle[f.fx](c,h,f,p,s,e&&f.fastOnEvent):n.fn.cycle.custom(c,h,f,p,s,e&&f.fastOnEvent)):w(),(y||f.nextSlide==f.currSlide)&&(f.lastSlide=f.currSlide,f.random?(f.currSlide=f.nextSlide,++f.randomIndex==i.length&&(f.randomIndex=0,f.randomMap.sort(function(){return Math.random()-.5})),f.nextSlide=f.randomMap[f.randomIndex],f.nextSlide==f.currSlide&&(f.nextSlide=f.currSlide==f.slideCount-1?0:f.currSlide+1)):f.backwards?(a=f.nextSlide-1<0,a&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=1,f.currSlide=0):(f.nextSlide=a?i.length-1:f.nextSlide-1,f.currSlide=a?0:f.nextSlide+1)):(a=f.nextSlide+1==i.length,a&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=i.length-2,f.currSlide=i.length-1):(f.nextSlide=a?0:f.nextSlide+1,f.currSlide=a?i.length-1:f.nextSlide-1))),y&&f.pager&&f.updateActivePagerLink(f.pager,f.currSlide,f.activePagerClass)}}function o(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var e=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,f;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&e<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+e,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return f=t.onPrevNextEvent||t.prevNextClick,n.isFunction(f)&&f(e>0,t.nextSlide,r[t.nextSlide]),u(r,t,1,i),!1}function v(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)}),i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function s(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack"),t.each(function(){n(this).css("background-color",u(this))})}var c="2.9999.5";n.support===t&&(n.support={opacity:!n.browser.msie}),n.expr[":"].paused=function(n){return n.cyclePause},n.fn.cycle=function(t,f){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,f)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var c=l(this,t,f),s,h;if(c!==!1){c.updateActivePagerLink=c.updateActivePagerLink||n.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var y=n(this),v=c.slideExpr?n(c.slideExpr,this):y.children(),a=v.get();if(a.length<2){i("terminating; too few slides: "+a.length);return}(s=w(y,v,a,c,e),s!==!1)&&(h=s.continuous?10:o(a[s.currSlide],a[s.nextSlide],s,!s.backwards),h&&(h+=s.delay||0,h<10&&(h=10),r("first timeout: "+h),this.cycleTimeout=setTimeout(function(){u(a,s,0,!c.backwards)},h)))}})},n.fn.cycle.resetState=function(t,i){i=i||t.fx,t.before=[],t.after=[],t.cssBefore=n.extend({},t.original.cssBefore),t.cssAfter=n.extend({},t.original.cssAfter),t.animIn=n.extend({},t.original.animIn),t.animOut=n.extend({},t.original.animOut),t.fxFn=null,n.each(t.original.before,function(){t.before.push(this)}),n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)},n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})},n.fn.cycle.next=function(n){e(n,1)},n.fn.cycle.prev=function(n){e(n,0)},n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var l,h,v,y,c,a;(n.isFunction(s.pagerAnchorBuilder)?(l=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+l)):l='<a href="#">'+(t+1)+"</a>",l)&&(h=n(l),h.parents("body").length===0&&(v=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t),v.push(t[0])}),h=n(v)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),y=function(i){var e,f,r;i.preventDefault(),s.nextSlide=t,e=s.$cont[0],f=e.cycleTimeout,f&&(clearTimeout(f),e.cycleTimeout=0),r=s.onPagerEvent||s.pagerClick,n.isFunction(r)&&r(s.nextSlide,o[s.nextSlide]),u(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(y,function(){}):h.bind(s.pagerEvent,y),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),c=s.$cont[0],a=!1,s.pauseOnPagerHover&&h.hover(function(){a=!0,c.cyclePause++,f(c,!0,!0)},function(){a&&c.cyclePause--,f(c,!0,!0)}))},n.fn.cycle.hopsFromLast=function(n,t){var u,i=n.lastSlide,r=n.currSlide;return u=t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r},n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide(),typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1),r.cssBefore.display="block",r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW),r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH),r.cssAfter=r.cssAfter||{},r.cssAfter.display="none",n(t).css("zIndex",r.slideCount+(e===!0?1:0)),n(i).css("zIndex",r.slideCount+(e===!0?0:1))},n.fn.cycle.custom=function(t,i,r,u,f,e){var l=n(t),a=n(i),o=r.speedIn,s=r.speedOut,v=r.easeIn,c=r.easeOut,h;a.css(r.cssBefore),e&&(o=typeof e=="number"?s=e:s=1,v=c=null),h=function(){a.animate(r.animIn,o,v,function(){u()})},l.animate(r.animOut,s,c,function(){l.css(r.cssAfter),r.sync||h()}),r.sync&&h()},n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.cssBefore.opacity=0}),r.animIn={opacity:1},r.animOut={opacity:0},r.cssBefore={top:0,left:0}}},n.fn.cycle.ver=function(){return c},n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){"use strict";n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show(),n(t).hide(),u()}},n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1}),r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(e!==!0?1:0)),n(i).css("zIndex",r.slideCount+(e!==!0?0:1))}),r.animIn.opacity=1,r.animOut.opacity=0,r.cssBefore.opacity=1,r.cssBefore.display="block",r.cssAfter.zIndex=0},n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u,r.cssBefore.left=0,r.cssFirst.top=0,r.animIn.top=0,r.animOut.top=-u},n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0,r.cssBefore.top=-u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=0-u},n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=-u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width(),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.left=u?i.cycleW-1:1-i.cycleW,r.animOut.left=u?-t.cycleW:t.cycleW}),r.cssFirst.left=0,r.cssBefore.top=0,r.animIn.left=0,r.animOut.top=0},n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden"),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.top=u?1-i.cycleH:i.cycleH-1,r.animOut.top=u?t.cycleH:-t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.animIn.top=0,r.animOut.left=0},n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.width="show",r.animOut.width=0},n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animIn.height="show",r.animOut.height=0},n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f),e=f?n(t):n(i),n(i).css(r.cssBefore),o=r.slideCount,e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,s,c,h=0;h<l;h++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide(),u&&u()})})},n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})},n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=i.cycleH,r.animIn.height=i.cycleH,r.animOut.width=i.cycleW}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.height=0,r.animIn.top=0,r.animOut.height=0},n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animOut.height=0},n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=i.cycleW,r.animIn.width=i.cycleW}),r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),n.extend(r.cssBefore,{top:0,left:0,width:0}),r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0),r.cssBefore.top=i.cycleH/2,r.cssBefore.left=i.cycleW/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH}),n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),r.cssFirst.top=0,r.cssFirst.left=0,r.cssBefore.width=0,r.cssBefore.height=0},n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1),r.cssBefore.left=i.cycleW/2,r.cssBefore.top=i.cycleH/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})}),r.cssBefore.width=0,r.cssBefore.height=0,r.animOut.opacity=0},n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.blindZ=function(t,i,r){var f=t.css("overflow","hidden").height(),u=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=f,r.cssBefore.left=u,r.animIn.top=0,r.animIn.left=0,r.animOut.top=f,r.animOut.left=u},n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=this.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=this.cycleH/2,r.animIn.top=0,r.animIn.height=this.cycleH,r.animOut.top=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0),r.cssBefore.left=i.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=t.cycleW/2,r.animOut.width=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0),r.cssBefore.top=i.cycleH/2,r.animIn.top=0,r.animIn.height=i.cycleH,r.animOut.top=t.cycleH/2,r.animOut.height=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),u=="right"?r.cssBefore.left=-e:u=="up"?r.cssBefore.top=f:u=="down"?r.cssBefore.top=-f:r.cssBefore.left=e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),u=="right"?r.animOut.left=e:u=="up"?r.animOut.top=-f:u=="down"?r.animOut.top=f:r.animOut.left=-e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.toss=function(t,i,r){var f=t.css("overflow","visible").width(),u=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:f*2,top:-u/2,opacity:0})}),r.cssBefore.left=0,r.cssBefore.top=0,r.animIn.left=0},n.fn.cycle.transitions.wipe=function(t,i,r){var f=t.css("overflow","hidden").width(),u=t.height(),e,l,a;r.cssBefore=r.cssBefore||{},r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+u+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+f+"px "+u+"px "+f+"px)":/t2b/.test(r.clip)?e="rect(0px "+f+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+u+"px "+f+"px "+u+"px 0px)":/zoom/.test(r.clip)&&(l=parseInt(u/2,10),a=parseInt(f/2,10),e="rect("+l+"px "+a+"px "+l+"px "+a+"px)")),r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),v=parseInt(o[0],10),s=parseInt(o[1],10),c=parseInt(o[2],10),h=parseInt(o[3],10);r.before.push(function(t,i,r){var l,a,e,o;t!=i&&(l=n(t),a=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var i=v?v-parseInt(e*(v/o),10):0,r=h?h-parseInt(e*(h/o),10):0,n=c<u?c+parseInt(e*((u-c)/o||1),10):u,t=s<f?s+parseInt(e*((f-s)/o||1),10):f;a.css({clip:"rect("+i+"px "+t+"px "+n+"px "+r+"px)"}),e++<=o?setTimeout(y,13):l.css("display","none")}())}),n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0}),r.animIn={left:0},r.animOut={left:0}}}(jQuery),jQuery.fn.fixedtableheader=function(n){function i(n){return n.outerWidth()}var t=jQuery.extend({headerrowsize:1,highlightrow:!1,highlightclass:"highlight"},n);this.each(function(n){var r=$(this),f=r.find("tr:lt("+t.headerrowsize+")"),e="th",u,o;f.find(e).length==0&&(e="td"),f.find(e).length>0&&(f.find(e).each(function(){$(this).css("width",$(this).width())}),u=r.clone().empty(),o=i(r),u.attr("id","fixedtableheader"+n).css({position:"fixed",top:"0",left:r.offset().left}).append(f.clone()).width(o).hide().appendTo($("body")),t.highlightrow&&$("tr:gt("+(t.headerrowsize-1)+")",r).hover(function(){$(this).addClass(t.highlightclass)},function(){$(this).removeClass(t.highlightclass)}),$(window).scroll(function(){jQuery.browser.msie&&jQuery.browser.version=="6.0"?u.css({position:"absolute",top:$(window).scrollTop(),left:r.offset().left}):u.css({position:"fixed",top:"0",left:r.offset().left-$(window).scrollLeft()});var t=$(window).scrollTop(),n=f.offset().top;t>n&&t<=n+r.height()-f.height()?u.show():u.hide()}),$(window).resize(function(){u.outerWidth()!=r.outerWidth()&&(f.find(e).each(function(n){var t=$(this).width();$(this).css("width",t),u.find(e).eq(n).css("width",t)}),u.width(r.outerWidth())),u.css("left",r.offset().left)}))})},!function(n){"use strict";n(function(){n.support.transition=function(){var n=function(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return t[n]}();return n&&{end:n}}()})}(window.jQuery),!function(n){"use strict";function e(){var t=this,r=setTimeout(function(){t.$element.off(n.support.transition.end),i.call(t)},500);this.$element.one(n.support.transition.end,function(){clearTimeout(r),i.call(t)})}function i(){this.$element.hide().trigger("hidden"),f.call(this)}function f(t){var f=this,u=this.$element.hasClass("fade")?"fade":"",i;this.isShown&&this.options.backdrop?(i=n.support.transition&&u,this.$backdrop=n('<div class="modal-backdrop '+u+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(n.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(n.support.transition.end,t):t()):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,n.proxy(r,this)):r.call(this)):t&&t()}function r(){this.$backdrop.remove(),this.$backdrop=null}function u(){var t=this;if(this.isShown&&this.options.keyboard)n(document).on("keyup.dismiss.modal",function(n){n.which==27&&t.hide()});else this.isShown||n(document).off("keyup.dismiss.modal")}var t=function(t,i){this.options=i,this.$element=n(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",n.proxy(this.hide,this))};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,i=n.Event("show");(this.$element.trigger(i),this.isShown||i.isDefaultPrevented())||(n("body").addClass("modal-open"),this.isShown=!0,u.call(this),f.call(this,function(){var i=n.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),i&&t.$element[0].offsetWidth,t.$element.addClass("in"),i?t.$element.one(n.support.transition.end,function(){t.$element.trigger("shown")}):t.$element.trigger("shown")}))},hide:function(t){t&&t.preventDefault();var r=this;(t=n.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,n("body").removeClass("modal-open"),u.call(this),this.$element.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?e.call(this):i.call(this))}},n.fn.modal=function(i){return this.each(function(){var u=n(this),r=u.data("modal"),f=n.extend({},n.fn.modal.defaults,u.data(),typeof i=="object"&&i);r||u.data("modal",r=new t(this,f)),typeof i=="string"?r[i]():f.show&&r.show()})},n.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},n.fn.modal.Constructor=t,n(function(){n("body").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),u,i=n(r.attr("data-target")||(u=r.attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")),f=i.data("modal")?"toggle":n.extend({},i.data(),r.data());t.preventDefault(),i.modal(f)})})}(window.jQuery),!function(n){"use strict";var t=function(t,i){this.options=n.extend({},n.fn.affix.defaults,i),this.$window=n(window).on("scroll.affix.data-api",n.proxy(this.checkPosition,this)),this.$element=n(t),this.checkPosition()};t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var o=n(document).height(),f=this.$window.scrollTop(),e=this.$element.offset(),i=this.options.offset,r=i.bottom,u=i.top,s="affix affix-top affix-bottom",t;(n("#top-links .active").length>0&&(f-=n("#hidden-header").height()),typeof i!="object"&&(r=u=i),typeof u=="function"&&(u=i.top()),typeof r=="function"&&(r=i.bottom()),t=this.unpin!=null&&f+this.unpin<=e.top?!1:r!=null&&e.top+this.$element.height()>=o-r?"bottom":u!=null&&f<=u?"top":!1,this.affixed!==t)&&(this.affixed=t,this.unpin=t=="bottom"?e.top-f:null,this.$element.removeClass(s).addClass("affix"+(t?"-"+t:"")))}},n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("affix"),f=typeof i=="object"&&i;r||u.data("affix",r=new t(this,f)),typeof i=="string"&&r[i]()})},n.fn.affix.Constructor=t,n.fn.affix.defaults={offset:0};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{},t.offsetBottom&&(t.offset.bottom=t.offsetBottom),t.offsetTop&&(t.offset.top=t.offsetTop),i.affix(t)})})}(window.jQuery),!function(n){"use strict";var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var i=this.getActiveIndex(),r=this;if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(!this.sliding)return this.slide("next")},prev:function(){if(!this.sliding)return this.slide("prev")},slide:function(t,i){var o=this.$element.find(".item.active"),r=i||o[t](),s=this.interval,u=t=="next"?"left":"right",h=t=="next"?"first":"last",e=this,f;if(this.sliding=!0,s&&this.pause(),r=r.length?r:this.$element.find(".item")[h](),f=n.Event("slide",{relatedTarget:r[0],direction:u}),!r.hasClass("active")){if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid",function(){var t=n(e.$indicators.children()[e.getActiveIndex()]);t&&t.addClass("active")})}if(n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(f),f.isDefaultPrevented())return;r.addClass(t),r[0].offsetWidth,o.addClass(u),r.addClass(u);this.$element.one(n.support.transition.end,function(){r.removeClass([t,u].join(" ")).addClass("active"),o.removeClass(["active",u].join(" ")),e.sliding=!1,setTimeout(function(){e.$element.trigger("slid")},0)})}else{if(this.$element.trigger(f),f.isDefaultPrevented())return;o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}}},i=n.fn.carousel,n.fn.carousel=function(i){return this.each(function(){var e=n(this),r=e.data("carousel"),u=n.extend({},n.fn.carousel.defaults,typeof i=="object"&&i),f=typeof i=="string"?i:u.slide;r||e.data("carousel",r=new t(this,u)),typeof i=="number"?r.to(i):f?r[f]():u.interval&&r.pause().cycle()})},n.fn.carousel.defaults={interval:5e3,pause:"hover"},n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u;r.carousel(e),(u=i.attr("data-slide-to"))&&r.data("carousel").pause().to(u).cycle(),t.preventDefault()})}(window.jQuery),!function(n){"use strict";var t=function(t){this.element=n(t)};t.prototype={constructor:t,show:function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.attr("data-target"),f,r,u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active")){t.parent("li").removeClass("active"),n(i).removeClass("active");return}(f=e.find(".active a").last()[0],u=n.Event("show",{relatedTarget:f}),t.trigger(u),u.isDefaultPrevented())||(r=n(i),this.activate(t.parent("li"),e),this.activate(r,r.parent(),function(){t.trigger({type:"shown",relatedTarget:f})}))},activate:function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f):f(),u.removeClass("in")}},n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("tab");r||u.data("tab",r=new t(this)),typeof i=="string"&&r[i]()})},n.fn.tab.Constructor=t,n(function(){n("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),n(this).tab("show")})})}(window.jQuery),!function(n){"use strict";var t=function(n,t){this.init("tooltip",n,t)};t.prototype={constructor:t,init:function(t,i,r){var f,u;if(this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger!="manual"){f=this.options.trigger=="hover"?"mouseenter":"focus",u=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(f,this.options.selector,n.proxy(this.enter,this));this.$element.on(u,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=n.extend({},n.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!i.options.delay||!i.options.delay.hide)return i.hide();i.hoverState="out",this.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)},show:function(){var t,f,n,u,e,i,r;if(this.hasContent()&&this.enabled){t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),i=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,f=/in/.test(i),t.remove().css({top:0,left:0,display:"block"}).appendTo(f?this.$element:document.body),n=this.getPosition(f),u=t[0].offsetWidth,e=t[0].offsetHeight;switch(f?i.split(" ")[1]:i){case"bottom":r={top:n.top+n.height,left:n.left+n.width/2-u/2};break;case"top":r={top:n.top-e,left:n.left+n.width/2-u/2};break;case"left":r={top:n.top+n.height/2-e/2,left:n.left-u};break;case"right":r={top:n.top+n.height/2-e/2,left:n.left+n.width}}t.css(r).addClass(i).addClass("in")}},isHTML:function(n){return typeof n!="string"||n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(n)},setContent:function(){var t=this.tip(),n=this.getTitle();t.find(".tooltip-inner")[this.isHTML(n)?"html":"text"](n),t.removeClass("fade in top bottom left right")},hide:function(){function i(){var i=setTimeout(function(){t.off(n.support.transition.end).remove()},500);t.one(n.support.transition.end,function(){clearTimeout(i),t.remove()})}var r=this,t=this.tip();t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i():t.remove()},fixTitle:function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return n.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var t,i=this.$element,n=this.options;return t=i.attr("data-original-title")||(typeof n.title=="function"?n.title.call(i[0]):n.title)},tip:function(){return this.$tip=this.$tip||n(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("tooltip"),f=typeof i=="object"&&i;r||u.data("tooltip",r=new t(this,f)),typeof i=="string"&&r[i]()})},n.fn.tooltip.Constructor=t,n.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="close-tooltip"></div><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0}}(window.jQuery),!function(n){"use strict";var t=function(t,i){this.$element=n(t),this.options=n.extend({},n.fn.collapse.defaults,i),this.options.parent&&(this.$parent=n(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var n=this.$element.hasClass("width");return n?"width":"height"},show:function(){var r,u,t,i;if(!this.transitioning){if(r=this.dimension(),u=n.camelCase(["scroll",r].join("-")),t=this.$parent&&this.$parent.find("> .accordion-group > .in"),t&&t.length){if(i=t.data("collapse"),i&&i.transitioning)return;t.collapse("hide"),i||t.data("collapse",null)}this.$element[r](0),this.transition("addClass",n.Event("show"),"shown"),this.$element[r](this.$element[0][u])}},hide:function(){var t;this.transitioning||(t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",n.Event("hide"),"hidden"),this.$element[t](0))},reset:function(n){var t=this.dimension();return this.$element.removeClass("collapse")[t](n||"auto")[0].offsetWidth,this.$element[n!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,i,r){var u=this,f=function(){i.type=="show"&&u.reset(),u.transitioning=0,u.$element.trigger(r)};(this.$element.trigger(i),i.isDefaultPrevented())||(this.transitioning=1,this.$element[t]("in"),n.support.transition&&this.$element.hasClass("collapse")?this.$element.one(n.support.transition.end,f):f())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},n.fn.collapse=function(i){return this.each(function(){var u=n(this),r=u.data("collapse"),f=typeof i=="object"&&i;r||u.data("collapse",r=new t(this,f)),typeof i=="string"&&r[i]()})},n.fn.collapse.defaults={toggle:!0},n.fn.collapse.Constructor=t,n(function(){n("body").on("click.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),u,r=i.attr("data-target")||t.preventDefault()||(u=i.attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,""),f=n(r).data("collapse")?"toggle":i.data();n(r).collapse(f)})})}(window.jQuery),function(n){function h(n){return typeof n=="string"}function s(n){var t=ht.call(arguments,1);return function(){return n.apply(this,t.concat(ht.call(arguments)))}}function at(n){return n.replace(l,"$2")}function vt(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function g(t,u,o,s,c){var k,p,w,b,g;return s!==i?(w=o.match(t?l:/^([^#?]*)\??([^#]*)(#?.*)/),g=w[3]||"",c===2&&h(s)?p=s.replace(t?a:ct,""):(b=r(w[2]),s=h(s)?r[t?f:e](s):s,p=c===2?s:c===1?n.extend({},s,b):n.extend({},b,s),p=st(p),t&&(p=p.replace(d,v))),k=w[1]+(t?y:p||!w[1]?"?":"")+p+g):k=u(o!==i?o:location.href),k}function tt(n,t,u){return t===i||typeof t=="boolean"?(u=t,t=o[n?f:e]()):t=h(t)?t.replace(n?a:ct,""):t,r(t,u)}function nt(t,r,u,f){return h(u)||typeof u=="object"||(f=u,u=r,r=i),this.each(function(){var e=n(this),i=r||rt()[(this.nodeName||"").toLowerCase()]||"",s=i&&e.attr(i)||"";e.attr(i,o[t](s,u,f))})}var i,ht=Array.prototype.slice,v=decodeURIComponent,o=n.param,st,u,r,p,k=n.bbq=n.bbq||{},ft,et,rt,ut=n.event.special,ot="hashchange",e="querystring",f="fragment",b="elemUrlAttr",w="href",c="src",ct=/^.*\?|#.*$/g,a,l,d,it,y,lt={};o[e]=s(g,0,vt),o[f]=u=s(g,1,at),o.sorted=st=function(t,i){var u=[],r={};return n.each(o(t,i).split("&"),function(n,t){var f=t.replace(/(?:%5B|=).*$/,""),i=r[f];i||(i=r[f]=[],u.push(f)),i.push(t)}),n.map(u.sort(),function(n){return r[n]}).join("&")},u.noEscape=function(t){t=t||"";var i=n.map(t.split(""),encodeURIComponent);d=new RegExp(i.join("|"),"g")},u.noEscape(",/"),u.ajaxCrawlable=function(n){return n!==i&&(n?(a=/^.*(?:#!|#)/,l=/^([^#]*)(?:#!|#)?(.*)$/,y="#!"):(a=/^.*#/,l=/^([^#]*)#?(.*)$/,y="#"),it=!!n),it},u.ajaxCrawlable(0),n.deparam=r=function(t,r){var u={},f={"true":!0,"false":!1,"null":null};return n.each(t.replace(/\+/g," ").split("&"),function(t,e){var y=e.split("="),h=v(y[0]),o,a=u,l=0,s=h.split("]["),c=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),s=s.shift().split("[").concat(s),c=s.length-1):c=0,y.length===2)if(o=v(y[1]),r&&(o=o&&!isNaN(o)?+o:o==="undefined"?i:f[o]!==i?f[o]:o),c)for(;l<=c;l++)h=s[l]===""?a.length:s[l],a=a[h]=l<c?a[h]||(s[l+1]&&isNaN(s[l+1])?{}:[]):o;else n.isArray(u[h])?u[h].push(o):u[h]=u[h]!==i?[u[h],o]:o;else h&&(u[h]=r?i:"")}),u},r[e]=s(tt,0),r[f]=p=s(tt,1),n[b]||(n[b]=function(t){return n.extend(lt,t)})({a:w,base:w,iframe:c,img:c,input:c,form:"action",link:w,script:c}),rt=n[b],n.fn[e]=s(nt,e),n.fn[f]=s(nt,f),k.pushState=ft=function(n,t){h(n)&&/^#/.test(n)&&t===i&&(t=2);var r=n!==i,f=u(location.href,r?n:{},r?t:2);location.href=f},k.getState=et=function(n,t){return n===i||typeof n=="boolean"?p(n):p(t)[n]},k.removeState=function(t){var r={};t!==i&&(r=et(),n.each(n.isArray(t)?t:arguments,function(n,t){delete r[t]})),ft(r,2)},ut[ot]=n.extend(ut[ot],{add:function(t){function o(n){var t=n[f]=u();n.getState=function(n,u){return n===i||typeof n=="boolean"?r(t,n):r(t,u)[n]},e.apply(this,arguments)}var e;if(n.isFunction(t))return e=t,o;e=t.handler,t.handler=o}})}(jQuery,this),function(n,t,i){function u(n){return n=n||location.href,"#"+n.replace(/^[^#]*#?(.*)$/,"$1")}var r="hashchange",f=document,o,h=n.event.special,s=f.documentMode,e="on"+r in t&&(s===i||s>7);n.fn[r]=function(n){return n?this.bind(r,n):this.trigger(r)},n.fn[r].delay=50,h[r]=n.extend(h[r],{setup:function(){if(e)return!1;n(o.start)},teardown:function(){if(e)return!1;n(o.stop)}}),o=function(){function c(){var f=u(),i=v(h);f!==h?(l(h=f,i),n(t).trigger(r)):i!==h&&(location.href=location.href.replace(/#.*/,"")+i),o=setTimeout(c,n.fn[r].delay)}var s={},o,h=u(),a=function(n){return n},l=a,v=a;return s.start=function(){o||c()},s.stop=function(){o&&clearTimeout(o),o=i},n.browser.msie&&!e&&function(){var i,t;s.start=function(){i||(t=n.fn[r].src,t=t&&t+u(),i=n('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){t||l(u()),c()}).attr("src",t||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{event.propertyName==="title"&&(i.document.title=f.title)}catch(n){}})},s.stop=a,v=function(){return u(i.location.href)},l=function(t,u){var e=i.document,o=n.fn[r].domain;t!==u&&(e.title=f.title,e.open(),o&&e.write('<script>document.domain="'+o+'"<\/script>'),e.close(),i.location.hash=t)}}(),s}()}(jQuery,this),function(n){function i(n){return typeof n=="object"?n:{top:n,left:n}}var t=n.scrollTo=function(t,i,r){n(window).scrollTo(t,i,r)};t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1},t.window=function(){return n(window)._scrollable()},n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,n.browser.safari||i.compatMode=="BackCompat"?i.body:i.documentElement):t})},n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.speed||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function l(n){c.animate(o,u,f.easing,n&&function(){n.call(this,r,f)})}var h=this,c=n(h),e=r,s,o={},a=c.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}e=n(e,this);case"object":(e.is||e.style)&&(s=(e=n(e)).offset())}n.each(f.axis.split(""),function(n,i){var y=i=="x"?"Left":"Top",u=y.toLowerCase(),r="scroll"+y,p=h[r],w=t.max(h,i),v;s?(o[r]=s[u]+(a?0:p-c.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+y))||0,o[r]-=parseInt(e.css("border"+y+"Width"))||0),o[r]+=f.offset[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(v=e[u],o[r]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*w:v),/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],w)),!n&&f.queue&&(p!=o[r]&&l(f.onAfterFirst),delete o[r])}),l(f.onAfter)}).end()},t.max=function(t,i){var u=i=="x"?"Width":"Height",r="scroll"+u;if(!n(t).is("html,body"))return t[r]-n(t)[u.toLowerCase()]();var o="client"+u,e=t.ownerDocument.documentElement,f=t.ownerDocument.body;return Math.max(e[r],f[r])-Math.min(e[o],f[o])}}(jQuery),function(n){"use strict";function it(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=p),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(f);i||(i=new rt(this,t),r.data(f,i))})}function rt(it,rt){function ir(t){if(!nf()&&!(n(t.target).closest(rt.excludedElements,ft).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;if(et=b,r?ot=u.touches.length:t.preventDefault(),ht=0,ct=null,yt=null,st=0,kt=0,dt=0,vt=1,pt=0,lt=ku(),gi=dr(),ur(),!r||ot===rt.fingers||rt.fingers===c||ii()?(li(0,e),ki=bt(),ot==2&&(li(1,u.touches[1]),kt=dt=vi(lt[0].start,lt[1].start)),(rt.swipeStatus||rt.pinchStatus)&&(f=at(u,et))):f=!1,f===!1)return et=i,at(u,et),f;oi(!0)}}function nr(n){var u=n.originalEvent?n.originalEvent:n,h,l,f,o,s;et===t||et===i||hr()||(l=r?u.touches[0]:u,f=fr(l),ci=bt(),r&&(ot=u.touches.length),et=e,ot==2&&(kt==0?(li(1,u.touches[1]),kt=dt=vi(lt[0].start,lt[1].start)):(fr(u.touches[1]),dt=vi(lt[0].end,lt[1].end),yt=eu(lt[0].end,lt[1].end)),vt=fu(kt,dt),pt=Math.abs(kt-dt)),ot===rt.fingers||rt.fingers===c||!r||ii()?(ct=tu(f.start,f.end),gr(n,ct),ht=ou(f.start,f.end),st=sr(),su(ct,ht),(rt.swipeStatus||rt.pinchStatus)&&(h=at(u,et)),(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)&&(o=!0,rt.triggerOnTouchLeave&&(s=iu(this),o=ru(f.end,s)),!rt.triggerOnTouchEnd&&o?et=pi(e):rt.triggerOnTouchLeave&&!o&&(et=pi(t)),(et==i||et==t)&&at(u,et))):(et=i,at(u,et)),h===!1&&(et=i,at(u,et)))}function rr(n){var u=n.originalEvent;if(r&&u.touches.length>0)return du(),!0;hr()&&(ot=bi),n.preventDefault(),ci=bt(),st=sr(),ai()?(et=i,at(u,et)):rt.triggerOnTouchEnd||rt.triggerOnTouchEnd==!1&&et===e?(et=t,at(u,et)):!rt.triggerOnTouchEnd&&cr()?(et=t,ni(u,et,w)):et===e&&(et=i,at(u,et)),oi(!1)}function gt(){ot=0,ci=0,ki=0,kt=0,dt=0,vt=1,ur(),oi(!1)}function tr(n){var i=n.originalEvent;rt.triggerOnTouchLeave&&(et=pi(t),at(i,et))}function kr(){ft.unbind(ri,ir),ft.unbind(si,gt),ft.unbind(wi,nr),ft.unbind(di,rr),ti&&ft.unbind(ti,tr),oi(!1)}function pi(n){var r=n,o=lr(),u=yr(),f=ai();return!o||f?r=i:u&&n==e&&(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)?r=t:!u&&n==t&&rt.triggerOnTouchLeave&&(r=i),r}function at(n,u){var f=undefined;return gu()||pr()?f=ni(n,u,nt):(wu()||ii())&&f!==!1&&(f=ni(n,u,k)),lu()&&f!==!1?f=ni(n,u,g):pu()&&f!==!1?f=ni(n,u,tt):cu()&&f!==!1&&(f=ni(n,u,w)),u===i&&gt(n),u===t&&(r?n.touches.length==0&&gt(n):gt(n)),f}function ni(r,f,e){var c=undefined;if(e==nt){if(ft.trigger("swipeStatus",[f,ct||null,ht||0,st||0,ot]),rt.swipeStatus&&(c=rt.swipeStatus.call(ft,r,f,ct||null,ht||0,st||0,ot),c===!1))return!1;if(f==t&&vr()){if(ft.trigger("swipe",[ct,ht,st,ot]),rt.swipe&&(c=rt.swipe.call(ft,r,ct,ht,st,ot),c===!1))return!1;switch(ct){case u:ft.trigger("swipeLeft",[ct,ht,st,ot]),rt.swipeLeft&&(c=rt.swipeLeft.call(ft,r,ct,ht,st,ot));break;case o:ft.trigger("swipeRight",[ct,ht,st,ot]),rt.swipeRight&&(c=rt.swipeRight.call(ft,r,ct,ht,st,ot));break;case h:ft.trigger("swipeUp",[ct,ht,st,ot]),rt.swipeUp&&(c=rt.swipeUp.call(ft,r,ct,ht,st,ot));break;case s:ft.trigger("swipeDown",[ct,ht,st,ot]),rt.swipeDown&&(c=rt.swipeDown.call(ft,r,ct,ht,st,ot))}}}if(e==k){if(ft.trigger("pinchStatus",[f,yt||null,pt||0,st||0,ot,vt]),rt.pinchStatus&&(c=rt.pinchStatus.call(ft,r,f,yt||null,pt||0,st||0,ot,vt),c===!1))return!1;if(f==t&&ar())switch(yt){case v:ft.trigger("pinchIn",[yt||null,pt||0,st||0,ot,vt]),rt.pinchIn&&(c=rt.pinchIn.call(ft,r,yt||null,pt||0,st||0,ot,vt));break;case y:ft.trigger("pinchOut",[yt||null,pt||0,st||0,ot,vt]),rt.pinchOut&&(c=rt.pinchOut.call(ft,r,yt||null,pt||0,st||0,ot,vt))}}return e==w?(f===i||f===t)&&(clearTimeout(ui),yi()&&!vu()?(wt=bt(),ui=setTimeout(n.proxy(function(){wt=null,ft.trigger("tap",[r.target]),rt.tap&&(c=rt.tap.call(ft,r,r.target))},this),rt.doubleTapThreshold)):(wt=null,ft.trigger("tap",[r.target]),rt.tap&&(c=rt.tap.call(ft,r,r.target)))):e==g?(f===i||f===t)&&(clearTimeout(ui),wt=null,ft.trigger("doubletap",[r.target]),rt.doubleTap&&(c=rt.doubleTap.call(ft,r,r.target))):e==tt&&(f===i||f===t)&&(clearTimeout(ui),wt=null,ft.trigger("longtap",[r.target]),rt.longTap&&(c=rt.longTap.call(ft,r,r.target))),c}function yr(){var n=!0;return rt.threshold!==null&&(n=ht>=rt.threshold),n}function ai(){var n=!1;return rt.cancelThreshold!==null&&ct!==null&&(n=or(ct)-ht>=rt.cancelThreshold),n}function nu(){return rt.pinchThreshold!==null?pt>=rt.pinchThreshold:!0}function lr(){var n;return n=rt.maxTimeThreshold?st>=rt.maxTimeThreshold?!1:!0:!0}function gr(n,t){if(rt.allowPageScroll===p||ii())n.preventDefault();else{var i=rt.allowPageScroll===d;switch(t){case u:(rt.swipeLeft&&i||!i&&rt.allowPageScroll!=a)&&n.preventDefault();break;case o:(rt.swipeRight&&i||!i&&rt.allowPageScroll!=a)&&n.preventDefault();break;case h:(rt.swipeUp&&i||!i&&rt.allowPageScroll!=l)&&n.preventDefault();break;case s:(rt.swipeDown&&i||!i&&rt.allowPageScroll!=l)&&n.preventDefault()}}}function ar(){var i=wr(),t=br(),n=nu();return i&&t&&n}function ii(){return!!(rt.pinchStatus||rt.pinchIn||rt.pinchOut)}function wu(){return!!(ar()&&ii())}function vr(){var r=lr(),u=yr(),f=wr(),n=br(),t=ai();return!t&&n&&f&&u&&r}function pr(){return!!(rt.swipe||rt.swipeStatus||rt.swipeLeft||rt.swipeRight||rt.swipeUp||rt.swipeDown)}function gu(){return!!(vr()&&pr())}function wr(){return ot===rt.fingers||rt.fingers===c||!r}function br(){return lt[0].end.x!==0}function cr(){return!!rt.tap}function yi(){return!!rt.doubleTap}function au(){return!!rt.longTap}function er(){if(wt==null)return!1;var n=bt();return yi()&&n-wt<=rt.doubleTapThreshold}function vu(){return er()}function yu(){return(ot===1||!r)&&(isNaN(ht)||ht===0)}function hu(){return st>rt.longTapThreshold&&ht<ut}function cu(){return!!(yu()&&cr())}function lu(){return!!(er()&&yi())}function pu(){return!!(hu()&&au())}function du(){hi=bt(),bi=event.touches.length+1}function ur(){hi=0,bi=0}function hr(){var t=!1,n;return hi&&(n=bt()-hi,n<=rt.fingerReleaseThreshold&&(t=!0)),t}function nf(){return!!(ft.data(f+"_intouch")===!0)}function oi(n){n===!0?(ft.bind(wi,nr),ft.bind(di,rr),ti&&ft.bind(ti,tr)):(ft.unbind(wi,nr,!1),ft.unbind(di,rr,!1),ti&&ft.unbind(ti,tr,!1)),ft.data(f+"_intouch",n===!0)}function li(n,t){var i=t.identifier!==undefined?t.identifier:0;return lt[n].identifier=i,lt[n].start.x=lt[n].end.x=t.pageX||t.clientX,lt[n].start.y=lt[n].end.y=t.pageY||t.clientY,lt[n]}function fr(n){var i=n.identifier!==undefined?n.identifier:0,t=bu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function bu(n){for(var t=0;t<lt.length;t++)if(lt[t].identifier==n)return lt[t]}function ku(){for(var t=[],n=0;n<=5;n++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function su(n,t){t=Math.max(t,or(n)),gi[n].distance=t}function or(n){return gi[n].distance}function dr(){var n={};return n[u]=ei(u),n[o]=ei(o),n[h]=ei(h),n[s]=ei(s),n}function ei(n){return{direction:n,distance:0}}function sr(){return ci-ki}function vi(n,t){var r=Math.abs(n.x-t.x),i=Math.abs(n.y-t.y);return Math.round(Math.sqrt(r*r+i*i))}function fu(n,t){var i=t/n*1;return i.toFixed(2)}function eu(){return vt<1?y:v}function ou(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function uu(n,t){var r=n.x-t.x,f=t.y-n.y,u=Math.atan2(f,r),i=Math.round(u*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function tu(n,t){var i=uu(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?o:i>45&&i<135?s:h}function bt(){var n=new Date;return n.getTime()}function iu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function ru(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var fi=r||!rt.fallbackToMouseEvents,ri=fi?"touchstart":"mousedown",wi=fi?"touchmove":"mousemove",di=fi?"touchend":"mouseup",ti=fi?null:"mouseleave",si="touchcancel",ht=0,ct=null,st=0,kt=0,dt=0,vt=1,pt=0,yt=0,gi=null,ft=n(it),et="start",ot=0,lt=null,ki=0,ci=0,hi=0,bi=0,wt=0,ui=null;try{ft.bind(ri,ir),ft.bind(si,gt)}catch(tf){n.error("events not supported "+ri+","+si+" on jQuery.swipe")}this.enable=function(){return ft.bind(ri,ir),ft.bind(si,gt),ft},this.disable=function(){return kr(),ft},this.destroy=function(){return kr(),ft.data(f,null),ft},this.option=function(t,i){if(rt[t]!==undefined){if(i===undefined)return rt[t];rt[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options")}}var u="left",o="right",h="up",s="down",v="in",y="out",p="none",d="auto",nt="swipe",k="pinch",w="tap",g="doubletap",tt="longtap",a="horizontal",l="vertical",c="all",ut=10,b="start",e="move",t="end",i="cancel",r="ontouchstart"in window,f="TouchSwipe",ft={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"button, input, select, textarea, a, .noSwipe"};n.fn.swipe=function(t){var r=n(this),i=r.data(f);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return it.apply(this,arguments);return r},n.fn.swipe.defaults=ft,n.fn.swipe.phases={PHASE_START:b,PHASE_MOVE:e,PHASE_END:t,PHASE_CANCEL:i},n.fn.swipe.directions={LEFT:u,RIGHT:o,UP:h,DOWN:s,IN:v,OUT:y},n.fn.swipe.pageScroll={NONE:p,HORIZONTAL:a,VERTICAL:l,AUTO:d},n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}}(jQuery);var swfobject=function(){function v(){var i,r,n;if(!c){try{i=t.getElementsByTagName("body")[0].appendChild(s("span")),i.parentNode.removeChild(i)}catch(u){return}for(c=!0,r=b.length,n=0;n<r;n++)b[n]()}}function kt(n){c?n():b[b.length]=n}function pt(n){if(typeof r.addEventListener!=i)r.addEventListener("load",n,!1);else if(typeof t.addEventListener!=i)t.addEventListener("load",n,!1);else if(typeof r.attachEvent!=i)dt(r,"onload",n);else if(typeof r.onload=="function"){var u=r.onload;r.onload=function(){u(),n()}}else r.onload=n}function ni(){vt?gt():nt()}function gt(){var o=t.getElementsByTagName("body")[0],e=s(f),r,u;e.setAttribute("type",p),r=o.appendChild(e),r?(u=0,function(){if(typeof r.GetVariable!=i){var t=r.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}else if(u<10){u++,setTimeout(arguments.callee,10);return}o.removeChild(e),r=null,nt()}()):nt()}function nt(){var y=h.length,r,t,e,c,v;if(y>0)for(r=0;r<y;r++){var o=h[r].id,s=h[r].callbackFn,f={success:!1,id:o};if(n.pv[0]>0){if(t=u(o),t)if(!g(h[r].swfVersion)||n.wk&&n.wk<312)if(h[r].expressInstall&&tt()){e={},e.data=h[r].expressInstall,e.width=t.getAttribute("width")||"0",e.height=t.getAttribute("height")||"0",t.getAttribute("class")&&(e.styleclass=t.getAttribute("class")),t.getAttribute("align")&&(e.align=t.getAttribute("align"));var p={},a=t.getElementsByTagName("param"),w=a.length;for(c=0;c<w;c++)a[c].getAttribute("name").toLowerCase()!="movie"&&(p[a[c].getAttribute("name")]=a[c].getAttribute("value"));et(e,p,o,s)}else ui(t),s&&s(f);else l(o,!0),s&&(f.success=!0,f.ref=it(o),s(f))}else l(o,!0),s&&(v=it(o),v&&typeof v.SetVariable!=i&&(f.success=!0,f.ref=v),s(f))}}function it(n){var e=null,t=u(n),r;return t&&t.nodeName=="OBJECT"&&(typeof t.SetVariable!=i?e=t:(r=t.getElementsByTagName(f)[0],r&&(e=r))),e}function tt(){return!w&&g("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function et(f,e,o,h){var c,v,l,a;w=!0,ut=h||null,ct={success:!1,id:o},c=u(o),c&&(c.nodeName=="OBJECT"?(y=ft(c),d=null):(y=c,d=o),f.id=lt,(typeof f.width==i||!/%$/.test(f.width)&&parseInt(f.width,10)<310)&&(f.width="310"),(typeof f.height==i||!/%$/.test(f.height)&&parseInt(f.height,10)<137)&&(f.height="137"),t.title=t.title.slice(0,47)+" - Flash Player Installation",v=n.ie&&n.win?"ActiveX":"PlugIn",l="MMredirectURL="+r.location.toString().replace(/&/g,"%26")+"&MMplayerType="+v+"&MMdoctitle="+t.title,typeof e.flashvars!=i?e.flashvars+="&"+l:e.flashvars=l,n.ie&&n.win&&c.readyState!=4&&(a=s("div"),o+="SWFObjectNew",a.setAttribute("id",o),c.parentNode.insertBefore(a,c),c.style.display="none",function(){c.readyState==4?c.parentNode.removeChild(c):setTimeout(arguments.callee,10)}()),rt(f,e,o))}function ui(t){if(n.ie&&n.win&&t.readyState!=4){var i=s("div");t.parentNode.insertBefore(i,t),i.parentNode.replaceChild(ft(t),i),t.style.display="none",function(){t.readyState==4?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(ft(t),t)}function ft(t){var e=s("div"),u,i,o,r;if(n.win&&n.ie)e.innerHTML=t.innerHTML;else if(u=t.getElementsByTagName(f)[0],u&&(i=u.childNodes,i))for(o=i.length,r=0;r<o;r++)i[r].nodeType==1&&i[r].nodeName=="PARAM"||i[r].nodeType==8||e.appendChild(i[r].cloneNode(!0));return e}function rt(t,r,e){var v,w=u(e),y,o,b,a,c,h,l;if(n.wk&&n.wk<312)return v;if(w)if(typeof t.id==i&&(t.id=e),n.ie&&n.win){y="";for(o in t)t[o]!=Object.prototype[o]&&(o.toLowerCase()=="data"?r.movie=t[o]:o.toLowerCase()=="styleclass"?y+=' class="'+t[o]+'"':o.toLowerCase()!="classid"&&(y+=" "+o+'="'+t[o]+'"'));b="";for(a in r)r[a]!=Object.prototype[a]&&(b+='<param name="'+a+'" value="'+r[a]+'" />');w.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+y+">"+b+"</object>",k[k.length]=t.id,v=u(t.id)}else{c=s(f),c.setAttribute("type",p);for(h in t)t[h]!=Object.prototype[h]&&(h.toLowerCase()=="styleclass"?c.setAttribute("class",t[h]):h.toLowerCase()!="classid"&&c.setAttribute(h,t[h]));for(l in r)r[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&ri(c,l,r[l]);w.parentNode.replaceChild(c,w),v=c}return v}function ri(n,t,i){var r=s("param");r.setAttribute("name",t),r.setAttribute("value",i),n.appendChild(r)}function ht(t){var i=u(t);i&&i.nodeName=="OBJECT"&&(n.ie&&n.win?(i.style.display="none",function(){i.readyState==4?ii(t):setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function ii(n){var t=u(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}}function u(n){var i=null;try{i=t.getElementById(n)}catch(r){}return i}function s(n){return t.createElement(n)}function dt(n,t,i){n.attachEvent(t,i),a[a.length]=[n,t,i]}function g(t){var r=n.pv,i=t.split(".");return i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)||0,i[2]=parseInt(i[2],10)||0,r[0]>i[0]||r[0]==i[0]&&r[1]>i[1]||r[0]==i[0]&&r[1]==i[1]&&r[2]>=i[2]?!0:!1}function wt(r,u,o,h){var a,l,c;n.ie&&n.mac||(a=t.getElementsByTagName("head")[0],a)&&(l=o&&typeof o=="string"?o:"screen",h&&(e=null,ot=null),e&&ot==l||(c=s("style"),c.setAttribute("type","text/css"),c.setAttribute("media",l),e=a.appendChild(c),n.ie&&n.win&&typeof t.styleSheets!=i&&t.styleSheets.length>0&&(e=t.styleSheets[t.styleSheets.length-1]),ot=l),n.ie&&n.win?e&&typeof e.addRule==f&&e.addRule(r,u):e&&typeof t.createTextNode!=i&&e.appendChild(t.createTextNode(r+" {"+u+"}")))}function l(n,t){if(bt){var i=t?"visible":"hidden";c&&u(n)?u(n).style.visibility=i:wt("#"+n,"visibility:"+i)}}function st(n){var r=/[\\\"<>\.;]/,t=r.exec(n)!=null;return t&&typeof encodeURIComponent!=i?encodeURIComponent(n):n}var i="undefined",f="object",at="Shockwave Flash",ti="ShockwaveFlash.ShockwaveFlash",p="application/x-shockwave-flash",lt="SWFObjectExprInst",yt="onreadystatechange",r=window,t=document,o=navigator,vt=!1,b=[ni],h=[],k=[],a=[],y,d,ut,ct,c=!1,w=!1,e,ot,bt=!0,n=function(){var a=typeof t.getElementById!=i&&typeof t.getElementsByTagName!=i&&typeof t.createElement!=i,s=o.userAgent.toLowerCase(),e=o.platform.toLowerCase(),l=e?/win/.test(e):/win/.test(s),y=e?/mac/.test(e):/mac/.test(s),v=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,h=!+"\v1",u=[0,0,0],n=null,c;if(typeof o.plugins!=i&&typeof o.plugins[at]==f)n=o.plugins[at].description,!n||typeof o.mimeTypes!=i&&o.mimeTypes[p]&&!o.mimeTypes[p].enabledPlugin||(vt=!0,h=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),u[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),u[2]=/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof r.ActiveXObject!=i)try{c=new ActiveXObject(ti),c&&(n=c.GetVariable("$version"),n&&(h=!0,n=n.split(" ")[1].split(","),u=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]))}catch(w){}return{w3:a,pv:u,wk:v,ie:h,win:l,mac:y}}(),ei=function(){n.w3&&((typeof t.readyState!=i&&t.readyState=="complete"||typeof t.readyState==i&&(t.getElementsByTagName("body")[0]||t.body))&&v(),c||(typeof t.addEventListener!=i&&t.addEventListener("DOMContentLoaded",v,!1),n.ie&&n.win&&(t.attachEvent(yt,function(){t.readyState=="complete"&&(t.detachEvent(yt,arguments.callee),v())}),r==top&&function(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}v()}}()),n.wk&&function(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(arguments.callee,0);return}v()}}(),pt(v)))}(),fi=function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var e=a.length,u,i,r,f,t=0;t<e;t++)a[t][0].detachEvent(a[t][1],a[t][2]);for(u=k.length,i=0;i<u;i++)ht(k[i]);for(r in n)n[r]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t,f.swfVersion=i,f.expressInstall=r,f.callbackFn=u,h[h.length]=f,l(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return it(t)},embedSWF:function(t,r,u,e,o,s,h,c,a,v){var y={success:!1,id:r};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&e&&o?(l(r,!1),kt(function(){var n,k,p,b,w,d;if(u+="",e+="",n={},a&&typeof a===f)for(k in a)n[k]=a[k];if(n.data=t,n.width=u,n.height=e,p={},c&&typeof c===f)for(b in c)p[b]=c[b];if(h&&typeof h===f)for(w in h)typeof p.flashvars!=i?p.flashvars+="&"+w+"="+h[w]:p.flashvars=w+"="+h[w];if(g(o))d=rt(n,p,r),n.id==r&&l(r,!0),y.success=!0,y.ref=d;else{if(s&&tt()){n.data=s,et(n,p,r,v);return}l(r,!0)}v&&v(y)})):v&&v(y)},switchOffAutoHideShow:function(){bt=!1},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:g,createSWF:function(t,i,r){return n.w3?rt(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&tt()&&et(t,i,r,u)},removeSWF:function(t){n.w3&&ht(t)},createCSS:function(t,i,r,u){n.w3&&wt(t,i,r,u)},addDomLoadEvent:kt,addLoadEvent:pt,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),n==null)return st(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return st(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(w){var t=u(lt);t&&y&&(t.parentNode.replaceChild(y,t),d&&(l(d,!0),n.ie&&n.win&&(y.style.display="block")),ut&&ut(ct)),w=!1}}}}();(function(n,t){n.fn.jPlayer=function(i){var f="string"==typeof i,u=Array.prototype.slice.call(arguments,1),r=this,i=!f&&u.length?n.extend.apply(null,[!0,i].concat(u)):i;return f&&"_"===i.charAt(0)?r:(f?this.each(function(){var f=n.data(this,"jPlayer"),e=f&&n.isFunction(f[i])?f[i].apply(f,u):f;if(e!==f&&e!==t)return r=e,!1}):this.each(function(){var t=n.data(this,"jPlayer");t?t.option(i||{}):n.data(this,"jPlayer",new n.jPlayer(i,this))}),r)},n.jPlayer=function(t,i){if(arguments.length){this.element=n(i),this.options=n.extend(!0,{},this.options,t);var r=this;this.element.bind("remove.jPlayer",function(){r.destroy()}),this._init()}},n.jPlayer.emulateMethods="load play pause",n.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",n.jPlayer.emulateOptions="muted volume",n.jPlayer.reservedEvent="ready flashreset resize repeat error warning",n.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat",click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"},n.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough ratechange".split(" "),n.jPlayer.pause=function(){n.each(n.jPlayer.prototype.instances,function(n,t){t.data("jPlayer").status.srcSet&&t.jPlayer("pause")})},n.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""},n.jPlayer.convertTime=function(t){var i=new Date(1e3*t),r=i.getUTCHours(),t=i.getUTCMinutes(),i=i.getUTCSeconds(),r=n.jPlayer.timeFormat.padHour&&10>r?"0"+r:r,t=n.jPlayer.timeFormat.padMin&&10>t?"0"+t:t,i=n.jPlayer.timeFormat.padSec&&10>i?"0"+i:i;return(n.jPlayer.timeFormat.showHour?r+n.jPlayer.timeFormat.sepHour:"")+(n.jPlayer.timeFormat.showMin?t+n.jPlayer.timeFormat.sepMin:"")+(n.jPlayer.timeFormat.showSec?i+n.jPlayer.timeFormat.sepSec:"")},n.jPlayer.uaBrowser=function(n){var n=n.toLowerCase(),r=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,t=/(mozilla)(?:.*? rv:([\w.]+))?/,n=/(webkit)[ \/]([\w.]+)/.exec(n)||r.exec(n)||i.exec(n)||0>n.indexOf("compatible")&&t.exec(n)||[];return{browser:n[1]||"",version:n[2]||"0"}},n.jPlayer.uaPlatform=function(n){var t=n.toLowerCase(),r=/(android)/,i=/(mobile)/,n=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(t)||[],t=/(ipad|playbook)/.exec(t)||!i.exec(t)&&r.exec(t)||[];return n[1]&&(n[1]=n[1].replace(/\s/g,"_")),{platform:n[1]||"",tablet:t[1]||""}},n.jPlayer.browser={},n.jPlayer.platform={};var i=n.jPlayer.uaBrowser(navigator.userAgent);i.browser&&(n.jPlayer.browser[i.browser]=!0,n.jPlayer.browser.version=i.version),i=n.jPlayer.uaPlatform(navigator.userAgent),i.platform&&(n.jPlayer.platform[i.platform]=!0,n.jPlayer.platform.mobile=!i.tablet,n.jPlayer.platform.tablet=!!i.tablet),n.jPlayer.prototype={count:0,version:{script:"2.2.0",needFlash:"2.2.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(t){t.jPlayer.options.loop?n(this).unbind(".jPlayerRepeat").bind(n.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){n(this).jPlayer("play")}):n(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var i=this,r,f,u;if(this.element.empty(),this.status=n.extend({},this.status),this.internal=n.extend({},this.internal),this.internal.domNode=this.element.get(0),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),n.each(this.options.supplied.toLowerCase().split(","),function(t,r){var f=r.replace(/^\s+|\s+$/g,""),u;i.format[f]&&(u=!1,n.each(i.formats,function(n,t){if(f===t)return u=!0,!1}),u||i.formats.push(f))}),n.each(this.options.solution.toLowerCase().split(","),function(t,r){var f=r.replace(/^\s+|\s+$/g,""),u;i.solution[f]&&(u=!1,n.each(i.solutions,function(n,t){if(f===t)return u=!0,!1}),u||i.solutions.push(f))}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=n.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=n.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:t}),this.internal.video=n.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:t}),this.internal.flash=n.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:t,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")}),this.internal.poster=n.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:t}),n.each(n.jPlayer.event,function(n,r){i.options[n]!==t&&(i.element.bind(r+".jPlayer",i.options[n]),i.options[n]=t)}),this.require.audio=!1,this.require.video=!1,n.each(this.formats,function(n,t){i.require[i.format[t].media]=!0}),this.options=this.require.video?n.extend(!0,{},this.optionsVideo,this.options):n.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!i.status.video||i.status.waitForPlay)&&i.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=n("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){i._trigger(n.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10),this.html.canPlay={},this.flash.canPlay={},n.each(this.formats,function(n,t){i.html.canPlay[t]=i.html[i.format[t].media].available&&""!==i.htmlElement[i.format[t].media].canPlayType(i.format[t].codec),i.flash.canPlay[t]=i.format[t].flashCanPlay&&i.flash.available}),this.html.desired=!1,this.flash.desired=!1,n.each(this.solutions,function(t,r){if(t===0)i[r].desired=!0;else{var f=!1,u=!1;n.each(i.formats,function(n,t){i[i.solutions[0]].canPlay[t]&&(i.format[t].media==="video"?u=!0:f=!0)}),i[r].desired=i.require.audio&&!f||i.require.video&&!u}}),this.html.support={},this.flash.support={},n.each(this.formats,function(n,t){i.html.support[t]=i.html.canPlay[t]&&i.html.desired,i.flash.support[t]=i.flash.canPlay[t]&&i.flash.desired}),this.html.used=!1,this.flash.used=!1,n.each(this.solutions,function(t,r){n.each(i.formats,function(n,t){if(i[r].support[t])return i[r].used=!0,!1})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:n.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:n.jPlayer.errorMsg.NO_SOLUTION,hint:n.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){if(f="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted,n.jPlayer.browser.msie&&Number(n.jPlayer.browser.version)<=8)for(f=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+f+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'],r=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0"></object>'),u=0;u<f.length;u++)r.appendChild(document.createElement(f[u]));else u=function(n,t,i){var r=document.createElement("param");r.setAttribute("name",t),r.setAttribute("value",i),n.appendChild(r)},r=document.createElement("object"),r.setAttribute("id",this.internal.flash.id),r.setAttribute("data",this.internal.flash.swf),r.setAttribute("type","application/x-shockwave-flash"),r.setAttribute("width","1"),r.setAttribute("height","1"),u(r,"flashvars",f),u(r,"allowscriptaccess","always"),u(r,"bgcolor",this.options.backgroundColor),u(r,"wmode",this.options.wmode);this.element.append(r),this.internal.flash.jq=n(r)}this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=n("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=n("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){i._trigger(n.jPlayer.event.click)}))),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){i.internal.ready=!0,i.version.flash="n/a",i._trigger(n.jPlayer.event.repeat),i._trigger(n.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this._updateInterface(),this._updateButtons(!1),this._updateAutohide(),this._updateVolume(this.options.volume),this._updateMute(this.options.muted),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),n.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),n.each(this.css.jq,function(n,t){t.length&&t.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(n){try{return n.canPlayType(this.format.mp3.codec),!0}catch(t){return!1}},_uaBlocklist:function(t){var r=navigator.userAgent.toLowerCase(),i=!1;return n.each(t,function(n,t){if(t&&t.test(r))return i=!0,!1}),i},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullScreen=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(t,i){var r=this;t.preload=this.options.preload,t.muted=this.options.muted,t.volume=this.options.volume,t.addEventListener("progress",function(){i.gate&&(r._getHtmlStatus(t),r._updateInterface(),r._trigger(n.jPlayer.event.progress))},!1),t.addEventListener("timeupdate",function(){i.gate&&(r._getHtmlStatus(t),r._updateInterface(),r._trigger(n.jPlayer.event.timeupdate))},!1),t.addEventListener("durationchange",function(){i.gate&&(r._getHtmlStatus(t),r._updateInterface(),r._trigger(n.jPlayer.event.durationchange))},!1),t.addEventListener("play",function(){i.gate&&(r._updateButtons(!0),r._html_checkWaitForPlay(),r._trigger(n.jPlayer.event.play))},!1),t.addEventListener("playing",function(){i.gate&&(r._updateButtons(!0),r._seeked(),r._trigger(n.jPlayer.event.playing))},!1),t.addEventListener("pause",function(){i.gate&&(r._updateButtons(!1),r._trigger(n.jPlayer.event.pause))},!1),t.addEventListener("waiting",function(){i.gate&&(r._seeking(),r._trigger(n.jPlayer.event.waiting))},!1),t.addEventListener("seeking",function(){i.gate&&(r._seeking(),r._trigger(n.jPlayer.event.seeking))},!1),t.addEventListener("seeked",function(){i.gate&&(r._seeked(),r._trigger(n.jPlayer.event.seeked))},!1),t.addEventListener("volumechange",function(){i.gate&&(r.options.volume=t.volume,r.options.muted=t.muted,r._updateMute(),r._updateVolume(),r._trigger(n.jPlayer.event.volumechange))},!1),t.addEventListener("suspend",function(){i.gate&&(r._seeked(),r._trigger(n.jPlayer.event.suspend))},!1),t.addEventListener("ended",function(){i.gate&&(n.jPlayer.browser.webkit||(r.htmlElement.media.currentTime=0),r.htmlElement.media.pause(),r._updateButtons(!1),r._getHtmlStatus(t,!0),r._updateInterface(),r._trigger(n.jPlayer.event.ended))},!1),t.addEventListener("error",function(){i.gate&&(r._updateButtons(!1),r._seeked(),r.status.srcSet&&(clearTimeout(r.internal.htmlDlyCmdId),r.status.waitForLoad=!0,r.status.waitForPlay=!0,r.status.video&&!r.status.nativeVideoControls&&r.internal.video.jq.css({width:"0px",height:"0px"}),r._validString(r.status.media.poster)&&!r.status.nativeVideoControls&&r.internal.poster.jq.show(),r.css.jq.videoPlay.length&&r.css.jq.videoPlay.show(),r._error({type:n.jPlayer.error.URL,context:r.status.src,message:n.jPlayer.errorMsg.URL,hint:n.jPlayer.errorHint.URL})))},!1),n.each(n.jPlayer.htmlEvent,function(u,f){t.addEventListener(this,function(){i.gate&&r._trigger(n.jPlayer.event[f])},!1)})},_getHtmlStatus:function(n,t){var u=0,r=0,f=0,i=0;isFinite(n.duration)&&(this.status.duration=n.duration),u=n.currentTime,r=this.status.duration>0?100*u/this.status.duration:0,typeof n.seekable=="object"&&n.seekable.length>0?(f=this.status.duration>0?100*n.seekable.end(n.seekable.length-1)/this.status.duration:100,i=this.status.duration>0?100*n.currentTime/n.seekable.end(n.seekable.length-1):0):(f=100,i=r),t&&(r=i=u=0),this.status.seekPercent=f,this.status.currentPercentRelative=i,this.status.currentPercentAbsolute=r,this.status.currentTime=u,this.status.readyState=n.readyState,this.status.networkState=n.networkState,this.status.playbackRate=n.playbackRate,this.status.ended=n.ended},_resetStatus:function(){this.status=n.extend({},this.status,n.jPlayer.prototype.status)},_trigger:function(t,i,r){t=n.Event(t),t.jPlayer={},t.jPlayer.version=n.extend({},this.version),t.jPlayer.options=n.extend(!0,{},this.options),t.jPlayer.status=n.extend(!0,{},this.status),t.jPlayer.html=n.extend(!0,{},this.html),t.jPlayer.flash=n.extend(!0,{},this.flash),i&&(t.jPlayer.error=n.extend({},i)),r&&(t.jPlayer.warning=n.extend({},r)),this.element.trigger(t)},jPlayerFlashEvent:function(t,i){if(t===n.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var r=this.status.currentTime,u=this.status.paused;this.setMedia(this.status.media),r>0&&(u?this.pause(r):this.play(r))}this._trigger(n.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=i.version,this.version.needFlash!==this.version.flash&&this._error({type:n.jPlayer.error.VERSION,context:this.version.flash,message:n.jPlayer.errorMsg.VERSION+this.version.flash,hint:n.jPlayer.errorHint.VERSION}),this._trigger(n.jPlayer.event.repeat),this._trigger(t);if(this.flash.gate)switch(t){case n.jPlayer.event.progress:this._getFlashStatus(i),this._updateInterface(),this._trigger(t);break;case n.jPlayer.event.timeupdate:this._getFlashStatus(i),this._updateInterface(),this._trigger(t);break;case n.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(t);break;case n.jPlayer.event.pause:this._updateButtons(!1),this._trigger(t);break;case n.jPlayer.event.ended:this._updateButtons(!1),this._trigger(t);break;case n.jPlayer.event.click:this._trigger(t);break;case n.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:n.jPlayer.error.URL,context:i.src,message:n.jPlayer.errorMsg.URL,hint:n.jPlayer.errorHint.URL});break;case n.jPlayer.event.seeking:this._seeking(),this._trigger(t);break;case n.jPlayer.event.seeked:this._seeked(),this._trigger(t);break;case n.jPlayer.event.ready:break;default:this._trigger(t)}return!1},_getFlashStatus:function(n){this.status.seekPercent=n.seekPercent,this.status.currentPercentRelative=n.currentPercentRelative,this.status.currentPercentAbsolute=n.currentPercentAbsolute,this.status.currentTime=n.currentTime,this.status.duration=n.duration,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(n){n!==t&&(this.status.paused=!n,this.css.jq.play.length&&this.css.jq.pause.length&&(n?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()))),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%"),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(n.jPlayer.convertTime(this.status.currentTime)),this.css.jq.duration.length&&this.css.jq.duration.text(n.jPlayer.convertTime(this.status.duration))},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},setMedia:function(t){var i=this,r=!1,u=this.status.media.poster!==t.poster;this._resetMedia(),this._resetGate(),this._resetActive(),n.each(this.formats,function(u,f){var e=i.format[f].media==="video";return n.each(i.solutions,function(n,u){if(i[u].support[f]&&i._validString(t[f])){var o=u==="html";return e?(o?(i.html.video.gate=!0,i._html_setVideo(t),i.html.active=!0):(i.flash.gate=!0,i._flash_setVideo(t),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i.status.video=!0):(o?(i.html.audio.gate=!0,i._html_setAudio(t),i.html.active=!0):(i.flash.gate=!0,i._flash_setAudio(t),i.flash.active=!0),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.hide(),i.status.video=!1),r=!0,!1}}),r?!1:void 0}),r?(this.status.nativeVideoControls&&this.html.video.gate||!this._validString(t.poster)||(u?this.htmlElement.poster.src=t.poster:this.internal.poster.jq.show()),this.status.srcSet=!0,this.status.media=n.extend({},t),this._updateButtons(!1),this._updateInterface()):this._error({type:n.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:n.jPlayer.errorMsg.NO_SUPPORT,hint:n.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(n){n=typeof n=="number"?n:NaN,this.status.srcSet?this.html.active?this._html_play(n):this.flash.active&&this._flash_play(n):this._urlNotSetError("play")},videoPlay:function(){this.play()},pause:function(n){n=typeof n=="number"?n:NaN,this.status.srcSet?this.html.active?this._html_pause(n):this.flash.active&&this._flash_pause(n):this._urlNotSetError("pause")},pauseOthers:function(){var t=this;n.each(this.instances,function(n,i){t.element!==i&&i.data("jPlayer").status.srcSet&&i.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(n){n=this._limitValue(n,0,100),this.status.srcSet?this.html.active?this._html_playHead(n):this.flash.active&&this._flash_playHead(n):this._urlNotSetError("playHead")},_muted:function(t){this.options.muted=t,this.html.used&&this._html_mute(t),this.flash.used&&this._flash_mute(t),this.html.video.gate||this.html.audio.gate||(this._updateMute(t),this._updateVolume(this.options.volume),this._trigger(n.jPlayer.event.volumechange))},mute:function(n){n=n===t?!0:!!n,this._muted(n)},unmute:function(n){n=n===t?!0:!!n,this._muted(!n)},_updateMute:function(n){n===t&&(n=this.options.muted),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):n?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){t=this._limitValue(t,0,1),this.options.volume=t,this.html.used&&this._html_volume(t),this.flash.used&&this._flash_volume(t),this.html.video.gate||this.html.audio.gate||(this._updateVolume(t),this._trigger(n.jPlayer.event.volumechange))},volumeBar:function(n){if(this.css.jq.volumeBar.length){var t=this.css.jq.volumeBar.offset(),r=n.pageX-t.left,i=this.css.jq.volumeBar.width(),n=this.css.jq.volumeBar.height()-n.pageY+t.top,t=this.css.jq.volumeBar.height();this.options.verticalVolume?this.volume(n/t):this.volume(r/i)}this.options.muted&&this._muted(!1)},volumeBarValue:function(n){this.volumeBar(n)},_updateVolume:function(n){n===t&&(n=this.options.volume),n=this.options.muted?0:n,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](n*100+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(t){var i=this;this.options.cssSelectorAncestor=t,this._removeUiClass(),this.ancestorJq=t?n(t):[],t&&this.ancestorJq.length!==1&&this._warning({type:n.jPlayer.warning.CSS_SELECTOR_COUNT,context:t,message:n.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:n.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),n.each(this.options.cssSelector,function(n,t){i._cssSelector(n,t)})},_cssSelector:function(t,i){var r=this;typeof i=="string"?n.jPlayer.prototype.options.cssSelector[t]?(this.css.jq[t]&&this.css.jq[t].length&&this.css.jq[t].unbind(".jPlayer"),this.options.cssSelector[t]=i,this.css.cs[t]=this.options.cssSelectorAncestor+" "+i,this.css.jq[t]=i?n(this.css.cs[t]):[],this.css.jq[t].length&&this.css.jq[t].bind("click.jPlayer",function(i){return r[t](i),n(this).blur(),!1}),i&&this.css.jq[t].length!==1&&this._warning({type:n.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[t],message:n.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[t].length+" found for "+t+" method.",hint:n.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:n.jPlayer.warning.CSS_SELECTOR_METHOD,context:t,message:n.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:n.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:n.jPlayer.warning.CSS_SELECTOR_STRING,context:i,message:n.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:n.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(n){if(this.css.jq.seekBar){var t=this.css.jq.seekBar.offset(),n=n.pageX-t.left,t=this.css.jq.seekBar.width();this.playHead(100*n/t)}},playBar:function(n){this.seekBar(n)},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(t){this.options.loop!==t&&(this.options.loop=t,this._updateButtons(),this._trigger(n.jPlayer.event.repeat))},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(i,r){var o=i,f,u,e;if(arguments.length===0)return n.extend(!0,{},this.options);if(typeof i=="string"){if(f=i.split("."),r===t){for(o=n.extend(!0,{},this.options),u=0;u<f.length;u++)if(o[f[u]]!==t)o=o[f[u]];else return this._warning({type:n.jPlayer.warning.OPTION_KEY,context:i,message:n.jPlayer.warningMsg.OPTION_KEY,hint:n.jPlayer.warningHint.OPTION_KEY}),t;return o}for(u=o={},e=0;e<f.length;e++)e<f.length-1?(u[f[e]]={},u=u[f[e]]):u[f[e]]=r}return this._setOptions(o),this},_setOptions:function(t){var i=this;return n.each(t,function(n,t){i._setOption(n,t)}),this},_setOption:function(t,i){var r=this;switch(t){case"volume":this.volume(i);break;case"muted":this._muted(i);break;case"cssSelectorAncestor":this._cssSelectorAncestor(i);break;case"cssSelector":n.each(i,function(n,t){r._cssSelector(n,t)});break;case"fullScreen":this.options[t]!==i&&(this._removeUiClass(),this.options[t]=i,this._refreshSize());break;case"size":!this.options.fullScreen&&this.options[t].cssClass!==i.cssClass&&this._removeUiClass(),this.options[t]=n.extend({},this.options[t],i),this._refreshSize();break;case"sizeFull":this.options.fullScreen&&this.options[t].cssClass!==i.cssClass&&this._removeUiClass(),this.options[t]=n.extend({},this.options[t],i),this._refreshSize();break;case"autohide":this.options[t]=n.extend({},this.options[t],i),this._updateAutohide();break;case"loop":this._loop(i);break;case"nativeVideoControls":this.options[t]=n.extend({},this.options[t],i),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullScreen":this.options[t]=n.extend({},this.options[t],i),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[t]=n.extend({},this.options[t],i),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[t]!==i&&((this.options[t]=i)?this._emulateHtmlBridge():this._destroyHtmlBridge())}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(n.jPlayer.event.resize)},_setSize:function(){this.options.fullScreen?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var n=this,t=function(){n.css.jq.gui.fadeIn(n.options.autohide.fadeIn,function(){clearTimeout(n.internal.autohideId),n.internal.autohideId=setTimeout(function(){n.css.jq.gui.fadeOut(n.options.autohide.fadeOut)},n.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(".jPlayerAutohide"),this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",t),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",t),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_html_initMedia:function(){this.htmlElement.media.src=this.status.src,this.options.preload!=="none"&&this._html_load(),this._trigger(n.jPlayer.event.timeupdate)},_html_setAudio:function(t){var i=this;n.each(this.formats,function(n,r){if(i.html.support[r]&&t[r])return i.status.src=t[r],i.status.format[r]=!0,i.status.formatType=r,!1}),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia()},_html_setVideo:function(t){var i=this;n.each(this.formats,function(n,r){if(i.html.support[r]&&t[r])return i.status.src=t[r],i.status.format[r]=!0,i.status.formatType=r,!1}),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia()},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls&&this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(n){var t=this;if(this._html_load(),this.htmlElement.media.play(),!isNaN(n))try{this.htmlElement.media.currentTime=n}catch(i){this.internal.htmlDlyCmdId=setTimeout(function(){t.play(n)},100);return}this._html_checkWaitForPlay()},_html_pause:function(n){var t=this;if(n>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),this.htmlElement.media.pause(),!isNaN(n))try{this.htmlElement.media.currentTime=n}catch(i){this.internal.htmlDlyCmdId=setTimeout(function(){t.pause(n)},100);return}n>0&&this._html_checkWaitForPlay()},_html_playHead:function(n){var t=this;this._html_load();try{if(typeof this.htmlElement.media.seekable=="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=n*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime=n*this.htmlElement.media.duration/100;else throw"e";}catch(i){this.internal.htmlDlyCmdId=setTimeout(function(){t.playHead(n)},100);return}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_volume:function(n){this.html.audio.available&&(this.htmlElement.audio.volume=n),this.html.video.available&&(this.htmlElement.video.volume=n)},_html_mute:function(n){this.html.audio.available&&(this.htmlElement.audio.muted=n),this.html.video.available&&(this.htmlElement.video.muted=n)},_flash_setAudio:function(t){var i=this;try{n.each(this.formats,function(n,r){if(i.flash.support[r]&&t[r]){switch(r){case"m4a":case"fla":i._getMovie().fl_setAudio_m4a(t[r]);break;case"mp3":i._getMovie().fl_setAudio_mp3(t[r]);break;case"rtmpa":i._getMovie().fl_setAudio_rtmp(t[r])}return i.status.src=t[r],i.status.format[r]=!0,i.status.formatType=r,!1}}),this.options.preload==="auto"&&(this._flash_load(),this.status.waitForLoad=!1)}catch(r){this._flashError(r)}},_flash_setVideo:function(t){var i=this;try{n.each(this.formats,function(n,r){if(i.flash.support[r]&&t[r]){switch(r){case"m4v":case"flv":i._getMovie().fl_setVideo_m4v(t[r]);break;case"rtmpv":i._getMovie().fl_setVideo_rtmp(t[r])}return i.status.src=t[r],i.status.format[r]=!0,i.status.formatType=r,!1}}),this.options.preload==="auto"&&(this._flash_load(),this.status.waitForLoad=!1)}catch(r){this._flashError(r)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(n){this._flashError(n)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(n){this._flashError(n)}this.status.waitForLoad=!1},_flash_play:function(n){try{this._getMovie().fl_play(n)}catch(t){this._flashError(t)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(n){try{this._getMovie().fl_pause(n)}catch(t){this._flashError(t)}n>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(n){try{this._getMovie().fl_play_head(n)}catch(t){this._flashError(t)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(n){try{this._getMovie().fl_volume(n)}catch(t){this._flashError(t)}},_flash_mute:function(n){try{this._getMovie().fl_mute(n)}catch(t){this._flashError(t)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(n){var t=!1,i;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n),t=!0}catch(r){}else navigator.plugins&&navigator.mimeTypes.length>0&&(i=navigator.plugins["Shockwave Flash"])&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=n&&(t=!0);return t},_validString:function(n){return n&&typeof n=="string"},_limitValue:function(n,t,i){return n<t?t:n>i?i:n},_urlNotSetError:function(t){this._error({type:n.jPlayer.error.URL_NOT_SET,context:t,message:n.jPlayer.errorMsg.URL_NOT_SET,hint:n.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(t){var i;i=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:n.jPlayer.error[i],context:this.internal.flash.swf,message:n.jPlayer.errorMsg[i]+t.message,hint:n.jPlayer.errorHint[i]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(t){this._trigger(n.jPlayer.event.error,t),this.options.errorAlerts&&this._alert("Error!"+(t.message?"\n\n"+t.message:"")+(t.hint?"\n\n"+t.hint:"")+"\n\nContext: "+t.context)},_warning:function(i){this._trigger(n.jPlayer.event.warning,t,i),this.options.warningAlerts&&this._alert("Warning!"+(i.message?"\n\n"+i.message:"")+(i.hint?"\n\n"+i.hint:"")+"\n\nContext: "+i.context)},_alert:function(n){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+n)},_emulateHtmlBridge:function(){var t=this;n.each(n.jPlayer.emulateMethods.split(/\s+/g),function(n,i){t.internal.domNode[i]=function(n){t[i](n)}}),n.each(n.jPlayer.event,function(i,r){var u=!0;n.each(n.jPlayer.reservedEvent.split(/\s+/g),function(n,t){if(t===i)return u=!1}),u&&t.element.bind(r+".jPlayer.jPlayerHtml",function(){t._emulateHtmlUpdate();var n=document.createEvent("Event");n.initEvent(i,!1,!0),t.internal.domNode.dispatchEvent(n)})})},_emulateHtmlUpdate:function(){var t=this;n.each(n.jPlayer.emulateStatus.split(/\s+/g),function(n,i){t.internal.domNode[i]=t.status[i]}),n.each(n.jPlayer.emulateOptions.split(/\s+/g),function(n,i){t.internal.domNode[i]=t.options[i]})},_destroyHtmlBridge:function(){var t=this;this.element.unbind(".jPlayerHtml"),n.each((n.jPlayer.emulateMethods+" "+n.jPlayer.emulateStatus+" "+n.jPlayer.emulateOptions).split(/\s+/g),function(n,i){delete t.internal.domNode[i]})}},n.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},n.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+n.jPlayer.prototype.version.script+" needs Jplayer.swf version "+n.jPlayer.prototype.version.needFlash+" but found "},n.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},n.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},n.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},n.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})(jQuery),typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return f.lastIndex=0,f.test(n)?'"'+n.replace(f,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var h,l,c,a,v=n,s,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i)),typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,s=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,h=0;h<a;h+=1)s[h]=u(h,e)||"null";return c=s.length===0?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+v+"]":"["+s.join(",")+"]",n=v,c}if(t&&typeof t=="object")for(a=t.length,h=0;h<a;h+=1)typeof t[h]=="string"&&(l=t[h],c=u(l,e),c&&s.push(o(l)+(n?": ":":")+c));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(c=u(l,e),c&&s.push(o(l)+(n?": ":":")+c));return c=s.length===0?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+v+"}":"{"+s.join(",")+"}",n=v,c}}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,f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,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="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,!f||typeof f=="function"||typeof f=="object"&&typeof f.length=="number")return u("",{"":i});throw new Error("JSON.stringify");}),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.prototype.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");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}},typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var u=n.document,f=n.setTimeout||f,e=n.clearTimeout||e,r=n.setInterval||r,i=n.History=n.History||{};if(typeof i.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");i.initHtml4=function(){if(typeof i.initHtml4.initialized!="undefined")return!1;i.initHtml4.initialized=!0,i.enabled=!0,i.savedHashes=[],i.isLastHash=function(n){var r=i.getHashByIndex(),t;return t=n===r,t},i.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},i.saveHash=function(n){return i.isLastHash(n)?!1:(i.savedHashes.push(n),!0)},i.getHashByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedHashes[i.savedHashes.length-1]:n<0?i.savedHashes[i.savedHashes.length+n]:i.savedHashes[n],t},i.discardedHashes={},i.discardedStates={},i.discardState=function(n,t,r){var f=i.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:t},i.discardedStates[f]=u,!0},i.discardHash=function(n,t,r){var u={discardedHash:n,backState:r,forwardState:t};return i.discardedHashes[n]=u,!0},i.discardedState=function(n){var r=i.getHashByState(n),t;return t=i.discardedStates[r]||!1,t},i.discardedHash=function(n){return i.discardedHashes[n]||!1},i.recycleState=function(n){var t=i.getHashByState(n);return i.discardedState(n)&&delete i.discardedStates[t],!0},i.emulated.hashChange&&(i.hashChangeInit=function(){i.checkerFunction=null;var o="",s,t,f,e,h=Boolean(i.getHash());return i.isInternetExplorer()?(s="historyjs-iframe",t=u.createElement("iframe"),t.setAttribute("id",s),t.setAttribute("src","#"),t.style.display="none",u.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close(),f="",e=!1,i.checkerFunction=function(){if(e)return!1;e=!0;var u=i.getHash(),r=i.getHash(t.contentWindow.document);return u!==o?(o=u,r!==u&&(f=r=u,t.contentWindow.document.open(),t.contentWindow.document.close(),t.contentWindow.document.location.hash=i.escapeHash(u)),i.Adapter.trigger(n,"hashchange")):r!==f&&(f=r,h&&r===""?i.back():i.setHash(r,!1)),e=!1,!0}):i.checkerFunction=function(){var t=i.getHash()||"";return t!==o&&(o=t,i.Adapter.trigger(n,"hashchange")),!0},i.intervalList.push(r(i.checkerFunction,i.options.hashChangeInterval)),!0},i.Adapter.onDomLoad(i.hashChangeInit)),i.emulated.pushState&&(i.onHashChange=function(t){var o=t&&t.newURL||i.getLocationHref(),u=i.getHashByUrl(o),r=null,e=null,s=null,f;return i.isLastHash(u)?(i.busy(!1),!1):(i.doubleCheckComplete(),i.saveHash(u),u&&i.isTraditionalAnchor(u)?(i.Adapter.trigger(n,"anchorchange"),i.busy(!1),!1):(r=i.extractState(i.getFullUrl(u||i.getLocationHref()),!0),i.isLastSavedState(r)?(i.busy(!1),!1):(e=i.getHashByState(r),f=i.discardedState(r),f?(i.getHashByIndex(-2)===i.getHashByState(f.forwardState)?i.back(!1):i.forward(!1),!1):(i.pushState(r.data,r.title,encodeURI(r.url),!1),!0))))},i.Adapter.bind(n,"hashchange",i.onHashChange),i.pushState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),o=i.getHashByState(e),c=i.getState(!1),l=i.getHashByState(c),s=i.getHash(),h=i.expectedStateId==e.id;return i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),o===l?(i.busy(!1),!1):(i.saveState(e),h||i.Adapter.trigger(n,"statechange"),!i.isHashEqual(o,s)&&!i.isHashEqual(o,i.getShortUrl(i.getLocationHref()))&&i.setHash(o,!1),i.busy(!1),!0)},i.replaceState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),c=i.getHashByState(e),o=i.getState(!1),h=i.getHashByState(o),s=i.getStateByIndex(-2);return i.discardState(o,e,s),c===h?(i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),i.saveState(e),i.Adapter.trigger(n,"statechange"),i.busy(!1)):i.pushState(e.data,e.title,e.url,!1),!0}),i.emulated.pushState&&i.getHash()&&!i.emulated.hashChange&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},typeof i.init!="undefined"&&i.init()}(window),function(n,t){"use strict";var e=n.console||t,u=n.document,o=n.navigator,f=n.sessionStorage||!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,r=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f.setItem("TEST","1"),f.removeItem("TEST")}catch(y){f=!1}if(r.stringify=r.stringify||r.encode,r.parse=r.parse||r.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)},i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.disableSuid=i.options.disableSuid||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||u.title,i.options.html4Mode=i.options.html4Mode||!1,i.options.delayInit=i.options.delayInit||!1,i.intervalList=[],i.clearAllIntervals=function(){var t,n=i.intervalList;if(typeof n!="undefined"&&n!==null){for(t=0;t<n.length;t++)a(n[t]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=typeof e!="undefined"&&typeof e.log!="undefined"&&typeof e.log.apply!="undefined",i=u.getElementById("log"),n,o,h,f,t;for(s?(f=Array.prototype.slice.call(arguments),n=f.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,f]):e.log.apply(e,[n,f])):n="\n"+arguments[0]+"\n",o=1,h=arguments.length;o<h;++o){if(t=arguments[o],typeof t=="object"&&typeof r!="undefined")try{t=r.stringify(t)}catch(c){}n+="\n"+t+"\n"}return i?(i.value+=n+"\n-----\n",i.scrollTop=i.scrollHeight-i.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=u.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent)),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in u)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=r.stringify(n),t=r.parse(i)):t={},t},i.getRootUrl=function(){var n=u.location.protocol+"//"+(u.location.hostname||u.location.host);return(u.location.port||!1)&&(n+=":"+u.location.port),n+="/",n},i.getBaseHref=function(){var t=u.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var t=i.getState(!1,!1),r=(t||{}).url||i.getLocationHref(),n;return n=r.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"}),n},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var r=n,u=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(r=u==="/"?i.getRootUrl()+n.replace(/^\/+/,""):u==="#"?i.getPageUrl().replace(/#.*/,"")+n:u==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,u=i.getBaseUrl(),r=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(u,"")),t=t.replace(r,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},i.getLocationHref=function(n){return n=n||u,n.URL===n.location.href?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{},i.store.urlToId=i.store.urlToId||{},i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=+new Date+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t,i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u),u},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var f,u,t;return f=i.normalizeState(n),u={data:f.data,title:n.title,url:n.url},t=r.stringify(u),t},i.getStateId=function(n){var r,t;return r=i.normalizeState(n),t=r.id,t},i.getHashByState=function(n){var r,t;return r=i.normalizeState(n),t=r.hash,t},i.extractId=function(n){var r,t,u,i;return i=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(i),u=t?t[1]||n:n,r=t?String(t[2]||""):"",r||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var u=null,r,f;return t=t||!1,r=i.extractId(n),r&&(u=i.getStateById(r)),u||(f=i.getFullUrl(n),r=i.getIdByUrl(f)||!1,r&&(u=i.getStateById(r)),!u&&t&&!i.isTraditionalAnchor(n)&&(u=i.createStateObject(null,null,f))),u},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id,r},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var u=!1,f,t,r;return i.savedStates.length&&(f=n.id,t=i.getLastSavedState(),r=t.id,u=f===r),u},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n],t},i.getCurrentIndex=function(){var n=null;return n=i.savedStates.length<1?0:i.savedStates.length-1,n},i.getHash=function(n){var r=i.getLocationHref(n),t;return t=i.getHashByUrl(r),t},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=decodeURIComponent(t),t},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var r,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),r=i.extractState(n,!0),r&&!i.emulated.pushState?i.pushState(r.data,r.title,r.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):u.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t),t},i.setTitle=function(n){var r=n.title,t;r||(t=i.getStateByIndex(0),t&&t.url===n.url&&(r=t.title||i.options.initialTitle));try{u.getElementsByTagName("title")[0].innerHTML=r.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return u.title=r,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else{if(!(n<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=n;--r)i.back(t)}return i},i.emulated.pushState){var p=function(){};i.pushState=i.pushState||p,i.replaceState=i.replaceState||p}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return i.doubleCheckComplete(),o=i.getHash(),o?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u)?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0))},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=r.parse(f.getItem("History.store"))||{}}catch(w){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,u;try{n=r.parse(f.getItem("History.store"))||{}}catch(o){n={}}n.idToState=n.idToState||{},n.urlToId=n.urlToId||{},n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n,i.normalizeStore(),u=r.stringify(n);try{f.setItem("History.store",u)}catch(e){if(e.code!==DOMException.QUOTA_EXCEEDED_ERR)throw e;f.length&&(f.removeItem("History.store"),f.setItem("History.store",u))}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),i.emulated.pushState||(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash()&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})))},(!i.options||!i.options.delayInit)&&i.init()}(window),function(n,t){jPlayerPlaylist=function(t,i,r){var u=this;this.current=0,this.removing=this.shuffled=this.loop=!1,this.cssSelector=n.extend({},this._cssSelector,t),this.options=n.extend(!0,{},this._options,r),this.playlist=[],this.original=[],this._initPlaylist(i),this.cssSelector.title=this.cssSelector.cssSelectorAncestor+" .jp-title",this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist",this.cssSelector.next=this.cssSelector.cssSelectorAncestor+" .jp-next",this.cssSelector.previous=this.cssSelector.cssSelectorAncestor+" .jp-previous",this.cssSelector.shuffle=this.cssSelector.cssSelectorAncestor+" .jp-shuffle",this.cssSelector.shuffleOff=this.cssSelector.cssSelectorAncestor+" .jp-shuffle-off",this.options.cssSelectorAncestor=this.cssSelector.cssSelectorAncestor,this.options.repeat=function(n){u.loop=n.jPlayer.options.loop},n(this.cssSelector.jPlayer).bind(n.jPlayer.event.ready,function(){u._init()}),n(this.cssSelector.jPlayer).bind(n.jPlayer.event.ended,function(){u.next()}),n(this.cssSelector.jPlayer).bind(n.jPlayer.event.play,function(){n(this).jPlayer("pauseOthers")}),n(this.cssSelector.jPlayer).bind(n.jPlayer.event.resize,function(t){t.jPlayer.options.fullScreen?n(u.cssSelector.title).show():n(u.cssSelector.title).hide()}),n(this.cssSelector.previous).click(function(){return u.previous(),n(this).blur(),!1}),n(this.cssSelector.next).click(function(){return u.next(),n(this).blur(),!1}),n(this.cssSelector.shuffle).click(function(){return u.shuffle(!0),!1}),n(this.cssSelector.shuffleOff).click(function(){return u.shuffle(!1),!1}).hide(),this.options.fullScreen||n(this.cssSelector.title).hide(),n(this.cssSelector.playlist+" ul").empty(),this._createItemHandlers(),n(this.cssSelector.jPlayer).jPlayer(this.options)},jPlayerPlaylist.prototype={_cssSelector:{jPlayer:"#jquery_jplayer_1",cssSelectorAncestor:"#jp_container_1"},_options:{playlistOptions:{autoPlay:!1,loopOnPrevious:!1,shuffleOnLoop:!0,enableRemoveControls:!1,displayTime:"slow",addTime:"fast",removeTime:"fast",shuffleTime:"slow",itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(n,i){if(i===t)return this.options.playlistOptions[n];this.options.playlistOptions[n]=i;switch(n){case"enableRemoveControls":this._updateControls();break;case"itemClass":case"freeGroupClass":case"freeItemClass":case"removeItemClass":this._refresh(!0),this._createItemHandlers()}return this},_init:function(){var n=this;this._refresh(function(){n.options.playlistOptions.autoPlay?n.play(n.current):n.select(n.current)})},_initPlaylist:function(t){this.current=0,this.removing=this.shuffled=!1,this.original=n.extend(!0,[],t),this._originalPlaylist()},_originalPlaylist:function(){var t=this;this.playlist=[],n.each(this.original,function(n){t.playlist[n]=t.original[n]})},_refresh:function(t){var i=this,r;t&&!n.isFunction(t)?(n(this.cssSelector.playlist+" ul").empty(),n.each(this.playlist,function(t){n(i.cssSelector.playlist+" ul").append(i._createListItem(i.playlist[t]))}),this._updateControls()):(r=n(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0,n(this.cssSelector.playlist+" ul").slideUp(r,function(){var r=n(this);n(this).empty(),n.each(i.playlist,function(n){r.append(i._createListItem(i.playlist[n]))}),i._updateControls(),n.isFunction(t)&&t(),i.playlist.length?n(this).slideDown(i.options.playlistOptions.displayTime):n(this).show()}))},_createListItem:function(t){var u=this,i="<li><div>",r;return i+="<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>&times;</a>",t.free&&(r=!0,i+="<span class='"+this.options.playlistOptions.freeGroupClass+"'>(",n.each(t,function(t,f){n.jPlayer.prototype.format[t]&&(r?r=!1:i+=" | ",i+="<a class='"+u.options.playlistOptions.freeItemClass+"' href='"+f+"' tabindex='1'>"+t+"</a>")}),i+=")</span>"),i+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='1'>"+t.title+(t.artist?" <span class='jp-artist'>by "+t.artist+"</span>":"")+"</a>",i+="</div></li>"},_createItemHandlers:function(){var t=this;n(this.cssSelector.playlist+" a."+this.options.playlistOptions.itemClass).die("click").live("click",function(){var i=n(this).parent().parent().index();return t.current!==i?t.play(i):n(t.cssSelector.jPlayer).jPlayer("play"),n(this).blur(),!1}),n(t.cssSelector.playlist+" a."+this.options.playlistOptions.freeItemClass).die("click").live("click",function(){return n(this).parent().parent().find("."+t.options.playlistOptions.itemClass).click(),n(this).blur(),!1}),n(t.cssSelector.playlist+" a."+this.options.playlistOptions.removeItemClass).die("click").live("click",function(){var i=n(this).parent().parent().index();return t.remove(i),n(this).blur(),!1})},_updateControls:function(){this.options.playlistOptions.enableRemoveControls?n(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show():n(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide(),this.shuffled?(n(this.cssSelector.shuffleOff).show(),n(this.cssSelector.shuffle).hide()):(n(this.cssSelector.shuffleOff).hide(),n(this.cssSelector.shuffle).show())},_highlight:function(i){this.playlist.length&&i!==t&&(n(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current"),n(this.cssSelector.playlist+" li:nth-child("+(i+1)+")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current"),n(this.cssSelector.title+" li").html(this.playlist[i].title+(this.playlist[i].artist?" <span class='jp-artist'>by "+this.playlist[i].artist+"</span>":"")))},setPlaylist:function(n){this._initPlaylist(n),this._init()},add:function(t,i){n(this.cssSelector.playlist+" ul").append(this._createListItem(t)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime),this._updateControls(),this.original.push(t),this.playlist.push(t),i?this.play(this.playlist.length-1):this.original.length===1&&this.select(0)},remove:function(i){var r=this;return i===t?(this._initPlaylist([]),this._refresh(function(){n(r.cssSelector.jPlayer).jPlayer("clearMedia")}),!0):this.removing?!1:(i=i<0?r.original.length+i:i,0<=i&&i<this.playlist.length&&(this.removing=!0,n(this.cssSelector.playlist+" li:nth-child("+(i+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){if(n(this).remove(),r.shuffled){var t=r.playlist[i];n.each(r.original,function(n){if(r.original[n]===t)return r.original.splice(n,1),!1})}else r.original.splice(i,1);r.playlist.splice(i,1),r.original.length?i===r.current?(r.current=i<r.original.length?r.current:r.original.length-1,r.select(r.current)):i<r.current&&r.current--:(n(r.cssSelector.jPlayer).jPlayer("clearMedia"),r.current=0,r.shuffled=!1,r._updateControls()),r.removing=!1})),!0)},select:function(t){t=t<0?this.original.length+t:t,0<=t&&t<this.playlist.length?(this.current=t,this._highlight(t),n(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])):this.current=0},play:function(i){i=i<0?this.original.length+i:i,0<=i&&i<this.playlist.length?this.playlist.length&&(this.select(i),n(this.cssSelector.jPlayer).jPlayer("play")):i===t&&n(this.cssSelector.jPlayer).jPlayer("play")},pause:function(){n(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var n=this.current+1<this.playlist.length?this.current+1:0;this.loop?n===0&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&&this.playlist.length>1?this.shuffle(!0,!0):this.play(n):n>0&&this.play(n)},previous:function(){var n=this.current-1>=0?this.current-1:this.playlist.length-1;(this.loop&&this.options.playlistOptions.loopOnPrevious||n<this.playlist.length-1)&&this.play(n)},shuffle:function(i,r){var u=this;i===t&&(i=!this.shuffled),(i||i!==this.shuffled)&&n(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){(u.shuffled=i)?u.playlist.sort(function(){return.5-Math.random()}):u._originalPlaylist(),u._refresh(!0),r||!n(u.cssSelector.jPlayer).data("jPlayer").status.paused?u.play(0):u.select(0),n(this).slideDown(u.options.playlistOptions.shuffleTime)})}}}(jQuery)