<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.AmarajQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(&lt;[\w\W]+&gt;)[^&gt;]*|#([\w-]*))$/,C=/^&lt;(\w+)\s*\/?&gt;(?:&lt;\/\1&gt;|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&amp;&amp;(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="&lt;"===e.charAt(0)&amp;&amp;"&gt;"===e.charAt(e.length-1)&amp;&amp;e.length&gt;=3?[null,e,null]:N.exec(e),!i||!i[1]&amp;&amp;n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&amp;&amp;n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&amp;&amp;b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&amp;&amp;a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&amp;&amp;(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0&gt;e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0&gt;e?t:0);return this.pushStack(n&gt;=0&amp;&amp;t&gt;n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&amp;&amp;(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&amp;&amp;(s=this,--u);l&gt;u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&amp;&amp;(c&amp;&amp;r&amp;&amp;(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&amp;&amp;b.isArray(e)?e:[]):a=e&amp;&amp;b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&amp;&amp;(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&amp;&amp;(e.$=u),t&amp;&amp;e.AmarajQuery===b&amp;&amp;(e.AmarajQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&amp;&amp;--b.readyWait&gt;0||(n.resolveWith(o,[b]),b.fn.trigger&amp;&amp;b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&amp;&amp;e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&amp;&amp;isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&amp;&amp;!y.call(e,"constructor")&amp;&amp;!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&amp;&amp;(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&amp;&amp;[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&amp;&amp;b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&amp;&amp;e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&amp;&amp;(n=b.trim(n),n&amp;&amp;k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&amp;&amp;r.documentElement&amp;&amp;!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&amp;&amp;b.trim(t)&amp;&amp;(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&amp;&amp;e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o&gt;i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o&gt;i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&amp;&amp;!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&amp;&amp;(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0&gt;n?Math.max(0,r+n):n:0;r&gt;n;n++)if(n in t&amp;&amp;t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r&gt;o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a&gt;o;o++)r=!!t(e[o],o),n!==r&amp;&amp;i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o&gt;i;i++)r=t(e[i],i,n),null!=r&amp;&amp;(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&amp;&amp;(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&amp;&amp;(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&amp;&amp;(o=!0,b.isFunction(i)||(s=!0),c&amp;&amp;(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l&gt;u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&amp;&amp;o.documentElement}catch(i){}r&amp;&amp;r.doScroll&amp;&amp;function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&amp;&amp;t?!0:"array"===n||"function"!==n&amp;&amp;(0===t||"number"==typeof t&amp;&amp;t&gt;0&amp;&amp;t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&amp;&amp;[],c=function(t){for(r=e.memory&amp;&amp;t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&amp;&amp;o&gt;a;a++)if(u[a].apply(t[0],t[1])===!1&amp;&amp;e.stopOnFalse){r=!1;break}n=!1,u&amp;&amp;(l?l.length&amp;&amp;c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&amp;&amp;p.has(n)||u.push(n):n&amp;&amp;n.length&amp;&amp;"string"!==r&amp;&amp;i(n)})})(arguments),n?o=u.length:r&amp;&amp;(s=t,c(r))}return this},remove:function(){return u&amp;&amp;b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))&gt;-1)u.splice(r,1),n&amp;&amp;(o&gt;=r&amp;&amp;o--,a&gt;=r&amp;&amp;a--)}),this},has:function(e){return e?b.inArray(e,u)&gt;-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&amp;&amp;!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&amp;&amp;e[t];i[o[1]](function(){var e=s&amp;&amp;s.apply(this,arguments);e&amp;&amp;b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&amp;&amp;a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&amp;&amp;e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&amp;&amp;b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length&gt;1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r&gt;1)for(s=Array(r),u=Array(r),l=Array(r);r&gt;t;t++)n[t]&amp;&amp;b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href='/a'&gt;a&lt;/a&gt;&lt;input type='checkbox'/&gt;",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"&lt;:nav&gt;&lt;/:nav&gt;"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&amp;&amp;(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&amp;&amp;(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;t&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&amp;&amp;0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&amp;&amp;(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&amp;&amp;(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="&lt;div&gt;&lt;/div&gt;",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&amp;&amp;(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&amp;&amp;s;if(f&amp;&amp;p[f]&amp;&amp;(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&amp;&amp;(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&amp;&amp;(o[b.camelCase(n)]=r),u?(a=o[n],null==a&amp;&amp;(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&amp;&amp;(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i&gt;r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&amp;&amp;(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"AmarajQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&amp;&amp;!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&amp;&amp;1!==e.nodeType&amp;&amp;9!==e.nodeType)return!1;var t=e.nodeName&amp;&amp;b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&amp;&amp;e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&amp;&amp;(s=b.data(o),1===o.nodeType&amp;&amp;!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length&gt;a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length&gt;1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&amp;&amp;1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&amp;&amp;"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&amp;&amp;(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&amp;&amp;(i=n.shift(),r--),o.cur=i,i&amp;&amp;("fx"===t&amp;&amp;n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&amp;&amp;o&amp;&amp;o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&amp;&amp;(n=e,e="fx",r--),r&gt;arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&amp;&amp;"inprogress"!==t[0]&amp;&amp;b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&amp;&amp;(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&amp;&amp;r.empty&amp;&amp;(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length&gt;1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length&gt;1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&amp;&amp;e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s&gt;a;a++)if(n=this[a],r=1===n.nodeType&amp;&amp;(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0&gt;r.indexOf(" "+i+" ")&amp;&amp;(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&amp;&amp;e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s&gt;a;a++)if(n=this[a],r=1===n.nodeType&amp;&amp;(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")&gt;=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&amp;&amp;(this.className&amp;&amp;b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r&gt;n;n++)if(1===this[n].nodeType&amp;&amp;(" "+this[n].className+" ").replace(X," ").indexOf(t)&gt;=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&amp;&amp;(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&amp;&amp;(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&amp;&amp;"set"in r&amp;&amp;r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&amp;&amp;"get"in r&amp;&amp;(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0&gt;i,a=o?null:[],s=o?i+1:r.length,u=0&gt;i?s:o?i:0;for(;s&gt;u;u++)if(n=r[u],!(!n.selected&amp;&amp;u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&amp;&amp;b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)&gt;=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&amp;&amp;3!==u&amp;&amp;8!==u&amp;&amp;2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&amp;&amp;(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&amp;&amp;a&amp;&amp;"get"in o&amp;&amp;null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&amp;&amp;(s=e.getAttribute(n)),null==s?t:s):null!==r?o&amp;&amp;a&amp;&amp;"set"in o&amp;&amp;(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&amp;&amp;t.match(w);if(o&amp;&amp;1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&amp;&amp;G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&amp;&amp;"radio"===t&amp;&amp;b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&amp;&amp;(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&amp;&amp;3!==s&amp;&amp;8!==s&amp;&amp;2!==s)return a=1!==s||!b.isXMLDoc(e),a&amp;&amp;(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&amp;&amp;"set"in o&amp;&amp;(i=o.set(e,r,n))!==t?i:e[n]=r:o&amp;&amp;"get"in o&amp;&amp;null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&amp;&amp;n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&amp;&amp;e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&amp;&amp;e.getAttribute(n),o="boolean"==typeof r?K&amp;&amp;Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&amp;&amp;o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&amp;&amp;Q||!G.test(n)?e.setAttribute(!Q&amp;&amp;b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&amp;&amp;Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&amp;&amp;r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&amp;&amp;I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&amp;&amp;("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&amp;&amp;(t.selectedIndex,t.parentNode&amp;&amp;t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)&gt;=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&amp;&amp;(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&amp;&amp;b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&amp;&amp;b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&amp;&amp;p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&amp;&amp;e.attachEvent("on"+g,f))),p.add&amp;&amp;(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&amp;&amp;b._data(e);if(m&amp;&amp;(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&amp;&amp;RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&amp;&amp;g!==a.origType||n&amp;&amp;n.guid!==a.guid||s&amp;&amp;!s.test(a.namespace)||r&amp;&amp;r!==a.selector&amp;&amp;("**"!==r||!a.selector)||(f.splice(o,1),a.selector&amp;&amp;f.delegateCount--,p.remove&amp;&amp;p.remove.call(e,a));u&amp;&amp;!f.length&amp;&amp;(p.teardown&amp;&amp;p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&amp;&amp;(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&amp;&amp;8!==i.nodeType&amp;&amp;!nt.test(g+b.event.triggered)&amp;&amp;(g.indexOf(".")&gt;=0&amp;&amp;(m=g.split("."),g=m.shift(),m.sort()),u=0&gt;g.indexOf(":")&amp;&amp;"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&amp;&amp;n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&amp;&amp;!p.noBubble&amp;&amp;!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&amp;&amp;h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&amp;&amp;!n.isPropagationStopped())n.type=d&gt;1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&amp;&amp;b._data(l,"handle"),s&amp;&amp;s.apply(l,r),s=u&amp;&amp;l[u],s&amp;&amp;b.acceptData(l)&amp;&amp;s.apply&amp;&amp;s.apply(l,r)===!1&amp;&amp;n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&amp;&amp;p._default.apply(i.ownerDocument,r)!==!1||"click"===g&amp;&amp;b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&amp;&amp;(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&amp;&amp;(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&amp;&amp;!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&amp;&amp;!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&amp;&amp;(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&amp;&amp;(e.result=r)===!1&amp;&amp;(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&amp;&amp;c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&amp;&amp;l.nodeType&amp;&amp;(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&amp;&amp;(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u&gt;a;a++)i=n[a],r=i.selector+" ",o[r]===t&amp;&amp;(o[r]=i.needsContext?b(r,this).index(l)&gt;=0:b.find(r,this,null,[l]).length),o[r]&amp;&amp;o.push(i);o.length&amp;&amp;s.push({elem:l,handlers:o})}return n.length&gt;u&amp;&amp;s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&amp;&amp;(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&amp;&amp;(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&amp;&amp;null!=n.clientX&amp;&amp;(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&amp;&amp;a.scrollLeft||r&amp;&amp;r.scrollLeft||0)-(a&amp;&amp;a.clientLeft||r&amp;&amp;r.clientLeft||0),e.pageY=n.clientY+(a&amp;&amp;a.scrollTop||r&amp;&amp;r.scrollTop||0)-(a&amp;&amp;a.clientTop||r&amp;&amp;r.clientTop||0)),!e.relatedTarget&amp;&amp;u&amp;&amp;(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&amp;s?1:2&amp;s?3:4&amp;s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&amp;&amp;"checkbox"===this.type&amp;&amp;this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&amp;&amp;this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&amp;&amp;this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&amp;&amp;(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&amp;&amp;n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&amp;&amp;e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&amp;&amp;(typeof e[r]===i&amp;&amp;(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&amp;&amp;e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&amp;&amp;e.getPreventDefault()?it:ot):this.type=e,n&amp;&amp;b.extend(this,n),this.timeStamp=e&amp;&amp;e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&amp;&amp;(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&amp;&amp;(e.stopPropagation&amp;&amp;e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;
return(!i||i!==r&amp;&amp;!b.contains(r,i))&amp;&amp;(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&amp;&amp;!b._data(r,"submitBubbles")&amp;&amp;(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&amp;&amp;(delete e._submit_bubble,this.parentNode&amp;&amp;!e.isTrigger&amp;&amp;b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&amp;&amp;(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&amp;&amp;(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&amp;&amp;!e.isTrigger&amp;&amp;(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&amp;&amp;!b._data(t,"changeBubbles")&amp;&amp;(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&amp;&amp;"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&amp;&amp;o.addEventListener(e,r,!0)},teardown:function(){0===--n&amp;&amp;o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&amp;&amp;(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&amp;&amp;null==i?(i=n,r=n=t):null==i&amp;&amp;("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&amp;&amp;(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&amp;&amp;e.preventDefault&amp;&amp;e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&amp;&amp;(r=n,n=t),r===!1&amp;&amp;(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1&lt;&lt;31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n&gt;t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f&gt;+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[&gt;+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0&gt;n?String.fromCharCode(n+65536):String.fromCharCode(55296|n&gt;&gt;10,56320|1023&amp;n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")&gt;i.cacheLength&amp;&amp;delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&amp;&amp;c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&amp;&amp;9!==s)return[];if(!d&amp;&amp;!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&amp;&amp;(o=t.ownerDocument.getElementById(a))&amp;&amp;y(t,o)&amp;&amp;o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&amp;&amp;T.getByClassName&amp;&amp;t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&amp;&amp;!h.test(e)){if(f=!0,g=x,m=t,v=9===s&amp;&amp;e,1===s&amp;&amp;"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&amp;"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&amp;&amp;t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&amp;&amp;(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&amp;&amp;9===n.nodeType&amp;&amp;n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="&lt;select&gt;&lt;/select&gt;";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&amp;&amp;"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="&lt;div class='hidden e'&gt;&lt;/div&gt;&lt;div class='hidden'&gt;&lt;/div&gt;",e.getElementsByClassName&amp;&amp;e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="&lt;a name='"+x+"'&gt;&lt;/a&gt;&lt;div name='"+x+"'&gt;&lt;/div&gt;",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&amp;&amp;n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="&lt;a href='#'&gt;&lt;/a&gt;",e.firstChild&amp;&amp;typeof e.firstChild.getAttribute!==A&amp;&amp;"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&amp;&amp;!d){var n=t.getElementById(e);return n&amp;&amp;n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&amp;&amp;!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&amp;&amp;r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&amp;&amp;e.getAttributeNode("id");return n&amp;&amp;n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&amp;&amp;r.push(n);return r}return o},i.find.NAME=T.getByName&amp;&amp;function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&amp;&amp;function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&amp;&amp;(at(function(e){e.innerHTML="&lt;select&gt;&lt;option selected=''&gt;&lt;/option&gt;&lt;/select&gt;",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="&lt;input type='hidden' i=''/&gt;",e.querySelectorAll("[i^='']").length&amp;&amp;h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&amp;&amp;at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&amp;&amp;t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&amp;&amp;16&amp;e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&amp;&amp;e.compareDocumentPosition&amp;&amp;e.compareDocumentPosition(t))?1&amp;r||e.parentNode&amp;&amp;11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&amp;r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&amp;&amp;c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&amp;&amp;g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&amp;&amp;11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length&gt;0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&amp;&amp;c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&amp;&amp;c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&amp;&amp;e[t]===!0?t:n&amp;&amp;n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&amp;&amp;(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&amp;&amp;e,r=n&amp;&amp;(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&amp;&amp;t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&amp;&amp;t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&amp;&amp;(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{"&gt;":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&amp;&amp;(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&amp;&amp;st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&amp;&amp;e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&amp;&amp;z.test(n)&amp;&amp;(t=ft(n,!0))&amp;&amp;(t=n.indexOf(")",n.length-t)-n.length)&amp;&amp;(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&amp;&amp;t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&amp;&amp;k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&amp;&amp;e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&amp;&amp;0===i.indexOf(n):"*="===t?n&amp;&amp;i.indexOf(n)&gt;-1:"$="===t?n&amp;&amp;i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)&gt;-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&amp;&amp;0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&amp;&amp;t.nodeName.toLowerCase(),v=!u&amp;&amp;!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&amp;&amp;!h&amp;&amp;"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&amp;&amp;v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&amp;&amp;l[1],f=l[0]===N&amp;&amp;l[2],p=d&amp;&amp;m.childNodes[d];while(p=++d&amp;&amp;p&amp;&amp;p[g]||(f=d=0)||h.pop())if(1===p.nodeType&amp;&amp;++f&amp;&amp;p===t){c[e]=[N,d,f];break}}else if(v&amp;&amp;(l=(t[x]||(t[x]={}))[e])&amp;&amp;l[0]===N)f=l[1];else while(p=++d&amp;&amp;p&amp;&amp;p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&amp;&amp;++f&amp;&amp;(v&amp;&amp;((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&amp;&amp;f/r&gt;=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length&gt;1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&amp;&amp;(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length&gt;0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)&gt;-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&amp;&amp;1===t.nodeType);return!1}}),target:function(t){var n=e.location&amp;&amp;e.location.hash;return n&amp;&amp;n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&amp;&amp;(!p.hasFocus||p.hasFocus())&amp;&amp;!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&amp;&amp;!!e.checked||"option"===t&amp;&amp;!!e.selected},selected:function(e){return e.parentNode&amp;&amp;e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName&gt;"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&amp;&amp;"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&amp;&amp;"text"===e.type&amp;&amp;(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0&gt;n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t&gt;n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t&gt;n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0&gt;n?n+t:n;for(;--r&gt;=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0&gt;n?n+t:n;for(;t&gt;++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&amp;&amp;(r&amp;&amp;(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&amp;&amp;(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&amp;&amp;!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n&gt;t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&amp;&amp;"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&amp;&amp;e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&amp;&amp;l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length&gt;1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u&gt;s;s++)(o=e[s])&amp;&amp;(!n||n(o,r,i))&amp;&amp;(a.push(o),l&amp;&amp;t.push(s));return a}function yt(e,t,n,r,i,o){return r&amp;&amp;!r[x]&amp;&amp;(r=yt(r)),i&amp;&amp;!i[x]&amp;&amp;(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&amp;&amp;t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&amp;&amp;n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&amp;&amp;(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&amp;&amp;l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&amp;&amp;(l=i?M.call(o,p):f[c])&gt;-1&amp;&amp;(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)&gt;-1},s,!0),f=[function(e,n,r){return!a&amp;&amp;(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o&gt;u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o&gt;r;r++)if(i.relative[e[r].type])break;return yt(u&gt;1&amp;&amp;gt(f),u&gt;1&amp;&amp;dt(e.slice(0,u-1)).replace(W,"$1"),n,r&gt;u&amp;&amp;vt(e.slice(u,r)),o&gt;r&amp;&amp;vt(e=e.slice(r)),o&gt;r&amp;&amp;dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length&gt;0,a=e.length&gt;0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&amp;&amp;[],w=null!=d,T=l,C=s||a&amp;&amp;i.find.TAG("*",d&amp;&amp;u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&amp;&amp;(l=u!==p&amp;&amp;u,r=n);null!=(h=C[b]);b++){if(a&amp;&amp;h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&amp;&amp;(N=k,r=++n)}o&amp;&amp;((h=!m&amp;&amp;h)&amp;&amp;v--,s&amp;&amp;x.push(h))}if(v+=b,o&amp;&amp;b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v&gt;0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&amp;&amp;!s&amp;&amp;y.length&gt;0&amp;&amp;v+t.length&gt;1&amp;&amp;st.uniqueSort(f)}return w&amp;&amp;(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i&gt;r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&amp;&amp;1===p.length){if(a=p[0]=p[0].slice(0),a.length&gt;2&amp;&amp;"ID"===(u=a[0]).type&amp;&amp;9===t.nodeType&amp;&amp;!d&amp;&amp;i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&amp;&amp;(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&amp;&amp;t.parentNode||t))){if(a.splice(o,1),e=r.length&amp;&amp;dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i&gt;t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i&gt;t;t++)b.find(e,this[t],n);return n=this.pushStack(i&gt;1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r&gt;t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&amp;&amp;("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])&gt;=0:b.filter(e,this).length&gt;0:this.filter(e).length&gt;0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i&gt;r;r++){n=this[r];while(n&amp;&amp;n.ownerDocument&amp;&amp;n!==t&amp;&amp;11!==n.nodeType){if(a?a.index(n)&gt;-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length&gt;1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&amp;&amp;this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&amp;&amp;e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&amp;&amp;1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&amp;&amp;11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&amp;&amp;"string"==typeof r&amp;&amp;(i=b.filter(r,i)),i=this.length&gt;1&amp;&amp;!ct[e]?b.unique(i):i,this.length&gt;1&amp;&amp;st.test(e)&amp;&amp;(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&amp;&amp;(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&amp;&amp;9!==o.nodeType&amp;&amp;(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&amp;&amp;i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&amp;&amp;e!==t&amp;&amp;n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)&gt;=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ AmarajQuery\d+="(?:null|\d+)"/g,mt=RegExp("&lt;(?:"+ht+")[\\s/&gt;]","i"),yt=/^\s+/,vt=/&lt;(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^&gt;]*)\/&gt;/gi,bt=/&lt;([\w:]+)/,xt=/&lt;tbody/i,wt=/&lt;|&amp;#?\w+;/,Tt=/&lt;(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*&lt;!(?:\[CDATA\[|--)|(?:\]\]|--)&gt;\s*$/g,At={option:[1,"&lt;select multiple='multiple'&gt;","&lt;/select&gt;"],legend:[1,"&lt;fieldset&gt;","&lt;/fieldset&gt;"],area:[1,"&lt;map&gt;","&lt;/map&gt;"],param:[1,"&lt;object&gt;","&lt;/object&gt;"],thead:[1,"&lt;table&gt;","&lt;/table&gt;"],tr:[2,"&lt;table&gt;&lt;tbody&gt;","&lt;/tbody&gt;&lt;/table&gt;"],col:[2,"&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;","&lt;/colgroup&gt;&lt;/table&gt;"],td:[3,"&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;","&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X&lt;div&gt;","&lt;/div&gt;"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&amp;&amp;t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&amp;&amp;1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&amp;&amp;this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&amp;&amp;this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&amp;&amp;this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&amp;&amp;this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length&gt;0)&amp;&amp;(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&amp;&amp;(t&amp;&amp;b.contains(n.ownerDocument,n)&amp;&amp;Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&amp;&amp;b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&amp;&amp;b.nodeName(e,"select")&amp;&amp;(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&amp;&amp;mt.test(e)||!b.support.leadingWhitespace&amp;&amp;yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"&lt;$1&gt;&lt;/$2&gt;");try{for(;i&gt;r;r++)n=this[r]||{},1===n.nodeType&amp;&amp;(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&amp;&amp;this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&amp;&amp;(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1&gt;=p||"string"!=typeof g||b.support.checkClone)&amp;&amp;Ct.test(g))return this.each(function(i){var o=d.eq(i);m&amp;&amp;(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&amp;&amp;(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&amp;&amp;(l=i),i)){for(n=n&amp;&amp;b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p&gt;c;c++)o=l,c!==h&amp;&amp;(o=b.clone(o,!0,!0),a&amp;&amp;b.merge(s,Ot(o,"script"))),r.call(n&amp;&amp;b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a&gt;c;c++)o=s[c],kt.test(o.type||"")&amp;&amp;!b._data(o,"globalEval")&amp;&amp;b.contains(u,o)&amp;&amp;(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&amp;&amp;t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&amp;&amp;b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i&gt;r;r++)b.event.add(t,n,s[n][r])}a.data&amp;&amp;(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&amp;&amp;t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&amp;&amp;t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&amp;&amp;(t.outerHTML=e.outerHTML),b.support.html5Clone&amp;&amp;e.innerHTML&amp;&amp;!b.trim(t.innerHTML)&amp;&amp;(t.innerHTML=e.innerHTML)):"input"===n&amp;&amp;Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&amp;&amp;(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&amp;&amp;(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a&gt;=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&amp;&amp;b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&amp;&amp;(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("&lt;"+e.nodeName+"&gt;")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&amp;&amp;b.support.noCloneChecked||1!==e.nodeType&amp;&amp;11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&amp;&amp;Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length&gt;0&amp;&amp;Mt(r,!u&amp;&amp;Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p&gt;h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"&lt;$1&gt;&lt;/$2&gt;")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&amp;&amp;yt.test(o)&amp;&amp;d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"&lt;table&gt;"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&amp;&amp;o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&amp;&amp;!l.childNodes.length&amp;&amp;o.removeChild(l)
}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&amp;&amp;f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&amp;&amp;(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&amp;&amp;Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&amp;&amp;n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&amp;&amp;(o=n[u],a=o&amp;&amp;l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&amp;&amp;(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s&gt;a;a++)r=e[a],r.style&amp;&amp;(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&amp;&amp;nn(r)&amp;&amp;(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&amp;&amp;"none"!==n||!i)&amp;&amp;b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s&gt;a;a++)r=e[a],r.style&amp;&amp;(t&amp;&amp;"none"!==r.style.display&amp;&amp;""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i&gt;s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length&gt;1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&amp;&amp;3!==e.nodeType&amp;&amp;8!==e.nodeType&amp;&amp;e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&amp;&amp;"get"in s&amp;&amp;(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&amp;&amp;(o=Jt.exec(r))&amp;&amp;(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&amp;&amp;isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&amp;&amp;"set"in s&amp;&amp;(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&amp;&amp;"get"in s&amp;&amp;(a=s.get(e,!0,r)),a===t&amp;&amp;(a=Wt(e,n,i)),"normal"===a&amp;&amp;n in Kt&amp;&amp;(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&amp;&amp;(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&amp;&amp;Ut.test(n)&amp;&amp;(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&amp;&amp;(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&amp;&amp;l&amp;&amp;l[n]&amp;&amp;(u=l[n]),Yt.test(u)&amp;&amp;!zt.test(n)&amp;&amp;(i=l.left,o=e.runtimeStyle,a=o&amp;&amp;o.left,a&amp;&amp;(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&amp;&amp;(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4&gt;o;o+=2)"margin"===n&amp;&amp;(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&amp;&amp;(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&amp;&amp;(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&amp;&amp;(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&amp;&amp;"border-box"===b.css(e,"boxSizing",!1,o);if(0&gt;=i||null==i){if(i=Wt(e,t,o),(0&gt;i||null==i)&amp;&amp;(i=e.style[t]),Yt.test(i))return i;r=a&amp;&amp;(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&amp;&amp;n||(Pt=(Pt||b("&lt;iframe frameborder='0' width='0' height='0'/&gt;").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("&lt;!doctype html&gt;&lt;html&gt;&lt;body&gt;"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&amp;&amp;Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&amp;&amp;Rt(e);return on(e,t,r?an(e,n,r,b.support.boxSizing&amp;&amp;"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&amp;&amp;e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&amp;&amp;r.filter||n.filter||"";n.zoom=1,(t&gt;=1||""===t)&amp;&amp;""===b.trim(o.replace($t,""))&amp;&amp;n.removeAttribute&amp;&amp;(n.removeAttribute("filter"),""===t||r&amp;&amp;!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&amp;&amp;b.fn.position&amp;&amp;b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&amp;&amp;b.expr.filters&amp;&amp;(b.expr.filters.hidden=function(e){return 0&gt;=e.offsetWidth&amp;&amp;0&gt;=e.offsetHeight||!b.support.reliableHiddenOffsets&amp;&amp;"none"===(e.style&amp;&amp;e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4&gt;r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&amp;&amp;!b(this).is(":disabled")&amp;&amp;hn.test(this.nodeName)&amp;&amp;!dn.test(e)&amp;&amp;(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&amp;&amp;(n=b.ajaxSettings&amp;&amp;b.ajaxSettings.traditional),b.isArray(e)||e.jquery&amp;&amp;!b.isPlainObject(e))b.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&amp;").replace(cn,"+")};function gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length&gt;0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&amp;])_=[^&amp;]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&amp;&amp;(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&amp;&amp;s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&amp;&amp;((o[i]?e:r||(r={}))[i]=n[i]);return r&amp;&amp;b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&amp;&amp;Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u&gt;=0&amp;&amp;(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&amp;&amp;"object"==typeof n&amp;&amp;(a="POST"),s.length&gt;0&amp;&amp;b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("&lt;div&gt;").append(b.parseHTML(e)).find(i):e)}).complete(r&amp;&amp;function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&amp;&amp;(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&amp;&amp;(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&amp;&amp;(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2&gt;x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&amp;&amp;l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&amp;&amp;(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&amp;&amp;r[2]===mn[2]&amp;&amp;(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&amp;&amp;p.processData&amp;&amp;"string"!=typeof p.data&amp;&amp;(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&amp;&amp;0===b.active++&amp;&amp;b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&amp;&amp;(o=p.url+=(bn.test(o)?"&amp;":"?")+p.data,delete p.data),p.cache===!1&amp;&amp;(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&amp;":"?")+"_="+vn++)),p.ifModified&amp;&amp;(b.lastModified[o]&amp;&amp;N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&amp;&amp;N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&amp;&amp;p.hasContent&amp;&amp;p.contentType!==!1||n.contentType)&amp;&amp;N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&amp;&amp;p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&amp;&amp;(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&amp;&amp;d.trigger("ajaxSend",[N,p]),p.async&amp;&amp;p.timeout&gt;0&amp;&amp;(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2&gt;x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&amp;&amp;(x=2,s&amp;&amp;clearTimeout(s),l=t,a=i||"",N.readyState=e&gt;0?4:0,r&amp;&amp;(w=_n(p,N,r)),e&gt;=200&amp;&amp;300&gt;e||304===e?(p.ifModified&amp;&amp;(T=N.getResponseHeader("Last-Modified"),T&amp;&amp;(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&amp;&amp;(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&amp;&amp;(C="error",0&gt;e&amp;&amp;(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&amp;&amp;d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&amp;&amp;(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&amp;&amp;(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&amp;&amp;(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&amp;&amp;u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&amp;&amp;l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&amp;&amp;(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&amp;&amp;l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&amp;&amp;(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&amp;&amp;(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&amp;&amp;e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&amp;&amp;(e.cache=!1),e.crossDomain&amp;&amp;(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&amp;&amp;(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&amp;&amp;(n.onload=n.onreadystatechange=null,n.parentNode&amp;&amp;n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&amp;&amp;n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&amp;|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&amp;&amp;(Bn.test(n.url)?"url":"string"==typeof n.data&amp;&amp;!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&amp;&amp;Bn.test(n.data)&amp;&amp;"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&amp;&amp;(n.url+=(bn.test(n.url)?"&amp;":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&amp;&amp;(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&amp;&amp;b.isFunction(a)&amp;&amp;a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&amp;&amp;function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&amp;&amp;In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&amp;&amp;"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&amp;&amp;b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&amp;&amp;u.overrideMimeType&amp;&amp;u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&amp;&amp;n.data||null),r=function(e,i){var s,l,c,p;try{if(r&amp;&amp;(i||4===u.readyState))if(r=t,a&amp;&amp;(u.onreadystatechange=b.noop,$n&amp;&amp;delete Pn[a]),i)4!==u.readyState&amp;&amp;u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&amp;&amp;(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&amp;&amp;(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&amp;&amp;o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&amp;&amp;(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&amp;&amp;r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&amp;&amp;s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&amp;&amp;1!==u&amp;&amp;--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o&gt;i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u&gt;a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1&gt;o&amp;&amp;u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r&gt;n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a&gt;o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&amp;&amp;l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&amp;&amp;(o=n[1],n=e[i]=n[0]),i!==r&amp;&amp;(e[r]=n,delete e[i]),a=b.cssHooks[r],a&amp;&amp;"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i&gt;r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&amp;&amp;nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&amp;&amp;(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&amp;&amp;("height"in t||"width"in t)&amp;&amp;(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&amp;&amp;"none"===b.css(e,"float")&amp;&amp;(b.support.inlineBlockNeedsLayout&amp;&amp;"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&amp;&amp;(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&amp;&amp;(m=s.hidden),u&amp;&amp;(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o&gt;i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&amp;&amp;(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&amp;&amp;e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&amp;&amp;this.options.step.call(this.elem,this.now,this),n&amp;&amp;n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&amp;&amp;null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&amp;&amp;"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&amp;&amp;(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&amp;&amp;e.elem.parentNode&amp;&amp;(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&amp;&amp;t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&amp;&amp;(r=n,n=e,e=t),n&amp;&amp;e!==!1&amp;&amp;this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&amp;&amp;e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&amp;&amp;a[n].stop&amp;&amp;i(a[n]);else for(n in a)a[n]&amp;&amp;a[n].stop&amp;&amp;Jn.test(n)&amp;&amp;i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&amp;&amp;o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&amp;&amp;b.dequeue(this,e)})},finish:function(e){return e!==!1&amp;&amp;(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&amp;&amp;i.cur&amp;&amp;i.cur.finish&amp;&amp;i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&amp;&amp;o[t].queue===e&amp;&amp;(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a&gt;t;t++)r[t]&amp;&amp;r[t].finish&amp;&amp;r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4&gt;i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&amp;&amp;(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&amp;&amp;"object"==typeof e?b.extend({},e):{complete:n||!n&amp;&amp;t||b.isFunction(e)&amp;&amp;e,duration:e,easing:n&amp;&amp;t||t&amp;&amp;!b.isFunction(t)&amp;&amp;t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&amp;&amp;(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&amp;&amp;r.old.call(this),r.queue&amp;&amp;b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length&gt;r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&amp;&amp;b.timers.push(e)&amp;&amp;b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&amp;&amp;b.expr.filters&amp;&amp;(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&amp;&amp;a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&amp;&amp;(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&amp;&amp;(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&amp;&amp;b.inArray("auto",[a,s])&gt;-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&amp;&amp;(t=t.call(e,n,o)),null!=t.top&amp;&amp;(l.top=t.top-o.top+p),null!=t.left&amp;&amp;(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&amp;&amp;!b.nodeName(e,"html")&amp;&amp;"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&amp;&amp;(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.AmarajQuery=e.$=b,"function"==typeof define&amp;&amp;define.amd&amp;&amp;define.amd.AmarajQuery&amp;&amp;define("jquery",[],function(){return b})})(window);
window.AmarajQuery = $.noConflict();
// Amara, universalsubtitles.org
//
// Copyright (C) 2013 Participatory Culture Foundation
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see
// http://www.gnu.org/licenses/agpl-3.0.html.


var dfxp = (function($) {

function markdownToHTML(text) {
    /*
     * Convert text to Markdown-style rendered HTML with bold, italic,
     * underline, etc.
     */

    var replacements = [
        { match: /(\*\*)([^\*]+)(\*\*)/g, replaceWith: "&lt;b&gt;$2&lt;/b&gt;" },
        { match: /(\*)([^\*]+)(\*{1})/g, replaceWith: "&lt;i&gt;$2&lt;/i&gt;" },
        { match: /(_)([^_]+)(_{1})/g, replaceWith: "&lt;u&gt;$2&lt;/u&gt;" },
        { match: /(\r\n|\n|\r)/gm, replaceWith: "&lt;br /&gt;" },
        { match: / {2}/g, replaceWith: "&amp;nbsp;&amp;nbsp;" }
    ];

    for (var i = 0; i &lt; replacements.length; i++) {
        var match = replacements[i].match;
        var replaceWith = replacements[i].replaceWith;

        text = text.replace(match, replaceWith);
    }

    return text;
};

function markdownToPlaintext(text) {
    /*
     * Convert text to Markdown-style to plain text
     */

    var replacements = [
        { match: /(\*\*)([^\*]+)(\*\*)/g, replaceWith: "$2" },
        { match: /(\*)([^\*]+)(\*{1})/g, replaceWith: "$2" },
        { match: /(_)([^_]+)(_{1})/g, replaceWith: "$2" }
    ];

    for (var i = 0; i &lt; replacements.length; i++) {
        var match = replacements[i].match;
        var replaceWith = replacements[i].replaceWith;

        text = text.replace(match, replaceWith);
    }

    return text;
};

function getDFXPAttr(elt, name) {
    /**
     * Get the value of a DFXP attribute
     *
     * This function tries the official DFXP attribute name, plus a few others
     * to handle non-standard markup.
     *
     * @param elt -- DOM element
     * @param name -- attribute name (without the leading "tts:")
     * @return The node, modified in place
     */
    var attrNameList = [
        // Official DFXP attribute name
        'tts:' + name,
        // handle jquery lowercasing attribute names
        'tts:' + name.toLowerCase(),
        // handle malformed DFXP XML
        name
    ];
    for(var i=0; i &lt; attrNameList.length; i++) {
        var attrName = attrNameList[i];
        if(elt.hasAttribute(attrName)) {
            return elt.getAttribute(attrName);
        }
    }
    return null;
}

function dfxpToMarkdown(node) {
    /**
     *
     * Converts a DFXP &lt;p&gt; tag to our markdowny syntax
     *
     * This function converts the following tags:
     *   &lt;span tts:fontWeight=bold&gt;text&lt;/span&gt; -&gt; *text*
     *   &lt;span tts:fontStyle=italic&gt;text&lt;/span&gt; -&gt; **text**
     *   &lt;span tts:textDecoration=underline&gt;text&lt;/span&gt; -&gt; _text_
     *   &lt;br /&gt; -&gt; \n
     *
     * @param node DOM Node
     * @return markdown string
     */

    if (node === undefined) {
        return node;
    }

    // Array of strings that we will join together to build the new content
    var markdownParts = [];

    // worker function that recursively parses the elements for DFXP tags
    function traverse(node) {
        // Text node
        if(node.nodeType == 3) {
            if(node.nodeValue.trim() != "") {
                markdownParts.push(node.nodeValue);
            }
            return;
        }

        var wrapperText = '';
        if(node.nodeType == 1) {
            // XML Element
            var tagName = node.tagName.toLowerCase();
            if(tagName == 'span') {
                if(getDFXPAttr(node, 'fontWeight') == 'bold') {
                    wrapperText += '**';
                }
                if(getDFXPAttr(node, 'fontStyle') == 'italic') {
                    wrapperText += '*';
                }
                if(getDFXPAttr(node, 'textDecoration') == 'underline') {
                    wrapperText += '_';
                }
            } else if(tagName == 'br') {
                markdownParts.push("\n");
                return;
            }
        }

        if(wrapperText) {
            markdownParts.push(wrapperText);
        }
        for(var i=0; i &lt; node.childNodes.length; i++) {
            traverse(node.childNodes[i]);
        }
        if(wrapperText) {
            markdownParts.push(wrapperText);
        }
    }

    traverse(node);
    return markdownParts.join("");
};

function leftPad(number, width, character) {
    /*
     * Left Pad a number to the given width, with zeros.
     * From: http://stackoverflow.com/a/1267338/22468
     *
     * Returns: string
     */

    character = character || '0';
    width -= number.toString().length;

    if (width &gt; 0) {
        return new Array(width + (/\./.test(number) ? 2 : 1))
                        .join(character) + number;
    }
    return number.toString();
}

function rightPad(number, width, character) {
    /*
     * Right Pad a number to the given width, with zeros.
     * From: http://stackoverflow.com/a/1267338/22468
     *
     * Returns: string
     */

    character = character || '0';
    width -= number.toString().length;

    if (width &gt; 0) {
        return number + new Array(width + (/\./.test(number) ? 2 : 1))
            .join(character);
    }
    return number.toString();
}

var AmaraDFXPParser = function() {
    /*
     * A utility for working with DFXP subs.
     * The front end app needs all timming data to be
     * stored in milliseconds for processing. On `init` we convert
     * time expressions to milliseconds.
     */

    var MARKUP_REPLACE_SEQ = [
        [/(\*\*)([^\*]+)(\*\*)/g, '&lt;span tts:fontWeight="bold"&gt;$2&lt;/span&gt;'],
        [/(\*)([^\*]+)(\*{1})/g, '&lt;span tts:fontStyle="italic"&gt;$2&lt;/span&gt;'],
        [/(_)([^_]+)(_{1})/g, '&lt;span tts:textDecoration="underline"&gt;$2&lt;/span&gt;']
    ];

    var that = this;

    this.init = function(xml) {

        // This second check for xml === null is for a specific IE9 bug.
        if (typeof xml === 'undefined' || xml === null) {
            return;
        }

        if (typeof xml === 'string') {
            xml = $.parseXML(xml);
        }

        // When we get subtitles from the server, they will contain DFXP-style
        // formatting for bold, italic, etc. Convert them back to Markdown.
        var $preXml = $(xml.documentElement);
        var $preSubtitles = $('p', $preXml);

        // Convert subtitles from DFXP to Markdown.
        $preSubtitles.each(function() {
            var markdown = dfxpToMarkdown(this);
            $(this).text(markdown);
        });

        // Store the original XML for comparison later.
        this.$originalXml = $preXml.clone();

        // Store the working XML for local edits.
        this.$xml = $preXml.clone();

        // Cache the first div.
        this.$firstDiv = $('div:first-child', this.$xml);

        // Convert both subtitle sets to milliseconds.
        this.convertTimes('milliseconds', $('p', this.$originalXml));
        this.convertTimes('milliseconds', $('p', this.$xml));

        return this;
    };

    this.utils = {
        millisecondsToTimeExpression: function(milliseconds) {
            /*
             * Parses milliseconds into a time expression.
             */

            if (milliseconds === -1 || milliseconds === undefined || milliseconds === null) {
                throw Error("Invalid milliseconds to be converted" + milliseconds);
            }
            var time = Math.floor(milliseconds / 1000);
            var hours = ~~(time / 3600);
            var minutes = ~~((time % 3600) / 60);
            var fraction = milliseconds % 1000;
            var seconds = time % 60;
            return leftPad(hours, 2) + ':' +
                leftPad(minutes, 2) + ':' +
                leftPad(seconds, 2) +  ',' +
                leftPad(fraction, 3);
        },
        timeExpressionToMilliseconds: function(timeExpression) {
            /*
             * Converts a time expression into milliseconds.
             * Since we trust the backend has generated this value,
             * we're not being to defensive about parsing, we
             * expect this to be in the HH:MM:SS.FFF form.
             * If number of digits on fraction is less than 3,
             * we right pad them.
             *
             * Returns: int
             */
            var components = timeExpression.match(/([\d]{2}):([\d]{2}):([\d]{2}).([\d]{1,3})/i);
            var millisecondsInHours    = components[1] * (3600 * 1000);
            var millisecondsInMinutes  = components[2] * (60 * 1000);
            var millisecondsInSeconds  = components[3] * (1000);
            var millisecondsInFraction = parseInt(rightPad(components[4], 3), 10);

            return parseInt(millisecondsInHours +
                            millisecondsInMinutes +
                            millisecondsInSeconds +
                            millisecondsInFraction, 10);
        },
        xmlToString: function(xml) {
            /*
             * Convert an XML document to a string.
             *
             * Accepts: document object (XML tree)
             * Returns: string
             */

            var xmlString;

            if (window.XMLSerializer) {
                xmlString = (new XMLSerializer()).serializeToString(xml);
            } else {

                // For older versions of Internet Explorer.
                xmlString = xml.xml;

            }

            // Shield your eyes for the next 20 lines or so.
            //
            // A hacky way of removing the default namespaces that get thrown in
            // from creating elements with jQuery. We can get around this by
            // using document.createElementNS, but when we convert subtitles
            // from Markdown to HTML, we use jQuery to create multiple elements
            // on the fly from a string.
            //
            // TODO: Do something that makes more sense.
            //
            // Update: What in the mother is going on here?
            xmlString = xmlString.replace(/(div|p|span|br) xmlns=\"http:\/\/www\.w3\.org\/1999\/xhtml\"/g, '$1');
            xmlString = xmlString.replace(/(div|p|span|br) xmlns=\"http:\/\/www\.w3\.org\/ns\/ttml\"/g, '$1');
            xmlString = xmlString.replace(/(div|p|span|br) xmlns=\"\"/g, '$1');

            // IE special-casing.
            xmlString = xmlString.replace(/xmlns:NS\d+=\"\" /g, '');
            xmlString = xmlString.replace(/NS\d+:/g, '');

            // If the XML does not have a tts namespace set on the &lt;tt&gt; element, we need to
            // set it specifically. This is an IE9 issue.
            if (xmlString.substring(0).search(/\&lt;tt.*xmlns:tts="http:\/\/www.w3.org\/ns\/ttml#styling" /)) {
                xmlString = xmlString.replace(/\&lt;tt /g, '&lt;tt xmlns:tts="http:\/\/www.w3.org\/ns\/ttml#styling" ');
            }

            // Hey look, more hacks. For some reason, when the XML is spit to a
            // string, the attributes are all lower-cased. Fix them here.
            xmlString = xmlString.replace(/textdecoration/g, 'textDecoration');
            xmlString = xmlString.replace(/fontweight/g, 'fontWeight');
            xmlString = xmlString.replace(/fontstyle/g, 'fontStyle');

            return xmlString;
        }
    };

    this.addSubtitle = function(after, newAttrs, content) {
        /*
         * For adding a new subtitle to this set.
         *
         * If `after` is provided, we'll place the new subtitle directly
         * after that one. Otherwise, we'll place the new subtitle at the
         * beginning or end depending on subtitle count.
         *
         * `newAttrs` is an optional JSON object specifying the attributes to
         * be applied to the new element.
         *
         * `content` is an optional string to set the initial content.
         *
         * Returns: new subtitle element
         */

        if (typeof after !== 'object' || after === null) {

            // If this is a number, get the subtitle by index.
            if (typeof after === 'number' &amp;&amp; after !== -1) {

                after = this.getSubtitleByIndex(after);

            } else if (this.subtitlesCount() &amp;&amp; after !== -1) {

                // If we have subtitles, default placement should be at the end.
                after = this.getLastSubtitle();

            // Otherwise, place the first subtitle at the beginning.
            } else {

                after = -1;

            }
        }

        // Firefox needs the namespace set explicitly
        var newSubtitle = document.createElementNS('http://www.w3.org/ns/ttml', 'p');

        // Init the default attrs and combine them with the defined newAttrs if
        // required.
        newAttrs = $.extend({
            'begin': '',
            'end': ''
        }, newAttrs);

        var $newSubtitle = $(newSubtitle).attr(newAttrs);

        // Finally, place the new subtitle.
        //
        // If after is -1, we need to place the subtitle at the beginning.
        if (after === -1) {

            // Prepend the new subtitle to the first div.
            this.$firstDiv.prepend($newSubtitle);

        // Otherwise, place it after the designated subtitle.
        } else {

            // First just make sure that the previous subtitle exists.
            var $previousSubtitle = $(after);

            // Then place it.
            $previousSubtitle.after($newSubtitle);
        }

        if (typeof content !== 'undefined') {
            if (content === null) {
                this.content($newSubtitle.get(0), '');
            } else {
                this.content($newSubtitle.get(0), content);
            }
        }

        return $newSubtitle.get(0);
    };
    this.addSubtitleNode = function (newSubtitle, after){
        if (typeof after !== 'number') {

            // If we have subtitles, default placement should be at the end.
            if (this.subtitlesCount()) {
                after = this.getLastSubtitle();

                // Otherwise, place the first subtitle at the beginning.
            } else {
                after = -1;
            }
        }
        if (after === -1) {

            // Prepend the new subtitle to the first div.
            this.$firstDiv.prepend(newSubtitle);

        // Otherwise, place it after the designated subtitle.
        } else {

            // First just make sure that the previous subtitle exists.
            var $previousSubtitle = this.getSubtitleByIndex(after) || $(this.getLastSubtitle());

            // Then place it.
            $previousSubtitle.after(newSubtitle);
        }
    };
    this.changesMade = function() {
        /*
         * Check to see if any changes have been made to the working XML.
         *
         * Returns: true || false
         */

        var originalString = that.utils.xmlToString(that.$originalXml.get(0));
        var xmlString = that.utils.xmlToString(that.$xml.get(0));

        return originalString !== xmlString;
    };
    this.clearAllContent = function() {
        /*
         * Clear all of the content data for every subtitle.
         *
         * Returns: true
         */

        this.getSubtitles().text('');
    };
    this.clearAllTimes = function() {
        /*
         * Clear all of the timing data for every subtitle.
         *
         * Returns: true
         */

        this.getSubtitles().attr({
            'begin': '',
            'end': ''
        });

        return true;
    };
    this.clone = function(preserveText){
        var parser =  new this.constructor();
        parser.init(this.xmlToString(true));
        if (!preserveText){
            $('p', parser.$xml).text('');
        }
        return parser;
    };
    this.cloneSubtitle = function (node, preserveText){
        var $subtitle = $(node).clone();
        if (!preserveText){
            $subtitle.text('');
        }
        return $subtitle;
    };
    this.content = function(node, content) {
        /*
         * Either get or set the HTML content for the subtitle.
         *
         * Returns: current content (string)
         */

        var $subtitle = $(node);

        if (typeof content !== 'undefined') {
            $subtitle.text(content);
        }

        // OK. So, when parsing an XML node, you can't just get the HTML content.
        // We need to retrieve the total contents of the node by using "contents()",
        // but that returns an array of objects, like ['&lt;b&gt;', 'hi', '&lt;/b&gt;', '&lt;br /&gt;'],
        // etc. So we create a temporary div, and append the array to it, and retrieve
        // the rendered HTML that way. Then remove the temporary div.
        //
        // Reference: http://bit.ly/SwbPeR

        var subtitleContents = $subtitle.contents();

        for (var i = 0; i &lt; subtitleContents.length; i++) {

            // Single newlines in subtitle text nodes will report as two newlines
            // when we use contents().
            //
            if (subtitleContents[i].data === '\n\n') {

                // Set them to single newlines.
                subtitleContents[i].data = '\n';
            }
        }

        return $('&lt;div&gt;').append(subtitleContents.clone()).remove().text();
    };
    this.markdownToHTML = markdownToHTML;
    this.contentRendered = function(node) {
        /*
         * Return the content of the subtitle, rendered with Markdown styles.
         */

        return markdownToHTML(this.content(node));
    };
    this.convertTimes = function(toFormat, $subtitles) {
        /*
         * Convert times to either milliseconds or time expressions
         * in the 'begin' and 'end' attributes, IN PLACE.
         */
        var convertFn = null;
        if (toFormat === 'milliseconds') {
            convertFn = that.utils.timeExpressionToMilliseconds;
        } else if (toFormat === 'timeExpression') {
            convertFn = that.utils.millisecondsToTimeExpression;
        } else {
            throw new Error("Unsupported time conversion " + toFormat);
        }
        for (var i = 0; i &lt; $subtitles.length; i++) {
            var sub, currentStartTime, currentEndTime;
            sub = $subtitles.eq(i);
            currentStartTime = sub.attr('begin');
            currentEndTime = sub.attr('end');
            if (currentStartTime){
                sub.attr('begin', convertFn.call(this, currentStartTime));
            }
            if (currentEndTime){
                sub.attr('end', convertFn.call(this, currentEndTime));
            }
        }
    };
    this.endTime = function(node, endTime) {
        /*
         * Either get or set the end time for the subtitle.
         *
         * Returns: current end time (string)
         */

        if (!node ) {
            return -1;
        }

        if (typeof endTime !== 'undefined') {
            if (endTime &gt;= 0) {
                $(node).attr('end', endTime);
            } else {
                $(node).attr('end', '');
            }
        }

        var val =  parseInt(node.getAttribute('end'), 10);

        return isNaN(val) ? -1 : val;
    };
    this.getFirstSubtitle = function() {
        /*
         * Retrieve the first subtitle in this set.
         *
         * Returns: first subtitle element
         */

        return this.getSubtitles().first().get(0);
    };
    this.getLastSubtitle = function() {
        /*
         * Retrieve the last subtitle in this set.
         *
         * Returns: subtitle element or empty array
         */

        return this.getSubtitles().last().get(0);
    };
    this.getNextSubtitle = function(node) {
        /*
         * Retrieve the subtitle that follows the given subtitle.
         *
         * Returns: subtitle element or null
         */

        var $subtitle = $(node);
        var $nextSubtitle = $subtitle.next();

        return $nextSubtitle.length &gt; 0 ? $nextSubtitle.get(0) : null;
    };
    this.getNonBlankSubtitles = function() {
        /*
         * Retrieve all of the subtitles that have content.
         *
         * Returns: jQuery selection of elements
         */

        return this.getSubtitles().filter(function() {
            return $(this).text() !== '';
        });
    };
    this.getPreviousSubtitle = function(node) {
        /*
         * Retrieve the subtitle that precedes the given subtitle.
         *
         * Returns: subtitle element
         */

        var $subtitle = $(node);
        var $prevSubtitle = $subtitle.prev();

        return $prevSubtitle.length &gt; 0 ? $prevSubtitle.get(0) : null;
    };
    this.getSubtitleByIndex = function(index) {
        /*
         * Return the subtitle node by the given index.
         *
         * Returns: node
         */

        return this.getSubtitles().eq(index).get(0);
    };
    this.getSubtitleIndex = function(subtitle, subtitles) {
        /*
         * Retrieve the index of the given subtitle within the given subtitle s
         *
         * Returns: integer
         */
        subtitles = subtitles || this.getSubtitles();
        return $(subtitles).index(subtitle);
    };
    this.getSubtitles = function() {
        /*
         * Retrieve the current set of subtitles.
         *
         * Returns: jQuery selection of nodes
         */

        return $('p', this.$xml);
    };
    this.isShownAt = function(node, time) {
        /*
         * Determine whether the given subtitle should be displayed
         * at the given time.
         *
         * Returns: true || false
         */

        return (time &gt;= this.startTime(node) &amp;&amp;
                time &lt;= this.endTime(node)) ||
            (time &gt;= this.startTime(node) &amp;&amp;
                this.endTime(node) == -1);
    };
    this.markdownToDFXP = function(input) {
        /**
         * This is *not* a parser. Just a quick hack to convert
         * or markdowny syntax emphasys and strong syntax to
         * the correct dfxp span elements.
         *
         * Please note that when you use jQuery to create elements on the fly,
         * with attributes, jQuery flattens the casing of attributes so that all
         * attributes (such as fontWeight) get lower-cased (fontweight). This
         * sucks.
         */
        if (input === undefined){
            return input;
        }
        for (var i = 0; i &lt; MARKUP_REPLACE_SEQ.length; i ++){
            input = input.replace(MARKUP_REPLACE_SEQ[i][0],
                MARKUP_REPLACE_SEQ[i][1]);
        }
        input = input.replace(RegExp("\n", "g"), '&lt;br/&gt;');
        return input;
    };
    this.needsAnySynced = function() {
        /*
         * Determine whether any of the subtitles in the set need
         * to be synced.
         *
         * Returns: true || false
         */

        var $subtitles = this.getSubtitles();

        for (var i = 0; i &lt; $subtitles.length; i++) {
            var $subtitle = $subtitles.eq(i);

            var startTime = $subtitle.attr('begin');
            var endTime = $subtitle.attr('end');

            // If start time is empty, it always needs to be synced.
            if (startTime === '') {
                return true;
            }

            // If the end time is empty and this is not the last subtitle,
            // it needs to be synced.
            if (endTime === '' &amp;&amp; ($subtitle.get(0) !== this.getLastSubtitle())) {
                return true;
            }

        }

        // Otherwise, we're good.
        return false;
    };
    this.needsAnyTranscribed = function($subtitles) {
        /*
         * Check all of the subtitles for empty content.
         *
         * Returns: true || false
         */

        if (!$subtitles) {
            $subtitles = this.getSubtitles();
        }

        for (var i = 0; i &lt; $subtitles.length; i++) {

            var $subtitle = $subtitles.eq(i);

            if ($subtitle.text() === '') {
                return true;
            }
        }

        return false;
    };
    this.needsSyncing = function(node) {
        /*
         * Given the zero-index or the element of the subtitle to be
         * checked, determine whether the subtitle needs to be synced.
         *
         * In most cases, if a subtitle has either no start time,
         * or no end time, it needs to be synced. However, if the
         * subtitle is the last in the list, the end time may be
         * omitted.
         *
         * Returns: true || false
         */

        var startTime = node.getAttribute('begin');
        var endTime = node.getAttribute('end');

        // If start time is empty, it always needs to be synced.
        if (startTime === '' || startTime === -1) {
            return true;
        }

        // If the end time is empty and this is not the last subtitle,
        // it needs to be synced.
        if ((endTime === '' || endTime === -1) &amp;&amp; (node !== this.getLastSubtitle())) {
            return true;
        }

        // Otherwise, we're good.
        return false;
    };
    this.originalContent = function(node, content) {
        /*
         * Either get or set the original HTML content for the subtitle.
         *
         * Returns: current original content (string)
         */

        if (typeof content !== 'undefined') {
            $(node).attr('originalcontent', content);
        }

        return node.getAttribute('originalcontent');
    };
    this.originalEndTime = function(node, originalEndTime) {
        /*
         * Either get or set the original end time for the subtitle.
         *
         * Returns: current original end time (string)
         */

        if (typeof originalEndTime !== 'undefined') {
            if (parseInt(originalEndTime, 10)) {
                $(node).attr('originalend', originalEndTime);
            } else {
                $(node).attr('originalend', '');
            }
        }

        return node.getAttribute('originalend');
    };
    this.originalStartTime = function(node, originalStartTime) {
        /*
         * Either get or set the original start time for the subtitle.
         *
         * Returns: current original start time (string)
         */

        if (typeof originalStartTime !== 'undefined') {
            if (parseInt(originalStartTime, 10)) {
                $(node).attr('originalbegin', originalStartTime);
            } else {
                $(node).attr('originalbegin', '');
            }
        }

        return node.getAttribute('originalbegin');
    };
    this.originalXmlToString = function() {
        return this.utils.xmlToString(this.$originalXml.get(0));
    };
    this.removeSubtitle = function(node) {
        /*
         * Remove a subtitle.
         *
         * Returns: true
         */

        var $subtitle = $(node);
        var $subtitleParent = $subtitle.parent();

        // If the parent div has only one child, remove the parent div along with this
        // subtitle.
        if ($subtitleParent.children('p').length === 1) {

            // If the parent div is the first div, only remove the subtitle.
            if ($subtitleParent.get(0) === this.$firstDiv.get(0)) {
                $subtitle.remove();

            // Otherwise, remove the parent.
            } else {
                $subtitleParent.remove();
            }

        // Otherwise, there are other subtitles in this parent div. Only remove the subtitle.
        } else {
            $subtitle.remove();
        }

        return true;
    };
    this.removeSubtitles = function() {
        /*
         * Remove all subtitles from the working set.
         *
         * Returns: true
         */

        // Remove everything inside the body.
        $('body &gt; *', this.$xml).remove();

        // Create a new original container for new subs.
        var newDiv = document.createElementNS('http://www.w3.org/ns/ttml', 'div');
        $('body', this.$xml).append(newDiv);

        this.$firstDiv = $(newDiv);


        return true;
    };
    this.resetSubtitles = function() {
        /*
         * For each subtitle, if the content is empty, delete the subtitle.
         * Otherwise, just reset the text and the start/end times.
         *
         * Returns: true
         */

        this.$xml = this.$originalXml.clone();
        // Cache the first div.
        this.$firstDiv = $('div:first-child', this.$xml);
        return true;
    };
    this.startOfParagraph = function(node, startOfParagraph) {
        /*
         * Either get or set the startofparagraph for the subtitle.
         *
         * A &lt;div&gt; element marks the start of a new paragraph,
         * therefore all first subtitles are start of paragraphs.
         * When we want to set it to true, we wrap that &lt;p&gt; inside
         * a &lt;div&gt; (checking that we're not already a first paragraph ).
         *
         * Returns: current state of startofparagraph (boolean)
         */

        var $subtitle = $(node);

        // If startOrParagraph was passed, we need to do something.
        //
        // Otherwise, we'll just return the current state.
        if (typeof startOfParagraph !== 'undefined') {

            if (startOfParagraph) {
                // This subtitle should now indicate that it is the start of a paragraph.

                // If the subtitle is not the first child, then we need to
                // close the previous div, and open a new div before this subtitle.
                if (!$subtitle.is(':first-child')) {

                    // Get the next siblings after this subtitle. We'll need to move them
                    // into our containing div later.
                    var $allNextSiblings = $subtitle.nextAll();

                    // Get the parent containing div of this subtitle. We'll need to move
                    // the new group of subtitles after the parent.
                    var $parentDiv = $subtitle.parent('div');

                    // Wrap the subtitle in a div.
                    $subtitle.wrap('&lt;div&gt;');

                    // Get the newly created div.
                    var $newDiv = $subtitle.parent('div');

                    // Append the siblings to the new div.
                    $newDiv.append($allNextSiblings);

                    // Move the new containing div after the original parent div.
                    $parentDiv.after($newDiv);
                }

            // startOfParagraph is false. Check to see if this is a valid subtitle to unmark
            // as a start of a paragraph. We can't unmark any non-first-children, or if the
            // subtitle is the first-child of the first div.
            } else if ($subtitle.is(':first-child') &amp;&amp; $subtitle.parent().get(0) !== this.$firstDiv.get(0)) {
                // This subtitle should no longer indicate that it is the start of a paragraph.

                // Get the current div that we'll be removing.
                var $currentDiv = $subtitle.parent();

                // Get previous div.
                var $previousDiv = $currentDiv.prev();

                // Get all of the subtitles inside of this subtitle's containing div.
                var $subtitlesInDiv = $subtitle.parent().children('p');

                // Move the subtitles in the current div to the previous div.
                $previousDiv.append($subtitlesInDiv);

                // Remove the current div.
                $currentDiv.remove();
            }
        }

        return $subtitle.is(':first-child');
    };
    this.startTime = function(node, startTime) {
        /*
         * Either get or set the start time for the subtitle.
         *
         * Returns: current start time (string)
         */

        if (!node) {
            return -1;
        }

        if (typeof startTime !== 'undefined') {
            if (startTime &gt;= 0) {
                $(node).attr('begin', startTime);
            } else {
                $(node).attr('begin', '');
            }
        }

        var val =  parseInt(node.getAttribute('begin'), 10);

        return isNaN(val) ? -1 : val;
    };
    this.startTimeDisplay = function(node) {
        /*
         * Display the start time in either seconds or time expression, depending on
         * how large it is.
         */

        if (this.startTime(node) &gt; 60000) {

            var timeExp = this.startTimeInTimeExpression(node).replace(',', '.');
            var timeExpParts = timeExp.split(':');

            var hours = timeExpParts[0];
            var minutes = timeExpParts[1];
            var seconds = timeExpParts[2];

            if (hours === '00') {

                if (minutes === '00') {
                    return seconds;
                }

                minutes = parseInt(minutes, 10);

                return [ minutes, seconds ].join(':');
            }

            hours = parseInt(hours, 10);

            return [ hours, minutes, seconds ].join(':');

        } else {
            return this.startTimeInSeconds(node);
        }
    };
    this.startTimeInSeconds = function(node) {
        return parseFloat(this.startTime(node) / 1000).toFixed(3);
    };
    this.startTimeInTimeExpression = function(node) {
        return this.utils.millisecondsToTimeExpression.call(this, this.startTime(node));
    };
    this.subtitlesCount = function() {
        /*
         * Retrieve the current number of subtitles.
         *
         * Returns: integer
         */

        return this.getSubtitles().length;
    };
    this.xmlToString = function(convertToTimeExpression, convertMarkdownToDFXP) {
        /*
         * Parse the working XML to a string.
         *
         * If `convertToTimeExpression` is specified, we convert current
         * `begin` and `end` attrubutes from the working format (milliseconds)
         * to time expressins, otherwise, output what we've got
         *
         * If `convertMarkdownToDFXP` is specified, we convert each subtitle
         * text from markdown-type strings to parsed DFXP.
         *
         * Returns: string
         */

        // Create a cloned set of XML, so we don't modify the original.
        var $cloned = this.$xml.clone();

        // If we need to convert Markdown to DFXP, do it here.
        if (convertMarkdownToDFXP) {
            var $subtitles = $('p', $cloned);

            for (var i = 0; i &lt; $subtitles.length; i++) {
                var $subtitle = $subtitles.eq(i);
                var convertedText = this.markdownToDFXP($subtitle.text());

                // If the converted text is different from the subtitle text, it
                // means we were able to convert some Markdown to DFXP.
                if (convertedText !== $subtitle.text()) {

                    // Create a new object with this new converted DOM structure.
                    //
                    // We have to use a placeholder div otherwise if you try and just append
                    // the convertedText to the subtitle node, it'll disregard text that is not
                    // within a child element.
                    var $newObj = $('&lt;div class="removeme"&gt;').append(convertedText);

                    // Clear out the subtitle's existing content.
                    $subtitle.text('');

                    // Append the new object to this subtitle.
                    $subtitle.append($newObj);

                    // Kill the placeholder div.
                    $('div.removeme', $subtitle).children().unwrap();

                }
            }
        }

        // Since our back-end is expecting time expressions, we may need to convert
        // the working XML's times to time expressions.
        if (convertToTimeExpression) {
            this.convertTimes('timeExpression', $('p', $cloned));
        }

        return this.utils.xmlToString($cloned.get(0));
    };

};

return {
    AmaraDFXPParser: AmaraDFXPParser,
    markdownToHTML: markdownToHTML,
    markdownToPlaintext: markdownToPlaintext,
    dfxpToMarkdown: dfxpToMarkdown
}

})(window.AmarajQuery || window.jQuery);

/* Set window.AmaraDFXPParser for compatibility with the old editor */
window.AmaraDFXPParser = dfxp.AmaraDFXPParser;
/*	SWFObject v2.2 &lt;http://code.google.com/p/swfobject/&gt; 
	is released under the MIT License &lt;http://www.opensource.org/licenses/mit-license.php&gt; 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&amp;&amp;typeof j.getElementsByTagName!=D&amp;&amp;typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&amp;&amp;typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&amp;&amp;!(typeof t.mimeTypes!=D&amp;&amp;t.mimeTypes[q]&amp;&amp;!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&amp;&amp;j.readyState=="complete")||(typeof j.readyState==D&amp;&amp;(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&amp;&amp;M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y&lt;X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y&lt;10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag&gt;0){for(var af=0;af&lt;ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]&gt;0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&amp;&amp;A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad&lt;ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&amp;&amp;typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&amp;&amp;Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&amp;&amp;F("6.0.65")&amp;&amp;(M.win||M.mac)&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&amp;&amp;parseInt(aa.width,10)&lt;310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&amp;&amp;parseInt(aa.height,10)&lt;137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&amp;&amp;M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&amp;/g,"%26")+"&amp;MMplayerType="+ad+"&amp;MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&amp;"+ac}else{ab.flashvars=ac}if(M.ie&amp;&amp;M.win&amp;&amp;ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&amp;&amp;M.win&amp;&amp;Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&amp;&amp;M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z&lt;X;Z++){if(!(ad[Z].nodeType==1&amp;&amp;ad[Z].nodeName=="PARAM")&amp;&amp;!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&amp;&amp;M.wk&lt;312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&amp;&amp;M.win)
{var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='&lt;param name="'+ad+'" value="'+ag[ad]+'" /&gt;'}}aa.outerHTML='&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+"&gt;"+af+"&lt;/object&gt;";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&amp;&amp;ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&amp;&amp;X.nodeName=="OBJECT"){if(M.ie&amp;&amp;M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]&gt;X[0]||(Y[0]==X[0]&amp;&amp;Y[1]&gt;X[1])||(Y[0]==X[0]&amp;&amp;Y[1]==X[1]&amp;&amp;Y[2]&gt;=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&amp;&amp;M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&amp;&amp;typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&amp;&amp;M.win&amp;&amp;typeof j.styleSheets!=D&amp;&amp;j.styleSheets.length&gt;0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&amp;&amp;M.win){if(n&amp;&amp;typeof n.addRule==r){}}else{if(n&amp;&amp;typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&amp;&amp;c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"&lt;&gt;\.;]/;var X=Z.exec(Y)!=null;return X&amp;&amp;typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&amp;&amp;M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab&lt;ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa&lt;Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&amp;&amp;ab&amp;&amp;X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&amp;&amp;!(M.wk&amp;&amp;M.wk&lt;312)&amp;&amp;ab&amp;&amp;ah&amp;&amp;ae&amp;&amp;ag&amp;&amp;Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&amp;&amp;typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&amp;&amp;typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&amp;&amp;typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&amp;"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&amp;&amp;A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&amp;&amp;A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&amp;");for(var X=0;X&lt;Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&amp;&amp;l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&amp;&amp;M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
/* 
 * flowplayer.js 3.2.6. The Flowplayer API
 * 
 * Copyright 2009-2011 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
 * 
 * Date: 2011-02-04 05:45:28 -0500 (Fri, 04 Feb 2011)
 * Revision: 614 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p&lt;r&amp;&amp;q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&amp;&amp;p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&amp;&amp;this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&amp;&amp;"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&amp;&amp;v.fp_play!==undefined&amp;&amp;!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&amp;&amp;parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&amp;&amp;w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&amp;&amp;!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&amp;&amp;/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&amp;&amp;w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.6";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&amp;&amp;I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&amp;&amp;R=="onLoad"&amp;&amp;O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&amp;&amp;O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&amp;&amp;typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K&lt;F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&amp;&amp;O&lt;F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&amp;&amp;!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&amp;&amp;K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&amp;&amp;K[L]===undefined&amp;&amp;typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&amp;&amp;w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&amp;&amp;!/.flv$/i.test(F[0].url)&amp;&amp;!K){return true}if(!w.isLoaded()&amp;&amp;w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length&gt;1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&amp;&amp;l.getElementsByTagName&amp;&amp;l.getElementById&amp;&amp;l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k&lt;c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&amp;&amp;l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='&lt;object width="'+q.width+'" height="'+q.height+'"';if(s&amp;&amp;!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&amp;":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+="&gt;";if(q.w3c||s){n+='&lt;param name="movie" value="'+q.src+'" /&gt;'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='&lt;param name="'+l+'" value="'+q[l]+'" /&gt;'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&amp;"}}o=o.substring(0,o.length-1);n+='&lt;param name="flashvars" value=\''+o+"' /&gt;"}n+="&lt;/object&gt;";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&amp;&amp;r&amp;&amp;flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="&lt;h2&gt;Flash version "+q+" or greater is required&lt;/h2&gt;&lt;h3&gt;"+(k[0]&gt;0?"Your version is "+k:"You have no flash plugin installed")+"&lt;/h3&gt;"+(m.tagName=="A"?"&lt;p&gt;Click here to download latest version&lt;/p&gt;":"&lt;p&gt;Download latest version from &lt;a href='http://www.adobe.com/go/getflashplayer'&gt;here&lt;/a&gt;&lt;/p&gt;");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&amp;&amp;p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&amp;&amp;typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]&gt;k[0])||(m[0]==k[0]&amp;&amp;m[1]&gt;=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();(function(){function e(){return function(){}}function aa(a){return function(b){this[a]=b}}function k(a){return function(){return this[a]}}function m(a){return function(){return a}}var o,ba=ba||{},p=this;function ca(a,b,c){a=a.split(".");c=c||p;!(a[0]in c)&amp;&amp;c.execScript&amp;&amp;c.execScript("var "+a[0]);for(var d;a.length&amp;&amp;(d=a.shift());)if(!a.length&amp;&amp;b!==undefined)c[d]=b;else c=c[d]?c[d]:(c[d]={})}function da(a,b){a=a.split(".");b=b||p;for(var c;c=a.shift();)if(r(b[c]))b=b[c];else return null;return b}
function s(){}function t(){throw Error("unimplemented abstract method");}function ea(a){a.oa=function(){return a.el||(a.el=new a)}}
function fa(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&amp;&amp;typeof a.splice!="undefined"&amp;&amp;typeof a.propertyIsEnumerable!="undefined"&amp;&amp;!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&amp;&amp;typeof a.propertyIsEnumerable!="undefined"&amp;&amp;!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if(b=="function"&amp;&amp;typeof a.call=="undefined")return"object";return b}function r(a){return a!=null}function u(a){return fa(a)=="array"}function ga(a){var b=fa(a);return b=="array"||b=="object"&amp;&amp;typeof a.length=="number"}function v(a){return typeof a=="string"}function ha(a){return fa(a)=="function"}function ia(a){a=fa(a);return a=="object"||a=="array"||a=="function"}function ja(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),la=0;
function ma(a){return a.call.apply(a.Bh,arguments)}function na(a,b){if(!a)throw new Error;if(arguments.length&gt;2){var c=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,c);return a.apply(b,d)}}else return function(){return a.apply(b,arguments)}}function w(){w=Function.prototype.Bh&amp;&amp;Function.prototype.Bh.toString().indexOf("native code")!=-1?ma:na;return w.apply(null,arguments)}
function oa(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var pa=Date.now||function(){return+new Date};function qa(a,b){b=b||{};for(var c in b){var d=(""+b[c]).replace(/\$/g,"$$$$");a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),d)}return a}function y(a,b){function c(){}c.prototype=b.prototype;a.d=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function ra(a,b){var c=a.length-b.length;return c&gt;=0&amp;&amp;a.indexOf(b,c)==c}function sa(a){for(var b=1;b&lt;arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}function ta(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function ua(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function va(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a&lt;b?-1:a==b?0:1}var wa=/^[a-zA-Z0-9\-_.!~*'()]*$/;
function xa(a){a=String(a);if(!wa.test(a))return encodeURIComponent(a);return a}function ya(a,b){if(b)return a.replace(za,"&amp;amp;").replace(Aa,"&amp;lt;").replace(Ba,"&amp;gt;").replace(Ca,"&amp;quot;");else{if(!Da.test(a))return a;if(a.indexOf("&amp;")!=-1)a=a.replace(za,"&amp;amp;");if(a.indexOf("&lt;")!=-1)a=a.replace(Aa,"&amp;lt;");if(a.indexOf("&gt;")!=-1)a=a.replace(Ba,"&amp;gt;");if(a.indexOf('"')!=-1)a=a.replace(Ca,"&amp;quot;");return a}}var za=/&amp;/g,Aa=/&lt;/g,Ba=/&gt;/g,Ca=/\"/g,Da=/[&amp;&lt;&gt;\"]/;
function Ea(a,b){return a.indexOf(b)!=-1}
function Fa(a,b){var c=0;a=ua(String(a)).split(".");b=ua(String(b)).split(".");for(var d=Math.max(a.length,b.length),f=0;c==0&amp;&amp;f&lt;d;f++){var g=a[f]||"",h=b[f]||"",j=new RegExp("(\\d*)(\\D*)","g"),l=new RegExp("(\\d*)(\\D*)","g");do{var n=j.exec(g)||["","",""],q=l.exec(h)||["","",""];if(n[0].length==0&amp;&amp;q[0].length==0)break;c=n[1].length==0?0:parseInt(n[1],10);var B=q[1].length==0?0:parseInt(q[1],10);c=Ha(c,B)||Ha(n[2].length==0,q[2].length==0)||Ha(n[2],q[2])}while(c==0)}return c}
function Ha(a,b){if(a&lt;b)return-1;else if(a&gt;b)return 1;return 0}var Ia={};function Ja(a){return Ia[a]||(Ia[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}var Ka,La,Ma,Na,Oa,Pa,Qa,Ra;function Sa(){return p.navigator?p.navigator.userAgent:null}function Ta(){return p.navigator}Oa=Na=Ma=La=Ka=false;var Ua;if(Ua=Sa()){var Va=Ta();Ka=Ua.indexOf("Opera")==0;La=!Ka&amp;&amp;Ua.indexOf("MSIE")!=-1;Na=(Ma=!Ka&amp;&amp;Ua.indexOf("WebKit")!=-1)&amp;&amp;Ua.indexOf("Mobile")!=-1;Oa=!Ka&amp;&amp;!Ma&amp;&amp;Va.product=="Gecko"}
var Wa=Ka,z=La,Xa=Oa,A=Ma,Ya=Na,Za,$a=Ta();Za=$a&amp;&amp;$a.platform||"";Pa=Ea(Za,"Mac");Qa=Ea(Za,"Win");Ra=Ea(Za,"Linux");var ab=!!Ta()&amp;&amp;Ea(Ta().appVersion||"","X11"),bb;
a:{var cb="",db;if(Wa&amp;&amp;p.opera){var eb=p.opera.version;cb=typeof eb=="function"?eb():eb}else{if(Xa)db=/rv\:([^\);]+)(\)|;)/;else if(z)db=/MSIE\s+([^\);]+)(\)|;)/;else if(A)db=/WebKit\/(\S+)/;if(db){var fb=db.exec(Sa());cb=fb?fb[1]:""}}if(z){var gb,hb=p.document;gb=hb?hb.documentMode:undefined;if(gb&gt;parseFloat(cb)){bb=String(gb);break a}}bb=cb}var ib={};function jb(a){return ib[a]||(ib[a]=Fa(bb,a)&gt;=0)}var kb={};
function lb(a){return kb[a]||(kb[a]=z&amp;&amp;document.documentMode&amp;&amp;document.documentMode&gt;=a)}var mb;function nb(a,b,c,d,f){if(!z&amp;&amp;!(A&amp;&amp;jb("525")))return true;if(Pa&amp;&amp;f)return ob(a);if(f&amp;&amp;!d)return false;if(!c&amp;&amp;(b==17||b==18))return false;if(z&amp;&amp;d&amp;&amp;b==a)return false;switch(a){case 13:return!(z&amp;&amp;lb(9));case 27:return!A}return ob(a)}
function ob(a){if(a&gt;=48&amp;&amp;a&lt;=57)return true;if(a&gt;=96&amp;&amp;a&lt;=106)return true;if(a&gt;=65&amp;&amp;a&lt;=90)return true;if(A&amp;&amp;a==0)return true;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return true;default:return false}}var pb;function qb(a){this.stack=(new Error).stack||"";if(a)this.message=String(a)}y(qb,Error);qb.prototype.name="CustomError";
function rb(a,b){b.unshift(a);qb.call(this,sa.apply(null,b));b.shift();this.Jn=a}y(rb,qb);rb.prototype.name="AssertionError";var sb=Array.prototype;function tb(a,b,c){c=c==null?0:c&lt;0?Math.max(0,a.length+c):c;if(v(a)){if(!v(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c&lt;a.length;c++)if(c in a&amp;&amp;a[c]===b)return c;return-1}function C(a,b,c){for(var d=a.length,f=v(a)?a.split(""):a,g=0;g&lt;d;g++)g in f&amp;&amp;b.call(c,f[g],g,a)}
function ub(a,b,c){for(var d=a.length,f=[],g=0,h=v(a)?a.split(""):a,j=0;j&lt;d;j++)if(j in h){var l=h[j];if(b.call(c,l,j,a))f[g++]=l}return f}function D(a,b,c){for(var d=a.length,f=new Array(d),g=v(a)?a.split(""):a,h=0;h&lt;d;h++)if(h in g)f[h]=b.call(c,g[h],h,a);return f}function vb(a,b,c){for(var d=a.length,f=v(a)?a.split(""):a,g=0;g&lt;d;g++)if(g in f&amp;&amp;b.call(c,f[g],g,a))return true;return false}
function wb(a,b,c){a:{for(var d=a.length,f=v(a)?a.split(""):a,g=0;g&lt;d;g++)if(g in f&amp;&amp;b.call(c,f[g],g,a)){b=g;break a}b=-1}return b&lt;0?null:v(a)?a.charAt(b):a[b]}function E(a,b){return tb(a,b)&gt;=0}function xb(a,b,c){yb(a,c,0,b)}function zb(a,b,c){oa(yb,a,c,0).apply(null,b)}function Ab(a,b){b=tb(a,b);var c;if(c=b&gt;=0)sb.splice.call(a,b,1);return c}function Bb(){return sb.concat.apply(sb,arguments)}function Cb(a){if(u(a))return Bb(a);else{for(var b=[],c=0,d=a.length;c&lt;d;c++)b[c]=a[c];return b}}
function Db(a){for(var b=1;b&lt;arguments.length;b++){var c=arguments[b],d;if(u(c)||(d=ga(c))&amp;&amp;c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var f=a.length,g=c.length,h=0;h&lt;g;h++)a[f+h]=c[h];else a.push(c)}}function yb(a){return sb.splice.apply(a,Eb(arguments,1))}function Eb(a,b,c){return arguments.length&lt;=2?sb.slice.call(a,b):sb.slice.call(a,b,c)}
function Fb(a,b){b=b||a;for(var c={},d=0,f=0;f&lt;a.length;){var g=a[f++],h=ia(g)?"o"+ja(g):(typeof g).charAt(0)+g;if(!Object.prototype.hasOwnProperty.call(c,h)){c[h]=true;b[d++]=g}}b.length=d}function Gb(a,b,c,d,f){for(var g=0,h=a.length,j;g&lt;h;){var l=g+h&gt;&gt;1,n;n=c?b.call(f,a[l],l,a):b(d,a[l]);if(n&gt;0)g=l+1;else{h=l;j=!n}}return j?g:~g}function Hb(a,b){sb.sort.call(a,b||Ib)}function Ib(a,b){return a&gt;b?1:a&lt;b?-1:0}var Jb=[],Kb=!z||lb(9),Lb=z&amp;&amp;!jb("8");function F(){if(Mb)Nb[ja(this)]=this}
var Mb=false,Nb={};F.prototype.yd=false;F.prototype.r=function(){if(!this.yd){this.yd=true;this.i();if(Mb){var a=ja(this);if(!Nb.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete Nb[a]}}};F.prototype.i=function(){this.xk&amp;&amp;Ob.apply(null,this.xk)};function Pb(a){a&amp;&amp;typeof a.r=="function"&amp;&amp;a.r()}function Ob(){for(var a=0,b=arguments.length;a&lt;b;++a){var c=arguments[a];ga(c)?Ob.apply(null,c):Pb(c)}}
function Qb(a,b){F.call(this);this.type=a;this.currentTarget=this.target=b}y(Qb,F);o=Qb.prototype;o.i=function(){delete this.type;delete this.target;delete this.currentTarget};o.Ac=false;o.Td=true;o.stopPropagation=function(){this.Ac=true};o.preventDefault=function(){this.Td=false};function Rb(a){a.preventDefault()}function Sb(a){Sb[" "](a);return a}Sb[" "]=s;function Tb(a,b){a&amp;&amp;this.tc(a,b)}y(Tb,Qb);var Ub=[1,4,2];o=Tb.prototype;o.target=null;o.relatedTarget=null;o.offsetX=0;o.offsetY=0;
o.clientX=0;o.clientY=0;o.screenX=0;o.screenY=0;o.button=0;o.keyCode=0;o.charCode=0;o.ctrlKey=false;o.altKey=false;o.shiftKey=false;o.metaKey=false;o.Wl=false;o.na=null;
o.tc=function(a,b){var c=this.type=a.type;Qb.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Xa){var d;a:{try{Sb(b.nodeName);d=true;break a}catch(f){}d=false}d||(b=null)}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?
a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Wl=Pa?a.metaKey:a.ctrlKey;this.pm=a.pm;this.na=a;delete this.Td;delete this.Ac};function Vb(a){return(Kb?a.na.button==0:a.type=="click"?true:!!(a.na.button&amp;Ub[0]))&amp;&amp;!(A&amp;&amp;Pa&amp;&amp;a.ctrlKey)}
Tb.prototype.stopPropagation=function(){Tb.d.stopPropagation.call(this);if(this.na.stopPropagation)this.na.stopPropagation();else this.na.cancelBubble=true};Tb.prototype.preventDefault=function(){Tb.d.preventDefault.call(this);var a=this.na;if(a.preventDefault)a.preventDefault();else{a.returnValue=false;if(Lb)try{if(a.ctrlKey||a.keyCode&gt;=112&amp;&amp;a.keyCode&lt;=123)a.keyCode=-1}catch(b){}}};Tb.prototype.Jk=k("na");
Tb.prototype.i=function(){Tb.d.i.call(this);this.relatedTarget=this.currentTarget=this.target=this.na=null};function Wb(){}var Xb=0;o=Wb.prototype;o.sa=0;o.Bc=false;o.Ef=false;o.tc=function(a,b,c,d,f,g){if(ha(a))this.ui=true;else if(a&amp;&amp;a.handleEvent&amp;&amp;ha(a.handleEvent))this.ui=false;else throw Error("Invalid listener argument");this.ad=a;this.jj=b;this.src=c;this.type=d;this.capture=!!f;this.Be=g;this.Ef=false;this.sa=++Xb;this.Bc=false};
o.handleEvent=function(a){if(this.ui)return this.ad.call(this.Be||this.src,a);return this.ad.handleEvent.call(this.ad,a)};function Yb(a,b){F.call(this);this.Ki=b;this.oc=[];if(a&gt;this.Ki)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(b=0;b&lt;a;b++)this.oc.push(this.Bb?this.Bb():{})}y(Yb,F);Yb.prototype.Bb=null;Yb.prototype.Qh=null;function Zb(a){if(a.oc.length)return a.oc.pop();return a.Bb?a.Bb():{}}function $b(a,b){a.oc.length&lt;a.Ki?a.oc.push(b):ac(a,b)}
function ac(a,b){if(a.Qh)a.Qh(b);else if(ia(b))if(ha(b.r))b.r();else for(var c in b)delete b[c]}Yb.prototype.i=function(){Yb.d.i.call(this);for(var a=this.oc;a.length;)ac(this,a.pop());delete this.oc};var bc;var cc=(bc="ScriptEngine"in p&amp;&amp;p.ScriptEngine()=="JScript")?p.ScriptEngineMajorVersion()+"."+p.ScriptEngineMinorVersion()+"."+p.ScriptEngineBuildVersion():"0",dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc;
(function(){function a(){return{C:0,ob:0}}function b(){return[]}function c(){function U(R){R=h.call(U.src,U.sa,R);if(!R)return R}return U}function d(){return new Wb}function f(){return new Tb}var g=bc&amp;&amp;!(Fa(cc,"5.7")&gt;=0),h;ic=function(U){h=U};if(g){dc=function(){return Zb(j)};ec=function(U){$b(j,U)};fc=function(){return Zb(l)};gc=function(U){$b(l,U)};hc=function(){return Zb(n)};jc=function(){$b(n,c())};kc=function(){return Zb(q)};lc=function(U){$b(q,U)};mc=function(){return Zb(B)};nc=function(U){$b(B,
U)};var j=new Yb(0,600);j.Bb=a;var l=new Yb(0,600);l.Bb=b;var n=new Yb(0,600);n.Bb=c;var q=new Yb(0,600);q.Bb=d;var B=new Yb(0,600);B.Bb=f}else{dc=a;ec=s;fc=b;gc=s;hc=c;jc=s;kc=d;lc=s;mc=f;nc=s}})();function oc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function pc(a,b,c){var d={};for(var f in a)if(b.call(c,a[f],f,a))d[f]=a[f];return d}function qc(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b}function rc(a){var b=[],c=0;for(var d in a)b[c++]=d;return b}
function sc(a,b){var c;if(c=b in a)delete a[b];return c}function tc(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}function uc(a,b,c){if(b in a)return a[b];return c}function vc(a){var b={};for(var c in a)b[a[c]]=c;return b}var wc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
function xc(a){for(var b,c,d=1;d&lt;arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f&lt;wc.length;f++){b=wc[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}}function yc(){var a=arguments.length;if(a==1&amp;&amp;u(arguments[0]))return yc.apply(null,arguments[0]);if(a%2)throw Error("Uneven number of arguments");for(var b={},c=0;c&lt;a;c+=2)b[arguments[c]]=arguments[c+1];return b}var zc={},Ac={},Bc={},Cc={};
function G(a,b,c,d,f){if(b)if(u(b)){for(var g=0;g&lt;b.length;g++)G(a,b[g],c,d,f);return null}else{d=!!d;var h=Ac;b in h||(h[b]=dc());h=h[b];if(!(d in h)){h[d]=dc();h.C++}h=h[d];var j=ja(a),l;h.ob++;if(h[j]){l=h[j];for(g=0;g&lt;l.length;g++){h=l[g];if(h.ad==c&amp;&amp;h.Be==f){if(h.Bc)break;return l[g].sa}}}else{l=h[j]=fc();h.C++}g=hc();g.src=a;h=kc();h.tc(c,g,a,b,d,f);c=h.sa;g.sa=c;l.push(h);zc[c]=h;Bc[j]||(Bc[j]=fc());Bc[j].push(h);if(a.addEventListener){if(a==p||!a.Mh)a.addEventListener(b,g,d)}else a.attachEvent(Dc(b),
g);return c}else throw Error("Invalid event type");}function Ec(a,b,c,d,f){if(u(b)){for(var g=0;g&lt;b.length;g++)Ec(a,b[g],c,d,f);return null}a=G(a,b,c,d,f);zc[a].Ef=true;return a}function Fc(a,b,c,d,f){if(u(b)){for(var g=0;g&lt;b.length;g++)Fc(a,b[g],c,d,f);return null}d=!!d;a=Gc(a,b,d);if(!a)return false;for(g=0;g&lt;a.length;g++)if(a[g].ad==c&amp;&amp;a[g].capture==d&amp;&amp;a[g].Be==f)return Hc(a[g].sa);return false}
function Hc(a){if(!zc[a])return false;var b=zc[a];if(b.Bc)return false;var c=b.src,d=b.type,f=b.jj,g=b.capture;if(c.removeEventListener){if(c==p||!c.Mh)c.removeEventListener(d,f,g)}else c.detachEvent&amp;&amp;c.detachEvent(Dc(d),f);c=ja(c);f=Ac[d][g][c];if(Bc[c]){var h=Bc[c];Ab(h,b);h.length==0&amp;&amp;delete Bc[c]}b.Bc=true;f.Pi=true;Ic(d,g,c,f);delete zc[a];return true}
function Ic(a,b,c,d){if(!d.Ke)if(d.Pi){for(var f=0,g=0;f&lt;d.length;f++)if(d[f].Bc){var h=d[f].jj;h.src=null;jc(h);lc(d[f])}else{if(f!=g)d[g]=d[f];g++}d.length=g;d.Pi=false;if(g==0){gc(d);delete Ac[a][b][c];Ac[a][b].C--;if(Ac[a][b].C==0){ec(Ac[a][b]);delete Ac[a][b];Ac[a].C--}if(Ac[a].C==0){ec(Ac[a]);delete Ac[a]}}}}
function Jc(a,b,c){var d=0,f=a==null,g=b==null,h=c==null;c=!!c;if(f)oc(Bc,function(l){for(var n=l.length-1;n&gt;=0;n--){var q=l[n];if((g||b==q.type)&amp;&amp;(h||c==q.capture)){Hc(q.sa);d++}}});else{a=ja(a);if(Bc[a]){a=Bc[a];for(f=a.length-1;f&gt;=0;f--){var j=a[f];if((g||b==j.type)&amp;&amp;(h||c==j.capture)){Hc(j.sa);d++}}}}return d}function Gc(a,b,c){var d=Ac;if(b in d){d=d[b];if(c in d){d=d[c];a=ja(a);if(d[a])return d[a]}}return null}function Dc(a){if(a in Cc)return Cc[a];return Cc[a]="on"+a}
function Kc(a,b,c,d,f){var g=1;b=ja(b);if(a[b]){a.ob--;a=a[b];if(a.Ke)a.Ke++;else a.Ke=1;try{for(var h=a.length,j=0;j&lt;h;j++){var l=a[j];if(l&amp;&amp;!l.Bc)g&amp;=Lc(l,f)!==false}}finally{a.Ke--;Ic(c,d,b,a)}}return Boolean(g)}function Lc(a,b){b=a.handleEvent(b);a.Ef&amp;&amp;Hc(a.sa);return b}
function Mc(a,b){var c=b.type||b,d=Ac;if(!(c in d))return true;if(v(b))b=new Qb(b,a);else if(b instanceof Qb)b.target=b.target||a;else{var f=b;b=new Qb(c,a);xc(b,f)}f=1;var g;d=d[c];c=true in d;var h;if(c){g=[];for(h=a;h;h=h.Re)g.push(h);h=d[true];h.ob=h.C;for(var j=g.length-1;!b.Ac&amp;&amp;j&gt;=0&amp;&amp;h.ob;j--){b.currentTarget=g[j];f&amp;=Kc(h,g[j],b.type,true,b)&amp;&amp;b.Td!=false}}if(false in d){h=d[false];h.ob=h.C;if(c)for(j=0;!b.Ac&amp;&amp;j&lt;g.length&amp;&amp;h.ob;j++){b.currentTarget=g[j];f&amp;=Kc(h,g[j],b.type,false,b)&amp;&amp;b.Td!=false}else for(a=
a;!b.Ac&amp;&amp;a&amp;&amp;h.ob;a=a.Re){b.currentTarget=a;f&amp;=Kc(h,a,b.type,false,b)&amp;&amp;b.Td!=false}}return Boolean(f)}
function Nc(a,b){if(!zc[a])return true;a=zc[a];var c=a.type,d=Ac;if(!(c in d))return true;d=d[c];var f,g;if(mb===undefined)mb=z&amp;&amp;!p.addEventListener;if(mb){f=b||da("window.event");b=true in d;var h=false in d;if(b){if(f.keyCode&lt;0||f.returnValue!=undefined)return true;a:{var j=false;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(l){j=true}if(j||f.returnValue==undefined)f.returnValue=true}}j=mc();j.tc(f,this);f=true;try{if(b){for(var n=fc(),q=j.currentTarget;q;q=q.parentNode)n.push(q);g=d[true];g.ob=
g.C;for(var B=n.length-1;!j.Ac&amp;&amp;B&gt;=0&amp;&amp;g.ob;B--){j.currentTarget=n[B];f&amp;=Kc(g,n[B],c,true,j)}if(h){g=d[false];g.ob=g.C;for(B=0;!j.Ac&amp;&amp;B&lt;n.length&amp;&amp;g.ob;B++){j.currentTarget=n[B];f&amp;=Kc(g,n[B],c,false,j)}}}else f=Lc(a,j)}finally{if(n){n.length=0;gc(n)}j.r();nc(j)}return f}g=new Tb(b,this);try{f=Lc(a,g)}finally{g.r()}return f}ic(Nc);Jb[Jb.length]=function(a){Nc=a(Nc);ic(Nc)};function H(){F.call(this)}y(H,F);o=H.prototype;o.Mh=true;o.Re=null;o.hd=aa("Re");
o.addEventListener=function(a,b,c,d){G(this,a,b,c,d)};o.removeEventListener=function(a,b,c,d){Fc(this,a,b,c,d)};o.dispatchEvent=function(a){return Mc(this,a)};o.i=function(){H.d.i.call(this);Jc(this);this.Re=null};function Oc(a,b){F.call(this);a&amp;&amp;this.yh(a,b)}y(Oc,H);o=Oc.prototype;o.q=null;o.He=null;o.hg=null;o.Ie=null;o.dc=-1;o.cc=-1;
var Pc={"3":13,"12":144,"63232":38,"63233":40,"63234":37,"63235":39,"63236":112,"63237":113,"63238":114,"63239":115,"63240":116,"63241":117,"63242":118,"63243":119,"63244":120,"63245":121,"63246":122,"63247":123,"63248":44,"63272":46,"63273":36,"63275":35,"63276":33,"63277":34,"63289":144,"63302":45},Qc={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Rc={61:187,
59:186},Sc=z||A&amp;&amp;jb("525");o=Oc.prototype;o.Sk=function(a){if(A&amp;&amp;(this.dc==17&amp;&amp;!a.ctrlKey||this.dc==18&amp;&amp;!a.altKey))this.cc=this.dc=-1;if(Sc&amp;&amp;!nb(a.keyCode,this.dc,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.cc=Xa&amp;&amp;a.keyCode in Rc?Rc[a.keyCode]:a.keyCode};o.Uk=function(){this.cc=this.dc=-1};
o.handleEvent=function(a){var b=a.na,c,d;if(z&amp;&amp;a.type=="keypress"){c=this.cc;d=c!=13&amp;&amp;c!=27?b.keyCode:0}else if(A&amp;&amp;a.type=="keypress"){c=this.cc;d=b.charCode&gt;=0&amp;&amp;b.charCode&lt;63232&amp;&amp;ob(c)?b.charCode:0}else if(Wa){c=this.cc;d=ob(c)?b.keyCode:0}else{c=b.keyCode||this.cc;d=b.charCode||0;if(Pa&amp;&amp;d==63&amp;&amp;!c)c=191}var f=c,g=b.keyIdentifier;if(c)if(c&gt;=63232&amp;&amp;c in Pc)f=Pc[c];else{if(c==25&amp;&amp;a.shiftKey)f=9}else if(g&amp;&amp;g in Qc)f=Qc[g];a=f==this.dc;this.dc=f;b=new Tc(f,d,a,b);try{this.dispatchEvent(b)}finally{b.r()}};
o.a=k("q");o.yh=function(a,b){this.Ie&amp;&amp;this.detach();this.q=a;this.He=G(this.q,"keypress",this,b);this.hg=G(this.q,"keydown",this.Sk,b,this);this.Ie=G(this.q,"keyup",this.Uk,b,this)};o.detach=function(){if(this.He){Hc(this.He);Hc(this.hg);Hc(this.Ie);this.Ie=this.hg=this.He=null}this.q=null;this.cc=this.dc=-1};o.i=function(){Oc.d.i.call(this);this.detach()};function Tc(a,b,c,d){d&amp;&amp;this.tc(d,undefined);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}y(Tc,Tb);
function I(a,b){F.call(this);this.uc=a||1;this.ce=b||Uc;this.Df=w(this.xm,this);this.kg=pa()}y(I,H);I.prototype.enabled=false;var Uc=p.window;o=I.prototype;o.Da=null;o.setInterval=function(a){this.uc=a;if(this.Da&amp;&amp;this.enabled){this.stop();this.start()}else this.Da&amp;&amp;this.stop()};o.xm=function(){if(this.enabled){var a=pa()-this.kg;if(a&gt;0&amp;&amp;a&lt;this.uc*0.8)this.Da=this.ce.setTimeout(this.Df,this.uc-a);else{this.dispatchEvent(J);if(this.enabled){this.Da=this.ce.setTimeout(this.Df,this.uc);this.kg=pa()}}}};
o.start=function(){this.enabled=true;if(!this.Da){this.Da=this.ce.setTimeout(this.Df,this.uc);this.kg=pa()}};o.stop=function(){this.enabled=false;if(this.Da){this.ce.clearTimeout(this.Da);this.Da=null}};o.i=function(){I.d.i.call(this);this.stop();delete this.ce};var J="tick";function Vc(a,b,c){if(ha(a)){if(c)a=w(a,c)}else if(a&amp;&amp;typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return b&gt;2147483647?-1:Uc.setTimeout(a,b||0)}
var Wc,Xc=!z||lb(9),Yc=!Xa&amp;&amp;!z||z&amp;&amp;lb(9)||Xa&amp;&amp;jb("1.9.1"),Zc=z&amp;&amp;!jb("9");function $c(a,b){a.className=b}function ad(a){return(a=a.className)&amp;&amp;typeof a.split=="function"?a.split(/\s+/):[]}function K(a){var b=ad(a),c;c=Eb(arguments,1);for(var d=0,f=0;f&lt;c.length;f++)if(!E(b,c[f])){b.push(c[f]);d++}c=d==c.length;a.className=b.join(" ");return c}function bd(a){var b=ad(a),c;c=Eb(arguments,1);for(var d=0,f=0;f&lt;b.length;f++)if(E(c,b[f])){yb(b,f--,1);d++}c=d==c.length;a.className=b.join(" ");return c}
function cd(a,b,c){c?K(a,b):bd(a,b)}function dd(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0}dd.prototype.Fa=function(){return new dd(this.x,this.y)};function ed(a,b){return new dd(a.x-b.x,a.y-b.y)}function L(a,b){this.width=a;this.height=b}function fd(a,b){if(a==b)return true;if(!a||!b)return false;return a.width==b.width&amp;&amp;a.height==b.height}L.prototype.Fa=function(){return new L(this.width,this.height)};L.prototype.ac=function(){return!(this.width*this.height)};
L.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};L.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function gd(a){return a?new hd(id(a)):Wc||(Wc=new hd)}function jd(a){return v(a)?document.getElementById(a):a}function M(a,b,c){return kd(document,a,b,c)}
function ld(a,b){var c=b||document;if(md(c))return c.querySelectorAll("."+a);else if(c.getElementsByClassName)return c.getElementsByClassName(a);return kd(document,"*",a,b)}function nd(a,b){var c=b||document,d=null;return(d=md(c)?c.querySelector("."+a):ld(a,b)[0])||null}function md(a){return a.querySelectorAll&amp;&amp;a.querySelector&amp;&amp;(!A||od(document)||jb("528"))}
function kd(a,b,c,d){a=d||a;b=b&amp;&amp;b!="*"?b.toUpperCase():"";if(md(a)&amp;&amp;(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&amp;&amp;a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var f=0,g=0,h;h=a[g];g++)if(b==h.nodeName)d[f++]=h;d.length=f;return d}else return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(g=f=0;h=a[g];g++){b=h.className;if(typeof b.split=="function"&amp;&amp;E(b.split(/\s+/),c))d[f++]=h}d.length=f;return d}else return a}
function pd(a,b){oc(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in qd)a.setAttribute(qd[d],c);else if(d.lastIndexOf("aria-",0)==0)a.setAttribute(d,c);else a[d]=c})}var qd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};
function rd(a){var b=a.document;if(A&amp;&amp;!jb("500")&amp;&amp;!Ya){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c&lt;b)b-=15;return new L(a.innerWidth,b)}a=od(b)?b.documentElement:b.body;return new L(a.clientWidth,a.clientHeight)}function sd(a){return!A&amp;&amp;od(a)?a.documentElement:a.body}function td(a){return a?a.parentWindow||a.defaultView:window}
function ud(a,b,c,d){function f(h){if(h)b.appendChild(v(h)?a.createTextNode(h):h)}for(d=d;d&lt;c.length;d++){var g=c[d];ga(g)&amp;&amp;!(ia(g)&amp;&amp;g.nodeType&gt;0)?C(vd(g)?Cb(g):g,f):f(g)}}function od(a){return a.compatMode=="CSS1Compat"}function wd(a,b){a.appendChild(b)}function xd(a){ud(id(a),a,arguments,1)}function yd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function zd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function Ad(a){return a&amp;&amp;a.parentNode?a.parentNode.removeChild(a):null}
function Bd(a){if(Yc&amp;&amp;a.tk!=undefined)return a.tk;return ub(a.childNodes,function(b){return b.nodeType==1})}function Cd(a){if(a.firstElementChild!=undefined)return a.firstElementChild;return Dd(a.firstChild,true)}function Ed(a){if(a.nextElementSibling!=undefined)return a.nextElementSibling;return Dd(a.nextSibling,true)}function Dd(a,b){for(;a&amp;&amp;a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a}
function Fd(a,b){if(a.contains&amp;&amp;b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&amp;16);for(;b&amp;&amp;a!=b;)b=b.parentNode;return b==a}function id(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function Gd(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&amp;&amp;a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{yd(a);var c=id(a);a.appendChild(c.createTextNode(b))}}function Hd(a,b){var c=[];return Id(a,b,c,true)?c[0]:undefined}function Id(a,b,c,d){if(a!=null)for(a=a.firstChild;a;){if(b(a)){c.push(a);if(d)return true}if(Id(a,b,c,d))return true;a=a.nextSibling}return false}
var Jd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Kd={IMG:" ",BR:"\n"};function Ld(a){var b=a.getAttributeNode("tabindex");if(b&amp;&amp;b.specified){a=a.tabIndex;return typeof a=="number"&amp;&amp;a&gt;=0&amp;&amp;a&lt;32768}return false}function Md(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")}
function Nd(a){if(Zc&amp;&amp;"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Od(a,b,true);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Zc||(a=a.replace(/ +/g," "));if(a!=" ")a=a.replace(/^\s*/,"");return a}function Pd(a){var b=[];Od(a,b,false);return b.join("")}
function Od(a,b,c){if(!(a.nodeName in Jd))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Kd)b.push(Kd[a.nodeName]);else for(a=a.firstChild;a;){Od(a,b,c);a=a.nextSibling}}function vd(a){if(a&amp;&amp;typeof a.length=="number")if(ia(a))return typeof a.item=="function"||typeof a.item=="string";else if(ha(a))return typeof a.item=="function";return false}function hd(a){this.M=a||p.document||document}hd.prototype.g=gd;
function Qd(a){return a.M}hd.prototype.a=function(a){return v(a)?this.M.getElementById(a):a};hd.prototype.f=function(){var a=this.M,b=arguments,c=b[0],d=b[1];if(!Xc&amp;&amp;d&amp;&amp;(d.name||d.type)){c=["&lt;",c];d.name&amp;&amp;c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var f={};xc(f,d);d=f;delete d.type}c.push("&gt;");c=c.join("")}c=a.createElement(c);if(d)if(v(d))c.className=d;else u(d)?K.apply(null,[c].concat(d)):pd(c,d);b.length&gt;2&amp;&amp;ud(a,c,b,2);return c};hd.prototype.createElement=function(a){return this.M.createElement(a)};
hd.prototype.createTextNode=function(a){return this.M.createTextNode(a)};function Rd(a){return od(a.M)}function Sd(a){var b=a.M;a=sd(b);b=b.parentWindow||b.defaultView;return new dd(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}hd.prototype.appendChild=wd;hd.prototype.Ue=yd;hd.prototype.contains=Fd;function Td(a,b){a.setAttribute("role",b);a.Tn=b}function Ud(a,b,c){a.setAttribute("aria-"+b,c)}
function Vd(a,b){return a.f("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+(b||""),src:'javascript:""'})}function Wd(a){F.call(this);this.q=a;a=z?"focusout":"blur";this.jl=G(this.q,z?"focusin":"focus",this,!z);this.kl=G(this.q,a,this,!z)}y(Wd,H);Wd.prototype.handleEvent=function(a){var b=new Tb(a.na);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.r()}};Wd.prototype.i=function(){Wd.d.i.call(this);Hc(this.jl);Hc(this.kl);delete this.q};
function N(a){F.call(this);this.pa=a;this.aa=[]}y(N,F);var Xd=[];N.prototype.e=function(a,b,c,d,f){if(!u(b)){Xd[0]=b;b=Xd}for(var g=0;g&lt;b.length;g++)this.aa.push(G(a,b[g],c||this,d||false,f||this.pa||this));return this};function Yd(a,b,c,d,f,g){if(u(c))for(var h=0;h&lt;c.length;h++)Yd(a,b,c[h],d,f,g);else{b=Ec(b,c,d||a,f,g||a.pa||a);a.aa.push(b)}return a}
N.prototype.rb=function(a,b,c,d,f){if(u(b))for(var g=0;g&lt;b.length;g++)this.rb(a,b[g],c,d,f);else{a:{c=c||this;f=f||this.pa||this;d=!!d;if(a=Gc(a,b,d))for(b=0;b&lt;a.length;b++)if(!a[b].Bc&amp;&amp;a[b].ad==c&amp;&amp;a[b].capture==d&amp;&amp;a[b].Be==f){a=a[b];break a}a=null}if(a){a=a.sa;Hc(a);Ab(this.aa,a)}}return this};N.prototype.dd=function(){C(this.aa,Hc);this.aa.length=0};N.prototype.i=function(){N.d.i.call(this);this.dd()};N.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};
function Zd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Zd.prototype.Fa=function(){return new Zd(this.top,this.right,this.bottom,this.left)};Zd.prototype.contains=function(a){return!this||!a?false:a instanceof Zd?a.left&gt;=this.left&amp;&amp;a.right&lt;=this.right&amp;&amp;a.top&gt;=this.top&amp;&amp;a.bottom&lt;=this.bottom:a.x&gt;=this.left&amp;&amp;a.x&lt;=this.right&amp;&amp;a.y&gt;=this.top&amp;&amp;a.y&lt;=this.bottom};function $d(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}
$d.prototype.Fa=function(){return new $d(this.left,this.top,this.width,this.height)};$d.prototype.contains=function(a){return a instanceof $d?this.left&lt;=a.left&amp;&amp;this.left+this.width&gt;=a.left+a.width&amp;&amp;this.top&lt;=a.top&amp;&amp;this.top+this.height&gt;=a.top+a.height:a.x&gt;=this.left&amp;&amp;a.x&lt;=this.left+this.width&amp;&amp;a.y&gt;=this.top&amp;&amp;a.y&lt;=this.top+this.height};
function ae(a,b,c){F.call(this);this.target=a;this.handle=b||a;this.mg=c||new $d(NaN,NaN,NaN,NaN);this.M=id(a);this.X=new N(this);G(this.handle,["touchstart","mousedown"],this.gf,false,this)}y(ae,H);var be=z||Xa&amp;&amp;jb("1.9.3");o=ae.prototype;o.clientX=0;o.clientY=0;o.screenX=0;o.screenY=0;o.wj=0;o.xj=0;o.Rc=0;o.Sc=0;o.Db=true;o.Wb=false;o.li=0;o.vl=0;o.bl=false;o.v=k("X");o.Cc=aa("Db");
o.i=function(){ae.d.i.call(this);Fc(this.handle,["touchstart","mousedown"],this.gf,false,this);this.X.r();delete this.target;delete this.handle;delete this.X};
o.gf=function(a){var b=a.type=="mousedown";if(this.Db&amp;&amp;!this.Wb&amp;&amp;(!b||Vb(a))){ce(this,a);if(this.li==0){de(this,a);if(this.Wb)a.preventDefault();else return}else a.preventDefault();b=this.M;var c=b.documentElement,d=!be;this.X.e(b,["touchmove","mousemove"],this.Vk,d);this.X.e(b,["touchend","mouseup"],this.ue,d);if(be){c.setCapture(false);this.X.e(c,"losecapture",this.ue)}else this.X.e(td(b),"blur",this.ue);z&amp;&amp;this.bl&amp;&amp;this.X.e(b,"dragstart",Rb);this.gm&amp;&amp;this.X.e(this.gm,"scroll",this.Nl,d);this.clientX=
this.wj=a.clientX;this.clientY=this.xj=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Rc=this.target.offsetLeft;this.Sc=this.target.offsetTop;this.zg=Sd(gd(this.M));this.vl=pa()}else this.dispatchEvent("earlycancel")};function de(a,b){if(a.dispatchEvent(new ee("start",a,b.clientX,b.clientY,b))!==false)a.Wb=true}
ae.prototype.ue=function(a,b){this.X.dd();be&amp;&amp;this.M.releaseCapture();var c=fe(this,this.Rc),d=ge(this,this.Sc);if(this.Wb){ce(this,a);this.Wb=false;this.dispatchEvent(new ee("end",this,a.clientX,a.clientY,a,c,d,b||a.type=="touchcancel"))}else this.dispatchEvent("earlycancel");if(a.type=="touchend"||a.type=="touchcancel")a.preventDefault()};
function ce(a,b){a=b.type;if(a=="touchstart"||a=="touchmove")b.tc(b.na.targetTouches[0],b.currentTarget);else if(a=="touchend"||a=="touchcancel")b.tc(b.na.changedTouches[0],b.currentTarget)}
ae.prototype.Vk=function(a){if(this.Db){ce(this,a);var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Wb){var d=this.wj-this.clientX,f=this.xj-this.clientY;if(d*d+f*f&gt;this.li){de(this,a);if(!this.Wb){this.ue(a);return}}}c=he(this,b,c);b=c.x;c=c.y;if(this.Wb)if(this.dispatchEvent(new ee("beforedrag",this,a.clientX,a.clientY,a,b,c))!==false){this.Ph(b,c);this.dispatchEvent(new ee("drag",this,a.clientX,
a.clientY,a,b,c));a.preventDefault()}}};function he(a,b,c){var d=Sd(gd(a.M));b+=d.x-a.zg.x;c+=d.y-a.zg.y;a.zg=d;a.Rc+=b;a.Sc+=c;b=fe(a,a.Rc);a=ge(a,a.Sc);return new dd(b,a)}ae.prototype.Nl=function(a){var b=he(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;var c=b.x;b=b.y;this.Ph(c,b);this.dispatchEvent(new ee("drag",this,a.clientX,a.clientY,a,c,b))};
function fe(a,b){var c=a.mg;a=!isNaN(c.left)?c.left:null;c=!isNaN(c.width)?c.width:0;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}function ge(a,b){var c=a.mg;a=!isNaN(c.top)?c.top:null;c=!isNaN(c.height)?c.height:0;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}ae.prototype.Ph=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
function ee(a,b,c,d,f,g,h,j){Qb.call(this,a);this.clientX=c;this.clientY=d;this.nn=f;this.left=g!==undefined?g:b.Rc;this.top=h!==undefined?h:b.Sc;this.wn=b;this.vn=!!j}y(ee,Qb);function ie(a){if(typeof a.vb=="function")return a.vb();if(v(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d&lt;c;d++)b.push(a[d]);return b}return qc(a)}
function je(a){if(typeof a.Fb=="function")return a.Fb();if(typeof a.vb!="function"){if(ga(a)||v(a)){var b=[];a=a.length;for(var c=0;c&lt;a;c++)b.push(c);return b}return rc(a)}}function ke(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ga(a)||v(a))C(a,b,c);else for(var d=je(a),f=ie(a),g=f.length,h=0;h&lt;g;h++)b.call(c,f[h],d&amp;&amp;d[h],a)}"StopIteration"in p||Error("StopIteration");
function le(a){this.ya={};this.aa=[];var b=arguments.length;if(b&gt;1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c&lt;b;c+=2)this.ca(arguments[c],arguments[c+1])}else a&amp;&amp;this.Af(a)}o=le.prototype;o.C=0;o.eh=0;o.vb=function(){me(this);for(var a=[],b=0;b&lt;this.aa.length;b++)a.push(this.ya[this.aa[b]]);return a};o.Fb=function(){me(this);return this.aa.concat()};o.bb=function(a){return ne(this.ya,a)};o.ac=function(){return this.C==0};
o.clear=function(){this.ya={};this.eh=this.C=this.aa.length=0};o.remove=function(a){if(ne(this.ya,a)){delete this.ya[a];this.C--;this.eh++;this.aa.length&gt;2*this.C&amp;&amp;me(this);return true}return false};function me(a){if(a.C!=a.aa.length){for(var b=0,c=0;b&lt;a.aa.length;){var d=a.aa[b];if(ne(a.ya,d))a.aa[c++]=d;b++}a.aa.length=c}if(a.C!=a.aa.length){var f={};for(c=b=0;b&lt;a.aa.length;){d=a.aa[b];if(!ne(f,d)){a.aa[c++]=d;f[d]=1}b++}a.aa.length=c}}
le.prototype.K=function(a,b){if(ne(this.ya,a))return this.ya[a];return b};le.prototype.ca=function(a,b){if(!ne(this.ya,a)){this.C++;this.aa.push(a);this.eh++}this.ya[a]=b};le.prototype.Af=function(a){var b;if(a instanceof le){b=a.Fb();a=a.vb()}else{b=rc(a);a=qc(a)}for(var c=0;c&lt;b.length;c++)this.ca(b[c],a[c])};le.prototype.Fa=function(){return new le(this)};function ne(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
function oe(a,b){var c=id(a);if(c.defaultView&amp;&amp;c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,null))return a[b]||a.getPropertyValue(b);return""}function pe(a,b){return oe(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]}function qe(a){return pe(a,"position")}function re(a,b,c){var d,f=Xa&amp;&amp;(Pa||ab)&amp;&amp;jb("1.9");if(b instanceof dd){d=b.x;b=b.y}else{d=b;b=c}a.style.left=se(d,f);a.style.top=se(b,f)}
function te(a){var b=a.getBoundingClientRect();if(z){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b}
function ue(a){if(z)return a.offsetParent;var b=id(a),c=pe(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&amp;&amp;a!=b;a=a.parentNode){c=pe(a,"position");d=d&amp;&amp;c=="static"&amp;&amp;a!=b.documentElement&amp;&amp;a!=b.body;if(!d&amp;&amp;(a.scrollWidth&gt;a.clientWidth||a.scrollHeight&gt;a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a}return null}
function ve(a,b,c){var d=we(a),f=we(b),g;if(z){var h=xe(b,"borderLeft");g=xe(b,"borderRight");var j=xe(b,"borderTop"),l=xe(b,"borderBottom");g=new Zd(j,g,l,h)}else{h=oe(b,"borderLeftWidth");g=oe(b,"borderRightWidth");j=oe(b,"borderTopWidth");l=oe(b,"borderBottomWidth");g=new Zd(parseFloat(j),parseFloat(g),parseFloat(l),parseFloat(h))}h=d.x-f.x-g.left;d=d.y-f.y-g.top;f=b.clientWidth-a.offsetWidth;a=b.clientHeight-a.offsetHeight;if(c){b.scrollLeft+=h-f/2;b.scrollTop+=d-a/2}else{b.scrollLeft+=Math.min(h,
Math.max(h-f,0));b.scrollTop+=Math.min(d,Math.max(d-a,0))}}
function we(a){var b,c=id(a),d=pe(a,"position"),f=Xa&amp;&amp;c.getBoxObjectFor&amp;&amp;!a.getBoundingClientRect&amp;&amp;d=="absolute"&amp;&amp;(b=c.getBoxObjectFor(a))&amp;&amp;(b.screenX&lt;0||b.screenY&lt;0),g=new dd(0,0),h;b=c?c.nodeType==9?c:id(c):document;h=z&amp;&amp;!lb(9)&amp;&amp;!Rd(gd(b))?b.body:b.documentElement;if(a==h)return g;if(a.getBoundingClientRect){b=te(a);a=Sd(gd(c));g.x=b.left+a.x;g.y=b.top+a.y}else if(c.getBoxObjectFor&amp;&amp;!f){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(h);g.x=b.screenX-a.screenX;g.y=b.screenY-a.screenY}else{b=a;do{g.x+=
b.offsetLeft;g.y+=b.offsetTop;if(b!=a){g.x+=b.clientLeft||0;g.y+=b.clientTop||0}if(A&amp;&amp;qe(b)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&amp;&amp;b!=a);if(Wa||A&amp;&amp;d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=ue(b))&amp;&amp;b!=c.body&amp;&amp;b!=h;){g.x-=b.scrollLeft;if(!Wa||b.tagName!="TR")g.y-=b.scrollTop}}return g}
function ye(a){var b=new dd;if(a.nodeType==1)if(a.getBoundingClientRect){a=te(a);b.x=a.left;b.y=a.top}else{var c=Sd(gd(a));a=we(a);b.x=a.x-c.x;b.y=a.y-c.y}else{c=ha(a.Jk);var d=a;if(a.targetTouches)d=a.targetTouches[0];else if(c&amp;&amp;a.na.targetTouches)d=a.na.targetTouches[0];b.x=d.clientX;b.y=d.clientY}return b}function ze(a,b,c){if(b instanceof L){c=b.height;b=b.width}else{if(c==undefined)throw Error("missing height argument");c=c}a.style.width=se(b,true);a.style.height=se(c,true)}
function se(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a}function O(a){if(pe(a,"display")!="none")return Ae(a);var b=a.style,c=b.display,d=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Ae(a);b.display=c;b.position=f;b.visibility=d;return a}function Ae(a){var b=a.offsetWidth,c=a.offsetHeight,d=A&amp;&amp;!b&amp;&amp;!c;if((b===undefined||d)&amp;&amp;a.getBoundingClientRect){a=te(a);return new L(a.right-a.left,a.bottom-a.top)}return new L(b,c)}
function Be(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"}function P(a,b){a.style.display=b?"":"none"}var Ce=Xa?"MozUserSelect":A?"WebkitUserSelect":null;
function De(a,b,c){c=!c?a.getElementsByTagName("*"):null;if(Ce){b=b?"none":"";a.style[Ce]=b;if(c){a=0;for(var d;d=c[a];a++)d.style[Ce]=b}}else if(z||Wa){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}}var Fe={thin:2,medium:4,thick:6};
function xe(a,b){if((a.currentStyle?a.currentStyle[b+"Style"]:null)=="none")return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;if(c in Fe)return Fe[c];if(/^\d+px?$/.test(c))a=parseInt(c,10);else{b=a.style.left;var d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=b;a.runtimeStyle.left=d;a=c}return a}
function Ge(a){var b={};C(a.split(/\s*;\s*/),function(c){c=c.split(/\s*:\s*/);if(c.length==2)b[Ja(c[0].toLowerCase())]=c[1]});return b}function He(){}ea(He);He.prototype.Cl=0;He.oa();function Q(a){F.call(this);this.Cb=a||gd();this.Ud=Ie}y(Q,H);Q.prototype.$k=He.oa();var Ie=null;
function Je(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}throw Error("Invalid component state");}o=Q.prototype;o.rc=null;o.$=false;o.q=null;o.Ud=null;o.ua=null;o.O=null;o.Q=null;o.ib=null;o.Oj=false;function Ke(a){return a.rc||(a.rc=":"+(a.$k.Cl++).toString(36))}
function Le(a,b){if(a.O&amp;&amp;a.O.ib){sc(a.O.ib,a.rc);tc(a.O.ib,b,a)}a.rc=b}Q.prototype.a=k("q");Q.prototype.v=function(){return this.Vc||(this.Vc=new N(this))};function Me(a,b){if(a==b)throw Error("Unable to set parent component");if(b&amp;&amp;a.O&amp;&amp;a.rc&amp;&amp;a.O.ci(a.rc)&amp;&amp;a.O!=b)throw Error("Unable to set parent component");a.O=b;Q.d.hd.call(a,b)}o=Q.prototype;o.hd=function(a){if(this.O&amp;&amp;this.O!=a)throw Error("Method not supported");Q.d.hd.call(this,a)};o.g=k("Cb");o.f=function(){this.q=this.Cb.createElement("div")};
o.pb=function(a){Ne(this,a)};o.Ve=function(a){Ne(this,a.parentNode,a)};function Ne(a,b,c){if(a.$)throw Error("Component already rendered");a.q||a.f();b?b.insertBefore(a.q,c||null):a.Cb.M.body.appendChild(a.q);if(!a.O||a.O.$)a.m()}o=Q.prototype;o.H=function(a){if(this.$)throw Error("Component already rendered");else if(a&amp;&amp;this.hb(a)){this.Oj=true;if(!this.Cb||this.Cb.M!=id(a))this.Cb=gd(a);this.F(a);this.m()}else throw Error("Invalid element to decorate");};o.hb=m(true);o.F=aa("q");
o.m=function(){this.$=true;this.Q&amp;&amp;C(this.Q,function(a){!a.$&amp;&amp;a.a()&amp;&amp;a.m()},undefined)};o.N=function(){this.Q&amp;&amp;C(this.Q,function(a){a.$&amp;&amp;a.N()},undefined);this.Vc&amp;&amp;this.Vc.dd();this.$=false};o.i=function(){Q.d.i.call(this);this.$&amp;&amp;this.N();if(this.Vc){this.Vc.r();delete this.Vc}this.Q&amp;&amp;C(this.Q,function(a){a.r()},undefined);!this.Oj&amp;&amp;this.q&amp;&amp;Ad(this.q);this.O=this.ua=this.q=this.ib=this.Q=null};o.zb=function(a,b){this.ik(a,this.Q?this.Q.length:0,b)};
o.ik=function(a,b,c){if(a.$&amp;&amp;(c||!this.$))throw Error("Component already rendered");if(b&lt;0||b&gt;(this.Q?this.Q.length:0))throw Error("Child component index out of bounds");if(!this.ib||!this.Q){this.ib={};this.Q=[]}if(a.O==this){this.ib[Ke(a)]=a;Ab(this.Q,a)}else tc(this.ib,Ke(a),a);Me(a,this);xb(this.Q,a,b);if(a.$&amp;&amp;this.$&amp;&amp;a.O==this){c=this.Ca();c.insertBefore(a.a(),c.childNodes[b]||null)}else if(c){this.q||this.f();b=this.di(b+1);Ne(a,this.Ca(),b?b.q:null)}else this.$&amp;&amp;!a.$&amp;&amp;a.q&amp;&amp;a.m()};o.Ca=k("q");
o.Dc=function(a){if(this.$)throw Error("Component already rendered");this.Ud=a};o.ci=function(a){return this.ib&amp;&amp;a?uc(this.ib,a)||null:null};o.di=function(a){return this.Q?this.Q[a]||null:null};o.removeChild=function(a,b){if(a){var c=v(a)?a:Ke(a);a=this.ci(c);if(c&amp;&amp;a){sc(this.ib,c);Ab(this.Q,a);if(b){a.N();a.q&amp;&amp;Ad(a.q)}Me(a,null)}}if(!a)throw Error("Child is not in parent component");return a};o.Ue=function(a){for(;this.Q&amp;&amp;this.Q.length!=0;)this.removeChild(this.di(0),a)};
function S(a,b,c){Q.call(this,c);this.ra=a||"modal-dialog";this.ah=!!b;this.Ea=Oe()}y(S,Q);o=S.prototype;o.ve=null;o.Sh=true;o.Zf=true;o.ah=false;o.Me=true;o.Rh=true;o.vd=0.5;o.Ug="";o.Ga="";o.Ea=null;o.Va=null;o.gb=false;o.xd=false;o.T=null;o.ha=null;o.fb=null;o.gc=null;o.Tg=null;o.Lb=null;o.tb=null;o.Ba=null;o.Ca=function(){this.a()||this.pb();return this.tb};
o.f=function(){Pe(this);var a=this.g();this.q=a.f("div",{className:this.ra,tabIndex:0},this.fb=a.f("div",{className:this.ra+"-title",id:Ke(this)},this.gc=a.f("span",this.ra+"-title-text",this.Ug),this.Lb=a.f("span",this.ra+"-title-close")),this.tb=a.f("div",this.ra+"-content"),this.Ba=a.f("div",this.ra+"-buttons"),this.Bj=a.f("span",{tabIndex:0}));this.Tg=this.fb.id;Td(this.a(),"dialog");Ud(this.a(),"labelledby",this.Tg||"");if(this.Ga)this.tb.innerHTML=this.Ga;P(this.Lb,this.Zf);P(this.a(),false);
this.Ea&amp;&amp;Qe(this.Ea,this.Ba)};function Pe(a){if(a.ah&amp;&amp;a.Me&amp;&amp;!a.ha){a.ha=Vd(a.g());a.ha.className=a.ra+"-bg";P(a.ha,false);Be(a.ha,0)}else if((!a.ah||!a.Me)&amp;&amp;a.ha){Ad(a.ha);a.ha=null}if(a.Me&amp;&amp;!a.T){a.T=a.g().f("div",a.ra+"-bg");Be(a.T,a.vd);P(a.T,false)}else if(!a.Me&amp;&amp;a.T){Ad(a.T);a.T=null}}S.prototype.pb=function(a){if(this.$)throw Error("Component already rendered");this.a()||this.f();a=a||Qd(this.g()).body;Re(this,a);S.d.pb.call(this,a)};
function Re(a,b){a.ha&amp;&amp;b.appendChild(a.ha);a.T&amp;&amp;b.appendChild(a.T)}o=S.prototype;o.Ve=function(){throw Error("Method not supported");};o.hb=function(a){return a&amp;&amp;a.tagName&amp;&amp;a.tagName=="DIV"&amp;&amp;S.d.hb.call(this,a)};
o.F=function(a){S.d.F.call(this,a);K(this.a(),this.ra);a=this.ra+"-content";if(this.tb=M(null,a,this.a())[0])this.Ga=this.tb.innerHTML;else{this.tb=this.g().f("div",a);if(this.Ga)this.tb.innerHTML=this.Ga;this.a().appendChild(this.tb)}a=this.ra+"-title";var b=this.ra+"-title-text",c=this.ra+"-title-close";if(this.fb=M(null,a,this.a())[0]){this.gc=M(null,b,this.fb)[0];this.Lb=M(null,c,this.fb)[0]}else{this.fb=this.g().f("div",a);this.a().insertBefore(this.fb,this.tb)}if(this.gc)this.Ug=Nd(this.gc);
else{this.gc=this.g().f("span",b,this.Ug);this.fb.appendChild(this.gc)}Ud(this.a(),"labelledby",this.Tg||"");if(!this.Lb){this.Lb=this.g().f("span",c);this.fb.appendChild(this.Lb)}P(this.Lb,this.Zf);a=this.ra+"-buttons";if(this.Ba=M(null,a,this.a())[0]){this.Ea=new Se(this.g());this.Ea.H(this.Ba)}else{this.Ba=this.g().f("div",a);this.a().appendChild(this.Ba);this.Ea&amp;&amp;Qe(this.Ea,this.Ba)}Pe(this);Re(this,id(this.a()).body);P(this.a(),false)};
o.m=function(){S.d.m.call(this);this.ve=new Wd(Qd(this.g()));if(this.Rh&amp;&amp;!this.Va){K(this.fb,this.ra+"-title-draggable");this.Va=new ae(this.a(),this.fb)}this.v().e(this.Lb,"click",this.Pl).e(this.ve,"focusin",this.Jl);Td(this.a(),"dialog");this.gc.id!==""&amp;&amp;Ud(this.a(),"labelledby",this.gc.id)};o.N=function(){this.gb&amp;&amp;this.R(false);this.ve.r();this.ve=null;if(this.Va){this.Va.r();this.Va=null}S.d.N.call(this)};
o.R=function(a){if(a!=this.gb){var b=Qd(this.g()),c=td(b)||window;this.$||this.pb(b.body);if(a){Te(this);this.kj();this.v().e(this.a(),"keydown",this.Qe).e(this.a(),"keypress",this.Qe).e(c,"resize",this.Zi)}else this.v().rb(this.a(),"keydown",this.Qe).rb(this.a(),"keypress",this.Qe).rb(c,"resize",this.Zi);this.ha&amp;&amp;P(this.ha,a);this.T&amp;&amp;P(this.T,a);P(this.a(),a);a&amp;&amp;this.focus();if(this.gb=a){this.dispatchEvent(Ue);this.v().e(this.Ba,"click",this.Vi)}else{this.v().rb(this.Ba,"click",this.Vi);this.dispatchEvent(Ve);
this.xd&amp;&amp;this.r()}}};o.focus=function(){try{this.a().focus()}catch(a){}if(this.Ea){var b;if(b=this.Ea.te)for(var c=Qd(this.g()),d=this.Ba.getElementsByTagName("button"),f=0,g;g=d[f];f++)if(g.name==b){try{if(A||Wa){var h=c.createElement("input");h.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.a().appendChild(h);h.focus();this.a().removeChild(h)}g.focus()}catch(j){}break}}};
function Te(a){a.ha&amp;&amp;P(a.ha,false);a.T&amp;&amp;P(a.T,false);var b=Qd(a.g()),c=td(b)||window;c=rd(c||window);var d=Math.max(b.body.scrollWidth,c.width);b=Math.max(b.body.scrollHeight,c.height);if(a.ha){P(a.ha,true);ze(a.ha,d,b)}if(a.T){P(a.T,true);ze(a.T,d,b)}if(a.Rh){var f=O(a.a());a.Va.mg=qe(a.a())=="fixed"?new $d(0,0,Math.max(0,c.width-f.width),Math.max(0,c.height-f.height)):new $d(0,0,d-f.width,b-f.height)}}
S.prototype.kj=function(){var a=Qd(this.g()),b=td(a)||window;if(qe(this.a())=="fixed")var c=a=0;else{c=Sd(this.g());a=c.x;c=c.y}var d=O(this.a());b=rd(b||window);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);re(this.a(),a,c)};S.prototype.Pl=function(){if(this.Zf){var a=this.Ea,b=a&amp;&amp;a.Pc;if(b){a=a.K(b);this.dispatchEvent(new We(b,a))&amp;&amp;this.R(false)}else this.R(false)}};
S.prototype.i=function(){S.d.i.call(this);if(this.T){Ad(this.T);this.T=null}if(this.ha){Ad(this.ha);this.ha=null}this.Bj=this.Ba=this.Lb=null};function Xe(a,b){a.Ea=b;if(a.Ba)if(a.Ea)Qe(a.Ea,a.Ba);else a.Ba.innerHTML=""}o=S.prototype;o.Vi=function(a){a:{for(a=a.target;a!=null&amp;&amp;a!=this.Ba;){if(a.tagName=="BUTTON"){a=a;break a}a=a.parentNode}a=null}if(a&amp;&amp;!a.disabled){a=a.name;var b=this.Ea.K(a);this.dispatchEvent(new We(a,b))&amp;&amp;this.R(false)}};
o.Qe=function(a){var b=false,c=false,d=this.Ea,f=a.target;if(a.type=="keydown")if(this.Sh&amp;&amp;a.keyCode==27){var g=d&amp;&amp;d.Pc;f=f.tagName=="SELECT"&amp;&amp;!f.disabled;if(g&amp;&amp;!f){c=true;b=d.K(g);b=this.dispatchEvent(new We(g,b))}else f||(b=true)}else{if(a.keyCode==9&amp;&amp;a.shiftKey&amp;&amp;f==this.a())c=true}else if(a.keyCode==13){if(f.tagName=="BUTTON")g=f.name;else if(d){var h=d.te,j=h&amp;&amp;Ye(d,h);f=(f.tagName=="TEXTAREA"||f.tagName=="SELECT")&amp;&amp;!f.disabled;if(j&amp;&amp;!j.disabled&amp;&amp;!f)g=h}if(g){c=true;b=this.dispatchEvent(new We(g,
String(d.K(g))))}}if(b||c){a.stopPropagation();a.preventDefault()}b&amp;&amp;this.R(false)};o.Zi=function(){Te(this)};o.Jl=function(a){this.Bj==a.target&amp;&amp;Vc(this.Ek,0,this)};o.Ek=function(){z&amp;&amp;Qd(this.g()).body.focus();this.a().focus()};function We(a,b){this.type=Ze;this.sa=a;this.caption=b}y(We,Qb);var Ze="dialogselect",Ve="afterhide",Ue="aftershow";function Se(a){this.Cb=a||gd();le.call(this)}y(Se,le);o=Se.prototype;o.ra="goog-buttonset";o.te=null;o.q=null;o.Pc=null;
o.ca=function(a,b,c,d){le.prototype.ca.call(this,a,b);if(c)this.te=a;if(d)this.Pc=a;return this};function $e(a,b,c,d){return a.ca(b.sa,b.caption,c,d)}function Qe(a,b){a.q=b;a.pb()}Se.prototype.pb=function(){if(this.q){this.q.innerHTML="";var a=gd(this.q);ke(this,function(b,c){b=a.f("button",{name:c},b);if(c==this.te)b.className=this.ra+"-default";this.q.appendChild(b)},this)}};
Se.prototype.H=function(a){if(!(!a||a.nodeType!=1)){this.q=a;a=this.q.getElementsByTagName("button");for(var b=0,c,d,f;c=a[b];b++){d=c.name||c.id;f=Nd(c)||c.value;if(d){var g=b==0;this.ca(d,f,g,c.name==af);g&amp;&amp;K(c,this.ra+"-default")}}}};Se.prototype.a=k("q");Se.prototype.g=k("Cb");function Ye(a,b){a=a.q.getElementsByTagName("BUTTON");for(var c=0,d;d=a[c];c++)if(d.name==b||d.id==b)return d;return null}
var af="cancel",bf=qa("OK"),cf=qa("Cancel"),df=qa("Yes"),ef=qa("No"),ff=qa("Save"),gf=qa("Continue"),hf={sa:"ok",caption:bf},jf={sa:af,caption:cf},kf={sa:"yes",caption:df},lf={sa:"no",caption:ef},mf={sa:"save",caption:ff},nf={sa:"continue",caption:gf};function Oe(){return $e($e(new Se,hf,true),jf,false,true)}if(typeof document!="undefined"){$e(new Se,hf,true,true);Oe();$e($e(new Se,kf,true),lf,false,true);$e($e($e(new Se,kf),lf,true),jf,false,true);$e($e($e(new Se,nf),mf),jf,true,true)}
function of(a){this.M=a}var pf=/\s*;\s*/;o=of.prototype;o.fa=function(){var a=navigator.cookieEnabled;if(a&amp;&amp;A){var b="COOKIES_TEST_"+pa();qf.ca(b,"1");if(!this.K(b))return false;this.remove(b)}return a};
o.ca=function(a,b,c,d,f,g){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');c!==undefined||(c=-1);f=f?";domain="+f:"";d=d?";path="+d:"";g=g?";secure":"";c=c&lt;0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(pa()+c*1E3)).toUTCString();this.M.cookie=a+"="+b+f+d+c+g};
o.K=function(a,b){a=a+"=";for(var c=(this.M.cookie||"").split(pf),d=0,f;f=c[d];d++)if(f.indexOf(a)==0)return f.substr(a.length);return b};o.remove=function(a,b,c){var d=this.bb(a);this.ca(a,"",0,b,c);return d};o.Fb=function(){return rf(this).yi};o.vb=function(){return rf(this).Cm};o.ac=function(){return!this.M.cookie};o.bb=function(a){return this.K(a)!==undefined};o.clear=function(){for(var a=rf(this).yi,b=a.length-1;b&gt;=0;b--)this.remove(a[b])};
function rf(a){a=(a.M.cookie||"").split(pf);for(var b=[],c=[],d,f,g=0;f=a[g];g++){d=f.indexOf("=");if(d==-1){b.push("");c.push(f)}else{b.push(f.substring(0,d));c.push(f.substring(d+1))}}return{yi:b,Cm:c}}var qf=new of(document);qf.Um=3950;
function sf(a){a=String(a);if(/^\s*$/.test(a)?false:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function tf(a){return(new uf).rj(a)}function uf(){}uf.prototype.rj=function(a){var b=[];vf(this,a,b);return b.join("")};
function vf(a,b,c){switch(typeof b){case "string":wf(a,b,c);break;case "number":c.push(isFinite(b)&amp;&amp;!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==null){c.push("null");break}if(u(b)){var d=b.length;c.push("[");for(var f="",g=0;g&lt;d;g++){c.push(f);vf(a,b[g],c);f=","}c.push("]");break}c.push("{");d="";for(f in b)if(Object.prototype.hasOwnProperty.call(b,f)){g=b[f];if(typeof g!="function"){c.push(d);wf(a,f,c);c.push(":");vf(a,g,c);d=
","}}c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var xf={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},yf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function wf(a,b,c){c.push('"',b.replace(yf,function(d){if(d in xf)return xf[d];var f=d.charCodeAt(0),g="\\u";if(f&lt;16)g+="000";else if(f&lt;256)g+="00";else if(f&lt;4096)g+="0";return xf[d]=g+f.toString(16)}),'"')}function zf(){}var Af;ea(zf);o=zf.prototype;o.mb=e();o.f=function(a){return a.g().f("div",this.pc(a).join(" "),a.Ga)};o.Ca=function(a){return a};o.Bd=function(a,b,c){if(a=a.a?a.a():a)if(z&amp;&amp;!jb("7")){var d=Bf(this,ad(a),b);d.push(b);oa(c?K:bd,a).apply(null,d)}else cd(a,b,c)};o.hb=m(true);
o.H=function(a,b){b.id&amp;&amp;Le(a,b.id);var c=this.Ca(b);c&amp;&amp;c.firstChild?Cf(a,c.firstChild.nextSibling?Cb(c.childNodes):c.firstChild):Cf(a,null);var d=0,f=this.Y(),g=this.Y(),h=false,j=false;c=false;var l=ad(b);C(l,function(q){if(!h&amp;&amp;q==f){h=true;if(g==f)j=true}else if(!j&amp;&amp;q==g)j=true;else d|=this.Tf(q)},this);a.V=d;if(!h){l.push(f);if(g==f)j=true}j||l.push(g);(a=a.lb)&amp;&amp;l.push.apply(l,a);if(z&amp;&amp;!jb("7")){var n=Bf(this,l);if(n.length&gt;0){l.push.apply(l,n);c=true}}if(!h||!j||a||c)$c(b,l.join(" "));return b};
o.Gd=function(a){if(a.Ud==null)a.Ud="rtl"==pe(a.$?a.q:a.Cb.M.body,"direction");a.Ud&amp;&amp;this.Dc(a.a(),true);a.fa()&amp;&amp;this.fd(a,a.gb)};o.Vd=function(a,b){De(a,!b,!z&amp;&amp;!Wa)};o.Dc=function(a,b){this.Bd(a,this.Y()+"-rtl",b)};o.fg=function(a){var b;if(a.Ka&amp;32&amp;&amp;(b=a.Xb()))return Ld(b);return false};o.fd=function(a,b){var c;if(a.Ka&amp;32&amp;&amp;(c=a.Xb())){if(!b&amp;&amp;a.V&amp;32){try{c.blur()}catch(d){}a.V&amp;32&amp;&amp;a.gi(null)}Ld(c)!=b&amp;&amp;Md(c,b)}};o.R=function(a,b){P(a,b)};
o.Qa=function(a,b,c){var d=a.a();if(d){var f=this.Cd(b);f&amp;&amp;this.Bd(a,f,c);this.Hc(d,b,c)}};o.Hc=function(a,b,c){Af||(Af=yc(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(b=Af[b])&amp;&amp;Ud(a,b,c)};o.Xb=function(a){return a.a()};o.Y=m("goog-control");o.pc=function(a){var b=this.Y(),c=[b],d=this.Y();d!=b&amp;&amp;c.push(d);b=a.V;for(d=[];b;){var f=b&amp;-b;d.push(this.Cd(f));b&amp;=~f}c.push.apply(c,d);(a=a.lb)&amp;&amp;c.push.apply(c,a);z&amp;&amp;!jb("7")&amp;&amp;c.push.apply(c,Bf(this,c));return c};
function Bf(a,b,c){var d=[];if(c)b=b.concat([c]);C([],function(f){var g;a:{g=oa(E,b);for(var h=f.length,j=v(f)?f.split(""):f,l=0;l&lt;h;l++)if(l in j&amp;&amp;!g.call(undefined,j[l],l,f)){g=false;break a}g=true}if(g&amp;&amp;(!c||E(f,c)))d.push(f.join("_"))});return d}zf.prototype.Cd=function(a){this.qe||Df(this);return this.qe[a]};zf.prototype.Tf=function(a){this.yj||Ef(this);a=parseInt(this.yj[a],10);return isNaN(a)?0:a};
function Df(a){var b=a.Y();a.qe=yc(1,b+"-disabled",2,b+"-hover",4,b+"-active",8,b+"-selected",16,b+"-checked",32,b+"-focused",64,b+"-open")}function Ef(a){a.qe||Df(a);a.yj=vc(a.qe)}function Ff(){}y(Ff,zf);ea(Ff);o=Ff.prototype;o.mb=m("button");o.Hc=function(a,b,c){b==16?Ud(a,"pressed",c):Ff.d.Hc.call(this,a,b,c)};o.f=function(a){var b=Ff.d.f.call(this,a),c=a.ye();c&amp;&amp;this.Lg(b,c);(c=a.Zb())&amp;&amp;this.Ec(b,c);a.Ka&amp;16&amp;&amp;this.Hc(b,16,false);return b};
o.H=function(a,b){b=Ff.d.H.call(this,a,b);var c=this.Zb(b);a.dh=c;c=this.ye(b);a.Vg=c;a.Ka&amp;16&amp;&amp;this.Hc(b,16,false);return b};o.Zb=s;o.Ec=s;o.ye=function(a){return a.title};o.Lg=function(a,b){if(a)a.title=b||""};o.Y=m("goog-button");function Gf(a){for(var b;a;){b=ja(a);if(b=Hf[b])break;a=a.d?a.d.constructor:null}if(b)return ha(b.oa)?b.oa():new b;return null}function If(a,b){if(!a)throw Error("Invalid class name "+a);if(!ha(b))throw Error("Invalid decorator function "+b);Jf[a]=b}var Hf={},Jf={};
function T(a,b,c){Q.call(this,c);this.L=b||Gf(this.constructor);this.Ga=a}y(T,Q);o=T.prototype;o.Ga=null;o.V=0;o.Ka=39;o.Bf=255;o.qm=0;o.gb=true;o.lb=null;o.Wc=true;o.ne=false;o.Xb=function(){return this.L.Xb(this)};o.Lk=function(){return this.Zc||(this.Zc=new Oc)};function Kf(a,b){if(b){if(a.lb)E(a.lb,b)||a.lb.push(b);else a.lb=[b];a.L.Bd(a,b,true)}}function Lf(a,b){if(b&amp;&amp;a.lb){Ab(a.lb,b);if(a.lb.length==0)a.lb=null;a.L.Bd(a,b,false)}}o=T.prototype;o.Bd=function(a,b){b?Kf(this,a):Lf(this,a)};
o.f=function(){var a=this.L.f(this);this.q=a;var b=this.L.mb();b&amp;&amp;Td(a,b);this.ne||this.L.Vd(a,false);this.gb||this.L.R(a,false)};o.Ca=function(){return this.L.Ca(this.a())};o.hb=function(a){return this.L.hb(a)};o.F=function(a){var b=this.q=a=this.L.H(this,a),c=this.L.mb();c&amp;&amp;Td(b,c);this.ne||this.L.Vd(a,false);this.gb=a.style.display!="none"};
o.m=function(){T.d.m.call(this);this.L.Gd(this);if(this.Ka&amp;-2){this.Wc&amp;&amp;Mf(this,true);if(this.Ka&amp;32){var a=this.Xb();if(a){var b=this.Lk();b.yh(a);this.v().e(b,"key",this.Tk).e(a,"focus",this.Qk).e(a,"blur",this.gi)}}}};function Mf(a,b){var c=a.v(),d=a.a();if(b){c.e(d,"mouseover",a.Yf).e(d,"mousedown",a.Wf).e(d,"mouseup",a.Dd).e(d,"mouseout",a.Xf);z&amp;&amp;c.e(d,"dblclick",a.hi)}else{c.rb(d,"mouseover",a.Yf).rb(d,"mousedown",a.Wf).rb(d,"mouseup",a.Dd).rb(d,"mouseout",a.Xf);z&amp;&amp;c.rb(d,"dblclick",a.hi)}}
T.prototype.N=function(){T.d.N.call(this);this.Zc&amp;&amp;this.Zc.detach();this.gb&amp;&amp;this.fa()&amp;&amp;this.L.fd(this,false)};T.prototype.i=function(){T.d.i.call(this);if(this.Zc){this.Zc.r();delete this.Zc}delete this.L;this.lb=this.Ga=null};function Cf(a,b){a.Ga=b}o=T.prototype;o.we=function(){var a=this.Ga;if(!a)return"";a=v(a)?a:u(a)?D(a,Pd).join(""):Nd(a);return ta(a)};o.Dc=function(a){T.d.Dc.call(this,a);var b=this.a();b&amp;&amp;this.L.Dc(b,a)};o.Vd=function(a){this.ne=a;var b=this.a();b&amp;&amp;this.L.Vd(b,a)};
o.R=function(a,b){if(b||this.gb!=a&amp;&amp;this.dispatchEvent(a?"show":"hide")){(b=this.a())&amp;&amp;this.L.R(b,a);this.fa()&amp;&amp;this.L.fd(this,a);this.gb=a;return true}return false};o.fa=function(){return!!!(this.V&amp;1)};o.Cc=function(a){var b=this.O;if(!(b&amp;&amp;typeof b.fa=="function"&amp;&amp;!b.fa())&amp;&amp;Nf(this,1,!a)){if(!a){this.setActive(false);this.Wd(false)}this.gb&amp;&amp;this.L.fd(this,a);this.Qa(1,!a)}};o.Wd=function(a){Nf(this,2,a)&amp;&amp;this.Qa(2,a)};o.ri=function(){return!!(this.V&amp;4)};
o.setActive=function(a){Nf(this,4,a)&amp;&amp;this.Qa(4,a)};function Of(a,b){Nf(a,8,b)&amp;&amp;a.Qa(8,b)}T.prototype.si=function(){return!!(this.V&amp;16)};T.prototype.Ig=function(a){Nf(this,16,a)&amp;&amp;this.Qa(16,a)};function Pf(a,b){Nf(a,32,b)&amp;&amp;a.Qa(32,b)}function Qf(a,b){Nf(a,64,b)&amp;&amp;a.Qa(64,b)}T.prototype.Qa=function(a,b){if(this.Ka&amp;a&amp;&amp;b!=!!(this.V&amp;a)){this.L.Qa(this,a,b);this.V=b?this.V|a:this.V&amp;~a}};
function Rf(a,b,c){if(a.$&amp;&amp;a.V&amp;b&amp;&amp;!c)throw Error("Component already rendered");!c&amp;&amp;a.V&amp;b&amp;&amp;a.Qa(b,false);a.Ka=c?a.Ka|b:a.Ka&amp;~b}function Sf(a,b){return!!(a.Bf&amp;b)&amp;&amp;!!(a.Ka&amp;b)}function Nf(a,b,c){return!!(a.Ka&amp;b)&amp;&amp;!!(a.V&amp;b)!=c&amp;&amp;(!(a.qm&amp;b)||a.dispatchEvent(Je(b,c)))&amp;&amp;!a.yd}T.prototype.Yf=function(a){!Tf(a,this.a())&amp;&amp;this.dispatchEvent("enter")&amp;&amp;this.fa()&amp;&amp;Sf(this,2)&amp;&amp;this.Wd(true)};
T.prototype.Xf=function(a){if(!Tf(a,this.a())&amp;&amp;this.dispatchEvent("leave")){Sf(this,4)&amp;&amp;this.setActive(false);Sf(this,2)&amp;&amp;this.Wd(false)}};function Tf(a,b){return!!a.relatedTarget&amp;&amp;Fd(b,a.relatedTarget)}o=T.prototype;o.Wf=function(a){if(this.fa()){Sf(this,2)&amp;&amp;this.Wd(true);if(Vb(a)){Sf(this,4)&amp;&amp;this.setActive(true);this.L.fg(this)&amp;&amp;this.Xb().focus()}}!this.ne&amp;&amp;Vb(a)&amp;&amp;a.preventDefault()};o.Dd=function(a){if(this.fa()){Sf(this,2)&amp;&amp;this.Wd(true);this.ri()&amp;&amp;this.Qd(a)&amp;&amp;Sf(this,4)&amp;&amp;this.setActive(false)}};
o.hi=function(a){this.fa()&amp;&amp;this.Qd(a)};o.Qd=function(a){Sf(this,16)&amp;&amp;this.Ig(!this.si());Sf(this,8)&amp;&amp;Of(this,true);Sf(this,64)&amp;&amp;Qf(this,!!!(this.V&amp;64));var b=new Qb("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};o.Qk=function(){Sf(this,32)&amp;&amp;Pf(this,true)};o.gi=function(){Sf(this,4)&amp;&amp;this.setActive(false);Sf(this,32)&amp;&amp;Pf(this,false)};
o.Tk=function(a){if(this.gb&amp;&amp;this.fa()&amp;&amp;this.Ae(a)){a.preventDefault();a.stopPropagation();return true}return false};o.Ae=function(a){return a.keyCode==13&amp;&amp;this.Qd(a)};if(!ha(T))throw Error("Invalid component class "+T);if(!ha(zf))throw Error("Invalid renderer class "+zf);var Uf=ja(T);Hf[Uf]=zf;If("goog-control",function(){return new T(null)});function Vf(){}y(Vf,Ff);ea(Vf);o=Vf.prototype;o.mb=e();
o.f=function(a){Wf(this,a);return a.g().f("button",{"class":this.pc(a).join(" "),disabled:!a.fa(),title:a.ye()||"",value:a.Zb()||""},a.we()||"")};o.hb=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&amp;&amp;(a.type=="button"||a.type=="submit"||a.type=="reset")};o.H=function(a,b){Wf(this,a);b.disabled&amp;&amp;K(b,this.Cd(1));return Vf.d.H.call(this,a,b)};o.Gd=function(a){a.v().e(a.a(),"click",a.Qd)};o.Vd=s;o.Dc=s;o.fg=function(a){return a.fa()};o.fd=s;
o.Qa=function(a,b,c){Vf.d.Qa.call(this,a,b,c);if((a=a.a())&amp;&amp;b==1)a.disabled=c};o.Zb=function(a){return a.value};o.Ec=function(a,b){if(a)a.value=b};o.Hc=s;function Wf(a,b){b.$&amp;&amp;false!=b.Wc&amp;&amp;Mf(b,false);b.Wc=false;b.Bf&amp;=-256;Rf(b,32,false)}function Xf(a,b,c){T.call(this,a,b||Vf.oa(),c)}y(Xf,T);o=Xf.prototype;o.Zb=k("dh");o.Ec=function(a){this.dh=a;this.L.Ec(this.a(),a)};o.ye=k("Vg");o.Lg=function(a){this.Vg=a;this.L.Lg(this.a(),a)};o.i=function(){Xf.d.i.call(this);delete this.dh;delete this.Vg};
o.m=function(){Xf.d.m.call(this);if(this.Ka&amp;32){var a=this.Xb();a&amp;&amp;this.v().e(a,"keyup",this.Ae)}};o.Ae=function(a){if(a.keyCode==13&amp;&amp;a.type=="key"||a.keyCode==32&amp;&amp;a.type=="keyup")return this.Qd(a);return a.keyCode==32};If("goog-button",function(){return new Xf(null)});
function Yf(a,b){var c=a.type;if(c!==undefined)switch(c.toLowerCase()){case "checkbox":case "radio":a.checked=b?"checked":null;break;case "select-one":a.selectedIndex=-1;if(v(b))for(var d=0;c=a.options[d];d++)if(c.value==b){c.selected=true;break}break;case "select-multiple":b=b;if(v(b))b=[b];for(d=0;c=a.options[d];d++){c.selected=false;if(b)for(var f,g=0;f=b[g];g++)if(c.value==f)c.selected=true}break;default:a.value=r(b)?b:""}}function Zf(a,b){Q.call(this,b);this.xa=a||""}y(Zf,Q);
Zf.prototype.ub=null;var ag="placeholder"in document.createElement("input");o=Zf.prototype;o.Ce=false;o.f=function(){this.q=this.g().f("input",{type:"text"})};o.F=function(a){Zf.d.F.call(this,a);if(!this.xa)this.xa=a.getAttribute("label")||"";if(ag)this.a().aj=this.xa;else Ud(this.a(),"label",this.xa)};
o.m=function(){Zf.d.m.call(this);var a=new N(this);a.e(this.a(),"focus",this.ii);a.e(this.a(),"blur",this.Ok);if(ag)this.X=a;else{Xa&amp;&amp;a.e(this.a(),["keypress","keydown","keyup"],this.Pk);var b=id(this.a());b=td(b);a.e(b,"load",this.Yk);this.X=a;bg(this)}cg(this);this.a().hl=this};o.N=function(){Zf.d.N.call(this);dg(this);this.a().hl=null};function bg(a){if(!a.Hk&amp;&amp;a.X&amp;&amp;a.a().form){a.X.e(a.a().form,"submit",a.Rk);a.Hk=true}}function dg(a){if(a.X){a.X.r();a.X=null}}o=Zf.prototype;
o.i=function(){Zf.d.i.call(this);dg(this)};o.ge="label-input-label";o.ii=function(){this.Ce=true;bd(this.a(),this.ge);if(!ag)if(!eg(this)&amp;&amp;!this.dl){var a=this,b=function(){a.a().value=""};z?Vc(b,10):b()}};o.Ok=function(){if(!ag){this.X.rb(this.a(),"click",this.ii);this.ub=null}this.Ce=false;cg(this)};o.Pk=function(a){if(a.keyCode==27){if(a.type=="keydown")this.ub=this.a().value;else if(a.type=="keypress")this.a().value=this.ub;else if(a.type=="keyup")this.ub=null;a.preventDefault()}};
o.Rk=function(){if(!eg(this)){this.a().value="";Vc(this.Nk,10,this)}};o.Nk=function(){if(!eg(this))this.a().value=this.xa};o.Yk=function(){cg(this)};function eg(a){return!!a.a()&amp;&amp;a.a().value!=""&amp;&amp;a.a().value!=a.xa}Zf.prototype.clear=function(){this.a().value="";if(this.ub!=null)this.ub=""};Zf.prototype.reset=function(){eg(this)&amp;&amp;this.clear();cg(this)};Zf.prototype.Ec=function(a){if(this.ub!=null)this.ub=a;this.a().value=a;cg(this)};
Zf.prototype.Zb=function(){if(this.ub!=null)return this.ub;return eg(this)?this.a().value:""};function cg(a){if(ag){if(a.a().aj!=a.xa)a.a().aj=a.xa}else{bg(a);Ud(a.a(),"label",a.xa)}if(eg(a))bd(a.a(),a.ge);else{!a.dl&amp;&amp;!a.Ce&amp;&amp;K(a.a(),a.ge);ag||Vc(a.cm,10,a)}}Zf.prototype.Cc=function(a){this.a().disabled=!a;cd(this.a(),this.ge+"-disabled",!a)};Zf.prototype.cm=function(){if(this.a()&amp;&amp;!eg(this)&amp;&amp;!this.Ce)this.a().value=this.xa};function fg(){}y(fg,zf);ea(fg);o=fg.prototype;o.mb=e();
o.H=function(a,b){fg.d.H.call(this,a,b);a.Ga=b.value;return b};o.f=function(a){a.$&amp;&amp;false!=a.Wc&amp;&amp;Mf(a,false);a.Wc=false;a.Bf&amp;=-256;Rf(a,32,false);return a.g().f("textarea",{"class":this.pc(a).join(" "),disabled:!a.fa()},a.Ga||"")};o.hb=function(a){return a.tagName=="TEXTAREA"};o.Dc=s;o.fg=function(a){return a.fa()};o.fd=s;o.Qa=function(a,b,c){fg.d.Qa.call(this,a,b,c);if((a=a.a())&amp;&amp;b==1)a.disabled=c};o.Hc=s;o.Y=m("goog-textarea");var gg,hg,ig,jg,kg,lg,mg;mg=lg=kg=jg=ig=hg=gg=false;var ng=Sa();
if(ng)if(ng.indexOf("Firefox")!=-1)gg=true;else if(ng.indexOf("Camino")!=-1)hg=true;else if(ng.indexOf("iPhone")!=-1||ng.indexOf("iPod")!=-1)ig=true;else if(ng.indexOf("iPad")!=-1)jg=true;else if(ng.indexOf("Android")!=-1)kg=true;else if(ng.indexOf("Chrome")!=-1)lg=true;else if(ng.indexOf("Safari")!=-1)mg=true;function og(a){this.ya=new le;a&amp;&amp;this.Af(a)}function pg(a){var b=typeof a;return b=="object"&amp;&amp;a||b=="function"?"o"+ja(a):b.substr(0,1)+a}o=og.prototype;o.add=function(a){this.ya.ca(pg(a),a)};
o.Af=function(a){a=ie(a);for(var b=a.length,c=0;c&lt;b;c++)this.add(a[c])};o.dd=function(a){a=ie(a);for(var b=a.length,c=0;c&lt;b;c++)this.remove(a[c])};o.remove=function(a){return this.ya.remove(pg(a))};o.clear=function(){this.ya.clear()};o.ac=function(){return this.ya.ac()};o.contains=function(a){return this.ya.bb(pg(a))};o.vb=function(){return this.ya.vb()};o.Fa=function(){return new og(this)};function qg(a){return rg(a||arguments.callee.caller,[])}
function rg(a,b){var c=[];if(E(b,a))c.push("[...circular reference...]");else if(a&amp;&amp;b.length&lt;50){c.push(sg(a)+"(");for(var d=a.arguments,f=0;f&lt;d.length;f++){f&gt;0&amp;&amp;c.push(", ");var g;g=d[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":g=g;break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=sg(g))?g:"[fn]";break;case "undefined":default:g=typeof g;break}if(g.length&gt;40)g=g.substr(0,40)+"...";c.push(g)}b.push(a);c.push(")\n");try{c.push(rg(a.caller,
b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function sg(a){if(tg[a])return tg[a];if(pb){var b=pb(a);if(b)return tg[a]=b}a=String(a);if(!tg[a]){b=/function ([^\(]+)/.exec(a);tg[a]=b?b[1]:"[Anonymous]"}return tg[a]}var tg={};function ug(a,b,c,d,f){this.reset(a,b,c,d,f)}ug.prototype.im=0;ug.prototype.Vh=null;ug.prototype.Uh=null;var vg=0;
ug.prototype.reset=function(a,b,c,d,f){this.im=typeof f=="number"?f:vg++;this.Vn=d||pa();this.Kd=a;this.zl=b;this.Hn=c;delete this.Vh;delete this.Uh};ug.prototype.sj=aa("Kd");(function(){this.clear()}).prototype.clear=function(){this.on=new Array(0);this.qn=-1;this.Dn=false};function wg(a){this.Al=a}wg.prototype.O=null;wg.prototype.Kd=null;wg.prototype.Q=null;wg.prototype.ji=null;function xg(a,b){this.name=a;this.value=b}xg.prototype.toString=k("name");new xg("OFF",Infinity);new xg("SHOUT",1200);
var yg=new xg("SEVERE",1E3),zg=new xg("WARNING",900);new xg("INFO",800);var Ag=new xg("CONFIG",700),Bg=new xg("FINE",500);new xg("FINER",400);var Cg=new xg("FINEST",300);new xg("ALL",0);wg.prototype.sj=aa("Kd");function Dg(a){if(a.Kd)return a.Kd;if(a.O)return Dg(a.O);return null}wg.prototype.log=function(a,b,c){a.value&gt;=Dg(this).value&amp;&amp;Eg(this,this.Mk(a,b,c))};
wg.prototype.Mk=function(a,b,c){var d=new ug(a,String(b),this.Al);if(c){d.Vh=c;var f;var g=arguments.callee.caller;try{var h;var j=da("window.location.href");if(v(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:j,stack:"Not available"};else{var l,n,q=false;try{l=c.lineNumber||c.Gn||"Not available"}catch(B){l="Not available";q=true}try{n=c.fileName||c.filename||c.sourceURL||j}catch(U){n="Not available";q=true}h=q||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,
lineNumber:l,fileName:n,stack:c.stack||"Not available"}:c}f="Message: "+ya(h.message)+'\nUrl: &lt;a href="view-source:'+h.fileName+'" target="_new"&gt;'+h.fileName+"&lt;/a&gt;\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+ya(h.stack+"-&gt; ")+"[end]\n\nJS stack traversal:\n"+ya(qg(g)+"-&gt; ")}catch(R){f="Exception trying to expose exception! You win, we lose. "+R}d.Uh=f}return d};function Fg(a,b,c){a.log(Bg,b,c)}
function Eg(a,b){var c="log:"+b.zl;if(p.console)if(p.console.timeStamp)p.console.timeStamp(c);else p.console.markTimeline&amp;&amp;p.console.markTimeline(c);p.msWriteProfilerMark&amp;&amp;p.msWriteProfilerMark(c);for(a=a;a;){c=a;if(c.ji)for(var d=0,f=undefined;f=c.ji[d];d++)f(b);a=a.O}}var Gg={},Hg=null;function Ig(a){if(!Hg){Hg=new wg("");Gg[""]=Hg;Hg.sj(Ag)}return Gg[a]||Jg(a)}
function Jg(a){var b=new wg(a),c=a.lastIndexOf("."),d=a.substr(0,c);c=a.substr(c+1);d=Ig(d);if(!d.Q)d.Q={};d.Q[c]=b;b.O=d;return Gg[a]=b}function Kg(){}Kg.prototype.Ch=null;Kg.prototype.Jf=t;Kg.prototype.ei=function(){return this.Ch||(this.Ch=this.qi())};Kg.prototype.qi=t;function Lg(){return Mg.Jf()}var Mg;function Ng(){}y(Ng,Kg);Ng.prototype.Jf=function(){var a=Og(this);return a?new ActiveXObject(a):new XMLHttpRequest};Ng.prototype.qi=function(){var a={};if(Og(this)){a[0]=true;a[1]=true}return a};
Ng.prototype.$f=null;function Og(a){if(!a.$f&amp;&amp;typeof XMLHttpRequest=="undefined"&amp;&amp;typeof ActiveXObject!="undefined"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c&lt;b.length;c++){var d=b[c];try{new ActiveXObject(d);return a.$f=d}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.$f}Mg=new Ng;function Pg(){if(Xa){this.lc={};this.qf={};this.ff=[]}}Pg.prototype.ta=Ig("goog.net.xhrMonitor");
Pg.prototype.Db=Xa;Pg.prototype.Cc=function(a){this.Db=Xa&amp;&amp;a};function Qg(a,b){if(a.Db){var c=v(b)?b:ia(b)?ja(b):"";a.ta.log(Cg,"Pushing context: "+b+" ("+c+")",undefined);a.ff.push(c)}}function Rg(a){if(a.Db){var b=a.ff.pop();a.ta.log(Cg,"Popping context: "+b,undefined);Sg(a,b)}}function Tg(a,b){if(a.Db){b=ja(b);Fg(a.ta,"Opening XHR : "+b);for(var c=0;c&lt;a.ff.length;c++){var d=a.ff[c];Ug(a,a.lc,d,b);Ug(a,a.qf,b,d)}}}
function Sg(a,b){var c=a.qf[b],d=a.lc[b];if(c&amp;&amp;d){a.ta.log(Cg,"Updating dependent contexts",undefined);C(c,function(f){C(d,function(g){Ug(this,this.lc,f,g);Ug(this,this.qf,g,f)},this)},a)}}function Ug(a,b,c,d){b[c]||(b[c]=[]);E(b[c],d)||b[c].push(d)}var Vg=new Pg,Wg=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Xg(a){return a.match(Wg)}function V(a){F.call(this);this.headers=new le;this.rf=a||null}
y(V,H);V.prototype.ta=Ig("goog.net.XhrIo");var Yg=/^https?:?$/i,Zg=[];function $g(a,b,c,d,f,g){var h=new V;Zg.push(h);b&amp;&amp;G(h,"complete",b);G(h,"ready",oa(ah,h));g&amp;&amp;bh(h,g);h.send(a,c,d,f)}function ah(a){a.r();Ab(Zg,a)}o=V.prototype;o.Rb=false;o.I=null;o.pf=null;o.Jd="";o.Ci="";o.$c=0;o.Id="";o.Of=false;o.Ee=false;o.bg=false;o.sc=false;o.be=0;o.Fc=null;o.nj="";o.Em=false;function bh(a,b){a.be=Math.max(0,b)}
V.prototype.send=function(a,b,c,d){if(this.I)throw Error("[goog.net.XhrIo] Object is active with another request");b=b?b.toUpperCase():"GET";this.Jd=a;this.Id="";this.$c=0;this.Ci=b;this.Of=false;this.Rb=true;this.I=this.rf?this.rf.Jf():new Lg;this.pf=this.rf?this.rf.ei():Mg.ei();Tg(Vg,this.I);this.I.onreadystatechange=w(this.Yi,this);try{Fg(this.ta,ch(this,"Opening Xhr"));this.bg=true;this.I.open(b,a,true);this.bg=false}catch(f){Fg(this.ta,ch(this,"Error opening Xhr: "+f.message));dh(this,5,f);return}a=
c||"";var g=this.headers.Fa();d&amp;&amp;ke(d,function(j,l){g.ca(l,j)});b=="POST"&amp;&amp;!g.bb("Content-Type")&amp;&amp;g.ca("Content-Type","application/x-www-form-urlencoded;charset=utf-8");ke(g,function(j,l){this.I.setRequestHeader(l,j)},this);if(this.nj)this.I.Sn=this.nj;if("withCredentials"in this.I)this.I.Zn=this.Em;try{if(this.Fc){Uc.clearTimeout(this.Fc);this.Fc=null}if(this.be&gt;0){Fg(this.ta,ch(this,"Will abort after "+this.be+"ms if incomplete"));this.Fc=Uc.setTimeout(w(this.nd,this),this.be)}Fg(this.ta,ch(this,
"Sending request"));this.Ee=true;this.I.send(a);this.Ee=false}catch(h){Fg(this.ta,ch(this,"Send error: "+h.message));dh(this,5,h)}};V.prototype.dispatchEvent=function(a){if(this.I){Qg(Vg,this.I);try{return V.d.dispatchEvent.call(this,a)}finally{Rg(Vg)}}else return V.d.dispatchEvent.call(this,a)};V.prototype.nd=function(){if(typeof ba!="undefined")if(this.I){this.Id="Timed out after "+this.be+"ms, aborting";this.$c=8;Fg(this.ta,ch(this,this.Id));this.dispatchEvent("timeout");this.abort(8)}};
function dh(a,b,c){a.Rb=false;if(a.I){a.sc=true;a.I.abort();a.sc=false}a.Id=c;a.$c=b;eh(a);fh(a)}function eh(a){if(!a.Of){a.Of=true;a.dispatchEvent("complete");a.dispatchEvent("error")}}V.prototype.abort=function(a){if(this.I&amp;&amp;this.Rb){Fg(this.ta,ch(this,"Aborting"));this.Rb=false;this.sc=true;this.I.abort();this.sc=false;this.$c=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");fh(this)}};
V.prototype.i=function(){if(this.I){if(this.Rb){this.Rb=false;this.sc=true;this.I.abort();this.sc=false}fh(this,true)}V.d.i.call(this)};V.prototype.Yi=function(){!this.bg&amp;&amp;!this.Ee&amp;&amp;!this.sc?this.wg():gh(this)};V.prototype.wg=function(){gh(this)};
function gh(a){if(a.Rb)if(typeof ba!="undefined")if(a.pf[1]&amp;&amp;hh(a)==4&amp;&amp;ih(a)==2)Fg(a.ta,ch(a,"Local request error detected and ignored"));else if(a.Ee&amp;&amp;hh(a)==4)Uc.setTimeout(w(a.Yi,a),0);else{a.dispatchEvent("readystatechange");if(a.fl()){Fg(a.ta,ch(a,"Request complete"));a.Rb=false;if(jh(a)){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.$c=6;a.Id=kh(a)+" ["+ih(a)+"]";eh(a)}fh(a)}}}
function fh(a,b){if(a.I){var c=a.I,d=a.pf[0]?s:null;a.I=null;a.pf=null;if(a.Fc){Uc.clearTimeout(a.Fc);a.Fc=null}if(!b){Qg(Vg,c);a.dispatchEvent("ready");Rg(Vg)}if(Vg.Db){b=ja(c);Fg(Vg.ta,"Closing XHR : "+b);delete Vg.qf[b];for(var f in Vg.lc){Ab(Vg.lc[f],b);Vg.lc[f].length==0&amp;&amp;delete Vg.lc[f]}}try{c.onreadystatechange=d}catch(g){a.ta.log(yg,"Problem encountered resetting onreadystatechange: "+g.message,undefined)}}}V.prototype.ri=function(){return!!this.I};
V.prototype.fl=function(){return hh(this)==4};function jh(a){switch(ih(a)){case 0:a=(a=v(a.Jd)?Xg(a.Jd)[1]||null:a.Jd.qb)?Yg.test(a):self.location?Yg.test(self.location.protocol):true;return!a;case 200:case 204:case 304:case 1223:return true;default:return false}}function hh(a){return a.I?a.I.readyState:0}function ih(a){try{return hh(a)&gt;2?a.I.status:-1}catch(b){a.ta.log(zg,"Can not get status: "+b.message,undefined);return-1}}
function kh(a){try{return hh(a)&gt;2?a.I.statusText:""}catch(b){Fg(a.ta,"Can not get status: "+b.message);return""}}function lh(a,b){if(a.I){a=a.I.responseText;if(b&amp;&amp;a.indexOf(b)==0)a=a.substring(b.length);return sf(a)}}function ch(a,b){return b+" ["+a.Ci+" "+a.Jd+" "+ih(a)+"]"}Jb[Jb.length]=function(a){V.prototype.wg=a(V.prototype.wg)};
function W(a,b){var c;if(a instanceof W){this.gd(b==null?a.wb:b);mh(this,a.qb);nh(this,a.Ic);oh(this,a.Ha);ph(this,a.eb);qh(this,a.db);rh(this,a.ba.Fa());th(this,a.nc)}else if(a&amp;&amp;(c=Xg(String(a)))){this.gd(!!b);mh(this,c[1]||"",true);nh(this,c[2]||"",true);oh(this,c[3]||"",true);ph(this,c[4]);qh(this,c[5]||"",true);rh(this,c[6]||"",true);th(this,c[7]||"",true)}else{this.gd(!!b);this.ba=new uh(null,this,this.wb)}}o=W.prototype;o.qb="";o.Ic="";o.Ha="";o.eb=null;o.db="";o.nc="";o.gl=false;o.wb=false;
o.toString=function(){if(this.ab)return this.ab;var a=[];this.qb&amp;&amp;a.push(vh(this.qb,wh),":");if(this.Ha){a.push("//");this.Ic&amp;&amp;a.push(vh(this.Ic,wh),"@");a.push(xh(this.Ha));this.eb!=null&amp;&amp;a.push(":",String(this.eb))}if(this.db){this.Ha&amp;&amp;this.db.charAt(0)!="/"&amp;&amp;a.push("/");a.push(vh(this.db,this.db.charAt(0)=="/"?yh:zh))}var b=String(this.ba);b&amp;&amp;a.push("?",b);this.nc&amp;&amp;a.push("#",vh(this.nc,Ah));return this.ab=a.join("")};
function Bh(a,b){var c=a.Fa(),d=!!b.qb;if(d)mh(c,b.qb);else d=!!b.Ic;if(d)nh(c,b.Ic);else d=!!b.Ha;if(d)oh(c,b.Ha);else d=b.eb!=null;var f=b.db;if(d)ph(c,b.eb);else if(d=!!b.db){if(f.charAt(0)!="/")if(a.Ha&amp;&amp;!a.db)f="/"+f;else{a=c.db.lastIndexOf("/");if(a!=-1)f=c.db.substr(0,a+1)+f}a=f;if(a==".."||a==".")f="";else if(!Ea(a,"./")&amp;&amp;!Ea(a,"/."))f=a;else{f=a.lastIndexOf("/",0)==0;a=a.split("/");for(var g=[],h=0;h&lt;a.length;){var j=a[h++];if(j==".")f&amp;&amp;h==a.length&amp;&amp;g.push("");else if(j==".."){if(g.length&gt;
1||g.length==1&amp;&amp;g[0]!="")g.pop();f&amp;&amp;h==a.length&amp;&amp;g.push("")}else{g.push(j);f=true}}f=g.join("/")}}if(d)qh(c,f);else d=b.ba.toString()!=="";if(d){f=b.ba;if(!f.Qc)f.Qc=Ch(f.toString());rh(c,f.Qc,undefined)}else d=!!b.nc;d&amp;&amp;th(c,b.nc);return c}W.prototype.Fa=function(){var a=this.qb,b=this.Ic,c=this.Ha,d=this.eb,f=this.db,g=this.ba.Fa(),h=this.nc,j=new W(null,this.wb);a&amp;&amp;mh(j,a);b&amp;&amp;nh(j,b);c&amp;&amp;oh(j,c);d&amp;&amp;ph(j,d);f&amp;&amp;qh(j,f);g&amp;&amp;rh(j,g);h&amp;&amp;th(j,h);return j};
function mh(a,b,c){Dh(a);delete a.ab;a.qb=c?Ch(b):b;if(a.qb)a.qb=a.qb.replace(/:$/,"");return a}function nh(a,b,c){Dh(a);delete a.ab;a.Ic=c?Ch(b):b;return a}function oh(a,b,c){Dh(a);delete a.ab;a.Ha=c?Ch(b):b;return a}function ph(a,b){Dh(a);delete a.ab;if(b){b=Number(b);if(isNaN(b)||b&lt;0)throw Error("Bad port number "+b);a.eb=b}else a.eb=null;return a}function qh(a,b,c){Dh(a);delete a.ab;a.db=c?Ch(b):b;return a}
function rh(a,b,c){Dh(a);delete a.ab;if(b instanceof uh){a.ba=b;a.ba.de=a;a.ba.gd(a.wb)}else{c||(b=vh(b,Eh));a.ba=new uh(b,a,a.wb)}return a}function X(a,b,c){Dh(a);delete a.ab;a.ba.ca(b,c);return a}function Fh(a,b,c){Dh(a);delete a.ab;u(c)||(c=[String(c)]);var d=a.ba;b=b;c=c;Gh(d);Hh(d);b=Ih(d,b);if(d.bb(b)){var f=d.B.K(b);if(u(f))d.C-=f.length;else d.C--}if(c.length&gt;0){d.B.ca(b,c);d.C+=c.length}return a}function th(a,b,c){Dh(a);delete a.ab;a.nc=c?Ch(b):b;return a}
function Dh(a){if(a.gl)throw Error("Tried to modify a read-only Uri");}W.prototype.gd=function(a){this.wb=a;this.ba&amp;&amp;this.ba.gd(a);return this};function Ch(a){return a?decodeURIComponent(a):""}function xh(a){if(v(a))return encodeURIComponent(a);return null}var Jh=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;function vh(a,b){var c=null;if(v(a)){c=a;Jh.test(c)||(c=encodeURI(a));if(c.search(b)&gt;=0)c=c.replace(b,Kh)}return c}function Kh(a){a=a.charCodeAt(0);return"%"+(a&gt;&gt;4&amp;15).toString(16)+(a&amp;15).toString(16)}
var wh=/[#\/\?@]/g,zh=/[\#\?:]/g,yh=/[\#\?]/g,Eh=/[\#\?@]/g,Ah=/#/g;function uh(a,b,c){this.Eb=a||null;this.de=b||null;this.wb=!!c}function Gh(a){if(!a.B){a.B=new le;a.C=0;if(a.Eb)for(var b=a.Eb.split("&amp;"),c=0;c&lt;b.length;c++){var d=b[c].indexOf("="),f=null,g=null;if(d&gt;=0){f=b[c].substring(0,d);g=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));f=Ih(a,f);a.add(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}}o=uh.prototype;o.B=null;o.C=null;
o.add=function(a,b){Gh(this);Hh(this);a=Ih(this,a);if(this.bb(a)){var c=this.B.K(a);u(c)?c.push(b):this.B.ca(a,[c,b])}else this.B.ca(a,b);this.C++;return this};o.remove=function(a){Gh(this);a=Ih(this,a);if(this.B.bb(a)){Hh(this);var b=this.B.K(a);if(u(b))this.C-=b.length;else this.C--;return this.B.remove(a)}return false};o.clear=function(){Hh(this);this.B&amp;&amp;this.B.clear();this.C=0};o.ac=function(){Gh(this);return this.C==0};o.bb=function(a){Gh(this);a=Ih(this,a);return this.B.bb(a)};
o.Fb=function(){Gh(this);for(var a=this.B.vb(),b=this.B.Fb(),c=[],d=0;d&lt;b.length;d++){var f=a[d];if(u(f))for(var g=0;g&lt;f.length;g++)c.push(b[d]);else c.push(b[d])}return c};o.vb=function(a){Gh(this);if(a){a=Ih(this,a);if(this.bb(a)){var b=this.B.K(a);if(u(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.B.vb();a=[];for(var c=0;c&lt;b.length;c++){var d=b[c];u(d)?Db(a,d):a.push(d)}}return a};
o.ca=function(a,b){Gh(this);Hh(this);a=Ih(this,a);if(this.bb(a)){var c=this.B.K(a);if(u(c))this.C-=c.length;else this.C--}this.B.ca(a,b);this.C++;return this};o.K=function(a,b){Gh(this);a=Ih(this,a);if(this.bb(a)){a=this.B.K(a);return u(a)?a[0]:a}else return b};
o.toString=function(){if(this.Eb)return this.Eb;if(!this.B)return"";for(var a=[],b=0,c=this.B.Fb(),d=0;d&lt;c.length;d++){var f=c[d],g=xa(f);f=this.B.K(f);if(u(f))for(var h=0;h&lt;f.length;h++){b&gt;0&amp;&amp;a.push("&amp;");a.push(g);f[h]!==""&amp;&amp;a.push("=",xa(f[h]));b++}else{b&gt;0&amp;&amp;a.push("&amp;");a.push(g);f!==""&amp;&amp;a.push("=",xa(f));b++}}return this.Eb=a.join("")};function Hh(a){delete a.Qc;delete a.Eb;a.de&amp;&amp;delete a.de.ab}
uh.prototype.Fa=function(){var a=new uh;if(this.Qc)a.Qc=this.Qc;if(this.Eb)a.Eb=this.Eb;if(this.B)a.B=this.B.Fa();return a};function Ih(a,b){b=String(b);if(a.wb)b=b.toLowerCase();return b}uh.prototype.gd=function(a){if(a&amp;&amp;!this.wb){Gh(this);Hh(this);ke(this.B,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.wb=a};function Lh(a,b){this.de=new W(a);this.qk=b?b:"callback";this.nd=5E3}var Mh=0;
Lh.prototype.send=function(a,b,c,d){a=a||null;if(!document.documentElement.firstChild){c&amp;&amp;c(a);return null}d=d||"_"+(Mh++).toString(36)+pa().toString(36);p._callbacks_||(p._callbacks_={});var f=document.createElement("script"),g=null;if(this.nd&gt;0){c=Nh(d,f,a,c);g=p.setTimeout(c,this.nd)}c=this.de.Fa();a&amp;&amp;Oh(a,c);if(b){b=Ph(d,f,b,g);p._callbacks_[d]=b;Fh(c,this.qk,"_callbacks_."+d)}pd(f,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});document.getElementsByTagName("head")[0].appendChild(f);
return{rc:d,nd:g}};function Nh(a,b,c,d){return function(){Qh(a,b,false);d&amp;&amp;d(c)}}function Ph(a,b,c,d){return function(){p.clearTimeout(d);Qh(a,b,true);c.apply(undefined,arguments)}}function Qh(a,b,c){p.setTimeout(function(){Ad(b)},0);if(p._callbacks_[a])if(c)delete p._callbacks_[a];else p._callbacks_[a]=s}function Oh(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))Fh(b,c,a[c]);return b}function Rh(){this.Hh=[]}y(Rh,zf);ea(Rh);
function Sh(a,b){var c=a.Hh[b];if(!c){switch(b){case 0:c=a.Y()+"-highlight";break;case 1:c=a.Y()+"-checkbox";break;case 2:c=a.Y()+"-content";break}a.Hh[b]=c}return c}Rh.prototype.mb=m("menuitem");Rh.prototype.f=function(a){var b=a.g().f("div",this.pc(a).join(" "),Th(this,a.Ga,a.g()));Uh(this,a,b,!!(a.Ka&amp;8)||!!(a.Ka&amp;16));return b};Rh.prototype.Ca=function(a){return a&amp;&amp;a.firstChild};
Rh.prototype.H=function(a,b){var c=Cd(b),d=Sh(this,2);c&amp;&amp;c.className.indexOf(d)!=-1||b.appendChild(Th(this,b.childNodes,a.g()));if(E(ad(b),"goog-option")){a.Xe(true);this.Xe(a,b,true)}return Rh.d.H.call(this,a,b)};function Th(a,b,c){a=Sh(a,2);return c.f("div",a,b)}Rh.prototype.Xe=function(a,b,c){if(b){Td(b,c?"menuitemcheckbox":this.mb());Uh(this,a,b,c)}};function Vh(a,b){if(b=a.Ca(b)){b=b.firstChild;a=Sh(a,1);return!!b&amp;&amp;!!b.className&amp;&amp;b.className.indexOf(a)!=-1}return false}
function Uh(a,b,c,d){if(d!=Vh(a,c)){cd(c,"goog-option",d);c=a.Ca(c);if(d){a=Sh(a,1);c.insertBefore(b.g().f("div",a),c.firstChild||null)}else c.removeChild(c.firstChild)}}Rh.prototype.Cd=function(a){switch(a){case 2:return Sh(this,0);case 16:case 8:return"goog-option-selected";default:return Rh.d.Cd.call(this,a)}};Rh.prototype.Tf=function(a){var b=Sh(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return Rh.d.Tf.call(this,a)}};Rh.prototype.Y=m("goog-menuitem");
function Wh(a,b,c,d){T.call(this,a,d||Rh.oa(),c);this.Ec(b)}y(Wh,T);o=Wh.prototype;o.Zb=function(){var a=this.ua;return a!=null?a:this.we()};o.Ec=aa("ua");o.Xe=function(a){Rf(this,16,a);var b=this.a();b&amp;&amp;this.L.Xe(this,b,a)};o.we=function(){var a=this.Ga;if(u(a)){a=D(a,function(b){return E(ad(b),"goog-menuitem-accel")?"":Pd(b)}).join("");return ta(a)}return Wh.d.we.call(this)};
o.Dd=function(a){var b=this.O;if(b){var c=b.Tl;b.Tl=null;if(c&amp;&amp;typeof a.clientX=="number"){b=new dd(a.clientX,a.clientY);if(c==b?true:!c||!b?false:c.x==b.x&amp;&amp;c.y==b.y)return}}Wh.d.Dd.call(this,a)};If("goog-menuitem",function(){return new Wh(null)});function Xh(a){return function(){return a}}Xh(false);Xh(true);Xh(null);function Yh(){}y(Yh,zf);ea(Yh);Yh.prototype.f=function(a){return a.g().f("div",this.Y())};
Yh.prototype.H=function(a,b){if(b.tagName=="HR"){var c=b;b=this.f(a);c.parentNode&amp;&amp;c.parentNode.insertBefore(b,c);Ad(c)}else K(b,this.Y());return b};Yh.prototype.Y=m("goog-menuseparator");function Zh(a,b){T.call(this,null,a||Yh.oa(),b);Rf(this,1,false);Rf(this,2,false);Rf(this,4,false);Rf(this,32,false);this.V=1}y(Zh,T);Zh.prototype.m=function(){Zh.d.m.call(this);Td(this.a(),"separator")};If("goog-menuseparator",function(){return new Zh});function $h(){}ea($h);o=$h.prototype;o.mb=e();
o.f=function(a){return a.g().f("div",this.pc(a).join(" "))};o.Ca=function(a){return a};o.hb=function(a){return a.tagName=="DIV"};o.H=function(a,b){b.id&amp;&amp;Le(a,b.id);var c=this.Y(),d=false,f=ad(b);f&amp;&amp;C(f,function(g){if(g==c)d=true;else g&amp;&amp;ai(this,a,g,c)},this);d||K(b,c);bi(this,a,this.Ca(b));return b};function ai(a,b,c,d){if(c==d+"-disabled")b.Cc(false);else if(c==d+"-horizontal")b.km(ci);else c==d+"-vertical"&amp;&amp;b.km(di)}
function bi(a,b,c,d){if(c){d=d||c.firstChild;for(var f;d&amp;&amp;d.parentNode==c;){f=d.nextSibling;if(d.nodeType==1){var g=a.Sf(d);if(g){g.q=d;b.fa()||g.Cc(false);b.zb(g);g.H(d)}}else if(!d.nodeValue||ua(d.nodeValue)=="")c.removeChild(d);d=f}}}o=$h.prototype;o.Sf=function(a){a:{for(var b=ad(a),c=0,d=b.length;c&lt;d;c++)if(a=b[c]in Jf?Jf[b[c]]():null){a=a;break a}a=null}return a};o.Gd=function(a){a=a.a();De(a,true,Xa);if(z)a.hideFocus=true;var b=this.mb();b&amp;&amp;Td(a,b)};o.Xb=function(a){return a.a()};o.Y=m("goog-container");
o.pc=function(a){var b=this.Y(),c=a.Bn()==ci;c=[b,c?b+"-horizontal":b+"-vertical"];a.fa()||c.push(b+"-disabled");return c};var ci="horizontal",di="vertical";function ei(){}y(ei,zf);ea(ei);ei.prototype.Y=m("goog-menuheader");function fi(a,b,c){T.call(this,a,c||ei.oa(),b);Rf(this,1,false);Rf(this,2,false);Rf(this,4,false);Rf(this,32,false);this.V=1}y(fi,T);If("goog-menuheader",function(){return new fi(null)});function gi(){}y(gi,$h);ea(gi);o=gi.prototype;o.mb=m("menu");
o.hb=function(a){return a.tagName=="UL"||gi.d.hb.call(this,a)};o.Sf=function(a){return a.tagName=="HR"?new Zh:gi.d.Sf.call(this,a)};o.Y=m("goog-menu");o.Gd=function(a){gi.d.Gd.call(this,a);a=a.a();Ud(a,"haspopup","true")};If("goog-menuseparator",function(){return new Zh});function hi(a){F.call(this);this.Yc={};this.pa=new N(this);this.O=a}y(hi,H);function ii(a,b,c){if(c=v(c)?c:c.src)a.Yc[b]=c}hi.prototype.start=function(){oc(this.Yc,this.ml,this)};
hi.prototype.ml=function(a,b){var c;c=this.O?gd(this.O).f("img"):new Image;this.pa.e(c,[z?"readystatechange":"load","abort","error"],this.Kl);c.id=b;c.src=a};
hi.prototype.Kl=function(a){var b=a.currentTarget;if(b){if(a.type=="readystatechange")if(b.readyState=="complete")a.type="load";else return;if(typeof b.naturalWidth=="undefined")if(a.type=="load"){b.naturalWidth=b.width;b.naturalHeight=b.height}else{b.naturalWidth=0;b.naturalHeight=0}this.dispatchEvent({type:a.type,target:b});if(!this.yd){sc(this.Yc,b.id);a:{for(var c in this.Yc){a=false;break a}a=true}if(a){this.dispatchEvent("complete");this.pa&amp;&amp;this.pa.dd()}}}};
hi.prototype.i=function(){this.Yc&amp;&amp;delete this.Yc;if(this.pa){this.pa.r();this.pa=null}hi.d.i.call(this)};function ji(){}y(ji,zf);ea(ji);ji.prototype.f=function(a){var b=a.g().f("span",this.pc(a).join(" "));ki(this,b,a.Ub);return b};ji.prototype.H=function(a,b){b=ji.d.H.call(this,a,b);var c=ad(b),d=li;if(E(c,mi(this,ni)))d=ni;else if(E(c,mi(this,oi)))d=oi;else if(E(c,mi(this,li)))d=li;a.Ub=d;return b};ji.prototype.mb=m("checkbox");
function ki(a,b,c){if(b){var d=mi(a,c);if(!E(ad(b),d)){oc(pi,function(f){f=mi(this,f);cd(b,f,f==d)},a);Ud(b,"checked",c==ni?"mixed":c==oi?"true":"false")}}}ji.prototype.Y=m("goog-checkbox");function mi(a,b){a=a.Y();if(b==oi)return a+"-checked";else if(b==li)return a+"-unchecked";else if(b==ni)return a+"-undetermined";throw Error("Invalid checkbox state: "+b);}function qi(a,b,c){c=c||ji.oa();T.call(this,null,c,b);this.Ub=a!==undefined?a:li}y(qi,T);var oi=true,li=false,ni=null,pi={Hm:oi,dn:li,en:ni};
o=qi.prototype;o.xa=null;o.si=function(){return this.Ub==oi};o.Ig=function(a){if(a!=this.Ub){this.Ub=a;ki(this.L,this.a(),this.Ub)}};o.m=function(){qi.d.m.call(this);if(this.Wc){var a=this.v();this.xa&amp;&amp;a.e(this.xa,"click",this.Vf).e(this.xa,"mouseover",this.Yf).e(this.xa,"mouseout",this.Xf).e(this.xa,"mousedown",this.Wf).e(this.xa,"mouseup",this.Dd);a.e(this.a(),"click",this.Vf)}};o.Cc=function(a){qi.d.Cc.call(this,a);if(a=this.a())a.tabIndex=this.fa()?0:-1};
o.Vf=function(a){a.stopPropagation();var b=this.Ub?"uncheck":"check";if(this.fa()&amp;&amp;this.dispatchEvent(b)){a.preventDefault();this.Ig(this.Ub?li:oi);this.dispatchEvent("change")}};o.Ae=function(a){a.keyCode==32&amp;&amp;this.Vf(a);return false};If("goog-checkbox",function(){return new qi});function ri(a,b,c){F.call(this);this.ll=a;this.uc=b;this.pa=c;this.Sb=w(this.Ol,this)}y(ri,F);ri.prototype.Ze=false;ri.prototype.Ag=0;ri.prototype.Da=null;function si(a){if(!a.Da&amp;&amp;!a.Ag)ti(a);else a.Ze=true}
ri.prototype.stop=function(){if(this.Da){Uc.clearTimeout(this.Da);this.Da=null;this.Ze=false}};ri.prototype.pause=function(){this.Ag++};ri.prototype.i=function(){ri.d.i.call(this);this.stop()};ri.prototype.Ol=function(){this.Da=null;if(this.Ze&amp;&amp;!this.Ag){this.Ze=false;ti(this)}};function ti(a){a.Da=Vc(a.Sb,a.uc);a.ll.call(a.pa)}
function ui(a){F.call(this);this.Jc=a||window;this.Je=G(this.Jc,"resize",this.Wk,false,this);this.ef=rd(this.Jc||window);if(A&amp;&amp;Qa||Wa&amp;&amp;this.Jc.self!=this.Jc.top)this.of=window.setInterval(w(this.Gh,this),vi)}y(ui,H);var vi=500;o=ui.prototype;o.Je=null;o.Jc=null;o.ef=null;o.of=null;o.i=function(){ui.d.i.call(this);if(this.Je){Hc(this.Je);this.Je=null}if(this.of){window.clearInterval(this.of);this.of=null}this.ef=this.Jc=null};o.Wk=function(){this.Gh()};
o.Gh=function(){var a=rd(this.Jc||window);if(!fd(a,this.ef)){this.ef=a;this.dispatchEvent("resize")}};xc(function(a,b){this.type=a;this.currentTarget=this.target=b}.prototype,Qb.prototype);function wi(a,b,c,d,f,g){g=g&gt;0?pa()+g:0;return xi(a,b,c,d,f||[],g,0)}var yi=["SCRIPT","STYLE","TEXTAREA"];
function xi(a,b,c,d,f,g,h){if(g&gt;0&amp;&amp;pa()&gt;=g||h&gt;200)return false;var j=false;if(a.nodeType==3){b=zi(a.nodeValue,b,c,d);if(b!=null){j=id(a).createElement("SPAN");j.innerHTML=b;for(b=a.parentNode;(c=j.firstChild)!=null;)b.insertBefore(c,a);b.removeChild(a);j=true}}else if(a.hasChildNodes()&amp;&amp;!E(yi,a.tagName)){var l=a.className.split(/\s+/);if(!vb(l,function(n){return E(f,n)})){++h;for(l=a.firstChild;l;){a=l.nextSibling;l=xi(l,b,c,d,f,g,h);j=j||l;l=a}}}return j}var Ai=/\W/;
function zi(a,b,c,d){var f=false,g=d?a.toLowerCase():a,h=g.length;d=b.length;for(var j=new Array(d),l=0;l&lt;d;l++){var n=b[l],q=[],B=n[0];if(B!=""){var U=n[1];n=B.length;for(var R=0;R&lt;h;){var Ga=g.indexOf(B,R);if(Ga==-1)break;else{R=Ga-1;var lj=Ga+n;if(!U||(R&lt;0||Ai.test(g.charAt(R)))&amp;&amp;(lj&gt;=h||Ai.test(g.charAt(lj)))){q.push(Ga);f=true}R=Ga+n}}}j[l]=q}if(f){f=[];for(R=0;;){var Ee;g=-1;for(l=0;l&lt;d;l++){q=j[l];if(q.length!=0){for(Ga=q[0];Ga&gt;=0&amp;&amp;Ga&lt;R;){q.shift();Ga=q.length==0?-1:q[0]}if(Ga&gt;=0&amp;&amp;(g&lt;0||Ga&lt;
g)){Ee=l;g=Ga}}}if(g&lt;0)break;j[Ee].shift();f.push(ya(a.substr(R,g-R)));n=b[Ee][0].length;l=ya(a.substr(g,n));f.push(c(Ee,l));R=g+n}f.push(ya(a.substr(R)));return f.join("")}else return null}"en".substring(0,2)=="ar"||"en".substring(0,2)=="fa"||"en".substring(0,2)=="he"||"en".substring(0,2)=="iw"||"en".substring(0,2)=="ur"||"en".substring(0,2);
var Bi=new RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Ci=new RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]"),Di=/^http:\/\/.*/,Ei=/\s+/,Fi=/\d/;var Gi={},Hi,Ii={siteURL:"http://www.amara.org",staticURL:"http://s3.amazonaws.com/s3.www.universalsubtitles.org/static-cache/da20c57a/"};var Ji=null,Ki=null,Li=null,Mi=null,Ni=0,Oi=null,Pi=null;function Qi(a){if(Pi==null){Pi={};for(var b=0;b&lt;Mi.length;b++)Pi[Mi[b][0]]=Mi[b][1];for(b=0;b&lt;Oi.length;b++)Pi[Oi[b][0]]=Oi[b][1]}return Pi[a]}function Ri(){return Ji?Ji.siteURL:window.location.protocol+"//"+window.location.host}function Si(){return Ji?Ji.staticURL:window.STATIC_URL}function Ti(a){return[Si(),"images/",a].join("")}var Ui={nh:"login",he:"logout"},Vi=new H,Wi=false;
function Xi(a,b){if(Ki!=null)a&amp;&amp;a(true);else(new Yi(a,b)).R(true)}
var Zi=["/widget/twitter_login/","location=0,status=0,width=800,height=400"],$i=["/socialauth/openid/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"],aj=["/socialauth/gmail_login/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"],bj=["/widget/facebook_login/?next=/widget/close_window/","location=0,status=0,width=1000,height=450"],cj=["/auth/login/?next=/widget/close_window/","scrollbars=yes,location=0,status=0,resizable=yes"];
function dj(a,b,c){var d=window.open(Ri()+a[0],Y(),a[1]),f=new I(250);G(f,J,function(){if(d.closed){f.r();ej(b,c)}});f.start();return d}function ej(a,b){fj("get_my_user_info",{},function(c){Wi=false;c.logged_in&amp;&amp;gj(c.username);a&amp;&amp;a(c.logged_in)},function(){b&amp;&amp;b()})}function gj(a){Ki=a;Vi.dispatchEvent(new hj(Ki))}function ij(){fj("logout",{},function(){Ki=null;Vi.dispatchEvent(Ui.he)})}
function Y(){var a=[],b;for(b=0;b&lt;10;b++)a.push((10+~~(Math.random()*26)).toString(36));return a.join("")+(new Date).getTime()%1E8}function jj(a,b){kj(b,false);mj(b,true);nj(a,b);kj(b,true)}
function nj(a,b){var c,d=b.offsetParent;if(d){var f=d.tagName=="HTML"||d.tagName=="BODY";if(!f||qe(d)!="static"){c=we(d);f||(c=ed(c,new dd(d.scrollLeft,d.scrollTop)))}}d=we(a);f=O(a);d=new $d(d.x,d.y,f.width,f.height);a=gd(a);var g=gd(b);if(a.M!=g.M){f=a.M.body;g=g.M.parentWindow||g.M.defaultView;var h=new dd(0,0),j=td(id(f)),l=f;do{var n=j==g?we(l):ye(l);h.x+=n.x;h.y+=n.y}while(j&amp;&amp;j!=g&amp;&amp;(l=j.frameElement)&amp;&amp;(j=j.parent));g=h;g=ed(g,we(f));if(z&amp;&amp;!Rd(a))g=ed(g,Sd(a));d.left+=g.x;d.top+=g.y}d=new dd(d.left,
d.top+d.height);if(c)d=ed(d,c);c=d;c=c.Fa();d=O(b);a=d.Fa();re(b,c);fd(d,a)||ze(b,a);oj(b)}function hj(a){this.type=Ui.nh;this.Yn=a}function pj(a){return[Ri(),"/videos/",a,"/info/"].join("")}function qj(a){return[Ri(),"/videos/",a].join("")}function rj(a,b,c){var d={href:"javascript:void(0);"};if(c)d.className=c;return a("a",d,b)}var sj=window.localStorage;
function tj(a,b,c,d){if(c&amp;&amp;d){var f=new I(250);G(f,J,function(){if(c()){f.stop();f.r();d()}});f.start()}var g=document.createElement("script");g.type="text/javascript";g.src=a;if(b)g.async=true;a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(g,a)};function uj(a,b,c,d){$g([[Ri(),"/widget/rpc/"].join(""),"xhr/",a].join(""),function(f){if(jh(f.target))c&amp;&amp;c(lh(f.target));else{var g=null;if(f.target.$c!=8)g=ih(f.target);d&amp;&amp;d(g)}},"POST",vj(b),null,3E4)}function vj(a){var b=new uh;for(var c in a)typeof a[c]==="object"?b.ca(c,JSON.stringify(a[c])):b.ca(c,a[c]);return b.toString()}function wj(a,b,c,d){a=new Lh([[Ri(),"/widget/rpc/"].join(""),"jsonp/",a].join(""));a.nd=3E4;a.send(b,function(f){c&amp;&amp;c(f)},function(){d&amp;&amp;d()})}
function fj(a,b,c,d){var f={},g,h=0;for(var j in b){g=tf(b[j]);f[j]=g;h+=g.length}Ji!=null?wj(a,f,c,d):uj(a,f,c,d)};function xj(a,b,c){if(a.nodeName=="EMBED")return a.getAttribute(b);else if(a=yj(a,c||b))return a.value;return null}function zj(a){return a.nodeName=="OBJECT"&amp;&amp;a.data?a.data:xj(a,"src","movie")}function yj(a,b){return Hd(a,function(c){return c.nodeName=="PARAM"&amp;&amp;va(c.name,b)==0})};function Aj(){F.call(this);var a=window,b=a.onbeforeunload,c=a.onunload,d=this;a.onbeforeunload=function(f){var g;try{var h=new Bj;Mc(d,h);g=h.message}finally{f=b&amp;&amp;b(f)}if(g!=null)return g;if(f!=null)return f};a.onunload=function(f){try{d.dispatchEvent("unload")}finally{c&amp;&amp;c(f);a.onresize=null;a.onscroll=null;a.onbeforeunload=null;a.onunload=null}}}y(Aj,H);ea(Aj);function Bj(){Qb.call(this,"beforeunload");this.message=null}y(Bj,Qb);function Cj(){F.call(this);this.Fe=false;var a=this;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a.Pe()},false);else document.attachEvent&amp;&amp;Dj(this);Ec(window,"load",this.Pe,false,this)}y(Cj,H);ea(Cj);
function Dj(a){document.attachEvent("onreadystatechange",function(){if(document.readyState=="complete"){document.detachEvent("onreadystatechange",arguments.callee);a.Pe()}});document.documentElement.doScroll&amp;&amp;window==window.top&amp;&amp;function(){if(!a.Fe){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a.Pe()}}()}Cj.prototype.Pe=function(){if(!this.Fe){this.Fe=true;this.dispatchEvent("domloaded")}};function Ej(){this.th=false}ea(Ej);Ej.prototype.Qj="UA-163840-22";Ej.prototype.ke="usubs";function Fj(a,b,c){(c||{}).onsite=Ji!=null?"no":"yes";Gj(a);window._gaq.push([a.ke+"._trackPageview","/widget/"+b])}function Gj(a){if(!a.th){window._gaq=window._gaq||[];tj(("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",true);window._gaq.push([a.ke+"._setAccount",a.Qj]);a.th=true}};function Hj(a,b,c){a.style.cssText=Ij(a.style.cssText,b,c)}function Ij(a,b,c){var d=a.match(new RegExp("\\s*"+b+"\\s*:\\s*[^;]*;?","i"));b=c===null?"":[b,":",c," !important;"].join("");if(d)return a.replace(d[0],b);else{a=ua(a);if(a.length&gt;0&amp;&amp;!ra(a,";"))a+=";";return a+b}}function oj(a){var b=Ge(a.style.cssText);oc(b,function(c,d){c.indexOf("important")==-1&amp;&amp;Hj(a,d,c)})}function Jj(a,b,c){b=Kj(b,c);Lj(a,b[0]);Mj(a,b[1])}
function Nj(a,b,c){b=Kj(b,c);a=Ij(a,"width",Oj(b[0]));return Ij(a,"height",Oj(b[1]))}function Kj(a,b){if(a instanceof L){b=a.height;a=a.width}else{if(b==undefined)throw Error("missing height argument");b=b}return[a,b]}function Oj(a,b){return typeof a=="number"?(b?Math.round(a):a)+"px":a}function Pj(a,b,c,d){Hj(c,a,Oj(d))}var Mj=oa(Pj,"height",true),Lj=oa(Pj,"width",true);
function Qj(a,b,c){var d,f=Xa&amp;&amp;(Pa||ab)&amp;&amp;jb("1.9");if(r(b)&amp;&amp;b instanceof dd){d=b.x;b=b.y}else{d=b;b=c}r(d)&amp;&amp;Pj("left",f,a,d);r(b)&amp;&amp;Pj("top",f,a,b)}function mj(a,b){Hj(a,"display",b?null:"none")}function kj(a,b){Hj(a,"visibility",b?"visible":"hidden")};var Rj=[[/(\*\*)([^\*]+)(\*\*)/g,"&lt;b&gt;$2&lt;/b&gt;"],[/(\*)([^\*]+)(\*{1})/g,"&lt;i&gt;$2&lt;/i&gt;"],[/(_)([^_]+)(_{1})/g,"&lt;u&gt;$2&lt;/u&gt;"]];ca("unisubs.messaging.simplemessage.displayPendingMessages",function(){var a=new of(document),b=a.K("_user_message");b&amp;&amp;b.length&gt;0&amp;&amp;jQuery.jGrowl(b,{life:1E4});a.remove("_user_message")},undefined);function Sj(a){switch(a){case "H264":return Tj();case "Ogg":return Uj('video/ogg; codecs="theora, vorbis"');case "WebM":return Uj('video/webm; codecs="vp8, vorbis"');default:throw"unknown type";}}function Uj(a){var b=document.createElement("video");return!!(b.canPlayType&amp;&amp;b.canPlayType(a).replace(/no/,""))}function Tj(){return Uj('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')};function Vj(a){Q.call(this);this.Qi=a||false;this.kk=this.Oc=null;this.Oe=new L(-1,-1);this.ti=true;this.Kj=false}y(Vj,Q);
function Wj(a,b,c,d){b=b||42;c=c||4;d=d||"&lt;br/&gt;";if(!a)return"";a=a.replace("\n"," \n");var f=[],g=[];charsOnCurrentLine=0;words=a.split(" ");for(word=null;words.length;){word=words.shift();a=word.indexOf("\n");if(a&gt;-1){var h=word.substring(a+1,word.length);h&amp;&amp;words.unshift(h);word=word.substring(0,a)}charsOnCurrentLine=g.join(" ").length+word.length+1;if(charsOnCurrentLine&lt;=b){g.push(word);if(a&gt;-1){f.push(g);g=[]}}else{f.push(g);g=[word]}}g.length&amp;&amp;f.push(g);f=D(f,function(j){return j.join(" ")}).slice(0,
c);return f.join(d)}Vj.prototype.f=function(){var a=w(this.g().f,this.g())("span","unisubs-captionSpan");this.q=a;var b=a.parent&amp;&amp;a.offsetParent;if(!b)b=id(a).body;this.Qi&amp;&amp;kj(a,false);b.appendChild(a);Xj(this,false);Lj(this.a(),this.Eh);Qj(this.a(),this.Dh);if(this.ti)this.Va=new ae(this.a())};Vj.prototype.m=function(){Vj.d.m.call(this);this.ti&amp;&amp;this.v().e(this.Va,"start",w(this.gf,this)).e(this.Va,"drag",w(this.Il,this))};Vj.prototype.gf=function(){this.Kj=true};
Vj.prototype.Il=function(){Qj(this.a(),this.Va.Rc,this.Va.Sc)};function Xj(a,b){a.pe&amp;&amp;kj(a.pe,b);kj(a.a(),b)}Vj.prototype.r=function(){if(!this.yd){Vj.d.r.call(this);this.Va&amp;&amp;this.Va.r()}};function Yj(a,b){var c=null;if(qf.fa()){c=parseFloat(qf.K(a));if(isNaN(c)&amp;&amp;r(b))c=b}return c};function Z(a){Q.call(this);this.k=a;this.wa=this.Mf=this.Ri=false;this.jf=0;this.Tb=null;this.ja=0;Zj.push(this)}y(Z,Q);var Zj=[],$j=new L(480,360),bk=new L(400,300);o=Z.prototype;o.f=function(){this.q=this.g().createElement("span");K(this.a(),"unisubs-videoplayer");if(this.k&amp;&amp;this.k.Ra){var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;this.ga()}};o.wi=function(){if(this.wa)throw new Error("can't check if paused, loading is stopped");return this.xb()};o.xb=t;
o.gg=function(){if(this.wa)throw new Error("can't check if playing, loading is stopped");return this.Hb()};o.Hb=t;function ck(a){if(a.wa)throw new Error("can't check if video ended, loading is stopped");return a.Nb()}o=Z.prototype;o.Nb=t;o.Kb=function(a){if(this.wa)throw new Error("can't play, loading is stopped");a||this.dispatchEvent(dk);this.va()};o.va=t;o.pause=function(a){if(this.wa)throw new Error("can't pause, loading is stopped");a||this.dispatchEvent(ek);this.za()};o.za=t;
o.hf=function(){if(!this.wa){this.pause();this.jf=this.Wa();if(this.Sa())this.wa=true}};o.Sa=t;o.Xa=function(){t()};o.ga=function(){this.Mf=true;var a=this.ka();Jj(this.a(),a.width,a.height);this.dispatchEvent(fk)};
function gk(a){if(!a.Tb){a.Tb=new Vj(a.bd());var b;b=a.a();b=new dd(b.offsetLeft,b.offsetTop);var c=a.ka();b=new $d(b.x,b.y,c.width,c.height);c=a.Tb;if(b){c.Oc=b;c.Eh=Math.min(400,c.Oc.width-20);c.Dh=c.Oc.left+(c.Oc.width-c.Eh)/2;c.kk="BOTTOM_CENTER"}a.Tb.f();a.Nh(a.Tb);b=a.a().offsetParent||id(a.a()).body;a=a.Tb.a();b.appendChild(a)}}o=Z.prototype;o.Nh=e();o.Wa=function(){return this.wa?this.jf:this.qc()};o.qc=t;o.Vb=function(){this.dispatchEvent(hk)};
o.Pa=function(){if(this.Ri){if(!this.mi&amp;&amp;this.Wa()&gt;=this.Mn){this.mi=true;this.la(this.Dl);this.Dl=null;this.pause();this.Ri=this.mi=false}}else this.dispatchEvent(ik)};o.Z=t;o.Uc=t;o.Ja=function(a){qf.fa()&amp;&amp;qf.ca("lastestVolume",a)};o.la=function(){t()};
function jk(a,b){a.Tb||gk(a);a=a.Tb;var c=b;if(c==null||c=="")Xj(a,false);else{b=c=Hi=="n"?Wj(c,42):c.replace(/(\r\n|\r|\n)/g,"&lt;br&gt;");for(var d=0;d&lt;Rj.length;d++)b=b.replace(Rj[d][0],Rj[d][1]);c=b;a.a().innerHTML=c;b=a.a();var f=d=0,g=false;c=c.split(Ei);for(var h=0;h&lt;c.length;h++){var j=c[h];if(Ci.test(j)){d++;f++}else if(Di.test(j))g=true;else if(Bi.test(j))f++;else if(Fi.test(j))g=true}d=f==0?g?1:0:d/f&gt;0.4?-1:1;if(b&amp;&amp;(d=typeof d=="number"?d&gt;0?1:d&lt;0?-1:0:d?-1:1)!=0){b.style.textAlign=d==-1?"right":
"left";b.dir=d==-1?"rtl":"ltr"}if(!a.Kj){b=O(a.a());if(!(b.width==a.Oe.width&amp;&amp;b.height==a.Oe.height)){d=a.Oc.top+a.Oc.height-b.height-40;Qj(a.a(),a.Dh,d);if(a.Qi&amp;&amp;a.pe){re(a.pe,newLeft,d);ze(a.pe,b)}a.Oe.width=b.width;a.Oe.height=b.height}}Xj(a,true)}}Z.prototype.bd=m(false);Z.prototype.cg=m(true);Z.prototype.ka=t;
var dk="videoplaycalled",hk="videoplayended",ek="videopausecalled",ik="videotimeupdate",fk="dimensionsknown",kk={je:"videoplay",Zm:dk,$m:hk,ie:"videopause",Ym:ek,an:"videoprogress",bn:ik,Jm:fk};function lk(a){Z.call(this,a);this.sn=this.Nd=this.Ad=null;this.rn=0;this.zj=this.se=false;this.Ob="flash"}y(lk,Z);lk.prototype.F=function(a){this.se=true;var b=new L(0,0),c=new L(0,0);a=mk(this,a);if(a[0]){this.Nd=a[0];c=O(this.Nd)}if(a[1]){this.Ad=a[1];b=O(this.Ad)}lk.d.F.call(this,c.height&gt;b.height?this.Nd:this.Ad)};function nk(a){if(!(!a.se||a.zj))a.zj=ok(a,a.Nd)?true:ok(a,a.Ad)}lk.prototype.eg=t;lk.prototype.Jg=t;
function ok(a,b){if(r(b))if(a.eg(b)){a.Jg(b);return true}else return false;else return false}lk.prototype.Fi=function(){fj("log_youtube_ei_failure",{page_url:window.location.href})};function mk(a,b){var c=a=null;if(b.nodeName=="EMBED"){c=b;if(c.parentNode.nodeName=="OBJECT")a=c.parentNode}else{a=b;c=Hd(a,function(d){return d.nodeName=="EMBED"})}return[a,c]}o=lk.prototype;o.ze=t;o.f=function(){lk.d.f.call(this);var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;this.ga()};
o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width),parseInt(this.n.height)):null};o.Uc=function(){var a=null;if(this.se)a=[this.Nd,this.Ad];else{var b=this.ze();if(b)a=mk(this,b)}if(a){b=[];a[0]&amp;&amp;b.push(a[0]);a[1]&amp;&amp;b.push(a[1]);return b}else return[]};o.ka=function(){return O(this.a())};function pk(a,b){Z.call(this,a);this.ec=a;this.z=null;this.pg=this.Li=0;this.ai=b;this.cj=false;this.ij=new ri(this.sl,500,this);this.Dj=new ri(this.Pa,80,this);this.Dg=false}y(pk,Z);o=pk.prototype;
o.m=function(){pk.d.m.call(this);if(this.z){Yd(this.v().e(this.z,"play",this.ql).e(this.z,"pause",this.pl).e(this.z,"progress",this.rl).e(this.z,"loadedmetadata",this.ga).e(this.z,"timeupdate",this.hm).e(this.z,"ended",this.Vb),this.z,"click",this.dj);this.z.readyState&gt;=this.z.HAVE_METADATA&amp;&amp;this.ga();this.Ja(Yj("lastestVolume",1))}};o.dj=e();o.hm=function(){this.Dg&amp;&amp;si(this.Dj)};o.ql=function(){this.Dg=true;this.dispatchEvent("videoplay")};o.pl=function(){this.dispatchEvent("videopause")};
o.rl=function(a){if(a.na.loaded&amp;&amp;a.na.total){this.Li=a.na.loaded;this.pg=a.na.total;if(this.pg==-1)this.pg=this.Li}si(this.ij)};o.sl=function(){this.dispatchEvent("videoprogress")};o.Ja=function(a){this.z.volume=a;pk.d.Ja.call(this,a)};o.Z=function(){var a=this.z.duration;return isNaN(a)?0:a};o.xb=function(){return this.z.paused};o.Nb=function(){return this.z.ended};o.Hb=function(){var a=this.z.readyState,b=qk;return(a==b.Zj||a==b.Yj)&amp;&amp;!this.wi()&amp;&amp;!ck(this)};o.va=function(){this.z.play()};o.za=function(){this.z.pause()};
o.Xa=function(a){this.z.src=this.ec.ea();this.wa=false;this.la(a);this.pause()};o.qc=function(){return this.z.currentTime};o.la=function(a){try{this.z.currentTime=a+1.0E-6}catch(b){}};o.ka=function(){return O(this.z)};o.Uc=function(){return[this.z]};o.i=function(){pk.d.i.call(this);this.ij.r();this.Dj.r()};var qk={Om:0,Nm:1,Mm:2,Zj:3,Yj:4};function rk(a,b){pk.call(this,a,b);this.Ob="html5"}y(rk,pk);o=rk.prototype;
o.f=function(){var a=w(this.g().f,this.g());if(Sj(this.ec.qd)){var b={preload:"auto",autobuffer:"true"};if(!this.ai){if(this.ec.da()){var c=this.ec.da();if(c.play_to_click){this.cj=true;sc(c,"play_to_click")}xc(b,c)}b.controls="true"}this.q=this.z=a("video",b,a("source",{src:this.ec.ea()}));if(this.ai)Jj(this.z,bk);else(a=this.ec.da())&amp;&amp;a.width&amp;&amp;a.height&amp;&amp;Jj(this.z,a.width,a.height)}else{this.q=a=a("div");Jj(a,400,300);Hj(a,"line-height","300px");a.innerHTML="Sorry, your browser can't play HTML5/"+
this.ec.qd+" video. &lt;a href='http://getfirefox.com'&gt;Get Firefox&lt;/a&gt;."}};o.F=function(a){rk.d.F.call(this,a);if(a.nodeName!="VIDEO")throw Error("Invalid element to decorate");this.z=a};o.dj=function(a){if(this.cj&amp;&amp;!this.Dg){a.preventDefault();this.Kb()}};o.Sa=function(){this.z.src="http://holmeswilson.org/tinyblank.ogv";return true};o.ka=function(){return O(this.z)};function sk(a,b){pk.call(this,a);this.Na=a.Na;this.p=!!b}y(sk,pk);sk.prototype.f=function(){var a=w(this.g().f,this.g()),b={autobuffer:"true"};this.p||(b.controls="true");this.z=a("audio",b,a("source",{src:this.ec.ea()}));this.q=a=a("div","unisubs-audio-player",this.z);if(this.Na&amp;&amp;this.Na.width&amp;&amp;this.Na.height){b=new L(parseInt(this.Na.width,0),parseInt(this.Na.height,0));Jj(a,b);Jj(this.z,b)}else{Jj(a,this.p?bk:$j);Jj(this.z,this.p?bk:$j)}};sk.prototype.Sa=function(){this.z.src="";return true};
sk.prototype.ka=function(){return O(this.a())};function tk(a,b){lk.call(this,a);this.k=a;this.Oa=[a.qa,""+(new Date).getTime()].join("");this.J=a.qa+"_ytplayer";this.kb="event"+a.qa;this.p=!!b;uk.push(this);this.c=this.h=null;this.Rd=false;this.j=[];this.ma=false;this.D=new I(500);this.t=new I(80);a=tk.prototype;b=vk.prototype;for(var c in b)a[c]=b[c];this.Ob="youtube"}y(tk,lk);var uk=[],wk=new og;tk.prototype.eg=function(a){return this.Rd?a.playVideo:false};function xk(a,b){return(a=window.unisubs_readyAPIIDs)&amp;&amp;E(a,b)}o=tk.prototype;
o.F=function(a){tk.d.F.call(this,a);this.ma=true;this.Oa=(a=/playerapiid=([^&amp;]+)/.exec(zj(a)))?a[1]:"";if(wk.contains(this.Oa)||xk(this,this.Oa))yk(this,this.Oa);this.h=O(this.a());this.ga()};o.Jg=function(a){this.c=a;window[this.kb]=w(this.zc,this);this.c.addEventListener("onStateChange",this.kb)};o.f=function(){tk.d.f.call(this);var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;this.ga()};
o.m=function(){tk.d.m.call(this);if(!this.ma){this.ma=true;var a=this.g().f("span");a.id=Y();this.a().appendChild(a);var b={id:this.J,style:Nj("",this.h)},c;c=this.p?new W("http://www.youtube.com/apiplayer"):new W("http://www.youtube.com/v/"+this.k.Kc);this.td(c);window.swfobject.embedSWF(c.toString(),a.id,this.h.width+"",this.h.height+"","8",null,null,{allowScriptAccess:"always",wmode:"opaque",allowFullScreen:"true"},b)}this.v().e(this.D,J,this.yb).e(this.t,J,this.Za);this.D.start()};
o.td=function(a){var b=this.k.da();if(!this.p&amp;&amp;b)for(var c in b)c!="width"&amp;&amp;c!="height"&amp;&amp;X(a,c,b[c]);X(X(X(a,"enablejsapi","1"),"version","3"),"playerapiid",this.Oa);this.p&amp;&amp;X(a,"disablekb","1")};o.N=function(){tk.d.N.call(this);this.D.stop();this.t.stop()};function yk(a,b){if(b==a.Oa){a.Rd=true;if(a.se)nk(a);else{a.c=jd(a.J);Jj(a.c,a.h);a.p&amp;&amp;a.c.cueVideoById(a.k.Kc);C(a.j,function(c){c()});a.j=[];window[a.kb]=w(a.zc,a);a.c.addEventListener("onStateChange",a.kb)}}}tk.prototype.bd=function(){return Ra};
tk.prototype.i=function(){tk.d.i.call(this);this.D.r();this.t.r()};tk.prototype.ze=function(){return jd(this.J)};var zk={fk:-1,fe:0,jc:1,Mc:2,Gm:3,gk:5};function Ak(a){if(!r(a)||a=="undefined")a="";if(!wk.contains(a)){wk.add(a);C(uk,function(b){yk(b,a)})}}(function(){var a=window.onYouTubePlayerReady||s;window.onYouTubePlayerReady=function(b){try{a(b)}catch(c){}Ak(b)}})();function Bk(a,b){Z.call(this,a);this.c=null;this.k=a;this.J=Y()+"_ytplayer";this.p=!!b;this.j=[];this.D=new I(500);this.t=new I(80);a=Bk.prototype;b=vk.prototype;for(var c in b)a[c]=b[c];this.Ob="ytiframe"}y(Bk,Z);o=Bk.prototype;o.f=function(){Bk.d.f.call(this);this.Kg();var a=new W("http://youtube.com/embed/"+this.k.Kc);this.td(a);this.q=this.Fd=this.g().f("iframe",{id:this.J,type:"text/html",width:this.h.width+"",height:this.h.height+"",src:a.toString(),frameborder:"0",style:Nj("",this.h)})};
o.td=function(a){var b=this.k.da();if(!this.p&amp;&amp;b)for(var c in b)c!="width"&amp;&amp;c!="height"&amp;&amp;X(a,c,b[c]);b=new W(window.location);b=window.location.protocol+"//"+b.Ha+(b.eb!=null?":"+b.eb:"");X(X(X(a,"enablejsapi","1"),"origin",b),"wmode","opaque");this.p&amp;&amp;X(X(a,"disablekb","1"),"controls","0")};o.Kg=function(){var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;this.ga()};
o.F=function(a){Bk.d.F.call(this,a);this.Fd=a;if(a.id)this.J=a.id;else a.id=this.J;this.h=new L(parseInt(a.width),parseInt(a.height));this.ga()};o.m=function(){Bk.d.m.call(this);var a=window;if(a.YT&amp;&amp;a.YT.Player)this.Md();else{var b=s;if(a.onYouTubePlayerAPIReady)b=a.onYouTubePlayerAPIReady;var c=w(this.Md,this);window.onYouTubePlayerAPIReady=function(){b();c()};tj("http://www.youtube.com/player_api")}};
o.Md=function(){var a=w(this.zc,this);this.wh=new window.YT.Player(this.J,{events:{onReady:w(this.Rd,this),onStateChange:function(b){a(b.data)}}})};o.Rd=function(){this.c=this.wh;C(this.j,function(a){a()});this.j=[];this.v().e(this.D,J,this.yb).e(this.t,J,this.Za);this.D.start()};o.Uc=function(){return[this.Fd]};o.i=function(){Bk.d.i.call(this);this.D.r();this.t.r()};o.N=function(){Bk.d.N.call(this);this.D.stop();this.t.stop()};function vk(){}o=vk.prototype;o.yb=function(){this.Z()&gt;0&amp;&amp;this.dispatchEvent("videoprogress")};o.Za=function(){this.Z()&gt;0&amp;&amp;this.Pa()};o.zc=function(a){if(a==zk.jc){this.dispatchEvent(kk.je);this.t.start();this.Cg=false}else if(a==zk.Mc){this.dispatchEvent(kk.ie);this.t.stop()}else a==zk.fe&amp;&amp;this.Vb()};o.Z=function(){if(!this.ja){this.ja=this.c&amp;&amp;this.c.getDuration?this.c.getDuration():0;if(this.ja&lt;=0)this.ja=0}return this.ja};
o.Ja=function(a){this.c?this.c.setVolume(a*100):this.j.push(w(this.Ja,this,a))};o.xb=function(){return this.Yb()==2};o.Nb=function(){return this.Yb()==0};o.Hb=function(){return this.Yb()==1};o.va=function(){this.c?this.c.playVideo():this.j.push(w(this.va,this))};o.za=function(){if(this.c){this.Cg=true;this.Bg=null;this.c.pauseVideo()}else this.j.push(w(this.za,this))};o.Sa=function(){if(this.c){this.c.stopVideo();return this.wa=true}else{this.j.push(w(this.Sa,this));return false}};
o.Xa=function(a){if(this.c){this.c.cueVideoById(this.k.Kc,a);this.wa=false}else this.j.push(w(this.Xa,this,a))};o.Wa=function(){return this.c?this.Cg&amp;&amp;this.Bg!==null?this.Bg:this.c.getCurrentTime():0};o.la=function(a,b){if(this.c){this.c.seekTo(a,true);if(!b){if(this.Cg)this.Bg=a;this.Pa()}}else this.j.push(w(this.la,this,a))};o.Yb=function(){return this.c?this.c.getPlayerState():-1};o.ka=k("h");function Ck(a){lk.call(this,a);this.Pg="jwevent"+Y();this.Sg="jwtime"+Y();this.Sd=0;Dk.push(this);this.Ob="jw"}y(Ck,lk);var Dk=[],Ek=false;function Fk(a){nk(a)}o=Ck.prototype;o.F=function(a){Ck.d.F.call(this,a);this.h=O(this.a());this.ga();Ek&amp;&amp;Fk(this)};o.eg=function(a){return a.addModelListener};o.Jg=function(a){this.c=a;this.h=O(this.c);this.ga();window[this.Pg]=w(this.Yl,this);window[this.Sg]=w(this.Zl,this);this.c.addModelListener("STATE",this.Pg);this.c.addModelListener("TIME",this.Sg)};
o.ka=k("h");o.Yl=function(a){a=a.newstate;var b=Gk;if(a==b.jc)this.dispatchEvent(kk.je);else if(a==b.Mc)this.dispatchEvent(kk.ie);else a==b.Vj&amp;&amp;this.Vb()};o.Zl=function(a){this.Sd=a.position;if(!this.ja)this.ja=a.duration;this.dispatchEvent(ik)};o.N=function(){Ck.d.N.call(this);this.c.removeModelListener("STATE",this.Pg);this.c.removeModelListener("TIME",this.Sg)};o.Z=k("ja");o.xb=e();o.Nb=e();o.xb=e();o.va=function(){this.c.sendEvent.apply(this.c,Bb("play",["true"]))};
o.za=function(){this.c.sendEvent.apply(this.c,Bb("play",["false"]))};o.Sa=function(){this.pause()};o.Xa=e();o.Wa=k("Sd");o.bd=function(){return Ra};o.ze=k("c");o.Hb=function(){return this.c.getConfig().state==Gk.jc};var Gk={jc:"PLAYING",Mc:"PAUSED",Vj:"COMPLETED"};(function(){var a=window.playerReady||s;window.playerReady=function(b){try{a(b)}catch(c){}Ek=true;C(Dk,function(d){nk(d)})}})();function Hk(a,b){Z.call(this,a);this.p=!!b;this.k=a;this.Aa=this.ma=false;this.c=this.h=null;this.j=[];this.D=new I(500);this.t=new I(80);this.Ob="flv"}y(Hk,Z);Hk.prototype.f=function(){Hk.d.f.call(this);var a=this.kd();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j};
Hk.prototype.m=function(){Hk.d.m.call(this);if(!this.ma){this.ma=true;var a=this.g().f("div");a.id=Y();this.Ak=a.id;this.a().appendChild(a);this.ga();var b={src:Si()+"flowplayer/flowplayer-3.2.7.swf",width:this.h.width+"",height:this.h.height+"",wmode:"opaque"},c=this,d={playlist:[{url:this.k.xe(),autoPlay:false}],onLoad:function(){Ik(c)}};Jk(this,d);this.c=$f(a.id,b,d)}this.v().e(this.D,J,this.yb).e(this.t,J,this.Za);this.D.start()};
function Jk(a,b){var c;if(a.p)c={controls:null};else if(a=a.k.da())c=pc(a,function(d,f){return f!="width"&amp;&amp;f!="height"});if(c)b.plugins=c}Hk.prototype.kd=function(){var a=this.k.da();return a&amp;&amp;a.width&amp;&amp;a.height?new L(parseInt(a.width),parseInt(a.height)):null};Hk.prototype.N=function(){Hk.d.N.call(this);this.t.stop();this.D.stop()};
function Ik(a){Jj(Cd(a.c.getParent()),a.h);Jj(jd(a.Ak),a.h);a.Aa=true;C(a.j,function(b){b()});a.j=[];Kk(a).onStart(function(){a.Od()});Kk(a).onBegin(function(){a.Od()});Kk(a).onResume(function(){a.Od()});Kk(a).onPause(function(){a.dispatchEvent("videopause");a.t.stop()});Kk(a).onFinish(function(){a.Vb()})}Hk.prototype.yb=function(){if(this.Z()&gt;0){this.rm=this.c.getStatus();this.rm.bufferEnd&gt;=this.Z()-0.1&amp;&amp;this.D.stop();this.dispatchEvent("videoprogress")}};Hk.prototype.Za=function(){this.Z()&gt;0&amp;&amp;this.Pa()};
Hk.prototype.Od=function(){this.dispatchEvent("videoplay");this.t.start()};function Kk(a){return a.c.getClip(0)}o=Hk.prototype;o.Z=function(){if(!this.ja){this.ja=this.Aa?Kk(this).fullDuration:0;if(isNaN(this.ja))this.ja=0}return this.ja};o.Ja=function(a){this.Aa?this.c.setVolume(a*100):this.j.push(w(this.lm,this,a))};o.xb=function(){return this.Aa?this.c.isPaused():false};o.Nb=function(){return this.Aa?this.c.getState()==5:false};o.Hb=function(){return this.Aa?this.c.isPlaying():false};
o.va=function(){if(this.Aa)this.gg()||this.c.play();else this.j.push(w(this.va,this))};o.za=function(){this.Aa?this.c.pause():this.j.push(w(this.za,this))};o.Sa=function(){if(this.Aa){this.c.stopBuffering();return this.wa=true}else{this.j.push(w(this.Sa,this));return false}};o.Xa=function(a){if(this.Aa){this.c.startBuffering();this.wa=false}else this.j.push(w(this.Xa,this,a))};o.qc=function(){return this.Aa?this.c.getTime():0};
o.la=function(a,b){if(this.Aa){this.c.seek(a);b||this.Pa()}else this.j.push(w(this.la,this,a))};o.bd=function(){return Ra};o.ka=k("h");o.i=function(){Hk.d.i.call(this);this.D.r();this.t.r()};function Lk(a,b){Hk.call(this,a,b);this.Na=a.Na;this.p=!!b}y(Lk,Hk);Lk.prototype.f=function(){Lk.d.f.call(this);this.h=this.Na&amp;&amp;this.Na.width&amp;&amp;this.Na.height?new L(parseInt(this.Na.width,0),parseInt(this.Na.height,0)):this.p?bk:$j};Lk.prototype.Z=m(1E4);var Mk=[];function Nk(a){if(tb(Mk,a)&gt;-1)return false;Mk.push(a);return true};function Ok(a,b){this.yl=a;this.Na=b}o=Ok.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){var b=document.createElement("audio");return b.canPlayType&amp;&amp;b.canPlayType("audio/mpeg").replace(/no/,"")?new sk(this,a):new Lk(this,a)};o.ea=k("yl");o.xe=function(){return this.ea()};o.da=m(null);Nk(function(a,b){if(/\.mp3$/i.test(a))return/\.mp3$/i.test(a)?new Ok(a,b):null;return null});function Qk(a,b,c){this.S=a;this.qd=b;this.n=c;this.ud=[]}function Rk(a,b){var c=a.indexOf("?");if(c&gt;-1)a=a.substring(0,c);c=null;if(/\.ogv$|\.ogg$/i.test(a))c="Ogg";else if(/\.mp4$|\.m4v$/i.test(a))c="H264";else if(/\.webm$/i.test(a))c="WebM";return c!=null?new Qk(a,c,b):null}o=Qk.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};
o.U=function(a){if(this.qd=="H264"&amp;&amp;!Tj())return new Hk(this,a);else{var b=new Qk(this.S,this.qd,this.n);b.ud=this.ud;return new rk(b,a)}};o.xe=function(){if(this.qd!="H264")throw new Error;return this.S};o.ea=k("S");o.da=k("n");function Sk(a){return a.ud?D(a.ud,function(b){return b.ea()}):[]}Nk(function(a,b){a=Rk(a,b);if(a!=null)return a;return null});function Tk(a,b){this.Kc=a;this.qa=Y();this.n=b}function Uk(a){return(a=/(?:v[\/=]|embed\/|youtu\.be\/)([0-9a-zA-Z\-\_]+)/i.exec(a))?a[1]:null}function Vk(a,b){return(a=Uk(a))?new Tk(a,b):null}function Wk(a){return/^\s*https?:\/\/([^\.]+\.)?youtu\.?be/i.test(a)}o=Tk.prototype;o.jb=function(){return this.Kf(false)};o.Ab=function(){return new Pk(this.Kf(true))};o.Kf=function(a){return new tk(new Tk(this.Kc,this.n),a)};o.da=k("n");
o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width,0),parseInt(this.n.height,0)):null};o.ea=function(){return"http://www.youtube.com/watch?v="+this.Kc};Nk(function(a,b){if(Wk(a)){var c=null;c=window.swfobject.hasFlashPlayerVersion("9")?Vk(a,b):Xk(a,b);if(c!=null)return c}return null});function Yk(a,b){Tk.call(this,a,b)}y(Yk,Tk);Yk.prototype.Kf=function(a){return new Bk(new Yk(this.Kc,this.da()),a)};function Xk(a,b){return(a=Uk(a))?new Yk(a,b):null};function Zk(a,b,c,d){this.ej=a;this.u=c;this.fj=b;this.qa=Y();this.n=d}function $k(a){a=(new W(a)).Ha;return va("brightcove.com",a.substr(a.length-14,14))==0}o=Zk.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){return new al(new Zk(this.ej,this.fj,this.u,this.n),a)};o.da=k("n");o.ea=function(){return this.n.url};o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width,0),parseInt(this.n.height,0)):null};
o.toString=function(){return"BrightcoveVideoSource "+this.u};Nk(function(a){if($k(a)){a:{var b=undefined;if($k(a)){var c=new W(a),d=c.ba.K("bckey");c=c.ba.K("bctid");var f;try{f=/bcpid([\d])+/.exec(a)[0].substring(5)}catch(g){}b||(b={});b.uri=a;if(f){a=new Zk(f,d,c,b);break a}}a=null}return a}return null});function al(a,b){Z.call(this,a);this.k=a;this.Oa=[a.qa];this.J=a.qa+"_bcplayer";this.kb="event"+a.qa;this.p=!!b;this.V=bl;var c=w(this.Gl,this);if(window.onTemplateLoaded){var d=window.onTemplateLoaded;window.onTemplateLoaded=function(f){d(f);c(f)}}else window.onTemplateLoaded=c;this.c=this.h=null;this.j=[];this.ma=false;this.D=new I(500);this.t=new I(80)}y(al,Z);
al.prototype.F=function(a){al.d.F.call(this,a);this.ma=true;this.c=a;this.h=O(a);this.ga();window[this.kb]=w(this.zc,this);var b=new I(250),c=this,d=0;this.v().e(b,J,function(){d++;d==20&amp;&amp;c.Fi();if(c.c.play){b.stop();c.c.addEventListener("onStateChange",c.kb)}});b.start()};al.prototype.Fi=function(){fj("log_brightCove_ei_failure",{page_url:window.location.href})};al.prototype.f=function(){al.d.f.call(this);var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j};
al.prototype.m=function(){al.d.m.call(this);if(!this.ma){if(typeof window.brightcove==="undefined"&amp;&amp;typeof window.unisubs.brightcoveLoading==="undefined"){window.unisubs.brightcoveLoading=true;var a=document.createElement("script");a.type="text/javascript";a.src="http://admin.brightcove.com/js/BrightcoveExperiences_all.js";document.body.appendChild(a)}this.ma=true;a=this.g().f("div");var b=this.k.da(),c={};for(var d in b)c[d]=b[d];c.playerID=this.k.ej;c.playerKey=this.k.fj;d=this.k.Ra();this.h=!this.p&amp;&amp;
d?d:this.p?bk:$j;c.videoID=this.k.u;c.width=this.h.width;c.height=this.h.height;c.uuid=this.J;d=' &lt;object id="{{uuid}}" class="BrightcoveExperience"&gt; &lt;param name="bgcolor" value="#FFFFFF" /&gt; &lt;param name="width" value="{{width}}" /&gt; &lt;param name="height" value="{{height}}" /&gt;&lt;param name="playerID" value="{{playerID}}" /&gt;&lt;param name="playerKey" value="{{playerKey}}" /&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;param name="isVid" value="true" /&gt;&lt;param name="dynamicStreaming" value="true" /&gt;&lt;param name="@videoPlayer" value="{{videoID}}" /&gt;&lt;/object&gt;';
for(var f in c)d=d.replace("{{"+f+"}}",c[f]);a.innerHTML=d;a.id=Y();this.a().appendChild(a);cl(this)}this.v().e(this.D,J,this.yb).e(this.t,J,this.Za);this.D.start()};function cl(a){typeof window.brightcove=="undefined"?setTimeout(function(){cl(a)},500):window.brightcove.createExperiences()}o=al.prototype;o.kd=function(){var a=this.k.da();return a&amp;&amp;a.width&amp;&amp;a.height?new L(parseInt(a.width),parseInt(a.height)):null};o.N=function(){al.d.N.call(this);this.D.stop();this.t.stop()};
o.yb=function(){this.Z()&gt;0&amp;&amp;this.dispatchEvent("videoprogress")};o.Za=function(){this.Wa()&gt;0&amp;&amp;this.Pa()};o.Gl=function(a){if(a==this.J){this.ga();this.c=jd(this.J);this.Cf=window.brightcove.getExperience(this.J);this.Cf.getModule("experience").addEventListener("templateReady",w(this.Ui,this));Jj(this.c,this.h);C(this.j,function(b){b()});this.j=[]}};
o.Ui=function(){this.Cf.getModule("experience").removeEventListener("templateReady",w(this.Ui,this));this.P=this.Cf.getModule("videoPlayer");this.P.addEventListener("mediaPlay",w(this.Ml,this));this.P.addEventListener("mediaStop",w(this.Ll,this));this.V=dl};o.Ml=function(){this.dispatchEvent("videoplay");this.t.start();this.V=el};function fl(a){return a.P.getVideoDuration()-a.P.getVideoPosition()&lt;0.1}al.prototype.Ll=function(){this.dispatchEvent("videopause");this.V=gl;this.t.stop();fl(this)&amp;&amp;hl(this)};
function hl(a){a.V=il;a.Vb()}o=al.prototype;o.Z=function(){if(!this.ja&amp;&amp;this.P){this.ja=this.P.getVideoDuration();if(this.ja&lt;=0)this.ja=0}return this.ja};o.Ja=function(a){this.P?this.P.setVolume(a*100):this.j.push(w(this.lm,this,a))};o.xb=function(){return this.P&amp;&amp;!this.P.isPlaying()};o.Nb=function(){return fl(this)};o.Hb=function(){return this.P&amp;&amp;this.P.isPlaying()};o.va=function(){this.P?this.P.play():this.j.push(w(this.va,this))};o.za=function(){this.P?this.P.pause():this.j.push(w(this.za,this))};
o.Sa=function(){if(this.P){this.P.stop();return this.wa=true}else{this.j.push(w(this.Sa,this));return false}};o.Xa=function(a){if(this.P){this.P.cueVideoById(this.k.zn(),a);this.wa=false}else this.j.push(w(this.Xa,this,a))};o.Wa=function(){return this.P?this.P.getVideoPosition():0};o.la=function(a){if(this.P){this.P.seek(a);this.Pa()}else this.j.push(w(this.la,this,a))};o.Yb=k("V");o.bd=function(){return Ra};o.cg=m(false);o.ka=k("h");o.i=function(){al.d.i.call(this);this.D.r();this.t.r()};o.ze=k("c");
o.toString=m("BrightcoveVideoPlayer");var bl=-1,il=0,el=1,gl=2,dl=3;function jl(a,b){this.Dk=a;this.n=b}o=jl.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){return new Hk(this,a)};o.xe=k("Dk");o.ea=function(){return this.xe()};o.da=k("n");o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width),parseInt(this.n.height)):null};Nk(function(a,b){if(/\.flv$|\.mov$/i.test(a))return new jl(a,b);return null});function kl(a,b){Z.call(this,a);this.k=a;this.p=!!b;this.c=null;this.Oa=[a.qa,""+(new Date).getTime()].join("");this.J=a.qa+"_bliptvplayer";this.j=[];this.c=this.h=null;this.Nj=0.5;this.Lh=0;this.ma=this.xn=false;this.tn=null;this.bc=false;this.Ob="bliptv"}y(kl,Z);o=kl.prototype;o.f=function(){this.q=this.g().createElement("span");K(this.a(),"unisubs-videoplayer");var a=this.kd();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j};
o.m=function(){kl.d.m.call(this);if(!this.ma){var a=this;(new Lh(this.k.S+"?skin=json")).send({},function(b){b=b[0].Post;a.ja=parseInt(b.media.duration);var c=b.embedUrl;if(!a.ma){a.ma=true;b=a.g().f("div");b.id=Y();a.a().appendChild(b);var d={id:a.J,style:Nj("",a.h)};c=c+"?chromeless="+(a.p?"true":"false")+"&amp;captionson=false&amp;backcolor=#00000";var f=w(a.Aj,a);window.swfobject.embedSWF(c,b.id,a.h.width+"",a.h.height+"","8",null,null,{allowScriptAccess:"always",enablejs:"true",wmode:"opaque"},d,f)}})}};
o.xb=function(){return!this.bc};o.Hb=k("bc");o.Nb=k("Bk");o.va=function(){this.c?this.c.sendEvent("play"):this.j.push(w(this.va,this))};o.za=function(){this.c?this.c.sendEvent("pause"):this.j.push(w(this.za,this))};o.Sa=function(){this.pause()};o.Xa=function(){this.Kb()};o.qc=k("Lh");o.la=function(a){if(this.c){this.c.sendEvent("seek",a);this.Pa()}else this.j.push(w(this.la,this,a))};o.Z=k("ja");o.Ja=function(a){if(this.c){this.c.sendEvent("volume",a);this.Nj=a}else this.j.push(w(this.Ja,this))};
o.ka=k("h");
o.Aj=function(){this.c=jd(this.J);if(this.c.addJScallback){this.Aa=true;C(this.j,function(d){d()});this.j=[];var a=this,b=Y(),c="onPlayerState"+b;window[c]=function(d){switch(d){case "playing":a.bc=true;a.dispatchEvent(kk.je);break;case "paused":a.bc=false;a.dispatchEvent(kk.ie);break}};this.c.addJScallback("player_state_change","window."+c);c="onCurrentTimeCha"+b;window[c]=function(d){a.Lh=d;a.Pa()};this.c.addJScallback("current_time_change","window."+c);b="onVideoEnde"+b;window[b]=function(){a.Bk=true;
a.Vb()};this.c.addJScallback("complete","window."+b);this.c.sendEvent("volume",this.Nj)}else{this.Sb=w(this.Aj,this);setTimeout(this.Sb,500)}};o.kd=function(){var a=this.k.da();return a&amp;&amp;a.width&amp;&amp;a.height?new L(parseInt(a.width),parseInt(a.height)):null};function ll(a,b,c){this.u=a;this.S=b;this.qa=Y();this.n=c}o=ll.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){return new kl(new ll(this.u,this.S,this.n),a)};o.da=k("n");o.ea=k("S");Nk(function(a,b){if(/^\s*https?:\/\/([^\.]+\.)?blip\.tv/.test(a))return new ll("",a,b);return null});function Pk(a){Q.call(this);this.w=a;this.If=null}y(Pk,Q);Pk.prototype.f=function(){Pk.d.f.call(this);this.zb(this.w,true);if(this.w.cg()){this.If=new Gi.pn.kn(this.w);this.zb(this.If,true)}else this.If=e()};function ml(a,b,c){this.u=a;this.S=b;this.qa=Y();this.n=c}o=ml.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){return new nl(new ml(this.u,this.S,this.n),a)};o.da=k("n");o.ea=k("S");Nk(function(a,b){if(/^\s*https?:\/\/([^\.]+\.)?vimeo/.test(a)){var c=/vimeo.com\/([0-9]+)/i.exec(a);if(c)return new ml(c[1],a,b)}return null});function nl(a,b){Z.call(this,a);this.k=a;this.p=!!b;this.c=null;this.Oa=[a.qa,""+(new Date).getTime()].join("");this.J=a.qa+"_vimeoplayer";this.kb="event"+a.qa;this.nl=0;var c=w(this.Ql,this);if(window.vimeo_player_loaded){var d=window.vimeo_player_loaded;window.vimeo_player_loaded=function(f){d(f);c(f)}}else window.vimeo_player_loaded=c;this.c=this.h=null;this.j=[];this.ma=false;this.t=new I(80);this.Ob="vimeo"}y(nl,Z);
nl.prototype.f=function(){nl.d.f.call(this);var a=this.kd();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j};nl.prototype.m=function(){nl.d.m.call(this);if(!this.ma){this.ma=true;var a=this.g().f("span");a.id=Y();this.a().appendChild(a);var b={id:this.J,style:Nj("",this.h)};this.ga();ol(this);window.swfobject.embedSWF(ol(this),a.id,this.h.width+"",this.h.height+"","8",null,null,{allowScriptAccess:"always",wmode:"opaque",allowfullscreen:"true"},b)}this.v().e(this.t,J,this.Za)};
function ol(a){var b={},c=a.k.da();if(!a.p&amp;&amp;c)b=c;xc(b,{js_api:"1",width:a.h.width,height:a.h.height,clip_id:a.k.u,js_swf_id:a.Oa});b=b;a=je(b);if(typeof a=="undefined")throw Error("Keys are undefined");b=ie(b);if(a.length!=b.length)throw Error("Mismatched lengths for keys/values");c=new uh(null,undefined,undefined);for(var d=0;d&lt;a.length;d++)c.add(a[d],b[d]);return"http://vimeo.com/moogaloop.swf?"+c.toString()}o=nl.prototype;o.N=function(){nl.d.N.call(this);this.t.stop()};
o.kd=function(){var a=this.k.da();return a&amp;&amp;a.width&amp;&amp;a.height?new L(parseInt(a.width),parseInt(a.height)):null};o.qc=function(){return this.Aa?this.c.api_getCurrentTime():0};o.Za=function(){this.Z()&gt;0&amp;&amp;this.Pa()};o.Z=function(){if(this.c&amp;&amp;this.c.api_getDuration)return this.c.api_getDuration();return 0};o.Ja=function(a){this.c?this.c.api_setVolume(a*100):this.j.push(w(this.Ja,this,a))};
o.la=function(a){if(this.c){this.c.api_seekTo(a);this.Pa();if(a===0){this.c.api_seekTo(1);this.Kb();this.pause();this.Kb()}}else this.j.push(w(this.la,this,a))};o.ka=function(){return new L(nl.ln,nl.Pm)};o.xb=function(){return!this.bc};o.Hb=k("bc");o.Nb=function(){return this.Wa()==this.Z()};o.va=function(){this.Aa?this.c.api_play():this.j.push(w(this.va,this))};o.za=function(){this.Aa?this.c.api_pause():this.j.push(w(this.za,this))};o.Sa=function(){this.pause()};o.Xa=function(){this.Kb()};
o.Ql=function(a){if(a==this.Oa){this.c=jd(this.J);this.Aa=true;C(this.j,function(d){d()});this.j=[];var b=this;a=Y();var c="onVimeoLoa"+a;window[c]=function(d){b.nl=d;b.dispatchEvent("videoprogress")};this.c.api_addEventListener("onLoading",c);c="onVimeoFin"+a;window[c]=function(){b.Vb()};this.c.api_addEventListener("onFinish",c);c="onVimeoPla"+a;window[c]=function(){b.bc=true;b.t.start()};this.c.api_addEventListener("onPlay",c);c="onVimeoPau"+a;window[c]=function(){b.bc=false;b.t.stop()};this.c.api_addEventListener("onPause",
c);a="onVimeoSeek"+a;window[a]=e();this.c.api_addEventListener("seek",a)}};o.ka=k("h");o.i=function(){nl.d.i.call(this);this.t.r()};function pl(a,b,c){this.u=a;this.S=b;this.qa=Y();this.n=c}o=pl.prototype;o.jb=function(){return this.U(false,false)};o.Ab=function(){return new Pk(this.U(true,true))};o.U=function(a,b){return new ql(new pl(this.u,this.S,this.n),a,b)};o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width),parseInt(this.n.height)):null};o.ea=k("S");
Nk(function(a,b){if(/^\s*https?:\/\/([^\.]+\.)?dailymotion/.test(a)){var c=/dailymotion.com\/video\/([0-9a-z]+)/i.exec(a);if(c)return new pl(c[1],a,b)}return null});function rl(a,b,c){this.u=a;this.S=b;this.qa=Y();this.n=c}o=rl.prototype;o.jb=function(){return this.U(false)};o.Ab=function(){return new Pk(this.U(true))};o.U=function(a){return new sl(new rl(this.u,this.S,this.n),a)};o.Ra=function(){return this.n&amp;&amp;this.n.width&amp;&amp;this.n.height?new L(parseInt(this.n.width,0),parseInt(this.n.height,0)):null};o.da=k("n");o.ea=k("S");
Nk(function(a,b){if(/^\s*https?:\/\/([^\.]+\.)?wistia/.test(a)){var c=/([wistia.com|wistia.net])\/(medias|embed\/iframe)?\/([0-9,A-Z,a-z]+)/i.exec(a);if(c)return new rl(c.pop(),a,b)}return null});function sl(a,b){Z.call(this,a);this.c=null;this.k=a;this.J=Y()+"_wistiaplayer";this.p=!!b;this.j=[];this.D=new I(500);this.t=new I(80);this.Ob="wistia";this.Ln=this.c=null}y(sl,Z);sl.prototype.cg=m(true);sl.prototype.ga=function(){this.Mf=true;var a=this.ka();Jj(this.a(),a.width,a.height);this.dispatchEvent(fk)};sl.prototype.ka=k("h");sl.prototype.Z=function(){return this.c.duration()};function tl(){return window.Wistia&amp;&amp;window.Wistia.embed}
function ul(a,b,c){a.c=window.Wistia.embed(b,{playerColor:"ff0000",fullscreenButton:false,container:c,autoplay:false,chromeless:a.p,controlsVisibleOnLoad:!a.p,doNotTrack:true,playButton:!a.p,playBar:!a.p,videoFoam:false});(b=nd("unisubs-play-beginner"))&amp;&amp;G(b,"click",w(a.va,a));b=w(a.bj,a);(c=nd("unisubs-playPause"))&amp;&amp;G(c,"click",b);a.c.bind("timechange",function(d){a.Qn=d*1E3;a.dispatchEvent(ik)});a.c.play()&amp;&amp;a.c.pause()}o=sl.prototype;o.bj=function(){this.c||this.j.push(w(this,this.bj))};
o.f=function(){sl.d.f.call(this);this.Kg();this.td(new W("http://fast.wistia.com/embed/iframe/"+this.k.u));var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;this.ga();div_args={id:this.J,"data-video-width":this.h.width+"","data-video-height":this.h.height+"",style:Nj("",this.h)};a=this.g().f("div",div_args);this.a().appendChild(a);var b=this;tj("http://fast.wistia.com/static/E-v1.js",true,tl,function(){ul(b,b.k.u,b.J)})};o.la=function(a){this.c?this.c.time(a):this.j.push(w(this.la,this,a))};
o.za=function(){if(this.c){this.c.pause();this.Vl=true;this.t.stop();this.dispatchEvent("videopause")}else this.j.push(w(this.za,this))};o.va=function(){if(this.c){this.c.play();this.Vl=false;this.t.start();this.dispatchEvent("videoplay")}else this.j.push(w(this.va,this))};o.yb=function(){this.Z()&gt;0&amp;&amp;this.dispatchEvent("videoprogress")};
o.td=function(a){var b=this.k.da();if(!this.p&amp;&amp;b)for(var c in b)c!="width"&amp;&amp;c!="height"&amp;&amp;X(a,c,b[c]);b=new W(window.location);X(X(X(X(X(a,"origin",window.location.protocol+"//"+b.Ha+(b.eb!=null?":"+b.eb:"")),"wmode","opaque"),"videoWidth",400),"videoHeight",300),"doNotTrack",true);this.p&amp;&amp;X(X(a,"playbar",false),"chromeless",true)};o.Kg=function(){this.h=$j;this.ga()};o.F=function(a){sl.d.F.call(this,a);this.Fd=a;if(a.id)this.J=a.id;else a.id=this.J;this.h=new L(parseInt(400),parseInt(300));this.ga()};
o.m=function(){sl.d.m.call(this);var a=window;if(a.Wistia&amp;&amp;a.Wistia.Player)this.Md();else{var b=s;if(a.onYouTubePlayerAPIReady)b=a.onYouTubePlayerAPIReady;var c=w(this.Md,this);window.onYouTubePlayerAPIReady=function(){b();c()}}this.v().e(this.t,J,this.Za);this.D.start()};o.Md=e();o.zc=e();o.Rd=function(){this.c=this.wh;C(this.j,function(a){a()});this.j=[];this.v().e(this.D,J,this.yb).e(this.t,J,this.Za);this.D.start()};o.Za=function(){this.Z()&gt;0&amp;&amp;this.Pa()};o.Uc=function(){return[this.Fd]};
o.i=function(){sl.d.i.call(this);this.D.r();this.t.r()};o.N=function(){sl.d.N.call(this);this.D.stop();this.t.stop()};o.gg=function(){return this.c&amp;&amp;this.c.state()=="playing"};o.wi=function(){return this.c&amp;&amp;this.c.state()=="paused"};o.qc=function(){return this.c?this.c.time():0};o.Ja=function(a){if(this.c){this.c.volume(a);this.Rn=a}else this.j.push(w(this.Ja,this,a))};function ql(a,b,c){Z.call(this,a);this.k=a;this.uk=!!b;this.p=!!c;this.c=null;this.Oa=[a.qa,""+(new Date).getTime()].join("");this.J=a.qa+"_dailymotionplayer";this.kb="event"+a.qa;var d=w(this.Hl,this);if(window.onDailymotionPlayerReady){var f=window.onDailymotionPlayerReady;window.onDailymotionPlayerReady=function(g){f(g);d(g)}}else window.onDailymotionPlayerReady=d;this.j=[];this.ma=false;this.D=new I(500);this.t=new I(80);this.Ob="dailymotion"}y(ql,Z);o=ql.prototype;
o.m=function(){ql.d.m.call(this);var a=this.k.Ra();this.h=!this.p&amp;&amp;a?a:this.p?bk:$j;if(!this.ma){this.ma=true;a=this.g().f("div");a.id=Y();this.a().appendChild(a);var b={id:this.J,style:Nj("",this.ka())},c=["?chromeless=",this.uk?1:0,"&amp;enableApi=1&amp;playerapiid=",this.Oa].join("");this.ga();window.swfobject.embedSWF(["http://www.dailymotion.com/swf",c].join(""),a.id,this.h.width,this.h.height,"8",null,null,{allowScriptAccess:"always",wmode:"opaque"},b)}this.v().e(this.D,J,this.yb);this.v().e(this.t,
J,this.Za)};o.N=function(){ql.d.N.call(this);this.D.stop();this.t.stop()};o.qc=function(){return this.c?this.c.getCurrentTime():0};o.yb=function(){this.Z()&gt;0&amp;&amp;this.dispatchEvent("videoprogress")};o.Za=function(){this.Z()&gt;0&amp;&amp;this.Pa()};o.Z=function(){return this.c&amp;&amp;this.c.getDuration?this.c.getDuration():0};o.Ja=function(a){this.c?this.c.setVolume(100*a):this.j.push(w(this.Ja,this,a))};o.la=function(a,b){if(this.c){a=Math.max(a,1);this.c.seekTo(a);b||this.Pa()}else this.j.push(w(this.la,this,a))};
o.ka=k("h");o.xb=function(){return this.Yb()==vl.Mc};o.Hb=function(){return this.Yb()==vl.jc};o.Nb=function(){return this.Yb()==vl.fe};o.va=function(){if(this.c){this.c.playVideo();this.t.start()}else this.j.push(w(this.va,this))};o.za=function(){if(this.c){this.c.pauseVideo();this.t.stop()}else this.j.push(w(this.za,this))};o.Sa=function(){if(this.c){this.c.stopVideo();return true}else{this.j.push(w(this.Sa,this));return false}};
o.Xa=function(a){if(this.c){this.c.cueVideoById(this.k.u);this.la(a);this.wa=false}else this.j.push(w(this.Xa,this,a))};o.zc=function(a){var b=vl;if(a==b.jc){this.dispatchEvent(kk.je);this.t.start()}else if(a==b.Mc){this.dispatchEvent(kk.ie);this.t.stop()}else a==b.fe&amp;&amp;this.Vb()};o.Yb=function(){return this.c?this.c.getPlayerState():-1};
o.Hl=function(a){if(a==this.Oa){this.c=jd(this.J);this.c.cueVideoById(this.k.u);C(this.j,function(b){b()});this.j=[];window[this.kb]=w(this.zc,this);this.D.start();this.c.addEventListener("onStateChange",this.kb)}};o.i=function(){ql.d.i.call(this);this.D.r();this.t.r()};o.bd=function(){return Ra};var vl={fk:-1,fe:0,jc:1,Mc:2,gk:5};function wl(a,b){this.nb=a.my_languages;this.lg=a.limit_languages;this.nk=a.blocked_languages;Fb(this.nb);this.nb=ub(this.nb,function(c){return!!Qi(c)});this.Pd=a.original_language;this.W=new xl(a.video_languages);this.Mb=new yl(this.nb,this.W,this.lg,b);this.Gg=null;if(b)this.We=b.Qb?zl(this.Mb,b.A+b.Qb):Al(this.Mb,b.A)}function Bl(a){if(!a.We)a.We=Cl(a.Mb)[0];return a.We}
function Dl(a){var b=a.Pd;if(!b)b=a.Gg;var c=Bl(a);if(c.A==b)return[];var d=El(a.W,c.A),f=[];a.W.forEach(function(h){E(d,h)||f.push(h)});f=ub(f,function(h){return h.me&gt;0});var g=new og(a.nb);Hb(f,function(h,j){return Ib(g.contains(h.A)?0:1,g.contains(j.A)?0:1)});return f};function Fl(a){this.sb=a.pk;this.A=a.language;this.hc=a.dependent;this.Lc=a.is_complete;this.ic=a.percent_done;this.sd=a.standard_pk;this.me=a.subtitle_count;this.$j=a.in_progress;this.tf=a.disabled_from;this.Xj=a.disabled_to;this.jh=a.is_public;this.ek=a.translated_from}Fl.prototype.zi=function(){return Qi(this.A)};Fl.prototype.toString=function(){var a=this.zi();if(this.me&gt;0)a+=this.Lc?" (100%)":" (incomplete)";a+=this.$j?" (in progress)":"";return a};
function Gl(a,b){a.jk=b;if(a.sd)a.vj=wb(a.jk,function(c){return c.sb==this.sd},a)}Fl.prototype.ac=function(){return this.hc&amp;&amp;this.ic==0};function xl(a){a=D(a,function(b){return new Fl(b)});this.W=ub(a,function(b){return!!Qi(b.A)||b.me&gt;0});C(this.W,function(b){Gl(b,this.W)},this);this.Se=this.vc=null}xl.prototype.forEach=function(a,b){C(this.W,a,b)};function El(a,b){if(!a.vc){a.vc={};for(var c,d=0;d&lt;a.W.length;d++){c=a.W[d];if(a.vc[c.A])a.vc[c.A].push(c);else a.vc[c.A]=[c]}}return a.vc[b]?a.vc[b]:[]}function Hl(a,b){if(!a.Se){a.Se={};C(a.W,function(c){this.Se[c.sb]=c},a)}return a.Se[b]};function Il(a,b,c){this.A=c=b?b.A:c;this.wf=c+(b?""+b.sb:"");this.Pb=Qi(c);this.le=a;this.$a=b}Il.prototype.toString=function(){return this.$a?this.$a.toString():this.Pb};function yl(a,b,c,d){this.nb=a;this.W=b;this.lg=c;this.Gb=d||null;this.B=this.Xn=null}
function Jl(a){var b=[];if(a.Gb&amp;&amp;a.Gb.Qb){var c=new Il(0,Hl(a.W,a.Gb.Qb));c.A&amp;&amp;b.push(c)}var d=[];C(a.nb,function(f){d=Bb(d,Kl(this,f))},a);b=Bb(b,d);c=b.length;Ll(a,b);Ml(a,b);c=yb(b,0,c);Hb(b,function(f,g){var h=Ib(f.le,g.le);if(h==0)h=Ib(f.Pb,g.Pb);return h});Hb(c,function(f,g){var h=Ib(f.le,g.le);if(h==0)if(f.$a&amp;&amp;g.$a){h=Ib(g.$a.ic,f.$a.ic);if(h==0)h=Ib(f.Pb,g.Pb)}else h=Ib(f.Pb,g.Pb);return h});zb(b,c,0);return b=Nl(a,b)}function Cl(a){if(!a.Mb)a.Mb=Jl(a);return a.Mb}
function Al(a,b){return wb(Cl(a),function(c){return c.A==b})}function zl(a,b){if(!a.B){a.B={};C(Cl(a),function(c){this.B[c.wf]=c},a)}return a.B[b]}function Ll(a,b){var c=new og(D(ub(b,function(d){return!!d.$a}),function(d){return d.$a.sb}));a.W.forEach(function(d){c.contains(d.sb)||b.push(new Il(11,d))})}function Ml(a,b){var c=new og(D(b,function(d){return d.A}));C(Mi,function(d){c.contains(d[0])||b.push(new Il(11,null,d[0]))})}
function Nl(a,b){var c;c=a.Gb&amp;&amp;a.Gb.FORCE?new og([a.Gb.LANGUAGE]):new og(a.lg);return c.ac()?b:ub(b,function(d){return c.contains(d.A)})}function Kl(a,b){var c=[],d=El(a.W,b);d.length||(d=[null]);C(d,function(f){c.push(Ol(this,f,b))},a);return c}function Ol(a,b,c){var d=null;return(d=Pl(a,b,true,1))?d:(d=Ql(a,b,c))?d:(d=Rl(a,b))?d:new Il(10,b,c)}
function Pl(a,b,c,d){if(b&amp;&amp;(c?b.hc&amp;&amp;b.ic&gt;0&amp;&amp;b.ic&lt;100:b.hc&amp;&amp;b.ic==100)){c=[];for(var f=0;f&lt;a.nb.length;f++){var g=El(a.W,a.nb[f]);c=Bb(c,D(g,function(h){return b.hc?h.hc?b.sd==h.sd:b.sd==h.sb:false}))}if(c.length&gt;0)return new Il(d,b)}return null}function Ql(a,b,c){if(!b||b.ac()){for(var d=[],f=0;f&lt;a.nb.length;f++){var g=El(a.W,a.nb[f]);d=Bb(d,D(g,function(h){return h.hc?h.vj&amp;&amp;h.vj.Lc&amp;&amp;h.ic&gt;10:h.Lc}))}if(d.length&gt;0)return new Il(2,b,c)}return null}
function Rl(a,b){if(b&amp;&amp;!b.hc&amp;&amp;!b.Lc)return new Il(3,b);return null};function Sl(a,b,c){S.call(this,"unisubs-modal-lang",true);Xe(this,null);this.xd=true;this.u=a;this.Yh=false;this.ua=null;this.Gb=b;this.Sb=c;this.Og=null;this.Wg=this.Qg=true}y(Sl,S);Sl.prototype.f=function(){Sl.d.f.call(this);var a=w(this.g().f,this.g()),b=this.a();b.appendChild(a("h3",null,"Create subtitles"));this.Ua=a("div",null,"");this.Ua.innerHTML="&lt;p&gt;Loading&amp;hellip;&lt;/p&gt;";b.appendChild(this.Ua)};Sl.prototype.m=function(){Sl.d.m.call(this);Tl(this)};
Sl.prototype.R=function(a){Sl.d.R.call(this,a);a&amp;&amp;fj("fetch_start_dialog_contents",{video_id:this.u},w(this.bm,this))};function Ul(a,b,c,d){a=[];for(var f,g,h,j=0;j&lt;c.length;j++){f=c[j][0];g=c[j][1];h=c[j][3];f={value:f};if(h)f.disabled="disabled";a.push(b("option",f,g))}return b("select",d||null,a)}
function Vl(a){a.Yh=true;a.ua=new wl(a.Og,a.Gb);yd(a.Ua);var b=w(a.g().f,a.g());if(a.ua.Pd)a.Ua.appendChild(b("p",null,"This video is in "+Qi(a.ua.Pd)));else{var c=Mi;c.unshift(["","--Select language--"]);a.yc=Ul(a,b,c,"original-language");a.yc.value="";a.ua.Gg="";a.Ua.appendChild(b("p",null,b("span",null,"This video is in: "),a.yc));a.Ua.appendChild(b("p","notice","Please double check the primary spoken language. This step cannot be undone."))}Wl(a,b);a.Qf=b("span");a.bi=b("div",null,b("p",null,
b("span",null,"Translate from: "),a.Qf));a.Ua.appendChild(a.bi);Xl(a);a.nf=b("p","warning");xd(a.Ua,a.nf);P(a.nf,false);a.Jb=b("a",{href:"#",className:"unisubs-green-button unisubs-big"},"Continue");xd(a.Ua,a.Jb);b=b("div");Hj(b,"clear","both");b.innerHTML="&amp;nbsp;";a.Ua.appendChild(b);a.kj();Tl(a);Yl(a,null)}
function Zl(a){a.Ua.innerHTML=window.sh?window.sh==="Private"?"&lt;p&gt;Subtitles for this video are privately moderated.&lt;/p&gt;":"&lt;p&gt;Subtitles for this video are moderated by the "+window.sh+" team.&lt;/p&gt;&lt;p&gt;Learn more on the &lt;a href="+window.jn+"&gt;team's home page&lt;/a&gt;.&lt;/p&gt;":"&lt;p&gt;These subtitles are moderated by a volunteer team.&lt;/p&gt;&lt;p&gt;View the video on &lt;a href="+pj(a.u)+"&gt;Amara's website&lt;/a&gt; to learn more:&lt;/p&gt;"}
function $l(a){a.Ua.innerHTML="&lt;p&gt;Subtitles for this video are moderated.&lt;/p&gt;&lt;p&gt;Please visit the &lt;a href='"+pj(a.u)+"'&gt;video page&lt;/a&gt; to contribute.&lt;/p&gt;"}Sl.prototype.rg=function(a){this.Qg=a.can_subtitle;this.Wg=a.can_translate;if(this.Qg)this.Qg||this.Wg?Vl(this):Zl(this);else{a=new wl(this.Og,this.Gb);ub(Dl(a),function(b){return!b.tf}).length===0?Zl(this):Vl(this)}};
Sl.prototype.bm=function(a){var b=a.is_moderated;this.Og=a;if(b)Ji!=null?$l(this):fj("can_user_edit_video",{video_id:this.u},w(this.rg,this));else Vl(this)};
function Xl(a){var b=Dl(a.ua),c=ub(b,function(l){return!l.tf});P(a.bi,c.length&gt;0);var d=a.od.value,f=a.ua.W.W,g;for(var h in f){var j=f[h];if(j.A==d||j.A+j.sb==d){g=j;break}}if(g&amp;&amp;!g.Lc)c=ub(b,function(l){return g.ek==l.A});if(c.length&gt;0){b=[];if(a.Wg)b=D(c,function(l){return[l.A+"",l.toString(),null,l.tf]});c=w(a.g().f,a.g());a.Tc=Ul(a,c,b,"from-language");yd(a.Qf);a.Qf.appendChild(a.Tc);a.v().e(a.Tc,"change",a.Ik)}else a.Tc=null}
function Wl(a,b){var c=a.ua.nk||[],d=D(Cl(a.ua.Mb),function(g){var h=false;if(g.$a)h=g.$a.Xj;else if(E(c,g.A))h=true;return[g.wf,g.toString(),g.A,h]});a.od=Ul(a,b,d,"to-language");a.od.value=Bl(a.ua).wf;a.Ua.appendChild(b("p",null,b("span",null,"Subtitle into: "),a.od));a=nd("to-language");for(b=Bd(a)[a.selectedIndex];b&amp;&amp;b.disabled;)if(d=Ed(b)){Yf(a,d.value);b=Bd(a)[a.selectedIndex]}if(window.TASK_TRANSLATE_TO_LANGUAGE){b=Bd(a);for(d=0;d&lt;b.length;d++){var f=b[d].value.replace(/\d+/g,"");if(window.TASK_TRANSLATE_TO_LANGUAGE==
f){Yf(a,b[d].value);break}}}}function Tl(a){if(a.$&amp;&amp;a.Yh){a.v().e(a.od,"change",a.zm).e(a.Jb,"click",a.vg);a.yc&amp;&amp;a.v().e(a.yc,"change",a.Ul)}}Sl.prototype.Ul=function(){this.ua.Gg=this.yc.value;Xl(this)};Sl.prototype.zm=function(){var a=this.ua;a.We=zl(a.Mb,this.od.value);Xl(this);Yl(this,null)};Sl.prototype.Ik=function(){Yl(this,null)};function Yl(a,b){Gd(a.nf,b||"");P(a.nf,!!b)}
Sl.prototype.vg=function(a){a.preventDefault();if(!this.Si){this.Si=true;a=null;if(this.Tc&amp;&amp;this.Tc.value!="forkk")a=this.Tc.value;var b=zl(this.ua.Mb,this.od.value),c=this;if(!this.ua.Pd)if(this.yc.value===""){this.Si=false;alert("You must select a language first.");return false}this.Sb(!this.ua.Pd?this.yc.value:null,b.A,b.$a?b.$a.sb:null,a,function(){c.R(false)});Gd(this.Jb,"Loading...");K(this.Jb,"unisubs-button-disabled")}};function am(){Q.call(this);this.mc=this.$d=null}y(am,Q);
am.prototype.f=function(){am.d.f.call(this);var a=w(this.g().f,this.g());this.La=a("div","unisubs-transcript");this.ed=a("a","resync","Back to current line");kj(this.ed,false);var b=a("a",{href:"#",id:"unisubs-logo"},a("img",{src:Ti("widget_button.png")}));this.G=new bm(b);var c=a("div","unisubs-search-container",a("div","unisubs-search-input",a("input",{className:"unisubs-search",label:"Search..."}),a("span","resultcount")),rj(a,"\u2191"),rj(a,"\u2193"));a=a("div","unisubs-substreamer",a("div","unisubs-substreamer-controls",
a("ul",null,a("li",null,b)),this.ed,c),this.La);xd(this.a(),a);this.Zd=new cm;this.Zd.H(c)};am.prototype.F=function(a){am.d.F.call(this,a);this.La=M("div","unisubs-transcript",a)[0];this.ed=M("a","resync",a)[0];this.G=new bm(jd("unisubs-logo"));var b=M("p","unisubs-transcript-paragraph",a);dm(this,b);this.Zd=new cm;this.Zd.H(M(null,"unisubs-search-container",a)[0]);a=this.Zd;b=this.md;a.La=this.La;a.md=b};
function em(a,b){var c=[],d;C(b,function(g,h){if(h==0||g.start_of_paragraph){d=[];c.push(d)}d.push(g)});var f=w(a.g().f,a.g());return D(c,function(g){g=D(g,function(h){return span=f("span",{className:"unisubs-sub",id:"usub-a-"+h.subtitle_id},h.text)});g=Bb(["p",null],g);return f.apply(null,g)})}function fm(a,b){w(a.g().f,a.g());b=em(a,b);yd(a.La);for(var c=[],d=0;d&lt;b.length;d++){c.push(b[d]);d&lt;b.length-1&amp;&amp;c.push(document.createTextNode(" "))}xd(a.La,c);dm(a,b);b=a.Zd;c=a.md;b.La=a.La;b.md=c}
am.prototype.m=function(){am.d.m.call(this);this.v().e(this.La,"scroll",this.Am).e(this.ed,"click",this.em)};am.prototype.Am=function(){if(this.Mj)this.Mj=false;else{this.ni=true;kj(this.ed,true)}};function dm(a,b){var c=[];C(b,function(d){d=M("span",null,d);for(var f=0;f&lt;d.length;f++)c.push(d[f])});a.md=D(c,function(d){return new gm(d)});a.$d=new le;C(a.md,function(d){d.hd(this);this.$d.ca(d.zf,d)},a)}am.prototype.em=function(a){a.preventDefault();this.ni=false;kj(this.ed,false);hm(this)};
function im(a,b){if(a.mc){a.mc.display(false);a.mc=null}if(b){a.mc=a.$d.K(b);hm(a)}}function hm(a){if(a.mc){a.mc.display(true);var b=a.mc;if(!a.ni){a.Mj=true;ve(b.Ya,a.La,true)}}};function cm(){Q.call(this)}y(cm,Q);cm.prototype.F=function(a){cm.d.F.call(this,a);a=Bd(a);var b=Bd(a[0]);this.Fg=new Zf;this.Fg.H(b[0]);this.Eg=a[1];this.sg=a[2];this.oj=b[1]};cm.prototype.m=function(){cm.d.m.call(this);this.v().e(this.Fg.a(),"keyup",this.Xk).e(this.Eg,"click",this.Oi).e(this.sg,"click",this.Oi)};cm.prototype.Oi=function(a){a.preventDefault();if(a.target==this.Eg&amp;&amp;this.lf&gt;0)jm(this,this.lf-1);else a.target==this.sg&amp;&amp;this.lf&lt;this.kc.length-1&amp;&amp;jm(this,this.lf+1)};
cm.prototype.Xk=function(){C(this.md,function(b){b.reset()});var a=this.Fg.Zb().toLowerCase();if(a!=""){wi(this.La,[[a,false]],function(b,c){return'&lt;span class="unisubs-search"&gt;'+c+"&lt;/span&gt;"},true);this.kc=M("span","unisubs-search",this.La)}else this.kc=[];kj(this.oj,this.kc.length&gt;0);this.kc.length&gt;0&amp;&amp;jm(this,0)};
function jm(a,b){a.lf=b;var c=a.kc[b];a.ki&amp;&amp;bd(a.ki,"highlighted-search");a.ki=c;K(c,"highlighted-search");Gd(a.oj,b+1+"/"+a.kc.length);cd(a.Eg,"disabled",!(b&gt;0));cd(a.sg,"disabled",!(b&lt;a.kc.length-1));b=we(c);var d=we(a.La);b.y&gt;=d.y&amp;&amp;b.y+c.offsetHeight&lt;d.y+a.La.clientHeight||ve(c,a.La,true)};function gm(a){F.call(this);this.Ya=a;this.Zk=a.innerHTML;a=km.exec(a.id);this.hn=a[1];this.zf=a[2];G(this.Ya,"mouseover",w(this.xl,this));G(this.Ya,"mouseout",w(this.wl,this));G(this.Ya,"click",w(this.vk,this))}y(gm,H);var lm=null,km=/usub\-(\w+)\-(\w+)/;o=gm.prototype;o.display=function(a){cd(this.Ya,"unisubs-sub-current",a)};o.reset=function(){this.Ya.innerHTML=this.Zk};
o.xl=function(a){if(Fd(this.Ya,a.target)&amp;&amp;!Fd(this.Ya,a.relatedTarget)){if(lm&amp;&amp;this!=lm){bd(lm.Ya,"highlighted");lm=null}lm=this;K(this.Ya,"highlighted")}};o.wl=function(a){if(Fd(this.Ya,a.target)&amp;&amp;a.relatedTarget&amp;&amp;!Fd(this.Ya,a.relatedTarget)&amp;&amp;this==lm){bd(this.Ya,"highlighted");lm=null}};o.vk=function(){this.dispatchEvent("subclicked")};var mm={};function bm(a){this.xh=a}o=bm.prototype;o.bf=e();o.hf=e();o.Yd=e();o.Mg=e();o.Kh=e();o.Jj=e();o.cf=e();o.Rf=k("xh");o.a=k("xh");function nm(a,b,c,d){var f=new om(a.k.ea(),a,b.G,true),g={video_url:a.k.ea(),is_remote:Ji!=null||false};f.Hg(function(j){im(b,j?j.An():null)});G(b,"subclicked",function(j){a.la(pm(f.Ia.$d[j.target.zf]));im(b,j.target.zf)});G(f,qm,function(j){fm(b,j.target.wm)});function h(j){d&amp;&amp;fm(b,(j.subtitles?new rm(j.subtitles):null).xf);f.pi(j)}c?h():fj("show_widget",g,h)}function sm(){var a=M("div","unisubs-substreamer");return a.length&gt;0?a[0]:null}
function tm(){var a=M("div","STembedWrapper");return a.length&gt;0?a[0]:null}function um(a){if(sm(a)){var b=new am,c=a.a();c=sm(c);b.H(c);nm(a,b)}else if(tm(a))new vm(a,tm());else{b=new am;(c=Ed(a.a()))?b.Ve(c):b.pb(a.a().parentNode);nm(a,b,null,true)}sm(a).style.width=se(a.h.width,true)};function wm(a){Q.call(this);this.Ye=this.tj=this.tg=this.Ne=this.cd=this.ld=this.Xc=this.oe=null;this.Fk=!!a;this.uj=Ti("spinner.gif");this.Le=Ti("small_logo.png");this.$b=new hi;ii(this.$b,"spinner",this.uj);ii(this.$b,"small_logo",this.Le);this.$b.start()}y(wm,Q);o=wm.prototype;
o.f=function(){wm.d.f.call(this);K(this.a(),"cleanslate","unisubs-videoTab","unisubs-videoTab-"+(this.Fk?"anchoring":"static"));var a=w(this.g().f,this.g());this.Xc=a("img",{alt:"small logo"});this.ld=a("span","unisubs-tabTextchoose");this.oe=a("a",{className:"unisubs-subtitleMeLink",href:"javascript:void(0);"},this.Xc,this.ld);this.Ne=a("span","unisubs-tabTextfinish","NUDGE TEXT");this.cd=a("a",{href:"#"},this.Ne);xd(this.a(),this.oe,this.cd)};
o.m=function(){wm.d.m.call(this);this.cf(false);this.v().e(this.cd,"click",this.El)};o.Rf=k("oe");o.bf=function(){this.Xc.src=this.uj;Gd(this.ld,"Loading")};o.Mg=function(a){this.Xc.src=this.Le;Gd(this.ld,a||"Subs Unavailable");this.v().e(this.oe,"click",function(b){b.preventDefault()})};o.hf=function(){this.Xc.src=this.Le;this.Cj&amp;&amp;Gd(this.ld,this.Cj)};
o.Yd=function(a,b){!a&amp;&amp;window.VIDEO_TEAM_NAME!==""&amp;&amp;window.VIDEO_TEAM_WORKFLOW_ENABLED===true&amp;&amp;this.Xd(false);this.Xc.src=this.Le;this.Cj=a=b?b.A?Qi(b.A):"Original Language":a?"Select Language":"Subtitle Me";Gd(this.ld,a)};o.El=function(a){a.preventDefault();Fj(Ej.oa(),"Clicks_Improve_Subtitles_or_translation");this.tg&amp;&amp;this.tg()};o.cf=function(a){kj(this.cd,a);kj(this.Ne,a);a?Hj(this.cd,"width",null):Lj(this.cd,0)};
o.Kh=function(a,b){if(!(Ji==null||window.UNISUBS_HIDESHARE)){if(!this.Ye){var c=w(this.g().f,this.g());this.tj=c("span",{href:"","class":"unisubs-tabTextShare"},"Share");this.Ye=c("a",{href:"","class":""},this.tj);this.a().appendChild(this.Ye)}b=b?"_blank":"_self";pd(this.Ye,{href:a.toString(),target:b})}};o.Jj=function(a,b){Gd(this.Ne,a);this.tg=b};o.Xd=function(a){mj(this.a(),a)};o.i=function(){wm.d.i.call(this);this.$b.r()};function xm(a,b){F.call(this);this.Bl=this.$l=null;this.fc=a;this.x=b}y(xm,H);function ym(a){return a.x.content(a.fc)}function pm(a){a=a.x.startTime(a.fc);return r(a)?a:-1}xm.prototype.toString=function(){return"EditableCaption: "+ym(this)};function zm(a,b,c,d,f,g,h,j,l,n){F.call(this);var q=this,B;this.x=new window.AmaraDFXPParser;this.x.init(a);window.x=this.x;this.ia=D(this.x.getSubtitles(),function(U){B=new xm(U,q.x);B.hd(q);return B});if(n===undefined)n={};for(i=1;i&lt;this.ia.length;i++){this.ia[i-1].Bl=this.ia[i];this.ia[i].$l=this.ia[i-1]}this.wk=b;this.title=c;this.description=f;this.Kn=n;this.Pn=c;this.Nn=f;this.On=Cb(n);this.Gk=!!d;this.zi=g;this.En=h;this.vi=j;this.Fn=l}y(zm,H);
var Am={gh:"clearall",Uj:"cleartimes",ck:"resetsubs",Rj:"addsub",Wj:"deletesub"};function Bm(a){return ub(a.ia,function(b){return pm(b)!=-1})}zm.prototype.clear=function(){this.x.removeSubtitles();this.dispatchEvent(Am.gh)};zm.prototype.caption=function(a){return this.ia[a]};zm.prototype.og=function(){return this.x.xmlToString(true)};function Cm(a){var b={};C(a.ia,function(c){b[c.x.getSubtitles().index(c.fc)]=c});return b};function Yi(a,b){S.call(this,"unisubs-modal-login",true);this.vd=0;this.T&amp;&amp;Be(this.T,this.vd);this.Zh=a;this.Mi=b;this.Gi=!!Ki;Xe(this,null);this.xd=true;this.$b=new hi;this.zh=Ti("big_spinner.gif");ii(this.$b,"bigSpinner",this.zh);this.$b.start()}y(Yi,S);var Dm=null;o=Yi.prototype;
o.f=function(){Yi.d.f.call(this);var a=w(this.g().f,this.g());this.ng=a("a",{className:"unisubs-log",href:"#"},a("span",null,"Log in or Create an Account"));this.Yg=a("a",{className:"unisubs-twitter",href:"#"},a("span",null,"Twitter"));this.yg=a("a",{className:"unisubs-openid",href:"#"},a("span",null,"OpenID"));this.Uf=a("a",{className:"unisubs-google",href:"#"},a("span",null,"Google"));this.Xh=a("a",{className:"unisubs-facebook",href:"#"},a("span",null,"Facebook"));var b=this.Ca();this.Mi&amp;&amp;wd(b,
a("h4",{className:"unisubs-login-message"},this.Mi));var c=a("h4",null,"Login using any of these options");b.appendChild(c);b.appendChild(this.ng);b.appendChild(this.Yg);b.appendChild(this.yg);b.appendChild(this.Uf);b.appendChild(this.Xh);a=a("p","unisubs-small","For security, the login prompt will open in a separate window.");b.appendChild(a)};o.Ng=function(){yd(this.Ca());this.a().appendChild(this.g().f("img",{className:"big_spinner",src:this.zh}))};
o.m=function(){Yi.d.m.call(this);this.v().e(this.ng,"click",this.nm).e(this.Yg,"click",this.re).e(this.yg,"click",this.re).e(this.Uf,"click",this.re).e(this.Xh,"click",this.re)};o.nm=function(a){this.Ng();this.Ld=dj(cj,w(this.hj,this),w(this.Hi,this));a.preventDefault()};o.re=function(a){this.Ng();this.Ld=dj(a.target==this.ng?cj:a.target==this.Yg?Zi:a.target==this.yg?$i:a.target==this.Uf?aj:bj,w(this.hj,this),w(this.Hi,this));a.preventDefault()};o.Hi=function(){alert("We had a problem logging you in to the site. Most likely your network connection is flaky, or there is a serious problem with our server. You might want to try again.\n\nIf you are subtitling a video, you can always use the download subtitles link in the lower right corner of the dialog.")};
o.hj=function(a){this.Ld=null;this.Gi=a;this.R(false)};o.R=function(a){Yi.d.R.call(this,a);Dm=a?this:null;if(!a)if(r(this.Ld)&amp;&amp;!this.Ld.closed)try{this.Ld.close()}catch(b){}!a&amp;&amp;this.Zh&amp;&amp;this.Zh(this.Gi)};o.i=function(){Yi.d.i.call(this);this.$b.r()};new L(512,384);function $(a){S.call(this,"unisubs-modal-widget",true);this.vd=0.8;this.T&amp;&amp;Be(this.T,this.vd);Xe(this,null);this.xd=true;this.Sh=false;this.yk=null;this.Ih=a.Ab();this.w=this.Ih.w;this.ok=this.fm=this.pj=this.Fh=this.ym=null;this.Ed=new I(6E4);this.Ed.start();this.qg=0;this.cl=null==="review";this.yn=false}y($,S);
$.prototype.f=function(){$.d.f.call(this);var a=new Q;a.zb(this.Ih,true);a.a().className="unisubs-left";a.zb(this.ym=new Q,true);a.zb(this.Fh=new Q,true);this.Fh.a().className="unisubs-captioningArea";this.zb(a,true);this.zb(this.pj=new Q,true);this.pj.a().className="unisubs-right";this.Ca().appendChild(this.g().f("div","unisubs-clear"));this.zb(this.ok=new Q,true)};
$.prototype.m=function(){$.d.m.call(this);this.v().e(Aj.oa(),"beforeunload",this.Fl).e(Vi,Ui.nh,this.Ij).e(sd(document),["keydown","mousemove"],this.Bm).e(this.Ed,J,this.al)};$.prototype.Bm=function(){this.qg=0};$.prototype.al=function(){this.qg++;this.qg&gt;=5&amp;&amp;Em(this)};function Em(a){a.Ed.stop();if(!a.cl){var b=a.fi();if(b){b=new mm.Km(b,a.og());a.v().e(b,Ve,a.zk);b.R(true)}}}$.prototype.zk=function(a){a.target.un()?Fm(this):this.Ed.start()};$.prototype.Ij=function(){this.fm.Ij()};
$.prototype.xi=t;function Gm(a,b,c){Fj(Ej.oa(),"Submits_final_work_in_widget");Ki==null&amp;&amp;!(Wi||Dm!=null)?Xi(function(d){d||alert("We had a problem logging you in. You might want to check your web connection and try again.\n\nYou can also download your subtitles using the download button in the lower right corner of the dialog and upload them once you've logged in.")}):Hm(a,b,c)}function Hm(){t()}$.prototype.Fl=function(a){if(!this.xi())a.message="You have unsaved work."};
$.prototype.R=function(a){if(a){$.d.R.call(this,true);sd(document).scrollTop=0}else this.xi()?Fm(this):Im(this)};function Im(a){(new Gi.fn(function(b){b?Gm(a,true):Fm(a,false)})).R(true)}$.prototype.fi=t;function Fm(a){var b=a.fi();if(b){var c={};c.session_pk=b.Cn();fj("release_lock",c)}$.d.R.call(a,false)}$.prototype.og=t;$.prototype.i=function(){$.d.i.call(this);this.w.r();this.Ed.r()};function Jm(a,b){F.call(this);this.ia=Bm(b);window.In=this;this.x=b.x;var c=this;this.mn=function(d,f){return d-c.x.startTime(f)};this.mk=function(d,f){return d-c.x.startTime(f.fc)};this.Ah=function(d,f){return c.x.startTime(d.fc)-c.x.startTime(f.fc)};this.w=a;this.X=new N(this);this.X.e(a,ik,this.Ej);this.X.e(b,Bb(qc(Am),"captionchanged"),this.sk);this.cb=-1;this.Bi=null;this.Th=false}y(Jm,H);
Jm.prototype.sk=function(a){if(a.type==Am.gh||a.type==Am.Uj||a.type==Am.ck){this.ia=[];this.cb=-1;Km(this,null)}else if(a.type==Am.Rj){var b=a.caption;if(pm(b)!=-1){a=this.ia;b=b;var c=Gb(a,this.Ah||Ib,false,b);c&lt;0&amp;&amp;xb(a,b,-(c+1));Lm(this,this.w.Wa())}}else if(a.type==Am.Wj){b=a.caption;if(pm(b)!=-1){a=this.ia;b=Gb(a,this.Ah||Ib,false,b);b&gt;=0&amp;&amp;sb.splice.call(a,b,1);Lm(this,this.w.Wa())}}else if(a.type=="captionchanged")if(a.Wn){this.ia.push(a.target);this.Ej()}};
Jm.prototype.Ej=function(){var a=this.w.Wa()*1E3;if(this.ia!==0)if(!(this.cb==-1&amp;&amp;a&lt;this.x.startTime(this.x.getFirstSubtitle()))){var b=this.cb&gt;-1?this.x.getSubtitleByIndex(this.cb):null;if(b!=null&amp;&amp;this.x.isShownAt(b,a))Km(this,this.ia[this.cb],this.cb);else{var c=this.cb&lt;this.ia.length-1?this.cb+1:null,d=this.cb&lt;this.ia.length-1?this.ia[this.cb+1]:null;if(d!=null&amp;&amp;this.x.isShownAt(this.x.getSubtitleByIndex(c),a)){this.cb++;Km(this,d,c)}else if((d==null||a&lt;this.x.startTime(d.fc))&amp;&amp;(b==null||a&gt;=this.x.startTime(b))){Km(this,
null);d==null&amp;&amp;!this.Th&amp;&amp;this.dispatchEvent("captionsfinished")}else Lm(this,a)}}};function Lm(a,b){var c=Gb(a.ia,a.mk||Ib,false,b);if(c&lt;0)c=c*-1-2;a.cb=c;var d=a.ia[c];c&gt;=0&amp;&amp;d&amp;&amp;a.x.isShownAt(d.fc,b)?Km(a,d,c):Km(a,null)}function Km(a,b,c,d){if(!(b==a.Bi&amp;&amp;!d))if(!a.Th){a.Bi=b;a.dispatchEvent(new Mm(b,c))}}Jm.prototype.i=function(){Jm.d.i.call(this);this.X.r()};function Mm(a,b){this.type="caption";this.caption=a;this.index=b};function rm(a,b){this.A=a.language_code;this.Qb=a.language_pk;this.Tm=a.language_is_rtl;this.vf=a.is_moderated;this.Pb=a.language_name;this.Rm=a.is_original;this.Lc=a.is_complete;this.Wm=a.mode;this.gn=a.version;this.xf=a.subtitles||b;this.Lm=a.forked;this.Fm=a.base_language;this.Tj=a.base_language_code;this.Qm=a.is_latest;this.cn=a.title;this.Im=a.description;this.Vm=a.metadata};function Nm(a,b,c){this.kh=D(a,function(f){return new Fl(f)});function d(f){return D(f,function(g){return g.toLowerCase()})}this.Sm=d(D(a,function(f){return f.language}));this.Xm=d(b);this.vf=c};function Om(a,b,c,d,f,g,h){F.call(this);this.u=a;this.k=b;this.w=c;this.G=d;this.Ma=f;this.Ge=h;this.Gj=new og;g&amp;&amp;Pm(this,g);this.tl=new N(this);var j=this;this.tl.e(this.Ma,Qm.mh,function(l){Rm(j,l.mf)}).e(this.Ma,Qm.yf,this.Xg);this.ae=null;this.ug=false}y(Om,H);var qm="languagechanged";Om.prototype.sm=function(){this.w.hf();this.Xg()};Om.prototype.Xg=function(){Sm(this.Ma,null);this.Ma.De();this.G.cf(false);Tm(this);jk(this.w,"");this.Ta=null;this.G.Yd(Um(this.Ma))};
function Pm(a,b){a.ug=false;Tm(a);a.Ta=b;a.wm=b.xf;b=new zm(b.xf);a.$d=Cm(b);a.wd=new Jm(a.w,b);a.Te=new N(a);a.Te.e(a.wd,"caption",a.Gf).e(a.wd,"captionsfinished",a.$h).e(a.w,hk,a.$h).e(a.w,"videoplay",a.Fj);a.w.gg()&amp;&amp;a.Fj()}
Om.prototype.Fj=function(){var a=this.k.ea();try{if(!this.Gj.contains(a)){this.Gj.add(a);var b=Ej.oa(),c=window.location.href;Gj(b);window._gaq.push([b.ke+"._trackEvent","Subs Played",c,a,undefined]);fj("track_subtitle_play",{video_id:this.u})}}catch(d){console&amp;&amp;console.log&amp;&amp;console.error("Could not track video",d.stack)}};
function Rm(a,b){Fj(Ej.oa(),"Selects_language_from_widget_dropdown");a.G.bf();fj("fetch_subtitles",{video_id:a.u,language_pk:b.sb},function(c){a.Xg();c=c?new rm(c):null;Pm(a,c);a.G.Yd(Um(a.Ma),c);Sm(a.Ma,c);a.dispatchEvent(qm)})}Om.prototype.Hg=aa("Ff");Om.prototype.Gf=function(a){this.Ff(a.caption)};Om.prototype.$h=function(){if(!(this.ug||this.Ge)){this.G.Jj(this.Ta.A?"Improve this Translation":"Improve these Subtitles",w(this.ae.oi,this.ae));this.G.cf(true);this.ug=true}};
function Tm(a){if(a.wd){a.wd.r();a.wd=null}if(a.Te){a.Te.r();a.Te=null}}Om.prototype.i=function(){Om.d.i.call(this);Tm(this)};function Vm(a,b,c,d,f){this.u=a;this.S=b;this.G=d;this.Ma=f;this.Ia=c;this.Ia.ae=this;this.pa=new N(this);this.Lf=new Wm(a,b,this.Ia.k,function(g){g?d.bf():d.hf()},w(c.sm,c));Yd(this.pa,this.Lf,Ve,this.vm);a=Qm;this.pa.e(f,a.sf,this.$i).e(f,a.uf,this.oi).e(d.Rf(),"click",this.Dm)}Vm.prototype.Dm=function(a){a.preventDefault();Fj(Ej.oa(),"videoTabClicked");a=null;if(r(sj)?r(sj.getItem):false)a=Xm();var b=this;r(a)&amp;&amp;r(Ym(a))&amp;&amp;a.u==this.u?(new Zm(a,function(c){c?$m(b):an(b)})).R(true):an(this)};
function $m(a){a={videoID:a.u,videoURL:a.S,effectiveVideoURL:a.Ia.k.ea(),returnURL:window.location.href};var b=new W(Ri()+"/onsite_widget_resume/");X(b,"config",tf(a));window.location.assign(b.toString())}function an(a){Um(a.Ma)?bn(a.Ma):a.Sl()}Vm.prototype.oi=function(){var a=this.Ia.Ta;cn(this.Lf,new dn(a.A,null,a.Qb,a.Tj),this.Ia.k.ea())};Vm.prototype.Sl=function(){this.$i(this.Ia.Ta)};Vm.prototype.$i=function(a){this.Lf.mm(this.Ia.k.ea(),a)};
Vm.prototype.vm=function(a){a=a.target.yk;var b=this.Ia.w;if(b.wa){b.Xa(b.jf);b.jf=null}this.G.Yd(Um(this.Ma),this.Ia.Ta);Sm(this.Ma,this.Ia.Ta);a!=null&amp;&amp;en(this.Ma,a)};function Wm(a,b,c,d,f){F.call(this);this.u=a;this.S=b;this.k=c;this.Ei=d;this.Un=f}y(Wm,H);Wm.prototype.Ng=function(a){this.Ei&amp;&amp;this.Ei(a)};Wm.prototype.mm=function(a,b){if(!fn(this)){var c=this;(new Sl(this.u,b,function(d,f,g,h,j){cn(c,new dn(f,d,g,h),a,j)})).R(true)}};function fn(){if(r(sj)?r(sj.getItem):false)return false;else{alert("Sorry, you'll need to upgrade your browser to use the subtitling dialog.");return true}}
function cn(a,b,c){if(!fn(a)){a={videoID:a.u,videoURL:a.S,effectiveVideoURL:c||a.S,languageCode:b.A,originalLanguageCode:b.bk||null,subLanguagePK:b.dk||null,baseLanguageCode:b.Sj||null};b=new W(Ri()+"/onsite_widget/");X(b,"config",tf(a));window.location.assign(b.toString())}};function dn(a,b,c,d){this.A=a;this.bk=b;this.dk=c;this.Sj=d};function gn(a,b,c){Q.call(this);this.u=a;this.W=b.kh;this.Ge=b.vf;this.G=c;this.Ta=null;this.df=false;this.ig=new N(this);this.af=this.$e=false}y(gn,Q);var Qm={sf:"add_language",uf:"improve_subtitles",qh:"subtitle_homepage",ih:"download_subtitles",hh:"create_account",lh:"language_preferences",yf:"subtitles_off",mh:"language_selected",rh:"username",he:"logout"};function Um(a){return vb(a.W,function(b){return b.jh})}gn.prototype.vi=k("Ge");
function en(a,b){a.W=b.kh;a.Ge=b.vf;hn(a);kn(a);Sm(a,a.Ta)}function Sm(a,b){a.kf.className="";for(var c=0;c&lt;a.ee.length;c++)a.ee[c].Di.className="";a.Ta=b;ln(a);mj(a.ag,!!b);Cd(a.zd).href=mn(a)}
gn.prototype.f=function(){gn.d.f.call(this);var a=w(this.g().f,this.g());K(this.a(),"cleanslate","unisubs-dropdown");var b=a("div",{className:"unisubs-languageList"});b.appendChild(this.jg=a("ul",null));this.kf=a("li",null,a("a",{href:"#"},"Subtitles Off"));this.tm=a("span","unisubs-languageStatus");this.Nc=a("div",{className:"unisubs-actions"});this.pd=a("ul",null);this.jd=a("ul",null);this.Hj=a("h5","unisubs-uniLogo","Amara");this.vh=a("a",{href:"#"},"");this.uh=a("li","unisubs-addTranslation",
this.vh);this.ag=a("li","unisubs-improveSubtitles",a("a",{href:"#"},"Improve These Subtitles"));this.Rg=a("li","unisubs-subtitleHomepage",a("a",{href:qj(this.u)},"Subtitle Homepage"));this.zd=a("li","unisubs-downloadSubtitles",a("a",{href:mn(this)},"Download Subtitles"));this.ul=a("li","unisubs-moderated",a("p",null,"These subtitles are moderated. Visit the ",a("a",{href:pj(this.u)},"video page")," to contribute."));this.Jh=a("li","unisubs-createAccount",a("a",{href:"#"},"Login or Create Account"));
this.Ai=a("li","unisubs-languagePreferences",a("a",{href:"#"},"Language Preferences"));this.bh=a("li",null,a("a",{href:"#"},"USERNAME"));this.Ii=a("li",null,a("a",{href:"#"},"Logout"));this.Kk=a("li",null,a("a",{href:qj(this.u)},"Get Embed Code"));this.Nc.appendChild(this.Hj);this.Nc.appendChild(a("h4",null,"THIS VIDEO"));this.Nc.appendChild(this.pd);this.Nc.appendChild(a("h4",null,"MY SETTINGS"));this.Nc.appendChild(this.jd);hn(this);nn(this);this.a().appendChild(b);this.a().appendChild(this.Nc)};
function hn(a){var b=w(a.g().f,a.g());a.g().Ue(a.jg);Gd(a.vh,a.um===0?"Add New Subtitles":"Add New Translation");Gd(a.tm,"("+a.um+" lines)");a.Pf||xd(a.jg,a.kf);a.ee=[];for(var c=0;c&lt;a.W.length;c++){var d=a.W[c];if(d.jh){var f=b("a",{href:"#"},b("span","unisubs-languageTitle",Qi(d.A)),b("span","unisubs-languageStatus","("+(d.me+" lines")+")")),g=b("li",null,f);a.ee.push({link:f,Di:g,mf:d});xd(a.jg,g)}}}
function mn(a){var b=new W(Ri());qh(b,"/widget/download_srt/");X(b,"video_id",a.u);a.Ta&amp;&amp;a.Ta.Qb&amp;&amp;X(b,"lang_pk",a.Ta.Qb);return b.toString()}gn.prototype.rg=function(a){w(this.g().f,this.g());this.$e=a.can_translate;this.af=a.can_subtitle;on(this)};function pn(a){fj("can_user_edit_video",{video_id:a.u},w(a.rg,a))}function qn(a){zd(a.pd,a.ul,0)}function on(a){a.af&amp;&amp;zd(a.pd,a.ag,0);a.$e&amp;&amp;zd(a.pd,a.uh,0);a.$e||a.af||qn(a)}
function nn(a){a.g().Ue(a.pd);a.g().Ue(a.jd);if(a.vi())Ji!=null?qn(a):pn(a);else{a.$e=true;a.af=true;on(a)}xd(a.pd,a.Rg,a.Kk,a.zd);if(Ki===null)a.jd.appendChild(a.Jh);else{Gd(Cd(a.bh),Ki);a.jd.appendChild(a.bh);a.jd.appendChild(a.Ii)}a.jd.appendChild(a.Ai)}
gn.prototype.m=function(){gn.d.m.call(this);var a=Qm;this.v().e(this.Hj,"click",function(){window.open("http://www.universalsubtitles.org")}).e(this.uh,"click",w(this.Ib,this,a.sf)).e(this.ag,"click",w(this.Ib,this,a.uf)).e(this.Rg,"click",w(this.Ib,this,a.qh)).e(this.zd,"click",w(this.Ib,this,a.ih)).e(this.Jh,"click",w(this.Ib,this,a.hh)).e(this.Ai,"click",w(this.Ib,this,a.lh)).e(this.kf,"click",w(this.Ib,this,a.yf)).e(this.bh,"click",w(this.Ib,this,a.rh)).e(this.Ii,"click",w(this.Ib,this,a.he)).e(Vi,
qc(Ui),this.ol).e(Qd(this.g()),"mousedown",this.Wi,true);A&amp;&amp;this.v().e(Qd(this.g()),"contextmenu",this.Wi,true);kn(this)};function kn(a){a.ig.dd();C(a.ee,function(b){a.ig.e(b.link,"click",w(a.il,a,b.mf))})}gn.prototype.Wi=function(a){this.df&amp;&amp;!Fd(this.a(),a.target)&amp;&amp;!Fd(this.G.a(),a.target)&amp;&amp;this.De()};
gn.prototype.Ib=function(a,b){b.preventDefault();b=Qm;if(a==b.hh)Xi();else if(a==b.he)ij();else if(a==b.rh)window.open(Ri()+"/profiles/mine");else if(a==b.lh)window.open(Ri()+"/profiles/mine");else if(a==b.qh)window.location.replace(Cd(this.Rg).href);else if(a==b.ih)window.open(Cd(this.zd).href);else if(a==b.sf||a==b.uf||a==b.yf)this.dispatchEvent(a);this.De()};gn.prototype.il=function(a,b){b&amp;&amp;b.preventDefault();this.dispatchEvent(new rn(a));Cd(this.zd).href=mn(this)};
function ln(a){if(a.Ta){var b=wb(a.ee,function(c){return c.mf.sb==a.Ta.Qb});if(b)b.Di.className="unisubs-activeLanguage"}else a.kf.className="unisubs-activeLanguage"}function bn(a){a.df?a.De():a.Xd()}gn.prototype.De=function(){mj(this.a(),false);this.df=false};gn.prototype.Xd=function(){jj(this.G.Rf(),this.a());this.df=true};gn.prototype.ol=function(){nn(this)};gn.prototype.i=function(){gn.d.i.call(this);this.ig.r()};function rn(a){this.type=Qm.mh;this.mf=a};function sn(a,b,c){this.u=a;this.jm=b;this.Rl=c}function Ym(a){if(!a.qj){var b;b=(b=sj.getItem("_unisubs_work1"))?tn(b):null;a.qj=b&amp;&amp;b.ph==a.jm?b:null}return a.qj}function Xm(){var a=sj.getItem("_unisubs_editing");if(a){a=sf(a);return r(a.version)&amp;&amp;a.version==2?new sn(a.videoID,a.sessionPK,new dn(a.openDialogArgs.l,a.openDialogArgs.o,a.openDialogArgs.s,a.openDialogArgs.b)):null}else return null};function Zm(a,b){S.call(this,"unisubs-modal-lang",true);Xe(this,null);this.xd=true;this.dm=a;this.Sb=b}y(Zm,S);
Zm.prototype.f=function(){Zm.d.f.call(this);var a=w(this.g().f,this.g()),b=this.Ca(),c=Qi(this.dm.Rl.A);this.Pc=a("a",{href:"#",className:"unisubs-green-button unisubs-big"},"Cancel");this.Jb=a("a",{href:"#",className:"unisubs-green-button unisubs-big"},"OK");var d=a("div");Hj(d,"clear","both");d.innerHTML="&amp;nbsp;";xd(b,a("h3",null,"Resume editing?"),a("p",null,"You have saved "+c+" subtitles for this video. Would you like to resume editing those subtitles? Warning: clicking Cancel will erase your saved subs."),this.Pc,
this.Jb,d)};Zm.prototype.m=function(){Zm.d.m.call(this);this.v().e(this.Pc,"click",this.rk).e(this.Jb,"click",this.vg)};Zm.prototype.rk=function(a){a.preventDefault();if(!this.Ti){sj.removeItem("_unisubs_editing");this.R(false);this.Sb(false)}};Zm.prototype.vg=function(a){a.preventDefault();if(!this.Ti){this.Ti=true;Gd(this.Jb,"Loading...");K(this.Jb,"unisubs-button-disabled");this.Sb(true)}};function un(a,b){this.ph=a;this.rd=b}un.prototype.rj=function(){return tf({version:1,sessionPK:this.ph,title:this.rd.title,description:this.rd.description,isComplete:this.rd.wk,forked:this.rd.Gk,dfxp:this.rd.og()})};function tn(a){a=sf(a);return r(a.version)&amp;&amp;a.version==1?new un(a.sessionPK,new zm(a.dfxp,a.isComplete,a.title,a.forked,a.description)):null};function om(a,b,c,d){F.call(this);this.S=a;this.w=b;this.G=c;this.Pf=!!d}y(om,H);om.prototype.pi=function(a){try{vn(this,a)}catch(b){this.G.Mg()}};om.prototype.Hg=aa("Ff");
function vn(a,b){wn(b);var c=b.video_id;c&amp;&amp;a.G.Kh(new W(qj(c)),false);var d=new Nm(b.drop_down_contents,b.my_languages,b.is_moderated),f=b.subtitles?new rm(b.subtitles):null;d=new gn(c,d,a.G);d.Pf=a.Pf;a.G.Yd(Um(d),f);d.pb();mj(d.a(),false);Sm(d,f);d.dispatchEvent(new rn(null));a.Ia=new Om(c,a.w.k,a.w,a.G,d,f,b.is_moderated);a.Ia.hd(a);var g=a.w;a.Ia.Hg(a.Ff||function(h){jk(g,h?ym(h):"")});a.ae=new Vm(c,a.S,a.Ia,a.G,d)}
function wn(a){if(a.username)Ki=a.username;Li=a.embed_version;Ni=a.writelock_expiration;Mi=a.languages;Oi=a.metadata_languages;function b(c,d){return c[1]&gt;d[1]?1:c[1]&lt;d[1]?-1:0}Hb(Mi,b);Hb(Oi,b)}om.prototype.xg=function(){this.ae.Ma.Xd()};var xn=[];function yn(){return xn.slice(0)}function zn(a){return An(a)[0]}function An(a){if(!a)return[];return ub(xn,function(b){return b.S==a})};function Bn(a){this.w=a;this.G=new wm(true);this.G.pb();this.G.Xd(false);this.G.bf();this.pa=new N(this);this.w.Mf?this.Lj():this.pa.e(this.w,fk,this.Lj);this.Hf=new om(this.w.k.ea(),this.w,this.G);a={video_url:a.k.ea(),is_remote:Ji!=null||false};if(this.w.k instanceof Qk)a.additional_video_urls=Sk(this.w.k);fj("show_widget",a,w(this.Hf.pi,this.Hf),w(this.G.Mg,this.G));xn.push(this)}o=Bn.prototype;
o.Lj=function(){jj(this.w.a(),this.G.a());this.Nf=new I(500);this.pa.e(this.Nf,J,this.am);this.lj=0;this.Nf.start();this.pa.e(new ui,"resize",this.mj)};o.am=function(){this.mj();this.lj++;this.lj&gt;80&amp;&amp;this.Nf.stop()};o.mj=function(){nj(this.w.a(),this.G.a())};o.Xl=function(a){this.w.la(a);this.w.Kb()};o.Kb=function(){this.w.Kb()};o.pause=function(){this.w.pause()};o.xg=function(){this.Hf.xg()};function Cn(){}Cn.prototype.wc=t;function Dn(a,b){return ub(b,function(c){return En(this,c)},a)}function En(a,b){return!wb(Zj,function(c){return E(c.Uc(),b)})}Cn.prototype.Hd=t;Cn.prototype.$g=function(){for(var a=[],b=M("object"),c=0;c&lt;b.length;c++)this.Hd(b[c])&amp;&amp;En(this,b[c])&amp;&amp;a.push(b[c]);b=M("embed");for(c=0;c&lt;b.length;c++)this.Hd(b[c])&amp;&amp;En(this,b[c])&amp;&amp;!E(a,b[c].parentNode)&amp;&amp;a.push(b[c]);return a};function Fn(){Ji=Ii;new W(window.location);this.Ji=[new Gn,new Hn,new Jn,new Kn,new Ln,new Mn];var a=new W(window.location),b=Ej.oa(),c=a.Ha;a=a.toString();Gj(b);window._gaq.push([b.ke+"._trackEvent","Widgetizer",c,a,undefined])}ea(Fn);
Fn.prototype.Xi=function(){if(!window.ak){window.ak=true;var a=document.getElementsByTagName("head")[0],b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.href=Ii.staticURL+"css/unisubs-widget.css";b.media="screen";a.appendChild(b)}this.fh=new I(1E3);this.Pj=0;G(this.fh,J,w(this.Ck,this));this.fh.start()};Fn.prototype.Zg=function(a,b){var c;if(a=="y")Ak.apply(null,b);else if(a=="o")c=Nn.apply(null,b);else if(a=="b")c=On.apply(null,b);c&amp;&amp;this.Oh(c)};
function Pn(a){C(window.unisubsReady,function(b){this.Zg(b[0],b[1])},a);window.unisubs_readyAPIIDs&amp;&amp;C(window.unisubs_readyAPIIDs,function(b){this.Zg("y",[b])},a)}Fn.prototype.Ck=function(){this.Pj++;if(this.Pj&gt;5)this.fh.stop();else{for(var a=[],b=0;b&lt;this.Ji.length;b++)Db(a,this.Ji[b].wc());C(a,this.Oh,this)}};Fn.prototype.Oh=function(a){window.UNISUBS_STREAMER?um(a):new Bn(a)};function Gn(){this.oh=window.location.hostname.match(/youtube\.com$/)!=null}y(Gn,Cn);Gn.prototype.wc=function(){for(var a=this.Gc(),b=[],c=0;c&lt;a.length;c++){var d=this.dg(a[c]),f=this.xc(a[c],!d).jb();b.push(f);d?f.H(a[c]):Qn(this,f,a[c])}return b};Gn.prototype.dg=function(a){return xj(a,"allowscriptaccess")=="always"&amp;&amp;zj(a).match(/enablejsapi=1/i)&amp;&amp;E(["transparent","opaque"],xj(a,"wmode"))};
Gn.prototype.xc=function(a,b){var c=zj(a),d=null;if(b){d={};b=new W(c,true);for(var f=b.ba.Fb(),g=0;g&lt;f.length;g++)d[f[g]]=b.ba.K(f[g]);if(xj(a,"width")&amp;&amp;xj(a,"height")){d.width=xj(a,"width");d.height=xj(a,"height")}else if(a.style.width&amp;&amp;a.style.height){d.width=parseInt(a.style.width)+"";d.height=parseInt(a.style.height)+""}}return Vk(this.oh?window.location.href:c,d)};
function Qn(a,b,c){if(c.nodeName=="EMBED"&amp;&amp;c.parentNode.nodeName=="OBJECT")c=c.parentNode;a=Ed(c);var d=c.parentNode;Ad(c);a?b.Ve(a):b.pb(d)}Gn.prototype.Hd=function(a){return Wk(zj(a))};Gn.prototype.Gc=function(){if(this.oh){var a=jd("movie_player");return Dn(this,a?[a]:[])}return Gn.d.$g.call(this)};function Hn(){}y(Hn,Cn);Hn.prototype.wc=function(){for(var a=Dn(this,M("video")),b=[],c=0;c&lt;a.length;c++){var d=this.xc(a[c]);if(d){d=d.jb();d.H(a[c]);b.push(d)}}return b};Hn.prototype.xc=function(a){var b=[];if(a.src)b.push(Rn(this,a.src));else{var c=a.getElementsByTagName("source");for(a=0;a&lt;c.length;a++)b.push(Rn(this,c[a].src))}for(a=0;a&lt;b.length;a++)if(Sj(b[a].qd)){c=[];for(var d=0;d&lt;b.length;d++)d!=a&amp;&amp;c.push(b[d]);b[a].ud=c;return b[a]}return null};
function Rn(a,b){a=new W(b);a.Ha||(a=Bh(new W(window.location),a));return Rk(a.toString())};function Jn(){this.hk=window.location.hostname.match(/ocw\.mit\.edu/)!=null||window.UNISUBS_JW_ONLY}y(Jn,Cn);Jn.prototype.wc=function(){for(var a=this.Gc(),b=[],c=0;c&lt;a.length;c++){var d=this.xc(a[c]);d=new Ck(d);b.push(d);d.H(a[c])}return b};Jn.prototype.xc=function(a){a=/file=([^&amp;]+)/.exec(xj(a,"flashvars"));return Vk(a[1])};Jn.prototype.Gc=function(){return Jn.d.$g.call(this)};Jn.prototype.Hd=function(a){a=zj(a);return this.hk&amp;&amp;a.match(/player[^\.]*.swf$/i)!=null};function Kn(){}y(Kn,Cn);Kn.prototype.wc=function(){var a=Sn(this),b=[];C(a,function(c){var d=this.dg(c),f=this.xc(c,!d).jb();b.push(f);d?f.H(c):Tn(this,f,c)},this);return b};Kn.prototype.dg=function(a){a=new W(a.src,true);return a.ba.K("enablejsapi")=="1"&amp;&amp;E(["transparent","opaque"],a.ba.K("wmode"))&amp;&amp;!!a.ba.K("origin")};
Kn.prototype.xc=function(a,b){var c=a.src,d=null;if(b){d={};b=new W(c,true);for(var f=b.ba.Fb(),g=0;g&lt;f.length;g++)d[f[g]]=b.ba.K(f[g]);d.width=a.width;d.height=a.height}return Xk(c,d)};function Tn(a,b,c){a=Ed(c);var d=c.parentNode;Ad(c);a?b.Ve(a):b.pb(d)}function Sn(a){var b=M("iframe");b=ub(b,function(c){return Wk(c.src)});return Dn(a,b)};function Ln(){}y(Ln,Cn);Ln.prototype.wc=function(){var a=this.Gc();return D(a,function(b){var c=new sl;c.H(b);return c},this)};Ln.prototype.Hd=function(a){a=xj(a,"flashvars");a=(new uh(a)).K("videoUrl",null);return a===null?false:/wistia\.com/.test((new W(a)).Ha)};Ln.prototype.Gc=function(){return Ln.d.$g.call(this)};function Mn(){}y(Mn,Cn);Mn.prototype.wc=function(){var a=this.Gc();return D(a,function(b){var c=new Un;c.H(b);return c})};Mn.prototype.Gc=function(){var a=Dn(this,M("div","sc-player"));return a=ub(a,function(b){return Bd(b)[0].className=="sc-artwork-list"})};function Vn(a){Z.call(this,a);this.k=a}y(Vn,Z);var Wn=new og,Xn={};function Nn(a,b){if(b==Yn&amp;&amp;!Wn.contains(a)){Wn.add(a);b=new Vn(null,a);b.H(jd(a));return Xn[a]=b}else b==Zn&amp;&amp;Xn[a].dispatchEvent(ik)}Vn.prototype.Wa=function(){return this.c.getPlayheadTime()};Vn.prototype.F=function(a){Vn.d.F.call(this,a);this.c=a;this.h=O(this.a());this.ga()};Vn.prototype.ka=k("h");var Yn="apiReady",Zn="playheadTimeChanged";function $n(a){Z.call(this,null);this.Wh=a;this.gj=new I(100)}y($n,Z);var ao=new og;function On(a){if(!ao.contains(a)){ao.add(a);var b=new $n(a);b.H(jd(a));return b}return null}$n.prototype.F=function(a){$n.d.F.call(this,a);this.c=jd(this.Wh);this.h=O(this.a());this.lk=window.brightcove.getExperience(this.Wh);this.Ni=this.lk.getModule(window.APIModules.VIDEO_PLAYER);this.v().e(this.gj,J,w(this.dispatchEvent,this,ik));this.Ni.addEventListener(window.BCMediaEvent.PLAY,w(this.Od,this))};
$n.prototype.Wa=function(){return this.Ni.getVideoPosition()};$n.prototype.Od=function(){this.gj.start()};$n.prototype.ka=k("h");function Un(){Z.call(this,null);this.Sd=0}y(Un,Z);o=Un.prototype;o.Wa=k("Sd");o.F=function(a){Un.d.F.call(this,a);this.h=O(this.a());this.ga();var b=this;window.jQuery(document).bind("onMediaTimeUpdate.scPlayer",function(c){b.Sd=c.position/1E3;b.dispatchEvent(ik)})};o.Nh=function(a){Hj(a.a(),"z-index",1E3)};o.ka=k("h");o.Uc=function(){return[this.a()]};function vm(a,b){this.w=a;this.om=b;b=bo(this);b=new zm(b);a=new Jm(a,b);(new N(this)).e(a,"caption",this.Gf)}function bo(a){a=M("span","STtranscriptContent",a.om);a=D(a,function(c){return{subtitle_id:Y(),text:Nd(c),start_time:parseInt(c.getAttribute("name"))}});Hb(a,function(c,d){return Ib(c.start_time,d.start_time)});for(var b=0;b&lt;a.length;b++){a[b].sub_order=b+1;a[b].end_time=b&lt;a.length-1?a[b+1].start_time:-1}return a}vm.prototype.Gf=function(a){jk(this.w,a.caption?ym(a.caption):"")};if(!window.UnisubsWidgetizerLoaded){var co=Fn.oa();window.unisubsPlayerReady=w(co.Zg,co);Pn(co);Cj.oa().Fe||document.readyState=="complete"?co.Xi():Ec(Cj.oa(),"domloaded",co.Xi,false,co);Bn.prototype.play=Bn.prototype.Kb;Bn.prototype.pause=Bn.prototype.pause;Bn.prototype.playAt=Bn.prototype.Xl;Bn.prototype.openMenu=Bn.prototype.xg;ca("unisubs.widget.Widget.getWidgetByURL",zn,undefined);ca("unisubs.widget.Widget.getAllWidgets",yn,undefined);ca("mirosubs.widget.Widget.getWidgetByURL",zn,undefined);
ca("mirosubs.widget.Widget.getAllWidgets",yn,undefined)}window.UnisubsWidgetizerLoaded=true;})();
/*unisubs.static_version="da20c57a"*/
</pre></body></html>