(function(b,f){function d(b,e,g){if(g===f&&b.nodeType===1)if(g="data-"+e.replace(A,"$1-$2").toLowerCase(),g=b.getAttribute(g),typeof g==="string"){try{g=g==="true"?!0:g==="false"?!1:g==="null"?null:!m.isNaN(g)?parseFloat(g):U.test(g)?m.parseJSON(g):g}catch(d){}m.data(b,e,g)}else g=f;return g}function k(b){for(var e in b)if(e!=="toJSON")return!1;return!0}function o(b,e,g){var d=e+"defer",h=e+"queue",j=e+"mark",n=m.data(b,d,f,!0);n&&(g==="queue"||!m.data(b,h,f,!0))&&(g==="mark"||!m.data(b,j,f,!0))&&
setTimeout(function(){!m.data(b,h,f,!0)&&!m.data(b,j,f,!0)&&(m.removeData(b,d,!0),n.resolve())},0)}function h(){return!1}function j(){return!0}function g(b,e,g){var d=m.extend({},g[0]);d.type=b;d.originalEvent={};d.liveFired=f;m.event.handle.call(e,d);d.isDefaultPrevented()&&g[0].preventDefault()}function e(b){var e,g,f,d,h,j,n,o,k,H,p,r=[];d=[];h=m._data(this,"events");if(!(b.liveFired===this||!h||!h.live||b.target.disabled||b.button&&b.type==="click")){b.namespace&&(p=RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+
"(\\.|$)"));b.liveFired=this;var y=h.live.slice(0);for(n=0;n<y.length;n++)h=y[n],h.origType.replace(ha,"")===b.type?d.push(h.selector):y.splice(n--,1);d=m(b.target).closest(d,b.currentTarget);o=0;for(k=d.length;o<k;o++){H=d[o];for(n=0;n<y.length;n++)if(h=y[n],H.selector===h.selector&&(!p||p.test(h.namespace))&&!H.elem.disabled){j=H.elem;f=null;if(h.preType==="mouseenter"||h.preType==="mouseleave")b.type=h.preType,(f=m(b.relatedTarget).closest(h.selector)[0])&&m.contains(j,f)&&(f=j);(!f||f!==j)&&r.push({elem:j,
handleObj:h,level:H.level})}}o=0;for(k=r.length;o<k;o++){d=r[o];if(g&&d.level>g)break;b.currentTarget=d.elem;b.data=d.handleObj.data;b.handleObj=d.handleObj;p=d.handleObj.origHandler.apply(d.elem,arguments);if(p===!1||b.isPropagationStopped())if(g=d.level,p===!1&&(e=!1),b.isImmediatePropagationStopped())break}return e}}function n(b,e){return(b&&b!=="*"?b+".":"")+e.replace(ca,"`").replace(V,"&")}function w(b,e,g){e=e||0;if(m.isFunction(e))return m.grep(b,function(b,f){return!!e.call(b,f,b)===g});else if(e.nodeType)return m.grep(b,
function(b){return b===e===g});else if(typeof e==="string"){var f=m.grep(b,function(b){return b.nodeType===1});if(fa.test(e))return m.filter(e,f,!g);else e=m.filter(e,f)}return m.grep(b,function(b){return m.inArray(b,e)>=0===g})}function u(b,e){if(e.nodeType===1&&m.hasData(b)){var g=m.expando,f=m.data(b),d=m.data(e,f);if(f=f[g]){var h=f.events,d=d[g]=m.extend({},f);if(h){delete d.handle;d.events={};for(var j in h){g=0;for(f=h[j].length;g<f;g++)m.event.add(e,j+(h[j][g].namespace?".":"")+h[j][g].namespace,
h[j][g],h[j][g].data)}}}}}function s(b,e){var g;if(e.nodeType===1){e.clearAttributes&&e.clearAttributes();e.mergeAttributes&&e.mergeAttributes(b);g=e.nodeName.toLowerCase();if(g==="object")e.outerHTML=b.outerHTML;else if(g==="input"&&(b.type==="checkbox"||b.type==="radio")){if(b.checked)e.defaultChecked=e.checked=b.checked;if(e.value!==b.value)e.value=b.value}else if(g==="option")e.selected=b.defaultSelected;else if(g==="input"||g==="textarea")e.defaultValue=b.defaultValue;e.removeAttribute(m.expando)}}
function x(b){return"getElementsByTagName"in b?b.getElementsByTagName("*"):"querySelectorAll"in b?b.querySelectorAll("*"):[]}function z(b){if(b.type==="checkbox"||b.type==="radio")b.defaultChecked=b.checked}function q(b){m.nodeName(b,"input")?z(b):"getElementsByTagName"in b&&m.grep(b.getElementsByTagName("input"),z)}function C(b,e){e.src?m.ajax({url:e.src,async:!1,dataType:"script"}):m.globalEval((e.text||e.textContent||e.innerHTML||"").replace(ja,"/*$0*/"));e.parentNode&&e.parentNode.removeChild(e)}
function B(b,e,g){var f=e==="width"?b.offsetWidth:b.offsetHeight,d=e==="width"?Fa:Ua;if(f>0)return g!=="border"&&m.each(d,function(){g||(f-=parseFloat(m.css(b,"padding"+this))||0);g==="margin"?f+=parseFloat(m.css(b,g+this))||0:f-=parseFloat(m.css(b,"border"+this+"Width"))||0}),f+"px";f=wa(b,e,e);if(f<0||f==null)f=b.style[e]||0;f=parseFloat(f)||0;g&&m.each(d,function(){f+=parseFloat(m.css(b,"padding"+this))||0;g!=="padding"&&(f+=parseFloat(m.css(b,"border"+this+"Width"))||0);g==="margin"&&(f+=parseFloat(m.css(b,
g+this))||0)});return f+"px"}function D(b){return function(e,g){var W;typeof e!=="string"&&(g=e,e="*");if(m.isFunction(g))for(var f=e.toLowerCase().split(gb),d=0,h=f.length,j,n;d<h;d++)j=f[d],(n=/^\+/.test(j))&&(j=j.substr(1)||"*"),W=b[j]=b[j]||[],j=W,j[n?"unshift":"push"](g)}}function y(b,e,g,d,h,m){h=h||e.dataTypes[0];m=m||{};m[h]=!0;for(var h=b[h],j=0,n=h?h.length:0,o=b===ab,k;j<n&&(o||!k);j++)k=h[j](e,g,d),typeof k==="string"&&(!o||m[k]?k=f:(e.dataTypes.unshift(k),k=y(b,e,g,d,k,m)));if((o||!k)&&
!m["*"])k=y(b,e,g,d,"*",m);return k}function r(b,e,g,f){if(m.isArray(e))m.each(e,function(e,d){g||xa.test(b)?f(b,d):r(b+"["+(typeof d==="object"||m.isArray(d)?e:"")+"]",d,g,f)});else if(!g&&e!=null&&typeof e==="object")for(var d in e)r(b+"["+d+"]",e[d],g,f);else f(b,e)}function E(){try{return new b.XMLHttpRequest}catch(e){}}function I(){setTimeout(F,0);return Xa=m.now()}function F(){Xa=f}function L(b,e){var g={};m.each(hb.concat.apply([],hb.slice(0,e)),function(){g[this]=b});return g}function O(b){if(!bb[b]){var e=
v.body,g=m("<"+b+">").appendTo(e),f=g.css("display");g.remove();if(f==="none"||f===""){if(!ya)ya=v.createElement("iframe"),ya.frameBorder=ya.width=ya.height=0;e.appendChild(ya);if(!Ka||!ya.createElement)Ka=(ya.contentWindow||ya.contentDocument).document,Ka.write((v.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),Ka.close();g=Ka.createElement(b);Ka.body.appendChild(g);f=m.css(g,"display");e.removeChild(ya)}bb[b]=f}return bb[b]}function J(b){return m.isWindow(b)?b:b.nodeType===9?b.defaultView||
b.parentWindow:!1}var v=b.document,G=b.navigator,N=b.location,m=function(){function e(){if(!g.isReady){try{v.documentElement.doScroll("left")}catch(b){setTimeout(e,1);return}g.ready()}}var g=function(b,e){return new g.fn.init(b,e,m)},d=b.jQuery,h=b.$,m,j=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,n=/\S/,o=/^\s+/,k=/\s+$/,H=/\d/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,r=/^[\],:{}\s]*$/,y=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,u=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,
w=/(webkit)[ \/]([\w.]+)/,A=/(opera)(?:.*version)?[ \/]([\w.]+)/,s=/(msie) ([\w.]+)/,z=/(mozilla)(?:.*? rv:([\w.]+))?/,J=/-([a-z])/ig,xa=function(b,e){return e.toUpperCase()},C=G.userAgent,E,N,x=Object.prototype.toString,B=Object.prototype.hasOwnProperty,na=Array.prototype.push,I=Array.prototype.slice,U=String.prototype.trim,Y=Array.prototype.indexOf,T={};g.fn=g.prototype={constructor:g,init:function(b,e,d){var h;if(!b)return this;if(b.nodeType)return this.context=this[0]=b,this.length=1,this;if(b===
"body"&&!e&&v.body)return this.context=v,this[0]=v.body,this.selector=b,this.length=1,this;if(typeof b==="string")if((h=b.charAt(0)==="<"&&b.charAt(b.length-1)===">"&&b.length>=3?[null,b,null]:j.exec(b))&&(h[1]||!e))if(h[1])return d=(e=e instanceof g?e[0]:e)?e.ownerDocument||e:v,(b=p.exec(b))?g.isPlainObject(e)?(b=[v.createElement(b[1])],g.fn.attr.call(b,e,!0)):b=[d.createElement(b[1])]:(b=g.buildFragment([h[1]],[d]),b=(b.cacheable?g.clone(b.fragment):b.fragment).childNodes),g.merge(this,b);else{if((e=
v.getElementById(h[2]))&&e.parentNode){if(e.id!==h[2])return d.find(b);this.length=1;this[0]=e}this.context=v;this.selector=b;return this}else return!e||e.jquery?(e||d).find(b):this.constructor(e).find(b);else if(g.isFunction(b))return d.ready(b);if(b.selector!==f)this.selector=b.selector,this.context=b.context;return g.makeArray(b,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(b){return b==null?this.toArray():
b<0?this[this.length+b]:this[b]},pushStack:function(b,e,f){var d=this.constructor();g.isArray(b)?na.apply(d,b):g.merge(d,b);d.prevObject=this;d.context=this.context;if(e==="find")d.selector=this.selector+(this.selector?" ":"")+f;else if(e)d.selector=this.selector+"."+e+"("+f+")";return d},each:function(b,e){return g.each(this,b,e)},ready:function(b){g.bindReady();E.done(b);return this},eq:function(b){return b===-1?this.slice(b):this.slice(b,+b+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(b){return this.pushStack(g.map(this,function(e,g){return b.call(e,g,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:na,sort:[].sort,splice:[].splice};g.fn.init.prototype=g.fn;g.extend=g.fn.extend=function(){var b,e,d,h,W,m=arguments[0]||{},j=1,n=arguments.length,o=!1;typeof m==="boolean"&&(o=m,m=arguments[1]||{},j=2);typeof m!=="object"&&!g.isFunction(m)&&(m=
{});n===j&&(m=this,--j);for(;j<n;j++)if((b=arguments[j])!=null)for(e in b)d=m[e],h=b[e],m!==h&&(o&&h&&(g.isPlainObject(h)||(W=g.isArray(h)))?(W?(W=!1,d=d&&g.isArray(d)?d:[]):d=d&&g.isPlainObject(d)?d:{},m[e]=g.extend(o,d,h)):h!==f&&(m[e]=h));return m};g.extend({noConflict:function(e){if(b.$===g)b.$=h;if(e&&b.jQuery===g)b.jQuery=d;return g},isReady:!1,readyWait:1,holdReady:function(b){b?g.readyWait++:g.ready(!0)},ready:function(b){if(b===!0&&!--g.readyWait||b!==!0&&!g.isReady){if(!v.body)return setTimeout(g.ready,
1);g.isReady=!0;b!==!0&&--g.readyWait>0||(E.resolveWith(v,[g]),g.fn.trigger&&g(v).trigger("ready").unbind("ready"))}},bindReady:function(){if(!E){E=g._Deferred();if(v.readyState==="complete")return setTimeout(g.ready,1);if(v.addEventListener)v.addEventListener("DOMContentLoaded",N,!1),b.addEventListener("load",g.ready,!1);else if(v.attachEvent){v.attachEvent("onreadystatechange",N);b.attachEvent("onload",g.ready);var f=!1;try{f=b.frameElement==null}catch(d){}v.documentElement.doScroll&&f&&e()}}},
isFunction:function(b){return g.type(b)==="function"},isArray:Array.isArray||function(b){return g.type(b)==="array"},isWindow:function(b){return b&&typeof b==="object"&&"setInterval"in b},isNaN:function(b){return b==null||!H.test(b)||isNaN(b)},type:function(b){return b==null?String(b):T[x.call(b)]||"object"},isPlainObject:function(b){if(!b||g.type(b)!=="object"||b.nodeType||g.isWindow(b))return!1;if(b.constructor&&!B.call(b,"constructor")&&!B.call(b.constructor.prototype,"isPrototypeOf"))return!1;
for(var e in b);return e===f||B.call(b,e)},isEmptyObject:function(b){for(var e in b)return!1;return!0},error:function(b){throw b;},parseJSON:function(e){if(typeof e!=="string"||!e)return null;e=g.trim(e);if(b.JSON&&b.JSON.parse)return b.JSON.parse(e);if(r.test(e.replace(y,"@").replace(u,"]").replace(q,"")))return(new Function("return "+e))();g.error("Invalid JSON: "+e)},parseXML:function(e,f,d){b.DOMParser?(d=new DOMParser,f=d.parseFromString(e,"text/xml")):(f=new ActiveXObject("Microsoft.XMLDOM"),
f.async="false",f.loadXML(e));d=f.documentElement;(!d||!d.nodeName||d.nodeName==="parsererror")&&g.error("Invalid XML: "+e);return f},noop:function(){},globalEval:function(e){e&&n.test(e)&&(b.execScript||function(e){b.eval.call(b,e)})(e)},camelCase:function(b){return b.replace(J,xa)},nodeName:function(b,e){return b.nodeName&&b.nodeName.toUpperCase()===e.toUpperCase()},each:function(b,e,d){var h,W=0,m=b.length,j=m===f||g.isFunction(b);if(d)if(j)for(h in b){if(e.apply(b[h],d)===!1)break}else for(;W<
m;){if(e.apply(b[W++],d)===!1)break}else if(j)for(h in b){if(e.call(b[h],h,b[h])===!1)break}else for(;W<m;)if(e.call(b[W],W,b[W++])===!1)break;return b},trim:U?function(b){return b==null?"":U.call(b)}:function(b){return b==null?"":b.toString().replace(o,"").replace(k,"")},makeArray:function(b,e){var f=e||[];if(b!=null){var d=g.type(b);b.length==null||d==="string"||d==="function"||d==="regexp"||g.isWindow(b)?na.call(f,b):g.merge(f,b)}return f},inArray:function(b,e){if(Y)return Y.call(e,b);for(var g=
0,f=e.length;g<f;g++)if(e[g]===b)return g;return-1},merge:function(b,e){var g=b.length,d=0;if(typeof e.length==="number")for(var h=e.length;d<h;d++)b[g++]=e[d];else for(;e[d]!==f;)b[g++]=e[d++];b.length=g;return b},grep:function(b,e,g){for(var f=[],d,g=!!g,h=0,W=b.length;h<W;h++)d=!!e(b[h],h),g!==d&&f.push(b[h]);return f},map:function(b,e,d){var h,W,m=[],j=0,n=b.length;if(b instanceof g||n!==f&&typeof n==="number"&&(n>0&&b[0]&&b[n-1]||n===0||g.isArray(b)))for(;j<n;j++)h=e(b[j],j,d),h!=null&&(m[m.length]=
h);else for(W in b)h=e(b[W],W,d),h!=null&&(m[m.length]=h);return m.concat.apply([],m)},guid:1,proxy:function(b,e){if(typeof e==="string")var d=b[e],e=b,b=d;if(!g.isFunction(b))return f;var h=I.call(arguments,2),d=function(){return b.apply(e,h.concat(I.call(arguments)))};d.guid=b.guid=b.guid||d.guid||g.guid++;return d},access:function(b,e,d,h,W,m){var j=b.length;if(typeof e==="object"){for(var n in e)g.access(b,n,e[n],h,W,d);return b}if(d!==f){h=!m&&h&&g.isFunction(d);for(n=0;n<j;n++)W(b[n],e,h?d.call(b[n],
n,W(b[n],e)):d,m);return b}return j?W(b[0],e):f},now:function(){return(new Date).getTime()},uaMatch:function(b){b=b.toLowerCase();b=w.exec(b)||A.exec(b)||s.exec(b)||b.indexOf("compatible")<0&&z.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function b(e,g){return new b.fn.init(e,g)}g.extend(!0,b,this);b.superclass=this;b.fn=b.prototype=this();b.fn.constructor=b;b.sub=this.sub;b.fn.init=function(f,d){d&&d instanceof g&&!(d instanceof b)&&(d=b(d));return g.fn.init.call(this,
f,d,e)};b.fn.init.prototype=b.fn;var e=b(v);return b},browser:{}});g.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b,e){T["[object "+e+"]"]=e.toLowerCase()});C=g.uaMatch(C);if(C.browser)g.browser[C.browser]=!0,g.browser.version=C.version;if(g.browser.webkit)g.browser.safari=!0;n.test("\u00a0")&&(o=/^[\s\xA0]+/,k=/[\s\xA0]+$/);m=g(v);v.addEventListener?N=function(){v.removeEventListener("DOMContentLoaded",N,!1);g.ready()}:v.attachEvent&&(N=function(){v.readyState===
"complete"&&(v.detachEvent("onreadystatechange",N),g.ready())});return g}(),P="done fail isResolved isRejected promise then always pipe".split(" "),M=[].slice;m.extend({_Deferred:function(){var b=[],e,g,f,d={done:function(){if(!f){var g=arguments,h,j,n,o,k;e&&(k=e,e=0);h=0;for(j=g.length;h<j;h++)n=g[h],o=m.type(n),o==="array"?d.done.apply(d,n):o==="function"&&b.push(n);k&&d.resolveWith(k[0],k[1])}return this},resolveWith:function(d,h){if(!f&&!e&&!g){h=h||[];g=1;try{for(;b[0];)b.shift().apply(d,h)}finally{e=
[d,h],g=0}}return this},resolve:function(){d.resolveWith(this,arguments);return this},isResolved:function(){return!(!g&&!e)},cancel:function(){f=1;b=[];return this}};return d},Deferred:function(b){var e=m._Deferred(),g=m._Deferred(),f;m.extend(e,{then:function(b,g){e.done(b).fail(g);return this},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)},fail:g.done,rejectWith:g.resolveWith,reject:g.resolve,isRejected:g.isResolved,pipe:function(b,g){return m.Deferred(function(f){m.each({done:[b,
"resolve"],fail:[g,"reject"]},function(b,g){var d=g[0],h=g[1],W;if(m.isFunction(d))e[b](function(){if((W=d.apply(this,arguments))&&m.isFunction(W.promise))W.promise().then(f.resolve,f.reject);else f[h](W)});else e[b](f[h])})}).promise()},promise:function(b){if(b==null){if(f)return f;f=b={}}for(var g=P.length;g--;)b[P[g]]=e[P[g]];return b}});e.done(g.cancel).fail(e.cancel);delete e.cancel;b&&b.call(e,e);return e},when:function(b){function e(b){return function(e){g[b]=arguments.length>1?M.call(arguments,
0):e;--h||j.resolveWith(j,M.call(g,0))}}var g=arguments,f=0,d=g.length,h=d,j=d<=1&&b&&m.isFunction(b.promise)?b:m.Deferred();if(d>1){for(;f<d;f++)g[f]&&m.isFunction(g[f].promise)?g[f].promise().then(e(f),j.reject):--h;h||j.resolveWith(j,g)}else j!==b&&j.resolveWith(j,d?[b]:[]);return j.promise()}});m.support=function(){var b=v.createElement("div"),e=v.documentElement,g,f,d,h,j,n;b.setAttribute("className","t");b.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
g=b.getElementsByTagName("*");f=b.getElementsByTagName("a")[0];if(!g||!g.length||!f)return{};d=v.createElement("select");h=d.appendChild(v.createElement("option"));g=b.getElementsByTagName("input")[0];j={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/top/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,
checkOn:g.value==="on",optSelected:h.selected,getSetAttribute:b.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};g.checked=!0;j.noCloneChecked=g.cloneNode(!0).checked;d.disabled=!0;j.optDisabled=!h.disabled;try{delete b.test}catch(o){j.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function(){j.noCloneEvent=!1}),b.cloneNode(!0).fireEvent("onclick"));
g=v.createElement("input");g.value="t";g.setAttribute("type","radio");j.radioValue=g.value==="t";g.setAttribute("checked","checked");b.appendChild(g);f=v.createDocumentFragment();f.appendChild(b.firstChild);j.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked;b.innerHTML="";b.style.width=b.style.paddingLeft="1px";d=v.getElementsByTagName("body")[0];f=v.createElement(d?"div":"body");h={visibility:"hidden",width:0,height:0,border:0,margin:0};d&&m.extend(h,{position:"absolute",left:-1E3,top:-1E3});
for(n in h)f.style[n]=h[n];f.appendChild(b);e=d||e;e.insertBefore(f,e.firstChild);j.appendChecked=g.checked;j.boxModel=b.offsetWidth===2;if("zoom"in b.style)b.style.display="inline",b.style.zoom=1,j.inlineBlockNeedsLayout=b.offsetWidth===2,b.style.display="",b.innerHTML="<div style='width:4px;'></div>",j.shrinkWrapBlocks=b.offsetWidth!==2;b.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";d=b.getElementsByTagName("td");g=d[0].offsetHeight===0;d[0].style.display=
"";d[1].style.display="none";j.reliableHiddenOffsets=g&&d[0].offsetHeight===0;b.innerHTML="";if(v.defaultView&&v.defaultView.getComputedStyle)g=v.createElement("div"),g.style.width="0",g.style.marginRight="0",b.appendChild(g),j.reliableMarginRight=(parseInt((v.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0;f.innerHTML="";e.removeChild(f);if(b.attachEvent)for(n in{submit:1,change:1,focusin:1})e="on"+n,g=e in b,g||(b.setAttribute(e,"return;"),g=typeof b[e]==="function"),
j[n+"Bubbles"]=g;f=f=d=h=d=g=b=g=null;return j}();m.boxModel=m.support.boxModel;var U=/^(?:\{.*\}|\[.*\])$/,A=/([a-z])([A-Z])/g;m.extend({cache:{},uuid:0,expando:"jQuery"+(m.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?m.cache[b[m.expando]]:b[m.expando];return!!b&&!k(b)},data:function(b,e,g,d){if(m.acceptData(b)){var h=m.expando,j=typeof e==="string",n=b.nodeType,o=n?m.cache:b,k=n?b[m.expando]:
b[m.expando]&&m.expando;if(k&&(!d||!k||o[k][h])||!(j&&g===f)){if(!k)n?b[m.expando]=k=++m.uuid:k=m.expando;if(!o[k]&&(o[k]={},!n))o[k].toJSON=m.noop;if(typeof e==="object"||typeof e==="function")d?o[k][h]=m.extend(o[k][h],e):o[k]=m.extend(o[k],e);b=o[k];d&&(b[h]||(b[h]={}),b=b[h]);g!==f&&(b[m.camelCase(e)]=g);if(e==="events"&&!b[e])return b[h]&&b[h].events;return j?b[m.camelCase(e)]||b[e]:b}}},removeData:function(e,g,f){if(m.acceptData(e)){var d=m.expando,h=e.nodeType,j=h?m.cache:e,n=h?e[m.expando]:
m.expando;if(j[n]){if(g){var o=f?j[n][d]:j[n];if(o&&(delete o[g],!k(o)))return}if(f&&(delete j[n][d],!k(j[n])))return;g=j[n][d];m.support.deleteExpando||j!=b?delete j[n]:j[n]=null;if(g){j[n]={};if(!h)j[n].toJSON=m.noop;j[n][d]=g}else h&&(m.support.deleteExpando?delete e[m.expando]:e.removeAttribute?e.removeAttribute(m.expando):e[m.expando]=null)}}},_data:function(b,e,g){return m.data(b,e,g,!0)},acceptData:function(b){if(b.nodeName){var e=m.noData[b.nodeName.toLowerCase()];if(e)return!(e===!0||b.getAttribute("classid")!==
e)}return!0}});m.fn.extend({data:function(b,e){var g=null;if(typeof b==="undefined"){if(this.length&&(g=m.data(this[0]),this[0].nodeType===1))for(var h=this[0].attributes,j,n=0,o=h.length;n<o;n++)j=h[n].name,j.indexOf("data-")===0&&(j=m.camelCase(j.substring(5)),d(this[0],j,g[j]));return g}else if(typeof b==="object")return this.each(function(){m.data(this,b)});var k=b.split(".");k[1]=k[1]?"."+k[1]:"";return e===f?(g=this.triggerHandler("getData"+k[1]+"!",[k[0]]),g===f&&this.length&&(g=m.data(this[0],
b),g=d(this[0],b,g)),g===f&&k[1]?this.data(k[0]):g):this.each(function(){var g=m(this),f=[k[0],e];g.triggerHandler("setData"+k[1]+"!",f);m.data(this,b,e);g.triggerHandler("changeData"+k[1]+"!",f)})},removeData:function(b){return this.each(function(){m.removeData(this,b)})}});m.extend({_mark:function(b,e){b&&(e=(e||"fx")+"mark",m.data(b,e,(m.data(b,e,f,!0)||0)+1,!0))},_unmark:function(b,e,g){b!==!0&&(g=e,e=b,b=!1);if(e){var g=g||"fx",d=g+"mark";(b=b?0:(m.data(e,d,f,!0)||1)-1)?m.data(e,d,b,!0):(m.removeData(e,
d,!0),o(e,g,"mark"))}},queue:function(b,e,g){if(b){var e=(e||"fx")+"queue",d=m.data(b,e,f,!0);g&&(!d||m.isArray(g)?d=m.data(b,e,m.makeArray(g),!0):d.push(g));return d||[]}},dequeue:function(b,e){var e=e||"fx",g=m.queue(b,e),f=g.shift();f==="inprogress"&&(f=g.shift());f&&(e==="fx"&&g.unshift("inprogress"),f.call(b,function(){m.dequeue(b,e)}));g.length||(m.removeData(b,e+"queue",!0),o(b,e,"queue"))}});m.fn.extend({queue:function(b,e){typeof b!=="string"&&(e=b,b="fx");if(e===f)return m.queue(this[0],
b);return this.each(function(){var g=m.queue(this,b,e);b==="fx"&&g[0]!=="inprogress"&&m.dequeue(this,b)})},dequeue:function(b){return this.each(function(){m.dequeue(this,b)})},delay:function(b,e){b=m.fx?m.fx.speeds[b]||b:b;e=e||"fx";return this.queue(e,function(){var g=this;setTimeout(function(){m.dequeue(g,e)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])},promise:function(b){function e(){--j||g.resolveWith(d,[d])}typeof b!=="string"&&(b=f);var b=b||"fx",g=m.Deferred(),d=this,h=d.length,
j=1,n=b+"defer",k=b+"queue";b+="mark";for(var o;h--;)if(o=m.data(d[h],n,f,!0)||(m.data(d[h],k,f,!0)||m.data(d[h],b,f,!0))&&m.data(d[h],n,m._Deferred(),!0))j++,o.done(e);e();return g.promise()}});var T=/[\n\t\r]/g,R=/\s+/,p=/\r/g,S=/^(?:button|input)$/i,Q=/^(?:button|input|object|select|textarea)$/i,K=/^a(?:rea)?$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,aa=/\:|^on/,Z,ga;m.fn.extend({attr:function(b,e){return m.access(this,
b,e,!0,m.attr)},removeAttr:function(b){return this.each(function(){m.removeAttr(this,b)})},prop:function(b,e){return m.access(this,b,e,!0,m.prop)},removeProp:function(b){b=m.propFix[b]||b;return this.each(function(){try{this[b]=f,delete this[b]}catch(e){}})},addClass:function(b){var e,g,f,d,h,j,n;if(m.isFunction(b))return this.each(function(e){m(this).addClass(b.call(this,e,this.className))});if(b&&typeof b==="string"){e=b.split(R);g=0;for(f=this.length;g<f;g++)if(d=this[g],d.nodeType===1)if(!d.className&&
e.length===1)d.className=b;else{h=" "+d.className+" ";j=0;for(n=e.length;j<n;j++)~h.indexOf(" "+e[j]+" ")||(h+=e[j]+" ");d.className=m.trim(h)}}return this},removeClass:function(b){var e,g,d,h,j,n,k;if(m.isFunction(b))return this.each(function(e){m(this).removeClass(b.call(this,e,this.className))});if(b&&typeof b==="string"||b===f){e=(b||"").split(R);g=0;for(d=this.length;g<d;g++)if(h=this[g],h.nodeType===1&&h.className)if(b){j=(" "+h.className+" ").replace(T," ");n=0;for(k=e.length;n<k;n++)j=j.replace(" "+
e[n]+" "," ");h.className=m.trim(j)}else h.className=""}return this},toggleClass:function(b,e){var g=typeof b,f=typeof e==="boolean";if(m.isFunction(b))return this.each(function(g){m(this).toggleClass(b.call(this,g,this.className,e),e)});return this.each(function(){if(g==="string")for(var d,h=0,j=m(this),n=e,k=b.split(R);d=k[h++];)n=f?n:!j.hasClass(d),j[n?"addClass":"removeClass"](d);else if(g==="undefined"||g==="boolean")this.className&&m._data(this,"__className__",this.className),this.className=
this.className||b===!1?"":m._data(this,"__className__")||""})},hasClass:function(b){for(var b=" "+b+" ",e=0,g=this.length;e<g;e++)if((" "+this[e].className+" ").replace(T," ").indexOf(b)>-1)return!0;return!1},val:function(b){var e,g,d=this[0];if(!arguments.length){if(d){if((e=m.valHooks[d.nodeName.toLowerCase()]||m.valHooks[d.type])&&"get"in e&&(g=e.get(d,"value"))!==f)return g;g=d.value;return typeof g==="string"?g.replace(p,""):g==null?"":g}return f}var h=m.isFunction(b);return this.each(function(g){var d=
m(this);if(this.nodeType===1&&(g=h?b.call(this,g,d.val()):b,g==null?g="":typeof g==="number"?g+="":m.isArray(g)&&(g=m.map(g,function(b){return b==null?"":b+""})),e=m.valHooks[this.nodeName.toLowerCase()]||m.valHooks[this.type],!e||!("set"in e)||e.set(this,g,"value")===f))this.value=g})}});m.extend({valHooks:{option:{get:function(b){var e=b.attributes.value;return!e||e.specified?b.value:b.text}},select:{get:function(b){var e,g=b.selectedIndex,f=[],d=b.options,b=b.type==="select-one";if(g<0)return null;
for(var h=b?g:0,j=b?g+1:d.length;h<j;h++)if(e=d[h],e.selected&&(m.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!m.nodeName(e.parentNode,"optgroup"))){e=m(e).val();if(b)return e;f.push(e)}if(b&&!f.length&&d.length)return m(d[g]).val();return f},set:function(b,e){var g=m.makeArray(e);m(b).find("option").each(function(){this.selected=m.inArray(m(this).val(),g)>=0});if(!g.length)b.selectedIndex=-1;return g}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,
width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(b,e,g,d){var h=b.nodeType;if(!b||h===3||h===8||h===2)return f;if(d&&e in m.attrFn)return m(b)[e](g);if(!("getAttribute"in b))return m.prop(b,e,g);var j,n;if(d=h!==1||!m.isXMLDoc(b))if(e=m.attrFix[e]||e,n=m.attrHooks[e],!n)if(X.test(e))n=ga;else if(Z&&e!=="className"&&(m.nodeName(b,"form")||aa.test(e)))n=Z;return g!==f?g===null?(m.removeAttr(b,e),f):n&&"set"in n&&d&&(j=n.set(b,g,e))!==f?j:(b.setAttribute(e,""+g),g):n&&"get"in
n&&d&&(j=n.get(b,e))!==null?j:(j=b.getAttribute(e),j===null?f:j)},removeAttr:function(b,e){var g;if(b.nodeType===1&&(e=m.attrFix[e]||e,m.support.getSetAttribute?b.removeAttribute(e):(m.attr(b,e,""),b.removeAttributeNode(b.getAttributeNode(e))),X.test(e)&&(g=m.propFix[e]||e)in b))b[g]=!1},attrHooks:{type:{set:function(b,e){if(S.test(b.nodeName)&&b.parentNode)m.error("type property can't be changed");else if(!m.support.radioValue&&e==="radio"&&m.nodeName(b,"input")){var g=b.value;b.setAttribute("type",
e);if(g)b.value=g;return e}}},tabIndex:{get:function(b){var e=b.getAttributeNode("tabIndex");return e&&e.specified?parseInt(e.value,10):Q.test(b.nodeName)||K.test(b.nodeName)&&b.href?0:f}},value:{get:function(b,e){if(Z&&m.nodeName(b,"button"))return Z.get(b,e);return e in b?b.value:null},set:function(b,e,g){if(Z&&m.nodeName(b,"button"))return Z.set(b,e,g);b.value=e}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",
cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(b,e,g){var d=b.nodeType;if(!b||d===3||d===8||d===2)return f;var h,j;if(d!==1||!m.isXMLDoc(b))e=m.propFix[e]||e,j=m.propHooks[e];return g!==f?j&&"set"in j&&(h=j.set(b,g,e))!==f?h:b[e]=g:j&&"get"in j&&(h=j.get(b,e))!==f?h:b[e]},propHooks:{}});ga={get:function(b,e){return m.prop(b,e)?e.toLowerCase():f},set:function(b,e,g){e===!1?m.removeAttr(b,g):(e=
m.propFix[g]||g,e in b&&(b[e]=!0),b.setAttribute(g,g.toLowerCase()));return g}};if(!m.support.getSetAttribute)m.attrFix=m.propFix,Z=m.attrHooks.name=m.attrHooks.title=m.valHooks.button={get:function(b,e){var g;return(g=b.getAttributeNode(e))&&g.nodeValue!==""?g.nodeValue:f},set:function(b,e,g){if(b=b.getAttributeNode(g))return b.nodeValue=e}},m.each(["width","height"],function(b,e){m.attrHooks[e]=m.extend(m.attrHooks[e],{set:function(b,g){if(g==="")return b.setAttribute(e,"auto"),g}})});m.support.hrefNormalized||
m.each(["href","src","width","height"],function(b,e){m.attrHooks[e]=m.extend(m.attrHooks[e],{get:function(b){b=b.getAttribute(e,2);return b===null?f:b}})});if(!m.support.style)m.attrHooks.style={get:function(b){return b.style.cssText.toLowerCase()||f},set:function(b,e){return b.style.cssText=""+e}};if(!m.support.optSelected)m.propHooks.selected=m.extend(m.propHooks.selected,{get:function(){}});m.support.checkOn||m.each(["radio","checkbox"],function(){m.valHooks[this]={get:function(b){return b.getAttribute("value")===
null?"on":b.value}}});m.each(["radio","checkbox"],function(){m.valHooks[this]=m.extend(m.valHooks[this],{set:function(b,e){if(m.isArray(e))return b.checked=m.inArray(m(b).val(),e)>=0}})});var ha=/\.(.*)$/,oa=/^(?:textarea|input|select)$/i,ca=/\./g,V=/ /g,da=/[^\w\s.|`]/g,za=function(b){return b.replace(da,"\\$&")};m.event={add:function(b,e,g,d){if(!(b.nodeType===3||b.nodeType===8)){if(g===!1)g=h;else if(!g)return;var j,n;if(g.handler)j=g,g=j.handler;if(!g.guid)g.guid=m.guid++;if(n=m._data(b)){var k=
n.events,o=n.handle;if(!k)n.events=k={};if(!o)n.handle=o=function(b){return typeof m!=="undefined"&&(!b||m.event.triggered!==b.type)?m.event.handle.apply(o.elem,arguments):f};o.elem=b;for(var e=e.split(" "),H,p=0,r;H=e[p++];){n=j?m.extend({},j):{handler:g,data:d};H.indexOf(".")>-1?(r=H.split("."),H=r.shift(),n.namespace=r.slice(0).sort().join(".")):(r=[],n.namespace="");n.type=H;if(!n.guid)n.guid=g.guid;var y=k[H],u=m.event.special[H]||{};if(!y&&(y=k[H]=[],!u.setup||u.setup.call(b,d,r,o)===!1))b.addEventListener?
b.addEventListener(H,o,!1):b.attachEvent&&b.attachEvent("on"+H,o);if(u.add&&(u.add.call(b,n),!n.handler.guid))n.handler.guid=g.guid;y.push(n);m.event.global[H]=!0}b=null}}},global:{},remove:function(b,e,g,d){if(!(b.nodeType===3||b.nodeType===8)){g===!1&&(g=h);var j,n,k=0,o,H,p,r,y,u,q=m.hasData(b)&&m._data(b),w=q&&q.events;if(q&&w){if(e&&e.type)g=e.handler,e=e.type;if(!e||typeof e==="string"&&e.charAt(0)===".")for(j in e=e||"",w)m.event.remove(b,j+e);else{for(e=e.split(" ");j=e[k++];)if(r=j,o=j.indexOf(".")<
0,H=[],o||(H=j.split("."),j=H.shift(),p=RegExp("(^|\\.)"+m.map(H.slice(0).sort(),za).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=w[j])if(g){r=m.event.special[j]||{};for(n=d||0;n<y.length;n++)if(u=y[n],g.guid===u.guid){if(o||p.test(u.namespace))d==null&&y.splice(n--,1),r.remove&&r.remove.call(b,u);if(d!=null)break}if(y.length===0||d!=null&&y.length===1)(!r.teardown||r.teardown.call(b,H)===!1)&&m.removeEvent(b,j,q.handle),delete w[j]}else for(n=0;n<y.length;n++)if(u=y[n],o||p.test(u.namespace))m.event.remove(b,
r,u.handler,n),y.splice(n--,1);if(m.isEmptyObject(w)){if(e=q.handle)e.elem=null;delete q.events;delete q.handle;m.isEmptyObject(q)&&m.removeData(b,f,!0)}}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(e,g,d,h){var j=e.type||e,n=[],k;j.indexOf("!")>=0&&(j=j.slice(0,-1),k=!0);j.indexOf(".")>=0&&(n=j.split("."),j=n.shift(),n.sort());if(d&&!m.event.customEvent[j]||m.event.global[j]){e=typeof e==="object"?e[m.expando]?e:new m.Event(j,e):new m.Event(j);e.type=j;e.exclusive=k;e.namespace=
n.join(".");e.namespace_re=RegExp("(^|\\.)"+n.join("\\.(?:.*\\.)?")+"(\\.|$)");if(h||!d)e.preventDefault(),e.stopPropagation();if(d){if(!(d.nodeType===3||d.nodeType===8)){e.result=f;e.target=d;g=g!=null?m.makeArray(g):[];g.unshift(e);n=d;h=j.indexOf(":")<0?"on"+j:"";do{k=m._data(n,"handle");e.currentTarget=n;k&&k.apply(n,g);if(h&&m.acceptData(n)&&n[h]&&n[h].apply(n,g)===!1)e.result=!1,e.preventDefault();n=n.parentNode||n.ownerDocument||n===e.target.ownerDocument&&b}while(n&&!e.isPropagationStopped());
if(!e.isDefaultPrevented()){var o,n=m.event.special[j]||{};if((!n._default||n._default.call(d.ownerDocument,e)===!1)&&!(j==="click"&&m.nodeName(d,"a"))&&m.acceptData(d)){try{if(h&&d[j])(o=d[h])&&(d[h]=null),m.event.triggered=j,d[j]()}catch(H){}o&&(d[h]=o);m.event.triggered=f}}return e.result}}else m.each(m.cache,function(){var b=this[m.expando];b&&b.events&&b.events[j]&&m.event.trigger(e,g,b.handle.elem)})}},handle:function(e){var e=m.event.fix(e||b.event),g=((m._data(this,"events")||{})[e.type]||
[]).slice(0),d=!e.exclusive&&!e.namespace,h=Array.prototype.slice.call(arguments,0);h[0]=e;e.currentTarget=this;for(var j=0,n=g.length;j<n;j++){var k=g[j];if(d||e.namespace_re.test(k.namespace)){e.handler=k.handler;e.data=k.data;e.handleObj=k;k=k.handler.apply(this,h);if(k!==f)e.result=k,k===!1&&(e.preventDefault(),e.stopPropagation());if(e.isImmediatePropagationStopped())break}}return e.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(b){if(b[m.expando])return b;for(var e=b,b=m.Event(e),g=this.props.length,d;g;)d=this.props[--g],b[d]=e[d];if(!b.target)b.target=b.srcElement||v;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null)g=b.target.ownerDocument||v,e=g.documentElement,g=g.body,b.pageX=b.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g.clientLeft||0),b.pageY=
b.clientY+(e&&e.scrollTop||g&&g.scrollTop||0)-(e&&e.clientTop||g&&g.clientTop||0);if(b.which==null&&(b.charCode!=null||b.keyCode!=null))b.which=b.charCode!=null?b.charCode:b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==f)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:m.proxy,special:{ready:{setup:m.bindReady,teardown:m.noop},live:{add:function(b){m.event.add(this,n(b.origType,b.selector),m.extend({},b,{handler:e,guid:b.handler.guid}))},remove:function(b){m.event.remove(this,
n(b.origType,b.selector),b)}},beforeunload:{setup:function(b,e,g){if(m.isWindow(this))this.onbeforeunload=g},teardown:function(b,e){if(this.onbeforeunload===e)this.onbeforeunload=null}}}};m.removeEvent=v.removeEventListener?function(b,e,g){b.removeEventListener&&b.removeEventListener(e,g,!1)}:function(b,e,g){b.detachEvent&&b.detachEvent("on"+e,g)};m.Event=function(b,e){if(!this.preventDefault)return new m.Event(b,e);b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||
b.returnValue===!1||b.getPreventDefault&&b.getPreventDefault()?j:h):this.type=b;e&&m.extend(this,e);this.timeStamp=m.now();this[m.expando]=!0};m.Event.prototype={preventDefault:function(){this.isDefaultPrevented=j;var b=this.originalEvent;if(b)b.preventDefault?b.preventDefault():b.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=j;var b=this.originalEvent;if(b)b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
j;this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h};var sa=function(b){var e=b.relatedTarget,g=!1,f=b.type;b.type=b.data;if(e!==this&&(e&&(g=m.contains(this,e)),!g))m.event.handle.apply(this,arguments),b.type=f},na=function(b){b.type=b.data;m.event.handle.apply(this,arguments)};m.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,e){m.event.special[b]={setup:function(g){m.event.add(this,e,g&&g.selector?na:sa,b)},teardown:function(b){m.event.remove(this,
e,b&&b.selector?na:sa)}}});if(!m.support.submitBubbles)m.event.special.submit={setup:function(){if(m.nodeName(this,"form"))return!1;else m.event.add(this,"click.specialSubmit",function(b){var e=b.target,f=e.type;(f==="submit"||f==="image")&&m(e).closest("form").length&&g("submit",this,arguments)}),m.event.add(this,"keypress.specialSubmit",function(b){var e=b.target,f=e.type;(f==="text"||f==="password")&&m(e).closest("form").length&&b.keyCode===13&&g("submit",this,arguments)})},teardown:function(){m.event.remove(this,
".specialSubmit")}};if(!m.support.changeBubbles){var Y,Ca=function(b){var e=b.type,g=b.value;if(e==="radio"||e==="checkbox")g=b.checked;else if(e==="select-multiple")g=b.selectedIndex>-1?m.map(b.options,function(b){return b.selected}).join("-"):"";else if(m.nodeName(b,"select"))g=b.selectedIndex;return g},ta=function(b,e){var g=b.target,d,h;if(oa.test(g.nodeName)&&!g.readOnly&&(d=m._data(g,"_change_data"),h=Ca(g),(b.type!=="focusout"||g.type!=="radio")&&m._data(g,"_change_data",h),!(d===f||h===d)))if(d!=
null||h)b.type="change",b.liveFired=f,m.event.trigger(b,e,g)};m.event.special.change={filters:{focusout:ta,beforedeactivate:ta,click:function(b){var e=b.target,g=m.nodeName(e,"input")?e.type:"";(g==="radio"||g==="checkbox"||m.nodeName(e,"select"))&&ta.call(this,b)},keydown:function(b){var e=b.target,g=m.nodeName(e,"input")?e.type:"";(b.keyCode===13&&!m.nodeName(e,"textarea")||b.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")&&ta.call(this,b)},beforeactivate:function(b){b=b.target;
m._data(b,"_change_data",Ca(b))}},setup:function(){if(this.type==="file")return!1;for(var b in Y)m.event.add(this,b+".specialChange",Y[b]);return oa.test(this.nodeName)},teardown:function(){m.event.remove(this,".specialChange");return oa.test(this.nodeName)}};Y=m.event.special.change.filters;Y.focus=Y.beforeactivate}m.support.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(b,e){function g(b){var f=m.event.fix(b);f.type=e;f.originalEvent={};m.event.trigger(f,null,f.target);f.isDefaultPrevented()&&
b.preventDefault()}var f=0;m.event.special[e]={setup:function(){f++===0&&v.addEventListener(b,g,!0)},teardown:function(){--f===0&&v.removeEventListener(b,g,!0)}}});m.each(["bind","one"],function(b,e){m.fn[e]=function(b,g,d){var h;if(typeof b==="object"){for(var j in b)this[e](j,g,b[j],d);return this}if(arguments.length===2||g===!1)d=g,g=f;e==="one"?(h=function(b){m(this).unbind(b,h);return d.apply(this,arguments)},h.guid=d.guid||m.guid++):h=d;if(b==="unload"&&e!=="one")this.one(b,g,d);else{j=0;for(var n=
this.length;j<n;j++)m.event.add(this[j],b,h,g)}return this}});m.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault)for(var g in b)this.unbind(g,b[g]);else{g=0;for(var f=this.length;g<f;g++)m.event.remove(this[g],b,e)}return this},delegate:function(b,e,g,f){return this.live(e,g,f,b)},undelegate:function(b,e,g){return arguments.length===0?this.unbind("live"):this.die(e,null,g,b)},trigger:function(b,e){return this.each(function(){m.event.trigger(b,e,this)})},triggerHandler:function(b,
e){if(this[0])return m.event.trigger(b,e,this[0],!0)},toggle:function(b){var e=arguments,g=b.guid||m.guid++,f=0,d=function(g){var d=(m.data(this,"lastToggle"+b.guid)||0)%f;m.data(this,"lastToggle"+b.guid,d+1);g.preventDefault();return e[d].apply(this,arguments)||!1};for(d.guid=g;f<e.length;)e[f++].guid=g;return this.click(d)},hover:function(b,e){return this.mouseenter(b).mouseleave(e||b)}});var La={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};m.each(["live","die"],
function(b,e){m.fn[e]=function(b,g,d,j){var k=0,o,H,p=j||this.selector,r=j?this:m(this.context);if(typeof b==="object"&&!b.preventDefault){for(o in b)r[e](o,g,b[o],p);return this}if(e==="die"&&!b&&j&&j.charAt(0)===".")return r.unbind(j),this;if(g===!1||m.isFunction(g))d=g||h,g=f;for(b=(b||"").split(" ");(j=b[k++])!=null;)if(o=ha.exec(j),H="",o&&(H=o[0],j=j.replace(ha,"")),j==="hover")b.push("mouseenter"+H,"mouseleave"+H);else if(o=j,La[j]?(b.push(La[j]+H),j+=H):j=(La[j]||j)+H,e==="live"){H=0;for(var y=
r.length;H<y;H++)m.event.add(r[H],"live."+n(j,p),{data:g,selector:p,handler:d,origType:j,origHandler:d,preType:o})}else r.unbind("live."+n(j,p),d);return this}});m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b,e){m.fn[e]=function(b,g){g==null&&(g=b,b=null);return arguments.length>0?this.bind(e,b,g):this.trigger(e)};m.attrFn&&(m.attrFn[e]=
!0)});(function(){function b(e,g,f,d,h,j){for(var h=0,m=d.length;h<m;h++){var n=d[h];if(n){for(var k=!1,n=n[e];n;){if(n.sizcache===f){k=d[n.sizset];break}if(n.nodeType===1&&!j)n.sizcache=f,n.sizset=h;if(n.nodeName.toLowerCase()===g){k=n;break}n=n[e]}d[h]=k}}}function e(b,g,f,d,h,j){for(var h=0,m=d.length;h<m;h++){var n=d[h];if(n){for(var k=!1,n=n[b];n;){if(n.sizcache===f){k=d[n.sizset];break}if(n.nodeType===1){if(!j)n.sizcache=f,n.sizset=h;if(typeof g!=="string"){if(n===g){k=!0;break}}else if(H.filter(g,
[n]).length>0){k=n;break}}n=n[b]}d[h]=k}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,h=Object.prototype.toString,j=!1,n=!0,k=/\\/g,o=/\W/;[0,0].sort(function(){n=!1;return 0});var H=function(b,e,f,d){var f=f||[],j=e=e||v;if(e.nodeType!==1&&e.nodeType!==9)return[];if(!b||typeof b!=="string")return f;var n,m,k,o,y,W=!0,u=H.isXML(e),w=[],A=b;do if(g.exec(""),n=g.exec(A))if(A=n[3],w.push(n[1]),n[2]){o=
n[3];break}while(n);if(w.length>1&&r.exec(b))if(w.length===2&&p.relative[w[0]])m=s(w[0]+w[1],e);else for(m=p.relative[w[0]]?[e]:H(w.shift(),e);w.length;)b=w.shift(),p.relative[b]&&(b+=w.shift()),m=s(b,m);else if(!d&&w.length>1&&e.nodeType===9&&!u&&p.match.ID.test(w[0])&&!p.match.ID.test(w[w.length-1])&&(n=H.find(w.shift(),e,u),e=n.expr?H.filter(n.expr,n.set)[0]:n.set[0]),e){n=d?{expr:w.pop(),set:q(d)}:H.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&e.parentNode?e.parentNode:e,u);m=n.expr?H.filter(n.expr,
n.set):n.set;for(w.length>0?k=q(m):W=!1;w.length;)n=y=w.pop(),p.relative[y]?n=w.pop():y="",n==null&&(n=e),p.relative[y](k,n,u)}else k=[];k||(k=m);k||H.error(y||b);if(h.call(k)==="[object Array]")if(W)if(e&&e.nodeType===1)for(b=0;k[b]!=null;b++)k[b]&&(k[b]===!0||k[b].nodeType===1&&H.contains(e,k[b]))&&f.push(m[b]);else for(b=0;k[b]!=null;b++)k[b]&&k[b].nodeType===1&&f.push(m[b]);else f.push.apply(f,k);else q(k,f);o&&(H(o,j,f,d),H.uniqueSort(f));return f};H.uniqueSort=function(b){if(A&&(j=n,b.sort(A),
j))for(var e=1;e<b.length;e++)b[e]===b[e-1]&&b.splice(e--,1);return b};H.matches=function(b,e){return H(b,null,null,e)};H.matchesSelector=function(b,e){return H(e,null,null,[b]).length>0};H.find=function(b,e,g){var f;if(!b)return[];for(var d=0,h=p.order.length;d<h;d++){var j,n=p.order[d];if(j=p.leftMatch[n].exec(b)){var m=j[1];j.splice(1,1);if(m.substr(m.length-1)!=="\\"&&(j[1]=(j[1]||"").replace(k,""),f=p.find[n](j,e,g),f!=null)){b=b.replace(p.match[n],"");break}}}f||(f=typeof e.getElementsByTagName!==
"undefined"?e.getElementsByTagName("*"):[]);return{set:f,expr:b}};H.filter=function(b,e,g,d){for(var h,j,n=b,m=[],k=e,o=e&&e[0]&&H.isXML(e[0]);b&&e.length;){for(var r in p.filter)if((h=p.leftMatch[r].exec(b))!=null&&h[2]){var y,W,w=p.filter[r];W=h[1];j=!1;h.splice(1,1);if(W.substr(W.length-1)!=="\\"){k===m&&(m=[]);if(p.preFilter[r])if(h=p.preFilter[r](h,k,g,m,d,o)){if(h===!0)continue}else j=y=!0;if(h)for(var u=0;(W=k[u])!=null;u++)if(W){y=w(W,h,u,k);var q=d^!!y;g&&y!=null?q?j=!0:k[u]=!1:q&&(m.push(W),
j=!0)}if(y!==f){g||(k=m);b=b.replace(p.match[r],"");if(!j)return[];break}}}if(b===n)if(j==null)H.error(b);else break;n=b}return k};H.error=function(b){throw"Syntax error, unrecognized expression: "+b;};var p=H.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(b){return b.getAttribute("href")},type:function(b){return b.getAttribute("type")}},relative:{"+":function(b,e){var g=
typeof e==="string",f=g&&!o.test(e),g=g&&!f;f&&(e=e.toLowerCase());for(var f=0,d=b.length,h;f<d;f++)if(h=b[f]){for(;(h=h.previousSibling)&&h.nodeType!==1;);b[f]=g||h&&h.nodeName.toLowerCase()===e?h||!1:h===e}g&&H.filter(e,b,!0)},">":function(b,e){var g,f=typeof e==="string",d=0,h=b.length;if(f&&!o.test(e))for(e=e.toLowerCase();d<h;d++){if(g=b[d])g=g.parentNode,b[d]=g.nodeName.toLowerCase()===e?g:!1}else{for(;d<h;d++)(g=b[d])&&(b[d]=f?g.parentNode:g.parentNode===e);f&&H.filter(e,b,!0)}},"":function(g,
f,h){var j,n=d++,m=e;typeof f==="string"&&!o.test(f)&&(j=f=f.toLowerCase(),m=b);m("parentNode",f,n,g,j,h)},"~":function(g,f,h){var j,n=d++,m=e;typeof f==="string"&&!o.test(f)&&(j=f=f.toLowerCase(),m=b);m("previousSibling",f,n,g,j,h)}},find:{ID:function(b,e,g){if(typeof e.getElementById!=="undefined"&&!g)return(b=e.getElementById(b[1]))&&b.parentNode?[b]:[]},NAME:function(b,e){if(typeof e.getElementsByName!=="undefined"){for(var g=[],f=e.getElementsByName(b[1]),d=0,h=f.length;d<h;d++)f[d].getAttribute("name")===
b[1]&&g.push(f[d]);return g.length===0?null:g}},TAG:function(b,e){if(typeof e.getElementsByTagName!=="undefined")return e.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,e,g,f,d,h){b=" "+b[1].replace(k,"")+" ";if(h)return b;for(var h=0,j;(j=e[h])!=null;h++)j&&(d^(j.className&&(" "+j.className+" ").replace(/[\t\n\r]/g," ").indexOf(b)>=0)?g||f.push(j):g&&(e[h]=!1));return!1},ID:function(b){return b[1].replace(k,"")},TAG:function(b){return b[1].replace(k,"").toLowerCase()},CHILD:function(b){if(b[1]===
"nth"){b[2]||H.error(b[0]);b[2]=b[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(b[2]==="even"&&"2n"||b[2]==="odd"&&"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=e[1]+(e[2]||1)-0;b[3]=e[3]-0}else b[2]&&H.error(b[0]);b[0]=d++;return b},ATTR:function(b,e,g,f,d,h){e=b[1]=b[1].replace(k,"");!h&&p.attrMap[e]&&(b[1]=p.attrMap[e]);b[4]=(b[4]||b[5]||"").replace(k,"");b[2]==="~="&&(b[4]=" "+b[4]+" ");return b},PSEUDO:function(b,e,f,d,h){if(b[1]==="not")if((g.exec(b[3])||"").length>1||
/^\w/.test(b[3]))b[3]=H(b[3],null,null,e);else return b=H.filter(b[3],e,f,1^h),f||d.push.apply(d,b),!1;else if(p.match.POS.test(b[0])||p.match.CHILD.test(b[0]))return!0;return b},POS:function(b){b.unshift(!0);return b}},filters:{enabled:function(b){return b.disabled===!1&&b.type!=="hidden"},disabled:function(b){return b.disabled===!0},checked:function(b){return b.checked===!0},selected:function(b){return b.selected===!0},parent:function(b){return!!b.firstChild},empty:function(b){return!b.firstChild},
has:function(b,e,g){return!!H(g[3],b).length},header:function(b){return/h\d/i.test(b.nodeName)},text:function(b){var e=b.getAttribute("type"),g=b.type;return b.nodeName.toLowerCase()==="input"&&"text"===g&&(e===g||e===null)},radio:function(b){return b.nodeName.toLowerCase()==="input"&&"radio"===b.type},checkbox:function(b){return b.nodeName.toLowerCase()==="input"&&"checkbox"===b.type},file:function(b){return b.nodeName.toLowerCase()==="input"&&"file"===b.type},password:function(b){return b.nodeName.toLowerCase()===
"input"&&"password"===b.type},submit:function(b){var e=b.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===b.type},image:function(b){return b.nodeName.toLowerCase()==="input"&&"image"===b.type},reset:function(b){var e=b.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===b.type},button:function(b){var e=b.nodeName.toLowerCase();return e==="input"&&"button"===b.type||e==="button"},input:function(b){return/input|select|textarea|button/i.test(b.nodeName)},focus:function(b){return b===
b.ownerDocument.activeElement}},setFilters:{first:function(b,e){return e===0},last:function(b,e,g,f){return e===f.length-1},even:function(b,e){return e%2===0},odd:function(b,e){return e%2===1},lt:function(b,e,g){return e<g[3]-0},gt:function(b,e,g){return e>g[3]-0},nth:function(b,e,g){return g[3]-0===e},eq:function(b,e,g){return g[3]-0===e}},filter:{PSEUDO:function(b,e,g,f){var d=e[1],h=p.filters[d];if(h)return h(b,g,e,f);else if(d==="contains")return(b.textContent||b.innerText||H.getText([b])||"").indexOf(e[3])>=
0;else if(d==="not"){e=e[3];g=0;for(f=e.length;g<f;g++)if(e[g]===b)return!1;return!0}else H.error(d)},CHILD:function(b,e){var g=e[1],f=b;switch(g){case "only":case "first":for(;f=f.previousSibling;)if(f.nodeType===1)return!1;if(g==="first")return!0;f=b;case "last":for(;f=f.nextSibling;)if(f.nodeType===1)return!1;return!0;case "nth":var g=e[2],d=e[3];if(g===1&&d===0)return!0;var h=e[0],j=b.parentNode;if(j&&(j.sizcache!==h||!b.nodeIndex)){for(var n=0,f=j.firstChild;f;f=f.nextSibling)if(f.nodeType===
1)f.nodeIndex=++n;j.sizcache=h}f=b.nodeIndex-d;return g===0?f===0:f%g===0&&f/g>=0}},ID:function(b,e){return b.nodeType===1&&b.getAttribute("id")===e},TAG:function(b,e){return e==="*"&&b.nodeType===1||b.nodeName.toLowerCase()===e},CLASS:function(b,e){return(" "+(b.className||b.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(b,e){var g=e[1],g=p.attrHandle[g]?p.attrHandle[g](b):b[g]!=null?b[g]:b.getAttribute(g),f=g+"",d=e[2],h=e[4];return g==null?d==="!=":d==="="?f===h:d==="*="?f.indexOf(h)>=
0:d==="~="?(" "+f+" ").indexOf(h)>=0:!h?f&&g!==!1:d==="!="?f!==h:d==="^="?f.indexOf(h)===0:d==="$="?f.substr(f.length-h.length)===h:d==="|="?f===h||f.substr(0,h.length+1)===h+"-":!1},POS:function(b,e,g,f){var d=p.setFilters[e[2]];if(d)return d(b,g,e,f)}}},r=p.match.POS,y=function(b,e){return"\\"+(e-0+1)},u;for(u in p.match)p.match[u]=RegExp(p.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[u]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[u].source.replace(/\\(\d+)/g,y));var q=function(b,
e){b=Array.prototype.slice.call(b,0);if(e)return e.push.apply(e,b),e;return b};try{Array.prototype.slice.call(v.documentElement.childNodes,0)}catch(w){q=function(b,e){var g=0,f=e||[];if(h.call(b)==="[object Array]")Array.prototype.push.apply(f,b);else if(typeof b.length==="number")for(var d=b.length;g<d;g++)f.push(b[g]);else for(;b[g];g++)f.push(b[g]);return f}}var A,G;v.documentElement.compareDocumentPosition?A=function(b,e){if(b===e)return j=!0,0;if(!b.compareDocumentPosition||!e.compareDocumentPosition)return b.compareDocumentPosition?
-1:1;return b.compareDocumentPosition(e)&4?-1:1}:(A=function(b,e){if(b===e)return j=!0,0;else if(b.sourceIndex&&e.sourceIndex)return b.sourceIndex-e.sourceIndex;var g,f,d=[],h=[];g=b.parentNode;f=e.parentNode;var n=g;if(g===f)return G(b,e);else if(g){if(!f)return 1}else return-1;for(;n;)d.unshift(n),n=n.parentNode;for(n=f;n;)h.unshift(n),n=n.parentNode;g=d.length;f=h.length;for(n=0;n<g&&n<f;n++)if(d[n]!==h[n])return G(d[n],h[n]);return n===g?G(b,h[n],-1):G(d[n],e,1)},G=function(b,e,g){if(b===e)return g;
for(b=b.nextSibling;b;){if(b===e)return-1;b=b.nextSibling}return 1});H.getText=function(b){for(var e="",g,f=0;b[f];f++)g=b[f],g.nodeType===3||g.nodeType===4?e+=g.nodeValue:g.nodeType!==8&&(e+=H.getText(g.childNodes));return e};(function(){var b=v.createElement("div"),e="script"+(new Date).getTime(),g=v.documentElement;b.innerHTML="<a name='"+e+"'/>";g.insertBefore(b,g.firstChild);if(v.getElementById(e))p.find.ID=function(b,e,g){if(typeof e.getElementById!=="undefined"&&!g)return(e=e.getElementById(b[1]))?
e.id===b[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===b[1]?[e]:f:[]},p.filter.ID=function(b,e){var g=typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id");return b.nodeType===1&&g&&g.nodeValue===e};g.removeChild(b);g=b=null})();(function(){var b=v.createElement("div");b.appendChild(v.createComment(""));if(b.getElementsByTagName("*").length>0)p.find.TAG=function(b,e){var g=e.getElementsByTagName(b[1]);if(b[1]==="*"){for(var f=[],d=0;g[d];d++)g[d].nodeType===
1&&f.push(g[d]);g=f}return g};b.innerHTML="<a href='#'></a>";if(b.firstChild&&typeof b.firstChild.getAttribute!=="undefined"&&b.firstChild.getAttribute("href")!=="#")p.attrHandle.href=function(b){return b.getAttribute("href",2)};b=null})();v.querySelectorAll&&function(){var b=H,e=v.createElement("div");e.innerHTML="<p class='TEST'></p>";if(!(e.querySelectorAll&&e.querySelectorAll(".TEST").length===0)){H=function(e,g,f,d){g=g||v;if(!d&&!H.isXML(g)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);
if(h&&(g.nodeType===1||g.nodeType===9))if(h[1])return q(g.getElementsByTagName(e),f);else if(h[2]&&p.find.CLASS&&g.getElementsByClassName)return q(g.getElementsByClassName(h[2]),f);if(g.nodeType===9){if(e==="body"&&g.body)return q([g.body],f);else if(h&&h[3]){var j=g.getElementById(h[3]);if(j&&j.parentNode){if(j.id===h[3])return q([j],f)}else return q([],f)}try{return q(g.querySelectorAll(e),f)}catch(n){}}else if(g.nodeType===1&&g.nodeName.toLowerCase()!=="object"){var h=g,m=(j=g.getAttribute("id"))||
"__sizzle__",k=g.parentNode,o=/^\s*[+~]/.test(e);j?m=m.replace(/'/g,"\\$&"):g.setAttribute("id",m);if(o&&k)g=g.parentNode;try{if(!o||k)return q(g.querySelectorAll("[id='"+m+"'] "+e),f)}catch(r){}finally{j||h.removeAttribute("id")}}}return b(e,g,f,d)};for(var g in b)H[g]=b[g];e=null}}();(function(){var b=v.documentElement,e=b.matchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.msMatchesSelector;if(e){var g=!e.call(v.createElement("div"),"div"),f=!1;try{e.call(v.documentElement,"[test!='']:sizzle")}catch(d){f=
!0}H.matchesSelector=function(b,d){d=d.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!H.isXML(b))try{if(f||!p.match.PSEUDO.test(d)&&!/!=/.test(d)){var h=e.call(b,d);if(h||!g||b.document&&b.document.nodeType!==11)return h}}catch(j){}return H(d,null,null,[b]).length>0}}})();(function(){var b=v.createElement("div");b.innerHTML="<div class='test e'></div><div class='test'></div>";if(b.getElementsByClassName&&b.getElementsByClassName("e").length!==0&&(b.lastChild.className="e",b.getElementsByClassName("e").length!==
1))p.order.splice(1,0,"CLASS"),p.find.CLASS=function(b,e,g){if(typeof e.getElementsByClassName!=="undefined"&&!g)return e.getElementsByClassName(b[1])},b=null})();H.contains=v.documentElement.contains?function(b,e){return b!==e&&(b.contains?b.contains(e):!0)}:v.documentElement.compareDocumentPosition?function(b,e){return!!(b.compareDocumentPosition(e)&16)}:function(){return!1};H.isXML=function(b){return(b=(b?b.ownerDocument||b:0).documentElement)?b.nodeName!=="HTML":!1};var s=function(b,e){for(var g,
f=[],d="",h=e.nodeType?[e]:e;g=p.match.PSEUDO.exec(b);)d+=g[0],b=b.replace(p.match.PSEUDO,"");b=p.relative[b]?b+"*":b;g=0;for(var j=h.length;g<j;g++)H(b,h[g],f);return H.filter(d,f)};m.find=H;m.expr=H.selectors;m.expr[":"]=m.expr.filters;m.unique=H.uniqueSort;m.text=H.getText;m.isXMLDoc=H.isXML;m.contains=H.contains})();var Ma=/Until$/,Na=/^(?:parents|prevUntil|prevAll)/,Va=/,/,fa=/^.[^:#\[\.,]*$/,Oa=Array.prototype.slice,Pa=m.expr.match.POS,ia={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({find:function(b){var e=
this,g,f;if(typeof b!=="string")return m(b).filter(function(){g=0;for(f=e.length;g<f;g++)if(m.contains(e[g],this))return!0});var d=this.pushStack("","find",b),h,j,n;g=0;for(f=this.length;g<f;g++)if(h=d.length,m.find(b,this[g],d),g>0)for(j=h;j<d.length;j++)for(n=0;n<h;n++)if(d[n]===d[j]){d.splice(j--,1);break}return d},has:function(b){var e=m(b);return this.filter(function(){for(var b=0,g=e.length;b<g;b++)if(m.contains(this,e[b]))return!0})},not:function(b){return this.pushStack(w(this,b,!1),"not",
b)},filter:function(b){return this.pushStack(w(this,b,!0),"filter",b)},is:function(b){return!!b&&(typeof b==="string"?m.filter(b,this).length>0:this.filter(b).length>0)},closest:function(b,e){var g=[],f,d,h=this[0];if(m.isArray(b)){var j,n={},k=1;if(h&&b.length){f=0;for(d=b.length;f<d;f++)j=b[f],n[j]||(n[j]=Pa.test(j)?m(j,e||this.context):j);for(;h&&h.ownerDocument&&h!==e;){for(j in n)f=n[j],(f.jquery?f.index(h)>-1:m(h).is(f))&&g.push({selector:j,elem:h,level:k});h=h.parentNode;k++}}return g}j=Pa.test(b)||
typeof b!=="string"?m(b,e||this.context):0;f=0;for(d=this.length;f<d;f++)for(h=this[f];h;)if(j?j.index(h)>-1:m.find.matchesSelector(h,b)){g.push(h);break}else if(h=h.parentNode,!h||!h.ownerDocument||h===e||h.nodeType===11)break;g=g.length>1?m.unique(g):g;return this.pushStack(g,"closest",b)},index:function(b){if(!b||typeof b==="string")return m.inArray(this[0],b?m(b):this.parent().children());return m.inArray(b.jquery?b[0]:b,this)},add:function(b,e){var g=typeof b==="string"?m(b,e):m.makeArray(b&&
b.nodeType?[b]:b),f=m.merge(this.get(),g);return this.pushStack(!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11||!f[0]||!f[0].parentNode||f[0].parentNode.nodeType===11?f:m.unique(f))},andSelf:function(){return this.add(this.prevObject)}});m.each({parent:function(b){return(b=b.parentNode)&&b.nodeType!==11?b:null},parents:function(b){return m.dir(b,"parentNode")},parentsUntil:function(b,e,g){return m.dir(b,"parentNode",g)},next:function(b){return m.nth(b,2,"nextSibling")},prev:function(b){return m.nth(b,
2,"previousSibling")},nextAll:function(b){return m.dir(b,"nextSibling")},prevAll:function(b){return m.dir(b,"previousSibling")},nextUntil:function(b,e,g){return m.dir(b,"nextSibling",g)},prevUntil:function(b,e,g){return m.dir(b,"previousSibling",g)},siblings:function(b){return m.sibling(b.parentNode.firstChild,b)},children:function(b){return m.sibling(b.firstChild)},contents:function(b){return m.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:m.makeArray(b.childNodes)}},function(b,
e){m.fn[b]=function(g,f){var d=m.map(this,e,g),h=Oa.call(arguments);Ma.test(b)||(f=g);f&&typeof f==="string"&&(d=m.filter(f,d));d=this.length>1&&!ia[b]?m.unique(d):d;if((this.length>1||Va.test(f))&&Na.test(b))d=d.reverse();return this.pushStack(d,b,h.join(","))}});m.extend({filter:function(b,e,g){g&&(b=":not("+b+")");return e.length===1?m.find.matchesSelector(e[0],b)?[e[0]]:[]:m.find.matches(b,e)},dir:function(b,e,g){for(var d=[],b=b[e];b&&b.nodeType!==9&&(g===f||b.nodeType!==1||!m(b).is(g));)b.nodeType===
1&&d.push(b),b=b[e];return d},nth:function(b,e,g){for(var e=e||1,f=0;b;b=b[g])if(b.nodeType===1&&++f===e)break;return b},sibling:function(b,e){for(var g=[];b;b=b.nextSibling)b.nodeType===1&&b!==e&&g.push(b);return g}});var ra=/ jQuery\d+="(?:\d+|null)"/g,la=/^\s+/,Ga=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ba=/<([\w:]+)/,ea=/<tbody/i,pa=/<|&#?\w+;/,ma=/<(?:script|object|embed|option|style)/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,qa=/\/(java|ecma)script/i,ja=/^\s*<!(?:\[CDATA\[|\-\-)/,
ka={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ka.optgroup=ka.option;ka.tbody=ka.tfoot=ka.colgroup=ka.caption=ka.thead;ka.th=ka.td;if(!m.support.htmlSerialize)ka._default=[1,"div<div>","</div>"];m.fn.extend({text:function(b){if(m.isFunction(b))return this.each(function(e){var g=
m(this);g.text(b.call(this,e,g.text()))});if(typeof b!=="object"&&b!==f)return this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(b));return m.text(this)},wrapAll:function(b){if(m.isFunction(b))return this.each(function(e){m(this).wrapAll(b.call(this,e))});if(this[0]){var e=m(b,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]);e.map(function(){for(var b=this;b.firstChild&&b.firstChild.nodeType===1;)b=b.firstChild;return b}).append(this)}return this},
wrapInner:function(b){if(m.isFunction(b))return this.each(function(e){m(this).wrapInner(b.call(this,e))});return this.each(function(){var e=m(this),g=e.contents();g.length?g.wrapAll(b):e.append(b)})},wrap:function(b){return this.each(function(){m(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,
!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var b=m(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var b=
this.pushStack(this,"after",arguments);b.push.apply(b,m(arguments[0]).toArray());return b}},remove:function(b,e){for(var g=0,f;(f=this[g])!=null;g++)if(!b||m.filter(b,[f]).length)!e&&f.nodeType===1&&(m.cleanData(f.getElementsByTagName("*")),m.cleanData([f])),f.parentNode&&f.parentNode.removeChild(f);return this},empty:function(){for(var b=0,e;(e=this[b])!=null;b++)for(e.nodeType===1&&m.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(b,e){b=
b==null?!1:b;e=e==null?b:e;return this.map(function(){return m.clone(this,b,e)})},html:function(b){if(b===f)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ra,""):null;else if(typeof b==="string"&&!ma.test(b)&&(m.support.leadingWhitespace||!la.test(b))&&!ka[(ba.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(Ga,"<$1></$2>");try{for(var e=0,g=this.length;e<g;e++)if(this[e].nodeType===1)m.cleanData(this[e].getElementsByTagName("*")),this[e].innerHTML=b}catch(d){this.empty().append(b)}}else m.isFunction(b)?
this.each(function(e){var g=m(this);g.html(b.call(this,e,g.html()))}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(m.isFunction(b))return this.each(function(e){var g=m(this),f=g.html();g.replaceWith(b.call(this,e,f))});typeof b!=="string"&&(b=m(b).detach());return this.each(function(){var e=this.nextSibling,g=this.parentNode;m(this).remove();e?m(e).before(b):m(g).append(b)})}else return this.length?this.pushStack(m(m.isFunction(b)?b():b),"replaceWith",
b):this},detach:function(b){return this.remove(b,!0)},domManip:function(b,e,g){var d,h,j,n=b[0],k=[];if(!m.support.checkClone&&arguments.length===3&&typeof n==="string"&&ua.test(n))return this.each(function(){m(this).domManip(b,e,g,!0)});if(m.isFunction(n))return this.each(function(d){var h=m(this);b[0]=n.call(this,d,e?h.html():f);h.domManip(b,e,g)});if(this[0]){d=n&&n.parentNode;d=m.support.parentNode&&d&&d.nodeType===11&&d.childNodes.length===this.length?{fragment:d}:m.buildFragment(b,this,k);j=
d.fragment;if(h=j.childNodes.length===1?j=j.firstChild:j.firstChild){e=e&&m.nodeName(h,"tr");h=0;for(var o=this.length,H=o-1;h<o;h++)g.call(e?m.nodeName(this[h],"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h]:this[h],d.cacheable||o>1&&h<H?m.clone(j,!0,!0):j)}k.length&&m.each(k,C)}return this}});m.buildFragment=function(b,e,g){var f,d,h,j;e&&e[0]&&(j=e[0].ownerDocument||e[0]);j.createDocumentFragment||(j=v);if(b.length===
1&&typeof b[0]==="string"&&b[0].length<512&&j===v&&b[0].charAt(0)==="<"&&!ma.test(b[0])&&(m.support.checkClone||!ua.test(b[0])))d=!0,(h=m.fragments[b[0]])&&h!==1&&(f=h);f||(f=j.createDocumentFragment(),m.clean(b,j,f,g));d&&(m.fragments[b[0]]=h?f:1);return{fragment:f,cacheable:d}};m.fragments={};m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,e){m.fn[b]=function(g){var f=[],g=m(g),d=this.length===1&&this[0].parentNode;if(d&&
d.nodeType===11&&d.childNodes.length===1&&g.length===1)return g[e](this[0]),this;else{for(var d=0,h=g.length;d<h;d++){var j=(d>0?this.clone(!0):this).get();m(g[d])[e](j);f=f.concat(j)}return this.pushStack(f,b,g.selector)}}});m.extend({clone:function(b,e,g){var f=b.cloneNode(!0),d,h,j;if((!m.support.noCloneEvent||!m.support.noCloneChecked)&&(b.nodeType===1||b.nodeType===11)&&!m.isXMLDoc(b)){s(b,f);d=x(b);h=x(f);for(j=0;d[j];++j)s(d[j],h[j])}if(e&&(u(b,f),g)){d=x(b);h=x(f);for(j=0;d[j];++j)u(d[j],
h[j])}return f},clean:function(b,e,g,f){e=e||v;typeof e.createElement==="undefined"&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||v);for(var d=[],h,j=0,n;(n=b[j])!=null;j++)if(typeof n==="number"&&(n+=""),n){if(typeof n==="string")if(pa.test(n)){n=n.replace(Ga,"<$1></$2>");h=(ba.exec(n)||["",""])[1].toLowerCase();var k=ka[h]||ka._default,o=k[0],H=e.createElement("div");for(H.innerHTML=k[1]+n+k[2];o--;)H=H.lastChild;if(!m.support.tbody){o=ea.test(n);k=h==="table"&&!o?H.firstChild&&H.firstChild.childNodes:
k[1]==="<table>"&&!o?H.childNodes:[];for(h=k.length-1;h>=0;--h)m.nodeName(k[h],"tbody")&&!k[h].childNodes.length&&k[h].parentNode.removeChild(k[h])}!m.support.leadingWhitespace&&la.test(n)&&H.insertBefore(e.createTextNode(la.exec(n)[0]),H.firstChild);n=H.childNodes}else n=e.createTextNode(n);var p;if(!m.support.appendChecked)if(n[0]&&typeof(p=n.length)==="number")for(h=0;h<p;h++)q(n[h]);else q(n);n.nodeType?d.push(n):d=m.merge(d,n)}if(g){b=function(b){return!b.type||qa.test(b.type)};for(j=0;d[j];j++)f&&
m.nodeName(d[j],"script")&&(!d[j].type||d[j].type.toLowerCase()==="text/javascript")?f.push(d[j].parentNode?d[j].parentNode.removeChild(d[j]):d[j]):(d[j].nodeType===1&&(e=m.grep(d[j].getElementsByTagName("script"),b),d.splice.apply(d,[j+1,0].concat(e))),g.appendChild(d[j]))}return d},cleanData:function(b){for(var e,g,f=m.cache,d=m.expando,h=m.event.special,j=m.support.deleteExpando,n=0,k;(k=b[n])!=null;n++)if(!k.nodeName||!m.noData[k.nodeName.toLowerCase()])if(g=k[m.expando]){if((e=f[g]&&f[g][d])&&
e.events){for(var o in e.events)h[o]?m.event.remove(k,o):m.removeEvent(k,o,e.handle);if(e.handle)e.handle.elem=null}j?delete k[m.expando]:k.removeAttribute&&k.removeAttribute(m.expando);delete f[g]}}});var Da=/alpha\([^)]*\)/i,Qa=/opacity=([^)]*)/,Ea=/([A-Z]|^ms)/g,Wa=/^-?\d+(?:px)?$/i,Ya=/^-?\d/,cb=/^[+\-]=/,va=/[^+\-\.\de]+/g,db={position:"absolute",visibility:"hidden",display:"block"},Fa=["Left","Right"],Ua=["Top","Bottom"],wa,Ra,Aa;m.fn.css=function(b,e){if(arguments.length===2&&e===f)return this;
return m.access(this,b,e,!0,function(b,e,g){return g!==f?m.style(b,e,g):m.css(b,e)})};m.extend({cssHooks:{opacity:{get:function(b,e){if(e){var g=wa(b,"opacity","opacity");return g===""?"1":g}else return b.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":m.support.cssFloat?"cssFloat":"styleFloat"},style:function(b,e,g,d){if(b&&!(b.nodeType===3||b.nodeType===8||!b.style)){var h,j=m.camelCase(e),n=b.style,k=m.cssHooks[j],
e=m.cssProps[j]||j;if(g!==f){if(d=typeof g,!(d==="number"&&isNaN(g)||g==null))if(d==="string"&&cb.test(g)&&(g=+g.replace(va,"")+parseFloat(m.css(b,e)),d="number"),d==="number"&&!m.cssNumber[j]&&(g+="px"),!k||!("set"in k)||(g=k.set(b,g))!==f)try{n[e]=g}catch(o){}}else{if(k&&"get"in k&&(h=k.get(b,!1,d))!==f)return h;return n[e]}}},css:function(b,e,g){var d,h,e=m.camelCase(e);h=m.cssHooks[e];e=m.cssProps[e]||e;e==="cssFloat"&&(e="float");if(h&&"get"in h&&(d=h.get(b,!0,g))!==f)return d;else if(wa)return wa(b,
e)},swap:function(b,e,g){var f={},d;for(d in e)f[d]=b.style[d],b.style[d]=e[d];g.call(b);for(d in e)b.style[d]=f[d]}});m.curCSS=m.css;m.each(["height","width"],function(b,e){m.cssHooks[e]={get:function(b,g,f){var d;if(g){if(b.offsetWidth!==0)return B(b,e,f);else m.swap(b,db,function(){d=B(b,e,f)});return d}},set:function(b,e){if(Wa.test(e)){if(e=parseFloat(e),e>=0)return e+"px"}else return e}}});if(!m.support.opacity)m.cssHooks.opacity={get:function(b,e){return Qa.test((e&&b.currentStyle?b.currentStyle.filter:
b.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(b,e){var g=b.style,f=b.currentStyle;g.zoom=1;var d=m.isNaN(e)?"":"alpha(opacity="+e*100+")",f=f&&f.filter||g.filter||"";g.filter=Da.test(f)?f.replace(Da,d):f+" "+d}};m(function(){if(!m.support.reliableMarginRight)m.cssHooks.marginRight={get:function(b,e){var g;m.swap(b,{display:"inline-block"},function(){g=e?wa(b,"margin-right","marginRight"):b.style.marginRight});return g}}});v.defaultView&&v.defaultView.getComputedStyle&&(Ra=
function(b,e){var g,d,e=e.replace(Ea,"-$1").toLowerCase();if(!(d=b.ownerDocument.defaultView))return f;if(d=d.getComputedStyle(b,null))g=d.getPropertyValue(e),g===""&&!m.contains(b.ownerDocument.documentElement,b)&&(g=m.style(b,e));return g});v.documentElement.currentStyle&&(Aa=function(b,e){var g,f=b.currentStyle&&b.currentStyle[e],d=b.runtimeStyle&&b.runtimeStyle[e],h=b.style;if(!Wa.test(f)&&Ya.test(f)){g=h.left;if(d)b.runtimeStyle.left=b.currentStyle.left;h.left=e==="fontSize"?"1em":f||0;f=h.pixelLeft+
"px";h.left=g;if(d)b.runtimeStyle.left=d}return f===""?"auto":f});wa=Ra||Aa;if(m.expr&&m.expr.filters)m.expr.filters.hidden=function(b){var e=b.offsetHeight;return b.offsetWidth===0&&e===0||!m.support.reliableHiddenOffsets&&(b.style.display||m.css(b,"display"))==="none"},m.expr.filters.visible=function(b){return!m.expr.filters.hidden(b)};var Za=/%20/g,xa=/\[\]$/,H=/\r?\n/g,nb=/#.*$/,ob=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
Ba=/^(?:GET|HEAD)$/,qb=/^\/\//,ib=/\?/,rb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,sb=/^(?:select|textarea)/i,gb=/\s+/,tb=/([?&])_=[^&]*/,jb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,kb=m.fn.load,ab={},lb={},Ha,Ia;try{Ha=N.href}catch(zb){Ha=v.createElement("a"),Ha.href="",Ha=Ha.href}Ia=jb.exec(Ha.toLowerCase())||[];m.fn.extend({load:function(b,e,g){if(typeof b!=="string"&&kb)return kb.apply(this,arguments);else if(!this.length)return this;var d=b.indexOf(" ");if(d>=0)var h=b.slice(d,
b.length),b=b.slice(0,d);d="GET";e&&(m.isFunction(e)?(g=e,e=f):typeof e==="object"&&(e=m.param(e,m.ajaxSettings.traditional),d="POST"));var j=this;m.ajax({url:b,type:d,dataType:"html",data:e,complete:function(b,e,f){f=b.responseText;b.isResolved()&&(b.done(function(b){f=b}),j.html(h?m("<div>").append(f.replace(rb,"")).find(h):f));g&&j.each(g,[f,e,b])}});return this},serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
m.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||sb.test(this.nodeName)||pb.test(this.type))}).map(function(b,e){var g=m(this).val();return g==null?null:m.isArray(g)?m.map(g,function(b){return{name:e.name,value:b.replace(H,"\r\n")}}):{name:e.name,value:g.replace(H,"\r\n")}}).get()}});m.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,e){m.fn[e]=function(b){return this.bind(e,b)}});m.each(["get","post"],
function(b,e){m[e]=function(b,g,d,h){m.isFunction(g)&&(h=h||d,d=g,g=f);return m.ajax({type:e,url:b,data:g,success:d,dataType:h})}});m.extend({getScript:function(b,e){return m.get(b,f,e,"script")},getJSON:function(b,e,g){return m.get(b,e,g,"json")},ajaxSetup:function(b,e){e?m.extend(!0,b,m.ajaxSettings,e):(e=b,b=m.extend(!0,m.ajaxSettings,e));for(var g in{context:1,url:1})g in e?b[g]=e[g]:g in m.ajaxSettings&&(b[g]=m.ajaxSettings[g]);return b},ajaxSettings:{url:Ha,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Ia[1]),
global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML}},ajaxPrefilter:D(ab),ajaxTransport:D(lb),ajax:function(b,e){function g(b,e,p,r){if(v!==2){v=
2;A&&clearTimeout(A);q=f;u=r||"";J.readyState=b?4:0;var y,w,G;if(p){var r=d,z=J,xa=r.contents,C=r.dataTypes,N=r.responseFields,E,x,B,na;for(x in N)x in p&&(z[N[x]]=p[x]);for(;C[0]==="*";)C.shift(),E===f&&(E=r.mimeType||z.getResponseHeader("content-type"));if(E)for(x in xa)if(xa[x]&&xa[x].test(E)){C.unshift(x);break}if(C[0]in p)B=C[0];else{for(x in p){if(!C[0]||r.converters[x+" "+C[0]]){B=x;break}na||(na=x)}B=B||na}B?(B!==C[0]&&C.unshift(B),p=p[B]):p=void 0}else p=f;if(b>=200&&b<300||b===304){if(d.ifModified){if(E=
J.getResponseHeader("Last-Modified"))m.lastModified[H]=E;if(E=J.getResponseHeader("Etag"))m.etag[H]=E}if(b===304)e="notmodified",y=!0;else try{E=d;E.dataFilter&&(p=E.dataFilter(p,E.dataType));var I=E.dataTypes;x={};var U,W,Y=I.length,T,D=I[0],F,P,qa,Ba,Ja;for(U=1;U<Y;U++){if(U===1)for(W in E.converters)typeof W==="string"&&(x[W.toLowerCase()]=E.converters[W]);F=D;D=I[U];if(D==="*")D=F;else if(F!=="*"&&F!==D){P=F+" "+D;qa=x[P]||x["* "+D];if(!qa)for(Ba in Ja=f,x)if(T=Ba.split(" "),T[0]===F||T[0]===
"*")if(Ja=x[T[1]+" "+D]){Ba=x[Ba];Ba===!0?qa=Ja:Ja===!0&&(qa=Ba);break}!qa&&!Ja&&m.error("No conversion from "+P.replace(" "," to "));qa!==!0&&(p=qa?qa(p):Ja(Ba(p)))}}w=p;e="success";y=!0}catch(Ca){e="parsererror",G=Ca}}else if(G=e,!e||b)e="error",b<0&&(b=0);J.status=b;J.statusText=e;y?n.resolveWith(h,[w,e,J]):n.rejectWith(h,[J,e,G]);J.statusCode(o);o=f;s&&j.trigger("ajax"+(y?"Success":"Error"),[J,d,y?w:G]);k.resolveWith(h,[J,e]);s&&(j.trigger("ajaxComplete",[J,d]),--m.active||m.event.trigger("ajaxStop"))}}
typeof b==="object"&&(e=b,b=f);var e=e||{},d=m.ajaxSetup({},e),h=d.context||d,j=h!==d&&(h.nodeType||h instanceof m)?m(h):m.event,n=m.Deferred(),k=m._Deferred(),o=d.statusCode||{},H,p={},r={},u,w,q,A,G,v=0,s,z,J={readyState:0,setRequestHeader:function(b,e){if(!v){var g=b.toLowerCase(),b=r[g]=r[g]||b;p[b]=e}return this},getAllResponseHeaders:function(){return v===2?u:null},getResponseHeader:function(b){var e;if(v===2){if(!w)for(w={};e=ob.exec(u);)w[e[1].toLowerCase()]=e[2];e=w[b.toLowerCase()]}return e===
f?null:e},overrideMimeType:function(b){if(!v)d.mimeType=b;return this},abort:function(b){b=b||"abort";q&&q.abort(b);g(0,b);return this}};n.promise(J);J.success=J.done;J.error=J.fail;J.complete=k.done;J.statusCode=function(b){if(b){var e;if(v<2)for(e in b)o[e]=[o[e],b[e]];else e=b[J.status],J.then(e,e)}return this};d.url=((b||d.url)+"").replace(nb,"").replace(qb,Ia[1]+"//");d.dataTypes=m.trim(d.dataType||"*").toLowerCase().split(gb);if(d.crossDomain==null)G=jb.exec(d.url.toLowerCase()),d.crossDomain=
!(!G||!(G[1]!=Ia[1]||G[2]!=Ia[2]||(G[3]||(G[1]==="http:"?80:443))!=(Ia[3]||(Ia[1]==="http:"?80:443))));if(d.data&&d.processData&&typeof d.data!=="string")d.data=m.param(d.data,d.traditional);y(ab,d,e,J);if(v===2)return!1;s=d.global;d.type=d.type.toUpperCase();d.hasContent=!Ba.test(d.type);s&&m.active++===0&&m.event.trigger("ajaxStart");if(!d.hasContent&&(d.data&&(d.url+=(ib.test(d.url)?"&":"?")+d.data),H=d.url,d.cache===!1)){G=m.now();var xa=d.url.replace(tb,"$1_="+G);d.url=xa+(xa===d.url?(ib.test(d.url)?
"&":"?")+"_="+G:"")}(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&J.setRequestHeader("Content-Type",d.contentType);d.ifModified&&(H=H||d.url,m.lastModified[H]&&J.setRequestHeader("If-Modified-Since",m.lastModified[H]),m.etag[H]&&J.setRequestHeader("If-None-Match",m.etag[H]));J.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(z in d.headers)J.setRequestHeader(z,d.headers[z]);if(d.beforeSend&&
(d.beforeSend.call(h,J,d)===!1||v===2))return J.abort(),!1;for(z in{success:1,error:1,complete:1})J[z](d[z]);if(q=y(lb,d,e,J)){J.readyState=1;s&&j.trigger("ajaxSend",[J,d]);d.async&&d.timeout>0&&(A=setTimeout(function(){J.abort("timeout")},d.timeout));try{v=1,q.send(p,g)}catch(C){status<2?g(-1,C):m.error(C)}}else g(-1,"No Transport");return J},param:function(b,e){var g=[],d=function(b,e){e=m.isFunction(e)?e():e;g[g.length]=encodeURIComponent(b)+"="+encodeURIComponent(e)};if(e===f)e=m.ajaxSettings.traditional;
if(m.isArray(b)||b.jquery&&!m.isPlainObject(b))m.each(b,function(){d(this.name,this.value)});else for(var h in b)r(h,b[h],e,d);return g.join("&").replace(Za,"+")}});m.extend({active:0,lastModified:{},etag:{}});var ub=m.now(),$a=/(\=)\?(&|$)|\?\?/i;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return m.expando+"_"+ub++}});m.ajaxPrefilter("json jsonp",function(e,g,d){g=e.contentType==="application/x-www-form-urlencoded"&&typeof e.data==="string";if(e.dataTypes[0]==="jsonp"||e.jsonp!==!1&&($a.test(e.url)||
g&&$a.test(e.data))){var f,h=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,j=b[h],n=e.url,k=e.data,o="$1"+h+"$2";e.jsonp!==!1&&(n=n.replace($a,o),e.url===n&&(g&&(k=k.replace($a,o)),e.data===k&&(n+=(/\?/.test(n)?"&":"?")+e.jsonp+"="+h)));e.url=n;e.data=k;b[h]=function(b){f=[b]};d.always(function(){b[h]=j;if(f&&m.isFunction(j))b[h](f[0])});e.converters["script json"]=function(){f||m.error(h+" was not called");return f[0]};e.dataTypes[0]="json";return"script"}});m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){m.globalEval(b);return b}}});m.ajaxPrefilter("script",function(b){if(b.cache===f)b.cache=!1;if(b.crossDomain)b.type="GET",b.global=!1});m.ajaxTransport("script",function(b){if(b.crossDomain){var e,g=v.head||v.getElementsByTagName("head")[0]||v.documentElement;return{send:function(d,h){e=v.createElement("script");e.async="async";if(b.scriptCharset)e.charset=b.scriptCharset;e.src=b.url;e.onload=e.onreadystatechange=function(b,
d){if(d||!e.readyState||/loaded|complete/.test(e.readyState))e.onload=e.onreadystatechange=null,g&&e.parentNode&&g.removeChild(e),e=f,d||h(200,"success")};g.insertBefore(e,g.firstChild)},abort:function(){if(e)e.onload(0,1)}}}});var eb=b.ActiveXObject?function(){for(var b in Sa)Sa[b](0,1)}:!1,vb=0,Sa;m.ajaxSettings.xhr=b.ActiveXObject?function(){var e;if(!(e=!this.isLocal&&E()))a:{try{e=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(g){}e=void 0}return e}:E;(function(b){m.extend(m.support,
{ajax:!!b,cors:!!b&&"withCredentials"in b})})(m.ajaxSettings.xhr());m.support.ajax&&m.ajaxTransport(function(e){if(!e.crossDomain||m.support.cors){var g;return{send:function(d,h){var j=e.xhr(),n,k;e.username?j.open(e.type,e.url,e.async,e.username,e.password):j.open(e.type,e.url,e.async);if(e.xhrFields)for(k in e.xhrFields)j[k]=e.xhrFields[k];e.mimeType&&j.overrideMimeType&&j.overrideMimeType(e.mimeType);!e.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(k in d)j.setRequestHeader(k,
d[k])}catch(o){}j.send(e.hasContent&&e.data||null);g=function(b,d){var k,o,H,p,r;try{if(g&&(d||j.readyState===4)){g=f;if(n)j.onreadystatechange=m.noop,eb&&delete Sa[n];if(d)j.readyState!==4&&j.abort();else{k=j.status;H=j.getAllResponseHeaders();p={};if((r=j.responseXML)&&r.documentElement)p.xml=r;p.text=j.responseText;try{o=j.statusText}catch(y){o=""}!k&&e.isLocal&&!e.crossDomain?k=p.text?200:404:k===1223&&(k=204)}}}catch(w){d||h(-1,w)}p&&h(k,o,p,H)};!e.async||j.readyState===4?g():(n=++vb,eb&&(Sa||
(Sa={},m(b).unload(eb)),Sa[n]=g),j.onreadystatechange=g)},abort:function(){g&&g(0,1)}}}});var bb={},ya,Ka,wb=/^(?:toggle|show|hide)$/,xb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ta,hb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Xa,fb=b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame;m.fn.extend({show:function(b,e,g){if(b||b===0)return this.animate(L("show",3),b,e,g);else{for(var g=
0,d=this.length;g<d;g++)if(b=this[g],b.style){e=b.style.display;if(!m._data(b,"olddisplay")&&e==="none")e=b.style.display="";e===""&&m.css(b,"display")==="none"&&m._data(b,"olddisplay",O(b.nodeName))}for(g=0;g<d;g++)if(b=this[g],b.style&&(e=b.style.display,e===""||e==="none"))b.style.display=m._data(b,"olddisplay")||"";return this}},hide:function(b,e,g){if(b||b===0)return this.animate(L("hide",3),b,e,g);else{b=0;for(e=this.length;b<e;b++)this[b].style&&(g=m.css(this[b],"display"),g!=="none"&&!m._data(this[b],
"olddisplay")&&m._data(this[b],"olddisplay",g));for(b=0;b<e;b++)if(this[b].style)this[b].style.display="none";return this}},_toggle:m.fn.toggle,toggle:function(b,e,g){var d=typeof b==="boolean";m.isFunction(b)&&m.isFunction(e)?this._toggle.apply(this,arguments):b==null||d?this.each(function(){var e=d?b:m(this).is(":hidden");m(this)[e?"show":"hide"]()}):this.animate(L("toggle",3),b,e,g);return this},fadeTo:function(b,e,g,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},
b,g,d)},animate:function(b,e,g,d){var f=m.speed(e,g,d);if(m.isEmptyObject(b))return this.each(f.complete,[!1]);b=m.extend({},b);return this[f.queue===!1?"each":"queue"](function(){var W;f.queue===!1&&m._mark(this);var e=m.extend({},f),g=this.nodeType===1,d=g&&m(this).is(":hidden"),h,j,n,k,o;e.animatedProperties={};for(n in b){h=m.camelCase(n);n!==h&&(b[h]=b[n],delete b[n]);j=b[h];m.isArray(j)?(e.animatedProperties[h]=j[1],W=b[h]=j[0],j=W):e.animatedProperties[h]=e.specialEasing&&e.specialEasing[h]||
e.easing||"swing";if(j==="hide"&&d||j==="show"&&!d)return e.complete.call(this);if(g&&(h==="height"||h==="width"))if(e.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],m.css(this,"display")==="inline"&&m.css(this,"float")==="none")m.support.inlineBlockNeedsLayout?(j=O(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"}if(e.overflow!=null)this.style.overflow="hidden";for(n in b)if(g=
new m.fx(this,e,n),j=b[n],wb.test(j))g[j==="toggle"?d?"show":"hide":j]();else h=xb.exec(j),k=g.cur(),h?(j=parseFloat(h[2]),o=h[3]||(m.cssNumber[n]?"":"px"),o!=="px"&&(m.style(this,n,(j||1)+o),k*=(j||1)/g.cur(),m.style(this,n,k+o)),h[1]&&(j=(h[1]==="-="?-1:1)*j+k),g.custom(k,j,o)):g.custom(k,j,"");return!0})},stop:function(b,e){b&&this.queue([]);this.each(function(){var b=m.timers,g=b.length;for(e||m._unmark(!0,this);g--;)if(b[g].elem===this){if(e)b[g](!0);b.splice(g,1)}});e||this.dequeue();return this}});
m.each({slideDown:L("show",1),slideUp:L("hide",1),slideToggle:L("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,e){m.fn[b]=function(b,g,d){return this.animate(e,b,g,d)}});m.extend({speed:function(b,e,g){var d=b&&typeof b==="object"?m.extend({},b):{complete:g||!g&&e||m.isFunction(b)&&b,duration:b,easing:g&&e||e&&!m.isFunction(e)&&e};d.duration=m.fx.off?0:typeof d.duration==="number"?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:
m.fx.speeds._default;d.old=d.complete;d.complete=function(b){m.isFunction(d.old)&&d.old.call(this);d.queue!==!1?m.dequeue(this):b!==!1&&m._unmark(this)};return d},easing:{linear:function(b,e,g,d){return g+d*b},swing:function(b,e,g,d){return(-Math.cos(b*Math.PI)/2+0.5)*d+g}},timers:[],fx:function(b,e,g){this.options=e;this.elem=b;this.prop=g;e.orig=e.orig||{}}});m.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(m.fx.step[this.prop]||m.fx.step._default)(this)},
cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var b,e=m.css(this.elem,this.prop);return isNaN(b=parseFloat(e))?!e||e==="auto"?0:e:b},custom:function(b,e,g){function d(b){return f.step(b)}var f=this,h=m.fx,j;this.startTime=Xa||I();this.start=b;this.end=e;this.unit=g||this.unit||(m.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;d.elem=this.elem;d()&&m.timers.push(d)&&!Ta&&(fb?(Ta=!0,j=function(){Ta&&
(fb(j),h.tick())},fb(j)):Ta=setInterval(h.tick,h.interval))},show:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());m(this.elem).show()},hide:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(b){var e=Xa||I(),g=!0,d=this.elem,f=this.options,h;if(b||e>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=
1;this.update();f.animatedProperties[this.prop]=!0;for(h in f.animatedProperties)f.animatedProperties[h]!==!0&&(g=!1);if(g){f.overflow!=null&&!m.support.shrinkWrapBlocks&&m.each(["","X","Y"],function(b,e){d.style["overflow"+e]=f.overflow[b]});f.hide&&m(d).hide();if(f.hide||f.show)for(var j in f.animatedProperties)m.style(d,j,f.orig[j]);f.complete.call(d)}return!1}else f.duration==Infinity?this.now=e:(b=e-this.startTime,this.state=b/f.duration,this.pos=m.easing[f.animatedProperties[this.prop]](this.state,
b,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}};m.extend(m.fx,{tick:function(){for(var b=m.timers,e=0;e<b.length;++e)b[e]()||b.splice(e--,1);b.length||m.fx.stop()},interval:13,stop:function(){clearInterval(Ta);Ta=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){m.style(b.elem,"opacity",b.now)},_default:function(b){b.elem.style&&b.elem.style[b.prop]!=null?b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):
b.now)+b.unit:b.elem[b.prop]=b.now}}});if(m.expr&&m.expr.filters)m.expr.filters.animated=function(b){return m.grep(m.timers,function(e){return b===e.elem}).length};var yb=/^t(?:able|d|h)$/i,mb=/^(?:body|html)$/i;m.fn.offset="getBoundingClientRect"in v.documentElement?function(b){var e=this[0],g;if(b)return this.each(function(e){m.offset.setOffset(this,b,e)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return m.offset.bodyOffset(e);try{g=e.getBoundingClientRect()}catch(d){}var f=
e.ownerDocument,h=f.documentElement;if(!g||!m.contains(h,e))return g?{top:g.top,left:g.left}:{top:0,left:0};e=f.body;f=J(f);return{top:g.top+(f.pageYOffset||m.support.boxModel&&h.scrollTop||e.scrollTop)-(h.clientTop||e.clientTop||0),left:g.left+(f.pageXOffset||m.support.boxModel&&h.scrollLeft||e.scrollLeft)-(h.clientLeft||e.clientLeft||0)}}:function(b){var e=this[0];if(b)return this.each(function(e){m.offset.setOffset(this,b,e)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return m.offset.bodyOffset(e);
m.offset.initialize();var g,d=e.offsetParent,f=e.ownerDocument,h=f.documentElement,j=f.body;g=(f=f.defaultView)?f.getComputedStyle(e,null):e.currentStyle;for(var n=e.offsetTop,k=e.offsetLeft;(e=e.parentNode)&&e!==j&&e!==h;){if(m.offset.supportsFixedPosition&&g.position==="fixed")break;g=f?f.getComputedStyle(e,null):e.currentStyle;n-=e.scrollTop;k-=e.scrollLeft;if(e===d){n+=e.offsetTop;k+=e.offsetLeft;if(m.offset.doesNotAddBorder&&(!m.offset.doesAddBorderForTableAndCells||!yb.test(e.nodeName)))n+=
parseFloat(g.borderTopWidth)||0,k+=parseFloat(g.borderLeftWidth)||0;d=e.offsetParent}m.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"&&(n+=parseFloat(g.borderTopWidth)||0,k+=parseFloat(g.borderLeftWidth)||0)}if(g.position==="relative"||g.position==="static")n+=j.offsetTop,k+=j.offsetLeft;m.offset.supportsFixedPosition&&g.position==="fixed"&&(n+=Math.max(h.scrollTop,j.scrollTop),k+=Math.max(h.scrollLeft,j.scrollLeft));return{top:n,left:k}};m.offset={initialize:function(){var b=
v.body,e=v.createElement("div"),g,d,f,h=parseFloat(m.css(b,"marginTop"))||0;m.extend(e.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});e.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";b.insertBefore(e,
b.firstChild);g=e.firstChild;d=g.firstChild;f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=d.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;d.style.position="fixed";d.style.top="20px";this.supportsFixedPosition=d.offsetTop===20||d.offsetTop===15;d.style.position=d.style.top="";g.style.overflow="hidden";g.style.position="relative";this.subtractsBorderForOverflowNotVisible=d.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==h;b.removeChild(e);m.offset.initialize=
m.noop},bodyOffset:function(b){var e=b.offsetTop,g=b.offsetLeft;m.offset.initialize();m.offset.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(m.css(b,"marginTop"))||0,g+=parseFloat(m.css(b,"marginLeft"))||0);return{top:e,left:g}},setOffset:function(b,e,g){var d=m.css(b,"position");if(d==="static")b.style.position="relative";var f=m(b),h=f.offset(),j=m.css(b,"top"),n=m.css(b,"left"),k={},o={};(d==="absolute"||d==="fixed")&&m.inArray("auto",[j,n])>-1?(o=f.position(),d=o.top,n=o.left):(d=parseFloat(j)||
0,n=parseFloat(n)||0);m.isFunction(e)&&(e=e.call(b,g,h));if(e.top!=null)k.top=e.top-h.top+d;if(e.left!=null)k.left=e.left-h.left+n;"using"in e?e.using.call(b,k):f.css(k)}};m.fn.extend({position:function(){if(!this[0])return null;var b=this[0],e=this.offsetParent(),g=this.offset(),d=mb.test(e[0].nodeName)?{top:0,left:0}:e.offset();g.top-=parseFloat(m.css(b,"marginTop"))||0;g.left-=parseFloat(m.css(b,"marginLeft"))||0;d.top+=parseFloat(m.css(e[0],"borderTopWidth"))||0;d.left+=parseFloat(m.css(e[0],
"borderLeftWidth"))||0;return{top:g.top-d.top,left:g.left-d.left}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent||v.body;b&&!mb.test(b.nodeName)&&m.css(b,"position")==="static";)b=b.offsetParent;return b})}});m.each(["Left","Top"],function(b,e){var g="scroll"+e;m.fn[g]=function(e){var d,h;if(e===f){d=this[0];if(!d)return null;return(h=J(d))?"pageXOffset"in h?h[b?"pageYOffset":"pageXOffset"]:m.support.boxModel&&h.document.documentElement[g]||h.document.body[g]:d[g]}return this.each(function(){(h=
J(this))?h.scrollTo(!b?e:m(h).scrollLeft(),b?e:m(h).scrollTop()):this[g]=e})}});m.each(["Height","Width"],function(b,e){var g=e.toLowerCase();m.fn["inner"+e]=function(){var b=this[0];return b&&b.style?parseFloat(m.css(b,g,"padding")):null};m.fn["outer"+e]=function(b){var e=this[0];return e&&e.style?parseFloat(m.css(e,g,b?"margin":"border")):null};m.fn[g]=function(b){var d=this[0];if(!d)return b==null?null:this;if(m.isFunction(b))return this.each(function(e){var d=m(this);d[g](b.call(this,e,d[g]()))});
if(m.isWindow(d)){var h=d.document.documentElement["client"+e];return d.document.compatMode==="CSS1Compat"&&h||d.document.body["client"+e]||h}else return d.nodeType===9?Math.max(d.documentElement["client"+e],d.body["scroll"+e],d.documentElement["scroll"+e],d.body["offset"+e],d.documentElement["offset"+e]):b===f?(d=m.css(d,g),h=parseFloat(d),m.isNaN(h)?d:h):this.css(g,typeof b==="string"?b:b+"px")}});b.jQuery=b.$=m})(window);(function(b,f){function d(d){return!b(d).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}function k(f,h){var j=f.nodeName.toLowerCase();if("area"===j){var j=f.parentNode,g=j.name;if(!f.href||!g||j.nodeName.toLowerCase()!=="map")return!1;j=b("img[usemap=#"+g+"]")[0];return!!j&&d(j)}return(/input|select|textarea|button|object/.test(j)?!f.disabled:"a"==j?f.href||h:h)&&d(f)}b.ui=b.ui||{};b.ui.version||(b.extend(b.ui,{version:"1.8.17",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),b.fn.extend({propAttr:b.fn.prop||b.fn.attr,_focus:b.fn.focus,focus:function(d,f){return typeof d=="number"?this.each(function(){var j=
this;setTimeout(function(){b(j).focus();f&&f.call(j)},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?d=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):d=this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,
"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!d.length?b(document):d},zIndex:function(d){if(d!==f)return this.css("zIndex",d);if(this.length)for(var d=b(this[0]),h;d.length&&d[0]!==document;){h=d.css("position");if(h==="absolute"||h==="relative"||h==="fixed")if(h=parseInt(d.css("zIndex"),10),!isNaN(h)&&h!==0)return h;d=d.parent()}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(b){b.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),b.each(["Width","Height"],function(d,h){function j(e,d,f,h){b.each(g,function(){d-=parseFloat(b.curCSS(e,"padding"+this,!0))||0;f&&(d-=parseFloat(b.curCSS(e,"border"+this+"Width",!0))||0);h&&(d-=parseFloat(b.curCSS(e,"margin"+this,!0))||0)});return d}var g=h==="Width"?["Left","Right"]:["Top","Bottom"],e=h.toLowerCase(),n={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,
outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+h]=function(g){if(g===f)return n["inner"+h].call(this);return this.each(function(){b(this).css(e,j(this,g)+"px")})};b.fn["outer"+h]=function(g,d){if(typeof g!="number")return n["outer"+h].call(this,g);return this.each(function(){b(this).css(e,j(this,g,!0,d)+"px")})}}),b.extend(b.expr[":"],{data:function(d,f,j){return!!b.data(d,j[3])},focusable:function(d){return k(d,!isNaN(b.attr(d,"tabindex")))},tabbable:function(d){var f=b.attr(d,
"tabindex"),j=isNaN(f);return(j||f>=0)&&k(d,!j)}}),b(function(){var d=document.body,f=d.appendChild(f=document.createElement("div"));b.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=f.offsetHeight===100;b.support.selectstart="onselectstart"in f;d.removeChild(f).style.display="none"}),b.extend(b.ui,{plugin:{add:function(d,f,j){var d=b.ui[d].prototype,g;for(g in j)d.plugins[g]=d.plugins[g]||[],d.plugins[g].push([f,j[g]])},call:function(b,d,f){if((d=b.plugins[d])&&
b.element[0].parentNode)for(var g=0;g<d.length;g++)b.options[d[g][0]]&&d[g][1].apply(b.element,f)}},contains:function(b,d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(d,f){if(b(d).css("overflow")==="hidden")return!1;var j=f&&f==="left"?"scrollLeft":"scrollTop",g=!1;if(d[j]>0)return!0;d[j]=1;g=d[j]>0;d[j]=0;return g},isOverAxis:function(b,d,f){return b>d&&b<d+f},isOver:function(d,f,j,g,e,n){return b.ui.isOverAxis(d,j,e)&&b.ui.isOverAxis(f,
g,n)}}))})(jQuery);
(function(b,f){if(b.cleanData){var d=b.cleanData;b.cleanData=function(f){for(var h=0,j;(j=f[h])!=null;h++)try{b(j).triggerHandler("remove")}catch(g){}d(f)}}else{var k=b.fn.remove;b.fn.remove=function(d,f){return this.each(function(){f||(!d||b.filter(d,[this]).length)&&b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return k.call(b(this),d,f)})}}b.widget=function(d,f,j){var g=d.split(".")[0],e,d=d.split(".")[1];e=g+"-"+d;j||(j=f,f=b.Widget);b.expr[":"][e]=
function(e){return!!b.data(e,d)};b[g]=b[g]||{};b[g][d]=function(b,e){arguments.length&&this._createWidget(b,e)};f=new f;f.options=b.extend(!0,{},f.options);b[g][d].prototype=b.extend(!0,f,{namespace:g,widgetName:d,widgetEventPrefix:b[g][d].prototype.widgetEventPrefix||d,widgetBaseClass:e},j);b.widget.bridge(d,b[g][d])};b.widget.bridge=function(d,h){b.fn[d]=function(j){var g=typeof j=="string",e=Array.prototype.slice.call(arguments,1),n=this,j=!g&&e.length?b.extend.apply(null,[!0,j].concat(e)):j;if(g&&
j.charAt(0)==="_")return n;g?this.each(function(){var g=b.data(this,d),h=g&&b.isFunction(g[j])?g[j].apply(g,e):g;if(h!==g&&h!==f)return n=h,!1}):this.each(function(){var e=b.data(this,d);e?e.option(j||{})._init():b.data(this,d,new h(j,this))});return n}};b.Widget=function(b,d){arguments.length&&this._createWidget(b,d)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(d,f){b.data(f,this.widgetName,this);this.element=b(f);this.options=b.extend(!0,
{},this.options,this._getCreateOptions(),d);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(d,h){var j=d;if(arguments.length===0)return b.extend({},this.options);if(typeof d=="string"){if(h===f)return this.options[d];j={};j[d]=h}this._setOptions(j);return this},_setOptions:function(d){var f=this;b.each(d,function(b,g){f._setOption(b,g)});return this},_setOption:function(b,d){this.options[b]=d;b==="disabled"&&this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
d);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(d,f,j){var g,e=this.options[d],j=j||{},f=b.Event(f);f.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();f.target=this.element[0];if(d=f.originalEvent)for(g in d)g in f||(f[g]=d[g]);this.element.trigger(f,j);return!(b.isFunction(e)&&e.call(this.element[0],f,j)===!1||f.isDefaultPrevented())}}})(jQuery);
(function(b){var f=!1;b(document).mouseup(function(){f=!1});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(b){return d._mouseDown(b)}).bind("click."+this.widgetName,function(f){if(!0===b.data(f.target,d.widgetName+".preventClickEvent"))return b.removeData(f.target,d.widgetName+".preventClickEvent"),f.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(d){if(!f){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var k=this,o=d.which==1,h=typeof this.options.cancel=="string"&&d.target.nodeName?b(d.target).closest(this.options.cancel).length:!1;if(!o||h||!this._mouseCapture(d))return!0;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==
!1,!this._mouseStarted))return d.preventDefault(),!0;!0===b.data(d.target,this.widgetName+".preventClickEvent")&&b.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(b){return k._mouseMove(b)};this._mouseUpDelegate=function(b){return k._mouseUp(b)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return f=!0}},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=
9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted)return this._mouseDrag(d),d.preventDefault();this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==!1,this._mouseStarted?this._mouseDrag(d):this._mouseUp(d));return!this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,d.target==
this._mouseDownEvent.target&&b.data(d.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(d));return!1},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(b){b.ui=b.ui||{};var f=/left|center|right/,d=/top|center|bottom/,k={},o=b.fn.position,h=b.fn.offset;b.fn.position=function(h){if(!h||!h.of)return o.apply(this,arguments);var h=b.extend({},h),g=b(h.of),e=g[0],n=(h.collision||"flip").split(" "),w=h.offset?h.offset.split(" "):[0,0],u,s,x;e.nodeType===9?(u=g.width(),s=g.height(),x={top:0,left:0}):e.setTimeout?(u=g.width(),s=g.height(),x={top:g.scrollTop(),left:g.scrollLeft()}):e.preventDefault?(h.at="left top",u=s=0,x={top:h.of.pageY,left:h.of.pageX}):
(u=g.outerWidth(),s=g.outerHeight(),x=g.offset());b.each(["my","at"],function(){var b=(h[this]||"").split(" ");b.length===1&&(b=f.test(b[0])?b.concat(["center"]):d.test(b[0])?["center"].concat(b):["center","center"]);b[0]=f.test(b[0])?b[0]:"center";b[1]=d.test(b[1])?b[1]:"center";h[this]=b});n.length===1&&(n[1]=n[0]);w[0]=parseInt(w[0],10)||0;w.length===1&&(w[1]=w[0]);w[1]=parseInt(w[1],10)||0;h.at[0]==="right"?x.left+=u:h.at[0]==="center"&&(x.left+=u/2);h.at[1]==="bottom"?x.top+=s:h.at[1]==="center"&&
(x.top+=s/2);x.left+=w[0];x.top+=w[1];return this.each(function(){var e=b(this),g=e.outerWidth(),d=e.outerHeight(),f=parseInt(b.curCSS(this,"marginLeft",!0))||0,o=parseInt(b.curCSS(this,"marginTop",!0))||0,y=g+f+(parseInt(b.curCSS(this,"marginRight",!0))||0),r=d+o+(parseInt(b.curCSS(this,"marginBottom",!0))||0),E=b.extend({},x),I;h.my[0]==="right"?E.left-=g:h.my[0]==="center"&&(E.left-=g/2);h.my[1]==="bottom"?E.top-=d:h.my[1]==="center"&&(E.top-=d/2);k.fractions||(E.left=Math.round(E.left),E.top=
Math.round(E.top));I={left:E.left-f,top:E.top-o};b.each(["left","top"],function(e,f){b.ui.position[n[e]]&&b.ui.position[n[e]][f](E,{targetWidth:u,targetHeight:s,elemWidth:g,elemHeight:d,collisionPosition:I,collisionWidth:y,collisionHeight:r,offset:w,my:h.my,at:h.at})});b.fn.bgiframe&&e.bgiframe();e.offset(b.extend(E,{using:h.using}))})};b.ui.position={fit:{left:function(d,g){var e=b(window),e=g.collisionPosition.left+g.collisionWidth-e.width()-e.scrollLeft();d.left=e>0?d.left-e:Math.max(d.left-g.collisionPosition.left,
d.left)},top:function(d,g){var e=b(window),e=g.collisionPosition.top+g.collisionHeight-e.height()-e.scrollTop();d.top=e>0?d.top-e:Math.max(d.top-g.collisionPosition.top,d.top)}},flip:{left:function(d,g){if(g.at[0]!=="center"){var e=b(window),e=g.collisionPosition.left+g.collisionWidth-e.width()-e.scrollLeft(),f=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,h=g.at[0]==="left"?g.targetWidth:-g.targetWidth,k=-2*g.offset[0];d.left+=g.collisionPosition.left<0?f+h+k:e>0?f+h+k:0}},top:function(d,
g){if(g.at[1]!=="center"){var e=b(window),e=g.collisionPosition.top+g.collisionHeight-e.height()-e.scrollTop(),f=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,h=g.at[1]==="top"?g.targetHeight:-g.targetHeight,k=-2*g.offset[1];d.top+=g.collisionPosition.top<0?f+h+k:e>0?f+h+k:0}}}};b.offset.setOffset||(b.offset.setOffset=function(d,g){/static/.test(b.curCSS(d,"position"))&&(d.style.position="relative");var e=b(d),f=e.offset(),h=parseInt(b.curCSS(d,"top",!0),10)||0,k=parseInt(b.curCSS(d,
"left",!0),10)||0,f={top:g.top-f.top+h,left:g.left-f.left+k};"using"in g?g.using.call(d,f):e.css(f)},b.fn.offset=function(d){var g=this[0];if(!g||!g.ownerDocument)return null;if(d)return this.each(function(){b.offset.setOffset(this,d)});return h.call(this)});(function(){var d=document.getElementsByTagName("body")[0],g=document.createElement("div"),e,f;e=document.createElement(d?"div":"body");f={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};d&&jQuery.extend(f,{position:"absolute",
left:"-1000px",top:"-1000px"});for(var h in f)e.style[h]=f[h];e.appendChild(g);f=d||document.documentElement;f.insertBefore(e,f.firstChild);g.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";g=b(g).offset(function(b,e){return e}).offset();e.innerHTML="";f.removeChild(e);d=g.top+g.left+(d?2E3:0);k.fractions=d>21&&d<22})()})(jQuery);
(function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();
this.floating=this.items.length?b.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData(this.widgetName+"-item");return this},_setOption:function(f,d){f==="disabled"?(this.options[f]=d,this.widget()[d?"addClass":
"removeClass"]("ui-sortable-disabled")):b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(f,d){var k=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(f);var o=null,h=this;b(f.target).parents().each(function(){if(b.data(this,k.widgetName+"-item")==h)return o=b(this),!1});b.data(f.target,k.widgetName+"-item")==h&&(o=b(f.target));if(!o)return!1;if(this.options.handle&&!d){var j=!1;b(this.options.handle,o).find("*").andSelf().each(function(){this==
f.target&&(j=!0)});if(!j)return!1}this.currentItem=o;this._removeCurrentsFromItems();return!0},_mouseStart:function(f,d,k){d=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=
this.helper.css("position");b.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();
d.containment&&this._setContainment();d.cursor&&(b("body").css("cursor")&&(this._storedCursor=b("body").css("cursor")),b("body").css("cursor",d.cursor));d.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",d.opacity));d.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",d.zIndex));this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset());
this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!k)for(k=this.containers.length-1;k>=0;k--)this.containers[k]._trigger("activate",f,this._uiHash(this));b.ui.ddmanager&&(b.ui.ddmanager.current=this);b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,f);this.dragging=!0;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return!0},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");
this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var d=this.options,k=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-f.pageY<d.scrollSensitivity?this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop+d.scrollSpeed:f.pageY-this.overflowOffset.top<d.scrollSensitivity&&(this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop-d.scrollSpeed),this.overflowOffset.left+
this.scrollParent[0].offsetWidth-f.pageX<d.scrollSensitivity?this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft+d.scrollSpeed:f.pageX-this.overflowOffset.left<d.scrollSensitivity&&(this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft-d.scrollSpeed)):(f.pageY-b(document).scrollTop()<d.scrollSensitivity?k=b(document).scrollTop(b(document).scrollTop()-d.scrollSpeed):b(window).height()-(f.pageY-b(document).scrollTop())<d.scrollSensitivity&&(k=b(document).scrollTop(b(document).scrollTop()+
d.scrollSpeed)),f.pageX-b(document).scrollLeft()<d.scrollSensitivity?k=b(document).scrollLeft(b(document).scrollLeft()-d.scrollSpeed):b(window).width()-(f.pageX-b(document).scrollLeft())<d.scrollSensitivity&&(k=b(document).scrollLeft(b(document).scrollLeft()+d.scrollSpeed)));k!==!1&&b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,f)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";
if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){var k=this.items[d],o=k.item[0],h=this._intersectsWithPointer(k);if(h&&o!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=o&&!b.ui.contains(this.placeholder[0],o)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],o):1)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(k))this._rearrange(f,k);
else break;this._trigger("change",f,this._uiHash());break}}this._contactContainers(f);b.ui.ddmanager&&b.ui.ddmanager.drag(this,f);this._trigger("sort",f,this._uiHash());this.lastPositionAbs=this.positionAbs;return!1},_mouseStop:function(f,d){if(f){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,f);if(this.options.revert){var k=this,o=k.placeholder.offset();k.reverting=!0;b(this.helper).animate({left:o.left-this.offset.parent.left-k.margins.left+(this.offsetParent[0]==document.body?
0:this.offsetParent[0].scrollLeft),top:o.top-this.offset.parent.top-k.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){k._clear(f)})}else this._clear(f,d);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("deactivate",
null,this._uiHash(this)),this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",null,this._uiHash(this)),this.containers[f].containerCache.over=0)}this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),b.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem));return this},serialize:function(f){var d=this._getItemsAsjQuery(f&&f.connected),k=[],f=f||{};b(d).each(function(){var d=(b(f.item||this).attr(f.attribute||"id")||"").match(f.expression||/(.+)[-=_](.+)/);d&&k.push((f.key||d[1]+"[]")+"="+(f.key&&f.expression?d[1]:d[2]))});!k.length&&f.key&&k.push(f.key+"=");return k.join("&")},toArray:function(f){var d=this._getItemsAsjQuery(f&&f.connected),k=[],f=f||{};d.each(function(){k.push(b(f.item||this).attr(f.attribute||
"id")||"")});return k},_intersectsWith:function(b){var d=this.positionAbs.left,k=d+this.helperProportions.width,o=this.positionAbs.top,h=o+this.helperProportions.height,j=b.left,g=j+b.width,e=b.top,n=e+b.height,w=this.offset.click.top,u=this.offset.click.left;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?o+w>e&&o+w<n&&d+u>j&&d+u<g:j<d+this.helperProportions.width/
2&&k-this.helperProportions.width/2<g&&e<o+this.helperProportions.height/2&&h-this.helperProportions.height/2<n},_intersectsWithPointer:function(f){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top,f.height),f=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left,f.width),d=d&&f,f=this._getDragVerticalDirection(),k=this._getDragHorizontalDirection();if(!d)return!1;return this.floating?k&&k=="right"||f=="down"?2:1:f&&(f=="down"?2:1)},_intersectsWithSides:function(f){var d=
b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height),f=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width),k=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?o=="right"&&f||o=="left"&&!f:k&&(k=="down"&&d||k=="up"&&!d)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-
this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(f){var d=[],k=[],o=this._connectWith();if(o&&f)for(f=o.length-1;f>=0;f--)for(var h=b(o[f]),j=h.length-1;j>=0;j--){var g=b.data(h[j],this.widgetName);g&&g!=this&&!g.options.disabled&&k.push([b.isFunction(g.options.items)?
g.options.items.call(g.element):b(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g])}k.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(f=k.length-1;f>=0;f--)k[f][0].each(function(){d.push(this)});return b(d)},_removeCurrentsFromItems:function(){for(var b=this.currentItem.find(":data("+
this.widgetName+"-item)"),d=0;d<this.items.length;d++)for(var k=0;k<b.length;k++)b[k]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(f){this.items=[];this.containers=[this];var d=this.items,k=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],f,{item:this.currentItem}):b(this.options.items,this.element),this]],o=this._connectWith();if(o)for(var h=o.length-1;h>=0;h--)for(var j=b(o[h]),g=j.length-1;g>=0;g--){var e=b.data(j[g],this.widgetName);e&&e!=this&&
!e.options.disabled&&(k.push([b.isFunction(e.options.items)?e.options.items.call(e.element[0],f,{item:this.currentItem}):b(e.options.items,e.element),e]),this.containers.push(e))}for(h=k.length-1;h>=0;h--){f=k[h][1];o=k[h][0];g=0;for(j=o.length;g<j;g++)e=b(o[g]),e.data(this.widgetName+"-item",f),d.push({item:e,instance:f,width:0,height:0,left:0,top:0})}},refreshPositions:function(f){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var d=this.items.length-1;d>=0;d--){var k=
this.items[d];if(!(k.instance!=this.currentContainer&&this.currentContainer&&k.item[0]!=this.currentItem[0])){var o=this.options.toleranceElement?b(this.options.toleranceElement,k.item):k.item;f||(k.width=o.outerWidth(),k.height=o.outerHeight());o=o.offset();k.left=o.left;k.top=o.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--)o=this.containers[d].element.offset(),this.containers[d].containerCache.left=
o.left,this.containers[d].containerCache.top=o.top,this.containers[d].containerCache.width=this.containers[d].element.outerWidth(),this.containers[d].containerCache.height=this.containers[d].element.outerHeight();return this},_createPlaceholder:function(f){var d=f||this,k=d.options;if(!k.placeholder||k.placeholder.constructor==String){var o=k.placeholder;k.placeholder={element:function(){var f=b(document.createElement(d.currentItem[0].nodeName)).addClass(o||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
o||(f.style.visibility="hidden");return f},update:function(b,f){if(!o||k.forcePlaceholderSize)f.height()||f.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10)),f.width()||f.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}d.placeholder=b(k.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);k.placeholder.update(d,
d.placeholder)},_contactContainers:function(f){for(var d=null,k=null,o=this.containers.length-1;o>=0;o--)if(!b.ui.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(!d||!b.ui.contains(this.containers[o].element[0],d.element[0]))d=this.containers[o],k=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",f,this._uiHash(this)),this.containers[o].containerCache.over=0);if(d)if(this.containers.length===
1)this.containers[k]._trigger("over",f,this._uiHash(this)),this.containers[k].containerCache.over=1;else if(this.currentContainer!=this.containers[k]){for(var d=1E4,o=null,h=this.positionAbs[this.containers[k].floating?"left":"top"],j=this.items.length-1;j>=0;j--)if(b.ui.contains(this.containers[k].element[0],this.items[j].item[0])){var g=this.items[j][this.containers[k].floating?"left":"top"];Math.abs(g-h)<d&&(d=Math.abs(g-h),o=this.items[j])}if(o||this.options.dropOnEmpty)this.currentContainer=
this.containers[k],o?this._rearrange(f,o,null,!0):this._rearrange(f,null,this.containers[k].element,!0),this._trigger("change",f,this._uiHash()),this.containers[k]._trigger("change",f,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[k]._trigger("over",f,this._uiHash(this)),this.containers[k].containerCache.over=1}},_createHelper:function(f){var d=this.options,f=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[f,this.currentItem])):
d.helper=="clone"?this.currentItem.clone():this.currentItem;f.parents("body").length||b(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(f[0]);f[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")});(f[0].style.width==""||d.forceHelperSize)&&f.width(this.currentItem.width());(f[0].style.height==
""||d.forceHelperSize)&&f.height(this.currentItem.height());return f},_adjustOffsetFromHelper:function(f){typeof f=="string"&&(f=f.split(" "));b.isArray(f)&&(f={left:+f[0],top:+f[1]||0});"left"in f&&(this.offset.click.left=f.left+this.margins.left);"right"in f&&(this.offset.click.left=this.helperProportions.width-f.right+this.margins.left);"top"in f&&(this.offset.click.top=f.top+this.margins.top);"bottom"in f&&(this.offset.click.top=this.helperProportions.height-f.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var f=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(f.left+=this.scrollParent.scrollLeft(),f.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)f={top:0,left:0};return{top:f.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:f.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;f.containment=="parent"&&(f.containment=this.helper[0].parentNode);if(f.containment=="document"||f.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(f.containment)){var d=b(f.containment)[0],f=b(f.containment).offset(),k=b(d).css("overflow")!="hidden";this.containment=[f.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,f.top+(parseInt(b(d).css("borderTopWidth"),10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,f.left+(k?Math.max(d.scrollWidth,
d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,f.top+(k?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,d){d||(d=this.position);var k=f=="absolute"?1:-1,o=this.cssPosition=="absolute"&&(this.scrollParent[0]==
document||!b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(o[0].tagName);return{top:d.top+this.offset.relative.top*k+this.offset.parent.top*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:o.scrollTop())*k),left:d.left+this.offset.relative.left*k+this.offset.parent.left*k-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
h?0:o.scrollLeft())*k)}},_generatePosition:function(f){var d=this.options,k=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,o=/(html|body)/i.test(k[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var h=f.pageX,j=f.pageY;this.originalPosition&&(this.containment&&(f.pageX-
this.offset.click.left<this.containment[0]&&(h=this.containment[0]+this.offset.click.left),f.pageY-this.offset.click.top<this.containment[1]&&(j=this.containment[1]+this.offset.click.top),f.pageX-this.offset.click.left>this.containment[2]&&(h=this.containment[2]+this.offset.click.left),f.pageY-this.offset.click.top>this.containment[3]&&(j=this.containment[3]+this.offset.click.top)),d.grid&&(j=this.originalPageY+Math.round((j-this.originalPageY)/d.grid[1])*d.grid[1],j=this.containment?j-this.offset.click.top<
this.containment[1]||j-this.offset.click.top>this.containment[3]?j-this.offset.click.top<this.containment[1]?j+d.grid[1]:j-d.grid[1]:j:j,h=this.originalPageX+Math.round((h-this.originalPageX)/d.grid[0])*d.grid[0],h=this.containment?h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2]?h-this.offset.click.left<this.containment[0]?h+d.grid[0]:h-d.grid[0]:h:h));return{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition==
"fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():o?0:k.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():o?0:k.scrollLeft())}},_rearrange:function(b,d,k,o){k?k[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:
1;var h=this,j=this.counter;window.setTimeout(function(){j==h.counter&&h.refreshPositions(!o)},0)},_clear:function(f,d){this.reverting=!1;var k=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var o in this._storedCSS)if(this._storedCSS[o]=="auto"||this._storedCSS[o]=="static")this._storedCSS[o]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
this.fromOutside&&!d&&k.push(function(b){this._trigger("receive",b,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d&&k.push(function(b){this._trigger("update",b,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){d||k.push(function(b){this._trigger("remove",b,this._uiHash())});for(o=this.containers.length-1;o>=0;o--)b.ui.contains(this.containers[o].element[0],
this.currentItem[0])&&!d&&(k.push(function(b){return function(d){b._trigger("receive",d,this._uiHash(this))}}.call(this,this.containers[o])),k.push(function(b){return function(d){b._trigger("update",d,this._uiHash(this))}}.call(this,this.containers[o])))}for(o=this.containers.length-1;o>=0;o--)d||k.push(function(b){return function(d){b._trigger("deactivate",d,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over&&(k.push(function(b){return function(d){b._trigger("out",
d,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over=0);this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=!1;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",f,this._uiHash());for(o=0;o<k.length;o++)k[o].call(this,f);this._trigger("stop",f,this._uiHash())}return!1}d||
this._trigger("beforeStop",f,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(o=0;o<k.length;o++)k[o].call(this,f);this._trigger("stop",f,this._uiHash())}this.fromOutside=!1;return!0},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(f){var d=f||this;return{helper:d.helper,placeholder:d.placeholder||b([]),position:d.position,
originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:f?f.element:null}}});b.extend(b.ui.sortable,{version:"1.8.17"})})(jQuery);
(function(b){var f,d,k,o,h=function(){var g=b(this).find(":ui-button");setTimeout(function(){g.button("refresh")},1)},j=function(g){var e=g.name,d=g.form,f=b([]);e&&(d?f=b(d).find("[name='"+e+"']"):f=b("[name='"+e+"']",g.ownerDocument).filter(function(){return!this.form}));return f};b.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);typeof this.options.disabled!=
"boolean"&&(this.options.disabled=this.element.propAttr("disabled"));this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,e=this.options,n=this.type==="checkbox"||this.type==="radio",w="ui-state-hover"+(n?"":" ui-state-active");e.label===null&&(e.label=this.buttonElement.html());this.element.is(":disabled")&&(e.disabled=!0);this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){e.disabled||
(b(this).addClass("ui-state-hover"),this===f&&b(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){e.disabled||b(this).removeClass(w)}).bind("click.button",function(b){e.disabled&&(b.preventDefault(),b.stopImmediatePropagation())});this.element.bind("focus.button",function(){g.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){g.buttonElement.removeClass("ui-state-focus")});n&&(this.element.bind("change.button",function(){o||g.refresh()}),this.buttonElement.bind("mousedown.button",
function(b){e.disabled||(o=!1,d=b.pageX,k=b.pageY)}).bind("mouseup.button",function(b){!e.disabled&&(d!==b.pageX||k!==b.pageY)&&(o=!0)}));this.type==="checkbox"?this.buttonElement.bind("click.button",function(){if(e.disabled||o)return!1;b(this).toggleClass("ui-state-active");g.buttonElement.attr("aria-pressed",g.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click.button",function(){if(e.disabled||o)return!1;b(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",
"true");var d=g.element[0];j(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(e.disabled)return!1;b(this).addClass("ui-state-active");f=this;b(document).one("mouseup",function(){f=null})}).bind("mouseup.button",function(){if(e.disabled)return!1;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(g){if(e.disabled)return!1;(g.keyCode==b.ui.keyCode.SPACE||
g.keyCode==b.ui.keyCode.ENTER)&&b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===b.ui.keyCode.SPACE&&b(this).click()}));this._setOption("disabled",e.disabled);this._resetButton()},_determineButtonType:function(){this.element.is(":checkbox")?this.type="checkbox":this.element.is(":radio")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";
if(this.type==="checkbox"||this.type==="radio"){var b=this.element.parents().filter(":last"),e="label[for='"+this.element.attr("id")+"']";this.buttonElement=b.find(e);this.buttonElement.length||(b=b.length?b.siblings():this.element.siblings(),this.buttonElement=b.filter(e),this.buttonElement.length||(this.buttonElement=b.find(e)));this.element.addClass("ui-helper-hidden-accessible");(b=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",
b)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(g,e){b.Widget.prototype._setOption.apply(this,arguments);g==="disabled"?e?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1):this._resetButton()},refresh:function(){var g=this.element.is(":disabled");g!==this.options.disabled&&this._setOption("disabled",g);this.type==="radio"?j(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var g=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
e=b("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,h=[];d.primary||d.secondary?(this.options.text&&h.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary")),d.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||
(h.push(f?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||g.attr("title",e))):h.push("ui-button-text-only");g.addClass(h.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(g,e){g==="disabled"&&this.buttons.button("option",g,e);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var g=this.element.css("direction")===
"rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(g?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(g?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
b.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(b,f){var d={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},k={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},o=b.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};b.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(d){var f=
b(this).css(d).offset().top;f<0&&b(this).css("top",d.top-f)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");typeof this.originalTitle!="string"&&(this.originalTitle="");this.options.title=this.options.title||this.originalTitle;var d=this,f=d.options,g=f.title||"&#160;",e=b.ui.dialog.getTitleId(d.element),n=(d.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
f.dialogClass).css({zIndex:f.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(e){f.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE&&(d.close(e),e.preventDefault())}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(b){d.moveToTop(!1,b)});d.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n);var k=(d.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),
o=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(b){d.close(b);return!1}).appendTo(k);(d.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(f.closeText).appendTo(o);b("<span></span>").addClass("ui-dialog-title").attr("id",
e).html(g).prependTo(k);b.isFunction(f.beforeclose)&&!b.isFunction(f.beforeClose)&&(f.beforeClose=f.beforeclose);k.find("*").add(k).disableSelection();f.draggable&&b.fn.draggable&&d._makeDraggable();f.resizable&&b.fn.resizable&&d._makeResizable();d._createButtons(f.buttons);d._isOpen=!1;b.fn.bgiframe&&n.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(d){var f=this,g,e;if(!1!==f._trigger("beforeClose",d))return f.overlay&&f.overlay.destroy(),f.uiDialog.unbind("keypress.ui-dialog"),f._isOpen=!1,f.options.hide?f.uiDialog.hide(f.options.hide,function(){f._trigger("close",d)}):(f.uiDialog.hide(),f._trigger("close",d)),b.ui.dialog.overlay.resize(),f.options.modal&&(g=0,b(".ui-dialog").each(function(){this!==
f.uiDialog[0]&&(e=b(this).css("z-index"),isNaN(e)||(g=Math.max(g,e)))}),b.ui.dialog.maxZ=g),f},isOpen:function(){return this._isOpen},moveToTop:function(d,f){var g=this.options;if(g.modal&&!d||!g.stack&&!g.modal)return this._trigger("focus",f);g.zIndex>b.ui.dialog.maxZ&&(b.ui.dialog.maxZ=g.zIndex);this.overlay&&(b.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ));g={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};b.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",b.ui.dialog.maxZ);this.element.attr(g);this._trigger("focus",f);return this},open:function(){if(!this._isOpen){var d=this.options,f=this.uiDialog;this.overlay=d.modal?new b.ui.dialog.overlay(this):null;this._size();this._position(d.position);f.show(d.show);this.moveToTop(!0);d.modal&&f.bind("keydown.ui-dialog",function(g){if(g.keyCode===b.ui.keyCode.TAB){var e=b(":tabbable",this),d=e.filter(":first"),e=e.filter(":last");if(g.target===e[0]&&!g.shiftKey)return d.focus(1),
!1;if(g.target===d[0]&&g.shiftKey)return e.focus(1),!1}});b(this.element.find(":tabbable").get().concat(f.find(".ui-dialog-buttonpane :tabbable").get().concat(f.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(d){var f=this,g=!1,e=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),n=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);f.uiDialog.find(".ui-dialog-buttonpane").remove();typeof d=="object"&&
d!==null&&b.each(d,function(){return!(g=!0)});g&&(b.each(d,function(e,g){var g=b.isFunction(g)?{click:g,text:e}:g,d=b('<button type="button"></button>').click(function(){g.click.apply(f.element[0],arguments)}).appendTo(n);b.each(g,function(b,e){b!=="click"&&(b in o?d[b](e):d.attr(b,e))});b.fn.button&&d.button()}),e.appendTo(f.uiDialog))},_makeDraggable:function(){function d(b){return{position:b.position,offset:b.offset}}var f=this,g=f.options,e=b(document),n;f.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(e,k){n=g.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");f._trigger("dragStart",e,d(k))},drag:function(b,e){f._trigger("drag",b,d(e))},stop:function(k,o){g.position=[o.position.left-e.scrollLeft(),o.position.top-e.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(n);f._trigger("dragStop",k,d(o));b.ui.dialog.overlay.resize()}})},_makeResizable:function(d){function j(b){return{originalPosition:b.originalPosition,
originalSize:b.originalSize,position:b.position,size:b.size}}var d=d===f?this.options.resizable:d,g=this,e=g.options,n=g.uiDialog.css("position"),d=typeof d=="string"?d:"n,e,s,w,se,sw,ne,nw";g.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:g.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:g._minHeight(),handles:d,start:function(e,d){b(this).addClass("ui-dialog-resizing");g._trigger("resizeStart",e,j(d))},resize:function(b,e){g._trigger("resize",
b,j(e))},stop:function(d,f){b(this).removeClass("ui-dialog-resizing");e.height=b(this).height();e.width=b(this).width();g._trigger("resizeStop",d,j(f));b.ui.dialog.overlay.resize()}}).css("position",n).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var b=this.options;return b.height==="auto"?b.minHeight:Math.min(b.minHeight,b.height)},_position:function(d){var f=[],g=[0,0],e;if(d){if(typeof d=="string"||typeof d=="object"&&"0"in d)f=d.split?d.split(" "):
[d[0],d[1]],f.length===1&&(f[1]=f[0]),b.each(["left","top"],function(b,e){+f[b]===f[b]&&(g[b]=f[b],f[b]=e)}),d={my:f.join(" "),at:f.join(" "),offset:g.join(" ")};d=b.extend({},b.ui.dialog.prototype.options.position,d)}else d=b.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(b.extend({of:window},d));e||this.uiDialog.hide()},_setOptions:function(f){var j=this,g={},e=!1;b.each(f,function(b,f){j._setOption(b,f);b in
d&&(e=!0);b in k&&(g[b]=f)});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(d,f){var g=this.uiDialog;switch(d){case "beforeclose":d="beforeClose";break;case "buttons":this._createButtons(f);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+f);break;case "dialogClass":g.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+f);break;case "disabled":f?g.addClass("ui-dialog-disabled"):
g.removeClass("ui-dialog-disabled");break;case "draggable":var e=g.is(":data(draggable)");e&&!f&&g.draggable("destroy");!e&&f&&this._makeDraggable();break;case "position":this._position(f);break;case "resizable":(e=g.is(":data(resizable)"))&&!f&&g.resizable("destroy");e&&typeof f=="string"&&g.resizable("option","handles",f);!e&&f!==!1&&this._makeResizable(f);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(""+(f||"&#160;"))}b.Widget.prototype._setOption.apply(this,arguments)},_size:function(){var d=
this.options,f,g,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});d.minWidth>d.width&&(d.width=d.minWidth);f=this.uiDialog.css({height:"auto",width:d.width}).height();g=Math.max(0,d.minHeight-f);d.height==="auto"?b.support.minHeight?this.element.css({minHeight:g,height:"auto"}):(this.uiDialog.show(),d=this.element.css("height","auto").height(),e||this.uiDialog.hide(),this.element.height(Math.max(d,g))):this.element.height(Math.max(d.height-f,0));this.uiDialog.is(":data(resizable)")&&
this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.17",uuid:0,maxZ:0,getTitleId:function(b){(b=b.attr("id"))||(this.uuid+=1,b=this.uuid);return"ui-dialog-title-"+b},overlay:function(d){this.$el=b.ui.dialog.overlay.create(d)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(b){return b+".dialog-overlay"}).join(" "),create:function(d){this.instances.length===
0&&(setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(g){if(b(g.target).zIndex()<b.ui.dialog.overlay.maxZ)return!1})},1),b(document).bind("keydown.dialog-overlay",function(g){d.options.closeOnEscape&&!g.isDefaultPrevented()&&g.keyCode&&g.keyCode===b.ui.keyCode.ESCAPE&&(d.close(g),g.preventDefault())}),b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize));var f=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});b.fn.bgiframe&&f.bgiframe();this.instances.push(f);return f},destroy:function(d){var f=b.inArray(d,this.instances);f!=-1&&this.oldInstances.push(this.instances.splice(f,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");d.remove();var g=0;b.each(this.instances,function(){g=Math.max(g,this.css("z-index"))});this.maxZ=g},height:function(){var d,f;if(b.browser.msie&&b.browser.version<7)return d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),
f=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),d<f?b(window).height()+"px":d+"px";return b(document).height()+"px"},width:function(){var d,f;if(b.browser.msie)return d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),d<f?b(window).width()+"px":d+"px";return b(document).width()+"px"},resize:function(){var d=b([]);b.each(b.ui.dialog.overlay.instances,function(){d=d.add(this)});
d.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(b){b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var f=this,d=this.options,k=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=d.values&&d.values.length||1,h=[];this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":""));this.range=b([]);d.range&&(d.range===!0&&(d.values||(d.values=[this._valueMin(),this._valueMin()]),d.values.length&&d.values.length!==2&&(d.values=[d.values[0],d.values[0]])),this.range=b("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var j=k.length;j<o;j+=1)h.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
this.handles=k.add(b(h.join("")).appendTo(f.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){d.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){d.disabled?b(this).blur():(b(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),b(this).addClass("ui-state-focus"))}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(g){b(this).data("index.ui-slider-handle",
g)});this.handles.keydown(function(g){var e=!0,d=b(this).data("index.ui-slider-handle"),h,j,k;if(!f.options.disabled){switch(g.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(e=!1,!f._keySliding&&(f._keySliding=!0,b(this).addClass("ui-state-active"),h=f._start(g,d),h===!1))return}h=f.options.step;f.options.values&&f.options.values.length?j=k=f.values(d):
j=k=f.value();switch(g.keyCode){case b.ui.keyCode.HOME:k=f._valueMin();break;case b.ui.keyCode.END:k=f._valueMax();break;case b.ui.keyCode.PAGE_UP:k=f._trimAlignValue(j+(f._valueMax()-f._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:k=f._trimAlignValue(j-(f._valueMax()-f._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(j===f._valueMax())return;k=f._trimAlignValue(j+h);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(j===f._valueMin())return;k=f._trimAlignValue(j-h)}f._slide(g,
d,k);return e}}).keyup(function(g){var e=b(this).data("index.ui-slider-handle");f._keySliding&&(f._keySliding=!1,f._stop(g,e),f._change(g,e),b(this).removeClass("ui-state-active"))});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(f){var d=
this.options,k,o,h,j,g;if(d.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();k=this._normValueFromMouse({x:f.pageX,y:f.pageY});o=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(e){var d=Math.abs(k-j.values(e));o>d&&(o=d,h=b(this),g=e)});d.range===!0&&this.values(1)===d.min&&(g+=1,h=b(this.handles[g]));if(this._start(f,g)===!1)return!1;this._mouseSliding=!0;j._handleIndex=g;h.addClass("ui-state-active").focus();
d=h.offset();this._clickOffset=!b(f.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:f.pageX-d.left-h.width()/2,top:f.pageY-d.top-h.height()/2-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(f,g,k);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(b){var d=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,
this._handleIndex,d);return!1},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var d,k;this.orientation==="horizontal"?(d=this.elementSize.width,k=b.x-this.elementOffset.left-(this._clickOffset?
this._clickOffset.left:0)):(d=this.elementSize.height,k=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));b=k/d;b>1&&(b=1);b<0&&(b=0);this.orientation==="vertical"&&(b=1-b);d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*d)},_start:function(b,d){var k={handle:this.handles[d],value:this.value()};this.options.values&&this.options.values.length&&(k.value=this.values(d),k.values=this.values());return this._trigger("start",b,k)},_slide:function(b,
d,k){var o,h,j;this.options.values&&this.options.values.length?(o=this.values(d?0:1),this.options.values.length===2&&this.options.range===!0&&(d===0&&k>o||d===1&&k<o)&&(k=o),k!==this.values(d)&&(h=this.values(),h[d]=k,j=this._trigger("slide",b,{handle:this.handles[d],value:k,values:h}),this.values(d?0:1),j!==!1&&this.values(d,k,!0))):k!==this.value()&&(j=this._trigger("slide",b,{handle:this.handles[d],value:k}),j!==!1&&this.value(k))},_stop:function(b,d){var k={handle:this.handles[d],value:this.value()};
this.options.values&&this.options.values.length&&(k.value=this.values(d),k.values=this.values());this._trigger("stop",b,k)},_change:function(b,d){if(!this._keySliding&&!this._mouseSliding){var k={handle:this.handles[d],value:this.value()};this.options.values&&this.options.values.length&&(k.value=this.values(d),k.values=this.values());this._trigger("change",b,k)}},value:function(b){if(arguments.length)this.options.value=this._trimAlignValue(b),this._refreshValue(),this._change(null,0);else return this._value()},
values:function(f,d){var k,o,h;if(arguments.length>1)this.options.values[f]=this._trimAlignValue(d),this._refreshValue(),this._change(null,f);else{if(!arguments.length)return this._values();if(!b.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(f):this.value();k=this.options.values;o=arguments[0];for(h=0;h<k.length;h+=1)k[h]=this._trimAlignValue(o[h]),this._change(null,h);this._refreshValue()}},_setOption:function(f,d){var k,o=0;b.isArray(this.options.values)&&
(o=this.options.values.length);b.Widget.prototype._setOption.apply(this,arguments);switch(f){case "disabled":d?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(k=0;k<o;k+=1)this._change(null,k);this._animateOff=!1}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(b){var d,k;if(arguments.length)return d=this.options.values[b],d=this._trimAlignValue(d);d=this.options.values.slice();for(k=0;k<d.length;k+=1)d[k]=this._trimAlignValue(d[k]);
return d},_trimAlignValue:function(b){if(b<=this._valueMin())return this._valueMin();if(b>=this._valueMax())return this._valueMax();var d=this.options.step>0?this.options.step:1,k=(b-this._valueMin())%d;b-=k;Math.abs(k)*2>=d&&(b+=k>0?d:-d);return parseFloat(b.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var f=this.options.range,d=this.options,k=this,o=this._animateOff?!1:d.animate,h,j={},g,e,n,w;this.options.values&&
this.options.values.length?this.handles.each(function(e){h=(k.values(e)-k._valueMin())/(k._valueMax()-k._valueMin())*100;j[k.orientation==="horizontal"?"left":"bottom"]=h+"%";b(this).stop(1,1)[o?"animate":"css"](j,d.animate);k.options.range===!0&&(k.orientation==="horizontal"?(e===0&&k.range.stop(1,1)[o?"animate":"css"]({left:h+"%"},d.animate),e===1&&k.range[o?"animate":"css"]({width:h-g+"%"},{queue:!1,duration:d.animate})):(e===0&&k.range.stop(1,1)[o?"animate":"css"]({bottom:h+"%"},d.animate),e===
1&&k.range[o?"animate":"css"]({height:h-g+"%"},{queue:!1,duration:d.animate})));g=h}):(e=this.value(),n=this._valueMin(),w=this._valueMax(),h=w!==n?(e-n)/(w-n)*100:0,j[k.orientation==="horizontal"?"left":"bottom"]=h+"%",this.handle.stop(1,1)[o?"animate":"css"](j,d.animate),f==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[o?"animate":"css"]({width:h+"%"},d.animate),f==="max"&&this.orientation==="horizontal"&&this.range[o?"animate":"css"]({width:100-h+"%"},{queue:!1,duration:d.animate}),
f==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[o?"animate":"css"]({height:h+"%"},d.animate),f==="max"&&this.orientation==="vertical"&&this.range[o?"animate":"css"]({height:100-h+"%"},{queue:!1,duration:d.animate}))}});b.extend(b.ui.slider,{version:"1.8.17"})})(jQuery);
(function(b,f){var d=0,k=0;b.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(!0)},_setOption:function(b,d){b=="selected"?this.options.collapsible&&d==this.options.selected||this.select(d):
(this.options[b]=d,this._tabify())},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++d},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++k);return b.cookie.apply(null,[d].concat(b.makeArray(arguments)))},_ui:function(b,d){return{tab:b,panel:d,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=
b(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(d){function h(e,g){e.css("display","");!b.support.opacity&&g.opacity&&e[0].style.removeAttribute("filter")}var j=this,g=this.options,e=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(d,f){var h=b(f).attr("href"),n=h.split("#")[0],k;n&&(n===location.toString().split("#")[0]||
(k=b("base")[0])&&n===k.href)&&(h=f.hash,f.href=h);e.test(h)?j.panels=j.panels.add(j.element.find(j._sanitizeSelector(h))):h&&h!=="#"?(b.data(f,"href.tabs",h),b.data(f,"load.tabs",h.replace(/#.*$/,"")),h=j._tabId(f),f.href="#"+h,n=j.element.find("#"+h),n.length||(n=b(g.panelTemplate).attr("id",h).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(j.panels[d-1]||j.list),n.data("destroy.tabs",!0)),j.panels=j.panels.add(n)):g.disabled.push(d)});d?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),g.selected===f?(location.hash&&this.anchors.each(function(b,e){if(e.hash==location.hash)return g.selected=b,!1}),typeof g.selected!="number"&&g.cookie&&(g.selected=parseInt(j._cookie(),10)),typeof g.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(g.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"))),g.selected=g.selected||(this.lis.length?0:-1)):g.selected===null&&(g.selected=-1),g.selected=g.selected>=0&&this.anchors[g.selected]||g.selected<0?g.selected:0,g.disabled=b.unique(g.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(b){return j.lis.index(b)}))).sort(),b.inArray(g.selected,g.disabled)!=-1&&g.disabled.splice(b.inArray(g.selected,g.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),
g.selected>=0&&this.anchors.length&&(j.element.find(j._sanitizeSelector(j.anchors[g.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(g.selected).addClass("ui-tabs-selected ui-state-active"),j.element.queue("tabs",function(){j._trigger("show",null,j._ui(j.anchors[g.selected],j.element.find(j._sanitizeSelector(j.anchors[g.selected].hash))[0]))}),this.load(g.selected)),b(window).bind("unload",function(){j.lis.add(j.anchors).unbind(".tabs");j.lis=j.anchors=j.panels=null})):g.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[g.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");g.cookie&&this._cookie(g.selected,g.cookie);for(var d=0,n;n=this.lis[d];d++)b(n)[b.inArray(d,g.disabled)!=-1&&!b(n).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");g.cache===!1&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(g.event!=="mouseover"){var k=function(b,e){e.is(":not(.ui-state-disabled)")&&e.addClass("ui-state-"+b)};this.lis.bind("mouseover.tabs",
function(){k("hover",b(this))});this.lis.bind("mouseout.tabs",function(){b(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){k("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){b(this).closest("li").removeClass("ui-state-focus")})}var u,s;g.fx&&(b.isArray(g.fx)?(u=g.fx[0],s=g.fx[1]):u=s=g.fx);var x=s?function(e,g){b(e).closest("li").addClass("ui-tabs-selected ui-state-active");g.hide().removeClass("ui-tabs-hide").animate(s,s.duration||"normal",
function(){h(g,s);j._trigger("show",null,j._ui(e,g[0]))})}:function(e,g){b(e).closest("li").addClass("ui-tabs-selected ui-state-active");g.removeClass("ui-tabs-hide");j._trigger("show",null,j._ui(e,g[0]))},z=u?function(b,e){e.animate(u,u.duration||"normal",function(){j.lis.removeClass("ui-tabs-selected ui-state-active");e.addClass("ui-tabs-hide");h(e,u);j.element.dequeue("tabs")})}:function(b,e){j.lis.removeClass("ui-tabs-selected ui-state-active");e.addClass("ui-tabs-hide");j.element.dequeue("tabs")};
this.anchors.bind(g.event+".tabs",function(){var e=this,d=b(e).closest("li"),f=j.panels.filter(":not(.ui-tabs-hide)"),h=j.element.find(j._sanitizeSelector(e.hash));if(d.hasClass("ui-tabs-selected")&&!g.collapsible||d.hasClass("ui-state-disabled")||d.hasClass("ui-state-processing")||j.panels.filter(":animated").length||j._trigger("select",null,j._ui(this,h[0]))===!1)return this.blur(),!1;g.selected=j.anchors.index(this);j.abort();if(g.collapsible){if(d.hasClass("ui-tabs-selected"))return g.selected=
-1,g.cookie&&j._cookie(g.selected,g.cookie),j.element.queue("tabs",function(){z(e,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return g.cookie&&j._cookie(g.selected,g.cookie),j.element.queue("tabs",function(){x(e,h)}),j.load(j.anchors.index(this)),this.blur(),!1}g.cookie&&j._cookie(g.selected,g.cookie);if(h.length)f.length&&j.element.queue("tabs",function(){z(e,f)}),j.element.queue("tabs",function(){x(e,h)}),j.load(j.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";
b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(b){typeof b=="string"&&(b=this.anchors.index(this.anchors.filter("[href$="+b+"]")));return b},destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var d=
b.data(this,"href.tabs");d&&(this.href=d);var f=b(this).unbind(".tabs");b.each(["href","load","cache"],function(b,e){f.removeData(e+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(d,
h,j){j===f&&(j=this.anchors.length);var g=this,e=this.options,h=b(e.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,h)),d=d.indexOf("#")?this._tabId(b("a",h)[0]):d.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var n=g.element.find("#"+d);n.length||(n=b(e.panelTemplate).attr("id",d).data("destroy.tabs",!0));n.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");j>=this.lis.length?(h.appendTo(this.list),n.appendTo(this.list[0].parentNode)):
(h.insertBefore(this.lis[j]),n.insertBefore(this.panels[j]));e.disabled=b.map(e.disabled,function(b){return b>=j?++b:b});this._tabify();this.anchors.length==1&&(e.selected=0,h.addClass("ui-tabs-selected ui-state-active"),n.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))}),this.load(0));this._trigger("add",null,this._ui(this.anchors[j],this.panels[j]));return this},remove:function(d){var d=this._getIndex(d),f=this.options,j=this.lis.eq(d).remove(),
g=this.panels.eq(d).remove();j.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(d+(d+1<this.anchors.length?1:-1));f.disabled=b.map(b.grep(f.disabled,function(b){return b!=d}),function(b){return b>=d?--b:b});this._tabify();this._trigger("remove",null,this._ui(j.find("a")[0],g[0]));return this},enable:function(d){var d=this._getIndex(d),f=this.options;if(b.inArray(d,f.disabled)!=-1)return this.lis.eq(d).removeClass("ui-state-disabled"),f.disabled=b.grep(f.disabled,function(b){return b!=
d}),this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d])),this},disable:function(b){var b=this._getIndex(b),d=this.options;b!=d.selected&&(this.lis.eq(b).addClass("ui-state-disabled"),d.disabled.push(b),d.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b])));return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+
".tabs");return this},load:function(d){var d=this._getIndex(d),f=this,j=this.options,g=this.anchors.eq(d)[0],e=b.data(g,"load.tabs");this.abort();if(!e||this.element.queue("tabs").length!==0&&b.data(g,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(d).addClass("ui-state-processing");if(j.spinner){var n=b("span",g);n.data("label.tabs",n.html()).html(j.spinner)}this.xhr=b.ajax(b.extend({},j.ajaxOptions,{url:e,success:function(e,n){f.element.find(f._sanitizeSelector(g.hash)).html(e);f._cleanup();
j.cache&&b.data(g,"cache.tabs",!0);f._trigger("load",null,f._ui(f.anchors[d],f.panels[d]));try{j.ajaxOptions.success(e,n)}catch(k){}},error:function(b,e){f._cleanup();f._trigger("load",null,f._ui(f.anchors[d],f.panels[d]));try{j.ajaxOptions.error(b,e,d,g)}catch(n){}}}));f.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(!1,!0);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));this.xhr&&(this.xhr.abort(),delete this.xhr);this._cleanup();
return this},url:function(b,d){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",d);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.8.17"});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(b,d){var f=this,g=this.options,e=f._rotate||(f._rotate=function(e){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var b=g.selected;f.select(++b<f.anchors.length?b:0)},b);e&&e.stopPropagation()}),n=f._unrotate||(f._unrotate=d?function(){t=
g.selected;e()}:function(b){b.clientX&&f.rotate(null)});b?(this.element.bind("tabsshow",e),this.anchors.bind(g.event+".tabs",n),e()):(clearTimeout(f.rotation),this.element.unbind("tabsshow",e),this.anchors.unbind(g.event+".tabs",n),delete this._rotate,delete this._unrotate);return this}})})(jQuery);
(function(b,f){function d(g,e){b.extend(g,e);for(var d in e)if(e[d]==null||e[d]==f)g[d]=e[d];return g}function k(g){return g.bind("mouseout",function(e){e=b(e.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");!e.length||e.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(e){e=b(e.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");!b.datepicker._isDisabledDatepicker(j.inline?
g.parent()[0]:j.input[0])&&e.length&&(e.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e.addClass("ui-state-hover"),e.hasClass("ui-datepicker-prev")&&e.addClass("ui-datepicker-prev-hover"),e.hasClass("ui-datepicker-next")&&e.addClass("ui-datepicker-next-hover"))})}function o(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass=
"ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October",
"November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",
buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,
autoSize:!1,disabled:!1};b.extend(this._defaults,this.regional[""]);this.dpDiv=k(b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}b.extend(b.ui,{datepicker:{version:"1.8.17"}});var h=(new Date).getTime(),j;b.extend(o.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){d(this._defaults,b||{});
return this},_attachDatepicker:function(g,e){var d=null,f;for(f in this._defaults){var h=g.getAttribute("date:"+f);if(h){d=d||{};try{d[f]=eval(h)}catch(j){d[f]=h}}}f=g.nodeName.toLowerCase();h=f=="div"||f=="span";g.id||(this.uuid+=1,g.id="dp"+this.uuid);var k=this._newInst(b(g),h);k.settings=b.extend({},e||{},d||{});f=="input"?this._connectDatepicker(g,k):h&&this._inlineDatepicker(g,k)},_newInst:function(g,e){return{id:g[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:g,selectedDay:0,selectedMonth:0,
selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?k(b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(g,e){var d=b(g);e.append=b([]);e.trigger=b([]);d.hasClass(this.markerClassName)||(this._attachments(d,e),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(b,g,d){e.settings[g]=d}).bind("getData.datepicker",
function(b,g){return this._get(e,g)}),this._autoSize(e),b.data(g,"datepicker",e),e.settings.disabled&&this._disableDatepicker(g))},_attachments:function(g,e){var d=this._get(e,"appendText"),f=this._get(e,"isRTL");e.append&&e.append.remove();d&&(e.append=b('<span class="'+this._appendClass+'">'+d+"</span>"),g[f?"before":"after"](e.append));g.unbind("focus",this._showDatepicker);e.trigger&&e.trigger.remove();d=this._get(e,"showOn");(d=="focus"||d=="both")&&g.focus(this._showDatepicker);if(d=="button"||
d=="both"){var d=this._get(e,"buttonText"),h=this._get(e,"buttonImage");e.trigger=b(this._get(e,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:h,alt:d,title:d}):b('<button type="button"></button>').addClass(this._triggerClass).html(h==""?d:b("<img/>").attr({src:h,alt:d,title:d})));g[f?"before":"after"](e.trigger);e.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==g[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(g[0]);return!1})}},
_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var e=new Date(2009,11,20),d=this._get(b,"dateFormat");if(d.match(/[DM]/)){var f=function(b){for(var e=0,g=0,d=0;d<b.length;d++)b[d].length>e&&(e=b[d].length,g=d);return g};e.setMonth(f(this._get(b,d.match(/MM/)?"monthNames":"monthNamesShort")));e.setDate(f(this._get(b,d.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}b.input.attr("size",this._formatDate(b,e).length)}},_inlineDatepicker:function(g,e){var d=b(g);d.hasClass(this.markerClassName)||
(d.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(b,g,d){e.settings[g]=d}).bind("getData.datepicker",function(b,g){return this._get(e,g)}),b.data(g,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(g),e.dpDiv.css("display","block"))},_dialogDatepicker:function(g,e,f,h,j){g=this._dialogInst;if(!g)this.uuid+=1,this._dialogInput=b('<input type="text" id="dp'+this.uuid+
'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),b("body").append(this._dialogInput),g=this._dialogInst=this._newInst(this._dialogInput,!1),g.settings={},b.data(this._dialogInput[0],"datepicker",g);d(g.settings,h||{});e=e&&e.constructor==Date?this._formatDate(g,e):e;this._dialogInput.val(e);this._pos=j?j.length?j:[j.pageX,j.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||
document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");g.settings.onSelect=f;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",g);return this},_destroyDatepicker:function(g){var e=b(g),d=b.data(g,"datepicker");if(e.hasClass(this.markerClassName)){var f=
g.nodeName.toLowerCase();b.removeData(g,"datepicker");f=="input"?(d.append.remove(),d.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(f=="div"||f=="span")&&e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(g){var e=b(g),d=b.data(g,"datepicker");if(e.hasClass(this.markerClassName)){var f=g.nodeName.toLowerCase();if(f=="input")g.disabled=
!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(f=="div"||f=="span")e=e.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled");this._disabledInputs=b.map(this._disabledInputs,function(b){return b==g?null:b})}},_disableDatepicker:function(g){var e=b(g),d=b.data(g,"datepicker");if(e.hasClass(this.markerClassName)){var f=
g.nodeName.toLowerCase();if(f=="input")g.disabled=!0,d.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(f=="div"||f=="span")e=e.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled");this._disabledInputs=b.map(this._disabledInputs,function(b){return b==g?null:b});this._disabledInputs[this._disabledInputs.length]=
g}},_isDisabledDatepicker:function(b){if(!b)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==b)return!0;return!1},_getInst:function(g){try{return b.data(g,"datepicker")}catch(e){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(g,e,h){var j=this._getInst(g);if(arguments.length==2&&typeof e=="string")return e=="defaults"?b.extend({},b.datepicker._defaults):j?e=="all"?b.extend({},j.settings):this._get(j,e):null;var k=e||{};typeof e=="string"&&
(k={},k[e]=h);if(j){this._curInst==j&&this._hideDatepicker();var o=this._getDateDatepicker(g,!0),x=this._getMinMaxDate(j,"min"),z=this._getMinMaxDate(j,"max");d(j.settings,k);x!==null&&k.dateFormat!==f&&k.minDate===f&&(j.settings.minDate=this._formatDate(j,x));z!==null&&k.dateFormat!==f&&k.maxDate===f&&(j.settings.maxDate=this._formatDate(j,z));this._attachments(b(g),j);this._autoSize(j);this._setDate(j,o);this._updateAlternate(j);this._updateDatepicker(j)}},_changeDatepicker:function(b,e,d){this._optionDatepicker(b,
e,d)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,e){var d=this._getInst(b);d&&(this._setDate(d,e),this._updateDatepicker(d),this._updateAlternate(d))},_getDateDatepicker:function(b,e){var d=this._getInst(b);d&&!d.inline&&this._setDateFromField(d,e);return d?this._getDate(d):null},_doKeyDown:function(g){var e=b.datepicker._getInst(g.target),d=!0,f=e.dpDiv.is(".ui-datepicker-rtl");e._keyEvent=!0;if(b.datepicker._datepickerShowing)switch(g.keyCode){case 9:b.datepicker._hideDatepicker();
d=!1;break;case 13:return d=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",e.dpDiv),d[0]&&b.datepicker._selectDay(g.target,e.selectedMonth,e.selectedYear,d[0]),(g=b.datepicker._get(e,"onSelect"))?(d=b.datepicker._formatDate(e),g.apply(e.input?e.input[0]:null,[d,e])):b.datepicker._hideDatepicker(),!1;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(g.target,g.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");
break;case 34:b.datepicker._adjustDate(g.target,g.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 35:(g.ctrlKey||g.metaKey)&&b.datepicker._clearDate(g.target);d=g.ctrlKey||g.metaKey;break;case 36:(g.ctrlKey||g.metaKey)&&b.datepicker._gotoToday(g.target);d=g.ctrlKey||g.metaKey;break;case 37:(g.ctrlKey||g.metaKey)&&b.datepicker._adjustDate(g.target,f?1:-1,"D");d=g.ctrlKey||g.metaKey;g.originalEvent.altKey&&b.datepicker._adjustDate(g.target,g.ctrlKey?
-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 38:(g.ctrlKey||g.metaKey)&&b.datepicker._adjustDate(g.target,-7,"D");d=g.ctrlKey||g.metaKey;break;case 39:(g.ctrlKey||g.metaKey)&&b.datepicker._adjustDate(g.target,f?-1:1,"D");d=g.ctrlKey||g.metaKey;g.originalEvent.altKey&&b.datepicker._adjustDate(g.target,g.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 40:(g.ctrlKey||g.metaKey)&&b.datepicker._adjustDate(g.target,
7,"D");d=g.ctrlKey||g.metaKey;break;default:d=!1}else g.keyCode==36&&g.ctrlKey?b.datepicker._showDatepicker(this):d=!1;d&&(g.preventDefault(),g.stopPropagation())},_doKeyPress:function(g){var e=b.datepicker._getInst(g.target);if(b.datepicker._get(e,"constrainInput")){var e=b.datepicker._possibleChars(b.datepicker._get(e,"dateFormat")),d=String.fromCharCode(g.charCode==f?g.keyCode:g.charCode);return g.ctrlKey||g.metaKey||d<" "||!e||e.indexOf(d)>-1}},_doKeyUp:function(g){g=b.datepicker._getInst(g.target);
if(g.input.val()!=g.lastVal)try{b.datepicker.parseDate(b.datepicker._get(g,"dateFormat"),g.input?g.input.val():null,b.datepicker._getFormatConfig(g))&&(b.datepicker._setDateFromField(g),b.datepicker._updateAlternate(g),b.datepicker._updateDatepicker(g))}catch(e){b.datepicker.log(e)}return!0},_showDatepicker:function(g){g=g.target||g;g.nodeName.toLowerCase()!="input"&&(g=b("input",g.parentNode)[0]);if(!b.datepicker._isDisabledDatepicker(g)&&b.datepicker._lastInput!=g){var e=b.datepicker._getInst(g);
b.datepicker._curInst&&b.datepicker._curInst!=e&&(b.datepicker._curInst.dpDiv.stop(!0,!0),e&&b.datepicker._datepickerShowing&&b.datepicker._hideDatepicker(b.datepicker._curInst.input[0]));var f=b.datepicker._get(e,"beforeShow"),f=f?f.apply(g,[g,e]):{};if(f!==!1){d(e.settings,f);e.lastVal=null;b.datepicker._lastInput=g;b.datepicker._setDateFromField(e);b.datepicker._inDialog&&(g.value="");b.datepicker._pos||(b.datepicker._pos=b.datepicker._findPos(g),b.datepicker._pos[1]+=g.offsetHeight);var h=!1;
b(g).parents().each(function(){h|=b(this).css("position")=="fixed";return!h});h&&b.browser.opera&&(b.datepicker._pos[0]-=document.documentElement.scrollLeft,b.datepicker._pos[1]-=document.documentElement.scrollTop);f={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;e.dpDiv.empty();e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(e);f=b.datepicker._checkOffset(e,f,h);e.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":
h?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!e.inline){var f=b.datepicker._get(e,"showAnim"),j=b.datepicker._get(e,"duration"),k=function(){var g=e.dpDiv.find("iframe.ui-datepicker-cover");if(g.length){var d=b.datepicker._getBorders(e.dpDiv);g.css({left:-d[0],top:-d[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex(b(g).zIndex()+1);b.datepicker._datepickerShowing=!0;b.effects&&b.effects[f]?e.dpDiv.show(f,b.datepicker._get(e,"showOptions"),j,
k):e.dpDiv[f||"show"](f?j:null,k);(!f||!j)&&k();e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus();b.datepicker._curInst=e}}}},_updateDatepicker:function(g){this.maxRows=4;var e=b.datepicker._getBorders(g.dpDiv);j=g;g.dpDiv.empty().append(this._generateHTML(g));var d=g.dpDiv.find("iframe.ui-datepicker-cover");!d.length||d.css({left:-e[0],top:-e[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()});g.dpDiv.find("."+this._dayOverClass+" a").mouseover();e=this._getNumberOfMonths(g);
d=e[1];g.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");d>1&&g.dpDiv.addClass("ui-datepicker-multi-"+d).css("width",17*d+"em");g.dpDiv[(e[0]!=1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");g.dpDiv[(this._get(g,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");g==b.datepicker._curInst&&b.datepicker._datepickerShowing&&g.input&&g.input.is(":visible")&&!g.input.is(":disabled")&&g.input[0]!=document.activeElement&&g.input.focus();if(g.yearshtml){var f=
g.yearshtml;setTimeout(function(){f===g.yearshtml&&g.yearshtml&&g.dpDiv.find("select.ui-datepicker-year:first").replaceWith(g.yearshtml);f=g.yearshtml=null},0)}},_getBorders:function(b){var e=function(b){return{thin:1,medium:2,thick:3}[b]||b};return[parseFloat(e(b.css("border-left-width"))),parseFloat(e(b.css("border-top-width")))]},_checkOffset:function(g,e,d){var f=g.dpDiv.outerWidth(),h=g.dpDiv.outerHeight(),j=g.input?g.input.outerWidth():0,k=g.input?g.input.outerHeight():0,o=document.documentElement.clientWidth+
b(document).scrollLeft(),q=document.documentElement.clientHeight+b(document).scrollTop();e.left-=this._get(g,"isRTL")?f-j:0;e.left-=d&&e.left==g.input.offset().left?b(document).scrollLeft():0;e.top-=d&&e.top==g.input.offset().top+k?b(document).scrollTop():0;e.left-=Math.min(e.left,e.left+f>o&&o>f?Math.abs(e.left+f-o):0);e.top-=Math.min(e.top,e.top+h>q&&q>h?Math.abs(h+k):0);return e},_findPos:function(g){for(var e=this._get(this._getInst(g),"isRTL");g&&(g.type=="hidden"||g.nodeType!=1||b.expr.filters.hidden(g));)g=
g[e?"previousSibling":"nextSibling"];g=b(g).offset();return[g.left,g.top]},_hideDatepicker:function(g){var e=this._curInst;if(e&&!(g&&e!=b.data(g,"datepicker"))&&this._datepickerShowing){var g=this._get(e,"showAnim"),d=this._get(e,"duration"),f=this,h=function(){b.datepicker._tidyDialog(e);f._curInst=null};b.effects&&b.effects[g]?e.dpDiv.hide(g,b.datepicker._get(e,"showOptions"),d,h):e.dpDiv[g=="slideDown"?"slideUp":g=="fadeIn"?"fadeOut":"hide"](g?d:null,h);g||h();this._datepickerShowing=!1;(g=this._get(e,
"onClose"))&&g.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),b.blockUI&&(b.unblockUI(),b("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(g){if(b.datepicker._curInst){var g=b(g.target),e=b.datepicker._getInst(g[0]);(g[0].id!=b.datepicker._mainDivId&&g.parents("#"+
b.datepicker._mainDivId).length==0&&!g.hasClass(b.datepicker.markerClassName)&&!g.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&(!b.datepicker._inDialog||!b.blockUI)||g.hasClass(b.datepicker.markerClassName)&&b.datepicker._curInst!=e)&&b.datepicker._hideDatepicker()}},_adjustDate:function(g,e,d){var g=b(g),f=this._getInst(g[0]);this._isDisabledDatepicker(g[0])||(this._adjustInstDate(f,e+(d=="M"?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(g){var g=
b(g),e=this._getInst(g[0]);if(this._get(e,"gotoCurrent")&&e.currentDay)e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear;else{var d=new Date;e.selectedDay=d.getDate();e.drawMonth=e.selectedMonth=d.getMonth();e.drawYear=e.selectedYear=d.getFullYear()}this._notifyChange(e);this._adjustDate(g)},_selectMonthYear:function(g,e,d){var g=b(g),f=this._getInst(g[0]);f["selected"+(d=="M"?"Month":"Year")]=f["draw"+(d=="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,
10);this._notifyChange(f);this._adjustDate(g)},_selectDay:function(g,e,d,f){var h=b(g);if(!b(f).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(h[0]))h=this._getInst(h[0]),h.selectedDay=h.currentDay=b("a",f).html(),h.selectedMonth=h.currentMonth=e,h.selectedYear=h.currentYear=d,this._selectDate(g,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear))},_clearDate:function(g){g=b(g);this._getInst(g[0]);this._selectDate(g,"")},_selectDate:function(g,e){var d=this._getInst(b(g)[0]),
e=e!=null?e:this._formatDate(d);d.input&&d.input.val(e);this._updateAlternate(d);var f=this._get(d,"onSelect");f?f.apply(d.input?d.input[0]:null,[e,d]):d.input&&d.input.trigger("change");d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],typeof d.input[0]!="object"&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(d){var e=this._get(d,"altField");if(e){var f=this._get(d,"altFormat")||this._get(d,"dateFormat"),h=this._getDate(d),j=this.formatDate(f,
h,this._getFormatConfig(d));b(e).each(function(){b(this).val(j)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var e=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((e-b)/864E5)/7)+1},parseDate:function(d,e,f){if(d==null||e==null)throw"Invalid arguments";e=typeof e=="object"?e.toString():e+"";if(e=="")return null;for(var h=(f?f.shortYearCutoff:null)||this._defaults.shortYearCutoff,
h=typeof h!="string"?h:(new Date).getFullYear()%100+parseInt(h,10),j=(f?f.dayNamesShort:null)||this._defaults.dayNamesShort,k=(f?f.dayNames:null)||this._defaults.dayNames,o=(f?f.monthNamesShort:null)||this._defaults.monthNamesShort,z=(f?f.monthNames:null)||this._defaults.monthNames,q=f=-1,C=-1,B=-1,D=!1,y=function(b){(b=L+1<d.length&&d.charAt(L+1)==b)&&L++;return b},r=function(b){var d=y(b),b=e.substring(F).match(RegExp("^\\d{1,"+(b=="@"?14:b=="!"?20:b=="y"&&d?4:b=="o"?3:2)+"}"));if(!b)throw"Missing number at position "+
F;F+=b[0].length;return parseInt(b[0],10)},E=function(d,g,f){var d=b.map(y(d)?f:g,function(b,e){return[[e,b]]}).sort(function(b,e){return-(b[1].length-e[1].length)}),h=-1;b.each(d,function(b,d){var g=d[1];if(e.substr(F,g.length).toLowerCase()==g.toLowerCase())return h=d[0],F+=g.length,!1});if(h!=-1)return h+1;throw"Unknown name at position "+F;},I=function(){if(e.charAt(F)!=d.charAt(L))throw"Unexpected literal at position "+F;F++},F=0,L=0;L<d.length;L++)if(D)d.charAt(L)=="'"&&!y("'")?D=!1:I();else switch(d.charAt(L)){case "d":C=
r("d");break;case "D":E("D",j,k);break;case "o":B=r("o");break;case "m":q=r("m");break;case "M":q=E("M",o,z);break;case "y":f=r("y");break;case "@":var O=new Date(r("@")),f=O.getFullYear(),q=O.getMonth()+1,C=O.getDate();break;case "!":O=new Date((r("!")-this._ticksTo1970)/1E4);f=O.getFullYear();q=O.getMonth()+1;C=O.getDate();break;case "'":y("'")?I():D=!0;break;default:I()}if(F<e.length)throw"Extra/unparsed characters found in date: "+e.substring(F);f==-1?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-
(new Date).getFullYear()%100+(f<=h?0:-100));if(B>-1){q=1;for(C=B;;){h=this._getDaysInMonth(f,q-1);if(C<=h)break;q++;C-=h}}O=this._daylightSavingAdjust(new Date(f,q-1,C));if(O.getFullYear()!=f||O.getMonth()+1!=q||O.getDate()!=C)throw"Invalid date";return O},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-
Math.floor(19.7)+Math.floor(4.925))*864E9,formatDate:function(b,e,d){if(!e)return"";var f=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,h=(d?d.dayNames:null)||this._defaults.dayNames,j=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,d=(d?d.monthNames:null)||this._defaults.monthNames,k=function(e){(e=D+1<b.length&&b.charAt(D+1)==e)&&D++;return e},o=function(b,e,d){e=""+e;if(k(b))for(;e.length<d;)e="0"+e;return e},q=function(b,e,d,g){return k(b)?g[e]:d[e]},C="",B=!1;if(e)for(var D=
0;D<b.length;D++)if(B)b.charAt(D)=="'"&&!k("'")?B=!1:C+=b.charAt(D);else switch(b.charAt(D)){case "d":C+=o("d",e.getDate(),2);break;case "D":C+=q("D",e.getDay(),f,h);break;case "o":C+=o("o",Math.round(((new Date(e.getFullYear(),e.getMonth(),e.getDate())).getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":C+=o("m",e.getMonth()+1,2);break;case "M":C+=q("M",e.getMonth(),j,d);break;case "y":C+=k("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case "@":C+=
e.getTime();break;case "!":C+=e.getTime()*1E4+this._ticksTo1970;break;case "'":k("'")?C+="'":B=!0;break;default:C+=b.charAt(D)}return C},_possibleChars:function(b){for(var e="",d=!1,f=function(e){(e=h+1<b.length&&b.charAt(h+1)==e)&&h++;return e},h=0;h<b.length;h++)if(d)b.charAt(h)=="'"&&!f("'")?d=!1:e+=b.charAt(h);else switch(b.charAt(h)){case "d":case "m":case "y":case "@":e+="0123456789";break;case "D":case "M":return null;case "'":f("'")?e+="'":d=!0;break;default:e+=b.charAt(h)}return e},_get:function(b,
e){return b.settings[e]!==f?b.settings[e]:this._defaults[e]},_setDateFromField:function(b,e){if(b.input.val()!=b.lastVal){var d=this._get(b,"dateFormat"),f=b.lastVal=b.input?b.input.val():null,h,j;h=j=this._getDefaultDate(b);var k=this._getFormatConfig(b);try{h=this.parseDate(d,f,k)||j}catch(o){this.log(o),f=e?"":f}b.selectedDay=h.getDate();b.drawMonth=b.selectedMonth=h.getMonth();b.drawYear=b.selectedYear=h.getFullYear();b.currentDay=f?h.getDate():0;b.currentMonth=f?h.getMonth():0;b.currentYear=
f?h.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},_determineDate:function(d,e,f){var g;var h=function(b){var e=new Date;e.setDate(e.getDate()+b);return e};(g=(e=e==null||e===""?f:typeof e=="string"?function(e){try{return b.datepicker.parseDate(b.datepicker._get(d,"dateFormat"),e,b.datepicker._getFormatConfig(d))}catch(f){}for(var h=(e.toLowerCase().match(/^c/)?b.datepicker._getDate(d):
null)||new Date,j=h.getFullYear(),k=h.getMonth(),h=h.getDate(),n=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=n.exec(e);o;){switch(o[2]||"d"){case "d":case "D":h+=parseInt(o[1],10);break;case "w":case "W":h+=parseInt(o[1],10)*7;break;case "m":case "M":k+=parseInt(o[1],10);h=Math.min(h,b.datepicker._getDaysInMonth(j,k));break;case "y":case "Y":j+=parseInt(o[1],10),h=Math.min(h,b.datepicker._getDaysInMonth(j,k))}o=n.exec(e)}return new Date(j,k,h)}(e):typeof e=="number"?isNaN(e)?f:h(e):new Date(e.getTime()))&&
e.toString()=="Invalid Date"?f:e,e=g)&&(e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0));return this._daylightSavingAdjust(e)},_daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,e,d){var f=!e,h=b.selectedMonth,j=b.selectedYear,e=this._restrictMinMax(b,this._determineDate(b,e,new Date));b.selectedDay=b.currentDay=e.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=e.getMonth();b.drawYear=b.selectedYear=
b.currentYear=e.getFullYear();(h!=b.selectedMonth||j!=b.selectedYear)&&!d&&this._notifyChange(b);this._adjustInstDate(b);b.input&&b.input.val(f?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(d){var e=new Date,e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate())),f=this._get(d,"isRTL"),j=this._get(d,"showButtonPanel"),
k=this._get(d,"hideIfNoPrevNext"),o=this._get(d,"navigationAsDateFormat"),x=this._getNumberOfMonths(d),z=this._get(d,"showCurrentAtPos"),q=this._get(d,"stepMonths"),C=x[0]!=1||x[1]!=1,B=this._daylightSavingAdjust(d.currentDay?new Date(d.currentYear,d.currentMonth,d.currentDay):new Date(9999,9,9)),D=this._getMinMaxDate(d,"min"),y=this._getMinMaxDate(d,"max"),z=d.drawMonth-z,r=d.drawYear;z<0&&(z+=12,r--);if(y)for(var E=this._daylightSavingAdjust(new Date(y.getFullYear(),y.getMonth()-x[0]*x[1]+1,y.getDate())),
E=D&&E<D?D:E;this._daylightSavingAdjust(new Date(r,z,1))>E;)z--,z<0&&(z=11,r--);d.drawMonth=z;d.drawYear=r;var E=this._get(d,"prevText"),E=o?this.formatDate(E,this._daylightSavingAdjust(new Date(r,z-q,1)),this._getFormatConfig(d)):E,E=this._canAdjustMonth(d,-1,r,z)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+d.id+"', -"+q+", 'M');\" title=\""+E+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?"e":"w")+'">'+E+"</span></a>":k?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+
E+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?"e":"w")+'">'+E+"</span></a>",I=this._get(d,"nextText"),I=o?this.formatDate(I,this._daylightSavingAdjust(new Date(r,z+q,1)),this._getFormatConfig(d)):I,k=this._canAdjustMonth(d,1,r,z)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._adjustDate('#"+d.id+"', +"+q+", 'M');\" title=\""+I+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?"w":"e")+'">'+I+"</span></a>":k?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+
I+'"><span class="ui-icon ui-icon-circle-triangle-'+(f?"w":"e")+'">'+I+"</span></a>",q=this._get(d,"currentText"),I=this._get(d,"gotoCurrent")&&d.currentDay?B:e,q=o?this.formatDate(q,I,this._getFormatConfig(d)):q,o=d.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+h+'.datepicker._hideDatepicker();">'+this._get(d,"closeText")+"</button>",j=j?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(f?o:"")+(this._isInRange(d,
I)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+h+".datepicker._gotoToday('#"+d.id+"');\">"+q+"</button>":"")+(f?"":o)+"</div>":"",o=parseInt(this._get(d,"firstDay"),10),o=isNaN(o)?0:o,q=this._get(d,"showWeek"),I=this._get(d,"dayNames");this._get(d,"dayNamesShort");var F=this._get(d,"dayNamesMin"),L=this._get(d,"monthNames"),O=this._get(d,"monthNamesShort"),J=this._get(d,"beforeShowDay"),v=this._get(d,"showOtherMonths"),
G=this._get(d,"selectOtherMonths");this._get(d,"calculateWeek");for(var N=this._getDefaultDate(d),m="",P=0;P<x[0];P++){var M="";this.maxRows=4;for(var U=0;U<x[1];U++){var A=this._daylightSavingAdjust(new Date(r,z,d.selectedDay)),T=" ui-corner-all",R="";if(C){R+='<div class="ui-datepicker-group';if(x[1]>1)switch(U){case 0:R+=" ui-datepicker-group-first";T=" ui-corner-"+(f?"right":"left");break;case x[1]-1:R+=" ui-datepicker-group-last";T=" ui-corner-"+(f?"left":"right");break;default:R+=" ui-datepicker-group-middle",
T=""}R+='">'}R+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+T+'">'+(/all|left/.test(T)&&P==0?f?k:E:"")+(/all|right/.test(T)&&P==0?f?E:k:"")+this._generateMonthYearHeader(d,z,r,D,y,P>0||U>0,L,O)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var p=q?'<th class="ui-datepicker-week-col">'+this._get(d,"weekHeader")+"</th>":"",T=0;T<7;T++){var S=(T+o)%7;p+="<th"+((T+o+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+I[S]+'">'+F[S]+"</span></th>"}R+=
p+"</tr></thead><tbody>";p=this._getDaysInMonth(r,z);r==d.selectedYear&&z==d.selectedMonth&&(d.selectedDay=Math.min(d.selectedDay,p));T=(this._getFirstDayOfMonth(r,z)-o+7)%7;p=Math.ceil((T+p)/7);this.maxRows=p=C?this.maxRows>p?this.maxRows:p:p;for(var S=this._daylightSavingAdjust(new Date(r,z,1-T)),Q=0;Q<p;Q++){R+="<tr>";for(var K=q?'<td class="ui-datepicker-week-col">'+this._get(d,"calculateWeek")(S)+"</td>":"",T=0;T<7;T++){var X=J?J.apply(d.input?d.input[0]:null,[S]):[!0,""],aa=S.getMonth()!=z,
Z=aa&&!G||!X[0]||D&&S<D||y&&S>y;K+='<td class="'+((T+o+6)%7>=5?" ui-datepicker-week-end":"")+(aa?" ui-datepicker-other-month":"")+(S.getTime()==A.getTime()&&z==d.selectedMonth&&d._keyEvent||N.getTime()==S.getTime()&&N.getTime()==A.getTime()?" "+this._dayOverClass:"")+(Z?" "+this._unselectableClass+" ui-state-disabled":"")+(aa&&!v?"":" "+X[1]+(S.getTime()==B.getTime()?" "+this._currentClass:"")+(S.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+((!aa||v)&&X[2]?' title="'+X[2]+'"':"")+(Z?"":
' onclick="DP_jQuery_'+h+".datepicker._selectDay('#"+d.id+"',"+S.getMonth()+","+S.getFullYear()+', this);return false;"')+">"+(aa&&!v?"&#xa0;":Z?'<span class="ui-state-default">'+S.getDate()+"</span>":'<a class="ui-state-default'+(S.getTime()==e.getTime()?" ui-state-highlight":"")+(S.getTime()==B.getTime()?" ui-state-active":"")+(aa?" ui-priority-secondary":"")+'" href="#">'+S.getDate()+"</a>")+"</td>";S.setDate(S.getDate()+1);S=this._daylightSavingAdjust(S)}R+=K+"</tr>"}z++;z>11&&(z=0,r++);R+="</tbody></table>"+
(C?"</div>"+(x[0]>0&&U==x[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");M+=R}m+=M}m+=j+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!d.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");d._keyEvent=!1;return m},_generateMonthYearHeader:function(b,e,d,f,j,k,o,z){var q=this._get(b,"changeMonth"),C=this._get(b,"changeYear"),B=this._get(b,"showMonthAfterYear"),D='<div class="ui-datepicker-title">',y="";if(k||!q)y+='<span class="ui-datepicker-month">'+
o[e]+"</span>";else{var o=f&&f.getFullYear()==d,r=j&&j.getFullYear()==d;y+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" >";for(var E=0;E<12;E++)(!o||E>=f.getMonth())&&(!r||E<=j.getMonth())&&(y+='<option value="'+E+'"'+(E==e?' selected="selected"':"")+">"+z[E]+"</option>");y+="</select>"}B||(D+=y+(k||!q||!C?"&#xa0;":""));if(!b.yearshtml)if(b.yearshtml="",k||!C)D+='<span class="ui-datepicker-year">'+d+"</span>";else{var z=this._get(b,
"yearRange").split(":"),I=(new Date).getFullYear(),o=function(b){b=b.match(/c[+-].*/)?d+parseInt(b.substring(1),10):b.match(/[+-].*/)?I+parseInt(b,10):parseInt(b,10);return isNaN(b)?I:b},e=o(z[0]),z=Math.max(e,o(z[1]||"")),e=f?Math.max(e,f.getFullYear()):e,z=j?Math.min(z,j.getFullYear()):z;for(b.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+h+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" >";e<=z;e++)b.yearshtml+='<option value="'+e+'"'+(e==d?' selected="selected"':
"")+">"+e+"</option>";b.yearshtml+="</select>";D+=b.yearshtml;b.yearshtml=null}D+=this._get(b,"yearSuffix");B&&(D+=(k||!q||!C?"&#xa0;":"")+y);D+="</div>";return D},_adjustInstDate:function(b,e,d){var f=b.drawYear+(d=="Y"?e:0),h=b.drawMonth+(d=="M"?e:0),e=Math.min(b.selectedDay,this._getDaysInMonth(f,h))+(d=="D"?e:0),f=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(f,h,e)));b.selectedDay=f.getDate();b.drawMonth=b.selectedMonth=f.getMonth();b.drawYear=b.selectedYear=f.getFullYear();(d==
"M"||d=="Y")&&this._notifyChange(b)},_restrictMinMax:function(b,e){var d=this._getMinMaxDate(b,"min"),f=this._getMinMaxDate(b,"max"),d=d&&e<d?d:e;return f&&d>f?f:d},_notifyChange:function(b){var e=this._get(b,"onChangeMonthYear");e&&e.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,e){return this._determineDate(b,this._get(b,e+"Date"),null)},
_getDaysInMonth:function(b,e){return 32-this._daylightSavingAdjust(new Date(b,e,32)).getDate()},_getFirstDayOfMonth:function(b,e){return(new Date(b,e,1)).getDay()},_canAdjustMonth:function(b,e,d,f){var h=this._getNumberOfMonths(b),d=this._daylightSavingAdjust(new Date(d,f+(e<0?e:h[0]*h[1]),1));e<0&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(b,d)},_isInRange:function(b,e){var d=this._getMinMaxDate(b,"min"),f=this._getMinMaxDate(b,"max");return(!d||e.getTime()>=
d.getTime())&&(!f||e.getTime()<=f.getTime())},_getFormatConfig:function(b){var e=this._get(b,"shortYearCutoff"),e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,e,d,f){e||(b.currentDay=b.selectedDay,b.currentMonth=b.selectedMonth,b.currentYear=b.selectedYear);e=e?typeof e==
"object"?e:this._daylightSavingAdjust(new Date(f,d,e)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),e,this._getFormatConfig(b))}});b.fn.datepicker=function(d){if(!this.length)return this;b.datepicker.initialized||(b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv),b.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);if(typeof d=="string"&&(d=="isDisabled"||
d=="getDate"||d=="widget"))return b.datepicker["_"+d+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));if(d=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+d+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));return this.each(function(){typeof d=="string"?b.datepicker["_"+d+"Datepicker"].apply(b.datepicker,[this].concat(e)):b.datepicker._attachDatepicker(this,d)})};b.datepicker=new o;b.datepicker.initialized=!1;b.datepicker.uuid=(new Date).getTime();b.datepicker.version=
"1.8.17";window["DP_jQuery_"+h]=b})(jQuery);(function(b){function f(b,e,d,f,g){b={duration:f,easing:b.easing};if(typeof g=="function")b.complete=g;e.animate({opacity:d},b)}function d(e,d,f,g,h,j){var k=B(z(s(d),g),g,!0)[0],m=B(s(f),g,!0)[0],n={},o={};n[g.d.width]=m;n[g.d.left]=j?-m:k;o[g.d.left]=0;d.animate({opacity:"+=0"},h);f.css(n).animate(o,{duration:h,easing:e.easing,complete:function(){b(this).remove()}})}function k(e,d,f,g,h,j,k){var d=B(q(s(d),g,k),g,!0)[0],k=B(s(f),g,!0)[0],m={},n={};m[g.d.width]=k;m[g.d.left]=0;n[g.d.left]=j?-k:d;
f.css(m).animate(n,{duration:h,easing:e.easing,complete:function(){b(this).remove()}})}function o(b,e){if(e=="show"||e=="hide")var d=e;else b.items.minimum>=e?(M(b.debug,"Not enough items: not scrolling"),d="hide"):d="show";if(b.prev.button)b.prev.button[d]();if(b.next.button)b.next.button[d]();if(b.pagination.container)b.pagination.container[d]()}function h(b,e){if(!b.circular&&!b.infinite){var d=e=="removeClass"||e=="addClass"?e:!1;if(b.next.button){var f=d||e==b.items.visible?"addClass":"removeClass";
b.next.button[f]("disabled")}if(b.prev.button)b.prev.button[d||e==0?"addClass":"removeClass"]("disabled")}}function j(b,e){for(var d=[],f=0,g=b.length;f<g;f++)for(var h=0,j=e.length;h<j;h++)if(e[h].indexOf(typeof b[f])>-1&&!d[h]){d[h]=b[f];break}return d}function g(e){P(e)||(e=[[e]]);P(e[0])||(e=[e]);for(var d=0,f=e.length;d<f;d++)typeof e[d][0]=="string"&&(e[d][0]=b(e[d][0])),typeof e[d][1]!="boolean"&&(e[d][1]=!0),typeof e[d][2]!="boolean"&&(e[d][2]=!0),typeof e[d][3]!="number"&&(e[d][3]=0);return e}
function e(b){if(b=="right")return 39;if(b=="left")return 37;if(b=="up")return 38;if(b=="down")return 40;return-1}function n(b,e){typeof e=="function"&&(e=e.call(b));typeof e=="undefined"&&(e={});return e}function w(d,f,g,h){typeof g!="boolean"&&(g=!1);typeof h!="boolean"&&(h=!1);f=n(d,f);if(typeof f=="string")var j=e(f),f=j==-1?b(f):j;if(g){typeof f=="boolean"&&(f={keys:f});typeof f.jquery!="undefined"&&(f={container:f});if(typeof f.container=="function")f.container=f.container.call(d);if(typeof f.container==
"string")f.container=b(f.container);if(typeof f.event!="string")f.event="click"}else if(h)typeof f=="boolean"&&(f={play:f}),typeof f=="number"&&(f={pauseDuration:f});else{typeof f.jquery!="undefined"&&(f={button:f});typeof f=="number"&&(f={key:f});if(typeof f.button=="function")f.button=f.button.call(d);if(typeof f.button=="string")f.button=b(f.button);if(typeof f.key=="string")f.key=e(f.key);if(typeof f.event!="string")f.event="click"}return f}function u(e,d,f,g,h,j){typeof e=="string"&&(e=isNaN(e)?
b(e):parseInt(e));typeof e=="object"?(typeof e.jquery=="undefined"&&(e=b(e)),e=s(j).index(e),e==-1&&(e=0),typeof f!="boolean"&&(f=!1)):typeof f!="boolean"&&(f=!0);e=isNaN(e)?0:parseInt(e);d=isNaN(d)?0:parseInt(d);f&&(e+=g);e+=d;if(h>0){for(;e>=h;)e-=h;for(;e<0;)e+=h}return e}function s(e,d){var f=b("> *",e);typeof d=="string"&&(f=f.filter(d));return f}function x(b,e){return b.slice(0,e.items.visible)}function z(b,e){return b.slice(0,e.items.oldVisible)}function q(b,e,d){return b.slice(d,e.items.visible+
d)}function C(e,d,f){var g=typeof f=="boolean"?f:!1;typeof f!="number"&&(f=0);e.each(function(){var e=parseInt(b(this).css(d.d.marginRight));isNaN(e)&&(e=0);b(this).data("cfs_tempCssMargin",e);b(this).css(d.d.marginRight,g?b(this).data("cfs_tempCssMargin"):f+b(this).data("cfs_origCssMargin"))})}function B(b,e,d){s1=E(b,e,"width",d);s2=D(b,e,"height",d);return[s1,s2]}function D(b,e,d,f){typeof f!="boolean"&&(f=!1);if(typeof e[e.d[d]]=="number"&&f)return e[e.d[d]];if(typeof e.items[e.d[d]]=="number")return e.items[e.d[d]];
d=d.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight";return y(b,e,d)}function y(e,d,f){var g=0;e.each(function(){var e=b(this)[d.d[f]](!0);g<e&&(g=e)});return g}function r(b,e,d){var f=b[e.d[d]](),e=e.d[d].toLowerCase().indexOf("width")>-1?["paddingLeft","paddingRight"]:["paddingTop","paddingBottom"];a=0;for(l=e.length;a<l;a++)d=parseInt(b.css(e[a])),isNaN(d)&&(d=0),f-=d;return f}function E(b,e,d,f){typeof f!="boolean"&&(f=!1);if(typeof e[e.d[d]]=="number"&&f)return e[e.d[d]];if(typeof e.items[e.d[d]]==
"number")return e.items[e.d[d]]*b.length;d=d.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight";return I(b,e,d)}function I(e,d,f){var g=0;e.each(function(){var e=b(this);e.is(":visible")&&(g+=e[d.d[f]](!0))});return g}function F(e,d,f){var g=!1,h=!1;e.each(function(){c=b(this)[d.d[f]](!0);g===!1?g=c:g!=c&&(h=!0)});return h}function L(b,e,d){typeof d!="boolean"&&(d=!0);var d=e.usePadding&&d?e.padding:[0,0,0,0],f={};f[e.d.width]=b[0]+d[1]+d[3];f[e.d.height]=b[1]+d[0]+d[2];return f}function O(b,
e,d){var f=b.parent(),g=s(b),h=x(g,e),d=L(B(h,e,!0),e,d);f.css(d);e.usePadding&&(f=h.last(),f.css(e.d.marginRight,f.data("cfs_origCssMargin")+e.padding[e.d[1]]),b.css(e.d.top,e.padding[e.d[0]]),b.css(e.d.left,e.padding[e.d[3]]));b.css(e.d.width,E(g,e,"width")*2);b.css(e.d.height,D(g,e,"height"));return d}function J(b){if(typeof b=="undefined")return[0,0,0,0];if(typeof b=="number")return[b,b,b,b];else typeof b=="string"&&(b=b.split("px").join("").split(" "));if(!P(b))return[0,0,0,0];for(var e=0;e<
4;e++)b[e]=parseInt(b[e]);switch(b.length){case 0:return[0,0,0,0];case 1:return[b[0],b[0],b[0],b[0]];case 2:return[b[0],b[1],b[0],b[1]];case 3:return[b[0],b[1],b[2],b[1]];default:return[b[0],b[1],b[2],b[3]]}}function v(b,e){var d=typeof e[e.d.width]=="number"?Math.ceil(e[e.d.width]-E(b,e,"width")):0;switch(e.align){case "left":return[0,d];case "right":return[d,0];default:return[Math.ceil(d/2),Math.floor(d/2)]}}function G(b,e,d){var f=0,g=e.items.visible-d-1,d=0;for(g<0&&(g=b.length-1);g>=0;g--){f+=
b.eq(g)[e.d.outerWidth](!0);if(f>e.maxDimention)return m(d,e);if(g==0)g=b.length;d++}}function N(b,e,d){for(var f=0,g=0,h=b.length-1;d<=h;d++){f+=b.eq(d)[e.d.outerWidth](!0);if(f>e.maxDimention)return m(g,e);d==b.length-1&&(d=-1);g++}}function m(b,e){switch(e.visibleAdjust){case "+1":return b+1;case "-1":return b-1;case "odd":if(b%2==0)return b-1;break;case "odd+":if(b%2==0)return b+1;break;case "even":if(b%2==1)return b-1;break;case "even+":if(b%2==1)return b+1;break;default:return b}}function P(b){return typeof b==
"object"&&b instanceof Array}function M(b,e){if(!b)return!1;e=typeof e=="string"?"carouFredSel: "+e:["carouFredSel:",e];window.console&&window.console.log&&window.console.log(e);return!1}if(!b.fn.carouFredSel)b.fn.carouFredSel=function(e){if(this.length==0)return M(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){b(this).carouFredSel(e)});var A=this,I=this[0];A.init=function(e,d){for(var f=["items","scroll","auto","prev","next","pagination"],e=n(I,
e),h=0,j=f.length;h<j;h++)e[f[h]]=n(I,e[f[h]]);if(typeof e.scroll=="number")e.scroll=e.scroll<=50?{items:e.scroll}:{duration:e.scroll};else if(typeof e.scroll=="string")e.scroll={easing:e.scroll};if(typeof e.items=="number")e.items={visible:e.items};else if(e.items=="variable")e.items={visible:e.items,width:e.items,height:e.items};d&&(S=b.extend(!0,{},b.fn.carouFredSel.defaults,e));p=b.extend(!0,{},b.fn.carouFredSel.defaults,e);p.d={};p.variableVisible=!1;p.visibleAdjust=!1;oa=p.direction=="up"||
p.direction=="left"?"next":"prev";for(var f=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],h=f[0].length,j=p.direction=="right"||p.direction=="left"?0:1,k=0;k<h;k++)p.d[f[0][k]]=f[j][k];f=s(A);h=y(f,p,"outerHeight",!1);if(p.padding=="auto")M(!0,'The option "padding: auto" is deprecated, use "align: center".'),p.padding=!1,p.align=
"center";p[p.d.height]=="auto"&&(p[p.d.height]=h,p.items[p.d.height]=h);p.items[p.d.width]||(p.items[p.d.width]=F(f,p,"outerWidth")?"variable":f[p.d.outerWidth](!0));p.items[p.d.height]||(p.items[p.d.height]=F(f,p,"outerHeight")?"variable":f[p.d.outerHeight](!0));p[p.d.height]||(p[p.d.height]=p.items[p.d.height]);switch(p.items.visible){case "+1":case "-1":case "odd":case "odd+":case "even":case "even+":p.visibleAdjust=p.items.visible,p.items.visible=!1}if(!p.items.visible)if(p.items[p.d.width]==
"variable")p.items.visible="variable";else{if(typeof p[p.d.width]=="number")p.items.visible=Math.floor(p[p.d.width]/p.items[p.d.width]);else if(h=r(D.parent(),p,"innerWidth"),p.items.visible=Math.floor(h/p.items[p.d.width]),p[p.d.width]=p.items.visible*p.items[p.d.width],!p.visibleAdjust)p.align=!1;if(p.items.visible=="Infinity"||p.items.visible<0)M(!0,'Not a valid number of visible items: Set to "1".'),p.items.visible=1;p.items.visible=m(p.items.visible,p)}if(!p[p.d.width])p.items.visible!="variable"&&
p.items[p.d.width]!="variable"?(p[p.d.width]=p.items.visible*p.items[p.d.width],p.align=!1):p[p.d.width]="variable";if(p.items.visible=="variable")p.variableVisible=!0,p.maxDimention=p[p.d.width]=="variable"?r(D.parent(),p,"innerWidth"):p[p.d.width],p.align===!1&&(p[p.d.width]="variable"),p.items.visible=N(f,p,0);if(typeof p.padding=="undefined")p.padding=0;if(typeof p.align=="undefined")p.align=p[p.d.width]=="variable"?!1:"center";p.items.oldVisible=p.items.visible;p.usePadding=!1;p.padding=J(p.padding);
if(p.align=="top")p.align="left";if(p.align=="bottom")p.align="right";switch(p.align){case "center":case "left":case "right":if(p[p.d.width]!="variable")f=v(x(f,p),p),p.usePadding=!0,p.padding[p.d[1]]=f[1],p.padding[p.d[3]]=f[0];break;default:p.align=!1,p.usePadding=p.padding[0]==0&&p.padding[1]==0&&p.padding[2]==0&&p.padding[3]==0?!1:!0}if(typeof p.items.minimum!="number")p.items.minimum=p.variableVisible?1:p.items.visible;if(typeof p.scroll.items!="number")p.scroll.items=p.variableVisible?"variable":
p.items.visible;if(typeof p.scroll.duration!="number")p.scroll.duration=500;p.auto=w(I,p.auto,!1,!0);p.prev=w(I,p.prev);p.next=w(I,p.next);p.pagination=w(I,p.pagination,!0);p.auto=b.extend(!0,{},p.scroll,p.auto);p.prev=b.extend(!0,{},p.scroll,p.prev);p.next=b.extend(!0,{},p.scroll,p.next);p.pagination=b.extend(!0,{},p.scroll,p.pagination);if(typeof p.pagination.keys!="boolean")p.pagination.keys=!1;if(typeof p.pagination.anchorBuilder!="function")p.pagination.anchorBuilder=b.fn.carouFredSel.pageAnchorBuilder;
if(typeof p.auto.play!="boolean")p.auto.play=!0;if(typeof p.auto.nap!="boolean")p.auto.nap=!0;if(typeof p.auto.delay!="number")p.auto.delay=0;if(typeof p.auto.pauseDuration!="number")p.auto.pauseDuration=p.auto.duration<10?2500:p.auto.duration*5;if(p.synchronise)p.synchronise=g(p.synchronise);p.debug&&(M(!0,"Carousel width: "+p.width),M(!0,"Carousel height: "+p.height),M(!0,"Item widths: "+p.items.width),M(!0,"Item heights: "+p.items.height),M(!0,"Number of items visible: "+p.items.visible),p.auto.play&&
M(!0,"Number of items scrolled automatically: "+p.auto.items),p.prev.button&&M(!0,"Number of items scrolled backward: "+p.prev.items),p.next.button&&M(!0,"Number of items scrolled forward: "+p.next.items))};A.build=function(){(A.css("position")=="absolute"||A.css("position")=="fixed")&&M(p.debug,'Carousels CSS-attribute "position" should be "static" or "relative".');D.css({position:"relative",overflow:"hidden",marginTop:A.css("marginTop"),marginRight:A.css("marginRight"),marginBottom:A.css("marginBottom"),
marginLeft:A.css("marginLeft")});A.data("cfs_origCss",{width:A.css("width"),height:A.css("height"),marginTop:A.css("marginTop"),marginRight:A.css("marginRight"),marginBottom:A.css("marginBottom"),marginLeft:A.css("marginLeft"),"float":A.css("float"),position:A.css("position"),top:A.css("top"),left:A.css("left")}).css({marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,"float":"none",position:"absolute"});p.usePadding&&s(A).each(function(){var e=parseInt(b(this).css(p.d.marginRight));isNaN(e)&&
(e=0);b(this).data("cfs_origCssMargin",e)})};A.bind_events=function(){A.unbind_events();A.bind("stop.cfs"+V,function(b){b.stopPropagation();A.trigger("pause");p.auto.play=!1;ha="stopped"});A.bind("pause.cfs"+V,function(b,e){b.stopPropagation();if(typeof e=="boolean")M(!0,'Pause a carousel globally is deprecated, use the "stop" custom event.'),A.trigger("stop");else{ha=!0;X!=null&&clearTimeout(X);aa!=null&&clearInterval(aa);Z!=null&&clearInterval(Z);var d=p.auto.pauseDuration-ga,f=100-Math.ceil(d*
100/p.auto.pauseDuration);f!=0&&p.auto.onPausePause&&p.auto.onPausePause.call(I,f,d)}});A.bind("play.cfs"+V,function(b,e,d,f){b.stopPropagation();A.trigger("pause");f=j([e,d,f],["string","number","boolean"]);e=f[0];d=f[1];f=f[2];e!="prev"&&e!="next"&&(e=oa);typeof d!="number"&&(d=0);if(f)p.auto.play=!0;if(p.auto.play){ha=!1;var g=p.auto.pauseDuration-ga;perc=100-Math.ceil(g*100/p.auto.pauseDuration);X=setTimeout(function(){A.is(":animated")?A.trigger("play",e):(ga=0,A.trigger(e,p.auto))},g+d);p.auto.pauseOnHover===
"resume"&&(aa=setInterval(function(){ga+=50},50));p.auto.onPauseEnd&&perc==0&&p.auto.onPauseEnd.call(I,perc,g);p.auto.onPauseStart&&(Z=setTimeout(function(){p.auto.onPauseStart.call(I,perc,g)},d))}else b.stopImmediatePropagation()});A.bind("prev.cfs next.cfs"+V,function(b,e,d,f){b.stopPropagation();if(!(ha=="stopped"||A.is(":hidden"))){var g=j([e,d,f],["object","number","function"]),e=g[0],d=g[1],f=g[2];typeof e!="object"&&(e=p[b.type]);if(typeof f=="function")e.onAfter=f;typeof g[1]!="number"&&(d=
typeof e.items=="number"?e.items:typeof p[b.type].items=="number"?p[b.type].items:p.items.visible);if(A.is(":animated"))e.queue&&A.trigger("queue",[b.type,[e,d,f]]);else if(p.items.minimum>=Q)M(p.debug,"Not enough items: not scrolling.");else{ga=0;if(typeof d!="number")return M(p.debug,"Not a valid number: "+d+". Not scrolling");if(e.conditions&&!e.conditions.call(I))return M(p.debug,'Callback "conditions" returned false.');A.trigger("slide_"+b.type,[e,d]);if(p.synchronise){e=p.synchronise;oI=d;d=
0;for(f=e.length;d<f;d++){var h=b.type;e[d][1]||(g[0]=e[d][0].triggerHandler("configuration",b.type));e[d][2]||(h=h=="prev"?"next":"prev");g[1]=oI+e[d][3];e[d][0].trigger("slide_"+h,g)}}}}});A.bind("slide_prev.cfs"+V,function(b,e,g){b.stopPropagation();if(p.variableVisible){oI=g;p.items.oldVisible=p.items.visible;var j=s(A);p.usePadding&&C(j,p);p.items.visible=G(j,p,oI);g=p.items.visible-p.items.oldVisible+oI;if(g<=0)p.items.visible=N(j,p,Q-oI),g=oI;p.usePadding&&C(j,p,!0)}if(!p.circular){var m=Q-
K;m-g<0&&(g=m);K==0&&(g=0)}K+=g;K>=Q&&(K-=Q);if(!p.circular)if(K==0&&g!=0&&e.onEnd&&e.onEnd.call(I),p.infinite){if(g==0){A.trigger("next",Q-p.items.visible);return}}else h(p,K);if(g==0)b.stopImmediatePropagation();else{s(A).slice(Q-g).prependTo(A);Q<p.items.visible+g&&s(A).slice(0,p.items.visible+g-Q).clone(!0).appendTo(A);var j=s(A),n=j.slice(g,p.items.oldVisible+g),o=j.slice(0,p.items.visible),b=j.eq(g-1),m=n.last(),r=o.last();p.usePadding&&(C(m,p),C(o,p));if(p.align)var y=v(o,p);if(e.fx=="directscroll"&&
p.items.oldVisible<g){var q=j.slice(p.items.oldVisible,g).hide(),J=p.items[p.d.width];p.items[p.d.width]="variable"}else q=!1;var j=E(j.slice(0,g),p,"width"),u=L(B(o,p,!0),p,!p.usePadding);q&&(p.items[p.d.width]=J);p.usePadding&&(C(m,p,p.padding[p.d[1]]),C(b,p,p.padding[p.d[3]]));p.align&&(p.padding[p.d[1]]=y[1],p.padding[p.d[3]]=y[0]);var y={},J={},z={},w={},x=e.duration;e.fx=="none"?x=0:x=="auto"?x=p.scroll.duration/p.scroll.items*g:x<=0?x=0:x<10&&(x=j/x);var F={duration:x,easing:e.easing};e.onBefore&&
e.onBefore.call(I,n,o,u,x);if(p.usePadding){var P=p.padding[p.d[3]];z[p.d.marginRight]=b.data("cfs_origCssMargin");J[p.d.marginRight]=r.data("cfs_origCssMargin")+p.padding[p.d[1]];w[p.d.marginRight]=m.data("cfs_origCssMargin");b.stop().animate(z,F);r.stop().animate(J,F);m.stop().animate(w,F)}else P=0;y[p.d.left]=P;(p[p.d.width]=="variable"||p[p.d.height]=="variable")&&D.stop().animate(u,F);switch(e.fx){case "crossfade":case "cover":case "uncover":var M=A.clone().appendTo(D)}switch(e.fx){case "uncover":s(M).slice(0,
g).remove();case "crossfade":case "cover":s(M).slice(p.items.visible).remove()}switch(e.fx){case "fade":f(e,A,0,x);break;case "crossfade":M.css({opacity:0});f(e,M,1,x);f(e,A,1,x,function(){M.remove()});break;case "cover":d(e,A,M,p,x,!0);break;case "uncover":k(e,A,M,p,x,!0,g)}switch(e.fx){case "fade":case "crossfade":case "cover":case "uncover":f_dur=x,x=0}var X=g;A.css(p.d.left,-j);A.animate(y,{duration:x,easing:e.easing,complete:function(){var b=p.items.visible+X-Q;b>0&&(s(A).slice(Q).remove(),n=
s(A).slice(Q-(X-b)).get().concat(s(A).slice(0,b).get()));q&&q.show();p.usePadding&&(b=s(A).eq(p.items.visible+X-1),b.css(p.d.marginRight,b.data("cfs_origCssMargin")));b=function(){e.onAfter&&e.onAfter.call(I,n,o,u);ca.length&&setTimeout(function(){A.trigger(ca[0][0],ca[0][1]);ca.shift()},1)};switch(e.fx){case "fade":case "uncover":f(e,A,1,f_dur,b);break;default:b()}}});A.trigger("updatePageStatus",[!1,u]).trigger("play",x)}});A.bind("slide_next.cfs"+V,function(b,e,g){b.stopPropagation();if(p.variableVisible){p.items.oldVisible=
p.items.visible;var j=s(A);p.usePadding&&C(j,p);p.items.visible=N(j,p,g);if(p.items.oldVisible-g>=p.items.visible)p.items.visible=N(j,p,++g);p.usePadding&&C(j,p,!0)}p.circular||(K==0?g>Q-p.items.visible&&(g=Q-p.items.visible):K-g<p.items.visible&&(g=K-p.items.visible));K-=g;K<0&&(K+=Q);if(!p.circular)if(K==p.items.visible&&g!=0&&e.onEnd&&e.onEnd.call(I),p.infinite){if(g==0){A.trigger("prev",Q-p.items.visible);return}}else h(p,K);if(g!=0){Q<p.items.visible+g&&s(A).slice(0,p.items.visible+g-Q).clone(!0).appendTo(A);
var j=s(A),m=z(j,p),n=q(j,p,g),b=m.eq(g-1),o=m.last(),r=n.last();p.usePadding&&(C(o,p),C(r,p));if(p.align)var y=v(n,p);if(e.fx=="directscroll"&&p.items.oldVisible<g){var G=j.slice(p.items.oldVisible,g).hide(),J=p.items[p.d.width];p.items[p.d.width]="variable"}else G=!1;var j=E(j.slice(0,g),p,"width"),u=L(B(n,p,!0),p,!p.usePadding);G&&(p.items[p.d.width]=J);p.usePadding&&(C(o,p,p.padding[p.d[1]]),C(r,p,p.padding[p.d[1]]));p.align&&(p.padding[p.d[1]]=y[1],p.padding[p.d[3]]=y[0]);var y={},J={},w={},
F=e.duration;e.fx=="none"?F=0:F=="auto"?F=p.scroll.duration/p.scroll.items*g:F<=0?F=0:F<10&&(F=j/F);var P={duration:F,easing:e.easing};e.onBefore&&e.onBefore.call(I,m,n,u,F);p.usePadding&&(J[p.d.marginRight]=o.data("cfs_origCssMargin"),w[p.d.marginRight]=b.data("cfs_origCssMargin")+p.padding[p.d[3]],r.css(p.d.marginRight,r.data("cfs_origCssMargin")+p.padding[p.d[1]]),o.stop().animate(J,P),b.stop().animate(w,P));y[p.d.left]=-j;(p[p.d.width]=="variable"||p[p.d.height]=="variable")&&D.stop().animate(u,
P);switch(e.fx){case "crossfade":case "cover":case "uncover":var M=A.clone().appendTo(D)}switch(e.fx){case "crossfade":case "cover":s(M).slice(0,g).remove();s(M).slice(p.items.visible).remove();break;case "uncover":s(M).slice(p.items.oldVisible).remove()}switch(e.fx){case "fade":f(e,A,0,F);break;case "crossfade":M.css({opacity:0});f(e,M,1,F);f(e,A,1,F,function(){M.remove()});break;case "cover":d(e,A,M,p,F,!1);break;case "uncover":k(e,A,M,p,F,!1,g)}switch(e.fx){case "fade":case "crossfade":case "cover":case "uncover":f_dur=
F,F=0}var X=g;A.animate(y,{duration:F,easing:e.easing,complete:function(){var b=p.items.visible+X-Q;A.css(p.d.left,p.usePadding?p.padding[p.d[3]]:0);b>0&&s(A).slice(Q).remove();var d=s(A).slice(0,X).appendTo(A).last();b>0&&(n=x(s(A),p));G&&G.show();p.usePadding&&(Q<p.items.visible+X&&(b=s(A).eq(p.items.visible-1),b.css(p.d.marginRight,b.data("cfs_origCssMargin")+p.padding[p.d[3]])),d.css(p.d.marginRight,d.data("cfs_origCssMargin")));d=function(){e.onAfter&&e.onAfter.call(I,m,n,u);ca.length&&setTimeout(function(){A.trigger(ca[0][0],
ca[0][1]);ca.shift()},1)};switch(e.fx){case "fade":case "uncover":f(e,A,1,f_dur,d);break;default:d()}}});A.trigger("updatePageStatus",[!1,u]).trigger("play",F)}});A.bind("slideTo.cfs"+V,function(b,e,d,f,g,h){b.stopPropagation();A.is(":animated")||(b=j([e,d,f,g,h],["string/number/object","number","boolean","object","string"]),g=b[3],h=b[4],e=u(b[0],b[1],b[2],K,Q,A),e!=0&&(typeof g!="object"&&(g=!1),h!="prev"&&h!="next"&&(h=p.circular?e<=Q/2?"next":"prev":K==0||K>e?"next":"prev"),h=="prev"?A.trigger("prev",
[g,Q-e]):A.trigger("next",[g,e])))});A.bind("synchronise.cfs"+V,function(b,e){if(e)e=g(e);else if(p.synchronise)e=p.synchronise;else return M(p.debug,"No carousel to synchronise.");for(var d=A.triggerHandler("currentPosition"),f=0,h=e.length;f<h;f++)e[f][0].trigger("slideTo",[d,e[f][3],!0])});A.bind("queue.cfs"+V,function(b,e,d){if(typeof e=="undefined")return ca;else typeof e=="function"?e.call(I,ca):P(e)?ca=e:ca.push([e,d])});A.bind("insertItem.cfs"+V,function(e,d,f,g,k){e.stopPropagation();k=j([d,
f,g,k],["string/object","string/number/object","boolean","number"]);d=k[0];f=k[1];g=k[2];k=k[3];typeof d=="object"&&typeof d.jquery=="undefined"&&(d=b(d));typeof d=="string"&&(d=b(d));if(typeof d!="object"||typeof d.jquery=="undefined"||d.length==0)return M(p.debug,"Not a valid object.");typeof f=="undefined"&&(f="end");p.usePadding&&d.each(function(){var e=parseInt(b(this).css(p.d.marginRight));isNaN(e)&&(e=0);b(this).data("cfs_origCssMargin",e)});var m=f,e="before";f=="end"?g?(K==0?(f=Q-1,e="after"):
(f=K,K+=d.length),f<0&&(f=0)):(f=Q-1,e="after"):f=u(f,k,g,K,Q,A);m!="end"&&!g&&f<K&&(K+=d.length);K>=Q&&(K-=Q);f=s(A).eq(f);if(f.length)f[e](d);else A.append(d);Q=s(A).length;A.trigger("linkAnchors");d=O(A,p);o(p,Q);h(p,K);A.trigger("updatePageStatus",[!0,d])});A.bind("removeItem.cfs"+V,function(b,e,d,f){b.stopPropagation();b=j([e,d,f],["string/number/object","boolean","number"]);e=b[0];d=b[1];f=b[2];typeof e=="undefined"||e=="end"?s(A).last().remove():(e=u(e,f,d,K,Q,A),d=s(A).eq(e),d.length&&(e<
K&&(K-=d.length),d.remove()));Q=s(A).length;e=O(A,p);o(p,Q);h(p,K);A.trigger("updatePageStatus",[!0,e])});A.bind("currentPosition.cfs"+V,function(b,e){b.stopPropagation();var d=K==0?0:Q-K;typeof e=="function"&&e.call(I,d);return d});A.bind("currentPage.cfs"+V,function(b,e){b.stopPropagation();var d=Math.ceil(Q/p.items.visible-1),f=K==0?0:K<Q%p.items.visible?0:K==p.items.visible&&!p.circular?d:Math.round((Q-K)/p.items.visible);f<0&&(f=0);f>d&&(f=d);typeof e=="function"&&e.call(I,f);return f});A.bind("currentVisible.cfs"+
V,function(b,e){b.stopPropagation();$i=x(s(A),p);typeof e=="function"&&e.call(I,$i);return $i});A.bind("isPaused.cfs"+V,function(b,e){b.stopPropagation();typeof e=="function"&&e.call(I,ha);return ha});A.bind("configuration.cfs"+V,function(e,d,f,g){e.stopPropagation();e=!1;if(typeof d=="function")d.call(I,p);else if(typeof d=="object")S=b.extend(!0,{},S,d),f!==!1?e=!0:p=b.extend(!0,{},p,d);else if(typeof d!="undefined")if(typeof f=="function"){var h=eval("opts."+d);typeof h=="undefined"&&(h="");f.call(I,
h)}else if(typeof f!="undefined"){typeof g!=="boolean"&&(g=!0);if(A.is(":animated"))return setTimeout(function(){A.trigger("configuration",[d,f,g])},100),M(p.debug,"carousel animated, configuration timeout.");eval("opts_orig."+d+" = b");g!==!1?e=!0:eval("opts."+d+" = b")}else return eval("opts."+d);e&&(C(s(A),p),A.init(S),O(A,p));return p});A.bind("linkAnchors.cfs"+V,function(e,d,f){e.stopPropagation();typeof d=="undefined"||d.length==0?d=b("body"):typeof d=="string"&&(d=b(d));if(typeof d!="object")return M(p.debug,
"Not a valid object.");if(typeof f!="string"||f.length==0)f="a.caroufredsel";d.find(f).each(function(){var e=this.hash||"";e.length>0&&s(A).index(b(e))!=-1&&b(this).unbind("click").click(function(b){b.preventDefault();A.trigger("slideTo",e)})})});A.bind("updatePageStatus.cfs"+V,function(e,d){e.stopPropagation();if(p.pagination.container){if(typeof d=="boolean"&&d){s(p.pagination.container).remove();for(var f=0,g=Math.ceil(Q/p.items.visible);f<g;f++){var h=s(A).eq(u(f*p.items.visible,0,!0,K,Q,A));
p.pagination.container.append(p.pagination.anchorBuilder(f+1,h))}s(p.pagination.container).unbind("click").each(function(e){b(this).click(function(b){b.preventDefault();A.trigger("slideTo",[e*p.items.visible,0,!0,p.pagination])})})}A.trigger("currentPage",function(b){s(p.pagination.container).removeClass("selected").eq(b).addClass("selected")})}});A.bind("destroy.cfs"+V,function(b,e){b.stopPropagation();e&&A.trigger("slideTo",[0,0,!0,{duration:0}]);p.usePadding&&C(s(A),p);A.trigger("pause").css(A.data("cfs_origCss"));
A.unbind_events();A.unbind_buttons();D.replaceWith(A)});A.bind("slidePrev.cfs"+V,function(b,e,d){b.stopPropagation();M(!0,'The custom event "slidePrev" is deprecated, use "slide_prev".');A.trigger("slide_prev",[e,d])});A.bind("slideNext.cfs"+V,function(b,e,d){b.stopPropagation();M(!0,'The custom event "slideNext" is deprecated, use "slide_next".');A.trigger("slide_next",[e,d])})};A.unbind_events=function(){A.unbind(".cfs"+V)};A.bind_buttons=function(){A.unbind_buttons();o(p,Q);h(p,K);p.auto.pauseOnHover&&
(D.bind("mouseenter.cfs"+V,function(){A.trigger("pause")}),D.bind("mouseleave.cfs"+V,function(){A.trigger("play")}));p.prev.button&&(p.prev.button.bind("click.cfs"+V,function(b){b.preventDefault();A.trigger("prev")}),p.prev.pauseOnHover&&(p.prev.button.bind("mouseenter.cfs"+V,function(){A.trigger("pause")}),p.prev.button.bind("mouseleave.cfs"+V,function(){A.trigger("play")})));p.next.button&&(p.next.button.bind("click.cfs"+V,function(b){b.preventDefault();A.trigger("next")}),p.next.pauseOnHover&&
(p.next.button.bind("mouseenter.cfs"+V,function(){A.trigger("pause")}),p.next.button.bind("mouseleave.cfs"+V,function(){A.trigger("play")})));b.fn.mousewheel&&(p.prev.mousewheel&&D.mousewheel(function(b,e){e>0&&(b.preventDefault(),num=typeof p.prev.mousewheel=="number"?p.prev.mousewheel:"",A.trigger("prev",num))}),p.next.mousewheel&&D.mousewheel(function(b,e){e<0&&(b.preventDefault(),num=typeof p.next.mousewheel=="number"?p.next.mousewheel:"",A.trigger("next",num))}));p.pagination.container&&p.pagination.pauseOnHover&&
(p.pagination.container.bind("mouseenter.cfs"+V,function(){A.trigger("pause")}),p.pagination.container.bind("mouseleave.cfs"+V,function(){A.trigger("play")}));(p.next.key||p.prev.key)&&b(document).bind("keyup.cfs"+V,function(b){var e=b.keyCode;e==p.next.key&&(b.preventDefault(),A.trigger("next"));e==p.prev.key&&(b.preventDefault(),A.trigger("prev"))});p.pagination.keys&&b(document).bind("keyup.cfs"+V,function(b){var e=b.keyCode;e>=49&&e<58&&(e=(e-49)*p.items.visible,e<=Q&&(b.preventDefault(),A.trigger("slideTo",
[e,0,!0,p.pagination])))});p.auto.play&&(A.trigger("play",p.auto.delay),b.fn.nap&&p.auto.nap&&A.nap("pause","play"))};A.unbind_buttons=function(){b(document).unbind(".cfs"+V);D.unbind(".cfs"+V);p.prev.button&&p.prev.button.unbind(".cfs"+V);p.next.button&&p.next.button.unbind(".cfs"+V);p.pagination.container&&p.pagination.container.unbind(".cfs"+V);o(p,"hide");h(p,"removeClass");p.pagination.container&&s(p.pagination.container).remove()};A.configuration=function(b,e){M(!0,'The "configuration" public method is deprecated, use the "configuration" custom event.');
var d=!1,f=function(b){d=b};b||(b=f);e||(e=f);A.trigger("configuration",[b,e]);return d};A.current_position=function(){M(!0,'The "current_position" public method is deprecated, use the "currentPosition" custom event.');var b=!1;A.trigger("currentPosition",function(e){b=e});return b};A.destroy=function(){M(!0,'The "destroy" public method is deprecated, use the "destroy" custom event.');A.trigger("destroy");return A};A.link_anchors=function(b,e){M(!0,'The "link_anchors" public method is deprecated, use the "linkAnchors" custom event.');
A.trigger("linkAnchors",[b,e]);return A};if(A.parent().is(".caroufredsel_wrapper")){var D=A.parent();A.trigger("destroy")}var D=A.wrap('<div class="caroufredsel_wrapper" />').parent(),p={},S=e,Q=s(A).length,K=0,X=null,aa=null,Z=null,ga=0,ha=!0,oa="next",ca=[],V=b.fn.carouFredSel.serial++;A.init(S,!0);A.build();A.bind_events();A.bind_buttons();if(p.items.start!==0&&p.items.start!==!1){var da=p.items.start;da===!0?(da=window.location.hash,da.length||(da=0)):da==="random"&&(da=Math.floor(Math.random()*
Q));A.trigger("slideTo",[da,0,!0,{duration:0}])}var da=O(A,p,!1),za=x(s(A),p);p.onCreate&&p.onCreate.call(I,za,da);A.trigger("updatePageStatus",[!0,da]);A.trigger("linkAnchors");return this},b.fn.carouFredSel.serial=0,b.fn.carouFredSel.defaults={debug:!1,synchronise:!1,infinite:!0,circular:!0,direction:"left",items:{start:0},scroll:{easing:"swing",pauseOnHover:!1,mousewheel:!1,queue:!1}},b.fn.carouFredSel.pageAnchorBuilder=function(b){return'<a href="#"><span>'+b+"</span></a>"},b.fn.caroufredsel=
function(b){return this.carouFredSel(b)}})(jQuery);(function(b,f,d){function k(b){var e={},f=/^jQuery\d+$/;d.each(b.attributes,function(b,d){if(d.specified&&!f.test(d.name))e[d.name]=d.value});return e}function o(){var b=d(this);b.val()===b.attr("placeholder")&&b.hasClass("placeholder")&&(b.data("placeholder-password")?b.hide().next().show().focus().attr("id",b.removeAttr("id").data("placeholder-id")):b.val("").removeClass("placeholder"))}function h(){var b,e=d(this),f=this.id;if(e.val()===""){if(e.is(":password")){if(!e.data("placeholder-textinput")){try{b=
e.clone().attr({type:"text"})}catch(h){b=d("<input>").attr(d.extend(k(this),{type:"text"}))}b.removeAttr("name").data("placeholder-password",!0).data("placeholder-id",f).bind("focus.placeholder",o);e.data("placeholder-textinput",b).data("placeholder-id",f).before(b)}e=e.removeAttr("id").hide().prev().attr("id",f).show()}e.addClass("placeholder").val(e.attr("placeholder"))}else e.removeClass("placeholder")}var j="placeholder"in f.createElement("input"),f="placeholder"in f.createElement("textarea");
j&&f?(d.fn.placeholder=function(){return this},d.fn.placeholder.input=d.fn.placeholder.textarea=!0):(d.fn.placeholder=function(){return this.filter((j?"textarea":":input")+"[placeholder]").bind("focus.placeholder",o).bind("blur.placeholder",h).trigger("blur.placeholder").end()},d.fn.placeholder.input=j,d.fn.placeholder.textarea=f,d(function(){d("form").bind("submit.placeholder",function(){var b=d(".placeholder",this).each(o);setTimeout(function(){b.each(h)},10)})}),d(b).bind("unload.placeholder",
function(){d(".placeholder").val("")}))})(this,document,jQuery);(function(b){function f(b){return typeof b=="object"?b:{top:b,left:b}}var d=b.scrollTo=function(d,f,h){b(window).scrollTo(d,f,h)};d.defaults={axis:"xy",duration:parseFloat(b.fn.jquery)>=1.3?0:1};d.window=function(){return b(window)._scrollable()};b.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&b.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])==-1)return this;var d=(this.contentWindow||this).document||this.ownerDocument||this;return b.browser.safari||
d.compatMode=="BackCompat"?d.body:d.documentElement})};b.fn.scrollTo=function(k,o,h){typeof o=="object"&&(h=o,o=0);typeof h=="function"&&(h={onAfter:h});k=="max"&&(k=9E9);h=b.extend({},d.defaults,h);o=o||h.speed||h.duration;h.queue=h.queue&&h.axis.length>1;h.queue&&(o/=2);h.offset=f(h.offset);h.over=f(h.over);return this._scrollable().each(function(){function j(b){e.animate(u,o,h.easing,b&&function(){b.call(this,k,h)})}var g=this,e=b(g),n=k,w,u={},s=e.is("html,body");switch(typeof n){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=
f(n);break}n=b(n,this);case "object":if(n.is||n.style)w=(n=b(n)).offset()}b.each(h.axis.split(""),function(b,f){var k=f=="x"?"Left":"Top",o=k.toLowerCase(),B="scroll"+k,D=g[B],y=d.max(g,f);w?(u[B]=w[o]+(s?0:D-e.offset()[o]),h.margin&&(u[B]-=parseInt(n.css("margin"+k))||0,u[B]-=parseInt(n.css("border"+k+"Width"))||0),u[B]+=h.offset[o]||0,h.over[o]&&(u[B]+=n[f=="x"?"width":"height"]()*h.over[o])):(k=n[o],u[B]=k.slice&&k.slice(-1)=="%"?parseFloat(k)/100*y:k);/^\d+$/.test(u[B])&&(u[B]=u[B]<=0?0:Math.min(u[B],
y));!b&&h.queue&&(D!=u[B]&&j(h.onAfterFirst),delete u[B])});j(h.onAfter)}).end()};d.max=function(d,f){var h=f=="x"?"Width":"Height",j="scroll"+h;if(!b(d).is("html,body"))return d[j]-b(d)[h.toLowerCase()]();var h="client"+h,g=d.ownerDocument.documentElement,e=d.ownerDocument.body;return Math.max(g[j],e[j])-Math.min(g[h],e[h])}})(jQuery);(function(){var b=this,f=b._,d={},k=Array.prototype,o=Object.prototype,h=k.slice,j=k.unshift,g=o.toString,e=o.hasOwnProperty,n=k.forEach,w=k.map,u=k.reduce,s=k.reduceRight,x=k.filter,z=k.every,q=k.some,C=k.indexOf,B=k.lastIndexOf,o=Array.isArray,D=Object.keys,y=Function.prototype.bind,r=function(b){return new O(b)};typeof module!=="undefined"&&module.exports?(module.exports=r,r._=r):b._=r;r.VERSION="1.1.7";var E=r.each=r.forEach=function(b,f,g){if(b!=null)if(n&&b.forEach===n)b.forEach(f,g);else if(b.length===
+b.length)for(var h=0,j=b.length;h<j;h++){if(h in b&&f.call(g,b[h],h,b)===d)break}else for(h in b)if(e.call(b,h)&&f.call(g,b[h],h,b)===d)break};r.map=function(b,e,d){var f=[];if(b==null)return f;if(w&&b.map===w)return b.map(e,d);E(b,function(b,g,h){f[f.length]=e.call(d,b,g,h)});return f};r.reduce=r.foldl=r.inject=function(b,e,d,f){var g=d!==void 0;b==null&&(b=[]);if(u&&b.reduce===u)return f&&(e=r.bind(e,f)),g?b.reduce(e,d):b.reduce(e);E(b,function(b,h,j){g?d=e.call(f,d,b,h,j):(d=b,g=!0)});if(!g)throw new TypeError("Reduce of empty array with no initial value");
return d};r.reduceRight=r.foldr=function(b,e,d,f){b==null&&(b=[]);if(s&&b.reduceRight===s)return f&&(e=r.bind(e,f)),d!==void 0?b.reduceRight(e,d):b.reduceRight(e);b=(r.isArray(b)?b.slice():r.toArray(b)).reverse();return r.reduce(b,e,d,f)};r.find=r.detect=function(b,e,d){var f;I(b,function(b,g,h){if(e.call(d,b,g,h))return f=b,!0});return f};r.filter=r.select=function(b,e,d){var f=[];if(b==null)return f;if(x&&b.filter===x)return b.filter(e,d);E(b,function(b,g,h){e.call(d,b,g,h)&&(f[f.length]=b)});return f};
r.reject=function(b,e,d){var f=[];if(b==null)return f;E(b,function(b,g,h){e.call(d,b,g,h)||(f[f.length]=b)});return f};r.every=r.all=function(b,e,f){var g=!0;if(b==null)return g;if(z&&b.every===z)return b.every(e,f);E(b,function(b,h,j){if(!(g=g&&e.call(f,b,h,j)))return d});return g};var I=r.some=r.any=function(b,e,f){var e=e||r.identity,g=!1;if(b==null)return g;if(q&&b.some===q)return b.some(e,f);E(b,function(b,h,j){if(g|=e.call(f,b,h,j))return d});return!!g};r.include=r.contains=function(b,e){var d=
!1;if(b==null)return d;if(C&&b.indexOf===C)return b.indexOf(e)!=-1;I(b,function(b){if(d=b===e)return!0});return d};r.invoke=function(b,e){var d=h.call(arguments,2);return r.map(b,function(b){return(e.call?e||b:b[e]).apply(b,d)})};r.pluck=function(b,e){return r.map(b,function(b){return b[e]})};r.max=function(b,e,d){if(!e&&r.isArray(b))return Math.max.apply(Math,b);var f={computed:-Infinity};E(b,function(b,g,h){g=e?e.call(d,b,g,h):b;g>=f.computed&&(f={value:b,computed:g})});return f.value};r.min=function(b,
e,d){if(!e&&r.isArray(b))return Math.min.apply(Math,b);var f={computed:Infinity};E(b,function(b,g,h){g=e?e.call(d,b,g,h):b;g<f.computed&&(f={value:b,computed:g})});return f.value};r.sortBy=function(b,e,d){return r.pluck(r.map(b,function(b,f,g){return{value:b,criteria:e.call(d,b,f,g)}}).sort(function(b,e){var d=b.criteria,f=e.criteria;return d<f?-1:d>f?1:0}),"value")};r.groupBy=function(b,e){var d={};E(b,function(b,f){var g=e(b,f);(d[g]||(d[g]=[])).push(b)});return d};r.sortedIndex=function(b,e,d){d||
(d=r.identity);for(var f=0,g=b.length;f<g;){var h=f+g>>1;d(b[h])<d(e)?f=h+1:g=h}return f};r.toArray=function(b){if(!b)return[];if(b.toArray)return b.toArray();if(r.isArray(b))return h.call(b);if(r.isArguments(b))return h.call(b);return r.values(b)};r.size=function(b){return r.toArray(b).length};r.first=r.head=function(b,e,d){return e!=null&&!d?h.call(b,0,e):b[0]};r.rest=r.tail=function(b,e,d){return h.call(b,e==null||d?1:e)};r.last=function(b){return b[b.length-1]};r.compact=function(b){return r.filter(b,
function(b){return!!b})};r.flatten=function(b){return r.reduce(b,function(b,e){if(r.isArray(e))return b.concat(r.flatten(e));b[b.length]=e;return b},[])};r.without=function(b){return r.difference(b,h.call(arguments,1))};r.uniq=r.unique=function(b,e){return r.reduce(b,function(b,d,f){if(0==f||(e===!0?r.last(b)!=d:!r.include(b,d)))b[b.length]=d;return b},[])};r.union=function(){return r.uniq(r.flatten(arguments))};r.intersection=r.intersect=function(b){var e=h.call(arguments,1);return r.filter(r.uniq(b),
function(b){return r.every(e,function(e){return r.indexOf(e,b)>=0})})};r.difference=function(b,e){return r.filter(b,function(b){return!r.include(e,b)})};r.zip=function(){for(var b=h.call(arguments),e=r.max(r.pluck(b,"length")),d=Array(e),f=0;f<e;f++)d[f]=r.pluck(b,""+f);return d};r.indexOf=function(b,e,d){if(b==null)return-1;var f;if(d)return d=r.sortedIndex(b,e),b[d]===e?d:-1;if(C&&b.indexOf===C)return b.indexOf(e);d=0;for(f=b.length;d<f;d++)if(b[d]===e)return d;return-1};r.lastIndexOf=function(b,
e){if(b==null)return-1;if(B&&b.lastIndexOf===B)return b.lastIndexOf(e);for(var d=b.length;d--;)if(b[d]===e)return d;return-1};r.range=function(b,e,d){arguments.length<=1&&(e=b||0,b=0);for(var d=arguments[2]||1,f=Math.max(Math.ceil((e-b)/d),0),g=0,h=Array(f);g<f;)h[g++]=b,b+=d;return h};r.bind=function(b,e){if(b.bind===y&&y)return y.apply(b,h.call(arguments,1));var d=h.call(arguments,2);return function(){return b.apply(e,d.concat(h.call(arguments)))}};r.bindAll=function(b){var e=h.call(arguments,1);
e.length==0&&(e=r.functions(b));E(e,function(e){b[e]=r.bind(b[e],b)});return b};r.memoize=function(b,d){var f={};d||(d=r.identity);return function(){var g=d.apply(this,arguments);return e.call(f,g)?f[g]:f[g]=b.apply(this,arguments)}};r.delay=function(b,e){var d=h.call(arguments,2);return setTimeout(function(){return b.apply(b,d)},e)};r.defer=function(b){return r.delay.apply(r,[b,1].concat(h.call(arguments,1)))};var F=function(b,e,d){var f;return function(){var g=this,h=arguments,j=function(){f=null;
b.apply(g,h)};d&&clearTimeout(f);if(d||!f)f=setTimeout(j,e)}};r.throttle=function(b,e){return F(b,e,!1)};r.debounce=function(b,e){return F(b,e,!0)};r.once=function(b){var e=!1,d;return function(){if(e)return d;e=!0;return d=b.apply(this,arguments)}};r.wrap=function(b,e){return function(){var d=[b].concat(h.call(arguments));return e.apply(this,d)}};r.compose=function(){var b=h.call(arguments);return function(){for(var e=h.call(arguments),d=b.length-1;d>=0;d--)e=[b[d].apply(this,e)];return e[0]}};r.after=
function(b,e){return function(){if(--b<1)return e.apply(this,arguments)}};r.keys=D||function(b){if(b!==Object(b))throw new TypeError("Invalid object");var d=[],f;for(f in b)e.call(b,f)&&(d[d.length]=f);return d};r.values=function(b){return r.map(b,r.identity)};r.functions=r.methods=function(b){var e=[],d;for(d in b)r.isFunction(b[d])&&e.push(d);return e.sort()};r.extend=function(b){E(h.call(arguments,1),function(e){for(var d in e)e[d]!==void 0&&(b[d]=e[d])});return b};r.defaults=function(b){E(h.call(arguments,
1),function(e){for(var d in e)b[d]==null&&(b[d]=e[d])});return b};r.clone=function(b){return r.isArray(b)?b.slice():r.extend({},b)};r.tap=function(b,e){e(b);return b};r.isEqual=function(b,e){if(b===e)return!0;var d=typeof b;if(d!=typeof e)return!1;if(b==e)return!0;if(!b&&e||b&&!e)return!1;if(b._chain)b=b._wrapped;if(e._chain)e=e._wrapped;if(b.isEqual)return b.isEqual(e);if(e.isEqual)return e.isEqual(b);if(r.isDate(b)&&r.isDate(e))return b.getTime()===e.getTime();if(r.isNaN(b)&&r.isNaN(e))return!1;
if(r.isRegExp(b)&&r.isRegExp(e))return b.source===e.source&&b.global===e.global&&b.ignoreCase===e.ignoreCase&&b.multiline===e.multiline;if(d!=="object")return!1;if(b.length&&b.length!==e.length)return!1;var d=r.keys(b),f=r.keys(e);if(d.length!=f.length)return!1;for(var g in b)if(!(g in e)||!r.isEqual(b[g],e[g]))return!1;return!0};r.isEmpty=function(b){if(r.isArray(b)||r.isString(b))return b.length===0;for(var d in b)if(e.call(b,d))return!1;return!0};r.isElement=function(b){return!!(b&&b.nodeType==
1)};r.isArray=o||function(b){return g.call(b)==="[object Array]"};r.isObject=function(b){return b===Object(b)};r.isArguments=function(b){return!(!b||!e.call(b,"callee"))};r.isFunction=function(b){return!(!b||!b.constructor||!b.call||!b.apply)};r.isString=function(b){return!!(b===""||b&&b.charCodeAt&&b.substr)};r.isNumber=function(b){return!!(b===0||b&&b.toExponential&&b.toFixed)};r.isNaN=function(b){return b!==b};r.isBoolean=function(b){return b===!0||b===!1};r.isDate=function(b){return!(!b||!b.getTimezoneOffset||
!b.setUTCFullYear)};r.isRegExp=function(b){return!(!b||!b.test||!b.exec||!(b.ignoreCase||b.ignoreCase===!1))};r.isNull=function(b){return b===null};r.isUndefined=function(b){return b===void 0};r.noConflict=function(){b._=f;return this};r.identity=function(b){return b};r.times=function(b,e,d){for(var f=0;f<b;f++)e.call(d,f)};r.mixin=function(b){E(r.functions(b),function(e){v(e,r[e]=b[e])})};var L=0;r.uniqueId=function(b){var e=L++;return b?b+e:e};r.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};
r.template=function(b,e){var d=r.templateSettings,d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+b.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.interpolate,function(b,e){return"',"+e.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||null,function(b,e){return"');"+e.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",d=new Function("obj",d);return e?d(e):d};
var O=function(b){this._wrapped=b};r.prototype=O.prototype;var J=function(b,e){return e?r(b).chain():b},v=function(b,e){O.prototype[b]=function(){var b=h.call(arguments);j.call(b,this._wrapped);return J(e.apply(r,b),this._chain)}};r.mixin(r);E(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var e=k[b];O.prototype[b]=function(){e.apply(this._wrapped,arguments);return J(this._wrapped,this._chain)}});E(["concat","join","slice"],function(b){var e=k[b];O.prototype[b]=function(){return J(e.apply(this._wrapped,
arguments),this._chain)}});O.prototype.chain=function(){this._chain=!0;return this};O.prototype.value=function(){return this._wrapped}})();(function(){var b=this,f=b.Backbone,d;d=typeof exports!=="undefined"?exports:b.Backbone={};d.VERSION="0.5.3";var k=b._;if(!k&&typeof require!=="undefined")k=require("underscore")._;var o=b.jQuery||b.Zepto||b.ender;d.noConflict=function(){b.Backbone=f;return this};d.emulateHTTP=!1;d.emulateJSON=!1;d.Events={bind:function(b,e,d){var f=this._callbacks||(this._callbacks={});(f[b]||(f[b]=[])).push([e,d]);return this},unbind:function(b,e){var d;if(b){if(d=this._callbacks)if(e){d=d[b];if(!d)return this;
for(var f=0,g=d.length;f<g;f++)if(d[f]&&e===d[f][0]){d[f]=null;break}}else d[b]=[]}else this._callbacks={};return this},trigger:function(b){var e,d,f,g,h=2;if(!(d=this._callbacks))return this;for(;h--;)if(e=h?b:"all",e=d[e])for(var j=0,k=e.length;j<k;j++)(f=e[j])?(g=h?Array.prototype.slice.call(arguments,1):arguments,f[0].apply(f[1]||this,g)):(e.splice(j,1),j--,k--);return this}};d.Model=function(b,e){var d;b||(b={});if(d=this.defaults)k.isFunction(d)&&(d=d.call(this)),b=k.extend({},d,b);this.attributes=
{};this._escapedAttributes={};this.cid=k.uniqueId("c");this.set(b,{silent:!0});this._changed=!1;this._previousAttributes=k.clone(this.attributes);if(e&&e.collection)this.collection=e.collection;this.initialize(b,e)};k.extend(d.Model.prototype,d.Events,{_previousAttributes:null,_changed:!1,idAttribute:"id",initialize:function(){},toJSON:function(){return k.clone(this.attributes)},get:function(b){return this.attributes[b]},escape:function(b){var e;if(e=this._escapedAttributes[b])return e;e=this.attributes[b];
return this._escapedAttributes[b]=(e==null?"":""+e).replace(/&(?!\w+;|#\d+;|#x[\da-f]+;)/gi,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},has:function(b){return this.attributes[b]!=null},set:function(b,e){e||(e={});if(!b)return this;if(b.attributes)b=b.attributes;var d=this.attributes,f=this._escapedAttributes;if(!e.silent&&this.validate&&!this._performValidation(b,e))return!1;if(this.idAttribute in b)this.id=b[this.idAttribute];
var g=this._changing;this._changing=!0;for(var h in b){var j=b[h];if(!k.isEqual(d[h],j))d[h]=j,delete f[h],this._changed=!0,e.silent||this.trigger("change:"+h,this,j,e)}!g&&!e.silent&&this._changed&&this.change(e);this._changing=!1;return this},unset:function(b,e){if(!(b in this.attributes))return this;e||(e={});var d={};d[b]=void 0;if(!e.silent&&this.validate&&!this._performValidation(d,e))return!1;delete this.attributes[b];delete this._escapedAttributes[b];b==this.idAttribute&&delete this.id;this._changed=
!0;e.silent||(this.trigger("change:"+b,this,void 0,e),this.change(e));return this},clear:function(b){b||(b={});var e,d=this.attributes,f={};for(e in d)f[e]=void 0;if(!b.silent&&this.validate&&!this._performValidation(f,b))return!1;this.attributes={};this._escapedAttributes={};this._changed=!0;if(!b.silent){for(e in d)this.trigger("change:"+e,this,void 0,b);this.change(b)}return this},fetch:function(b){b||(b={});var e=this,f=b.success;b.success=function(d,g,h){if(!e.set(e.parse(d,h),b))return!1;f&&
f(e,d)};b.error=D(b.error,e,b);return(this.sync||d.sync).call(this,"read",this,b)},save:function(b,e){e||(e={});if(b&&!this.set(b,e))return!1;var f=this,g=e.success;e.success=function(b,d,h){if(!f.set(f.parse(b,h),e))return!1;g&&g(f,b,h)};e.error=D(e.error,f,e);var h=this.isNew()?"create":"update";return(this.sync||d.sync).call(this,h,this,e)},destroy:function(b){b||(b={});if(this.isNew())return this.trigger("destroy",this,this.collection,b);var e=this,f=b.success;b.success=function(d){e.trigger("destroy",
e,e.collection,b);f&&f(e,d)};b.error=D(b.error,e,b);return(this.sync||d.sync).call(this,"delete",this,b)},url:function(){var b=C(this.collection)||this.urlRoot||B();if(this.isNew())return b;return b+(b.charAt(b.length-1)=="/"?"":"/")+encodeURIComponent(this.id)},parse:function(b){return b},clone:function(){return new this.constructor(this)},isNew:function(){return this.id==null},change:function(b){this.trigger("change",this,b);this._previousAttributes=k.clone(this.attributes);this._changed=!1},hasChanged:function(b){if(b)return this._previousAttributes[b]!=
this.attributes[b];return this._changed},changedAttributes:function(b){b||(b=this.attributes);var e=this._previousAttributes,d=!1,f;for(f in b)k.isEqual(e[f],b[f])||(d=d||{},d[f]=b[f]);return d},previous:function(b){if(!b||!this._previousAttributes)return null;return this._previousAttributes[b]},previousAttributes:function(){return k.clone(this._previousAttributes)},_performValidation:function(b,e){var d=this.validate(b);if(d)return e.error?e.error(this,d,e):this.trigger("error",this,d,e),!1;return!0}});
d.Collection=function(b,e){e||(e={});if(e.comparator)this.comparator=e.comparator;k.bindAll(this,"_onModelEvent","_removeReference");this._reset();b&&this.reset(b,{silent:!0});this.initialize.apply(this,arguments)};k.extend(d.Collection.prototype,d.Events,{model:d.Model,initialize:function(){},toJSON:function(){return this.map(function(b){return b.toJSON()})},add:function(b,e){if(k.isArray(b))for(var d=0,f=b.length;d<f;d++)this._add(b[d],e);else this._add(b,e);return this},remove:function(b,e){if(k.isArray(b))for(var d=
0,f=b.length;d<f;d++)this._remove(b[d],e);else this._remove(b,e);return this},get:function(b){if(b==null)return null;return this._byId[b.id!=null?b.id:b]},getByCid:function(b){return b&&this._byCid[b.cid||b]},at:function(b){return this.models[b]},sort:function(b){b||(b={});if(!this.comparator)throw Error("Cannot sort a set without a comparator");this.models=this.sortBy(this.comparator);b.silent||this.trigger("reset",this,b);return this},pluck:function(b){return k.map(this.models,function(e){return e.get(b)})},
reset:function(b,e){b||(b=[]);e||(e={});this.each(this._removeReference);this._reset();this.add(b,{silent:!0});e.silent||this.trigger("reset",this,e);return this},fetch:function(b){b||(b={});var e=this,f=b.success;b.success=function(d,g,h){e[b.add?"add":"reset"](e.parse(d,h),b);f&&f(e,d)};b.error=D(b.error,e,b);return(this.sync||d.sync).call(this,"read",this,b)},create:function(b,e){var d=this;e||(e={});b=this._prepareModel(b,e);if(!b)return!1;var f=e.success;e.success=function(b,g,h){d.add(b,e);
f&&f(b,g,h)};b.save(null,e);return b},parse:function(b){return b},chain:function(){return k(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId={};this._byCid={}},_prepareModel:function(b,e){if(b instanceof d.Model){if(!b.collection)b.collection=this}else{var f=b,b=new this.model(f,{collection:this});b.validate&&!b._performValidation(f,e)&&(b=!1)}return b},_add:function(b,e){e||(e={});b=this._prepareModel(b,e);if(!b)return!1;var d=this.getByCid(b);if(d)throw Error(["Can't add the same model to a set twice",
d.id]);this._byId[b.id]=b;this._byCid[b.cid]=b;this.models.splice(e.at!=null?e.at:this.comparator?this.sortedIndex(b,this.comparator):this.length,0,b);b.bind("all",this._onModelEvent);this.length++;e.silent||b.trigger("add",b,this,e);return b},_remove:function(b,e){e||(e={});b=this.getByCid(b)||this.get(b);if(!b)return null;delete this._byId[b.id];delete this._byCid[b.cid];this.models.splice(this.indexOf(b),1);this.length--;e.silent||b.trigger("remove",b,this,e);this._removeReference(b);return b},
_removeReference:function(b){this==b.collection&&delete b.collection;b.unbind("all",this._onModelEvent)},_onModelEvent:function(b,e,d,f){(b=="add"||b=="remove")&&d!=this||(b=="destroy"&&this._remove(e,f),e&&b==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],this._byId[e.id]=e),this.trigger.apply(this,arguments))}});k.each(["forEach","each","map","reduce","reduceRight","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max",
"min","sortBy","sortedIndex","toArray","size","first","rest","last","without","indexOf","lastIndexOf","isEmpty","groupBy"],function(b){d.Collection.prototype[b]=function(){return k[b].apply(k,[this.models].concat(k.toArray(arguments)))}});d.Router=function(b){b||(b={});if(b.routes)this.routes=b.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var h=/:([\w\d]+)/g,j=/\*([\w\d]+)/g,g=/[-[\]{}()+?.,\\^$|#\s]/g;k.extend(d.Router.prototype,d.Events,{initialize:function(){},route:function(b,
e,f){d.history||(d.history=new d.History);k.isRegExp(b)||(b=this._routeToRegExp(b));d.history.route(b,k.bind(function(d){d=this._extractParameters(b,d);f.apply(this,d);this.trigger.apply(this,["route:"+e].concat(d))},this))},navigate:function(b,e){d.history.navigate(b,e)},_bindRoutes:function(){if(this.routes){var b=[],e;for(e in this.routes)b.unshift([e,this.routes[e]]);e=0;for(var d=b.length;e<d;e++)this.route(b[e][0],b[e][1],this[b[e][1]])}},_routeToRegExp:function(b){b=b.replace(g,"\\$&").replace(h,
"([^/]*)").replace(j,"(.*?)");return RegExp("^"+b+"$")},_extractParameters:function(b,e){return b.exec(e).slice(1)}});d.History=function(){this.handlers=[];k.bindAll(this,"checkUrl")};var e=/^#*!*\/*/,n=/msie [\w.]+/,w=!1;k.extend(d.History.prototype,{interval:50,getFragment:function(b,d){if(b==null)if(this._hasPushState||d){var b=window.location.pathname,f=window.location.search;f&&(b+=f);b.indexOf(this.options.root)==0&&(b=b.substr(this.options.root.length))}else b=window.location.hash;return decodeURIComponent(b.replace(e,
""))},start:function(b){if(w)throw Error("Backbone.history has already been started");this.options=k.extend({},{root:"/"},this.options,b);this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!window.history||!window.history.pushState);var b=this.getFragment(),d=document.documentMode;if(d=n.exec(navigator.userAgent.toLowerCase())&&(!d||d<=7))this.iframe=o('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(b);
this._hasPushState?o(window).bind("popstate",this.checkUrl):"onhashchange"in window&&!d?o(window).bind("hashchange",this.checkUrl):setInterval(this.checkUrl,this.interval);this.fragment=b;w=!0;b=window.location;d=b.pathname==this.options.root;if(this._wantsPushState&&!this._hasPushState&&!d)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#!/"+this.fragment),!0;else if(this._wantsPushState&&this._hasPushState&&d&&b.hash)this.fragment=b.hash.replace(e,""),window.history.replaceState({},
document.title,b.protocol+"//"+b.host+this.options.root+this.fragment);if(!this.options.silent)return this.loadUrl()},route:function(b,e){this.handlers.unshift({route:b,callback:e})},checkUrl:function(){var b=this.getFragment();b==this.fragment&&this.iframe&&(b=this.getFragment(this.iframe.location.hash));if(b==this.fragment||b==decodeURIComponent(this.fragment))return!1;this.iframe&&this.navigate(b);this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(b){var e=this.fragment=this.getFragment(b);
return k.any(this.handlers,function(b){if(b.route.test(e))return b.callback(e),!0})},navigate:function(b,d){var f=(b||"").replace(e,"");if(!(this.fragment==f||this.fragment==decodeURIComponent(f))){if(this._hasPushState){var g=window.location;f.indexOf(this.options.root)!=0&&(f=this.options.root+f);this.fragment=f;window.history.pushState({},document.title,g.protocol+"//"+g.host+f)}else if(this.fragment=f,window.location.hash="!/"+f,this.iframe&&f!=this.getFragment(this.iframe.location.hash))this.iframe.document.open().close(),
this.iframe.location.hash=f;d&&this.loadUrl(b)}}});d.View=function(b){this.cid=k.uniqueId("view");this._configure(b||{});this._ensureElement();this.delegateEvents();this.initialize.apply(this,arguments)};var u=/^(\S+)\s*(.*)$/,s=["model","collection","el","id","attributes","className","tagName"];k.extend(d.View.prototype,d.Events,{tagName:"div",$:function(b){return o(b,this.el)},initialize:function(){},render:function(){return this},remove:function(){o(this.el).remove();return this},make:function(b,
e,d){b=document.createElement(b);e&&o(b).attr(e);d&&o(b).html(d);return b},delegateEvents:function(b){if(b||(b=this.events)){k.isFunction(b)&&(b=b.call(this));o(this.el).unbind(".delegateEvents"+this.cid);for(var e in b){var d=this[b[e]];if(!d)throw Error('Event "'+b[e]+'" does not exist');var f=e.match(u),g=f[1],f=f[2],d=k.bind(d,this);g+=".delegateEvents"+this.cid;f===""?o(this.el).bind(g,d):o(this.el).delegate(f,g,d)}}},_configure:function(b){this.options&&(b=k.extend({},this.options,b));for(var e=
0,d=s.length;e<d;e++){var f=s[e];b[f]&&(this[f]=b[f])}this.options=b},_ensureElement:function(){if(this.el){if(k.isString(this.el))this.el=o(this.el).get(0)}else{var b=this.attributes||{};if(this.id)b.id=this.id;if(this.className)b["class"]=this.className;this.el=this.make(this.tagName,b)}}});d.Model.extend=d.Collection.extend=d.Router.extend=d.View.extend=function(b,e){var d=q(this,b,e);d.extend=this.extend;return d};var x={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};d.sync=function(b,
e,f){var g=x[b],f=k.extend({type:g,dataType:"json"},f);if(!f.url)f.url=C(e)||B();if(!f.data&&e&&(b=="create"||b=="update"))f.contentType="application/json",f.data=JSON.stringify(e.toJSON());if(d.emulateJSON)f.contentType="application/x-www-form-urlencoded",f.data=f.data?{model:f.data}:{};if(d.emulateHTTP&&(g==="PUT"||g==="DELETE")){if(d.emulateJSON)f.data._method=g;f.type="POST";f.beforeSend=function(b){b.setRequestHeader("X-HTTP-Method-Override",g)}}if(f.type!=="GET"&&!d.emulateJSON)f.processData=
!1;return o.ajax(f)};var z=function(){},q=function(b,e,d){var f;f=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return b.apply(this,arguments)};k.extend(f,b);z.prototype=b.prototype;f.prototype=new z;e&&k.extend(f.prototype,e);d&&k.extend(f,d);f.prototype.constructor=f;f.__super__=b.prototype;return f},C=function(b){if(!b||!b.url)return null;return k.isFunction(b.url)?b.url():b.url},B=function(){throw Error('A "url" property or function must be specified');},D=function(b,e,d){return function(f){b?
b(e,f,d):e.trigger("error",e,f,d)}}}).call(this);(function(){var b={},f={};b.keyToTitle=function(b){b=b.replace(/([A-Z])/g," $1");return b=b.replace(/^./,function(b){return b.toUpperCase()})};b.createTemplate=function(b){var d=_.templateSettings.interpolate;_.templateSettings.interpolate=/\{\{(.+?)\}\}/g;b=_.template(b);_.templateSettings.interpolate=d;return b};b.createEditor=function(b,d){return new (_.isString(b)?o[b]:b)(d)};b.triggerCancellableEvent=function(b,d,f,e){d=b.hasOwnProperty("_callbacks")?b._callbacks[d]||[]:[];if(!d.length)return e();
b=d[0][0];d=d[0][1]||this;f.push(e);b.apply(d,f)};b.getValidator=function(b){var d=_(b).isRegExp();if(d||b.RegExp)return d||(b=RegExp(b.RegExp)),function(d){if(!b.test(d))return"Value "+d+" does not pass validation against regular expression "+b};else if(_(b).isString())if(f[b])return f[b];else throw'Validator "'+b+'" not found';else if(_(b).isFunction())return b;else throw"Could not process validator"+b;};f.required=function(b){if(!(b===0||b))return"This field is required"};var d=Backbone.View.extend({fields:null,
tagName:"fieldset",className:"bbf-form",initialize:function(b){this.schema=b.schema||(b.model?b.model.schema:{});this.model=b.model;this.data=b.data;this.fieldsToRender=b.fields||_.keys(this.schema);this.fieldsets=b.fieldsets;this.idPrefix=b.idPrefix||"";this.fields={}},render:function(){var b=this.fieldsToRender,d=this.fieldsets,f=$(this.el),e=this;d?_.each(d,function(b){_(b).isArray()&&(b={fields:b});var d=$("<fieldset><ul>");b.legend&&d.append($("<legend>").html(b.legend));e.renderFields(b.fields,
d.find("ul"));f.append(d)}):(d=$("<ul>"),f.append(d),this.renderFields(b,d));return this},renderFields:function(d,f){var g=this.schema,e=this.model,n=this.data,o=this.fields,f=f||$(this.el),u=this;_.each(d,function(d){var h;h=d.replace(/\./g,".subSchema.");h=h.split(".");for(var z=g,q=0,C=h.length;q<C;q++)z=z[h[q]];h=z;if(!h)throw"Field '"+d+"' not found in schema";z={key:d,schema:h,idPrefix:u.idPrefix};e?z.model=e:z.value=n?n[d]:null;q=new k(z);h.type=="Hidden"?q.editor=b.createEditor("Hidden",z):
f.append(q.render().el);o[d]=q})},validate:function(){var b=this.model,d={};_.each(this.fields,function(b){var e=b.validate();e&&(d[b.key]=e)});if(b&&b.validate&&(b=b.validate(this.getValue())))d._nonFieldErrors=b;return _.isEmpty(d)?null:d},commit:function(){var b=this.fields,d=this.validate();if(d)return d;_.each(b,function(b){var e=b.commit();e&&(d[b.key]=e)});return _.isEmpty(d)?null:d},getValue:function(b){return b?this.fields[b].getValue():(b=this.fields,obj={},_.each(b,function(b){obj[b.key]=
b.getValue()}),obj)},setValue:function(b){for(var d in b)this.fields[d].setValue(b[d])},remove:function(){var b=this.fields,d;for(d in b)b[d].remove();Backbone.View.prototype.remove.call(this)}}),k=Backbone.View.extend({tagName:"li",className:"bbf-field",events:{"click label":"logValue"},initialize:function(d){this.key=d.key;this.schema=d.schema||{};this.value=d.value;this.model=d.model;this.idPrefix=d.idPrefix||"";d=this.schema;if(!d.type)d.type="Text";if(!d.title)d.title=b.keyToTitle(this.key)},
render:function(){var d=this.schema,f=$(this.el);f.addClass("bbf-field"+d.type);var g={key:this.key,schema:d,idPrefix:this.idPrefix,id:this.idPrefix+this.key};this.model?g.model=this.model:g.value=this.value;g=b.createEditor(d.type,g);f.html(k.template({key:this.key,title:d.title,id:g.id,type:d.type}));$(".bbf-editor",f).html(g.render().el);this.editor=g;return this},validate:function(){return this.editor.validate()},commit:function(){return this.editor.commit()},getValue:function(){return this.editor.getValue()},
setValue:function(b){this.editor.setValue(b)},logValue:function(){console.log(this.getValue())},remove:function(){this.editor.remove();Backbone.View.prototype.remove.call(this)}},{template:b.createTemplate('             <label for="{{id}}">{{title}}</label>             <div class="bbf-editor bbf-editor{{type}}"></div>        ')}),o={};o.Base=Backbone.View.extend({defaultValue:null,initialize:function(b){b=b||{};if(b.model){if(!b.key)throw"Missing option: 'key'";this.model=b.model;this.key=b.key;this.value=
this.model.get(this.key)}else if(b.value)this.value=b.value;if(this.value===void 0)this.value=this.defaultValue;this.schema=b.schema||{};this.validators=b.validators||this.schema.validators},getValue:function(){throw"Not implemented. Extend and override this method.";},setValue:function(){throw"Not implemented. Extend and override this method.";},validate:function(){var d=$(this.el),f=null,g=this.getValue();this.validators&&_(this.validators).each(function(e){f||(f=b.getValidator(e)(g))});if(!f&&
this.model&&this.model.validate){var e={};e[this.key]=g;f=this.model.validate(e)}f?d.addClass("bbf-error"):d.removeClass("bbf-error");return f},commit:function(){var b=null,d={};d[this.key]=this.getValue();this.model.set(d,{error:function(d,e){b=e}});return b}});o.Text=o.Base.extend({tagName:"input",defaultValue:"",initialize:function(b){o.Base.prototype.initialize.call(this,b);b="text";if(this.schema&&this.schema.dataType)b=this.schema.dataType;$(this.el).attr("type",b)},render:function(){this.setValue(this.value);
return this},getValue:function(){return $(this.el).val()},setValue:function(b){$(this.el).val(b)}});o.Number=o.Text.extend({defaultValue:0,events:{keypress:"onKeyPress"},onKeyPress:function(b){/^[0-9]*\.?[0-9]*?$/.test($(this.el).val()+String.fromCharCode(b.keyCode))||b.preventDefault()},getValue:function(){var b=$(this.el).val();return b===""?null:parseFloat(b,10)},setValue:function(b){b=b===null?null:parseFloat(b,10);o.Text.prototype.setValue.call(this,b)}});o.Password=o.Text.extend({initialize:function(b){o.Text.prototype.initialize.call(this,
b);$(this.el).attr("type","password")}});o.TextArea=o.Text.extend({tagName:"textarea"});o.Checkbox=o.Base.extend({defaultValue:!1,tagName:"input",initialize:function(b){o.Base.prototype.initialize.call(this,b);$(this.el).attr("type","checkbox")},render:function(){this.setValue(this.value);return this},getValue:function(){return $(this.el).attr("checked")?!0:!1},setValue:function(b){b&&$(this.el).attr("checked",!0)}});o.Hidden=o.Base.extend({defaultValue:"",initialize:function(b){o.Text.prototype.initialize.call(this,
b);$(this.el).attr("type","hidden")},getValue:function(){return this.value},setValue:function(b){this.value=b}});o.Select=o.Base.extend({tagName:"select",initialize:function(b){o.Base.prototype.initialize.call(this,b);if(!this.schema||!this.schema.options)throw"Missing required 'schema.options'";},render:function(){var b=this.schema.options,d=this;b instanceof Backbone.Collection?b.length>0?d.renderOptions(b):b.fetch({success:function(){d.renderOptions(b)}}):_.isFunction(b)?b(function(b){d.renderOptions(b)}):
d.renderOptions(b);return this},renderOptions:function(b){var d=$(this.el),f;_.isString(b)?f=b:_.isArray(b)?f=this._arrayToHtml(b):b instanceof Backbone.Collection&&(f=this._collectionToHtml(b));d.html(f);this.setValue(this.value)},getValue:function(){return $(this.el).val()},setValue:function(b){$(this.el).val(b)},_collectionToHtml:function(b){var d=[];b.each(function(b){d.push({val:b.id,label:b.toString()})});return this._arrayToHtml(d)},_arrayToHtml:function(b){var d=[];_.each(b,function(b){_.isObject(b)?
d.push('<option value="'+(b.val!==void 0?b.val:"")+'">'+b.label+"</option>"):d.push("<option>"+b+"</option>")});return d.join("")}});o.Radio=o.Select.extend({tagName:"ul",className:"bbf-radio",getValue:function(){return $(this.el).find("input[type=radio]:checked").val()},setValue:function(b){$(this.el).find("input[type=radio][value="+b+"]").attr("checked",!0)},_arrayToHtml:function(b){var d=[],f=this;_.each(b,function(b,h){var k="<li>";_.isObject(b)?(k+='<input type="radio" name="'+f.id+'" value="'+
(b.val?b.val:"")+'" id="'+f.id+"-"+h+'" />',k+='<label for="'+f.id+"-"+h+'">'+b.label+"</label>"):(k+='<input type="radio" name="'+f.id+'" value="'+b+'" id="'+f.id+"-"+h+'" />',k+='<label for="'+f.id+"-"+h+'">'+b+"</label>");k+="</li>";d.push(k)});return d.join("")}});o.Checkboxes=o.Select.extend({tagName:"ul",className:"bbf-checkboxes",getValue:function(){var b=[];$(this.el).find("input[type=checkbox]:checked").each(function(){b.push($(this).val())});return b},setValue:function(b){var d=this;_.each(b,
function(b){$(d.el).find("input[type=checkbox][value="+b+"]").attr("checked",!0)})},_arrayToHtml:function(b){var d=[],f=this;_.each(b,function(b,h){var k="<li>";_.isObject(b)?(k+='<input type="checkbox" name="'+f.id+'" value="'+(b.val?b.val:"")+'" id="'+f.id+"-"+h+'" />',k+='<label for="'+f.id+"-"+h+'">'+b.label+"</label>"):(k+='<input type="checkbox" name="'+f.id+'" value="'+b+'" id="'+f.id+"-"+h+'" />',k+='<label for="'+f.id+"-"+h+'">'+b+"</label>");k+="</li>";d.push(k)});return d.join("")}});o.Object=
o.Base.extend({className:"bbf-object",defaultValue:{},initialize:function(b){o.Base.prototype.initialize.call(this,b);if(!this.schema.subSchema)throw"Missing required 'schema.subSchema' option for Object editor";this.idPrefix=b.idPrefix||""},render:function(){var b=$(this.el);this.form=new d({schema:this.schema.subSchema,data:this.value||{},idPrefix:this.idPrefix+this.key+"_"});b.html(this.form.render().el);return this},getValue:function(){return this.form.getValue()},setValue:function(b){this.value=
b;this.render()},remove:function(){this.form.remove();Backbone.View.prototype.remove.call(this)}});o.NestedModel=o.Object.extend({initialize:function(b){o.Base.prototype.initialize.call(this,b);if(!b.schema.model)throw'Missing required "schema.model" option for NestedModel editor';this.idPrefix=b.idPrefix||""},render:function(){var b=$(this.el),f=this.schema.model;this.form=new d({schema:f.prototype.schema,model:new f(this.value||{}),idPrefix:this.idPrefix+this.key+"_"});b.html(this.form.render().el);
return this},commit:function(){var b=this.form.commit();if(b)return $(this.el).addClass("error"),b;return o.Object.prototype.commit.call(this)}});d.helpers=b;d.Field=k;d.editors=o;d.validators=f;Backbone.Form=d})();(function(){var b=Backbone.Form,f=b.editors.Base,d=b.helpers.createTemplate,k=b.helpers.triggerCancellableEvent,o={};o.Date=f.extend({className:"bbf-date",initialize:function(b){f.prototype.initialize.call(this,b);this.datepickerOptions=b.datepicker||{}},render:function(){var b=$(this.el);b.html("<input>");$("input",b).datepicker(_.extend({},[{dateFormat:"dd/mm/yy",showButtonPanel:!0},this.datepickerOption]));o.Date.prototype.setValue.call(this,this.value);return this},getValue:function(){return $("input",
this.el).datepicker("getDate")},setValue:function(b){$("input",this.el).datepicker("setDate",b)}});o.DateTime=o.Date.extend({className:"bbf-datetime",template:d("<select>{{hours}}</select> : <select>{{mins}}</select>"),render:function(){o.Date.prototype.render.call(this);var b=_.range(0,24),d=[];_.each(b,function(b){d.push('<option value="'+b+'">'+(b<10?"0"+b:b)+"</option>")});var b=_.range(0,60,this.schema.minsInterval||15),f=[];_.each(b,function(b){f.push('<option value="'+b+'">'+(b<10?"0"+b:b)+
"</option>")});$(this.el).append(this.template({hours:d.join(),mins:f.join()}));this.$hours=$("select:eq(0)",this.el);this.$mins=$("select:eq(1)",this.el);this.setValue(this.value);return this},getValue:function(){var b=$("input",this.el).datepicker("getDate");b.setHours(this.$hours.val());b.setMinutes(this.$mins.val());b.setMilliseconds(0);return b},setValue:function(b){o.Date.prototype.setValue.call(this,b);this.$hours.val(b.getHours());this.$mins.val(b.getMinutes())}});o.List=f.extend({className:"bbf-list",
template:d('            <ul></ul>            <div><button class="bbf-list-add">Add</div>        '),itemTemplate:d('            <li rel="{{id}}">                <span class="bbf-list-text">{{text}}</span>                <div class="bbf-list-actions">                    <button class="bbf-list-edit">Edit</button>                    <button class="bbf-list-del">Delete</button>                </div>            </li>        '),editorTemplate:d('            <div class="bbf-field">                <div class="bbf-list-editor"></div>            </div>        '),
events:{"click .bbf-list-add":"addNewItem","click .bbf-list-edit":"editItem","click .bbf-list-del":"deleteItem"},initialize:function(b){f.prototype.initialize.call(this,b);if(!this.schema)throw"Missing required option 'schema'";this.schema.listType=this.schema.listType||"Text";if(this.schema.listType=="NestedModel"&&!this.schema.model)throw"Missing required option 'schema.model'";},render:function(){var b=$(this.el);b.html(this.template());var d=this,b=$(this.el),f=this.value||[],e=this.schema,k=
this.itemToString,o=this.itemTemplate,u=$("ul",b);_.each(f,function(b){var e=k.call(d,b),e=$(o({id:b.id||"",text:e}));$.data(e[0],"data",b);u.append(e)});e.sortable!==!1&&(u.sortable({axis:"y",cursor:"move",containment:"parent"}),b.addClass("bbf-list-sortable"));$("button.bbf-list-add",b).button({text:!1,icons:{primary:"ui-icon-plus"}});$("button.bbf-list-edit",b).button({text:!1,icons:{primary:"ui-icon-pencil"}});$("button.bbf-list-del",b).button({text:!1,icons:{primary:"ui-icon-trash"}});return this},
itemToString:function(b){if(!b)return b;var d=this.schema;if(d.itemToString)return d.itemToString(b);if(this.schema.listType=="NestedModel")return(new this.schema.model(b)).toString();return b},addNewItem:function(b){b.preventDefault();var d=this;this.openEditor(null,function(b){k(d,"addItem",[b],function(){var e=d.itemToString(b),e=$(d.itemTemplate({id:b.id||"",text:e}));$.data(e[0],"data",b);$("ul",d.el).append(e);$("button.bbf-list-edit",this.el).button({text:!1,icons:{primary:"ui-icon-pencil"}});
$("button.bbf-list-del",this.el).button({text:!1,icons:{primary:"ui-icon-trash"}})})})},editItem:function(b){b.preventDefault();var d=this,f=$(b.target).closest("li");this.openEditor($.data(f[0],"data"),function(b){k(d,"editItem",[b],function(){$(".bbf-list-text",f).html(d.itemToString(b));$.data(f[0],"data",b)})})},deleteItem:function(b){function d(){k(f,"removeItem",[n],function(){e.remove()})}b.preventDefault();var f=this,e=$(b.target).closest("li"),n=$.data(e[0],"data"),b=this.schema.confirmDeleteMsg||
"Are you sure?";this.schema.confirmDelete?confirm(b)&&d():d()},openEditor:function(d,f){var g=this.schema,e=b.helpers.createEditor(g.listType||"Text",{key:"",schema:g,value:d}).render(),k=$(this.editorTemplate());$(".bbf-list-editor",k).html(e.el);var o=function(){k.dialog("close");e.remove();k.remove()};$(k).dialog({resizable:!1,modal:!0,width:500,title:d?"Edit item":"New item",buttons:{OK:function(){f(e.getValue());o()},Cancel:o}})},getValue:function(){var b=[];$("li",this.el).each(function(d,f){b.push($.data(f,
"data"))});return b},setValue:function(b){this.value=b;this.render()}});_.extend(b.editors,o)})();(function(){function b(d,f){var j=k(this,d,f);j.extend=b;return j}var f=window.Toolbox={},d=function(){},k=function(b,f,j){var g;g=f&&f.hasOwnProperty("constructor")?f.constructor:function(){return b.apply(this,arguments)};_.extend(g,b);d.prototype=b.prototype;g.prototype=new d;f&&_.extend(g.prototype,f);j&&_.extend(g,j);g.prototype.constructor=g;g.__super__=b.prototype;return g};f.Base=function(){};f.Base.extend=b})();(function(b,f){function d(b){n(arguments,function(e,d){b[e]===f&&(b[e]=d)});return b}function k(b){n(arguments,function(e,d){b[C][o(b,e)||e]=d});return b}function o(b,e){var d=b[C];if(d[e]!==f)return e;for(var e=e.charAt(0).toUpperCase()+e.slice(1),g=0;g<G[u];g++){var h=G[g]+e;if(d[h]!==f)return h}}function h(b,e){var d=[q,e,~~(b*100)].join("-");if(!N[d]){var f=j(),g="{"+q+":"+b+"}",h;for(h=0;h<G[u];h++)try{f.insertRule("@"+(G[h]&&"-"+G[h].toLowerCase()+"-"||"")+"keyframes "+d+"{0%{"+q+":1}"+e+"%"+
g+"to"+g+"}",f.cssRules[u])}catch(k){}N[d]=1}return d}function j(){var d=b.styleSheets;d[u]||g(b.documentElement[E],e(C));return d[0]}function g(b,e,d){d&&!d[I]&&g(b,d);b.insertBefore(e,d||null);return b}function e(e){var d=b.createElement(e||"div");n(arguments,function(b,e){d[b]=e});return d}function n(b,e){for(var d=~~((b[u]-1)/2),f=1;f<=d;f++)e(b[f*2-1],b[f*2])}var w="width",u="length",s="radius",x="lines",z="color",q="opacity",C="style",B="height",D="left",y="top",r="px",E="firstChild",I="parentNode",
F="position",L="absolute",O="transform",J="Origin",v="coord",G="webkit0Moz0ms0O".split(0),N={},m,P=function(b){this.el=this[x](this.opts=d(b||{},x,12,"trail",100,u,7,w,5,s,10,z,"#000",q,0.25,"speed",1))},M=P.prototype={spin:function(b){var e=this,d=e.el;b&&g(b,k(d,D,~~(b.offsetWidth/2)+r,y,~~(b.offsetHeight/2)+r),b[E]);e.on=1;if(!m){var f=e.opts,h=0,j=20/f.speed,n=(1-f[q])/(j*f.trail/100),o=j/f[x];(function Z(){h++;for(var b=f[x];b;b--)e[q](d,f[x]-b,Math.max(1-(h+b*o)%j*n,f[q]),f);e.on&&setTimeout(Z,
50)})()}return e},stop:function(){var b=this.el;this.on=0;b[I]&&b[I].removeChild(b);return this}};M[x]=function(b){function d(f,g){return k(e(),F,L,w,b[u]+b[w]+r,B,b[w]+r,"background",f,"boxShadow",g,O+J,D,O,"rotate("+~~(360/b[x]*m)+"deg) translate("+b[s]+r+",0)","borderRadius","100em")}for(var f=k(e(),F,"relative"),j=h(b[q],b.trail),m=0;m<b[x];m++){var n=k(e(),F,L,y,1+~(b[w]/2)+r,O,"translate3d(0,0,0)","animation",j+" "+1/b.speed+"s linear infinite "+(-1+1/b[x]*m/b.speed)+"s");b.shadow&&g(n,k(d("#000",
"0 0 4px #000"),y,2+r));g(f,g(n,d(b[z],"0 0 1px rgba(0,0,0,.1)")))}return f};M[q]=function(b,e,d){b.childNodes[e][C][q]=d};var U="group0roundrect0fill0stroke".split(0);(function(){var b=k(e(U[0]),"behavior","url(#default#VML)");if(!o(b,O)&&b.adj){var b=j(),d;for(d=0;d<U[u];d++)b.addRule(U[d],"behavior:url(#default#VML)");M[x]=function(){function b(j,n,o){g(m,g(k(d(),"rotation",360/f[x]*j+"deg",D,~~n),g(k(e(U[1],"arcsize",1),w,h,B,f[w],D,f[s],y,-f[w]/2,"filter",o),e(U[2],z,f[z],q,f[q]),e(U[3],q,0))))}
function d(){return k(e(U[0],v+"size",j+" "+j,v+J,-h+" "+-h),w,j,B,j)}var f=this.opts,h=f[u]+f[w],j=2*h,m=d(),n=~(f[u]+f[s]+f[w])+r,o;if(f.shadow)for(o=1;o<=f[x];o++)b(o,-2,"progid:DXImage"+O+".Microsoft.Blur(pixel"+s+"=2,makeshadow=1,shadow"+q+"=.3)");for(o=1;o<=f[x];o++)b(o);return g(k(e(),"margin",n+" 0 0 "+n,F,"relative"),m)};M[q]=function(b,e,d,f){f=f.shadow&&f[x]||0;b[E].childNodes[e+f][E][E][q]=d}}else m=o(b,"animation")})();window.Spinner=P})(document);jQuery.cookie=function(b,f,d){if(typeof f!="undefined"){d=d||{};if(f===null)f="",d.expires=-1;var k="";if(d.expires&&(typeof d.expires=="number"||d.expires.toUTCString))typeof d.expires=="number"?(k=new Date,k.setTime(k.getTime()+d.expires*864E5)):k=d.expires,k="; expires="+k.toUTCString();var o=d.path?"; path="+d.path:"",h=d.domain?"; domain="+d.domain:"",d=d.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(f),k,o,h,d].join("")}else{f=null;if(document.cookie&&document.cookie!=""){d=
document.cookie.split(";");for(k=0;k<d.length;k++)if(o=jQuery.trim(d[k]),o.substring(0,b.length+1)==b+"="){f=decodeURIComponent(o.substring(b.length+1));break}}return f}};/*

 SoundManager 2: JavaScript Sound for the Web
 ----------------------------------------------
 http://schillmania.com/projects/soundmanager2/

 Copyright (c) 2007, Scott Schiller. All rights reserved.
 Code provided under the BSD License:
 http://schillmania.com/projects/soundmanager2/license.txt

 V2.97a.20110306
*/
(function(b){function f(d,f){function h(b){return function(d){return!this._t||!this._t._a?(this._t&&this._t.sID?e._wD(n+"ignoring "+d.type+": "+this._t.sID):e._wD(n+"ignoring "+d.type),null):b.call(this,d)}}function j(){if(e.debugURLParam.test(x))e.debugMode=!0;if(w(e.debugID))return!1;var b,d,f,g;if(e.debugMode&&!w(e.debugID)&&(!wa||!e.useConsole||e.useConsole&&wa&&!e.consoleOnly)){b=q.createElement("div");b.id=e.debugID+"-toggle";d={position:"fixed",bottom:"0px",right:"0px",width:"1.2em",height:"1.2em",
lineHeight:"1.2em",margin:"2px",textAlign:"center",border:"1px solid #999",cursor:"pointer",background:"#fff",color:"#333",zIndex:10001};b.appendChild(q.createTextNode("-"));b.onclick=La;b.title="Toggle SM2 debug console";if(u.match(/msie 6/i))b.style.position="absolute",b.style.cursor="hand";for(g in d)d.hasOwnProperty(g)&&(b.style[g]=d[g]);d=q.createElement("div");d.id=e.debugID;d.style.display=e.debugMode?"block":"none";if(e.debugMode&&!w(b.id)){try{f=Z(),f.appendChild(b)}catch(h){throw Error(Y("appXHTML"));
}f.appendChild(d)}}}this.flashVersion=8;this.debugMode=!0;this.debugFlash=!1;this.useConsole=!0;this.waitForWindowLoad=this.consoleOnly=!1;this.nullURL="about:blank";this.allowPolling=!0;this.useFastPolling=!1;this.useMovieStar=!0;this.bgColor="#ffffff";this.useHighPerformance=!1;this.flashPollingInterval=null;this.flashLoadTimeout=1E3;this.wmode=null;this.allowScriptAccess="always";this.useHTML5Audio=this.useFlashBlock=!1;this.html5Test=/^probably$/i;this.useGlobalHTML5Audio=!0;this.requireFlash=
!1;this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!0},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}};this.defaultOptions={autoLoad:!1,stream:!0,autoPlay:!1,loops:1,onid3:null,onload:null,
whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfailure:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5E3,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:!0,multiShotEvents:!1,position:null,pan:0,type:null,usePolicyFile:!1,volume:100};this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,
onconnect:null,duration:null};this.version=null;this.versionNumber="V2.97a.20110306";this.movieURL=null;this.url=d||null;this.altURL=null;this.enabled=this.swfLoaded=!1;this.o=null;this.movieID="sm2-container";this.id=f||"sm2movie";this.swfCSS={swfBox:"sm2-object-box",swfDefault:"movieContainer",swfError:"swf_error",swfTimedout:"swf_timedout",swfLoaded:"swf_loaded",swfUnblocked:"swf_unblocked",sm2Debug:"sm2_debug",highPerf:"high_performance",flashDebug:"flash_debug"};this.oMC=null;this.sounds={};
this.soundIDs=[];this.muted=!1;this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.didFlashBlock=this.specialWmodeCase=!1;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.baseMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=RegExp("\\.("+this.netStreamTypes.join("|")+
")(\\?.*)?$","i");this.mimePattern=this.baseMimeTypes;this.features={buffering:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local+internet access)"},description:null,noRemote:null,noLocal:null};this.hasHTML5=null;this.html5={usingFlash:null};this.ignoreFlash=
!1;var g,e=this,n="HTML5::",w,u=navigator.userAgent,s=b,x=s.location.href.toString(),z=this.flashVersion,q=document,C,B,D=[],y=!0,r,E=!1,I=!1,F=!1,L=!1,O=!1,J,v=0,G,N,m,P,M,U,A,T,R,p,S,Q,K,X,aa,Z,ga,ha,oa,ca=["log","info","warn","error"],V,da,za,sa=null,na=null,Y,Ca,ta,La,Ma,Na,Va,fa,Oa=!1,Pa=!1,ia,ra,la=null,Ga,ba,ea=!1,pa,ma,ua,qa,ja,ka=Array.prototype.slice,Da=!1,Qa,Ea,Wa,Ya=u.match(/pre\//i),cb=u.match(/(ipad|iphone|ipod)/i);u.match(/mobile/i);var va=u.match(/msie/i),db=u.match(/webkit/i),Fa=
u.match(/safari/i)&&!u.match(/chrome/i),Ua=!x.match(/usehtml5audio/i)&&!x.match(/sm2\-ignorebadua/i)&&Fa&&u.match(/OS X 10_6_(3|4|5|6)/i),wa=typeof console!=="undefined"&&typeof console.log!=="undefined",Ra=typeof q.hasFocus!=="undefined"?q.hasFocus():null,Aa=typeof q.hasFocus==="undefined"&&Fa,Za=!Aa;this._use_maybe=x.match(/sm2\-useHTML5Maybe\=1/i);this._overHTTP=q.location?q.location.protocol.match(/http/i):null;this.useAltURL=!this._overHTTP;this._global_a=null;if(cb||Ya)e.useHTML5Audio=!0,e.ignoreFlash=
!0,e.useGlobalHTML5Audio&&(Da=!0);if(Ya||this._use_maybe)e.html5Test=/^(probably|maybe)$/i;(function(){var b=x,d=null;if(b.indexOf("#sm2-usehtml5audio=")!==-1)d=b.charAt(b.indexOf("#sm2-usehtml5audio=")+19)==="1",typeof console!=="undefined"&&typeof console.log!=="undefined"&&console.log((d?"Enabling ":"Disabling ")+"useHTML5Audio via URL parameter"),e.useHTML5Audio=d})();this.supported=this.ok=function(){return la?F&&!L:e.useHTML5Audio&&e.hasHTML5};this.getMovie=function(b){return va?s[b]:Fa?w(b)||
q[b]:w(b)};this.createSound=function(b){function d(){f=Ma(f);e.sounds[j.id]=new g(j);e.soundIDs.push(j.id);return e.sounds[j.id]}var f=null,h=null,j=null;if(!F||!e.ok())return Va("soundManager.createSound(): "+Y(!F?"notReady":"notOK")),!1;arguments.length===2&&(b={id:arguments[0],url:arguments[1]});j=f=N(b);j.id.toString().charAt(0).match(/^[0-9]$/)&&e._wD("soundManager.createSound(): "+Y("badID",j.id),2);e._wD("soundManager.createSound(): "+j.id+" ("+j.url+")",1);if(fa(j.id,!0))return e._wD("soundManager.createSound(): "+
j.id+" exists",1),e.sounds[j.id];if(ba(j))h=d(),e._wD("Loading sound "+j.id+" via HTML5"),h._setup_html5(j);else{if(z>8&&e.useMovieStar){if(j.isMovieStar===null)j.isMovieStar=j.serverURL||j.type&&j.type.match(e.netStreamPattern)||j.url.match(e.netStreamPattern)?!0:!1;j.isMovieStar&&e._wD("soundManager.createSound(): using MovieStar handling");if(j.isMovieStar){if(j.usePeakData)J("noPeak"),j.usePeakData=!1;j.loops>1&&J("noNSLoop")}}j=Na(j,"soundManager.createSound(): ");h=d();if(z===8)e.o._createSound(j.id,
j.onjustbeforefinishtime,j.loops||1,j.usePolicyFile);else if(e.o._createSound(j.id,j.url,j.onjustbeforefinishtime,j.usePeakData,j.useWaveformData,j.useEQData,j.isMovieStar,j.isMovieStar?j.bufferTime:!1,j.loops||1,j.serverURL,j.duration||null,j.autoPlay,!0,j.autoLoad,j.usePolicyFile),!j.serverURL)h.connected=!0,j.onconnect&&j.onconnect.apply(h);(j.autoLoad||j.autoPlay)&&!j.serverURL&&h.load(j)}j.autoPlay&&!j.serverURL&&h.play();return h};this.destroySound=function(b,d){if(!fa(b))return!1;var f=e.sounds[b],
g;f._iO={};f.stop();f.unload();for(g=0;g<e.soundIDs.length;g++)if(e.soundIDs[g]===b){e.soundIDs.splice(g,1);break}d||f.destruct(!0);delete e.sounds[b];return!0};this.load=function(b,d){if(!fa(b))return!1;return e.sounds[b].load(d)};this.unload=function(b){if(!fa(b))return!1;return e.sounds[b].unload()};this.start=this.play=function(b,d){if(!F||!e.ok())return Va("soundManager.play(): "+Y(!F?"notReady":"notOK")),!1;if(!fa(b))return d instanceof Object||(d={url:d}),d&&d.url?(e._wD('soundManager.play(): attempting to create "'+
b+'"',1),d.id=b,e.createSound(d).play()):!1;return e.sounds[b].play(d)};this.setPosition=function(b,d){if(!fa(b))return!1;return e.sounds[b].setPosition(d)};this.stop=function(b){if(!fa(b))return!1;e._wD("soundManager.stop("+b+")",1);return e.sounds[b].stop()};this.stopAll=function(){e._wD("soundManager.stopAll()",1);for(var b in e.sounds)e.sounds[b]instanceof g&&e.sounds[b].stop()};this.pause=function(b){if(!fa(b))return!1;return e.sounds[b].pause()};this.pauseAll=function(){for(var b=e.soundIDs.length;b--;)e.sounds[e.soundIDs[b]].pause()};
this.resume=function(b){if(!fa(b))return!1;return e.sounds[b].resume()};this.resumeAll=function(){for(var b=e.soundIDs.length;b--;)e.sounds[e.soundIDs[b]].resume()};this.togglePause=function(b){if(!fa(b))return!1;return e.sounds[b].togglePause()};this.setPan=function(b,d){if(!fa(b))return!1;return e.sounds[b].setPan(d)};this.setVolume=function(b,d){if(!fa(b))return!1;return e.sounds[b].setVolume(d)};this.mute=function(b){var d=0;typeof b!=="string"&&(b=null);if(b){if(!fa(b))return!1;e._wD('soundManager.mute(): Muting "'+
b+'"');return e.sounds[b].mute()}else{e._wD("soundManager.mute(): Muting all sounds");for(d=e.soundIDs.length;d--;)e.sounds[e.soundIDs[d]].mute();e.muted=!0}return!0};this.muteAll=function(){e.mute()};this.unmute=function(b){typeof b!=="string"&&(b=null);if(b){if(!fa(b))return!1;e._wD('soundManager.unmute(): Unmuting "'+b+'"');return e.sounds[b].unmute()}else{e._wD("soundManager.unmute(): Unmuting all sounds");for(b=e.soundIDs.length;b--;)e.sounds[e.soundIDs[b]].unmute();e.muted=!1}return!0};this.unmuteAll=
function(){e.unmute()};this.toggleMute=function(b){if(!fa(b))return!1;return e.sounds[b].toggleMute()};this.getMemoryUse=function(){if(z===8)return 0;if(e.o)return parseInt(e.o._getMemoryUse(),10)};this.disable=function(b){typeof b==="undefined"&&(b=!1);if(L)return!1;L=!0;J("shutdown",1);for(var d=e.soundIDs.length;d--;)V(e.sounds[e.soundIDs[d]]);G(b);ja.remove(s,"load",M);return!0};this.canPlayMIME=function(b){var d;e.hasHTML5&&(d=pa({type:b}));return!la||d?d:b?b.match(e.mimePattern)?!0:!1:null};
this.canPlayURL=function(b){var d;e.hasHTML5&&(d=pa(b));return!la||d?d:b?b.match(e.filePattern)?!0:!1:null};this.canPlayLink=function(b){if(typeof b.type!=="undefined"&&b.type&&e.canPlayMIME(b.type))return!0;return e.canPlayURL(b.href)};this.getSoundById=function(b,d){if(!b)throw Error("soundManager.getSoundById(): sID is null/undefined");var f=e.sounds[b];!f&&!d&&e._wD('"'+b+'" is an invalid sound ID.',2);return f};this.onready=function(b,e){if(b&&b instanceof Function)return F&&J("queue","onready"),
e||(e=s),m("onready",b,e),P(),!0;else throw Y("needFunction","onready");};this.ontimeout=function(b,e){if(b&&b instanceof Function)return F&&J("queue"),e||(e=s),m("ontimeout",b,e),P({type:"ontimeout"}),!0;else throw Y("needFunction","ontimeout");};this.getMoviePercent=function(){return e.o&&typeof e.o.PercentLoaded!=="undefined"?e.o.PercentLoaded():null};this._wD=this._writeDebug=function(b,d,f){var g,h;if(!e.debugMode)return!1;typeof f!=="undefined"&&f&&(b=b+" | "+(new Date).getTime());if(wa&&e.useConsole){f=
ca[d];if(typeof console[f]!=="undefined")console[f](b);else console.log(b);if(e.useConsoleOnly)return!0}try{g=w("soundmanager-debug");if(!g)return!1;h=q.createElement("div");if(++v%2===0)h.className="sm2-alt";d=typeof d==="undefined"?0:parseInt(d,10);h.appendChild(q.createTextNode(b));if(d){if(d>=2)h.style.fontWeight="bold";if(d===3)h.style.color="#ff3333"}g.insertBefore(h,g.firstChild)}catch(j){}return!0};this._debug=function(){J("currentObj",1);for(var b=0,d=e.soundIDs.length;b<d;b++)e.sounds[e.soundIDs[b]]._debug()};
this.reboot=function(){e._wD("soundManager.reboot()");e.soundIDs.length&&e._wD("Destroying "+e.soundIDs.length+" SMSound objects...");var b,d;for(b=e.soundIDs.length;b--;)e.sounds[e.soundIDs[b]].destruct();try{if(va)na=e.o.innerHTML;sa=e.o.parentNode.removeChild(e.o);e._wD("Flash movie removed.")}catch(f){J("badRemove",2)}na=sa=null;e.enabled=F=Oa=Pa=E=I=L=e.swfLoaded=!1;e.soundIDs=e.sounds=[];e.o=null;for(b in D)if(D.hasOwnProperty(b))for(d=D[b].length;d--;)D[b][d].fired=!1;e._wD("soundManager: Rebooting...");
s.setTimeout(function(){e.beginDelayedInit()},20)};this.destruct=function(){e._wD("soundManager.destruct()");e.disable(!0)};this.beginDelayedInit=function(){O=!0;X();setTimeout(S,20);A()};this._html5_events={abort:h(function(){e._wD(n+"abort: "+this._t.sID)}),canplay:h(function(){e._wD(n+"canplay: "+this._t.sID+", "+this._t.url);this._t._onbufferchange(0);var b=!isNaN(this._t.position)?this._t.position/1E3:null;this._t._html5_canplay=!0;if(this._t.position&&this.currentTime!==b){e._wD(n+"canplay: setting position to "+
b+"");try{this.currentTime=b}catch(d){e._wD(n+"setting position failed: "+d.message,2)}}}),load:h(function(){this._t.loaded||(this._t._onbufferchange(0),this._t._whileloading(this._t.bytesTotal,this._t.bytesTotal,this._t._get_html5_duration()),this._t._onload(!0))}),emptied:h(function(){e._wD(n+"emptied: "+this._t.sID)}),ended:h(function(){e._wD(n+"ended: "+this._t.sID);this._t._onfinish()}),error:h(function(){e._wD(n+"error: "+this.error.code);this._t._onload(!1)}),loadeddata:h(function(){e._wD(n+
"loadeddata: "+this._t.sID)}),loadedmetadata:h(function(){e._wD(n+"loadedmetadata: "+this._t.sID)}),loadstart:h(function(){e._wD(n+"loadstart: "+this._t.sID);this._t._onbufferchange(1)}),play:h(function(){e._wD(n+"play: "+this._t.sID+", "+this._t.url);this._t._onbufferchange(0)}),playing:h(function(){e._wD(n+"playing: "+this._t.sID+", "+this._t.url);this._t._onbufferchange(0)}),progress:h(function(b){if(this._t.loaded)return!1;var d,f,g;g=0;var h=b.type==="progress";f=b.target.buffered;var j=b.loaded||
0,k=b.total||1;if(f&&f.length){for(d=f.length;d--;)g=f.end(d)-f.start(d);j=g/b.target.duration;if(h&&f.length>1){g=[];f=f.length;for(d=0;d<f;d++)g.push(b.target.buffered.start(d)+"-"+b.target.buffered.end(d));e._wD(n+"progress: timeRanges: "+g.join(", "))}h&&!isNaN(j)&&e._wD(n+"progress: "+this._t.sID+": "+Math.floor(j*100)+"% loaded")}isNaN(j)||(this._t._onbufferchange(0),this._t._whileloading(j,k,this._t._get_html5_duration()),j&&k&&j===k&&e._html5_events.load.call(this,b))}),ratechange:h(function(){e._wD(n+
"ratechange: "+this._t.sID)}),suspend:h(function(b){e._wD(n+"suspend: "+this._t.sID);e._html5_events.progress.call(this,b)}),stalled:h(function(){e._wD(n+"stalled: "+this._t.sID)}),timeupdate:h(function(){this._t._onTimer()}),waiting:h(function(){e._wD(n+"waiting: "+this._t.sID);this._t._onbufferchange(1)})};g=function(b){var d=this,f,g,h;this.sID=b.id;this.url=b.url;this._iO=this.instanceOptions=this.options=N(b);this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this.isHTML5=
!1;this._a=null;this.id3={};this._debug=function(){if(e.debugMode){var b=null,f=[],g,h;for(b in d.options)d.options[b]!==null&&(d.options[b]instanceof Function?(g=d.options[b].toString(),g=g.replace(/\s\s+/g," "),h=g.indexOf("{"),f.push(" "+b+": {"+g.substr(h+1,Math.min(Math.max(g.indexOf("\n")-1,64),64)).replace(/\n/g,"")+"... }")):f.push(" "+b+": "+d.options[b]));e._wD("SMSound() merged options: {\n"+f.join(", \n")+"\n}")}};this._debug();this.load=function(b){var f=null;if(typeof b!=="undefined")d._iO=
N(b),d.instanceOptions=d._iO;else if(b=d.options,d._iO=b,d.instanceOptions=d._iO,d._lastURL&&d._lastURL!==d.url)J("manURL"),d._iO.url=d.url,d.url=null;if(!d._iO.url)d._iO.url=d.url;e._wD("SMSound.load(): "+d._iO.url,1);if(d._iO.url===d.url&&d.readyState!==0&&d.readyState!==2)return J("onURL",1),d;d._lastURL=d.url;d.loaded=!1;d.readyState=1;d.playState=0;if(ba(d._iO))f=d._setup_html5(d._iO),f._called_load?e._wD("HTML5 ignoring request to load again: "+d.sID):(e._wD(n+"load: "+d.sID),f.load(),f._called_load=
!0,d._iO.autoPlay&&d.play());else try{d.isHTML5=!1,d._iO=Na(Ma(d._iO)),z===8?e.o._load(d.sID,d._iO.url,d._iO.stream,d._iO.autoPlay,d._iO.whileloading?1:0,d._iO.loops||1,d._iO.usePolicyFile):e.o._load(d.sID,d._iO.url,d._iO.stream?!0:!1,d._iO.autoPlay?!0:!1,d._iO.loops||1,d._iO.autoLoad?!0:!1,d._iO.usePolicyFile)}catch(g){J("smError",2),r("onload",!1),ha()}return d};this.unload=function(){if(d.readyState!==0){e._wD('SMSound.unload(): "'+d.sID+'"');if(d.isHTML5){if(g(),d._a)d._a.pause(),d._a.src=""}else z===
8?e.o._unload(d.sID,e.nullURL):e.o._unload(d.sID);f()}return d};this.destruct=function(b){e._wD('SMSound.destruct(): "'+d.sID+'"');if(d.isHTML5){if(g(),d._a)d._a.pause(),d._a.src="",Da||d._remove_html5_events()}else d._iO.onfailure=null,e.o._destroySound(d.sID);b||e.destroySound(d.sID,!0)};this.start=this.play=function(b,f){var g,f=f===void 0?!0:f;b||(b={});d._iO=N(b,d._iO);d._iO=N(d._iO,d.options);d.instanceOptions=d._iO;if(d._iO.serverURL&&!d.connected)return d.getAutoPlay()||(e._wD("SMSound.play():  Netstream not connected yet - setting autoPlay"),
d.setAutoPlay(!0)),d;ba(d._iO)&&(d._setup_html5(d._iO),h());if(d.playState===1&&!d.paused)if(g=d._iO.multiShot)e._wD('SMSound.play(): "'+d.sID+'" already playing (multi-shot)',1),d.isHTML5&&d.setPosition(d._iO.position);else return e._wD('SMSound.play(): "'+d.sID+'" already playing (one-shot)',1),d;if(d.loaded)e._wD('SMSound.play(): "'+d.sID+'"');else if(d.readyState===0){e._wD('SMSound.play(): Attempting to load "'+d.sID+'"',1);if(!d.isHTML5)d._iO.autoPlay=!0;d.load(d._iO)}else if(d.readyState===
2)return e._wD('SMSound.play(): Could not load "'+d.sID+'" - exiting',2),d;else e._wD('SMSound.play(): "'+d.sID+'" is loading - attempting to play..',1);if(d.paused&&d.position&&d.position>0)e._wD('SMSound.play(): "'+d.sID+'" is resuming from paused state',1),d.resume();else{e._wD('SMSound.play(): "'+d.sID+'" is starting to play');d.playState=1;d.paused=!1;(!d.instanceCount||d._iO.multiShotEvents||z>8&&!d.isHTML5&&!d.getAutoPlay())&&d.instanceCount++;d.position=typeof d._iO.position!=="undefined"&&
!isNaN(d._iO.position)?d._iO.position:0;if(!d.isHTML5)d._iO=Na(Ma(d._iO));if(d._iO.onplay&&f)d._iO.onplay.apply(d),d._onplay_called=!0;d.setVolume(d._iO.volume,!0);d.setPan(d._iO.pan,!0);d.isHTML5?(h(),d._setup_html5().play()):e.o._start(d.sID,d._iO.loops||1,z===9?d.position:d.position/1E3)}return d};this.stop=function(b){if(d.playState===1){d._onbufferchange(0);d.resetOnPosition(0);if(!d.isHTML5)d.playState=0;d.paused=!1;d._iO.onstop&&d._iO.onstop.apply(d);if(d.isHTML5){if(d._a)d.setPosition(0),
d._a.pause(),d.playState=0,d._onTimer(),g(),d.unload()}else e.o._stop(d.sID,b),d._iO.serverURL&&d.unload();d.instanceCount=0;d._iO={}}return d};this.setAutoPlay=function(b){e._wD("sound "+d.sID+" turned autoplay "+(b?"on":"off"));d._iO.autoPlay=b;d.isHTML5?d._a&&b&&d.play():e.o._setAutoPlay(d.sID,b);b&&!d.instanceCount&&d.readyState===1&&(d.instanceCount++,e._wD("sound "+d.sID+" incremented instance count to "+d.instanceCount))};this.getAutoPlay=function(){return d._iO.autoPlay};this.setPosition=
function(b){b===void 0&&(b=0);var f=d.isHTML5?Math.max(b,0):Math.min(d.duration||d._iO.duration,Math.max(b,0));d.position=f;b=d.position/1E3;d.resetOnPosition(d.position);d._iO.position=f;if(d.isHTML5){if(d._a)if(d._html5_canplay){if(d._a.currentTime!==b){e._wD("setPosition("+b+"): setting position");try{d._a.currentTime=b}catch(g){e._wD("setPosition("+b+"): setting position failed: "+g.message,2)}}}else e._wD("setPosition("+b+"): delaying, sound not ready")}else b=z===9?d.position:b,d.readyState&&
d.readyState!==2&&e.o._setPosition(d.sID,b,d.paused||!d.playState);d.isHTML5&&d.paused&&d._onTimer(!0);return d};this.pause=function(b){if(d.paused||d.playState===0&&d.readyState!==1)return d;e._wD("SMSound.pause()");d.paused=!0;d.isHTML5?(d._setup_html5().pause(),g()):(b||b===void 0)&&e.o._pause(d.sID);d._iO.onpause&&d._iO.onpause.apply(d);return d};this.resume=function(){if(!d.paused)return d;e._wD("SMSound.resume()");d.paused=!1;d.playState=1;d.isHTML5?(d._setup_html5().play(),h()):(d._iO.isMovieStar&&
d.setPosition(d.position),e.o._pause(d.sID));!d._onplay_called&&d._iO.onplay?(d._iO.onplay.apply(d),d._onplay_called=!0):d._iO.onresume&&d._iO.onresume.apply(d);return d};this.togglePause=function(){e._wD("SMSound.togglePause()");if(d.playState===0)return d.play({position:z===9&&!d.isHTML5?d.position:d.position/1E3}),d;d.paused?d.resume():d.pause();return d};this.setPan=function(b,f){typeof b==="undefined"&&(b=0);typeof f==="undefined"&&(f=!1);d.isHTML5||e.o._setPan(d.sID,b);d._iO.pan=b;if(!f)d.pan=
b;return d};this.setVolume=function(b,f){typeof b==="undefined"&&(b=100);typeof f==="undefined"&&(f=!1);if(d.isHTML5){if(d._a)d._a.volume=b/100}else e.o._setVolume(d.sID,e.muted&&!d.muted||d.muted?0:b);d._iO.volume=b;if(!f)d.volume=b;return d};this.mute=function(){d.muted=!0;if(d.isHTML5){if(d._a)d._a.muted=!0}else e.o._setVolume(d.sID,0);return d};this.unmute=function(){d.muted=!1;var b=typeof d._iO.volume!=="undefined";if(d.isHTML5){if(d._a)d._a.muted=!1}else e.o._setVolume(d.sID,b?d._iO.volume:
d.options.volume);return d};this.toggleMute=function(){return d.muted?d.unmute():d.mute()};this.onposition=function(b,e,f){d._onPositionItems.push({position:b,method:e,scope:typeof f!=="undefined"?f:d,fired:!1});return d};this.processOnPosition=function(){var b,f;b=d._onPositionItems.length;if(!b||!d.playState||d._onPositionFired>=b)return!1;for(;b--;)if(f=d._onPositionItems[b],!f.fired&&d.position>=f.position)f.method.apply(f.scope,[f.position]),f.fired=!0,e._onPositionFired++;return!0};this.resetOnPosition=
function(b){var f,g;f=d._onPositionItems.length;if(!f)return!1;for(;f--;)if(g=d._onPositionItems[f],g.fired&&b<=g.position)g.fired=!1,e._onPositionFired--;return!0};this._onTimer=function(b){var f={};if(d._hasTimer||b)return d._a&&(b||(d.playState>0||d.readyState===1)&&!d.paused)?(d.duration=d._get_html5_duration(),d.durationEstimate=d.duration,b=d._a.currentTime?d._a.currentTime*1E3:0,d._whileplaying(b,f,f,f,f),!0):(e._wD('_onTimer: Warn for "'+d.sID+'": '+(!d._a?"Could not find element. ":"")+(d.playState===
0?"playState bad, 0?":"playState = "+d.playState+", OK")),!1)};this._get_html5_duration=function(){var b=d._a?d._a.duration*1E3:d._iO?d._iO.duration:void 0;return b&&!isNaN(b)&&b!==Infinity?b:d._iO?d._iO.duration:null};h=function(){d.isHTML5&&ia(d)};g=function(){d.isHTML5&&ra(d)};f=function(){d._onPositionItems=[];d._onPositionFired=0;d._hasTimer=null;d._onplay_called=!1;d._a=null;d._html5_canplay=!1;d.bytesLoaded=null;d.bytesTotal=null;d.position=null;d.duration=d._iO&&d._iO.duration?d._iO.duration:
null;d.durationEstimate=null;d.failures=0;d.loaded=!1;d.playState=0;d.paused=!1;d.readyState=0;d.muted=!1;d.didBeforeFinish=!1;d.didJustBeforeFinish=!1;d.isBuffering=!1;d.instanceOptions={};d.instanceCount=0;d.peakData={left:0,right:0};d.waveformData={left:[],right:[]};d.eqData=[];d.eqData.left=[];d.eqData.right=[]};f();this._setup_html5=function(b){var b=N(d._iO,b),g=decodeURI,h=Da?e._global_a:d._a,j=g(b.url),k=h&&h._t?h._t.instanceOptions:null;if(h){if(h._t&&k.url===b.url)return h;e._wD("setting new URL on existing object: "+
j+", old URL: "+g(k.url));Da&&h._t.playState&&h._t&&b.url!==k.url&&h._t.stop();f();h.src=b.url}else if(e._wD("creating HTML5 Audio() element with URL: "+j),h=new Audio(b.url),Da)e._global_a=h;h._called_load=!1;d.isHTML5=!0;d._a=h;h._t=d;d._add_html5_events();h.loop=b.loops>1?"loop":"";b.autoLoad||b.autoPlay?(h.autobuffer="auto",h.preload="auto",d.load()):(h.autobuffer=!1,h.preload="none");h.loop=b.loops>1?"loop":"";return h};this._add_html5_events=function(){if(d._a._added_events)return!1;var b;e._wD(n+
"adding event listeners: "+d.sID);d._a._added_events=!0;for(b in e._html5_events)e._html5_events.hasOwnProperty(b)&&d._a&&d._a.addEventListener(b,e._html5_events[b],!1);return!0};this._remove_html5_events=function(){e._wD(n+"removing event listeners: "+d.sID);d._a._added_events=!1;for(var b in e._html5_events)e._html5_events.hasOwnProperty(b)&&d._a&&d._a.removeEventListener(b,e._html5_events[b],!1)};this._whileloading=function(b,e,f,g){d.bytesLoaded=b;d.bytesTotal=e;d.duration=Math.floor(f);d.bufferLength=
g;if(d._iO.isMovieStar)d.durationEstimate=d.duration;else if(d.durationEstimate=d._iO.duration?d.duration>d._iO.duration?d.duration:d._iO.duration:parseInt(d.bytesTotal/d.bytesLoaded*d.duration,10),d.durationEstimate===void 0)d.durationEstimate=d.duration;d.readyState!==3&&d._iO.whileloading&&d._iO.whileloading.apply(d)};this._onid3=function(b,f){e._wD('SMSound._onid3(): "'+this.sID+'" ID3 data received.');var g=[],h,j;h=0;for(j=b.length;h<j;h++)g[b[h]]=f[h];d.id3=N(d.id3,g);d._iO.onid3&&d._iO.onid3.apply(d)};
this._whileplaying=function(b,f,g,h,j){if(isNaN(b)||b===null)return!1;d.playState===0&&b>0&&(b=0);d.position=b;d.processOnPosition();if(z>8&&!d.isHTML5){if(d._iO.usePeakData&&typeof f!=="undefined"&&f)d.peakData={left:f.leftPeak,right:f.rightPeak};if(d._iO.useWaveformData&&typeof g!=="undefined"&&g)d.waveformData={left:g.split(","),right:h.split(",")};if(d._iO.useEQData&&typeof j!=="undefined"&&j&&j.leftEQ&&(b=j.leftEQ.split(","),d.eqData=b,d.eqData.left=b,typeof j.rightEQ!=="undefined"&&j.rightEQ))d.eqData.right=
j.rightEQ.split(",")}d.playState===1&&(!d.isHTML5&&e.flashVersion===8&&!d.position&&d.isBuffering&&d._onbufferchange(0),d._iO.whileplaying&&d._iO.whileplaying.apply(d),(d.loaded||!d.loaded&&d._iO.isMovieStar)&&d._iO.onbeforefinish&&d._iO.onbeforefinishtime&&!d.didBeforeFinish&&d.duration-d.position<=d._iO.onbeforefinishtime&&d._onbeforefinish());return!0};this._onconnect=function(b){b=b===1;e._wD('SMSound._onconnect(): "'+d.sID+'"'+(b?" connected.":" failed to connect? - "+d.url),b?1:2);if(d.connected=
b)d.failures=0,fa(d.sID)&&(d.getAutoPlay()?d.play(void 0,d.getAutoPlay()):d._iO.autoLoad&&d.load()),d._iO.onconnect&&d._iO.onconnect.apply(d,[b])};this._onload=function(b){b=b?!0:!1;e._wD('SMSound._onload(): "'+d.sID+'"'+(b?" loaded.":" failed to load? - "+d.url),b?1:2);!b&&!d.isHTML5&&(e.sandbox.noRemote===!0&&e._wD("SMSound._onload(): "+Y("noNet"),1),e.sandbox.noLocal===!0&&e._wD("SMSound._onload(): "+Y("noLocal"),1));d.loaded=b;d.readyState=b?3:2;d._onbufferchange(0);d._iO.onload&&d._iO.onload.apply(d,
[b]);return!0};this._onfailure=function(b,f,g){d.failures++;e._wD('SMSound._onfailure(): "'+d.sID+'" count '+d.failures);if(d._iO.onfailure&&d.failures===1)d._iO.onfailure(d,b,f,g);else e._wD("SMSound._onfailure(): ignoring")};this._onbeforefinish=function(){if(!d.didBeforeFinish)d.didBeforeFinish=!0,d._iO.onbeforefinish&&(e._wD('SMSound._onbeforefinish(): "'+d.sID+'"'),d._iO.onbeforefinish.apply(d))};this._onjustbeforefinish=function(){if(!d.didJustBeforeFinish)d.didJustBeforeFinish=!0,d._iO.onjustbeforefinish&&
(e._wD('SMSound._onjustbeforefinish(): "'+d.sID+'"'),d._iO.onjustbeforefinish.apply(d))};this._onfinish=function(){var b=d._iO.onfinish;d._onbufferchange(0);d.resetOnPosition(0);d._iO.onbeforefinishcomplete&&d._iO.onbeforefinishcomplete.apply(d);d.didBeforeFinish=!1;d.didJustBeforeFinish=!1;if(d.instanceCount){d.instanceCount--;if(!d.instanceCount)d.playState=0,d.paused=!1,d.instanceCount=0,d.instanceOptions={},d._iO={},g();if((!d.instanceCount||d._iO.multiShotEvents)&&b)e._wD('SMSound._onfinish(): "'+
d.sID+'"'),b.apply(d)}};this._onbufferchange=function(b){if(d.playState===0)return!1;if(b&&d.isBuffering||!b&&!d.isBuffering)return!1;d.isBuffering=b===1;d._iO.onbufferchange&&(e._wD("SMSound._onbufferchange(): "+b),d._iO.onbufferchange.apply(d));return!0};this._ondataerror=function(b){d.playState>0&&(e._wD("SMSound._ondataerror(): "+b),d._iO.ondataerror&&d._iO.ondataerror.apply(d))}};Z=function(){return q.body?q.body:q._docElement?q.documentElement:q.getElementsByTagName("div")[0]};w=function(b){return q.getElementById(b)};
N=function(b,d){var f={},g,h;for(g in b)b.hasOwnProperty(g)&&(f[g]=b[g]);g=typeof d==="undefined"?e.defaultOptions:d;for(h in g)g.hasOwnProperty(h)&&typeof f[h]==="undefined"&&(f[h]=g[h]);return f};ja=function(){function b(d){var d=ka.call(d),f=d.length;e?(d[1]="on"+d[1],f>3&&d.pop()):f===3&&d.push(!1);return d}function d(b,g){var h=b.shift(),j=[f[g]];if(e)h[j](b[0],b[1]);else h[j].apply(h,b)}var e=s.attachEvent,f={add:e?"attachEvent":"addEventListener",remove:e?"detachEvent":"removeEventListener"};
return{add:function(){d(b(arguments),"add")},remove:function(){d(b(arguments),"remove")}}}();ba=function(b){return!b.serverURL&&(b.type?pa({type:b.type}):pa(b.url)||ea)};pa=function(b){if(!e.useHTML5Audio||!e.hasHTML5)return!1;var d,f=e.audioFormats;if(!ma){ma=[];for(d in f)f.hasOwnProperty(d)&&(ma.push(d),f[d].related&&(ma=ma.concat(f[d].related)));ma=RegExp("\\.("+ma.join("|")+")","i")}d=typeof b.type!=="undefined"?b.type:null;b=typeof b==="string"?b.toLowerCase().match(ma):null;if(!b||!b.length)if(d)b=
d.indexOf(";"),b=(b!==-1?d.substr(0,b):d).substr(6);else return!1;else b=b[0].substr(1);if(b&&typeof e.html5[b]!=="undefined")return e.html5[b];else{if(!d)if(b&&e.html5[b])return e.html5[b];else d="audio/"+b;d=e.html5.canPlayType(d);return e.html5[b]=d}};qa=function(){function b(f){var g,h,j=!1;if(!d||typeof d.canPlayType!=="function")return!1;if(f instanceof Array){g=0;for(h=f.length;g<h&&!j;g++)if(e.html5[f[g]]||d.canPlayType(f[g]).match(e.html5Test))j=!0,e.html5[f[g]]=!0;return j}else return(f=
d&&typeof d.canPlayType==="function"?d.canPlayType(f):!1)&&(f.match(e.html5Test)?!0:!1)}if(!e.useHTML5Audio||typeof Audio==="undefined")return!1;var d=typeof Audio!=="undefined"?new Audio(null):null,f,g={},h,j;Ea();h=e.audioFormats;for(f in h)if(h.hasOwnProperty(f)&&(g[f]=b(h[f].type),h[f]&&h[f].related))for(j=h[f].related.length;j--;)e.html5[h[f].related[j]]=g[f];g.canPlayType=d?b:null;e.html5=N(e.html5,g);return!0};Q={notReady:"Not loaded yet - wait for soundManager.onload()/onready()",notOK:"Audio support is not available.",
appXHTML:"soundManager::createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.",spcWmode:"soundManager::createMovie(): Removing wmode, preventing known SWF loading issue(s)",swf404:"soundManager: Verify that %s is a valid path.",tryDebug:"Try soundManager.debugFlash = true for more security details (output goes to SWF.)",checkSWF:"See SWF output for more debug info.",localFail:"soundManager: Non-HTTP page ("+q.location.protocol+" URL?) Review Flash player security settings for this special case:\nhttp://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html\nMay need to add/allow path, eg. c:/sm2/ or /users/me/sm2/",
waitFocus:"soundManager: Special case: Waiting for focus-related event..",waitImpatient:"soundManager: Getting impatient, still waiting for Flash%s...",waitForever:"soundManager: Waiting indefinitely for Flash (will recover if unblocked)...",needFunction:"soundManager: Function object expected for %s",badID:'Warning: Sound ID "%s" should be a string, starting with a non-numeric character',noMS:"MovieStar mode not enabled. Exiting.",currentObj:"--- soundManager._debug(): Current sound objects ---",
waitEI:"soundManager::initMovie(): Waiting for ExternalInterface call from Flash..",waitOnload:"soundManager: Waiting for window.onload()",docLoaded:"soundManager: Document already loaded",onload:"soundManager::initComplete(): calling soundManager.onload()",onloadOK:"soundManager.onload() complete",init:"-- soundManager::init() --",didInit:"soundManager::init(): Already called?",flashJS:"soundManager: Attempting to call Flash from JS..",noPolling:"soundManager: Polling (whileloading()/whileplaying() support) is disabled.",
secNote:"Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html",badRemove:"Warning: Failed to remove flash movie.",noPeak:"Warning: peakData features unsupported for movieStar formats",shutdown:"soundManager.disable(): Shutting down",queue:"soundManager: Queueing %s handler",smFail:"soundManager: Failed to initialise.",
smError:"SMSound.load(): Exception: JS-Flash communication failed, or JS error.",fbTimeout:"No flash response, applying ."+e.swfCSS.swfTimedout+" CSS..",fbLoaded:"Flash loaded",fbHandler:"soundManager::flashBlockHandler()",manURL:"SMSound.load(): Using manually-assigned URL",onURL:"soundManager.load(): current URL already assigned.",badFV:'soundManager.flashVersion must be 8 or 9. "%s" is invalid. Reverting to %s.',as2loop:"Note: Setting stream:false so looping can work (flash 8 limitation)",noNSLoop:"Note: Looping not implemented for MovieStar formats",
needfl9:"Note: Switching to flash 9, required for MP4 formats.",mfTimeout:"Setting flashLoadTimeout = 0 (infinite) for off-screen, mobile flash case",mfOn:"mobileFlash::enabling on-screen flash repositioning",policy:"Enabling usePolicyFile for data access"};Y=function(){var b=ka.call(arguments),d=b.shift(),d=Q&&Q[d]?Q[d]:"",e,f;if(d&&b&&b.length){e=0;for(f=b.length;e<f;e++)d=d.replace("%s",b[e])}return d};Ma=function(b){if(z===8&&b.loops>1&&b.stream)J("as2loop"),b.stream=!1;return b};Na=function(b,
d){if(b&&!b.usePolicyFile&&(b.onid3||b.usePeakData||b.useWaveformData||b.useEQData))e._wD((d?d+":":"")+Y("policy")),b.usePolicyFile=!0;return b};Va=function(b){typeof console!=="undefined"&&typeof console.warn!=="undefined"?console.warn(b):e._wD(b)};C=function(){return!1};V=function(b){for(var d in b)b.hasOwnProperty(d)&&typeof b[d]==="function"&&(b[d]=C)};da=function(b){typeof b==="undefined"&&(b=!1);if(L||b)J("smFail",2),e.disable(b)};za=function(b){var d=null;if(b)if(b.match(/\.swf(\?.*)?$/i)){if(d=
b.substr(b.toLowerCase().lastIndexOf(".swf?")+4))return b}else b.lastIndexOf("/")!==b.length-1&&(b+="/");return(b&&b.lastIndexOf("/")!==-1?b.substr(0,b.lastIndexOf("/")+1):"./")+e.movieURL};R=function(){if(z!==8&&z!==9)e._wD(Y("badFV",z,8)),e.flashVersion=8;var b=e.debugMode||e.debugFlash?"_debug.swf":".swf";if(e.useHTML5Audio&&!ea&&e.audioFormats.mp4.required&&e.flashVersion<9)e._wD(Y("needfl9")),e.flashVersion=9;z=e.flashVersion;e.version=e.versionNumber+(ea?" (HTML5-only mode)":z===9?" (AS3/Flash 9)":
" (AS2/Flash 8)");if(z>8)e.defaultOptions=N(e.defaultOptions,e.flash9Options),e.features.buffering=!0;z>8&&e.useMovieStar?(e.defaultOptions=N(e.defaultOptions,e.movieStarOptions),e.filePatterns.flash9=RegExp("\\.(mp3|"+e.netStreamTypes.join("|")+")(\\?.*)?$","i"),e.mimePattern=e.netStreamMimeTypes,e.features.movieStar=!0):(e.useMovieStar=!1,e.features.movieStar=!1);e.filePattern=e.filePatterns[z!==8?"flash9":"flash8"];e.movieURL=(z===8?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",
b);e.features.peakData=e.features.waveformData=e.features.eqData=z>8};oa=function(b,d){if(!e.o||!e.allowPolling)return!1;e.o._setPolling(b,d)};ga=function(b,d){function f(){e._wD("-- SoundManager 2 "+e.version+(!ea&&e.useHTML5Audio?e.hasHTML5?" + HTML5 audio":", no HTML5 audio support":"")+(!ea?(e.useMovieStar?", MovieStar mode":"")+(e.useHighPerformance?", high performance mode, ":", ")+((e.flashPollingInterval?"custom ("+e.flashPollingInterval+"ms)":e.useFastPolling?"fast":"normal")+" polling")+
(e.wmode?", wmode: "+e.wmode:"")+(e.debugFlash?", flash debug mode":"")+(e.useFlashBlock?", flashBlock mode":""):"")+" --",1)}var g=d?d:e.url,h=e.altURL?e.altURL:g,k;k=Z();var m,n,o=ta(),p,r=null,r=(r=q.getElementsByTagName("html")[0])&&r.dir&&r.dir.match(/rtl/i),b=typeof b==="undefined"?e.id:b;if(E&&I)return!1;if(ea)return R(),f(),e.oMC=w(e.movieID),B(),I=E=!0,!1;E=!0;R();e.url=za(e._overHTTP?g:h);d=e.url;e.wmode=!e.wmode&&e.useHighPerformance&&!e.useMovieStar?"transparent":e.wmode;if(e.wmode!==
null&&(u.match(/msie 8/i)||!va&&!e.useHighPerformance)&&navigator.platform.match(/win32|win64/i))e.specialWmodeCase=!0,J("spcWmode"),e.wmode=null;k={name:b,id:b,src:d,width:"100%",height:"100%",quality:"high",allowScriptAccess:e.allowScriptAccess,bgcolor:e.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:e.wmode,hasPriority:"true"};if(e.debugFlash)k.FlashVars="debug=1";e.wmode||delete k.wmode;if(va)g=q.createElement("div"),n='<object id="'+
b+'" data="'+d+'" type="'+k.type+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+k.width+'" height="'+k.height+'"><param name="movie" value="'+d+'" /><param name="AllowScriptAccess" value="'+e.allowScriptAccess+'" /><param name="quality" value="'+k.quality+'" />'+(e.wmode?'<param name="wmode" value="'+e.wmode+'" /> ':"")+'<param name="bgcolor" value="'+e.bgColor+'" />'+(e.debugFlash?'<param name="FlashVars" value="'+
k.FlashVars+'" />':"")+"</object>";else for(m in g=q.createElement("embed"),k)k.hasOwnProperty(m)&&g.setAttribute(m,k[m]);j();o=ta();if(k=Z())if(e.oMC=w(e.movieID)?w(e.movieID):q.createElement("div"),e.oMC.id){p=e.oMC.className;e.oMC.className=(p?p+" ":e.swfCSS.swfDefault)+(o?" "+o:"");e.oMC.appendChild(g);if(va)m=e.oMC.appendChild(q.createElement("div")),m.className=e.swfCSS.swfBox,m.innerHTML=n;I=!0}else{e.oMC.id=e.movieID;e.oMC.className=e.swfCSS.swfDefault+" "+o;m=o=null;if(!e.useFlashBlock)if(e.useHighPerformance)o=
{position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"};else if(o={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},r)o.left=Math.abs(parseInt(o.left,10))+"px";if(db)e.oMC.style.zIndex=1E4;if(!e.debugFlash)for(p in o)o.hasOwnProperty(p)&&(e.oMC.style[p]=o[p]);try{va||e.oMC.appendChild(g);k.appendChild(e.oMC);if(va)m=e.oMC.appendChild(q.createElement("div")),m.className=e.swfCSS.swfBox,m.innerHTML=n;I=!0}catch(v){throw Error(Y("appXHTML"));}}f();
e._wD("soundManager::createMovie(): Trying to load "+d+(!e._overHTTP&&e.altURL?" (alternate URL)":""),1);return!0};fa=this.getSoundById;K=function(){if(ea)return ga(),!1;if(e.o)return!1;e.o=e.getMovie(e.id);if(!e.o)sa?(va?e.oMC.innerHTML=na:e.oMC.appendChild(sa),sa=null,E=!0):ga(e.id,e.url),e.o=e.getMovie(e.id);e.o&&(e._wD("soundManager::initMovie(): Got "+e.o.nodeName+" element ("+(E?"created via JS":"static HTML")+")"),J("waitEI"));e.oninitmovie instanceof Function&&setTimeout(e.oninitmovie,1);
return!0};U=function(b){if(b)e.url=b;K()};A=function(){setTimeout(T,500)};T=function(){if(Oa)return!1;Oa=!0;ja.remove(s,"load",A);if(Aa&&!Ra)return J("waitFocus"),!1;var b;F||(b=e.getMoviePercent(),e._wD(Y("waitImpatient",b===100?" (SWF loaded)":b>0?" (SWF "+b+"% loaded)":"")));setTimeout(function(){b=e.getMoviePercent();F||(e._wD("soundManager: No Flash response within expected time.\nLikely causes: "+(b===0?"Loading "+e.movieURL+" may have failed (and/or Flash "+z+"+ not present?), ":"")+"Flash blocked or JS-Flash security error."+
(e.debugFlash?" "+Y("checkSWF"):""),2),!e._overHTTP&&b&&(J("localFail",2),e.debugFlash||J("tryDebug",2)),b===0&&e._wD(Y("swf404",e.url)),r("flashtojs",!1,": Timed out"+e._overHTTP?" (Check flash security or flash blockers)":" (No plugin/missing SWF?)"));!F&&Za&&(b===null?e.useFlashBlock||e.flashLoadTimeout===0?(e.useFlashBlock&&Ca(),J("waitForever")):da(!0):e.flashLoadTimeout===0?J("waitForever"):da(!0))},e.flashLoadTimeout)};U=function(b){if(b)e.url=b;K()};J=function(b,d){return b?e._wD(Y(b),d):
""};if(x.indexOf("debug=alert")+1&&e.debugMode)e._wD=function(d){b.alert(d)};La=function(){var b=w(e.debugID),d=w(e.debugID+"-toggle");if(!b)return!1;y?(d.innerHTML="+",b.style.display="none"):(d.innerHTML="-",b.style.display="block");y=!y};r=function(b,d,e){if(typeof sm2Debugger!=="undefined")try{sm2Debugger.handleEvent(b,d,e)}catch(f){}return!0};ta=function(){var b=[];e.debugMode&&b.push(e.swfCSS.sm2Debug);e.debugFlash&&b.push(e.swfCSS.flashDebug);e.useHighPerformance&&b.push(e.swfCSS.highPerf);
return b.join(" ")};Ca=function(){var b=Y("fbHandler"),d=e.getMoviePercent(),f=e.swfCSS;if(e.ok()){if(e.didFlashBlock&&e._wD(b+": Unblocked"),e.oMC)e.oMC.className=[ta(),f.swfDefault,f.swfLoaded+(e.didFlashBlock?" "+f.swfUnblocked:"")].join(" ")}else{if(la)e.oMC.className=ta()+" "+f.swfDefault+" "+(d===null?f.swfTimedout:f.swfError),e._wD(b+": "+Y("fbTimeout")+(d?" ("+Y("fbLoaded")+")":""));e.didFlashBlock=!0;P({type:"ontimeout",ignoreInit:!0});e.onerror instanceof Function&&e.onerror.apply(s)}};
p=function(){function b(){ja.remove(s,"focus",p);ja.remove(s,"load",p)}if(Ra||!Aa)return b(),!0;Ra=Za=!0;e._wD("soundManager::handleFocus()");Fa&&Aa&&ja.remove(s,"mousemove",p);Oa=!1;b();return!0};G=function(b){if(F)return!1;if(ea)return e._wD("-- SoundManager 2: loaded --"),F=!0,P(),M(),!0;e.useFlashBlock&&e.flashLoadTimeout&&!e.getMoviePercent()||(F=!0);e._wD("-- SoundManager 2 "+(L?"failed to load":"loaded")+" ("+(L?"security/load error":"OK")+") --",1);if(L||b){if(e.useFlashBlock)e.oMC.className=
ta()+" "+(e.getMoviePercent()===null?e.swfCSS.swfTimedout:e.swfCSS.swfError);P({type:"ontimeout"});r("onload",!1);e.onerror instanceof Function&&e.onerror.apply(s);return!1}else r("onload",!0);ja.add(s,"unload",C);if(e.waitForWindowLoad&&!O)return J("waitOnload"),ja.add(s,"load",M),!1;else e.waitForWindowLoad&&O&&J("docLoaded"),M();return!0};m=function(b,d,e){typeof D[b]==="undefined"&&(D[b]=[]);D[b].push({method:d,scope:e||null,fired:!1})};P=function(b){b||(b={type:"onready"});if(!F&&b&&!b.ignoreInit)return!1;
var d={success:b&&b.ignoreInit?e.ok():!L},f=b&&b.type?D[b.type]||[]:[],g=[],h,j=la&&e.useFlashBlock&&!e.ok();for(h=0;h<f.length;h++)f[h].fired!==!0&&g.push(f[h]);if(g.length){e._wD("soundManager: Firing "+g.length+" "+b.type+"() item"+(g.length===1?"":"s"));h=0;for(b=g.length;h<b;h++)if(g[h].scope?g[h].method.apply(g[h].scope,[d]):g[h].method(d),!j)g[h].fired=!0}return!0};M=function(){s.setTimeout(function(){e.useFlashBlock&&Ca();P();e.onload instanceof Function&&(J("onload",1),e.onload.apply(s),
J("onloadOK",1));e.waitForWindowLoad&&ja.add(s,"load",M)},1)};Ea=function(){if(Qa!==void 0)return Qa;var b=!1,d=navigator,e=d.plugins,f,g=s.ActiveXObject;if(e&&e.length)(d=d.mimeTypes)&&d["application/x-shockwave-flash"]&&d["application/x-shockwave-flash"].enabledPlugin&&d["application/x-shockwave-flash"].enabledPlugin.description&&(b=!0);else if(typeof g!=="undefined"){try{f=new g("ShockwaveFlash.ShockwaveFlash")}catch(h){}b=!!f}return Qa=b};Ga=function(){var b,d;if(u.match(/iphone os (1|2|3_0|3_1)/i)){e.hasHTML5=
!1;ea=!0;if(e.oMC)e.oMC.style.display="none";return!1}if(e.useHTML5Audio){if(!e.html5||!e.html5.canPlayType)return e._wD("SoundManager: No HTML5 Audio() support detected."),e.hasHTML5=!1,!0;else e.hasHTML5=!0;if(Ua&&(e._wD("soundManager::Note: Buggy HTML5 Audio in Safari on this OS X release, see https://bugs.webkit.org/show_bug.cgi?id=32159 - "+(!Qa?" would use flash fallback for MP3/MP4, but none detected.":"will use flash fallback for MP3/MP4, if available"),1),Ea()))return!0}else return!0;for(d in e.audioFormats)e.audioFormats.hasOwnProperty(d)&&
e.audioFormats[d].required&&!e.html5.canPlayType(e.audioFormats[d].type)&&(b=!0);e.ignoreFlash&&(b=!1);ea=e.useHTML5Audio&&e.hasHTML5&&!b&&!e.requireFlash;return Ea()&&b};B=function(){var b,d=[];J("init");if(F)return J("didInit"),!1;if(e.hasHTML5){for(b in e.audioFormats)e.audioFormats.hasOwnProperty(b)&&d.push(b+": "+e.html5[b]);e._wD("-- SoundManager 2: HTML5 support tests ("+e.html5Test+"): "+d.join(", ")+" --",1)}if(ea){if(!F)ja.remove(s,"load",e.beginDelayedInit),e.enabled=!0,G();return!0}K();
try{J("flashJS"),e.o._externalInterfaceTest(!1),e.allowPolling?oa(!0,e.flashPollingInterval?e.flashPollingInterval:e.useFastPolling?10:50):J("noPolling",1),e.debugMode||e.o._disableDebug(),e.enabled=!0,r("jstoflash",!0)}catch(f){return e._wD("js/flash exception: "+f.toString()),r("jstoflash",!1),da(!0),G(),!1}G();ja.remove(s,"load",e.beginDelayedInit);return!0};S=function(){if(Pa)return!1;ga();K();return Pa=!0};X=function(){if(aa)return!1;aa=!0;j();if(!e.useHTML5Audio&&!Ea())e._wD("SoundManager: No Flash detected, trying HTML5"),
e.useHTML5Audio=!0;qa();e.html5.usingFlash=Ga();la=e.html5.usingFlash;aa=!0;q.removeEventListener&&q.removeEventListener("DOMContentLoaded",X,!1);U();return!0};ia=function(b){if(!b._hasTimer)b._hasTimer=!0};ra=function(b){if(b._hasTimer)b._hasTimer=!1};ha=function(){if(e.onerror instanceof Function)e.onerror();e.disable()};Wa=function(){if(!Ua||!Ea())return!1;var b=e.audioFormats,d,f;for(f in b)if(b.hasOwnProperty(f)&&(f==="mp3"||f==="mp4"))if(e._wD("soundManager: Using flash fallback for "+f+" format"),
e.html5[f]=!1,b[f]&&b[f].related)for(;d--;)e.html5[b[f].related[d]]=!1};this._setSandboxType=function(b){var d=e.sandbox;d.type=b;d.description=d.types[typeof d.types[b]!=="undefined"?b:"unknown"];e._wD("Flash security sandbox type: "+d.type);if(d.type==="localWithFile")d.noRemote=!0,d.noLocal=!1,J("secNote",2);else if(d.type==="localWithNetwork")d.noRemote=!1,d.noLocal=!0;else if(d.type==="localTrusted")d.noRemote=!1,d.noLocal=!1};this._externalInterfaceOK=function(b){if(e.swfLoaded)return!1;var d=
(new Date).getTime();e._wD("soundManager::externalInterfaceOK()"+(b?" (~"+(d-b)+" ms)":""));r("swf",!0);r("flashtojs",!0);e.swfLoaded=!0;Aa=!1;Ua&&Wa();va?setTimeout(B,100):B()};ua=function(){q.readyState==="complete"&&(X(),q.detachEvent("onreadystatechange",ua));return!0};if(!e.hasHTML5||la)ja.add(s,"focus",p),ja.add(s,"load",p),ja.add(s,"load",A),Fa&&Aa&&ja.add(s,"mousemove",p);q.addEventListener?q.addEventListener("DOMContentLoaded",X,!1):q.attachEvent?q.attachEvent("onreadystatechange",ua):(r("onload",
!1),ha());q.readyState==="complete"&&setTimeout(X,100)}var d=null;if(typeof SM2_DEFER==="undefined"||!SM2_DEFER)d=new f;b.SoundManager=f;b.soundManager=d})(window);/*
 RequireJS 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
*/
var requirejs,require,define;
(function(){function b(b){return s.call(b)==="[object Function]"}function f(b){return s.call(b)==="[object Array]"}function d(b,d,e){for(var f in d)if(!(f in E)&&(!(f in b)||e))b[f]=d[f];return v}function k(b,d,e){b=Error(d+"\nhttp://requirejs.org/docs/errors.html#"+b);if(e)b.originalError=e;return b}function o(b,d,e){var f,g,h;for(f=0;h=d[f];f++){h=typeof h==="string"?{name:h}:h;g=h.location;if(e&&(!g||g.indexOf("/")!==0&&g.indexOf(":")===-1))g=e+"/"+(g||h.name);b[h.name]={name:h.name,location:g||
h.name,main:(h.main||"main").replace(w,"").replace(u,"")}}}function h(b,d){b.holdReady?b.holdReady(d):d?b.readyWait+=1:b.ready(!0)}function j(e){function f(b,d){var e,g;if(b.charAt(0)==="."&&d){L.pkgs[d]?d=[d]:(d=d.split("/"),d=d.slice(0,d.length-1));e=b=d.concat(b.split("/"));var h;for(g=0;h=e[g];g++)if(h===".")e.splice(g,1),g-=1;else if(h==="..")if(g===1&&(e[2]===".."||e[0]===".."))break;else g>0&&(e.splice(g-1,2),g-=2);g=L.pkgs[e=b[0]];b=b.join("/");g&&b===e+"/"+g.main&&(b=e)}return b}function g(b,
d){var e=b?b.indexOf("!"):-1,h=null,j=d?d.name:null,k=b,m,n;e!==-1&&(h=b.substring(0,e),b=b.substring(e+1,b.length));h&&(h=f(h,j));b&&(m=h?(e=R[h])?e.normalize?e.normalize(b,function(b){return f(b,j)}):f(b,j):"__$p"+j+"@"+b:f(b,j),n=U[m],n||(n=v.toModuleUrl?v.toModuleUrl(G,m,d):G.nameToUrl(m,null,d),U[m]=n));return{prefix:h,name:m,parentMap:d,url:n,originalName:k,fullName:h?h+"!"+m:m}}function j(){var b=!0,d=L.priorityWait,e,f;if(d){for(f=0;e=d[f];f++)if(!ia[e]){b=!1;break}b&&delete L.priorityWait}return b}
function m(b){return function(d){b.exports=d}}function n(d,e,f){return function(){var g=[].concat(z.call(arguments,0)),h;if(f&&b(h=g[g.length-1]))h.__requireJsBuild=!0;g.push(e);return d.apply(null,g)}}function p(b,e){var f=n(G.require,b,e);d(f,{nameToUrl:n(G.nameToUrl,b),toUrl:n(G.toUrl,b),defined:n(G.requireDefined,b),specified:n(G.requireSpecified,b),ready:v.ready,isBrowser:v.isBrowser});if(v.paths)f.paths=v.paths;return f}function u(b){var d=b.prefix,e=b.fullName;S[e]||e in R||(d&&!ea[d]&&(ea[d]=
void 0,(ua[d]||(ua[d]=[])).push(b),(ba[d]||(ba[d]=[])).push({onDep:function(b){if(b===d){var e,f,h,j,k,m,n=ua[d];if(n)for(h=0;e=n[h];h++)if(b=e.fullName,e=g(e.originalName,e.parentMap),e=e.fullName,f=ba[b]||[],j=ba[e],e!==b){b in S&&(delete S[b],S[e]=!0);ba[e]=j?j.concat(f):f;delete ba[b];for(j=0;j<f.length;j++){m=f[j].depArray;for(k=0;k<m.length;k++)m[k]===b&&(m[k]=e)}}delete ua[d]}}}),u(g(d))),G.paused.push(b))}function s(d){var e,f,h;e=d.callback;var j=d.fullName,m=[],n=d.depArray;if(e&&b(e)){if(n)for(e=
0;e<n.length;e++)m.push(d.deps[n[e]]);try{f=v.execCb(j,d.callback,m,R[j])}catch(o){h=o}if(j)d.cjsModule&&d.cjsModule.exports!==void 0?f=R[j]=d.cjsModule.exports:f===void 0&&d.usingExports?f=R[j]:R[j]=f}else j&&(f=R[j]=e);if(ra[d.waitId])delete ra[d.waitId],d.isDone=!0,G.waitCount-=1,G.waitCount===0&&(la=[]);if(h)return h=k("defineerror",'Error evaluating module "'+j+'" at location "'+(j?g(j).url:"")+'":\n'+h+"\nfileName:"+(h.fileName||h.sourceURL)+"\nlineNumber: "+(h.lineNumber||h.line),h),h.moduleName=
j,v.onError(h);if(j&&(d=ba[j])){for(e=0;e<d.length;e++)d[e].onDep(j,f);delete ba[j]}}function w(b,d,e,f){var b=g(b,f),h=b.name,j=b.fullName,k={},n={waitId:h||r+Ga++,depCount:0,depMax:0,prefix:b.prefix,name:h,fullName:j,deps:{},depArray:d,callback:e,onDep:function(b,d){b in n.deps||(n.deps[b]=d,n.depCount+=1,n.depCount===n.depMax&&s(n))}},o,q;if(j){if(j in R||ia[j]===!0||j==="jquery"&&L.jQuery&&L.jQuery!==e().fn.jquery)return;S[j]=!0;ia[j]=!0;j==="jquery"&&e&&Q(e())}for(e=0;e<d.length;e++)if(o=d[e])o=
g(o,h?b:f),q=o.fullName,d[e]=q,q==="require"?n.deps[q]=p(b):q==="exports"?(n.deps[q]=R[j]={},n.usingExports=!0):q==="module"?(n.cjsModule=o=n.deps[q]={id:h,uri:h?G.nameToUrl(h,null,f):void 0,exports:R[j]},o.setExports=m(o)):q in R&&!(q in ra)?n.deps[q]=R[q]:k[q]||(n.depMax+=1,u(o),(ba[q]||(ba[q]=[])).push(n),k[q]=!0);n.depCount===n.depMax?s(n):(ra[n.waitId]=n,la.push(n),G.waitCount+=1)}function x(b){w.apply(null,b);ia[b[0]]=!0}function y(b,d){if(!b.isDone){var e=b.fullName,f=b.depArray,g,h;if(e){if(d[e])return R[e];
d[e]=!0}for(h=0;h<f.length;h++)if((g=f[h])&&!b.deps[g]&&ra[g])b.onDep(g,y(ra[g],d));return e?R[e]:void 0}}function I(){var b=L.waitSeconds*1E3,d=b&&G.startTime+b<(new Date).getTime(),b="",e=!1,f=!1,g;if(!(G.pausedCount>0)){if(L.priorityWait)if(j())M();else return;for(g in ia)if(!(g in E)&&(e=!0,!ia[g]))if(d)b+=g+" ";else{f=!0;break}if(e||G.waitCount){if(d&&b)return g=k("timeout","Load timeout for modules: "+b),g.requireType="timeout",g.requireModules=b,v.onError(g);if(f||G.scriptCount){if((C||B)&&
!K)K=setTimeout(function(){K=0;I()},50)}else{if(G.waitCount){for(T=0;b=la[T];T++)y(b,{});O<5&&(O+=1,I())}O=0;v.checkReadyState()}}}}function A(b,d){var e=d.name,f=d.fullName,g;if(!(f in R||f in ia))ea[b]||(ea[b]=R[b]),ia[f]||(ia[f]=!1),g=function(g){if(v.onPluginLoad)v.onPluginLoad(G,b,e,g);s({prefix:d.prefix,name:d.name,fullName:d.fullName,callback:function(){return g}});ia[f]=!0},g.fromText=function(b,d){var e=J;G.loaded[b]=!1;G.scriptCount+=1;e&&(J=!1);v.exec(d);e&&(J=!0);G.completeLoad(b)},ea[b].load(e,
p(d.parentMap,!0),g,L)}function D(b){b.prefix&&b.name.indexOf("__$p")===0&&R[b.prefix]&&(b=g(b.originalName,b.parentMap));var d=b.prefix,e=b.fullName,f=G.urlFetched;!S[e]&&!ia[e]&&(S[e]=!0,d?R[d]?A(d,b):(pa[d]||(pa[d]=[],(ba[d]||(ba[d]=[])).push({onDep:function(b){if(b===d){for(var e,f=pa[d],b=0;b<f.length;b++)e=f[b],A(d,g(e.originalName,e.parentMap));delete pa[d]}}})),pa[d].push(b)):f[b.url]||(v.load(G,e,b.url),f[b.url]=!0))}var G,M,L={waitSeconds:7,baseUrl:N.baseUrl||"./",paths:{},pkgs:{}},P=[],
S={require:!0,exports:!0,module:!0},U={},R={},ia={},ra={},la=[],Ga=0,ba={},ea={},pa={},ma=0,ua={};Q=function(b){if(!G.jQuery&&(b=b||(typeof jQuery!=="undefined"?jQuery:null))&&!(L.jQuery&&b.fn.jquery!==L.jQuery)&&("holdReady"in b||"readyWait"in b))if(G.jQuery=b,x(["jquery",[],function(){return jQuery}]),G.scriptCount)h(b,!0),G.jQueryIncremented=!0};M=function(){var b,d,e;ma+=1;if(G.scriptCount<=0)G.scriptCount=0;for(;P.length;)if(b=P.shift(),b[0]===null)return v.onError(k("mismatch","Mismatched anonymous define() module: "+
b[b.length-1]));else x(b);if(!L.priorityWait||j())for(;G.paused.length;){e=G.paused;G.pausedCount+=e.length;G.paused=[];for(d=0;b=e[d];d++)D(b);G.startTime=(new Date).getTime();G.pausedCount-=e.length}ma===1&&I();ma-=1};G={contextName:e,config:L,defQueue:P,waiting:ra,waitCount:0,specified:S,loaded:ia,urlMap:U,scriptCount:0,urlFetched:{},defined:R,paused:[],pausedCount:0,plugins:ea,managerCallbacks:ba,makeModuleMap:g,normalize:f,configure:function(b){var e,f,g;b.baseUrl&&b.baseUrl.charAt(b.baseUrl.length-
1)!=="/"&&(b.baseUrl+="/");e=L.paths;g=L.pkgs;d(L,b,!0);if(b.paths){for(f in b.paths)f in E||(e[f]=b.paths[f]);L.paths=e}if((e=b.packagePaths)||b.packages){if(e)for(f in e)f in E||o(g,e[f],f);b.packages&&o(g,b.packages);L.pkgs=g}if(b.priority)f=G.requireWait,G.requireWait=!1,G.takeGlobalQueue(),M(),G.require(b.priority),M(),G.requireWait=f,L.priorityWait=b.priority;if(b.deps||b.callback)G.require(b.deps||[],b.callback);b.ready&&v.ready(b.ready)},requireDefined:function(b,d){return g(b,d).fullName in
R},requireSpecified:function(b,d){return g(b,d).fullName in S},require:function(b,d,f){if(typeof b==="string"){if(v.get)return v.get(G,b,d);d=g(b,d);b=d.fullName;if(!(b in R))return v.onError(k("notloaded","Module name '"+d.fullName+"' has not been loaded yet for context: "+e));return R[b]}w(null,b,d,f);if(!G.requireWait)for(;!G.scriptCount&&G.paused.length;)G.takeGlobalQueue(),M()},takeGlobalQueue:function(){F.length&&(q.apply(G.defQueue,[G.defQueue.length-1,0].concat(F)),F=[])},completeLoad:function(b){var d;
for(G.takeGlobalQueue();P.length;)if(d=P.shift(),d[0]===null){d[0]=b;break}else if(d[0]===b)break;else x(d),d=null;d?x(d):x([b,[],b==="jquery"&&typeof jQuery!=="undefined"?function(){return jQuery}:null]);ia[b]=!0;Q();v.isAsync&&(G.scriptCount-=1);M();v.isAsync||(G.scriptCount-=1)},toUrl:function(b,d){var e=b.lastIndexOf("."),f=null;e!==-1&&(f=b.substring(e,b.length),b=b.substring(0,e));return G.nameToUrl(b,f,d)},nameToUrl:function(b,d,e){var g,h,j,k,m=G.config,b=f(b,e&&e.fullName);if(v.jsExtRegExp.test(b))d=
b+(d?d:"");else{g=m.paths;h=m.pkgs;e=b.split("/");for(k=e.length;k>0;k--)if(j=e.slice(0,k).join("/"),g[j]){e.splice(0,k,g[j]);break}else if(j=h[j]){b=b===j.name?j.location+"/"+j.main:j.location;e.splice(0,k,b);break}d=e.join("/")+(d||".js");d=(d.charAt(0)==="/"||d.match(/^\w+:/)?"":m.baseUrl)+d}return m.urlArgs?d+((d.indexOf("?")===-1?"?":"&")+m.urlArgs):d}};G.jQueryCheck=Q;G.resume=M;return G}function g(){var b,d,e;if(L&&L.readyState==="interactive")return L;b=document.getElementsByTagName("script");
for(d=b.length-1;d>-1&&(e=b[d]);d--)if(e.readyState==="interactive")return L=e;return null}var e=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,n=/require\(["']([^'"\s]+)["']\)/g,w=/^\.\//,u=/\.js$/,s=Object.prototype.toString,x=Array.prototype,z=x.slice,q=x.splice,C=!!(typeof window!=="undefined"&&navigator&&document),B=!C&&typeof importScripts!=="undefined",D=C&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,y=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",r="_r@@",
E={},I={},F=[],L=null,O=0,J=!1,v,x={},G,N,m,P,M,U,A,T,R,p,S,Q,K;if(typeof define==="undefined"){if(typeof requirejs!=="undefined")if(b(requirejs))return;else x=requirejs,requirejs=void 0;typeof require!=="undefined"&&!b(require)&&(x=require,require=void 0);v=requirejs=function(b,d,e){var g="_",h;!f(b)&&typeof b!=="string"&&(h=b,f(d)?(b=d,d=e):b=[]);if(h&&h.context)g=h.context;e=I[g]||(I[g]=j(g));h&&e.configure(h);return e.require(b,d)};typeof require==="undefined"&&(require=v);v.toUrl=function(b){return I._.toUrl(b)};
v.version="0.25.0";v.isArray=f;v.isFunction=b;v.mixin=d;v.jsExtRegExp=/^\/|:|\?|\.js$/;N=v.s={contexts:I,skipAsync:{},isPageLoaded:!C,readyCalls:[]};if(v.isAsync=v.isBrowser=C)if(m=N.head=document.getElementsByTagName("head")[0],P=document.getElementsByTagName("base")[0])m=N.head=P.parentNode;v.onError=function(b){throw b;};v.load=function(b,d,e){var f=b.loaded;f[d]||(f[d]=!1);b.scriptCount+=1;v.attach(e,b,d);if(b.jQuery&&!b.jQueryIncremented)h(b.jQuery,!0),b.jQueryIncremented=!0};define=v.def=function(b,
d,f){var h;typeof b!=="string"&&(f=d,d=b,b=null);v.isArray(d)||(f=d,d=[]);!b&&!d.length&&v.isFunction(f)&&f.length&&(f.toString().replace(e,"").replace(n,function(b,e){d.push(e)}),d=(f.length===1?["require"]:["require","exports","module"]).concat(d));if(J){h=G||g();if(!h)return v.onError(k("interactive","No matching script interactive for "+f));b||(b=h.getAttribute("data-requiremodule"));h=I[h.getAttribute("data-requirecontext")]}(h?h.defQueue:F).push([b,d,f])};define.amd={multiversion:!0,plugins:!0,
jQuery:!0};v.exec=function(b){return eval(b)};v.execCb=function(b,d,e,f){return d.apply(f,e)};v.onScriptLoad=function(b){var d=b.currentTarget||b.srcElement,e;if(b.type==="load"||D.test(d.readyState))L=null,b=d.getAttribute("data-requirecontext"),e=d.getAttribute("data-requiremodule"),I[b].completeLoad(e),d.detachEvent&&!y?d.detachEvent("onreadystatechange",v.onScriptLoad):d.removeEventListener("load",v.onScriptLoad,!1)};v.attach=function(b,d,e,f,g){var h;if(C)return f=f||v.onScriptLoad,h=d&&d.config&&
d.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),h.type=g||"text/javascript",h.charset="utf-8",h.async=!N.skipAsync[b],d&&h.setAttribute("data-requirecontext",d.contextName),h.setAttribute("data-requiremodule",e),h.attachEvent&&!y?(J=!0,h.attachEvent("onreadystatechange",f)):h.addEventListener("load",f,!1),h.src=b,G=h,P?m.insertBefore(h,P):m.appendChild(h),G=null,h;else if(B)f=d.loaded,f[e]=!1,importScripts(b),d.completeLoad(e);
return null};if(C){M=document.getElementsByTagName("script");for(T=M.length-1;T>-1&&(U=M[T]);T--){if(!m)m=U.parentNode;if(A=U.getAttribute("data-main")){if(!x.baseUrl)M=A.split("/"),U=M.pop(),M=M.length?M.join("/")+"/":"./",x.baseUrl=M,A=U.replace(u,"");x.deps=x.deps?x.deps.concat(A):[A];break}}}N.baseUrl=x.baseUrl;v.pageLoaded=function(){if(!N.isPageLoaded){N.isPageLoaded=!0;R&&clearInterval(R);if(p)document.readyState="complete";v.callReady()}};v.checkReadyState=function(){var b=N.contexts,d;for(d in b)if(!(d in
E)&&b[d].waitCount)return;N.isDone=!0;v.callReady()};v.callReady=function(){var b=N.readyCalls,d,e,f;if(N.isPageLoaded&&N.isDone){if(b.length){N.readyCalls=[];for(d=0;e=b[d];d++)e()}b=N.contexts;for(f in b)if(!(f in E)&&(d=b[f],d.jQueryIncremented))h(d.jQuery,!1),d.jQueryIncremented=!1}};v.ready=function(b){N.isPageLoaded&&N.isDone?b():N.readyCalls.push(b);return v};if(C){if(document.addEventListener){if(document.addEventListener("DOMContentLoaded",v.pageLoaded,!1),window.addEventListener("load",
v.pageLoaded,!1),!document.readyState)p=!0,document.readyState="loading"}else window.attachEvent&&(window.attachEvent("onload",v.pageLoaded),self===self.top&&(R=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),v.pageLoaded())}catch(b){}},30)));document.readyState==="complete"&&v.pageLoaded()}v(x);if(v.isAsync&&typeof setTimeout!=="undefined")S=N.contexts[x.context||"_"],S.requireWait=!0,setTimeout(function(){S.requireWait=!1;S.takeGlobalQueue();S.jQueryCheck();
S.scriptCount||S.resume();v.checkReadyState()},0)}})();var soy=soy||{};(function(){var b=navigator.userAgent,f=b.indexOf("Opera")==0;soy.IS_OPERA_=f;soy.IS_IE_=!f&&b.indexOf("MSIE")!=-1;soy.IS_WEBKIT_=!f&&b.indexOf("WebKit")!=-1})();soy.StringBuilder=function(b){this.buffer_=soy.IS_IE_?[]:"";b!=null&&this.append.apply(this,arguments)};soy.StringBuilder.prototype.bufferLength_=0;
soy.StringBuilder.prototype.append=function(b,f){if(soy.IS_IE_)f==null?this.buffer_[this.bufferLength_++]=b:(this.buffer_.push.apply(this.buffer_,arguments),this.bufferLength_=this.buffer_.length);else if(this.buffer_+=b,f!=null)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};soy.StringBuilder.prototype.clear=function(){soy.IS_IE_?this.bufferLength_=this.buffer_.length=0:this.buffer_=""};
soy.StringBuilder.prototype.toString=function(){if(soy.IS_IE_){var b=this.buffer_.join("");this.clear();b&&this.append(b);return b}else return this.buffer_};soy.renderElement=function(b,f,d){b.innerHTML=f(d)};soy.renderAsFragment=function(b,f){var d=document.createElement("div");d.innerHTML=b(f);if(d.childNodes.length==1)return d.firstChild;else{for(var k=document.createDocumentFragment();d.firstChild;)k.appendChild(d.firstChild);return k}};
soy.$$augmentData=function(b,f){function d(){}d.prototype=b;var k=new d,o;for(o in f)k[o]=f[o];return k};soy.$$escapeHtml=function(b){b=String(b);if(!soy.$$EscapeHtmlRe_.ALL_SPECIAL_CHARS.test(b))return b;b.indexOf("&")!=-1&&(b=b.replace(soy.$$EscapeHtmlRe_.AMP,"&amp;"));b.indexOf("<")!=-1&&(b=b.replace(soy.$$EscapeHtmlRe_.LT,"&lt;"));b.indexOf(">")!=-1&&(b=b.replace(soy.$$EscapeHtmlRe_.GT,"&gt;"));b.indexOf('"')!=-1&&(b=b.replace(soy.$$EscapeHtmlRe_.QUOT,"&quot;"));return b};
soy.$$EscapeHtmlRe_={ALL_SPECIAL_CHARS:/[&<>\"]/,AMP:/&/g,LT:/</g,GT:/>/g,QUOT:/\"/g};soy.$$escapeJs=function(b){for(var b=String(b),f=[],d=0;d<b.length;d++)f[d]=soy.$$escapeChar(b.charAt(d));return f.join("")};soy.$$escapeChar=function(b){if(b in soy.$$escapeCharJs_)return soy.$$escapeCharJs_[b];var f=b,d=b.charCodeAt(0);if(d>31&&d<127)f=b;else{if(d<256){if(f="\\x",d<16||d>256)f+="0"}else f="\\u",d<4096&&(f+="0");f+=d.toString(16).toUpperCase()}return soy.$$escapeCharJs_[b]=f};
soy.$$escapeCharJs_={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};soy.$$escapeUri=function(b){b=String(b);return soy.$$ENCODE_URI_REGEXP_.test(b)?b:encodeURIComponent(b)};soy.$$ENCODE_URI_REGEXP_=/^[a-zA-Z0-9\-_.!~*'()]*$/;
soy.$$insertWordBreaks=function(b,f){for(var b=String(b),d=[],k=0,o=!1,h=!1,j=0,g=0,e=0,n=b.length;e<n;++e){var w=b.charCodeAt(e);if(j>=f&&w!=soy.$$CharCode_.SPACE)d[k++]=b.substring(g,e),g=e,d[k++]=soy.WORD_BREAK_,j=0;if(o)w==soy.$$CharCode_.GREATER_THAN&&(o=!1);else if(h)switch(w){case soy.$$CharCode_.SEMI_COLON:h=!1;++j;break;case soy.$$CharCode_.LESS_THAN:h=!1;o=!0;break;case soy.$$CharCode_.SPACE:h=!1,j=0}else switch(w){case soy.$$CharCode_.LESS_THAN:o=!0;break;case soy.$$CharCode_.AMPERSAND:h=
!0;break;case soy.$$CharCode_.SPACE:j=0;break;default:++j}}d[k++]=b.substring(g);return d.join("")};soy.$$CharCode_={SPACE:32,AMPERSAND:38,SEMI_COLON:59,LESS_THAN:60,GREATER_THAN:62};soy.WORD_BREAK_=soy.IS_WEBKIT_?"<wbr></wbr>":soy.IS_OPERA_?"&shy;":"<wbr>";soy.$$changeNewlineToBr=function(b){b=String(b);if(!soy.$$CHANGE_NEWLINE_TO_BR_RE_.test(b))return b;return b.replace(/(\r\n|\r|\n)/g,"<br>")};soy.$$CHANGE_NEWLINE_TO_BR_RE_=/[\r\n]/;
soy.$$bidiTextDir=function(b,f){b=soy.$$bidiStripHtmlIfNecessary_(b,f);if(!b)return 0;return soy.$$bidiDetectRtlDirectionality_(b)?-1:1};soy.$$bidiDirAttr=function(b,f,d){f=soy.$$bidiTextDir(f,d);if(f!=b)return f<0?"dir=rtl":f>0?"dir=ltr":"";return""};soy.$$bidiMarkAfter=function(b,f,d){var k=soy.$$bidiTextDir(f,d);return soy.$$bidiMarkAfterKnownDir(b,k,f,d)};
soy.$$bidiMarkAfterKnownDir=function(b,f,d,k){return b>0&&(f<0||soy.$$bidiIsRtlExitText_(d,k))?"\u200e":b<0&&(f>0||soy.$$bidiIsLtrExitText_(d,k))?"\u200f":""};soy.$$bidiStripHtmlIfNecessary_=function(b,f){return f?b.replace(soy.$$BIDI_HTML_SKIP_RE_," "):b};soy.$$BIDI_HTML_SKIP_RE_=/<[^>]*>|&[^;]+;/g;
soy.$$bidiSpanWrap=function(b,f){var f=String(f),d=soy.$$bidiTextDir(f,!0),k=soy.$$bidiMarkAfterKnownDir(b,d,f,!0);d>0&&b<=0?f="<span dir=ltr>"+f+"</span>":d<0&&b>=0&&(f="<span dir=rtl>"+f+"</span>");return f+k};soy.$$bidiUnicodeWrap=function(b,f){var f=String(f),d=soy.$$bidiTextDir(f,!0),k=soy.$$bidiMarkAfterKnownDir(b,d,f,!0);d>0&&b<=0?f="\u202a"+f+"\u202c":d<0&&b>=0&&(f="\u202b"+f+"\u202c");return f+k};soy.$$bidiLtrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufdfe-\ufe6f\ufefd-\uffff";
soy.$$bidiNeutralChars_="\0- !-@[-`{-\u00bf\u00d7\u00f7\u02b9-\u02ff\u2000-\u2bff";soy.$$bidiRtlChars_="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc";soy.$$bidiRtlDirCheckRe_=RegExp("^[^"+soy.$$bidiLtrChars_+"]*["+soy.$$bidiRtlChars_+"]");soy.$$bidiNeutralDirCheckRe_=RegExp("^["+soy.$$bidiNeutralChars_+"]*$|^http://");soy.$$bidiIsRtlText_=function(b){return soy.$$bidiRtlDirCheckRe_.test(b)};soy.$$bidiIsNeutralText_=function(b){return soy.$$bidiNeutralDirCheckRe_.test(b)};
soy.$$bidiRtlDetectionThreshold_=0.4;soy.$$bidiRtlWordRatio_=function(b){for(var f=0,d=0,b=b.split(" "),k=0;k<b.length;k++)soy.$$bidiIsRtlText_(b[k])?(f++,d++):soy.$$bidiIsNeutralText_(b[k])||d++;return d==0?0:f/d};soy.$$bidiDetectRtlDirectionality_=function(b){return soy.$$bidiRtlWordRatio_(b)>soy.$$bidiRtlDetectionThreshold_};soy.$$bidiLtrExitDirCheckRe_=RegExp("["+soy.$$bidiLtrChars_+"][^"+soy.$$bidiRtlChars_+"]*$");
soy.$$bidiRtlExitDirCheckRe_=RegExp("["+soy.$$bidiRtlChars_+"][^"+soy.$$bidiLtrChars_+"]*$");soy.$$bidiIsLtrExitText_=function(b,f){b=soy.$$bidiStripHtmlIfNecessary_(b,f);return soy.$$bidiLtrExitDirCheckRe_.test(b)};soy.$$bidiIsRtlExitText_=function(b,f){b=soy.$$bidiStripHtmlIfNecessary_(b,f);return soy.$$bidiRtlExitDirCheckRe_.test(b)};function parseUri(b){for(var f=parseUri.options,b=f.parser[f.strictMode?"strict":"loose"].exec(b),d={},k=14;k--;)d[f.key[k]]=b[k]||"";d[f.q.name]={};d[f.key[12]].replace(f.q.parser,function(b,h,j){h&&(d[f.q.name][h]=j)});return d}
parseUri.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api)return jwplayer.api.selectPlayer(b)},$jw=jwplayer;jwplayer.version="5.7.1896";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(b){b.utils=function(){};b.utils.typeOf=function(b){var d=typeof b;d==="object"&&(b?b instanceof Array&&(d="array"):d="null");return d};b.utils.extend=function(){var f=b.utils.extend.arguments;if(f.length>
1){for(var d=1;d<f.length;d++)for(var k in f[d])f[0][k]=f[d][k];return f[0]}return null};b.utils.clone=function(){var f,d=b.utils.clone.arguments;if(d.length==1)switch(b.utils.typeOf(d[0])){case "object":f={};for(var k in d[0])f[k]=b.utils.clone(d[0][k]);break;case "array":f=[];for(k in d[0])f[k]=b.utils.clone(d[0][k]);break;default:return d[0]}return f};b.utils.extension=function(b){if(!b)return"";b=b.substring(b.lastIndexOf("/")+1,b.length);b=b.split("?")[0];if(b.lastIndexOf(".")>-1)return b.substr(b.lastIndexOf(".")+
1,b.length).toLowerCase()};b.utils.html=function(b,d){b.innerHTML=d};b.utils.wrap=function(b,d){b.parentNode&&b.parentNode.replaceChild(d,b);d.appendChild(b)};b.utils.ajax=function(b,d,k){var o;o=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");o.onreadystatechange=function(){o.readyState===4&&(o.status===200?d&&d(o):k&&k(b))};try{o.open("GET",b,!0),o.send(null)}catch(h){k&&k(b)}return o};b.utils.load=function(b,d,k){b.onreadystatechange=function(){b.readyState===4&&
(b.status===200?d&&d():k&&k())}};b.utils.find=function(b,d){return b.getElementsByTagName(d)};b.utils.append=function(b,d){b.appendChild(d)};b.utils.isIE=function(){return!+"\u000b1"||typeof window.ActiveXObject!="undefined"};b.utils.isLegacyAndroid=function(){return navigator.userAgent.toLowerCase().match(/android 2.[012]/i)!==null};b.utils.isIOS=function(b){typeof b=="undefined"&&(b=/iP(hone|ad|od)/i);return navigator.userAgent.toLowerCase().match(b)!==null};b.utils.isIPad=function(){return b.utils.isIOS(/iPad/i)};
b.utils.isIPod=function(){return b.utils.isIOS(/iP(hone|od)/i)};b.utils.getFirstPlaylistItemFromConfig=function(b){var d={},b=b.playlist&&b.playlist.length?b.playlist[0]:b;d.file=b.file;d.levels=b.levels;d.streamer=b.streamer;d.playlistfile=b.playlistfile;d.provider=b.provider;if(!d.provider){if(d.file&&(d.file.toLowerCase().indexOf("youtube.com")>-1||d.file.toLowerCase().indexOf("youtu.be")>-1))d.provider="youtube";if(d.streamer&&d.streamer.toLowerCase().indexOf("rtmp://")==0)d.provider="rtmp";if(b.type)d.provider=
b.type.toLowerCase()}if(d.provider=="audio")d.provider="sound";return d};b.utils.getOuterHTML=function(b){if(b.outerHTML)return b.outerHTML;else try{return(new XMLSerializer).serializeToString(b)}catch(d){return""}};b.utils.setOuterHTML=function(b,d){if(b.outerHTML)b.outerHTML=d;else{var k=document.createElement("div");k.innerHTML=d;var o=document.createRange();o.selectNodeContents(k);k=o.extractContents();b.parentNode.insertBefore(k,b);b.parentNode.removeChild(b)}};b.utils.hasFlash=function(){if(typeof navigator.plugins!=
"undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(b){}return!1};b.utils.getPluginName=function(b){b.lastIndexOf("/")>=0&&(b=b.substring(b.lastIndexOf("/")+1,b.length));b.lastIndexOf("-")>=0&&(b=b.substring(0,b.lastIndexOf("-")));b.lastIndexOf(".swf")>=0&&(b=b.substring(0,b.lastIndexOf(".swf")));b.lastIndexOf(".js")>=0&&(b=b.substring(0,b.lastIndexOf(".js")));
return b};b.utils.getPluginVersion=function(b){if(b.lastIndexOf("-")>=0)return b.lastIndexOf(".js")>=0?b.substring(b.lastIndexOf("-")+1,b.lastIndexOf(".js")):b.lastIndexOf(".swf")>=0?b.substring(b.lastIndexOf("-")+1,b.lastIndexOf(".swf")):b.substring(b.lastIndexOf("-")+1);return""};b.utils.getAbsolutePath=function(f,d){if(!b.utils.exists(d))d=document.location.href;if(b.utils.exists(f)){var k;if(b.utils.exists(f)){k=f.indexOf("://");var o=f.indexOf("?");k=k>0&&(o<0||o>k)}else k=void 0;if(k)return f;
k=d.substring(0,d.indexOf("://")+3);var o=d.substring(k.length,d.indexOf("/",k.length+1)),h;f.indexOf("/")===0?h=f.split("/"):(h=d.split("?")[0],h=h.substring(k.length+o.length+1,h.lastIndexOf("/")),h=h.split("/").concat(f.split("/")));for(var j=[],g=0;g<h.length;g++)h[g]&&b.utils.exists(h[g])&&h[g]!="."&&(h[g]==".."?j.pop():j.push(h[g]));return k+o+"/"+j.join("/")}};b.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};b.utils.getPluginPathType=function(f){if(typeof f=="string"){var f=
f.split("?")[0],d=f.indexOf("://");if(d>0)return b.utils.pluginPathType.ABSOLUTE;var k=f.indexOf("/"),f=b.utils.extension(f);if(d<0&&k<0&&(!f||!isNaN(f)))return b.utils.pluginPathType.CDN;return b.utils.pluginPathType.RELATIVE}};b.utils.mapEmpty=function(b){for(var d in b)return!1;return!0};b.utils.mapLength=function(b){var d=0,k;for(k in b)d++;return d};b.utils.log=function(b,d){typeof console!="undefined"&&typeof console.log!="undefined"&&(d?console.log(b,d):console.log(b))};b.utils.css=function(f,
d){if(b.utils.exists(f))for(var k in d)try{if(typeof d[k]!=="undefined"){if(typeof d[k]=="number"&&!(k=="zIndex"||k=="opacity")){if(isNaN(d[k]))continue;d[k]=k.match(/color/i)?"#"+b.utils.strings.pad(d[k].toString(16),6):Math.ceil(d[k])+"px"}f.style[k]=d[k]}}catch(o){}};b.utils.isYouTube=function(b){return b.indexOf("youtube.com")>-1||b.indexOf("youtu.be")>-1};b.utils.transform=function(b,d){b.style.webkitTransform=d;b.style.MozTransform=d;b.style.OTransform=d};b.utils.stretch=function(f,d,k,o,h,
j){if(!(typeof k=="undefined"||typeof o=="undefined"||typeof h=="undefined"||typeof j=="undefined")){var g=k/h,e=o/j;d.style.overflow="hidden";b.utils.transform(d,"");var n={};switch(f.toUpperCase()){case b.utils.stretching.NONE:n.width=h;n.height=j;break;case b.utils.stretching.UNIFORM:g>e?(n.width=h*e,n.height=j*e):(n.width=h*g,n.height=j*g);break;case b.utils.stretching.FILL:g>e?(n.width=h*g,n.height=j*g):(n.width=h*e,n.height=j*e);break;case b.utils.stretching.EXACTFIT:b.utils.transform(d,["scale(",
g,",",e,") translate(0px,0px)"].join("")),n.width=h,n.height=j}n.top=(o-n.height)/2;n.left=(k-n.width)/2;b.utils.css(d,n)}};b.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};b.utils.deepReplaceKeyName=function(f,d,k){switch(b.utils.typeOf(f)){case "array":for(var o=0;o<f.length;o++)f[o]=b.utils.deepReplaceKeyName(f[o],d,k);break;case "object":for(o in f){var h=o.replace(RegExp(d,"g"),k);f[h]=b.utils.deepReplaceKeyName(f[o],d,k);o!=h&&delete f[o]}}return f};b.utils.isInArray=
function(b,d){if(!b||!(b instanceof Array))return!1;for(var k=0;k<b.length;k++)if(d===b[k])return!0;return!1};b.utils.exists=function(b){switch(typeof b){case "string":return b.length>0;case "object":return b!==null;case "undefined":return!1}return!0};b.utils.empty=function(b){if(typeof b.hasChildNodes=="function")for(;b.hasChildNodes();)b.removeChild(b.firstChild)};b.utils.parseDimension=function(b){if(typeof b=="string")if(b==="")return 0;else if(!(b.lastIndexOf("%")>-1))return parseInt(b.replace("px",
""),10);return b};b.utils.getDimensions=function(f){return f&&f.style?{x:b.utils.parseDimension(f.style.left),y:b.utils.parseDimension(f.style.top),width:b.utils.parseDimension(f.style.width),height:b.utils.parseDimension(f.style.height)}:{}};b.utils.timeFormat=function(b){str="00:00";b>0&&(str=Math.floor(b/60)<10?"0"+Math.floor(b/60)+":":Math.floor(b/60)+":",str+=Math.floor(b%60)<10?"0"+Math.floor(b%60):Math.floor(b%60));return str}})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE=
"COMPLETE";b.events.ERROR="ERROR"})(jwplayer);(function(b){b.events.eventdispatcher=function(f){var d,k;this.resetEventListeners=function(){d={};k=[]};this.resetEventListeners();this.addEventListener=function(f,h,j){try{b.utils.exists(d[f])||(d[f]=[]),typeof h=="string"&&eval("listener = "+h),d[f].push({listener:h,count:j})}catch(g){b.utils.log("error",g)}return!1};this.removeEventListener=function(f,h){if(d[f]){try{for(var j=0;j<d[f].length;j++)if(d[f][j].listener.toString()==h.toString()){d[f].splice(j,
1);break}}catch(g){b.utils.log("error",g)}return!1}};this.addGlobalListener=function(d,f){try{typeof d=="string"&&eval("listener = "+d),k.push({listener:d,count:f})}catch(j){b.utils.log("error",j)}return!1};this.removeGlobalListener=function(d){if(k[type]){try{for(var f=0;f<k.length;f++)if(k[f].listener.toString()==d.toString()){k.splice(f,1);break}}catch(j){b.utils.log("error",j)}return!1}};this.sendEvent=function(o,h){b.utils.exists(h)||(h={});f&&b.utils.log(o,h);if(typeof d[o]!="undefined")for(var j=
0;j<d[o].length;j++){try{d[o][j].listener(h)}catch(g){b.utils.log("There was an error while handling a listener: "+g.toString(),d[o][j].listener)}d[o][j]&&(d[o][j].count===1?delete d[o][j]:d[o][j].count>0&&(d[o][j].count-=1))}for(j=0;j<k.length;j++){try{k[j].listener(h)}catch(e){b.utils.log("There was an error while handling a listener: "+e.toString(),k[j].listener)}k[j]&&(k[j].count===1?delete k[j]:k[j].count>0&&(k[j].count-=1))}}}})(jwplayer);(function(b){var f={};b.utils.animations=function(){};
b.utils.animations.transform=function(b,f){b.style.webkitTransform=f;b.style.MozTransform=f;b.style.OTransform=f;b.style.msTransform=f};b.utils.animations.transformOrigin=function(b,f){b.style.webkitTransformOrigin=f;b.style.MozTransformOrigin=f;b.style.OTransformOrigin=f;b.style.msTransformOrigin=f};b.utils.animations.rotate=function(d,f){b.utils.animations.transform(d,["rotate(",f,"deg)"].join(""))};b.utils.cancelAnimation=function(b){delete f[b.id]};b.utils.fadeTo=function(d,k,o,h,j,g){if(!(f[d.id]!=
g&&b.utils.exists(g))&&d.style.opacity!=k){var e=(new Date).getTime();g>e&&setTimeout(function(){b.utils.fadeTo(d,k,o,h,0,g)},g-e);if(d.style.display=="none")d.style.display="block";b.utils.exists(h)||(h=d.style.opacity===""?1:d.style.opacity);if(d.style.opacity==k&&d.style.opacity!==""&&b.utils.exists(g)){if(k===0)d.style.display="none"}else b.utils.exists(g)||(g=e,f[d.id]=g),b.utils.exists(j)||(j=0),e=o>0?(e-g)/(o*1E3):0,e=h+(e>1?1:e)*(k-h),e>1?e=1:e<0&&(e=0),d.style.opacity=e,j>0?(f[d.id]=g+j*
1E3,b.utils.fadeTo(d,k,o,h,0,f[d.id])):setTimeout(function(){b.utils.fadeTo(d,k,o,h,0,g)},10)}}})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(b,d){for(var k=0;k<b.length;k++)if(b[k]==d)return k;return-1};b.utils.arrays.remove=function(f,d){var k=b.utils.arrays.indexOf(f,d);k>-1&&f.splice(k,1)}})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},
flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},
m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(b){function f(d,e){b.utils.exists(e)?b.utils.extend(e,h[d]):e=h[d];return e}function d(d,e){if(j[d.tagName.toLowerCase()]&&!b.utils.exists(e))return j[d.tagName.toLowerCase()](d);else{var e=f("element",e),h={},k;for(k in e)if(k!="length"){var o=d.getAttribute(k);b.utils.exists(o)&&(h[e[k]]=o)}if((k=d.style["#background-color"])&&
!(k=="transparent"||k=="rgba(0, 0, 0, 0)"))h.screencolor=k;return h}}function k(g,e){var e=f("media",e),h=[],j=b.utils.selectors("source",g),k;for(k in j)isNaN(k)||h.push(o(j[k]));j=d(g,e);b.utils.exists(j.file)&&(h[0]={file:j.file});j.levels=h;return j}function o(b,e){var e=f("source",e),h=d(b,e);h.width=h.width?h.width:0;h.bitrate=h.bitrate?h.bitrate:0;return h}b.utils.mediaparser=function(){};var h={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",
preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},j={};b.utils.mediaparser.parseMedia=function(b){return d(b)};j.media=k;j.audio=k;j.source=o;j.video=function(b,d){d=f("video",d);return k(b,d)}})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var d=b.utils.loaderstatus.NEW,
k=new b.events.eventdispatcher;b.utils.extend(this,k);this.load=function(){if(d==b.utils.loaderstatus.NEW){d=b.utils.loaderstatus.LOADING;var o=document.createElement("script");o.onload=function(){d=b.utils.loaderstatus.COMPLETE;k.sendEvent(b.events.COMPLETE)};o.onerror=function(){d=b.utils.loaderstatus.ERROR;k.sendEvent(b.events.ERROR)};o.onreadystatechange=function(){if(o.readyState=="loaded"||o.readyState=="complete")d=b.utils.loaderstatus.COMPLETE,k.sendEvent(b.events.COMPLETE)};document.getElementsByTagName("head")[0].appendChild(o);
o.src=f}};this.getStatus=function(){return d}}})(jwplayer);(function(b){b.utils.selectors=function(f,d){b.utils.exists(d)||(d=document);var f=b.utils.strings.trim(f),k=f.charAt(0);return k=="#"?d.getElementById(f.substr(1)):k=="."?d.getElementsByClassName?d.getElementsByClassName(f.substr(1)):b.utils.selectors.getElementsByTagAndClass("*",f.substr(1)):f.indexOf(".")>0?(k=f.split("."),b.utils.selectors.getElementsByTagAndClass(k[0],k[1])):d.getElementsByTagName(f)};b.utils.selectors.getElementsByTagAndClass=
function(f,d,k){var o=[];b.utils.exists(k)||(k=document);f=k.getElementsByTagName(f);for(k=0;k<f.length;k++)if(b.utils.exists(f[k].className))for(var h=f[k].className.split(" "),j=0;j<h.length;j++)h[j]==d&&o.push(f[k]);return o}})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};b.utils.strings.pad=function(b,d,k){for(k||(k="0");b.length<d;)b=k+b;return b};b.utils.strings.serialize=function(b){return b==null?null:
b=="true"?!0:b=="false"?!1:isNaN(Number(b))||b.length>5||b.length==0?b:Number(b)};b.utils.strings.seconds=function(b){var b=b.replace(",","."),d=b.split(":"),k=0;b.substr(-1)=="s"?k=Number(b.substr(0,b.length-1)):b.substr(-1)=="m"?k=Number(b.substr(0,b.length-1))*60:b.substr(-1)=="h"?k=Number(b.substr(0,b.length-1))*3600:d.length>1?(k=Number(d[d.length-1]),k+=Number(d[d.length-2])*60,d.length==3&&(k+=Number(d[d.length-3])*3600)):k=Number(b);return k};b.utils.strings.xmlAttribute=function(b,d){for(var k=
0;k<b.attributes.length;k++)if(b.attributes[k].name&&b.attributes[k].name.toLowerCase()==d.toLowerCase())return b.attributes[k].value.toString();return""};b.utils.strings.jsonToString=function(f){var d=d||{};if(d&&d.stringify)return d.stringify(f);d=typeof f;if(d!="object"||f===null){if(d!="string")return String(f)}else{var d=[],k=f&&f.constructor==Array,o;for(o in f){var h=f[o];switch(typeof h){case "string":h='"'+h+'"';break;case "object":b.utils.exists(h)&&(h=b.utils.strings.jsonToString(h))}k?
typeof h!="function"&&d.push(String(h)):typeof h!="function"&&d.push('"'+o+'":'+String(h))}return k?"["+String(d)+"]":"{"+String(d)+"}"}}})(jwplayer);(function(b){function f(b){if(["true","false","t","f"].toString().indexOf(b.toLowerCase().replace(" ",""))>=0)return"boolean";else if(o.test(b))return"color";else if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length)return"integer";else if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length)return"float";return"string"}
function d(d,f){if(!b.utils.exists(f))return d;switch(f){case "color":if(d.length>0)return k(d);return null;case "integer":return parseInt(d,10);case "float":return parseFloat(d);case "boolean":if(d.toLowerCase()=="true")return!0;else if(d=="1")return!0;return!1}return d}function k(b){switch(b.toLowerCase()){case "blue":return parseInt("0000FF",16);case "green":return parseInt("00FF00",16);case "red":return parseInt("FF0000",16);case "cyan":return parseInt("00FFFF",16);case "magenta":return parseInt("FF00FF",
16);case "yellow":return parseInt("FFFF00",16);case "black":break;case "white":return parseInt("FFFFFF",16);default:return b=b.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),b.length==3&&(b=b.charAt(0)+b.charAt(0)+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2)),parseInt(b,16)}return parseInt("000000",16)}var o=RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);b.utils.typechecker=function(h,j){j=!b.utils.exists(j)?f(h):j;return d(h,j)}})(jwplayer);(function(b){b.utils.parsers=function(){};b.utils.parsers.localName=function(b){return b?
b.localName?b.localName:b.baseName?b.baseName:"":""};b.utils.parsers.textContent=function(b){return b?b.textContent?b.textContent:b.text?b.text:"":""}})(jwplayer);(function(b){b.utils.parsers.jwparser=function(){};b.utils.parsers.jwparser.PREFIX="jwplayer";b.utils.parsers.jwparser.parseEntry=function(f,d){for(var k=0;k<f.childNodes.length;k++)if(f.childNodes[k].prefix==b.utils.parsers.jwparser.PREFIX&&(d[b.utils.parsers.localName(f.childNodes[k])]=b.utils.strings.serialize(b.utils.parsers.textContent(f.childNodes[k]))),
!d.file&&String(d.link).toLowerCase().indexOf("youtube")>-1)d.file=d.link;return d};b.utils.parsers.jwparser.getProvider=function(f){if(f.type)return f.type;else if(f.file.indexOf("youtube.com/w")>-1||f.file.indexOf("youtube.com/v")>-1||f.file.indexOf("youtu.be/")>-1)return"youtube";else if(f.streamer&&f.streamer.indexOf("rtmp")==0)return"rtmp";else if(f.streamer&&f.streamer.indexOf("http")==0)return"http";else if(f=b.utils.strings.extension(f.file),extensions.hasOwnProperty(f))return extensions[f];
return""}})(jwplayer);(function(b){b.utils.parsers.mediaparser=function(){};b.utils.parsers.mediaparser.PREFIX="media";b.utils.parsers.mediaparser.parseGroup=function(f,d){for(var k=!1,o=0;o<f.childNodes.length;o++)if(f.childNodes[o].prefix==b.utils.parsers.mediaparser.PREFIX&&b.utils.parsers.localName(f.childNodes[o]))switch(b.utils.parsers.localName(f.childNodes[o]).toLowerCase()){case "content":if(!k)d.file=b.utils.strings.xmlAttribute(f.childNodes[o],"url");if(b.utils.strings.xmlAttribute(f.childNodes[o],
"duration"))d.duration=b.utils.strings.seconds(b.utils.strings.xmlAttribute(f.childNodes[o],"duration"));if(b.utils.strings.xmlAttribute(f.childNodes[o],"start"))d.start=b.utils.strings.seconds(b.utils.strings.xmlAttribute(f.childNodes[o],"start"));f.childNodes[o].childNodes&&f.childNodes[o].childNodes.length>0&&(d=b.utils.parsers.mediaparser.parseGroup(f.childNodes[o],d));if(b.utils.strings.xmlAttribute(f.childNodes[o],"width")||b.utils.strings.xmlAttribute(f.childNodes[o],"bitrate")||b.utils.strings.xmlAttribute(f.childNodes[o],
"url")){if(!d.levels)d.levels=[];d.levels.push({width:b.utils.strings.xmlAttribute(f.childNodes[o],"width"),bitrate:b.utils.strings.xmlAttribute(f.childNodes[o],"bitrate"),file:b.utils.strings.xmlAttribute(f.childNodes[o],"url")})}break;case "title":d.title=b.utils.parsers.textContent(f.childNodes[o]);break;case "description":d.description=b.utils.parsers.textContent(f.childNodes[o]);break;case "keywords":d.tags=b.utils.parsers.textContent(f.childNodes[o]);break;case "thumbnail":d.image=b.utils.strings.xmlAttribute(f.childNodes[o],
"url");break;case "credit":d.author=b.utils.parsers.textContent(f.childNodes[o]);break;case "player":var h=f.childNodes[o].url;if(h.indexOf("youtube.com")>=0||h.indexOf("youtu.be")>=0)k=!0,d.file=b.utils.strings.xmlAttribute(f.childNodes[o],"url");break;case "group":b.utils.parsers.mediaparser.parseGroup(f.childNodes[o],d)}return d}})(jwplayer);(function(b){function f(d){for(var f={},o=0;o<d.childNodes.length;o++)if(b.utils.parsers.localName(d.childNodes[o]))switch(b.utils.parsers.localName(d.childNodes[o]).toLowerCase()){case "enclosure":f.file=
b.utils.strings.xmlAttribute(d.childNodes[o],"url");break;case "title":f.title=b.utils.parsers.textContent(d.childNodes[o]);break;case "pubdate":f.date=b.utils.parsers.textContent(d.childNodes[o]);break;case "description":f.description=b.utils.parsers.textContent(d.childNodes[o]);break;case "link":f.link=b.utils.parsers.textContent(d.childNodes[o]);break;case "category":f.tags?f.tags+=b.utils.parsers.textContent(d.childNodes[o]):f.tags=b.utils.parsers.textContent(d.childNodes[o])}f=b.utils.parsers.mediaparser.parseGroup(d,
f);f=b.utils.parsers.jwparser.parseEntry(d,f);return new b.html5.playlistitem(f)}b.utils.parsers.rssparser=function(){};b.utils.parsers.rssparser.parse=function(d){for(var k=[],o=0;o<d.childNodes.length;o++)if(b.utils.parsers.localName(d.childNodes[o]).toLowerCase()=="channel")for(var h=0;h<d.childNodes[o].childNodes.length;h++)b.utils.parsers.localName(d.childNodes[o].childNodes[h]).toLowerCase()=="item"&&k.push(f(d.childNodes[o].childNodes[h]));return k}})(jwplayer);(function(b){var f={},d={};b.plugins=
function(){};b.plugins.loadPlugins=function(k,o){d[k]=new b.plugins.pluginloader(new b.plugins.model(f),o);return d[k]};b.plugins.registerPlugin=function(k,o,h){var j=b.utils.getPluginName(k);if(f[j])f[j].registerPlugin(k,o,h);else{b.utils.log("A plugin ("+k+") was registered with the player that was not loaded. Please check your configuration.");for(var g in d)d[g].pluginFailed()}}})(jwplayer);(function(b){b.plugins.model=function(f){this.addPlugin=function(d){var k=b.utils.getPluginName(d);f[k]||
(f[k]=new b.plugins.plugin(d));return f[k]}}})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(f){function d(){switch(b.utils.getPluginPathType(f)){case b.utils.pluginPathType.ABSOLUTE:return f;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(f,window.location.href);case b.utils.pluginPathType.CDN:var d=b.utils.getPluginName(f),e=b.utils.getPluginVersion(f);return h+"/"+b.version.split(".")[0]+"/"+d+
"/"+d+(e!==""?"-"+e:"")+".js"}}function k(){n=setTimeout(function(){j=b.utils.loaderstatus.COMPLETE;w.sendEvent(b.events.COMPLETE)},1E3)}function o(){j=b.utils.loaderstatus.ERROR;w.sendEvent(b.events.ERROR)}var h="http://plugins.longtailvideo.com",j=b.utils.loaderstatus.NEW,g,e,n,w=new b.events.eventdispatcher;b.utils.extend(this,w);this.load=function(){if(j==b.utils.loaderstatus.NEW)if(f.lastIndexOf(".swf")>0)g=f,j=b.utils.loaderstatus.COMPLETE,w.sendEvent(b.events.COMPLETE);else{j=b.utils.loaderstatus.LOADING;
var e=new b.utils.scriptloader(d());e.addEventListener(b.events.COMPLETE,k);e.addEventListener(b.events.ERROR,o);e.load()}};this.registerPlugin=function(d,f,h){n&&(clearTimeout(n),n=void 0);f&&h?(g=h,e=f):typeof f=="string"?g=f:typeof f=="function"?e=f:!f&&!h&&(g=d);j=b.utils.loaderstatus.COMPLETE;w.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return j};this.getPluginName=function(){return b.utils.getPluginName(f)};this.getFlashPath=function(){if(g)switch(b.utils.getPluginPathType(g)){case b.utils.pluginPathType.ABSOLUTE:return g;
case b.utils.pluginPathType.RELATIVE:if(f.lastIndexOf(".swf")>0)return b.utils.getAbsolutePath(g,window.location.href);return b.utils.getAbsolutePath(g,d());case b.utils.pluginPathType.CDN:if(g.indexOf("-")>-1)return g+"h";return g+"-h"}return null};this.getJS=function(){return e};this.getPluginmode=function(){if(typeof g!="undefined"&&typeof e!="undefined")return b.plugins.pluginmodes.HYBRID;else if(typeof g!="undefined")return b.plugins.pluginmodes.FLASH;else if(typeof e!="undefined")return b.plugins.pluginmodes.JAVASCRIPT};
this.getNewInstance=function(b,d,f){return new e(b,d,f)};this.getURL=function(){return f}}})(jwplayer);(function(b){b.plugins.pluginloader=function(f,d){function k(){if(!g)g=!0,j=b.utils.loaderstatus.COMPLETE,e.sendEvent(b.events.COMPLETE)}function o(){if(!g){var d=0;for(plugin in h){var e=h[plugin].getStatus();(e==b.utils.loaderstatus.LOADING||e==b.utils.loaderstatus.NEW)&&d++}d==0&&k()}}var h={},j=b.utils.loaderstatus.NEW,g=!1,e=new b.events.eventdispatcher;b.utils.extend(this,e);this.setupPlugins=
function(b,d,e){var f={length:0,plugins:{}},g={length:0,plugins:{}},j;for(j in h){var k=h[j].getPluginName();if(h[j].getFlashPath())f.plugins[h[j].getFlashPath()]=d.plugins[j],f.plugins[h[j].getFlashPath()].pluginmode=h[j].getPluginmode(),f.length++;if(h[j].getJS()){var o=document.createElement("div");o.id=b.id+"_"+k;o.style.position="absolute";o.style.zIndex=g.length+10;g.plugins[k]=h[j].getNewInstance(b,d.plugins[j],o);g.length++;typeof g.plugins[k].resize!="undefined"&&(b.onReady(e(g.plugins[k],
o,!0)),b.onResize(e(g.plugins[k],o)))}}b.plugins=g.plugins;return f};this.load=function(){j=b.utils.loaderstatus.LOADING;for(var e in d)b.utils.exists(e)&&(h[e]=f.addPlugin(e),h[e].addEventListener(b.events.COMPLETE,o),h[e].addEventListener(b.events.ERROR,o));for(e in h)h[e].load();o()};this.pluginFailed=function(){k()};this.getStatus=function(){return j}}})(jwplayer);(function(b){var f=[];b.api=function(d){function f(b,d){return function(e,f,g,h){if(b.renderingMode=="flash"||b.renderingMode=="html5"){var j;
f?(z[e]=f,j="jwplayer('"+b.id+"').callback('"+e+"')"):!f&&z[e]&&delete z[e];n.jwDockSetButton(e,j,g,h)}return d}}function o(b){return function(d){var e=d.newstate,d=d.oldstate;if(e==b){var f=g[e];if(f)for(var h=0;h<f.length;h++)typeof f[h]=="function"&&f[h].call(this,{oldstate:d,newstate:e})}}}function h(b,d){return function(f){if(b==f.component){var g=e[b][d];if(g)for(var h=0;h<g.length;h++)typeof g[h]=="function"&&g[h].call(this,f)}}}this.container=d;this.id=d.id;var j={},g={},e={},n=void 0,w=!1,
u=[],s=b.utils.getOuterHTML(d),x={},z={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};this.getPlugin=function(d){var e=this,g={};return d=="dock"?b.utils.extend(g,{setButton:f(e,g),show:function(){e.callInternal("jwDockShow");return g},hide:function(){e.callInternal("jwDockHide");return g},onShow:function(d){e.componentListener("dock",b.api.events.JWPLAYER_COMPONENT_SHOW,d);return g},onHide:function(d){e.componentListener("dock",
b.api.events.JWPLAYER_COMPONENT_HIDE,d);return g}}):d=="controlbar"?b.utils.extend(g,{show:function(){e.callInternal("jwControlbarShow");return g},hide:function(){e.callInternal("jwControlbarHide");return g},onShow:function(d){e.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_SHOW,d);return g},onHide:function(d){e.componentListener("controlbar",b.api.events.JWPLAYER_COMPONENT_HIDE,d);return g}}):d=="display"?b.utils.extend(g,{show:function(){e.callInternal("jwDisplayShow");return g},
hide:function(){e.callInternal("jwDisplayHide");return g},onShow:function(d){e.componentListener("display",b.api.events.JWPLAYER_COMPONENT_SHOW,d);return g},onHide:function(d){e.componentListener("display",b.api.events.JWPLAYER_COMPONENT_HIDE,d);return g}}):this.plugins[d]};this.callback=function(b){if(z[b])return z[b]()};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};
this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var d=this.callInternal("jwGetPlaylist");this.renderingMode=="flash"&&b.utils.deepReplaceKeyName(d,"__dot__",".");for(var e=0;e<d.length;e++)if(!b.utils.exists(d[e].index))d[e].index=e;return d};this.getPlaylistItem=function(d){b.utils.exists(d)||(d=this.getCurrentItem());return this.getPlaylist()[d]};
this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(d){b.utils.exists(d)?this.callInternal("jwSetFullscreen",d):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"));return this};
this.setMute=function(d){b.utils.exists(d)?this.callInternal("jwSetMute",d):this.callInternal("jwSetMute",!this.callInternal("jwGetMute"));return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(b){this.callInternal("jwLoad",b);return this};this.playlistItem=function(b){this.callInternal("jwPlaylistItem",b);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");
return this};this.resize=function(b,d){this.renderingMode=="html5"?n.jwResize(b,d):(this.container.width=b,this.container.height=d);return this};this.play=function(d){typeof d=="undefined"?(d=this.getState(),d==b.api.events.state.PLAYING||d==b.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",d);return this};this.pause=function(d){typeof d=="undefined"?(d=this.getState(),d==b.api.events.state.PLAYING||d==b.api.events.state.BUFFERING?this.callInternal("jwPause"):
this.callInternal("jwPlay")):this.callInternal("jwPause",d);return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(b){this.callInternal("jwSeek",b);return this};this.setVolume=function(b){this.callInternal("jwSetVolume",b);return this};this.onBufferChange=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,d)};this.onBufferFull=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,d)};this.onError=function(d){return this.eventListener(b.api.events.JWPLAYER_ERROR,
d)};this.onFullscreen=function(d){return this.eventListener(b.api.events.JWPLAYER_FULLSCREEN,d)};this.onMeta=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_META,d)};this.onMute=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_MUTE,d)};this.onPlaylist=function(d){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,d)};this.onPlaylistItem=function(d){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,d)};this.onReady=function(d){return this.eventListener(b.api.events.API_READY,
d)};this.onResize=function(d){return this.eventListener(b.api.events.JWPLAYER_RESIZE,d)};this.onComplete=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,d)};this.onSeek=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_SEEK,d)};this.onTime=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_TIME,d)};this.onVolume=function(d){return this.eventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,d)};this.onBuffer=function(d){return this.stateListener(b.api.events.state.BUFFERING,
d)};this.onPause=function(d){return this.stateListener(b.api.events.state.PAUSED,d)};this.onPlay=function(d){return this.stateListener(b.api.events.state.PLAYING,d)};this.onIdle=function(d){return this.stateListener(b.api.events.state.IDLE,d)};this.remove=function(){j={};u=[];b.utils.getOuterHTML(this.container)!=s&&b.api.destroyPlayer(this.id,s)};this.setup=function(d){if(b.embed){var e=this.id;this.remove();e=b(e);e.config=d;return new b.embed(e)}return this};this.registerPlugin=function(d,e,f){b.plugins.registerPlugin(d,
e,f)};this.setPlayer=function(b,d){n=b;this.renderingMode=d};this.stateListener=function(d,e){g[d]||(g[d]=[],this.eventListener(b.api.events.JWPLAYER_PLAYER_STATE,o(d)));g[d].push(e);return this};this.componentListener=function(b,d,f){e[b]||(e[b]={});e[b][d]||(e[b][d]=[],this.eventListener(d,h(b,d)));e[b][d].push(f);return this};this.addInternalListener=function(b,d){b.jwAddEventListener(d,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+d+'", dat); }')};this.eventListener=function(b,d){j[b]||
(j[b]=[],n&&w&&this.addInternalListener(n,b));j[b].push(d);return this};this.dispatchEvent=function(d,e){if(j[d]){var f;f=b.utils.extend({},e);d==b.api.events.JWPLAYER_FULLSCREEN&&!f.fullscreen?(f.fullscreen=f.message=="true"?!0:!1,delete f.message):typeof f.data=="object"&&(f=b.utils.extend(f,f.data),delete f.data);var g=["position","duration","offset"],h;for(h in g)f[g[h]]&&(f[g[h]]=Math.round(f[g[h]]*1E3)/1E3);for(g=0;g<j[d].length;g++)typeof j[d][g]=="function"&&j[d][g].call(this,f)}};this.callInternal=
function(d,e){if(w){if(typeof n!="undefined"&&typeof n[d]=="function")return b.utils.exists(e)?n[d](e):n[d]();return null}else u.push({method:d,parameters:e})};this.playerReady=function(d){w=!0;n||this.setPlayer(document.getElementById(d.id));this.container=document.getElementById(this.id);for(var e in j)this.addInternalListener(n,e);this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,function(){x={}});this.eventListener(b.api.events.JWPLAYER_MEDIA_META,function(d){b.utils.extend(x,d.metadata)});
for(this.dispatchEvent(b.api.events.API_READY);u.length>0;)d=u.shift(),this.callInternal(d.method,d.parameters)};this.getItemMeta=function(){return x};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};return this};b.api.selectPlayer=function(d){var f;b.utils.exists(d)||(d=0);d.nodeType?f=d:typeof d=="string"&&(f=document.getElementById(d));if(f)return(d=b.api.playerById(f.id))?d:b.api.addPlayer(new b.api(f));else if(typeof d=="number")return b.getPlayers()[d];return null};
b.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",
JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};b.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};b.api.playerById=function(b){for(var k=0;k<f.length;k++)if(f[k].id==
b)return f[k];return null};b.api.addPlayer=function(b){for(var k=0;k<f.length;k++)if(f[k]==b)return b;f.push(b);return b};b.api.destroyPlayer=function(d,k){for(var o=-1,h=0;h<f.length;h++)f[h].id==d&&(o=h);if(o>=0){h=document.getElementById(f[o].id);document.getElementById(f[o].id+"_wrapper")&&(h=document.getElementById(f[o].id+"_wrapper"));if(h)if(k)b.utils.setOuterHTML(h,k);else{var j=document.createElement("div"),g=h.id;h.id.indexOf("_wrapper")==h.id.length-8&&(newID=h.id.substring(0,h.id.length-
8));j.setAttribute("id",g);h.parentNode.replaceChild(j,h)}f.splice(o,1)}return null};b.getPlayers=function(){return f.slice(0)}})(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:void 0;playerReady=function(b){var f=jwplayer.api.playerById(b.id);f?f.playerReady(b):jwplayer.api.selectPlayer(b.id).playerReady(b);_userPlayerReady&&_userPlayerReady.call(this,b)};(function(b){function f(){if(!document.body)return setTimeout(f,15);for(var d=b.utils.selectors.getElementsByTagAndClass("video",
"jwplayer"),k=0;k<d.length;k++)b(d[k].id).setup({})}b.embed=function(d){function f(){if(j.getStatus()==b.utils.loaderstatus.COMPLETE){for(var g=0;g<h.modes.length;g++)if(h.modes[g].type&&b.embed[h.modes[g].type]){var e=h;h.modes[g].config&&(e=b.utils.extend(b.utils.clone(h),h.modes[g].config));e=new b.embed[h.modes[g].type](document.getElementById(d.id),h.modes[g],e,j,d);if(e.supportsConfig()){e.embed();var g=d,e=h.events,k=void 0;for(k in e)typeof g[k]=="function"&&g[k].call(g,e[k]);return d}}b.utils.log("No suitable players found");
new b.embed.logo(b.utils.extend({hide:!0},h.components.logo),"none",d.id)}}var o=b.utils.mediaparser.parseMedia(d.container),h=new b.embed.config(b.utils.extend({width:400,height:300,components:{controlbar:{position:"over"}}},o,d.config),this),j=b.plugins.loadPlugins(d.id,h.plugins);j.addEventListener(b.events.COMPLETE,f);j.addEventListener(b.events.ERROR,f);j.load();return d};f()})(jwplayer);(function(b){function f(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}
function d(b){if(typeof b=="string"&&(parseInt(b).toString()==b||b.toLowerCase().indexOf("px")>-1))return parseInt(b);return b}function k(d,f,e,h){b.utils.typeOf(d[f])!="object"&&(d[f]={});var k=d[f][e];b.utils.typeOf(k)!="object"&&(d[f][e]=k={});h&&(f=="plugins"?(f=b.utils.getPluginName(e),k[h]=d[f+"."+h],delete d[f+"."+h]):(k[h]=d[e+"."+h],delete d[e+"."+h]))}var o={players:"modes",autoplay:"autostart"},h=["playlist","dock","controlbar","logo","display"];b.embed.deserialize=function(d){var f={};
switch(b.utils.typeOf(d.plugins)){case "object":for(var e in d.plugins)f[b.utils.getPluginName(e)]=e;break;case "string":e=d.plugins.split(",");for(var n=0;n<e.length;n++)f[b.utils.getPluginName(e[n])]=e[n]}for(var o in f)k(d,"plugins",f[o]);for(var u in d)u.indexOf(".")>-1&&(u=u.split("."),o=u[0],u=u[1],b.utils.isInArray(h,o)?k(d,"components",o,u):f[o]&&k(d,"plugins",f[o],u));return d};b.embed.config=function(j){var j=b.utils.extend({},j),g,e=j.playlist,k=!1;if(k=e instanceof Array||typeof e=="object"&&
!e.position&&!e.size)g=j.playlist,delete j.playlist;j=b.embed.deserialize(j);j.height=d(j.height);j.width=d(j.width);if(typeof j.plugins=="string"){e=j.plugins.split(",");if(typeof j.plugins!="object")j.plugins={};for(k=0;k<e.length;k++){var w=b.utils.getPluginName(e[k]);typeof j[w]=="object"?(j.plugins[e[k]]=j[w],delete j[w]):j.plugins[e[k]]={}}}for(e=0;e<h.length;e++){k=h[e];if(b.utils.exists(j[k]))typeof j[k]!="object"?(j.components[k]||(j.components[k]={}),k=="logo"?j.components[k].file=j[k]:
j.components[k].position=j[k]):(j.components[k]||(j.components[k]={}),b.utils.extend(j.components[k],j[k])),delete j[k];if(typeof j[k+"size"]!="undefined")j.components[k]||(j.components[k]={}),j.components[k].size=j[k+"size"],delete j[k+"size"]}if(typeof j.icons!="undefined"){if(!j.components.display)j.components.display={};j.components.display.icons=j.icons;delete j.icons}for(var u in o)j[u]&&(j[o[u]]||(j[o[u]]=j[u]),delete j[u]);var s;j.flashplayer&&!j.modes?(s=f(),s[0].src=j.flashplayer,delete j.flashplayer):
j.modes?(typeof j.modes=="string"?(s=f(),s[0].src=j.modes):j.modes instanceof Array?s=j.modes:typeof j.modes=="object"&&j.modes.type&&(s=[j.modes]),delete j.modes):s=f();j.modes=s;if(g)j.playlist=g;return j}})(jwplayer);(function(b){b.embed.download=function(f,d,k,o,h){function j(d,e,f){if(f)return!1;f=["image","sound","youtube","http"];if(e&&f.toString().indexOf(e)>-1)return!0;if(!e||e&&e=="video")if((d=b.utils.extension(d))&&b.utils.extensionmap[d])return!0;return!1}this.embed=function(){b.utils.extend({},
k);var d={},e=k.width?k.width:480;typeof e!="number"&&(e=parseInt(e,10));var j=k.height?k.height:320;typeof j!="number"&&(j=parseInt(j,10));var o,u,s;s={};k.playlist&&k.playlist.length?(s.file=k.playlist[0].file,u=k.playlist[0].image,s.levels=k.playlist[0].levels):(s.file=k.file,u=k.image,s.levels=k.levels);if(s.file)o=s.file;else if(s.levels&&s.levels.length)o=s.levels[0].file;s=o?"pointer":"auto";var x={display:{style:{cursor:s,width:e,height:j,backgroundColor:"#000",position:"relative",textDecoration:"none",
border:"none",display:"block"}},display_icon:{style:{cursor:s,position:"absolute",display:o?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},
display_iconBackground:{style:{cursor:s,position:"absolute",display:o?"block":"none",top:(j-50)/2,left:(e-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:e,height:j,display:u?"block":"none",
position:"absolute",cursor:s,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};s=function(d,e,g){d=document.createElement(d);d.id=g?g:f.id+"_jwplayer_"+e;b.utils.css(d,x[e].style);return d};d.display=s("a","display",f.id);o&&d.display.setAttribute("href",b.utils.getAbsolutePath(o));d.display_image=s("img","display_image");d.display_image.setAttribute("alt","Click to download...");u&&d.display_image.setAttribute("src",b.utils.getAbsolutePath(u));d.display_icon=s("div",
"display_icon");d.display_iconBackground=s("div","display_iconBackground");d.display.appendChild(d.display_image);d.display_iconBackground.appendChild(d.display_icon);d.display.appendChild(d.display_iconBackground);_css=b.utils.css;_hide=function(b){_css(b,{display:"none"})};d.display_image.onerror=function(){_hide(d.display_image)};d.display_image.onload=function(){_imageWidth=d.display_image.naturalWidth;_imageHeight=d.display_image.naturalHeight;b.utils.stretch(b.utils.stretching.UNIFORM,d.display_image,
e,j,_imageWidth,_imageHeight)};f.parentNode.replaceChild(d.display,f);d.display.appendChild(new b.embed.logo(k.components.logo,"download",f.id));h.container=document.getElementById(h.id);h.setPlayer(d.display,"download")};this.supportsConfig=function(){if(k){var d=b.utils.getFirstPlaylistItemFromConfig(k);if(typeof d.file=="undefined"&&typeof d.levels=="undefined")return!0;else if(d.file)return j(d.file,d.provider,d.playlistfile);else if(d.levels&&d.levels.length)for(var e=0;e<d.levels.length;e++)if(d.levels[e].file&&
j(d.levels[e].file,d.provider,d.playlistfile))return!0}else return!0}}})(jwplayer);(function(b){b.embed.flash=function(f,d,k,o,h){function j(b,d,e){var f=document.createElement("param");f.setAttribute("name",d);f.setAttribute("value",e);b.appendChild(f)}function g(d,e,f){return function(){f&&document.getElementById(h.id+"_wrapper").appendChild(e);var g=document.getElementById(h.id).getPluginConfig("display");d.resize(g.width,g.height);b.utils.css(e,{left:g.x,top:g.y})}}function e(b,d){if(b[d]){var e=
b[d],f;for(f in e){var g=e[f];if(typeof g=="string")b[f]||(b[f]=g);else for(var h in g)b[f+"."+h]||(b[f+"."+h]=g[h])}delete b[d]}}function n(d){if(!d)return{};var e={},f=[],g;for(g in d){var h=b.utils.getPluginName(g),j=d[g];f.push(g);for(var k in j)e[h+"."+k]=j[k]}e.plugins=f.join(",");return e}function w(d){var e=d.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",f;for(f in d)e+=typeof d[f]=="object"?f+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(d[f]))+
"&":f+"="+encodeURIComponent(d[f])+"&";return e.substring(0,e.length-1)}this.embed=function(){k.id=h.id;var u,s=b.utils.extend({},k),x=s.width,z=s.height;f.id+"_wrapper"==f.parentNode.id?document.getElementById(f.id+"_wrapper"):(u=document.createElement("div"),u.id=f.id+"_wrapper",b.utils.wrap(f,u),b.utils.css(u,{position:"relative",width:x,height:z}));u=o.setupPlugins(h,s,g);u.length>0?b.utils.extend(s,n(u.plugins)):delete s.plugins;u=["height","width","modes","events"];for(x=0;x<u.length;x++)delete s[u[x]];
u="opaque";if(s.wmode)u=s.wmode;e(s,"components");e(s,"providers");if(typeof s["dock.position"]!="undefined"&&s["dock.position"].toString().toLowerCase()=="false")s.dock=s["dock.position"],delete s["dock.position"];b.utils.isIE()?(x='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="#000000" width="100%" height="100%" id="'+f.id+'" name="'+f.id+'" tabindex=0"">',x+='<param name="movie" value="'+d.src+'">',x+='<param name="allowfullscreen" value="true">',x+='<param name="allowscriptaccess" value="always">',
x+='<param name="seamlesstabbing" value="true">',x+='<param name="wmode" value="'+u+'">',x+='<param name="flashvars" value="'+w(s)+'">',x+="</object>",b.utils.setOuterHTML(f,x),s=document.getElementById(f.id)):(x=document.createElement("object"),x.setAttribute("type","application/x-shockwave-flash"),x.setAttribute("data",d.src),x.setAttribute("width","100%"),x.setAttribute("height","100%"),x.setAttribute("bgcolor","#000000"),x.setAttribute("id",f.id),x.setAttribute("name",f.id),x.setAttribute("tabindex",
0),j(x,"allowfullscreen","true"),j(x,"allowscriptaccess","always"),j(x,"seamlesstabbing","true"),j(x,"wmode",u),j(x,"flashvars",w(s)),f.parentNode.replaceChild(x,f),s=x);h.container=s;h.setPlayer(s,"flash")};this.supportsConfig=function(){if(b.utils.hasFlash())if(k){var d=b.utils.getFirstPlaylistItemFromConfig(k);if(typeof d.file=="undefined"&&typeof d.levels=="undefined")return!0;else if(d.file)return flashCanPlay(d.file,d.provider);else if(d.levels&&d.levels.length)for(var e=0;e<d.levels.length;e++)if(d.levels[e].file&&
flashCanPlay(d.levels[e].file,d.provider))return!0}else return!0;return!1};flashCanPlay=function(d,e){var f=["video","http","sound","image"];if(e&&f.toString().indexOf(e<0))return!0;f=b.utils.extension(d);if(!f)return!0;if(b.utils.exists(b.utils.extensionmap[f])&&!b.utils.exists(b.utils.extensionmap[f].flash))return!1;return!0}}})(jwplayer);(function(b){b.embed.html5=function(f,d,k,o,h){function j(b,d,h){return function(){var j=document.getElementById(f.id+"_displayarea");h&&j.appendChild(d);j=j.style;
b.resize(parseInt(j.width.replace("px","")),parseInt(j.height.replace("px","")));d.left=j.left;d.top=j.top}}this.embed=function(){if(b.html5){o.setupPlugins(h,k,j);f.innerHTML="";for(var d=b.utils.extend({screencolor:"0x000000"},k),e=["plugins","modes","events"],n=0;n<e.length;n++)delete d[e[n]];if(d.levels&&!d.sources)d.sources=k.levels;if(d.skin&&d.skin.toLowerCase().indexOf(".zip")>0)d.skin=d.skin.replace(/\.zip/i,".xml");d=new (b.html5(f).setup)(d);h.container=document.getElementById(h.id);h.setPlayer(d,
"html5")}else return null};this.supportsConfig=function(){if(b.vid.canPlayType)if(k){var d=b.utils.getFirstPlaylistItemFromConfig(k);if(typeof d.file=="undefined"&&typeof d.levels=="undefined")return!0;else if(d.file)return html5CanPlay(b.vid,d.file,d.provider,d.playlistfile);else if(d.levels&&d.levels.length)for(var e=0;e<d.levels.length;e++)if(d.levels[e].file&&html5CanPlay(b.vid,d.levels[e].file,d.provider,d.playlistfile))return!0}else return!0;return!1};html5CanPlay=function(d,e,f,h){if(h)return!1;
if(f&&f=="youtube")return!0;if(f&&f!="video"&&f!="http"&&f!="sound")return!1;e=b.utils.extension(e);if(!b.utils.exists(e)||!b.utils.exists(b.utils.extensionmap[e]))return!0;if(!b.utils.exists(b.utils.extensionmap[e].html5))return!1;if(b.utils.isLegacyAndroid()&&e.match(/m4v|mp4/))return!0;return browserCanPlay(d,b.utils.extensionmap[e].html5)};browserCanPlay=function(b,d){if(!d)return!0;return b.canPlayType(d)?!0:d=="audio/mp3"&&navigator.userAgent.match(/safari/i)?b.canPlayType("audio/mpeg"):!1}}})(jwplayer);
(function(b){b.embed.logo=function(f,d,k){function o(b){typeof b!="undefined"&&(b.preventDefault(),b.stopPropagation());n.link&&window.open(n.link,"_blank")}function h(){if(n.link)e.style.opacity=n.out}function j(){if(n.hide)e.style.opacity=n.over}var g={prefix:"http://l.longtailvideo.com/"+d+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:5,hide:!1,position:"bottom-left"};_css=b.utils.css;var e,n;(function(){if(g.prefix){var d=b.version.split(/\W/).splice(0,
2).join("/");g.prefix.indexOf(d)<0&&(g.prefix+=d+"/")}n=b.utils.extend({},g)})();(function(){e=document.createElement("img");e.id=k+"_jwplayer_logo";e.style.display="none";e.onload=function(){var b=_css,d=e,f={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};f.display=n.hide?"none":"block";var g=n.position.toLowerCase().split("-"),j;for(j in g)f[g[j]]=n.margin;b(d,f);h()};if(n.file)e.src=n.file.indexOf("http://")===0?n.file:n.prefix+n.file})();(function(){n.link?
(e.onmouseover=j,e.onmouseout=h,e.onclick=o):this.mouseEnabled=!1})();if(n.file)return e}})(jwplayer);(function(b){b.html5=function(f){this.setup=function(d){b.utils.extend(this,new b.html5.api(f,d));return this};return this}})(jwplayer);(function(b){var f=b.utils,d=f.css;b.html5.view=function(k,o,h){function j(){r=document.createElement("div");r.id=D.id;r.className=D.className;_videowrapper=document.createElement("div");_videowrapper.id=r.id+"_video_wrapper";D.id=r.id+"_video";var b=d,e=r,g=y.height,
h=y.width,j;j=B.skin.getComponentSettings("display")&&B.skin.getComponentSettings("display").backgroundcolor?B.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16);b(e,{position:"relative",height:g,width:h,padding:0,backgroundColor:j,zIndex:0});d(D,{width:y.width,height:y.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});d(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});f.wrap(D,r);f.wrap(D,_videowrapper);F=document.createElement("div");
F.id=r.id+"_displayarea";r.appendChild(F)}function g(){for(var b=0;b<y.plugins.order.length;b++){var d=y.plugins.order[b];if(f.exists(y.plugins.object[d].getDisplayElement))y.plugins.object[d].height=f.parseDimension(y.plugins.object[d].getDisplayElement().style.height),y.plugins.object[d].width=f.parseDimension(y.plugins.object[d].getDisplayElement().style.width),y.plugins.config[d].currentPosition=y.plugins.config[d].position}n()}function e(){d(F,{display:y.getMedia().hasChrome()?"none":"block"})}
function n(){var b=y.getMedia()?y.getMedia().getDisplayElement():null;if(f.exists(b)){O!=b&&(O&&O.parentNode&&O.parentNode.replaceChild(b,O),O=b);for(b=0;b<y.plugins.order.length;b++){var d=y.plugins.order[b];if(f.exists(y.plugins.object[d].getDisplayElement))y.plugins.config[d].currentPosition=y.plugins.config[d].position}}u(y.width,y.height)}function w(d){switch(d.keyCode){case 27:B.jwGetFullscreen()&&B.jwSetFullscreen(!1);break;case 32:B.jwGetState()!=b.api.events.state.IDLE&&B.jwGetState()!=b.api.events.state.PAUSED?
B.jwPause():B.jwPlay()}}function u(b,e){if(r.style.display!="none"){var f=[].concat(y.plugins.order);f.reverse();L=f.length+2;if(y.fullscreen)(!navigator||!(navigator.vendor&&navigator.vendor.indexOf("Apple")==0))&&s(q,f,!0);else if(y.width=b,y.height=e,E=b,I=e,d(F,{top:0,bottom:0,left:0,right:0,width:b,height:e,position:"relative"}),d(r,{height:I,width:E}),f=s(x,f),f.length>0){L+=f.length;var g=f.indexOf("playlist"),h=f.indexOf("controlbar");g>=0&&h>=0&&(f[g]=f.splice(h,1,f[g])[0]);s(z,f,!0)}C()}}
function s(e,g,h){for(var j=[],k=0;k<g.length;k++){var n=g[k];if(f.exists(y.plugins.object[n].getDisplayElement))if(y.plugins.config[n].currentPosition!=b.html5.view.positions.NONE){var o=e(n,L--);o?(y.plugins.object[n].resize(o.width,o.height),h&&(delete o.width,delete o.height),d(y.plugins.object[n].getDisplayElement(),o)):j.push(n)}else d(y.plugins.object[n].getDisplayElement(),{display:"none"})}return j}function x(d,e){if(f.exists(y.plugins.object[d].getDisplayElement)&&y.plugins.config[d].position&&
[b.html5.view.positions.TOP,b.html5.view.positions.RIGHT,b.html5.view.positions.BOTTOM,b.html5.view.positions.LEFT].toString().indexOf(y.plugins.config[d].position.toUpperCase())>-1){f.exists(y.plugins.object[d].getDisplayElement().parentNode)||r.appendChild(y.plugins.object[d].getDisplayElement());var g={position:"absolute",margin:0,padding:0,top:null},h=y.plugins.config[d].currentPosition.toLowerCase();switch(h.toUpperCase()){case b.html5.view.positions.TOP:g.top=f.parseDimension(F.style.top);g.left=
f.parseDimension(F.style.left);g.width=E-f.parseDimension(F.style.left)-f.parseDimension(F.style.right);g.height=y.plugins.object[d].height;F.style[h]=f.parseDimension(F.style[h])+y.plugins.object[d].height+"px";F.style.height=f.parseDimension(F.style.height)-g.height+"px";break;case b.html5.view.positions.RIGHT:g.top=f.parseDimension(F.style.top);g.right=f.parseDimension(F.style.right);g.width=y.plugins.object[d].width;g.height=I-f.parseDimension(F.style.top)-f.parseDimension(F.style.bottom);F.style[h]=
f.parseDimension(F.style[h])+y.plugins.object[d].width+"px";F.style.width=f.parseDimension(F.style.width)-g.width+"px";break;case b.html5.view.positions.BOTTOM:g.bottom=f.parseDimension(F.style.bottom);g.left=f.parseDimension(F.style.left);g.width=E-f.parseDimension(F.style.left)-f.parseDimension(F.style.right);g.height=y.plugins.object[d].height;F.style[h]=f.parseDimension(F.style[h])+y.plugins.object[d].height+"px";F.style.height=f.parseDimension(F.style.height)-g.height+"px";break;case b.html5.view.positions.LEFT:g.top=
f.parseDimension(F.style.top),g.left=f.parseDimension(F.style.left),g.width=y.plugins.object[d].width,g.height=I-f.parseDimension(F.style.top)-f.parseDimension(F.style.bottom),F.style[h]=f.parseDimension(F.style[h])+y.plugins.object[d].width+"px",F.style.width=f.parseDimension(F.style.width)-g.width+"px"}g.zIndex=e;return g}return!1}function z(b,d){f.exists(y.plugins.object[b].getDisplayElement().parentNode)||F.appendChild(y.plugins.object[b].getDisplayElement());var e=y.width,g=y.height;typeof y.width==
"string"&&y.width.lastIndexOf("%")>-1&&(percentage=parseFloat(y.width.substring(0,y.width.lastIndexOf("%")))/100,e=Math.round(window.innerWidth*percentage));typeof y.height=="string"&&y.height.lastIndexOf("%")>-1&&(percentage=parseFloat(y.height.substring(0,y.height.lastIndexOf("%")))/100,g=Math.round(window.innerHeight*percentage));return{position:"absolute",width:e-f.parseDimension(F.style.left)-f.parseDimension(F.style.right),height:g-f.parseDimension(F.style.top)-f.parseDimension(F.style.bottom),
zIndex:d}}function q(b,d){return{position:"fixed",width:y.width,height:y.height,zIndex:d}}function C(){if(f.exists(y.getMedia())){F.style.position="absolute";var b=y.getMedia().getDisplayElement();if(b&&b.tagName.toLowerCase()=="video"){b.style.position="absolute";var d,e;F.style.width.toString().lastIndexOf("%")>-1||F.style.width.toString().lastIndexOf("%")>-1?(e=F.getBoundingClientRect(),d=Math.abs(e.left)+Math.abs(e.right),e=Math.abs(e.top)+Math.abs(e.bottom)):(d=f.parseDimension(F.style.width),
e=f.parseDimension(F.style.height));if(b.parentNode)b.parentNode.style.left=F.style.left,b.parentNode.style.top=F.style.top;f.stretch(B.jwGetStretching(),b,d,e,b.videoWidth?b.videoWidth:400,b.videoHeight?b.videoHeight:300)}else(b=y.plugins.object.display.getDisplayElement())?y.getMedia().resize(f.parseDimension(b.style.width),f.parseDimension(b.style.height)):y.getMedia().resize(f.parseDimension(F.style.width),f.parseDimension(F.style.height))}}var B=k,D=o,y=h,r,E,I,F,L,O;this.setup=function(){y&&
y.getMedia()&&(D=y.getMedia().getDisplayElement());j();g();B.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,e);B.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_LOADED,n);B.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_META,function(){C()});var d;if(f.exists(window.onresize))d=window.onresize;window.onresize=function(b){if(f.exists(d))try{d(b)}catch(e){}if(B.jwGetFullscreen())b=document.body.getBoundingClientRect(),y.width=Math.abs(b.left)+Math.abs(b.right),y.height=window.innerHeight;u(y.width,
y.height)}};this.resize=u;this.fullscreen=function(b){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(y.getMedia().getDisplayElement().webkitSupportsFullscreen)if(b)try{y.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(e){}else try{y.getMedia().getDisplayElement().webkitExitFullscreen()}catch(f){}}else b?(document.onkeydown=w,clearInterval(void 0),b=document.body.getBoundingClientRect(),y.width=Math.abs(b.left)+Math.abs(b.right),y.height=window.innerHeight,b=
{position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483E3},d(r,b),b.zIndex=1,y.getMedia()&&y.getMedia().getDisplayElement()&&d(y.getMedia().getDisplayElement(),b),b.zIndex=2,d(F,b)):(document.onkeydown="",y.width=E,y.height=I,d(r,{position:"relative",height:y.height,width:y.width,zIndex:0})),u(y.width,y.height)}};b.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(b){var f={backgroundcolor:"",margin:10,font:"Arial,sans-serif",
fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:b.html5.view.positions.BOTTOM,idlehide:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",
elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=b.utils;_css=_utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};b.html5.controlbar=function(d,k){function o(){Z||(Z=v.skin.getSkinElement("controlbar","background"))||(Z={width:0,height:0,src:null});return Z}function h(){m=
M=P=0;if(!X){var b={height:o().height,backgroundColor:G.backgroundcolor};N=document.createElement("div");N.id=v.id+"_jwplayer_controlbar";_css(N,b)}var d=v.skin.getSkinElement("controlbar","capLeft"),b=v.skin.getSkinElement("controlbar","capRight");d&&z("capLeft","left",!1,N);d={position:"absolute",height:o().height,left:d?d.width:0,zIndex:0};u("background",N,d,"img");if(o().src)K.background.src=o().src;d.zIndex=1;u("elements",N,d);b&&z("capRight","right",!1,N)}function j(){var b=["timeSlider","volumeSlider",
"timeSliderRail","volumeSliderRail"],d;for(d in b){var e=b[d];typeof K[e]!="undefined"&&(aa[e]=K[e].getBoundingClientRect())}}function g(d){if(!ga&&(G.position==b.html5.view.positions.OVER||v.jwGetFullscreen()))switch(clearTimeout(ha),v.jwGetState()){case b.api.events.state.PAUSED:case b.api.events.state.IDLE:(!G.idlehide||_utils.exists(d))&&n();G.idlehide&&(ha=setTimeout(function(){e()},2E3));break;default:d&&n(),ha=setTimeout(function(){e()},2E3)}}function e(){sa();_utils.cancelAnimation(N);_utils.fadeTo(N,
0,0.1,1,0)}function n(){za();_utils.cancelAnimation(N);_utils.fadeTo(N,1,0,1,0)}function w(d){return function(){ca&&oa!=d&&(oa=d,da.sendEvent(d,{component:"controlbar",boundingRect:G.position==b.html5.view.positions.OVER||v.jwGetFullscreen()?_utils.getDimensions(N):{x:0,y:0,width:0,height:0}}))}}function u(b,d,e,f){X?f=document.getElementById(N.id+"_"+b):(f||(f="div"),f=document.createElement(f),K[b]=f,f.id=N.id+"_"+b,d.appendChild(f));_utils.exists(e)&&_css(f,e);return f}function s(){x(G.layout.left);
x(G.layout.right,-1);x(G.layout.center)}function x(b,d){var e=b.position=="right"?"right":"left",f=_utils.extend([],b.elements);_utils.exists(d)&&f.reverse();for(var g=0;g<f.length;g++){var h=f[g],j=e,k=void 0,n=void 0,p=void 0,n=n=void 0;if(h.type=="divider")z("divider"+m++,j,!0,void 0,void 0,h.width,h.element);else switch(h.name){case "play":z("playButton",j,!1);z("pauseButton",j,!0);D("playButton","jwPlay");D("pauseButton","jwPause");break;case "prev":z("prevButton",j,!0);D("prevButton","jwPlaylistPrev");
break;case "stop":z("stopButton",j,!0);D("stopButton","jwStop");break;case "next":z("nextButton",j,!0);D("nextButton","jwPlaylistNext");break;case "elapsed":z("elapsedText",j,!0);break;case "time":n=!_utils.exists(v.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:v.skin.getSkinElement("controlbar","timeSliderCapLeft").width;p=!_utils.exists(v.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:v.skin.getSkinElement("controlbar","timeSliderCapRight").width;k=j=="left"?n:p;n=v.skin.getSkinElement("controlbar",
"timeSliderRail").width+n+p;n={height:o().height,position:"absolute",top:0,width:n};n[j]=j=="left"?P:M;h=u("timeSlider",K.elements,n);z("timeSliderCapLeft",j,!0,h,j=="left"?0:k);z("timeSliderRail",j,!1,h,k);z("timeSliderBuffer",j,!1,h,k);z("timeSliderProgress",j,!1,h,k);z("timeSliderThumb",j,!1,h,k);z("timeSliderCapRight",j,!0,h,j=="right"?0:k);y("time");break;case "fullscreen":z("fullscreenButton",j,!1);z("normalscreenButton",j,!0);D("fullscreenButton","jwSetFullscreen",!0);D("normalscreenButton",
"jwSetFullscreen",!1);break;case "volume":n=!_utils.exists(v.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:v.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;p=!_utils.exists(v.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:v.skin.getSkinElement("controlbar","volumeSliderCapRight").width;k=j=="left"?n:p;n=v.skin.getSkinElement("controlbar","volumeSliderRail").width+n+p;n={height:o().height,position:"absolute",top:0,width:n};n[j]=j=="left"?P:M;h=u("volumeSlider",
K.elements,n);z("volumeSliderCapLeft",j,!0,h,j=="left"?0:k);z("volumeSliderRail",j,!0,h,k);z("volumeSliderProgress",j,!1,h,k);z("volumeSliderCapRight",j,!0,h,j=="right"?0:k);y("volume");break;case "mute":z("muteButton",j,!1);z("unmuteButton",j,!0);D("muteButton","jwSetMute",!0);D("unmuteButton","jwSetMute",!1);break;case "duration":z("durationText",j,!0)}}}function z(b,d,e,f,g,h,j){if(_utils.exists(v.skin.getSkinElement("controlbar",b))||b.indexOf("Text")>0||b.indexOf("divider")===0){var k={height:o().height,
position:"absolute",display:"block",top:0};if((b.indexOf("next")===0||b.indexOf("prev")===0)&&v.jwGetPlaylist().length<2)e=!1,k.display="none";var m;if(b.indexOf("Text")>0)b.innerhtml="00:00",k.font=G.fontsize+"px/"+(o().height+1)+"px "+G.font,k.color=G.fontcolor,k.textAlign="center",k.fontWeight=G.fontweight,k.fontStyle=G.fontstyle,k.cursor="default",m=14+3*G.fontsize;else if(b.indexOf("divider")===0)if(h)isNaN(parseInt(h))||(m=parseInt(h));else if(j){if(h=v.skin.getSkinElement("controlbar",j))k.background=
"url("+h.src+") repeat-x center left",m=h.width}else k.background="url("+v.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",m=v.skin.getSkinElement("controlbar","divider").width;else k.background="url("+v.skin.getSkinElement("controlbar",b).src+") repeat-x center left",m=v.skin.getSkinElement("controlbar",b).width;if(d=="left")k.left=isNaN(g)?P:g,e&&(P+=m);else if(d=="right")k.right=isNaN(g)?M:g,e&&(M+=m);if(_utils.typeOf(f)=="undefined")f=K.elements;k.width=m;if(X)_css(K[b],
k);else{var n=u(b,f,k);if(_utils.exists(v.skin.getSkinElement("controlbar",b+"Over")))n.onmouseover=function(){n.style.backgroundImage=["url(",v.skin.getSkinElement("controlbar",b+"Over").src,")"].join("")},n.onmouseout=function(){n.style.backgroundImage=["url(",v.skin.getSkinElement("controlbar",b).src,")"].join("")}}}}function q(){h();s();O();B()}function C(b){R=v.jwGetPlaylist()[b.index].duration;L({id:v.id,duration:R,position:0});r({id:v.id,bufferProgress:0})}function B(){L({id:v.id,duration:v.jwGetDuration(),
position:0});r({id:v.id,bufferProgress:0});E({id:v.id,mute:v.jwGetMute()});I({id:v.id,newstate:b.api.events.state.IDLE});J({id:v.id,volume:v.jwGetVolume()})}function D(b,d,e){if(!X&&_utils.exists(v.skin.getSkinElement("controlbar",b))&&(b=K[b],_utils.exists(b)))_css(b,{cursor:"pointer"}),b.onmouseup=d=="fullscreen"?function(b){b.stopPropagation();v.jwSetFullscreen(!v.jwGetFullscreen())}:function(b){b.stopPropagation();if(_utils.exists(e))v[d](e);else v[d]()}}function y(d){if(!X){var e=K[d+"Slider"];
_css(K.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(){U=d};e.onmouseup=function(d){d.stopPropagation();d=d.pageX;A=!1;U=="time"?(d=d-aa.timeSliderRail.left+window.pageXOffset,d=d/aa.timeSliderRail.width*R,d<0?d=0:d>R&&(d=R-3),(v.jwGetState()==b.api.events.state.PAUSED||v.jwGetState()==b.api.events.state.IDLE)&&v.jwPlay(),v.jwSeek(d)):U=="volume"&&(d=d-aa.volumeSliderRail.left-window.pageXOffset,d=Math.round(d/aa.volumeSliderRail.width*100),d<0?d=0:d>100&&(d=100),
v.jwGetMute()&&v.jwSetMute(!1),v.jwSetVolume(d));U="none"};e.onmousemove=function(b){U=="time"&&(A=!0,_css(K.timeSliderThumb,{left:b.pageX-aa[d+"Slider"].left-window.pageXOffset}))}}}function r(b){if(_utils.exists(b.bufferPercent))p=b.bufferPercent;if(aa.timeSliderRail)b=aa.timeSliderRail.width,b=isNaN(Math.round(b*p/100))?0:Math.round(b*p/100),_css(K.timeSliderBuffer,{width:b})}function E(b){b.mute?(_hide(K.muteButton),_show(K.unmuteButton),_hide(K.volumeSliderProgress)):(_show(K.muteButton),_hide(K.unmuteButton),
_show(K.volumeSliderProgress))}function I(d){d.newstate==b.api.events.state.BUFFERING||d.newstate==b.api.events.state.PLAYING?(_show(K.pauseButton),_hide(K.playButton)):(_hide(K.pauseButton),_show(K.playButton));g();d.newstate==b.api.events.state.IDLE?(_hide(K.timeSliderBuffer),_hide(K.timeSliderProgress),_hide(K.timeSliderThumb),L({id:v.id,duration:v.jwGetDuration(),position:0})):(_show(K.timeSliderBuffer),d.newstate!=b.api.events.state.BUFFERING&&(_show(K.timeSliderProgress),_show(K.timeSliderThumb)))}
function F(b){r({bufferPercent:0});L(_utils.extend(b,{position:0,duration:R}))}function L(b){if(_utils.exists(b.position))T=b.position;if(_utils.exists(b.duration))R=b.duration;var b=T===R===0?0:T/R,d=aa.timeSliderRail;if(d&&(b=isNaN(Math.round(d.width*b))?0:Math.round(d.width*b),K.timeSliderProgress&&(K.timeSliderProgress.style.width=b+"px",!A&&K.timeSliderThumb)))K.timeSliderThumb.style.left=b+"px";if(K.durationText)K.durationText.innerHTML=_utils.timeFormat(R);if(K.elapsedText)K.elapsedText.innerHTML=
_utils.timeFormat(T)}function O(){var d,e,f=document.getElementById(N.id+"_elements");if(f){var g=f.childNodes,h;for(h in f.childNodes)if(!isNaN(parseInt(h,10))){if(g[h].id.indexOf(N.id+"_divider")===0&&e&&e.id.indexOf(N.id+"_divider")===0&&g[h].style.backgroundImage==e.style.backgroundImage)g[h].style.display="none";else if(g[h].id.indexOf(N.id+"_divider")===0&&d&&d.style.display!="none")g[h].style.display="block";g[h].style.display!="none"&&(e=g[h]);d=g[h]}}v.jwGetFullscreen()?(_show(K.normalscreenButton),
_hide(K.fullscreenButton)):(_hide(K.normalscreenButton),_show(K.fullscreenButton));d={width:S};e={};if(G.position==b.html5.view.positions.OVER||v.jwGetFullscreen())d.left=G.margin,d.width-=2*G.margin,d.top=Q-o().height-G.margin,d.height=o().height;f=v.skin.getSkinElement("controlbar","capLeft");g=v.skin.getSkinElement("controlbar","capRight");e.left=f?f.width:0;e.width=d.width-e.left-(g?g.width:0);f=!_utils.exists(v.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:v.skin.getSkinElement("controlbar",
"timeSliderCapLeft").width;_css(K.timeSliderRail,{width:e.width-P-M,left:f});_utils.exists(K.timeSliderCapRight)&&_css(K.timeSliderCapRight,{left:f+(e.width-P-M)});_css(N,d);_css(K.elements,e);_css(K.background,e);j();return d}function J(b){if(_utils.exists(K.volumeSliderRail)){var b=isNaN(b.volume/100)?1:b.volume/100,d=_utils.parseDimension(K.volumeSliderRail.style.width),b=isNaN(Math.round(d*b))?0:Math.round(d*b);_utils.parseDimension(K.volumeSliderRail.style.right);d=!_utils.exists(v.skin.getSkinElement("controlbar",
"volumeSliderCapLeft"))?0:v.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(K.volumeSliderProgress,{width:b,left:d});_utils.exists(K.volumeSliderCapLeft)&&_css(K.volumeSliderCapLeft,{left:0})}}var v=d,G=_utils.extend({},f,v.skin.getComponentSettings("controlbar"),k);if(!(G.position==b.html5.view.positions.NONE||typeof b.html5.view.positions[G.position]=="undefined")){if(_utils.mapLength(v.skin.getComponentLayout("controlbar"))>0)G.layout=v.skin.getComponentLayout("controlbar");
var N,m,P,M,U="none",A,T,R,p,S,Q,K={},X=!1,aa={},Z,ga=!1,ha,oa,ca=!1,V=!1,da=new b.html5.eventdispatcher;_utils.extend(this,da);this.getDisplayElement=function(){return N};this.resize=function(b,d){_utils.cancelAnimation(N);document.getElementById(v.id).onmousemove=g;S=b;Q=d;V!=v.jwGetFullscreen()&&(V=v.jwGetFullscreen(),oa=void 0);var e=O();g();L({id:v.id,duration:R,position:T});r({id:v.id,bufferPercent:p});return e};this.show=function(){ga&&(ga=!1,_show(N),za())};this.hide=function(){ga||(ga=!0,
_hide(N),sa())};var za=w(b.api.events.JWPLAYER_COMPONENT_SHOW),sa=w(b.api.events.JWPLAYER_COMPONENT_HIDE);(function(){h();s();j();X=!0;v.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,q);v.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,C);v.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,r);v.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,I);v.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_TIME,L);v.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,E);v.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,
J);v.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,F);G.idlehide=G.idlehide.toString().toLowerCase()=="true";G.position==b.html5.view.positions.OVER&&G.idlehide?(N.style.opacity=0,ca=!0):setTimeout(function(){ca=!0;za()},1);B()})();return this}}})(jwplayer);(function(b){var f=b.utils;b.html5.controller=function(d,k,o,h){function j(){try{return u(q.item),q.playlist[q.item].levels[0].file.length>0&&(C||q.state==b.api.events.state.IDLE?(q.getMedia().load(q.playlist[q.item]),C=!1):q.state==
b.api.events.state.PAUSED&&q.getMedia().play()),!0}catch(d){D.sendEvent(b.api.events.JWPLAYER_ERROR,d)}return!1}function g(d){f.exists(d)||(d=!0);try{return q.getMedia().stop(d),!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1}function e(){try{q.playlist[q.item].levels[0].file.length>0&&(q.config.shuffle?u(n()):q.item+1==q.playlist.length?u(0):u(q.item+1));if(q.state!=b.api.events.state.IDLE){var d=q.state;q.state=b.api.events.state.IDLE;D.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,
{oldstate:d,newstate:b.api.events.state.IDLE})}j();return!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1}function n(){var b=null;if(q.playlist.length>1)for(;!f.exists(b);)b=Math.floor(Math.random()*q.playlist.length),b==q.item&&(b=null);else b=0;return b}function w(d){if(!q.playlist||!q.playlist[d])return!1;try{return q.playlist[d].levels[0].file.length>0&&(q.state!==b.api.events.state.IDLE&&(q.playlist[q.item].provider==q.playlist[d].provider?g(!1):g()),u(d),j()),!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,
e)}return!1}function u(d){if(q.playlist[d]&&(q.setActiveMediaProvider(q.playlist[d]),q.item!=d))q.item=d,C=!0,D.sendEvent(b.api.events.JWPLAYER_PLAYLIST_ITEM,{index:d})}function s(){switch(q.config.repeat.toUpperCase()){case b.html5.controller.repeatoptions.SINGLE:j();break;case b.html5.controller.repeatoptions.ALWAYS:q.item==q.playlist.length-1&&!q.config.shuffle?w(0):e();break;case b.html5.controller.repeatoptions.LIST:q.item==q.playlist.length-1&&!q.config.shuffle?(g(),u(0)):e();break;default:g()}}
function x(b){return function(){r?z(b,arguments):E.push({method:b,arguments:arguments})}}function z(b,d){var e=[];for(i=0;i<d.length;i++)e.push(d[i]);b.apply(this,e)}var q=o,C=!0,B=-1,d=f.exists(q.config.debug)&&q.config.debug.toString().toLowerCase()=="console",D=new b.html5.eventdispatcher(k.id,d);f.extend(this,D);var y=[],r=!1;q.addGlobalListener(function(b){r?D.sendEvent(b.type,b):y.push(b)});q.addEventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){q.getMedia().play()});q.addEventListener(b.api.events.JWPLAYER_MEDIA_TIME,
function(b){if(b.position>=q.playlist[q.item].start&&B>=0)q.playlist[q.item].start=B,B=-1});q.addEventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(s,25)});b.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};var E=[];this.play=x(j);this.pause=x(function(){try{if(q.playlist[q.item].levels[0].file.length>0)switch(q.state){case b.api.events.state.PLAYING:case b.api.events.state.BUFFERING:q.getMedia().pause()}return!0}catch(d){D.sendEvent(b.api.events.JWPLAYER_ERROR,
d)}return!1});this.seek=x(function(d){try{if(q.playlist[q.item].levels[0].file.length>0)switch(typeof d!="number"&&(d=parseFloat(d)),q.state){case b.api.events.state.IDLE:if(B<0)B=q.playlist[q.item].start,q.playlist[q.item].start=d;j();break;case b.api.events.state.PLAYING:case b.api.events.state.PAUSED:case b.api.events.state.BUFFERING:q.seek(d)}return!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1});this.stop=x(g);this.next=x(e);this.prev=x(function(){try{q.playlist[q.item].levels[0].file.length>
0&&(q.config.shuffle?u(n()):q.item===0?u(q.playlist.length-1):u(q.item-1));if(q.state!=b.api.events.state.IDLE){var d=q.state;q.state=b.api.events.state.IDLE;D.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:d,newstate:b.api.events.state.IDLE})}j();return!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1});this.item=x(w);this.setVolume=x(function(d){try{u(q.item);var e=q.getMedia();switch(typeof d){case "number":e.volume(d);break;case "string":e.volume(parseInt(d,10))}return!0}catch(f){D.sendEvent(b.api.events.JWPLAYER_ERROR,
f)}return!1});this.setMute=x(function(d){try{u(q.item);var e=q.getMedia();typeof d=="undefined"?e.mute(!q.mute):d.toString().toLowerCase()=="true"?e.mute(!0):e.mute(!1);return!0}catch(f){D.sendEvent(b.api.events.JWPLAYER_ERROR,f)}return!1});this.resize=x(function(d,e){try{return q.width=d,q.height=e,h.resize(d,e),D.sendEvent(b.api.events.JWPLAYER_RESIZE,{width:q.width,height:q.height}),!0}catch(f){D.sendEvent(b.api.events.JWPLAYER_ERROR,f)}return!1});this.setFullscreen=x(function(d){try{return typeof d==
"undefined"?(q.fullscreen=!q.fullscreen,h.fullscreen(!q.fullscreen)):d.toString().toLowerCase()=="true"?(q.fullscreen=!0,h.fullscreen(!0)):(q.fullscreen=!1,h.fullscreen(!1)),D.sendEvent(b.api.events.JWPLAYER_RESIZE,{width:q.width,height:q.height}),D.sendEvent(b.api.events.JWPLAYER_FULLSCREEN,{fullscreen:d}),!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1});this.load=x(function(d){try{return g(),q.loadPlaylist(d),u(q.item),!0}catch(e){D.sendEvent(b.api.events.JWPLAYER_ERROR,e)}return!1});
this.playerReady=function(d){if(!r){D.sendEvent(b.api.events.JWPLAYER_READY,d);b.utils.exists(window.playerReady)&&playerReady(d);if(b.utils.exists(window[o.config.playerReady]))window[o.config.playerReady](d);for(;y.length>0;)d=y.shift(),D.sendEvent(d.type,d);for(o.config.autostart&&!b.utils.isIOS()&&w(q.item);E.length>0;)d=E.shift(),z(d.method,d.arguments);r=!0}}}})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';
this.xml=null;window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text));return this}})(jwplayer);(function(b){_utils=b.utils;_css=_utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};b.html5.display=function(f,d){function k(){r=B.display_image.naturalWidth;E=B.display_image.naturalHeight;o()}function o(){_utils.stretch(C.jwGetStretching(),
B.display_image,D,y,r,E)}function h(b,d){var e=document.createElement(b);e.id=C.id+"_jwplayer_"+d;_css(e,A[d].style);return e}function j(){for(var b in B)if(_utils.exists(A[b].click))B[b].onclick=A[b].click}function g(b){L?e():(B.display_icon.style.backgroundImage=["url(",C.skin.getSkinElement("display",b).src,")"].join(""),_css(B.display_icon,{width:C.skin.getSkinElement("display",b).width,height:C.skin.getSkinElement("display",b).height,top:(C.skin.getSkinElement("display","background").height-
C.skin.getSkinElement("display",b).height)/2,left:(C.skin.getSkinElement("display","background").width-C.skin.getSkinElement("display",b).width)/2}),!P&&q.icons.toString()=="true"&&(_show(B.display_icon),_show(B.display_iconBackground),T()),_utils.exists(C.skin.getSkinElement("display",b+"Over"))?(B.display_icon.onmouseover=function(){B.display_icon.style.backgroundImage=["url(",C.skin.getSkinElement("display",b+"Over").src,")"].join("")},B.display_icon.onmouseout=function(){B.display_icon.style.backgroundImage=
["url(",C.skin.getSkinElement("display",b).src,")"].join("")}):(B.display_icon.onmouseover=null,B.display_icon.onmouseout=null))}function e(){q.icons.toString()=="true"&&(_hide(B.display_icon),_hide(B.display_iconBackground),R())}function n(){B.display_image.style.display="none"}function w(d){if((d.type==b.api.events.JWPLAYER_PLAYER_STATE||d.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&L)L=!1,_hide(B.display_text);d=C.jwGetState();d!=G&&(G=d,v>=0&&clearTimeout(v),N||C.jwGetState()==b.api.events.state.PLAYING||
C.jwGetState()==b.api.events.state.PAUSED?s(C.jwGetState()):v=setTimeout(u(C.jwGetState()),500))}function u(b){return function(){s(b)}}function s(d){_utils.exists(F)&&(clearInterval(F),F=null,_utils.animations.rotate(B.display_icon,0));switch(d){case b.api.events.state.BUFFERING:_utils.isIOS()?(n(),e()):(C.jwGetPlaylist()[C.jwGetItem()].provider=="sound"&&x(),I=0,F=setInterval(function(){I+=O;_utils.animations.rotate(B.display_icon,I%360)},J),g("bufferIcon"),N=!0);break;case b.api.events.state.PAUSED:_utils.isIOS()||
(C.jwGetPlaylist()[C.jwGetItem()].provider!="sound"&&_css(B.display_image,{background:"transparent no-repeat center center"}),g("playIcon"),N=!0);break;case b.api.events.state.IDLE:C.jwGetPlaylist()[C.jwGetItem()]&&C.jwGetPlaylist()[C.jwGetItem()].image?x():n();g("playIcon");N=!0;break;default:C.jwGetPlaylist()[C.jwGetItem()]&&C.jwGetPlaylist()[C.jwGetItem()].provider=="sound"?_utils.isIOS()?(n(),N=!1):x():(n(),N=!1),C.jwGetMute()&&q.showmute?g("muteIcon"):e()}v=-1}function x(){if(C.jwGetPlaylist()[C.jwGetItem()]&&
C.jwGetPlaylist()[C.jwGetItem()].image)_css(B.display_image,{display:"block"}),B.display_image.src=_utils.getAbsolutePath(C.jwGetPlaylist()[C.jwGetItem()].image)}function z(b){return function(){M&&!P&&m!=b&&(m=b,U.sendEvent(b,{component:"display",boundingRect:_utils.getDimensions(B.display_iconBackground)}))}}var q=_utils.extend({},{icons:!0,showmute:!1},d),C=f,B={},D,y,r,E,I,F,L,O=!_utils.exists(C.skin.getComponentSettings("display").bufferrotation)?15:parseInt(C.skin.getComponentSettings("display").bufferrotation,
10),J=!_utils.exists(C.skin.getComponentSettings("display").bufferinterval)?100:parseInt(C.skin.getComponentSettings("display").bufferinterval,10),v=-1,G="",N=!0,m,P=!1,M=!1,U=new b.html5.eventdispatcher;_utils.extend(this,U);var A={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:function(d){typeof d.preventDefault!="undefined"?d.preventDefault():d.returnValue=!1;C.jwGetState()!=b.api.events.state.PLAYING?C.jwPlay():C.jwPause()}},display_icon:{style:{cursor:"pointer",position:"absolute",
top:(C.skin.getSkinElement("display","background").height-C.skin.getSkinElement("display","playIcon").height)/2,left:(C.skin.getSkinElement("display","background").width-C.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(y-C.skin.getSkinElement("display","background").height)/2,left:(D-C.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",
C.skin.getSkinElement("display","background").src,")"].join(""),width:C.skin.getSkinElement("display","background").width,height:C.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:D,height:y,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",
16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};C.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,w);C.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,w);C.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,w);C.jwAddEventListener(b.api.events.JWPLAYER_ERROR,function(b){L=!0;e();B.display_text.innerHTML=b.error;_show(B.display_text);B.display_text.style.top=(y-B.display_text.getBoundingClientRect().height)/2+"px"});(function(){B.display=h("div","display");
B.display_text=h("div","display_text");B.display.appendChild(B.display_text);B.display_image=h("img","display_image");B.display_image.onerror=function(){_hide(B.display_image)};B.display_image.onload=k;B.display_icon=h("div","display_icon");B.display_iconBackground=h("div","display_iconBackground");B.display.appendChild(B.display_image);B.display_iconBackground.appendChild(B.display_icon);B.display.appendChild(B.display_iconBackground);j();setTimeout(function(){M=!0;q.icons.toString()=="true"&&T()},
1)})();this.getDisplayElement=function(){return B.display};this.resize=function(b,d){_css(B.display,{width:b,height:d});_css(B.display_text,{width:b-10,top:(d-B.display_text.getBoundingClientRect().height)/2});_css(B.display_iconBackground,{top:(d-C.skin.getSkinElement("display","background").height)/2,left:(b-C.skin.getSkinElement("display","background").width)/2});if(D!=b||y!=d)D=b,y=d,m=void 0,T();o();w({})};this.show=function(){P&&(P=!1,s(C.jwGetState()))};this.hide=function(){P||(e(),P=!0)};
var T=z(b.api.events.JWPLAYER_COMPONENT_SHOW),R=z(b.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(b){_css=b.utils.css;b.html5.dock=function(f,d){function k(d,k){if(g.length>0){var o=10,q=-1,z=f.skin.getSkinElement("dock","button").height,y=f.skin.getSkinElement("dock","button").width,J=d-y-10,v,B;h.align==b.html5.view.positions.LEFT&&(q=1,J=10);for(var w=0;w<g.length;w++){var m=Math.floor(o/k);o+z+10>(m+1)*k&&(o=(m+1)*k+10,m=Math.floor(o/k));var D=j[g[w]].div;D.style.top=
o%k+"px";D.style.left=J+(f.skin.getSkinElement("dock","button").width+10)*m*q+"px";m={x:b.utils.parseDimension(D.style.left),y:b.utils.parseDimension(D.style.top),width:y,height:z};if(!v||m.x<=v.x&&m.y<=v.y)v=m;if(!B||m.x>=B.x&&m.y>=B.y)B=m;o+=f.skin.getSkinElement("dock","button").height+10}s={x:v.x,y:v.y,width:B.x-v.x+B.width,height:v.y-B.y+B.height}}if(u!=f.jwGetFullscreen()||e!=d||n!=k)e=d,n=k,u=f.jwGetFullscreen(),x=void 0,setTimeout(C,1)}function o(b){return function(){!w&&x!=b&&g.length>0&&
(x=b,z.sendEvent(b,{component:"dock",boundingRect:s}))}}var h=b.utils.extend({},{align:b.html5.view.positions.RIGHT},d);if(h.align!="FALSE"){var j={},g=[],e,n,w=!1,u=!1,s={x:0,y:0,width:0,height:0},x,z=new b.html5.eventdispatcher;_utils.extend(this,z);var q=document.createElement("div");q.id=f.id+"_jwplayer_dock";f.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,function(d){if(b.utils.isIOS())switch(d.newstate){case b.api.events.state.IDLE:D();break;default:y()}});this.getDisplayElement=function(){return q};
this.setButton=function(d,h,o,u){if(!h&&j[d])b.utils.arrays.remove(g,d),q.removeChild(j[d].div),delete j[d];else if(h){j[d]||(j[d]={});j[d].handler=h;j[d].outGraphic=o;j[d].overGraphic=u;if(!j[d].div){g.push(d);j[d].div=document.createElement("div");j[d].div.style.position="relative";q.appendChild(j[d].div);j[d].div.appendChild(document.createElement("img"));j[d].div.childNodes[0].style.position="absolute";j[d].div.childNodes[0].style.left=0;j[d].div.childNodes[0].style.top=0;j[d].div.childNodes[0].style.zIndex=
10;j[d].div.childNodes[0].style.cursor="pointer";j[d].div.appendChild(document.createElement("img"));j[d].div.childNodes[1].style.position="absolute";j[d].div.childNodes[1].style.left=0;j[d].div.childNodes[1].style.top=0;if(f.skin.getSkinElement("dock","button"))j[d].div.childNodes[1].src=f.skin.getSkinElement("dock","button").src;j[d].div.childNodes[1].style.zIndex=9;j[d].div.childNodes[1].style.cursor="pointer";j[d].div.onmouseover=function(){if(j[d].overGraphic)j[d].div.childNodes[0].src=j[d].overGraphic;
if(f.skin.getSkinElement("dock","buttonOver"))j[d].div.childNodes[1].src=f.skin.getSkinElement("dock","buttonOver").src};j[d].div.onmouseout=function(){if(j[d].outGraphic)j[d].div.childNodes[0].src=j[d].outGraphic;if(f.skin.getSkinElement("dock","button"))j[d].div.childNodes[1].src=f.skin.getSkinElement("dock","button").src};if(j[d].overGraphic)j[d].div.childNodes[0].src=j[d].overGraphic;if(j[d].outGraphic)j[d].div.childNodes[0].src=j[d].outGraphic;if(f.skin.getSkinElement("dock","button"))j[d].div.childNodes[1].src=
f.skin.getSkinElement("dock","button").src}if(h)j[d].div.onclick=function(e){e.preventDefault();b(f.id).callback(d);if(j[d].overGraphic)j[d].div.childNodes[0].src=j[d].overGraphic;if(f.skin.getSkinElement("dock","button"))j[d].div.childNodes[1].src=f.skin.getSkinElement("dock","button").src}}k(e,n)};var C=o(b.api.events.JWPLAYER_COMPONENT_SHOW),B=o(b.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=k;var D=function(){_css(q,{display:"block"});w&&(w=!1,C())},y=function(){_css(q,{display:"none"});w||
(B(),w=!0)};this.hide=y;this.show=D;return this}}})(jwplayer);(function(b){b.html5.eventdispatcher=function(f,d){var k=new b.events.eventdispatcher(d);b.utils.extend(this,k);this.sendEvent=function(d,h){b.utils.exists(h)||(h={});b.utils.extend(h,{id:f,version:b.version,type:d});k.sendEvent(d,h)}}})(jwplayer);(function(b){var f={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:0.5,over:1,timeout:5,hide:!0,position:"bottom-left"};
_css=b.utils.css;b.html5.logo=function(d,k){function o(b){typeof b!="undefined"&&b.stopPropagation();x&&(n.jwPause(),n.jwSetFullscreen(!1),u.link&&window.open(u.link,"_top"))}function h(){if(u.link&&x)s.style.opacity=u.out}function j(){if(u.hide.toString()=="true"&&x)s.style.opacity=u.over}function g(){if(u.hide.toString()=="true")s.style.display="block",s.style.opacity=0,b.utils.fadeTo(s,u.out,0.1,parseFloat(s.style.opacity)),w=setTimeout(function(){x=!1;u.hide.toString()=="true"&&b.utils.fadeTo(s,
0,0.1,parseFloat(s.style.opacity))},u.timeout*1E3);x=!0}function e(d){d.newstate==b.api.events.state.BUFFERING&&(clearTimeout(w),g())}var n=d,w,u,s,x=!1;(function(){if(f.prefix){var e=d.version.split(/\W/).splice(0,2).join("/");f.prefix.indexOf(e)<0&&(f.prefix+=e+"/")}if(k.position==b.html5.view.positions.OVER)k.position=f.position;u=b.utils.extend({},f)})();(function(){s=document.createElement("img");s.id=n.id+"_jwplayer_logo";s.style.display="none";s.onload=function(){var d=_css,f=s,g={textDecoration:"none",
position:"absolute",cursor:"pointer"};g.display=u.hide.toString()=="true"?"none":"block";var j=u.position.toLowerCase().split("-"),k;for(k in j)g[j[k]]=u.margin;d(f,g);n.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,e);h()};if(u.file)s.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file})();(function(){u.link?(s.onmouseover=j,s.onmouseout=h,s.onclick=o):this.mouseEnabled=!1})();if(u.file)return this.resize=function(){},this.getDisplayElement=function(){return s},this}})(jwplayer);(function(b){var f=
{ended:b.api.events.state.IDLE,playing:b.api.events.state.PLAYING,pause:b.api.events.state.PAUSED,buffering:b.api.events.state.BUFFERING},d=b.utils,k=d.isIOS();b.html5.mediavideo=function(o,h){function j(d){if(!(d==b.api.events.state.PAUSED&&D==b.api.events.state.IDLE)&&D!=d){var e=D;q.state=D=d;z.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:e,newstate:d})}}function g(){}function e(e){var f;d.exists(e)&&e.lengthComputable&&e.total?f=e.loaded/e.total*100:d.exists(B.buffered)&&B.buffered.length>
0&&(e=B.buffered.length-1,e>=0&&(f=B.buffered.end(e)/B.duration*100));L===!1&&D==b.api.events.state.BUFFERING&&(z.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL),L=!0);if(!F&&(f==100&&(F=!0),d.exists(f)&&f>q.buffer))q.buffer=Math.round(f),z.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(f)})}function n(b){f[b.type]&&(b.type=="ended"?s():j(f[b.type]))}function w(d){var e={height:d.target.videoHeight,width:d.target.videoWidth,duration:Math.round(d.target.duration*10)/10};
if((q.duration===0||isNaN(q.duration))&&d.target.duration!=Infinity)q.duration=Math.round(d.target.duration*10)/10;z.sendEvent(b.api.events.JWPLAYER_MEDIA_META,{metadata:e})}function u(){d.exists(E)||(E=setInterval(function(){e()},100))}function s(){D!=b.api.events.state.IDLE&&(_stop(!1),z.sendEvent(b.api.events.JWPLAYER_MEDIA_COMPLETE))}var x={abort:g,canplay:n,canplaythrough:n,durationchange:w,emptied:g,ended:n,error:function(e){if(D!=b.api.events.state.IDLE){var f="There was an error: ";if(e.target.error&&
e.target.tagName.toLowerCase()=="video"||e.target.parentNode.error&&e.target.parentNode.tagName.toLowerCase()=="video")switch(e=!d.exists(e.target.error)?e.target.parentNode.error:e.target.error,e.code){case e.MEDIA_ERR_ABORTED:f="You aborted the video playback: ";break;case e.MEDIA_ERR_NETWORK:f="A network error caused the video download to fail part-way: ";break;case e.MEDIA_ERR_DECODE:f="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";
break;case e.MEDIA_ERR_SRC_NOT_SUPPORTED:f="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:f="An unknown error occurred: "}else if(e.target.tagName.toLowerCase()=="source"){O--;if(O>0)return;f="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{d.log("An unknown error occurred.  Continuing...");return}_stop(!1);var e=f,f="",g;for(g in r.levels){var h=
r.levels[g];C.ownerDocument.createElement("source");f+=b.utils.getAbsolutePath(h.file);g<r.levels.length-1&&(f+=", ")}_error=!0;z.sendEvent(b.api.events.JWPLAYER_ERROR,{error:e+f})}},loadeddata:w,loadedmetadata:w,loadstart:n,pause:n,play:g,playing:n,progress:e,ratechange:g,seeked:n,seeking:n,stalled:n,suspend:n,timeupdate:function(f){if(d.exists(f)&&d.exists(f.target)){if(!isNaN(f.target.duration)&&(isNaN(q.duration)||q.duration<1))q.duration=f.target.duration==Infinity?0:Math.round(f.target.duration*
10)/10;if(!y&&B.readyState>0)B.style.display="block",j(b.api.events.state.PLAYING);if(D==b.api.events.state.PLAYING){if(!y&&B.readyState>0){y=!0;try{if(B.currentTime<r.start)B.currentTime=r.start}catch(g){}B.volume=q.volume/100;B.muted=q.mute}q.position=q.duration>0?Math.round(f.target.currentTime*10)/10:0;z.sendEvent(b.api.events.JWPLAYER_MEDIA_TIME,{position:q.position,duration:q.duration});q.position>=q.duration&&(q.position>0||q.duration>0)&&s()}}e(f)},volumechange:g,waiting:n,canshowcurrentframe:g,
dataunavailable:g,empty:g,load:function(){},loadedfirstframe:g},z=new b.html5.eventdispatcher;d.extend(this,z);var q=o,C=h,B,D,y,r,E,I=!1,F,L,O;(function(){B=document.createElement("video");D=b.api.events.state.IDLE;for(var e in x)B.addEventListener(e,function(b){if(d.exists(b.target.parentNode))x[b.type](b)},!0);B.setAttribute("x-webkit-airplay","allow");C.parentNode&&C.parentNode.replaceChild(B,C);if(!B.id)B.id=C.id})();this.load=function(e,f){typeof f=="undefined"&&(f=!0);r=e;d.empty(B);O=0;if(e.levels&&
e.levels.length>0)if(e.levels.length==1)B.src=e.levels[0].file;else{B.src&&B.removeAttribute("src");for(var g=0;g<e.levels.length;g++){var h=B.ownerDocument.createElement("source");h.src=e.levels[g].file;B.appendChild(h);O++}}else B.src=e.file;if(k){if(e.image)B.poster=e.image;B.controls="controls";B.style.display="block"}F=L=y=!1;q.buffer=0;if(!d.exists(e.start))e.start=0;q.duration=e.duration;z.sendEvent(b.api.events.JWPLAYER_MEDIA_LOADED);(!k&&e.levels.length==1||!I)&&B.load();I=!1;f&&(j(b.api.events.state.BUFFERING),
z.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),this.play())};this.play=function(){D!=b.api.events.state.PLAYING&&(u(),L?j(b.api.events.state.PLAYING):j(b.api.events.state.BUFFERING),B.play())};this.pause=function(){B.pause();j(b.api.events.state.PAUSED)};this.seek=function(b){if(!(q.duration<=0||isNaN(q.duration))&&!(q.position<=0||isNaN(q.position)))B.currentTime=b,B.play()};_stop=this.stop=function(e){d.exists(e)||(e=!0);clearInterval(E);E=null;if(e&&(B.style.display="none",L=
!1,e=navigator.userAgent,e.match(/chrome/i)?B.src=void 0:e.match(/safari/i)?B.removeAttribute("src"):B.src="",B.removeAttribute("controls"),B.removeAttribute("poster"),d.empty(B),B.load(),I=!0,B.webkitSupportsFullscreen))try{B.webkitExitFullscreen()}catch(f){}j(b.api.events.state.IDLE)};this.fullscreen=function(b){b===!0?this.resize("100%","100%"):this.resize(q.config.width,q.config.height)};this.resize=function(d,e){z.sendEvent(b.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:q.fullscreen,width:d,
hieght:e})};this.volume=function(d){if(!k)B.volume=d/100,q.volume=d,z.sendEvent(b.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(d)})};this.mute=function(d){if(!k)B.muted=d,q.mute=d,z.sendEvent(b.api.events.JWPLAYER_MEDIA_MUTE,{mute:d})};this.getDisplayElement=function(){return B};this.hasChrome=function(){return!1}}})(jwplayer);(function(b){var f=b.utils.css;b.html5.mediayoutube=function(d,k){function o(d){if(e!=d){var f=e;e=j.state=d;h.sendEvent(b.api.events.JWPLAYER_PLAYER_STATE,{oldstate:f,
newstate:d})}}var h=new b.html5.eventdispatcher;b.utils.extend(this,h);var j=d,g=document.getElementById(k.id),e=b.api.events.state.IDLE,n,w;this.getDisplayElement=function(){return g};this.play=function(){e==b.api.events.state.IDLE?(h.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),h.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL),o(b.api.events.state.PLAYING)):e==b.api.events.state.PAUSED&&o(b.api.events.state.PLAYING)};this.pause=function(){o(b.api.events.state.PAUSED)};this.seek=
function(){};this.stop=function(d){_utils.exists(d)||(d=!0);j.position=0;o(b.api.events.state.IDLE);d&&f(g,{display:"none"})};this.volume=function(d){j.volume=d;h.sendEvent(b.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(d)})};this.mute=function(d){g.muted=d;j.mute=d;h.sendEvent(b.api.events.JWPLAYER_MEDIA_MUTE,{mute:d})};this.resize=function(d,e){if(d*e>0&&n)n.width=w.width=d,n.height=w.height=e;h.sendEvent(b.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:j.fullscreen,width:d,height:e})};this.fullscreen=
function(b){b===!0?this.resize("100%","100%"):this.resize(j.config.width,j.config.height)};this.load=function(d){for(var d=d.levels[0].file,e=d.split(/\?|\#\!/),j="",k=0;k<e.length;k++)e[k].substr(0,2)=="v="&&(j=e[k].substr(2));j==""&&(j=d.indexOf("/v/")>=0?d.substr(d.indexOf("/v/")+3):d.indexOf("youtu.be")>=0?d.substr(d.indexOf("youtu.be/")+9):d);j.indexOf("?")>-1&&(j=j.substr(0,j.indexOf("?")));j.indexOf("&")>-1&&(j=j.substr(0,j.indexOf("&")));d=["http://www.youtube.com/v/",j,"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");
n=document.createElement("object");n.id=g.id;n.style.position="absolute";var e={movie:d,allowfullscreen:"true",allowscriptaccess:"always"},q;for(q in e)j=document.createElement("param"),j.name=q,j.value=e[q],n.appendChild(j);w=document.createElement("embed");n.appendChild(w);q={src:d,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:n.width,height:n.height};for(var C in q)w.setAttribute(C,q[C]);n.appendChild(w);n.style.zIndex=2147483E3;g!=n&&g.parentNode&&
g.parentNode.replaceChild(n,g);g=n;f(n,{display:"block"});o(b.api.events.state.BUFFERING);h.sendEvent(b.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});h.sendEvent(b.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return e!=b.api.events.state.IDLE};this.embed=w;return this}})(jwplayer);(function(b){var f=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];b.html5.model=function(d,k,o){function h(d){var e=new b.html5.playlistloader;
e.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,function(d){n.playlist=new b.html5.playlist(d);j(!0)});e.addEventListener(b.api.events.JWPLAYER_ERROR,function(){n.playlist=new b.html5.playlist({playlist:[]});j(!1)});e.load(d)}function j(){if(n.config.shuffle){var d=n,e=null;if(n.playlist.length>1)for(;!b.utils.exists(e);)e=Math.floor(Math.random()*n.playlist.length),e==n.item&&(e=null);else e=0;d.item=e}else{if(n.config.item>=n.playlist.length)n.config.item=n.playlist.length-1;else if(n.config.item<
0)n.config.item=0;n.item=n.config.item}u.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:n.playlist});u.sendEvent(b.api.events.JWPLAYER_PLAYLIST_ITEM,{index:n.item})}function g(d){d.type==b.api.events.JWPLAYER_MEDIA_LOADED&&(e=w.getDisplayElement());u.sendEvent(d.type,d)}var e=k,n={id:e.id,playlist:[],state:b.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:void 0,file:void 0,image:void 0,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,
repeat:"",stretching:b.utils.stretching.UNIFORM,autostart:!1,debug:void 0,screencolor:void 0}},w,u=new b.html5.eventdispatcher;b.utils.extend(n,u);for(var s in o){typeof o[s]=="string"&&(k=/color$/.test(s)?"color":null,o[s]=b.utils.typechecker(o[s],k));var k=n.config,x=s.split("."),z;for(z in x)z==x.length-1?k[x[z]]=o[s]:(b.utils.exists(k[x[z]])||(k[x[z]]={}),k=k[x[z]])}for(var q in f)o=f[q],n[o]=n.config[o];q=["display","logo","controlbar","playlist","dock"].concat([]);if(b.utils.exists(n.plugins)&&
typeof n.plugins=="string"){var o=n.plugins.split(","),C;for(C in o)typeof o[C]=="string"&&q.push(o[C].replace(/^\s+|\s+$/g,""))}if(b.utils.isIOS()){if(q=["display","logo","dock","playlist"],!b.utils.exists(n.config.repeat))n.config.repeat="list"}else if(n.config.chromeless&&(q=["logo","dock","playlist"],!b.utils.exists(n.config.repeat)))n.config.repeat="list";n.plugins={order:q,config:{},object:{}};if(typeof n.config.components!="undefined")for(var B in n.config.components)n.plugins.config[B]=n.config.components[B];
for(var D in n.plugins.order)C=n.plugins.order[D],B=!b.utils.exists(n.plugins.config[C])?{}:n.plugins.config[C],n.plugins.config[C]=!b.utils.exists(n.plugins.config[C])?B:b.utils.extend(n.plugins.config[C],B),n.plugins.config[C].position=b.utils.exists(n.plugins.config[C].position)?n.plugins.config[C].position.toString().toUpperCase():C=="playlist"?b.html5.view.positions.NONE:b.html5.view.positions.OVER;if(typeof n.plugins.config.dock!="undefined"){if(typeof n.plugins.config.dock!="object")D=n.plugins.config.dock.toString().toUpperCase(),
n.plugins.config.dock={position:D};if(typeof n.plugins.config.dock.position!="undefined")n.plugins.config.dock.align=n.plugins.config.dock.position,n.plugins.config.dock.position=b.html5.view.positions.OVER}n.loadPlaylist=function(d){var e;if(typeof d=="string")if(d.indexOf("[")==0||d.indexOf("{")=="0")try{e=eval(d)}catch(f){e=d}else e=d;else e=d;switch(b.utils.typeOf(e)){case "object":d=e;break;case "array":d={playlist:e};break;default:h(e);return}n.playlist=new b.html5.playlist(d);b.utils.extension(n.playlist[0].file)==
"xml"?h(n.playlist[0].file):j()};var y={};n.setActiveMediaProvider=function(d){if(d.provider=="audio")d.provider="sound";var d=d.provider,f=w?w.getDisplayElement():null;if(d=="sound"||d=="http"||d=="")d="video";if(b.utils.exists(y[d]))w!=y[d]&&(w&&w.stop(),w=y[d]);else{switch(d){case "video":w=new b.html5.mediavideo(n,f?f:e);break;case "youtube":w=new b.html5.mediayoutube(n,f?f:e)}if(!b.utils.exists(w))return!1;w.addGlobalListener(g);y[d]=w}return!0};n.getMedia=function(){return w};n.seek=function(d){u.sendEvent(b.api.events.JWPLAYER_MEDIA_SEEK,
{position:n.position,offset:d});return w.seek(d)};n.setupPlugins=function(){if(!b.utils.exists(n.plugins)||!b.utils.exists(n.plugins.order)||n.plugins.order.length==0)return b.utils.log("No plugins to set up"),n;for(var e=0;e<n.plugins.order.length;e++)try{var f=n.plugins.order[e];b.utils.exists(b.html5[f])?n.plugins.object[f]=f=="playlist"?new b.html5.playlistcomponent(d,n.plugins.config[f]):new b.html5[f](d,n.plugins.config[f]):n.plugins.order.splice(plugin,plugin+1);typeof n.plugins.object[f].addGlobalListener==
"function"&&n.plugins.object[f].addGlobalListener(g)}catch(h){b.utils.log("Could not setup "+f)}};return n}})(jwplayer);(function(b){b.html5.playlist=function(f){var d=[];if(f.playlist&&f.playlist instanceof Array&&f.playlist.length>0)for(var k in f.playlist)isNaN(parseInt(k))||d.push(new b.html5.playlistitem(f.playlist[k]));else d.push(new b.html5.playlistitem(f));return d}})(jwplayer);(function(b){var f={size:180,position:b.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",
activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},d={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=b.utils;_css=_utils.css;_hide=function(b){_css(b,{display:"none"})};_show=function(b){_css(b,{display:"block"})};b.html5.playlistcomponent=function(k,o){function h(b){return function(){var d=y.getElementsByClassName("item")[b],e=z.fontcolor,f=E.item?"url("+E.item.src+")":"";
if(b==x.jwGetPlaylistIndex()){if(z.activecolor!=="")e=z.activecolor;E.itemActive&&(f="url("+E.itemActive.src+")")}_css(d,{color:z.overcolor!==""?z.overcolor:e,backgroundImage:E.itemOver?"url("+E.itemOver.src+")":f})}}function j(b){return function(){var d=y.getElementsByClassName("item")[b],e=z.fontcolor,f=E.item?"url("+E.item.src+")":"";if(b==x.jwGetPlaylistIndex()){if(z.activecolor!=="")e=z.activecolor;E.itemActive&&(f="url("+E.itemActive.src+")")}_css(d,{color:e,backgroundImage:f})}}function g(d){var e=
D[d],f=document.createElement("li");f.className="item";_css(f,{height:z.itemheight,display:"block",cursor:"pointer",backgroundImage:E.item?"url("+E.item.src+")":"",backgroundSize:"100% "+z.itemheight+"px"});f.onmouseover=h(d);f.onmouseout=j(d);var g=document.createElement("div"),k=new Image,n=d=0,o=0;if(z.thumbs.toString().toLowerCase()=="true"&&(e.image||e["playlist.image"]||E.itemImage)){k.className="image";E.itemImage?(d=(z.itemheight-E.itemImage.height)/2,n=E.itemImage.width,o=E.itemImage.height):
(n=z.itemheight*4/3,o=z.itemheight);_css(g,{height:o,width:n,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:d+"px",position:"relative"});_css(k,{position:"relative"});g.appendChild(k);k.onload=function(){b.utils.stretch(b.utils.stretching.FILL,k,n,o,this.naturalWidth,this.naturalHeight)};if(e["playlist.image"])k.src=e["playlist.image"];else if(e.image)k.src=e.image;else if(E.itemImage)k.src=E.itemImage.src;f.appendChild(g)}var q=C-n-
d*2;B<z.itemheight*D.length&&(q-=15);g=document.createElement("div");_css(g,{position:"relative",height:"100%",overflow:"hidden"});var m=document.createElement("span");if(e.duration>0)m.className="duration",_css(m,{fontSize:(z.fontsize?z.fontsize:11)+"px",fontWeight:z.fontweight?z.fontweight:"bold",width:"40px",height:z.fontsize?z.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"}),m.innerHTML=_utils.timeFormat(e.duration),g.appendChild(m);m=document.createElement("span");
m.className="title";_css(m,{padding:"5px 5px 0 "+(d?0:"5px"),height:z.fontsize?z.fontsize+10:20,lineHeight:z.fontsize?z.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:(e.duration>0?q-50:q)-10+"px",fontSize:(z.fontsize?z.fontsize:13)+"px",fontWeight:z.fontweight?z.fontweight:"bold"});m.innerHTML=e?e.title:"";g.appendChild(m);if(e.description)d=document.createElement("span"),d.className="description",_css(d,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",
margin:0,paddingLeft:m.style.paddingLeft,paddingRight:m.style.paddingRight,lineHeight:(z.fontsize?z.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),d.innerHTML=e.description,g.appendChild(d);f.appendChild(g);return f}function e(){q.innerHTML="";if(D=x.jwGetPlaylist()){items=[];var b=document.createElement("ul");_css(b,{width:q.style.width,minWidth:q.style.width,height:q.style.height,backgroundColor:z.backgroundcolor,backgroundImage:E.background?"url("+E.background.src+")":"",color:z.fontcolor,
listStyle:"none",margin:0,padding:0,fontFamily:d[z.font]?d[z.font]:d._sans,fontSize:(z.fontsize?z.fontsize:11)+"px",fontStyle:z.fontstyle,fontWeight:z.fontweight,overflowY:"auto"});y=b;for(b=0;b<D.length;b++){var e=g(b);e.onclick=n(b);y.appendChild(e);items.push(e)}r=x.jwGetPlaylistIndex();j(r)();q.appendChild(y);if(_utils.isIOS()&&window.iScroll)y.style.height=z.itemheight*D.length+"px",new iScroll(q.id)}}function n(b){return function(){x.jwPlaylistItem(b);x.jwPlay(!0)}}function w(b){if(r>=0)j(r)(),
r=b.index;j(b.index)();y.scrollTop=x.jwGetPlaylistIndex()*z.itemheight}function u(){if(z.position==b.html5.view.positions.OVER)switch(x.jwGetState()){case b.api.events.state.IDLE:_show(q);break;default:_hide(q)}}function s(){for(var b in E)E[b]=x.skin.getSkinElement("playlist",b)}var x=k,z=b.utils.extend({},f,x.skin.getComponentSettings("playlist"),o);if(!(z.position==b.html5.view.positions.NONE||typeof b.html5.view.positions[z.position]=="undefined")){var q,C,B,D,y,r=-1,E={background:void 0,item:void 0,
itemOver:void 0,itemImage:void 0,itemActive:void 0};this.getDisplayElement=function(){return q};this.resize=function(b,d){C=b;B=d;x.jwGetFullscreen()?_hide(q):_css(q,{display:"block",width:C,height:B})};this.show=function(){_show(q)};this.hide=function(){_hide(q)};q=document.createElement("div");q.id=x.id+"_jwplayer_playlistcomponent";switch(z.position){case b.html5.view.positions.RIGHT:case b.html5.view.positions.LEFT:q.style.width=z.size+"px";break;case b.html5.view.positions.TOP:case b.html5.view.positions.BOTTOM:q.style.height=
z.size+"px"}s();if(E.item)z.itemheight=E.item.height;q.style.backgroundColor="#C6C6C6";x.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,e);x.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,w);x.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,u);return this}}})(jwplayer);(function(b){function f(d){if(b.utils.isYouTube(d.file))return"youtube";else{var f=b.utils.extension(d.file),o;if(f&&b.utils.extensionmap[f]){if(f=="m3u8")return"video";o=b.utils.extensionmap[f].html5}else if(d.type)o=
d.type;if(o)if(d=o.split("/")[0],d=="audio")return"sound";else if(d=="video")return d}return""}b.html5.playlistitem=function(d){d=b.utils.extend({},{author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},d);if(d.type)d.provider=d.type,delete d.type;d.levels.length===0&&(d.levels[0]=new b.html5.playlistitemlevel(d));d.provider=d.provider?d.provider.toLowerCase():f(d.levels[0]);return d}})(jwplayer);
(function(b){b.html5.playlistitemlevel=function(f){var d={file:"",streamer:"",bitrate:0,width:0},k;for(k in d)b.utils.exists(f[k])&&(d[k]=f[k]);return d}})(jwplayer);(function(b){b.html5.playlistloader=function(){function f(f){var h=[];try{h=b.utils.parsers.rssparser.parse(f.responseXML.firstChild),k.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new b.html5.playlist({playlist:h})})}catch(j){d("Could not parse the playlist")}}function d(d){k.sendEvent(b.api.events.JWPLAYER_ERROR,{error:d?
d:"could not load playlist for whatever reason.  too bad"})}var k=new b.html5.eventdispatcher;b.utils.extend(this,k);this.load=function(k){b.utils.ajax(k,f,d)}}})(jwplayer);(function(b){b.html5.skin=function(){var f={},d=!1;this.load=function(k,o){new b.html5.skinloader(k,function(b){d=!0;f=b;o()},function(){new b.html5.skinloader("",function(b){d=!0;f=b;o()})})};this.getSkinElement=function(k,o){if(d)try{return f[k].elements[o]}catch(h){b.utils.log("No such skin component / element: ",[k,o])}return null};
this.getComponentSettings=function(b){if(d)return f[b].settings;return null};this.getComponentLayout=function(b){if(d)return f[b].layout;return null}}})(jwplayer);(function(b){b.html5.skinloader=function(f,d,k){function o(d){d=d.getElementsByTagName("component");if(d.length!==0)for(var e=0;e<d.length;e++){var f=d[e].getAttribute("name");g[f]={settings:{},elements:{},layout:{}};for(var k=d[e].getElementsByTagName("elements")[0].getElementsByTagName("element"),n=0;n<k.length;n++)j(k[n],f);if((k=d[e].getElementsByTagName("settings")[0])&&
k.childNodes.length>0){k=k.getElementsByTagName("setting");for(n=0;n<k.length;n++){var o=k[n].getAttribute("name"),r=k[n].getAttribute("value"),s=/color$/.test(o)?"color":null;g[f].settings[o]=b.utils.typechecker(r,s)}}if((k=d[e].getElementsByTagName("layout")[0])&&k.childNodes.length>0){k=k.getElementsByTagName("group");for(n=0;n<k.length;n++){o=k[n];g[f].layout[o.getAttribute("position")]={elements:[]};for(r=0;r<o.attributes.length;r++)s=o.attributes[r],g[f].layout[o.getAttribute("position")][s.name]=
s.value;r=o.getElementsByTagName("*");for(s=0;s<r.length;s++){var u=r[s];g[f].layout[o.getAttribute("position")].elements.push({type:u.tagName});for(var x=0;x<u.attributes.length;x++){var L=u.attributes[x];g[f].layout[o.getAttribute("position")].elements[s][L.name]=L.value}if(!b.utils.exists(g[f].layout[o.getAttribute("position")].elements[s].name))g[f].layout[o.getAttribute("position")].elements[s].name=u.tagName}}}w=!1;h()}}function h(){clearInterval(u);x||(u=setInterval(function(){a:{for(var b in g)if(b!=
"properties")for(var d in g[b].elements)if(!g[b].elements[d].ready)break a;w===!1&&(clearInterval(u),e(g))}},100))}function j(d,e){var f=new Image,j=d.getAttribute("name"),k=d.getAttribute("src");if(k.indexOf("data:image/png;base64,")!==0)var o=b.utils.getAbsolutePath(s),k=[o.substr(0,o.lastIndexOf("/")),e,k].join("/");g[e].elements[j]={height:0,width:0,src:"",ready:!1,image:f};f.onload=function(){g[e]&&g[e].elements[j]?(g[e].elements[j].height=f.height,g[e].elements[j].width=f.width,g[e].elements[j].src=
f.src,g[e].elements[j].ready=!0,h()):b.utils.log("Loaded an image for a missing element: "+e+"."+j)};f.onerror=function(){x=!0;h();n()};f.src=k}var g={},e=d,n=k,w=!0,u,s=f,x=!1;(function(){typeof s!="string"||s===""?o(b.html5.defaultSkin().xml):b.utils.ajax(b.utils.getAbsolutePath(s),function(d){try{if(b.utils.exists(d.responseXML)){o(d.responseXML);return}}catch(e){for(var f in g){var d=g[f],h;for(h in d.elements){var j=d.elements[h],k=j.image;k.onload=null;k.onerror=null;delete j.image;delete d.elements[h]}delete g[f]}}o(b.html5.defaultSkin().xml)},
function(){o(b.html5.defaultSkin().xml)})})()}})(jwplayer);(function(b){b.html5.api=function(f,d){function k(){w.state==b.api.events.state.PLAYING||w.state==b.api.events.state.BUFFERING?s.pause():s.play()}function o(b){return function(){return w[b]}}function h(b,d,e){return function(){var f=w.plugins.object[b];f&&f[d]&&typeof f[d]=="function"&&f[d].apply(f,e)}}function j(){w.config.playlistfile?(w.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,g),w.loadPlaylist(w.config.playlistfile)):typeof w.config.playlist==
"string"?(w.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,g),w.loadPlaylist(w.config.playlist)):(w.loadPlaylist(w.config),setTimeout(g,25))}function g(d){w.removeEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,g);w.setupPlugins();u.setup();d={id:e.id,version:e.version};s.playerReady(d)}var e={},n=document.createElement("div");f.parentNode.replaceChild(n,f);n.id=f.id;e.version=b.version;e.id=n.id;var w=new b.html5.model(e,n,d),u=new b.html5.view(e,n,w),s=new b.html5.controller(e,n,w,u);
e.skin=new b.html5.skin;e.jwPlay=function(b){typeof b=="undefined"?k():b.toString().toLowerCase()=="true"?s.play():s.pause()};e.jwPause=function(b){typeof b=="undefined"?k():b.toString().toLowerCase()=="true"?s.pause():s.play()};e.jwStop=s.stop;e.jwSeek=s.seek;e.jwPlaylistItem=s.item;e.jwPlaylistNext=s.next;e.jwPlaylistPrev=s.prev;e.jwResize=s.resize;e.jwLoad=s.load;e.jwGetItem=o("item");e.jwGetPosition=o("position");e.jwGetDuration=o("duration");e.jwGetBuffer=o("buffer");e.jwGetWidth=o("width");
e.jwGetHeight=o("height");e.jwGetFullscreen=o("fullscreen");e.jwSetFullscreen=s.setFullscreen;e.jwGetVolume=o("volume");e.jwSetVolume=s.setVolume;e.jwGetMute=o("mute");e.jwSetMute=s.setMute;e.jwGetStretching=o("stretching");e.jwGetState=o("state");e.jwGetVersion=function(){return e.version};e.jwGetPlaylist=function(){return w.playlist};e.jwGetPlaylistIndex=e.jwGetItem;e.jwAddEventListener=s.addEventListener;e.jwRemoveEventListener=s.removeEventListener;e.jwSendEvent=s.sendEvent;e.jwDockSetButton=
function(b,d,e,f){w.plugins.object.dock&&w.plugins.object.dock.setButton&&w.plugins.object.dock.setButton(b,d,e,f)};e.jwControlbarShow=h("controlbar","show");e.jwControlbarHide=h("controlbar","hide");e.jwDockShow=h("dock","show");e.jwDockHide=h("dock","hide");e.jwDisplayShow=h("display","show");e.jwDisplayHide=h("display","hide");e.jwGetLevel=function(){};e.jwGetBandwidth=function(){};e.jwGetLockState=function(){};e.jwLock=function(){};e.jwUnlock=function(){};w.config.chromeless&&!b.utils.isIOS()?
j():e.skin.load(w.config.skin,j);return e}})(jwplayer)};window.Modernizr=function(b,f,d){function k(b,d){return typeof b===d}function o(b,e){for(var f in b)if(w[b[f]]!==d)return e=="pfx"?b[f]:!0;return!1}function h(b,d){var e=b.charAt(0).toUpperCase()+b.substr(1),e=(b+" "+q.join(e+" ")+e).split(" ");return o(e,d)}function j(){g.input=function(b){for(var d=0,e=b.length;d<e;d++)D[b[d]]=!!(b[d]in u);return D}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));g.inputtypes=function(b){for(var g=0,h,j,k=b.length;g<
k;g++){u.setAttribute("type",j=b[g]);if(h=u.type!=="text")u.value=s,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(j)&&u.style.WebkitAppearance!==d?(e.appendChild(u),h=f.defaultView,h=h.getComputedStyle&&h.getComputedStyle(u,null).WebkitAppearance!=="textfield"&&u.offsetHeight!==0,e.removeChild(u)):/^(search|tel)$/.test(j)||(/^(url|email)$/.test(j)?h=u.checkValidity&&u.checkValidity()===!1:/^color$/.test(j)?(e.appendChild(u),h=u.value!=s,e.removeChild(u)):h=u.value!=s);B[b[g]]=
!!h}return B}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var g={},e=f.documentElement;f.head||f.getElementsByTagName("head");var n=f.createElement("modernizr"),w=n.style,u=f.createElement("input"),s=":)",x=Object.prototype.toString,z=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),q="Webkit Moz O ms Khtml".split(" "),C={svg:"http://www.w3.org/2000/svg"},n={},B={},D={},y=[],r,E=function(b,d,g,h){var j,k=f.createElement("div");if(parseInt(g,10))for(;g--;)j=
f.createElement("div"),j.id=h?h[g]:"modernizr"+(g+1),k.appendChild(j);g=["&shy;<style>",b,"</style>"].join("");k.id="modernizr";k.innerHTML+=g;e.appendChild(k);b=d(k,b);k.parentNode.removeChild(k);return!!b},I=function(){var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(e,g){var g=g||f.createElement(b[e]||"div"),e="on"+e,h=e in g;h||(g.setAttribute||(g=f.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(e,""),
h=k(g[e],"function"),k(g[e],d)||(g[e]=d),g.removeAttribute(e)));return h}}(),F={}.hasOwnProperty,L;L=!k(F,d)&&!k(F.call,d)?function(b,d){return F.call(b,d)}:function(b,e){return e in b&&k(b.constructor.prototype[e],d)};(function(d,e){var h=d.join(""),j=e.length;E(h,function(d,e){for(var h=f.styleSheets[f.styleSheets.length-1],h=h.cssRules&&h.cssRules[0]?h.cssRules[0].cssText:h.cssText||"",k=d.childNodes,n={};j--;)n[k[j].id]=k[j];g.touch="ontouchstart"in b||n.touch.offsetTop===9;g.csstransforms3d=
n.csstransforms3d.offsetLeft===9;g.generatedcontent=n.generatedcontent.offsetHeight>=1;g.fontface=/src/i.test(h)&&h.indexOf(e.split(" ")[0])===0},j,e)})(['@font-face {font-family:"font";src:url("https://")}',["@media (",z.join("touch-enabled),("),"modernizr){#touch{top:9px;position:absolute}}"].join(""),["@media (",z.join("transform-3d),("),"modernizr){#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',s,'";visibility:hidden}'].join("")],["fontface","touch",
"csstransforms3d","generatedcontent"]);n.flexbox=function(){var b=f.createElement("div"),d=f.createElement("div");(function(b,d,e,f){d+=":";b.style.cssText=(d+z.join(e+";"+d)).slice(0,-d.length)+(f||"")})(b,"display","box","width:42px;padding:0;");d.style.cssText=z.join("box-flex:1;")+"width:10px;";b.appendChild(d);e.appendChild(b);var g=d.offsetWidth===42;b.removeChild(d);e.removeChild(b);return g};n.canvas=function(){var b=f.createElement("canvas");return!(!b.getContext||!b.getContext("2d"))};n.canvastext=
function(){return!(!g.canvas||!k(f.createElement("canvas").getContext("2d").fillText,"function"))};n.webgl=function(){return!!b.WebGLRenderingContext};n.touch=function(){return g.touch};n.geolocation=function(){return!!navigator.geolocation};n.postmessage=function(){return!!b.postMessage};n.websqldatabase=function(){return!!b.openDatabase};n.indexedDB=function(){for(var d=-1,e=q.length;++d<e;)if(b[q[d].toLowerCase()+"IndexedDB"])return!0;return!!b.indexedDB};n.hashchange=function(){return I("hashchange",
b)&&(f.documentMode===d||f.documentMode>7)};n.history=function(){return!(!b.history||!history.pushState)};n.draganddrop=function(){return I("dragstart")&&I("drop")};n.websockets=function(){for(var d=-1,e=q.length;++d<e;)if(b[q[d]+"WebSocket"])return!0;return"WebSocket"in b};n.rgba=function(){w.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+w.backgroundColor).indexOf("rgba")};n.hsla=function(){w.cssText="background-color:hsla(120,40%,100%,.5)";return!!~(""+w.backgroundColor).indexOf("rgba")||
!!~(""+w.backgroundColor).indexOf("hsla")};n.multiplebgs=function(){w.cssText="background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(w.background)};n.backgroundsize=function(){return h("backgroundSize")};n.borderimage=function(){return h("borderImage")};n.borderradius=function(){return h("borderRadius")};n.boxshadow=function(){return h("boxShadow")};n.textshadow=function(){return f.createElement("div").style.textShadow===""};n.opacity=function(){var b=z.join("opacity:.55;")+
"";w.cssText=b;return/^0.55$/.test(w.opacity)};n.cssanimations=function(){return h("animationName")};n.csscolumns=function(){return h("columnCount")};n.cssgradients=function(){var b=("background-image:"+z.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+z.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);w.cssText=b;return!!~(""+w.backgroundImage).indexOf("gradient")};n.cssreflections=function(){return h("boxReflect")};n.csstransforms=
function(){return!!o(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};n.csstransforms3d=function(){var b=!!o(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);b&&"webkitPerspective"in e.style&&(b=g.csstransforms3d);return b};n.csstransitions=function(){return h("transitionProperty")};n.fontface=function(){return g.fontface};n.generatedcontent=function(){return g.generatedcontent};n.video=function(){var b=f.createElement("video"),
d=!1;try{if(d=!!b.canPlayType)d=new Boolean(d),d.ogg=b.canPlayType('video/ogg; codecs="theora"'),d.h264=b.canPlayType('video/mp4; codecs="avc1.42E01E"')||b.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),d.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"')}catch(e){}return d};n.audio=function(){var b=f.createElement("audio"),d=!1;try{if(d=!!b.canPlayType)d=new Boolean(d),d.ogg=b.canPlayType('audio/ogg; codecs="vorbis"'),d.mp3=b.canPlayType("audio/mpeg;"),d.wav=b.canPlayType('audio/wav; codecs="1"'),
d.m4a=b.canPlayType("audio/x-m4a;")||b.canPlayType("audio/aac;")}catch(e){}return d};n.localstorage=function(){try{return!!localStorage.getItem}catch(b){return!1}};n.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(b){return!1}};n.webworkers=function(){return!!b.Worker};n.applicationcache=function(){return!!b.applicationCache};n.svg=function(){return!!f.createElementNS&&!!f.createElementNS(C.svg,"svg").createSVGRect};n.inlinesvg=function(){var b=f.createElement("div");b.innerHTML=
"<svg/>";return(b.firstChild&&b.firstChild.namespaceURI)==C.svg};n.smil=function(){return!!f.createElementNS&&/SVG/.test(x.call(f.createElementNS(C.svg,"animate")))};n.svgclippaths=function(){return!!f.createElementNS&&/SVG/.test(x.call(f.createElementNS(C.svg,"clipPath")))};for(var O in n)L(n,O)&&(r=O.toLowerCase(),g[r]=n[O](),y.push((g[r]?"":"no-")+r));g.input||j();g.addTest=function(b,f){if(typeof b=="object")for(var h in b)L(b,h)&&g.addTest(h,b[h]);else{b=b.toLowerCase();if(g[b]!==d)return;f=
typeof f=="boolean"?f:!!f();e.className+=" "+(f?"":"no-")+b;g[b]=f}return g};w.cssText="";n=u=null;b.attachEvent&&function(){var b=f.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1}()&&function(b,e){function f(b){for(var d=-1;++d<k;)b.createElement(j[d])}b.iepp=b.iepp||{};var g=b.iepp,h=g.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",j=h.split("|"),k=
j.length,n=RegExp("(^|\\s)("+h+")","gi"),o=RegExp("<(/*)("+h+")","gi"),q=/^\s*[\{\}]\s*$/,r=RegExp("(^|[^\\n]*?\\s)("+h+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),p=e.createDocumentFragment(),s=e.documentElement,h=s.firstChild,u=e.createElement("body"),w=e.createElement("style"),y=/print|all/,x;g.getCSS=function(b,e){if(b+""===d)return"";for(var f=-1,h=b.length,j,k=[];++f<h;)j=b[f],j.disabled||(e=j.media||e,y.test(e)&&k.push(g.getCSS(j.imports,e),j.cssText),e="all");return k.join("")};g.parseCSS=function(b){for(var d=
[],e;(e=r.exec(b))!=null;)d.push(((q.exec(e[1])?"\n":e[1])+e[2]+e[3]).replace(n,"$1.iepp_$2")+e[4]);return d.join("\n")};g.writeHTML=function(){var b=-1;for(x=x||e.body;++b<k;)for(var d=e.getElementsByTagName(j[b]),f=d.length,g=-1;++g<f;)d[g].className.indexOf("iepp_")<0&&(d[g].className+=" iepp_"+j[b]);p.appendChild(x);s.appendChild(u);u.className=x.className;u.id=x.id;u.innerHTML=x.innerHTML.replace(o,"<$1font")};g._beforePrint=function(){w.styleSheet.cssText=g.parseCSS(g.getCSS(e.styleSheets,"all"));
g.writeHTML()};g.restoreHTML=function(){u.innerHTML="";s.removeChild(u);s.appendChild(x)};g._afterPrint=function(){g.restoreHTML();w.styleSheet.cssText=""};f(e);f(p);if(!g.disablePP)h.insertBefore(w,h.firstChild),w.media="print",w.className="iepp-printshim",b.attachEvent("onbeforeprint",g._beforePrint),b.attachEvent("onafterprint",g._afterPrint)}(b,f);g._version="2.0.6";g._prefixes=z;g._domPrefixes=q;g.mq=function(d){if(b.matchMedia)return matchMedia(d).matches;var e;E("@media "+d+" { #modernizr { position: absolute; } }",
function(d){e=(b.getComputedStyle?getComputedStyle(d,null):d.currentStyle).position=="absolute"});return e};g.hasEvent=I;g.testProp=function(b){return o([b])};g.testAllProps=h;g.testStyles=E;g.prefixed=function(b){return h(b,"pfx")};e.className=e.className.replace(/\bno-js\b/,"")+(" js "+y.join(" "));return g}(this,this.document);(function(){var b=navigator.userAgent.match(/(ipad|iphone|ipod)/i)!=null;Modernizr.addTest("ios",b);Modernizr.addTest("file",function(){var b=document.createElement("INPUT");b.type="file";return"files"in b})})();if(typeof sz=="undefined")var sz={};if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.curate=="undefined")sz.tmpl.curate={};sz.tmpl.curate.curate=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-navigator"></div><div class="szi-workspace"></div>');if(!f)return d.toString()};sz.tmpl.curate.workspace=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-container"></div>');if(!f)return d.toString()};
sz.tmpl.curate.modelEditor=function(b,f){var d=f||new soy.StringBuilder;d.append(b.title?"<h1>"+soy.$$escapeHtml(b.title)+"</h1>":"",'<div class="szi-errors"></div><div class="szi-editor"></div><div class="szi-ft"><div class="szi-delete">Delete</div><div class="szi-save">Save</div><div class="szi-cancel">Cancel</div></div>');if(!f)return d.toString()};
sz.tmpl.curate.tagItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-tag-curate-item',!b.tag.featured?" sz-tag-curate-item-not-featured":"",'" data-sz-tag-id="',soy.$$escapeHtml(b.tag.id),'"><div class="szi-name">',soy.$$escapeHtml(b.tag.name),"</div></div>");if(!f)return d.toString()};
sz.tmpl.curate.tagList=function(b,f){var d=f||new soy.StringBuilder;d.append('<h1>Tags</h1><div class="szi-bd"><div class="szi-actions"><span class="szi-new-tag">New Tag</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div><div class="szi-list"></div></div>');
if(!f)return d.toString()};
sz.tmpl.curate.tagDetails=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>',soy.$$escapeHtml(b.tag.name),'</h1><div class="szi-actions"><span class="szi-edit">Edit</span>,<span class="szi-new-gallery">New Gallery</span>,<span class="szi-add-gallery">Add Gallery</span>,<span class="szi-organize-toggle">Organize</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),
'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div></div><div class="szi-bd"><div class="szi-list"></div><div class="szi-organize-options"><span class="szi-organize-revert">Cancel</span><span class="szi-organize-save">Save</span></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.galleryItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-gallery-curate-item" data-sz-gallery-id="',soy.$$escapeHtml(b.gallery.id),'"><div class="szi-name">',soy.$$escapeHtml(b.gallery.name),'</div><div class="szi-tags">');for(var k=b.gallery.tags,o=k.length,h=0;h<o;h++)d.append(soy.$$escapeHtml(k[h].name),h!=o-1?",":"");d.append('</div><div class="szi-count">',soy.$$escapeHtml(b.gallery.station_ids.length),'</div><div class="szi-organize-toggle-deleted"></div></div>');
if(!f)return d.toString()};
sz.tmpl.curate.galleryList=function(b,f){var d=f||new soy.StringBuilder;d.append('<h1>Galleries</h1><div class="szi-bd"><div class="szi-actions"><span class="szi-new-gallery">New Gallery</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div><div class="szi-list"></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.gallerySearch=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>Find a Gallery</h1><div class="szi-actions">&nbsp;</div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div></div><div class="szi-bd"><div class="szi-gallery-list"></div></div>');
if(!f)return d.toString()};
sz.tmpl.curate.galleryDetails=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>',soy.$$escapeHtml(b.gallery.name),'</h1><div class="szi-actions"><span class="szi-edit">Edit</span>,<span class="szi-add-station">Add Station</span>,<span class="szi-organize-toggle">Organize</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',
soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div></div><div class="szi-bd"><div class="szi-list"></div><div class="szi-organize-options"><span class="szi-organize-revert">Cancel</span><span class="szi-organize-save">Save</span></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.stationItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-station-curate-item" data-sz-station-id="',soy.$$escapeHtml(b.station.id),'"><div class="szi-image"><img src="',soy.$$escapeHtml(b.station.cover_url),'?size=50" class="szi-quilt" /></div><div class="szi-info"><div class="szi-name">',soy.$$escapeHtml(b.station.name),'</div><div class="szi-extended">',b.station.creator_id?soy.$$escapeHtml(b.station.creator_name)+" /&nbsp;":"",soy.$$escapeHtml(b.station.status),
" / ",soy.$$escapeHtml(b.station.song_count),' songs</div></div><div class="szi-organize-toggle-deleted"></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.stationSearchList=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>Search for Playlists</h1><div class="szi-actions"><span class="szi-done">Done</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div></div></div><div class="szi-bd"><div class="szi-station-list"></div></div>');
if(!f)return d.toString()};sz.tmpl.curate.promotionProductList=function(b,f){var d=f||new soy.StringBuilder;d.append('<h1>Promotions</h1><div class="szi-bd"><div class="szi-list"><ul>');for(var k=b.products,o=k.length,h=0;h<o;h++){var j=k[h];d.append('<li class="szi-product-item" data-sz-product="',soy.$$escapeHtml(j),'">',soy.$$escapeHtml(j),"</li>")}d.append("</ul></div></div>");if(!f)return d.toString()};
sz.tmpl.curate.promoDetails=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>Promotions: ',soy.$$escapeHtml(b.product),'</h1><div class="szi-actions"><span class="szi-new-promo">New Promotion</span></div></div><div class="szi-bd"><div class="szi-list"></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.promoItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-promo-curate-item" data-sz-promo-id="',soy.$$escapeHtml(b.promo.id),'"><div class="szi-name">',soy.$$escapeHtml(b.promo.station.name),'</div><div class="szi-status',b.promo.active?" szi-active":"",'">',b.promo.active?"Active":"Inactive",'</div><div class="szi-image"><img src="',soy.$$escapeHtml(b.promo.image_url),'" /></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.situationList=function(b,f){var d=f||new soy.StringBuilder;d.append("<h1>",soy.$$escapeHtml(b.situation_name_plural),'</h1><div class="szi-bd"><div class="szi-actions"><span class="szi-new-situation">New ',soy.$$escapeHtml(b.situation_name_singular),'</span><span class="szi-organize-toggle">Organize</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',
soy.$$escapeHtml(b.query),'" /><input type="button" value="Search" /></div>');sz.tmpl.curate.select_one({cssClass:"szi-device",options:b.device_options,selectedValue:b.device_choice},d);sz.tmpl.curate.select_one({cssClass:"szi-day",options:b.dow_options,selectedValue:b.dow_choice},d);sz.tmpl.curate.select_one({cssClass:"szi-time",options:b.time_options,selectedValue:b.time_choice},d);d.append('</div><div class="szi-list"></div><div class="szi-organize-options"><span class="szi-organize-revert">Cancel</span><span class="szi-organize-save">Save</span></div></div>');
if(!f)return d.toString()};sz.tmpl.curate.select_one=function(b,f){var d=f||new soy.StringBuilder;d.append('<select class="',soy.$$escapeHtml(b.cssClass),'">');for(var k=b.options,o=k.length,h=0;h<o;h++){var j=k[h];d.append('<option value="',soy.$$escapeHtml(j.value),'"',j.value==b.selectedValue?" selected":"",">",soy.$$escapeHtml(j.label),"</option>")}d.append("</select>");if(!f)return d.toString()};
sz.tmpl.curate.situationItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-situation-curate-item" data-sz-situation-id="',soy.$$escapeHtml(b.situation.id),'"><div class="szi-title">',soy.$$escapeHtml(b.situation.title),'</div><div class="szi-status',b.situation.active?" szi-active":"",'">',b.situation.active?"Active":"Inactive",'</div><div class="szi-organize-toggle-deleted"></div></div>');if(!f)return d.toString()};
sz.tmpl.curate.situationStationList=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-hd"><h1>Stations</h1><div class="szi-actions"><span class="szi-add-station">Add Station</span>,<span class="szi-organize-toggle">Organize</span></div><div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),
'" /><input type="button" value="Search" /></div></div></div><div class="szi-bd"><div class="szi-list"></div><div class="szi-organize-options"><span class="szi-organize-revert">Cancel</span><span class="szi-organize-save">Save</span></div></div>');if(!f)return d.toString()};typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.feeds=="undefined")sz.tmpl.feeds={};
sz.tmpl.feeds.formatActors=function(b,f){var d=f||new soy.StringBuilder;if(b.actors.length==1)d.append('<a href="/user/',soy.$$escapeHtml(b.actors[0].username),'/">',soy.$$escapeHtml(b.actors[0].display_name),"</a>");else for(var k=b.actors,o=k.length,h=0;h<o;h++){var j=k[h];d.append(h<3?'<a href="/user/'+soy.$$escapeHtml(j.username)+'/">'+soy.$$escapeHtml(j.display_name)+"</a>"+(!(h==o-1||h==2)?h==1||h==b.actors.length-2?" and ":" ,":""):"")}if(!f)return d.toString()};
sz.tmpl.feeds.feedItemMessage=function(b,f){var d=f||new soy.StringBuilder;b.item.event_type=="listen"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append("&thinsp;",b.item.actors.length==1?"is":"are"," listening to:")):b.item.event_type=="thumbs_up"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append('&thinsp; gave "',soy.$$escapeHtml(b.item.song.title)," a 'thumbs up' on:")):b.item.event_type=="station_name_change"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append("&thinsp; changed the name of")):
b.item.event_type=="station_desc_change"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append("&thinsp; changed the description of")):b.item.event_type=="song_add"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append('&thinsp; added "',soy.$$escapeHtml(b.item.song.title)," to")):b.item.event_type=="simple_create"||b.item.event_type=="advanced_create"?(sz.tmpl.feeds.formatActors({actors:b.item.actors},d),d.append("&thinsp; created")):d.append(soy.$$escapeHtml(b.item.message));if(!f)return d.toString()};
sz.tmpl.feeds.feedList=function(b,f){var d=f||new soy.StringBuilder;if(b.fetching)d.append('<div class="szi-fetching">Fetching Feed</div>');else if(b.items.length>0){d.append("<ol>");for(var k=b.items,o=k.length,h=0;h<o;h++){var j=k[h];d.append("<li",h==o-1?' class="szi-last"':"",'><div class="sz-feed-item',j.is_new?" sz-feed-item-new":"",'"><div class="szi-actor"><img src="',soy.$$escapeHtml(j.actor_pic),'" /></div><div class="szi-body"><div class="szi-actors">');sz.tmpl.feeds.feedItemMessage({item:j},
d);d.append('</div><div class="szi-message"><a href="',soy.$$escapeHtml(j.station_url),'" data-sz-station-id="',soy.$$escapeHtml(j.station.id),'">',soy.$$escapeHtml(j.station.name),'</a></div><div class="szi-description">',j.station.description?soy.$$escapeHtml(j.station.description):"&nbsp;",'</div><div class="szi-time">',soy.$$escapeHtml(j.ts_text),'</div></div><div class="szi-action"><img src="',soy.$$escapeHtml(j.station.cover_url),'?size=50" /></div></div></li>')}d.append("</ol>")}else d.append('<div class="szi-empty">No Recent Items.</div>');
if(!f)return d.toString()};typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.follow=="undefined")sz.tmpl.follow={};
sz.tmpl.follow.followButton=function(b,f){var d=f||new soy.StringBuilder;d.append(b.anonymous?'<div class="sz-follow sz-follow-anonymous"><div class="szi-follow">Follow</div><div class="szi-login-prompt completed"><a href="'+soy.$$escapeHtml(b.signup_url)+'">Sign up</a> or <a href="'+soy.$$escapeHtml(b.login_url)+'">Log in</a> to follow.</div></div>':'<div class="sz-follow '+(b.following?"sz-follow-following":"sz-follow-not-following")+'"><div class="szi-following completed">Following</div><div class="szi-unfollow">Unfollow</div><div class="szi-follow">Follow</div></div>');
if(!f)return d.toString()};typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.navigate=="undefined")sz.tmpl.navigate={};sz.tmpl.navigate.userView=function(b,f){var d=f||new soy.StringBuilder;d.append('<h2>Me</h2><ol><li><a href="',soy.$$escapeHtml(b.collection_url),'">My Playlists</li><li><a href="',soy.$$escapeHtml(b.collection_url),'">Recent</li><li><a href="',soy.$$escapeHtml(b.friends_url),'">Friends</li></ol>');if(!f)return d.toString()};
sz.tmpl.navigate.searchView=function(b,f){var d=f||new soy.StringBuilder;d.append('<h2>Search</h2><input type="search" placeholder="Playlist Search" />');if(!f)return d.toString()};
sz.tmpl.navigate.discoverView=function(b,f){var d=f||new soy.StringBuilder;d.append('<h2>Discover</h2><div class="nav">');for(var k=b.tags,o=k.length,h=0;h<o;h++){var j=k[h];d.append("<h3>",soy.$$escapeHtml(j.name),"</h3><div><ol>");for(var j=j.galleries,g=j.length,e=0;e<g;e++){var n=j[e];d.append('<li><a href="',soy.$$escapeHtml(n.url),'" class="gallery-link" data-sz-gallery-id="',soy.$$escapeHtml(n.id),'">',soy.$$escapeHtml(n.name),"</a></li>")}d.append("</ol></div>")}d.append("</div>");if(!f)return d.toString()};
typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.player=="undefined")sz.tmpl.player={};
sz.tmpl.player.rollSong=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-roll-song',b.song.vote=="up"?" szi-voted-up":"",b.song.vote=="down"?" szi-voted-down":"",'"><div class="szi-art"><img src="',soy.$$escapeHtml(b.song.image_url),'" /></div><div class="szi-title">',soy.$$escapeHtml(b.song.title),'</div><div class="szi-artist">',soy.$$escapeHtml(b.song.artist),'</div><div class="szi-actions">',b.song.streamSong?'<span data-sz-song-id="'+soy.$$escapeHtml(b.song_id)+'" title="Thumbs Up"   class="szi-vote-up-button">Thumbs Up</span><span data-sz-song-id="'+
soy.$$escapeHtml(b.song_id)+'" title="Thumbs Down" class="szi-vote-down-button">Thumbs Down</span>'+(b.station.creator_id==b.visitor.id?b.song.banned?'<span data-sz-song-id="'+soy.$$escapeHtml(b.song_id)+'" title="Add Song" class="szi-add-button">Add Song</span>':'<span data-sz-song-id="'+soy.$$escapeHtml(b.song_id)+'" title="Ban Song" class="szi-ban-button">Ban Song</span>':""):"","</div></div>");if(!f)return d.toString()};
sz.tmpl.player.player=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-history"><div class="container"><h2><a href="',soy.$$escapeHtml(b.station_url),'">',soy.$$escapeHtml(b.station.name),"</a>",b.station.allow_song_adds&&b.visitor.id!=0?'<span class="szi-add_songs"><a href="'+soy.$$escapeHtml(b.station_edit_url)+'">Add Songs</a></span>':"","</h2>");if(b.history.length>0){d.append("<ul>");for(var k=b.history,o=k.length,h=0;h<o;h++){var j=k[h];d.append("<li",h==o-1?' class="szi-last"':
"",">");sz.tmpl.player.rollSong(j,d);d.append("</li>")}d.append("</ul>")}else d.append('<div class="szi-empty">There are currently no previously played songs in ',soy.$$escapeHtml(b.station.name),".</div>");d.append('</div></div><div class="szi-error"><div class="container"></div></div><\!-- essential control elements, everything that is always on the page. --\><div class="szi-essential"><div class="szi-progress"></div><div class="container"><\!-- control area, play/pause/skip buttons, song title, artist, and thumbs up/down --\><div class="szi-controls"><span class="szi-play-button"  title="Play">play</span><span class="szi-pause-button" title="Pause">pause</span><span class="szi-skip-button"  title="Skip">skip</span><div class="szi-volume"></div></div><div class="szi-song-display">');
b.song&&sz.tmpl.player.rollSong(b.song,d);d.append('<div class="szi-buffering"></div><div class="szi-no-song"><div class="szi-art"><img src="',soy.$$escapeHtml(b.station.cover_url),'?size=50" /></div><div class="szi-title">',soy.$$escapeHtml(b.station.name),'</div><div class="szi-subtitle"></div></div><div class="szi-fetching-next"><div class="szi-art"><img src="',soy.$$escapeHtml(b.station.cover_url),'?size=50" /></div><div class="szi-title">',soy.$$escapeHtml(b.station.name),'</div><div class="szi-subtitle">Loading next song ...</div></div></div><div class="szi-share-buttons"></div></div></div>');
if(!f)return d.toString()};typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.shelf=="undefined")sz.tmpl.shelf={};sz.tmpl.shelf.deleteShelf=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-shelf-delete"><div class="szi-delete">Delete Shelf</div><div class="szi-confirm">Are you sure you want to delete this? <span class="szi-yes">Yes</span>, <span class="szi-no">No</span></div></div>');if(!f)return d.toString()};
typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.situation=="undefined")sz.tmpl.situation={};sz.tmpl.situation.wizard=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-background"></div><div class="szi-content"><div class="szi-back">Back</div><div class="szi-views"></div></div>');if(!f)return d.toString()};
sz.tmpl.situation.select_one=function(b,f){var d=f||new soy.StringBuilder;d.append('<select class="',soy.$$escapeHtml(b.cssClass),'">');for(var k=b.options,o=k.length,h=0;h<o;h++){var j=k[h];d.append('<option value="',soy.$$escapeHtml(j.value),'"',j.value==b.selectedValue?" selected":"",">",soy.$$escapeHtml(j.label),"</option>")}d.append("</select>");if(!f)return d.toString()};
sz.tmpl.situation.startingContext=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-filter">It\'s');sz.tmpl.situation.select_one({cssClass:"szi-day",options:b.dow_options,selectedValue:b.dow_choice},d);sz.tmpl.situation.select_one({cssClass:"szi-time",options:b.time_options,selectedValue:b.time_choice},d);d.append('. Play music for</div><div class="szi-loading">Loading ...</div><div class="szi-list"></div>');if(!f)return d.toString()};
sz.tmpl.situation.situation=function(b,f){var d=f||new soy.StringBuilder;d.append("<h1>",soy.$$escapeHtml(b.situation.selected_message),'</h1><div class="szi-list"></div>');if(!f)return d.toString()};
sz.tmpl.situation.situationItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-situation-item',b.situation.icon?" sz-situation-item-icon":" sz-situation-item-noicon",'">',b.situation.icon?'<div class="szi-icon"></div>':"",'<div class="szi-title">',soy.$$escapeHtml(b.situation.title),"</div></div>");if(!f)return d.toString()};
sz.tmpl.situation.stationItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-situation-station-item"><div class="szi-quilt" style="background: url(\'',soy.$$escapeHtml(b.station.cover_url),'?size=230\');"><div class="szi-info"><div class="szi-title">',soy.$$escapeHtml(b.station.name),'</div><div class="szi-description">',soy.$$escapeHtml(b.station.description),"</div></div></div></div>");if(!f)return d.toString()};typeof sz=="undefined"&&(sz={});
if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.stationEditor=="undefined")sz.tmpl.stationEditor={};
sz.tmpl.stationEditor.songSearch=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-filter"><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" placeholder="Type an artist or song ..." /><input type="button" value="Search" /></div></div><div class="szi-results"></div>');if(!f)return d.toString()};
sz.tmpl.stationEditor.searchSongListItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-search-song" data-sz-song-id="',soy.$$escapeHtml(b.song.id),'"><img src="',soy.$$escapeHtml(b.song.cover_url),'" /><span class="szi-title" title="',soy.$$escapeHtml(b.song.title),'">',soy.$$escapeHtml(b.song.title),'</span><span class="szi-artist" title="',soy.$$escapeHtml(b.song.artist.name),'">',soy.$$escapeHtml(b.song.artist.name),'</span><span class="szi-album" title="',soy.$$escapeHtml(b.song.album),
'">',soy.$$escapeHtml(b.song.album),'</span><span class="szi-action"><a href="#" class="szi-add">Add</a></span></div>');if(!f)return d.toString()};
sz.tmpl.stationEditor.stationSongListItem=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-station-song" data-sz-song-id="',soy.$$escapeHtml(b.song.id),'"><img src="',soy.$$escapeHtml(b.song.cover_url),'" /><span class="szi-title">',soy.$$escapeHtml(b.song.title),'</span><span class="szi-artist">',soy.$$escapeHtml(b.song.artist.name),"</span>",b.station.creator_id&&b.song.added_by&&b.station.creator_id!=b.song.added_by.id?'<span class="szi-added-by">Added by: '+soy.$$escapeHtml(b.song.added_by.display_name)+
"</span>":"",'<span class="szi-action">',b.song.status=="ADD"||b.song.status=="RECOMMENDED"?'<a href="#" class="szi-ban" data-sz-song-id="'+soy.$$escapeHtml(b.song.id)+'">Remove</a>':b.song.status=="BAN"?'<a href="#" class="szi-unban" data-sz-song-id="'+soy.$$escapeHtml(b.song.id)+'">Add Back</a>':"","</span></div>");if(!f)return d.toString()};
sz.tmpl.stationEditor.tab=function(b,f){var d=f||new soy.StringBuilder;d.append('<li><span class="szi-tab',b.value==b.current_value?" szi-selected":"",'" data-sz-type="',soy.$$escapeHtml(b.value),'"><span class="szi-name">',soy.$$escapeHtml(b.name),'</span><span class="szi-info">',soy.$$escapeHtml(b.info),"</span></span></li>");if(!f)return d.toString()};
sz.tmpl.stationEditor.songList=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="szi-filter"><ul class="szi-type">');sz.tmpl.stationEditor.tab({name:"All",value:"all",current_value:b.type,info:b.stats.song_count.all},d);b.station.allow_song_adds&&!b.hide_contribute&&(sz.tmpl.stationEditor.tab({name:"Mine",value:"mine",current_value:b.type,info:b.stats.song_count.mine},d),sz.tmpl.stationEditor.tab({name:"Contributed",value:"contributed",current_value:b.type,info:b.stats.song_count.contributed},
d));sz.tmpl.stationEditor.tab({name:"Deleted",value:"deleted",current_value:b.type,info:b.stats.song_count.deleted},d);d.append('</ul><div class="szi-query"><label for="view-',soy.$$escapeHtml(b.view_id),'-query">Search:</label><input id="view-',soy.$$escapeHtml(b.view_id),'-query" type="text" class="szi-query-input" value="',soy.$$escapeHtml(b.query),'" placeholder="Type an artist or song ..." /><input type="button" value="Search" /></div></div><div class="szi-duration">Duration: ',soy.$$escapeHtml(b.stats.total_duration),
'</div><div class="szi-song-list"></div>');if(!f)return d.toString()};sz.tmpl.stationEditor.requirement=function(b,f){var d=f||new soy.StringBuilder;d.append(b.left==0?"0 "+soy.$$escapeHtml(b.plural):b.left==1?soy.$$escapeHtml(b.left)+" "+soy.$$escapeHtml(b.singular):soy.$$escapeHtml(b.left)+" "+soy.$$escapeHtml(b.plural));if(!f)return d.toString()};
sz.tmpl.stationEditor.release=function(b,f){var d=f||new soy.StringBuilder;b.station.status=="UNRELEASED"?b.requirements.satisfied?d.append('<h3>Status: Ready</h3><p>Great! You\'ve added enough songs to release this playlist.</p><div class="szi-release-options"><span class="szi-release-now">Release Now</span><a href="',soy.$$escapeHtml(b.station_url),'" class="szi-release-later">Release Later</a></div>'):(d.append('<h3>Status: Not Ready</h3><div class="szi-requirements">'),sz.tmpl.stationEditor.requirement({left:b.requirements.songs.left,
singular:"song",plural:"songs"},d),d.append(",&nbsp;"),sz.tmpl.stationEditor.requirement({left:b.requirements.artists.left,singular:"artist",plural:"artists"},d),d.append("&nbsp;left</div><p>You'll need to add at least ",soy.$$escapeHtml(b.requirements.songs.total)," songs by ",soy.$$escapeHtml(b.requirements.artists.total)," different artists to be ready to release your playlist.</p>")):b.is_new?d.append('<h3>Congratulations, your playlist was released!</h3><div class="szi-release-options"><a href="',
soy.$$escapeHtml(b.station_url),'" class="szi-view">View Playlist</a></div>'):d.append('<h3>Status: Released</h3><p>Your playlist has been released.</p><div class="szi-release-options"><span class="szi-unrelease">Unrelease</span><a href="',soy.$$escapeHtml(b.station_url),'" class="szi-view">View Playlist</a></div>');if(!f)return d.toString()};
sz.tmpl.stationEditor.editor=function(b,f){var d=f||new soy.StringBuilder;d.append(b.is_new?'<h1 class="szi-title"><span>Contribute a Playlist</span></h1><h2 class="szi-title"><span>Playlist Info</span></h2>':"",'<div class="szi-station"><div class="szi-details-container"><div class="szi-details"><div class="szi-name"><label for="view-',soy.$$escapeHtml(b.view_id),'-name">Name</label><input id="view-',soy.$$escapeHtml(b.view_id),'-name" type="text" ',b.name?'value="'+soy.$$escapeHtml(b.name)+'"':
"",' placeholder="Name your playlist" /></div><div class="szi-description"><label for="view-',soy.$$escapeHtml(b.view_id),'-description">Description</label><textarea id="view-',soy.$$escapeHtml(b.view_id),'-description" rows="5" cols="37" placeholder="Describe your playlist">',b.description?soy.$$escapeHtml(b.description):"",'</textarea></div><div class="szi-allow_song_adds"><input type="checkbox" id="view-',soy.$$escapeHtml(b.view_id),'-allow_song_adds"',b.station&&b.station.allow_song_adds?" checked":
"",'/><label for="view-',soy.$$escapeHtml(b.view_id),'-allow_song_adds">Allow anyone to add songs</label></div></div>',b.is_admin?'<div class="szi-custom-image"><span class="szi-chooser-image"><input type="file" id="'+soy.$$escapeHtml(b.view_id)+'-image-file" accept="image/jpeg"></span><span class="szi-upload-image">Upload</span><span class="szi-delete-image">Delete</span></div>':"",'<div class="szi-station-quilt-image-container">',b.is_new&&!b.has_custom_image?'<img src="'+soy.$$escapeHtml(b.static_url)+
'images/station-default-cover-150.jpg" class="szi-station-quilt-image" />':'<img src="'+soy.$$escapeHtml(b.station.cover_url)+'?size=150" class="szi-station-quilt-image" />','</div></div><div class="szi-current-songs"><div class="szi-song-list"></div></div></div><div class="szi-mod"><div class="szi-release"></div><div class="szi-save-details"></div>',b.station.type!="stream"?'<div class="szi-add-songs"><h3 class="szi-title">Add Songs to Your Playlist</h3><div class="szi-song-search"></div></div>':
"","</div>");if(!f)return d.toString()};
sz.tmpl.stationEditor.addSongs=function(b,f){var d=f||new soy.StringBuilder;d.append('<h1 class="szi-title"><span>Contribute to a Playlist</span></h1><h2 class="szi-title"><span>Add Songs to: ',soy.$$escapeHtml(b.station.name),'</span></h2><div class="szi-station"><div class="szi-current-songs"><h3 class="szi-title">Songs to Be Added</h3><div class="szi-song-list"></div></div><div class="szi-release-options"><span class="szi-save">Save Songs</span></div></div><div class="szi-mod"><div class="szi-add-songs"><h3>Find Songs to Add</h3><div class="szi-song-search"></div></div></div>');if(!f)return d.toString()};
typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.stationSave=="undefined")sz.tmpl.stationSave={};sz.tmpl.stationSave.button=function(b,f){var d=f||new soy.StringBuilder;d.append(b.collections.length==1?'Saved to "<span class="szi-playlist-title">'+soy.$$escapeHtml(b.collections[0].title)+'</span>"':b.collections.length>1?"Saved to "+soy.$$escapeHtml(b.collections.length)+" shelves":b.station_type=="stream"?"Save Station":"Save Playlist");if(!f)return d.toString()};
sz.tmpl.stationSave.menu=function(b,f){var d=f||new soy.StringBuilder;d.append(b.title?'<div class="szi-hd">'+soy.$$escapeHtml(b.title)+"</div>":"",b.collection_list.length==0?'<div class="szi-hd">Create a new shelf to save this to:</div>':"",'<div class="szi-bd">');if(b.collection_list.length==0)d.append('<ul><li>Example: "Party Playlists"</li></ul>');else{d.append("<ul>");for(var k=b.collection_list,o=k.length,h=0;h<o;h++){var j=k[h];d.append('<li class="',j.checked?"szi-checked":"",'"><input type="checkbox" value="',
soy.$$escapeHtml(j.id),'" id="',soy.$$escapeHtml(b.view_id),"-",soy.$$escapeHtml(j.id),'" ',j.checked?"checked":"",' /><label for="',soy.$$escapeHtml(b.view_id),"-",soy.$$escapeHtml(j.id),'" title="',soy.$$escapeHtml(j.title),'">',soy.$$escapeHtml(j.title),"</label></li>")}d.append('</ul><div class="szi-confirm"><input type="button" value="Done" class="szi-done" /> or <a href="#cancel" class="szi-cancel">Cancel</a></div>')}d.append('</div><div class="szi-ft"><a href="#new-shelf" class="szi-new-collection">Create new...</a><div class="szi-new-collection-form"><form><input type="text" placeholder="New Shelf Name" /><input type="submit" value="Create" class="szi-make-collection" /></form></div></div>');
if(!f)return d.toString()};
sz.tmpl.stationSave.anonymousMenu=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-station-save-anonymous-menu"><div class="szi-hd">',b.station_type=="stream"?"Save Your Stations For Easy Access:":"Save Your Playlists For Easy Access:",'</div><div class="szi-ft"><a href="',soy.$$escapeHtml(b.signup_url),'">Sign Up</a> or <a href="',soy.$$escapeHtml(b.login_url),'">Log In</a> to save this ',b.station_type=="stream"?" station.":" playlist.","</div></div>");if(!f)return d.toString()};
typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.station=="undefined")sz.tmpl.station={};
sz.tmpl.station.quilt=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-station-quilt" data-sz-station-id="',soy.$$escapeHtml(b.station.id),'"><div class="szi-title"><a href="',soy.$$escapeHtml(b.station_url),'">',soy.$$escapeHtml(b.station.name),'</a></div><a href="',soy.$$escapeHtml(b.station_url),'" class="szi-image-anchor"><img src="',soy.$$escapeHtml(b.station.cover_url),'?size=150" /><span class="szi-play-button">Play</a></a></div>');if(!f)return d.toString()};
typeof sz=="undefined"&&(sz={});if(typeof sz.tmpl=="undefined")sz.tmpl={};if(typeof sz.tmpl.visitorButton=="undefined")sz.tmpl.visitorButton={};sz.tmpl.visitorButton.button=function(b,f){var d=f||new soy.StringBuilder;d.append('<a href="/user/',soy.$$escapeHtml(b.user.username),'">',soy.$$escapeHtml(b.user.display_name),' <span class="szi-unread-count"></span></a>');if(!f)return d.toString()};
sz.tmpl.visitorButton.menu=function(b,f){var d=f||new soy.StringBuilder;d.append('<div class="sz-visitor-menu"><div class="szi-options"><img src="',soy.$$escapeHtml(b.user.images.square),'" /><a href="/user/',soy.$$escapeHtml(b.user.username),'/followers/"><span class="szi-follower-count">',soy.$$escapeHtml(b.follower_count),'</span>Followers</a><a href="/user/',soy.$$escapeHtml(b.user.username),'/following/"><span class="szi-following-count">',soy.$$escapeHtml(b.following_count),'</span>Following</a><a href="/user/',
soy.$$escapeHtml(b.user.username),'/">My Playlists</a><a href="/logout/">Log Out</a></div><div class="szi-feed sz-station-context" data-sz-station-context-name="Visitor Button Feed"></div>');if(!f)return d.toString()};

