/*
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
 @website: http://www.datejs.com/
: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
 @website: http://www.datejs.com/
*/
(function(a,b){function c(f,a,x){if(x===b&&f.nodeType===1)if(x="data-"+a.replace(T,"$1-$2").toLowerCase(),x=f.getAttribute(x),typeof x==="string"){try{x=x==="true"?!0:x==="false"?!1:x==="null"?null:!e.isNaN(x)?parseFloat(x):ca.test(x)?e.parseJSON(x):x}catch(c){}e.data(f,a,x)}else x=b;return x}function d(f){for(var a in f)if(a!=="toJSON")return!1;return!0}function h(f,a,x){var c=a+"defer",d=a+"queue",g=a+"mark",h=e.data(f,c,b,!0);h&&(x==="queue"||!e.data(f,d,b,!0))&&(x==="mark"||!e.data(f,g,b,!0))&&
setTimeout(function(){!e.data(f,d,b,!0)&&!e.data(f,g,b,!0)&&(e.removeData(f,c,!0),h.resolve())},0)}function g(){return!1}function k(){return!0}function n(f,a,x){var c=e.extend({},x[0]);c.type=f;c.originalEvent={};c.liveFired=b;e.event.handle.call(a,c);c.isDefaultPrevented()&&x[0].preventDefault()}function m(f){var a,b,c,d,g,h,j,k,m,n,o,u=[];d=[];g=e._data(this,"events");if(!(f.liveFired===this||!g||!g.live||f.target.disabled||f.button&&f.type==="click")){f.namespace&&(o=RegExp("(^|\\.)"+f.namespace.split(".").join("\\.(?:.*\\.)?")+
"(\\.|$)"));f.liveFired=this;var z=g.live.slice(0);for(j=0;j<z.length;j++)g=z[j],g.origType.replace(X,"")===f.type?d.push(g.selector):z.splice(j--,1);d=e(f.target).closest(d,f.currentTarget);k=0;for(m=d.length;k<m;k++){n=d[k];for(j=0;j<z.length;j++)if(g=z[j],n.selector===g.selector&&(!o||o.test(g.namespace))&&!n.elem.disabled){h=n.elem;c=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")f.type=g.preType,(c=e(f.relatedTarget).closest(g.selector)[0])&&e.contains(h,c)&&(c=h);(!c||c!==h)&&u.push({elem:h,
handleObj:g,level:n.level})}}k=0;for(m=u.length;k<m;k++){d=u[k];if(b&&d.level>b)break;f.currentTarget=d.elem;f.data=d.handleObj.data;f.handleObj=d.handleObj;o=d.handleObj.origHandler.apply(d.elem,arguments);if(o===!1||f.isPropagationStopped())if(b=d.level,o===!1&&(a=!1),f.isImmediatePropagationStopped())break}return a}}function j(f,a){return(f&&f!=="*"?f+".":"")+a.replace(Xa,"`").replace(Ya,"&")}function o(f,a,b){a=a||0;if(e.isFunction(a))return e.grep(f,function(f,e){return!!a.call(f,e,f)===b});
else if(a.nodeType)return e.grep(f,function(f){return f===a===b});else if(typeof a==="string"){var c=e.grep(f,function(f){return f.nodeType===1});if(Za.test(a))return e.filter(a,c,!b);else a=e.filter(a,c)}return e.grep(f,function(f){return e.inArray(f,a)>=0===b})}function q(f,a){if(a.nodeType===1&&e.hasData(f)){var b=e.expando,c=e.data(f),d=e.data(a,c);if(c=c[b]){var g=c.events;d=d[b]=e.extend({},c);if(g)for(var h in delete d.handle,d.events={},g){b=0;for(c=g[h].length;b<c;b++)e.event.add(a,h+(g[h][b].namespace?
".":"")+g[h][b].namespace,g[h][b],g[h][b].data)}}}}function A(f,a){var b;if(a&&a.nodeType&&a.nodeType===1){a.clearAttributes&&a.clearAttributes();a.mergeAttributes&&a.mergeAttributes(f);b=a.nodeName.toLowerCase();if(b==="object")a.outerHTML=f.outerHTML;else if(b==="input"&&(f.type==="checkbox"||f.type==="radio")){if(f.checked)a.defaultChecked=a.checked=f.checked;if(a.value!==f.value)a.value=f.value}else if(b==="option")a.selected=f.defaultSelected;else if(b==="input"||b==="textarea")a.defaultValue=
f.defaultValue;a.removeAttribute(e.expando)}}function y(f){return"getElementsByTagName"in f?f.getElementsByTagName("*"):"querySelectorAll"in f?f.querySelectorAll("*"):[]}function t(f){if(f.type==="checkbox"||f.type==="radio")f.defaultChecked=f.checked}function N(f){e.nodeName(f,"input")?t(f):f.getElementsByTagName&&e.grep(f.getElementsByTagName("input"),t)}function K(f,a){a.src?e.ajax({url:a.src,async:!1,dataType:"script"}):e.globalEval((a.text||a.textContent||a.innerHTML||"").replace($a,"/*$0*/"));
a.parentNode&&a.parentNode.removeChild(a)}function B(f,a,b){var c=a==="width"?f.offsetWidth:f.offsetHeight;if(b==="border")return c;e.each(a==="width"?ab:bb,function(){b||(c-=parseFloat(e.css(f,"padding"+this))||0);b==="margin"?c+=parseFloat(e.css(f,"margin"+this))||0:c-=parseFloat(e.css(f,"border"+this+"Width"))||0});return c}function D(f){return function(a,b){typeof a!=="string"&&(b=a,a="*");if(e.isFunction(b))for(var c=a.toLowerCase().split(Da),d=0,g=c.length,h,j;d<g;d++)h=c[d],(j=/^\+/.test(h))&&
(h=h.substr(1)||"*"),h=f[h]=f[h]||[],h[j?"unshift":"push"](b)}}function Q(f,a,e,c,d,g){d=d||a.dataTypes[0];g=g||{};g[d]=!0;d=f[d];for(var h=0,j=d?d.length:0,k=f===va,m;h<j&&(k||!m);h++)m=d[h](a,e,c),typeof m==="string"&&(!k||g[m]?m=b:(a.dataTypes.unshift(m),m=Q(f,a,e,c,m,g)));if((k||!m)&&!g["*"])m=Q(f,a,e,c,"*",g);return m}function R(f,a,b,c){if(e.isArray(a))e.each(a,function(a,p){b||cb.test(f)?c(f,p):R(f+"["+(typeof p==="object"||e.isArray(p)?a:"")+"]",p,b,c)});else if(!b&&a!=null&&typeof a==="object")for(var d in a)R(f+
"["+d+"]",a[d],b,c);else c(f,a)}function U(){try{return new a.XMLHttpRequest}catch(f){}}function G(){setTimeout(v,0);return pa=e.now()}function v(){pa=b}function O(f,a){var b={};e.each(Ea.concat.apply([],Ea.slice(0,a)),function(){b[this]=f});return b}function aa(f){if(!wa[f]){var a=e("<"+f+">").appendTo("body"),b=a.css("display");a.remove();if(b==="none"||b===""){if(!ba)ba=s.createElement("iframe"),ba.frameBorder=ba.width=ba.height=0;s.body.appendChild(ba);if(!ka||!ba.createElement)ka=(ba.contentWindow||
ba.contentDocument).document,ka.write("<!doctype><html><body></body></html>");a=ka.createElement(f);ka.body.appendChild(a);b=e.css(a,"display");s.body.removeChild(ba)}wa[f]=b}return wa[f]}function Y(f){return e.isWindow(f)?f:f.nodeType===9?f.defaultView||f.parentWindow:!1}var s=a.document,M=a.navigator,F=a.location,e=function(){function f(){if(!p.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(f,1);return}p.ready()}}var p=function(f,a){return new p.fn.init(f,a,d)},e=a.jQuery,c=
a.$,d,g=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,j=/^\s+/,m=/\s+$/,k=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,u=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,z=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,E=/(webkit)[ \/]([\w.]+)/,q=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,F=/(mozilla)(?:.*? rv:([\w.]+))?/,la=M.userAgent,qa,ga,db=Object.prototype.toString,xa=Object.prototype.hasOwnProperty,ya=Array.prototype.push,ma=Array.prototype.slice,
t=String.prototype.trim,C=Array.prototype.indexOf,N={};p.fn=p.prototype={constructor:p,init:function(f,a,e){var c;if(!f)return this;if(f.nodeType)return this.context=this[0]=f,this.length=1,this;if(f==="body"&&!a&&s.body)return this.context=s,this[0]=s.body,this.selector=f,this.length=1,this;if(typeof f==="string")if((c=f.charAt(0)==="<"&&f.charAt(f.length-1)===">"&&f.length>=3?[null,f,null]:g.exec(f))&&(c[1]||!a))if(c[1])return e=(a=a instanceof p?a[0]:a)?a.ownerDocument||a:s,(f=n.exec(f))?p.isPlainObject(a)?
(f=[s.createElement(f[1])],p.fn.attr.call(f,a,!0)):f=[e.createElement(f[1])]:(f=p.buildFragment([c[1]],[e]),f=(f.cacheable?p.clone(f.fragment):f.fragment).childNodes),p.merge(this,f);else{if((a=s.getElementById(c[2]))&&a.parentNode){if(a.id!==c[2])return e.find(f);this.length=1;this[0]=a}this.context=s;this.selector=f;return this}else return!a||a.jquery?(a||e).find(f):this.constructor(a).find(f);else if(p.isFunction(f))return e.ready(f);if(f.selector!==b)this.selector=f.selector,this.context=f.context;
return p.makeArray(f,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return ma.call(this,0)},get:function(f){return f==null?this.toArray():f<0?this[this.length+f]:this[f]},pushStack:function(f,a,b){var e=this.constructor();p.isArray(f)?ya.apply(e,f):p.merge(e,f);e.prevObject=this;e.context=this.context;if(a==="find")e.selector=this.selector+(this.selector?" ":"")+b;else if(a)e.selector=this.selector+"."+a+"("+b+")";return e},each:function(f,a){return p.each(this,
f,a)},ready:function(f){p.bindReady();qa.done(f);return this},eq:function(f){return f===-1?this.slice(f):this.slice(f,+f+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ma.apply(this,arguments),"slice",ma.call(arguments).join(","))},map:function(f){return this.pushStack(p.map(this,function(a,b){return f.call(a,b,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:ya,sort:[].sort,splice:[].splice};p.fn.init.prototype=
p.fn;p.extend=p.fn.extend=function(){var f,a,e,c,x,d=arguments[0]||{},g=1,H=arguments.length,h=!1;typeof d==="boolean"&&(h=d,d=arguments[1]||{},g=2);typeof d!=="object"&&!p.isFunction(d)&&(d={});H===g&&(d=this,--g);for(;g<H;g++)if((f=arguments[g])!=null)for(a in f)e=d[a],c=f[a],d!==c&&(h&&c&&(p.isPlainObject(c)||(x=p.isArray(c)))?(x?(x=!1,e=e&&p.isArray(e)?e:[]):e=e&&p.isPlainObject(e)?e:{},d[a]=p.extend(h,e,c)):c!==b&&(d[a]=c));return d};p.extend({noConflict:function(f){if(a.$===p)a.$=c;if(f&&a.jQuery===
p)a.jQuery=e;return p},isReady:!1,readyWait:1,holdReady:function(f){f?p.readyWait++:p.ready(!0)},ready:function(f){if(f===!0&&!--p.readyWait||f!==!0&&!p.isReady){if(!s.body)return setTimeout(p.ready,1);p.isReady=!0;f!==!0&&--p.readyWait>0||(qa.resolveWith(s,[p]),p.fn.trigger&&p(s).trigger("ready").unbind("ready"))}},bindReady:function(){if(!qa){qa=p._Deferred();if(s.readyState==="complete")return setTimeout(p.ready,1);if(s.addEventListener)s.addEventListener("DOMContentLoaded",ga,!1),a.addEventListener("load",
p.ready,!1);else if(s.attachEvent){s.attachEvent("onreadystatechange",ga);a.attachEvent("onload",p.ready);var b=!1;try{b=a.frameElement==null}catch(e){}s.documentElement.doScroll&&b&&f()}}},isFunction:function(f){return p.type(f)==="function"},isArray:Array.isArray||function(f){return p.type(f)==="array"},isWindow:function(f){return f&&typeof f==="object"&&"setInterval"in f},isNaN:function(f){return f==null||!k.test(f)||isNaN(f)},type:function(f){return f==null?String(f):N[db.call(f)]||"object"},
isPlainObject:function(f){if(!f||p.type(f)!=="object"||f.nodeType||p.isWindow(f))return!1;if(f.constructor&&!xa.call(f,"constructor")&&!xa.call(f.constructor.prototype,"isPrototypeOf"))return!1;for(var a in f);return a===b||xa.call(f,a)},isEmptyObject:function(f){for(var a in f)return!1;return!0},error:function(f){throw f;},parseJSON:function(f){if(typeof f!=="string"||!f)return null;f=p.trim(f);if(a.JSON&&a.JSON.parse)return a.JSON.parse(f);if(o.test(f.replace(u,"@").replace(z,"]").replace(I,"")))return(new Function("return "+
f))();p.error("Invalid JSON: "+f)},parseXML:function(f,b,e){a.DOMParser?(e=new DOMParser,b=e.parseFromString(f,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(f));e=b.documentElement;(!e||!e.nodeName||e.nodeName==="parsererror")&&p.error("Invalid XML: "+f);return b},noop:function(){},globalEval:function(f){f&&h.test(f)&&(a.execScript||function(f){a.eval.call(a,f)})(f)},nodeName:function(f,a){return f.nodeName&&f.nodeName.toUpperCase()===a.toUpperCase()},each:function(f,
a,e){var c,d=0,x=f.length,g=x===b||p.isFunction(f);if(e)if(g)for(c in f){if(a.apply(f[c],e)===!1)break}else for(;d<x;){if(a.apply(f[d++],e)===!1)break}else if(g)for(c in f){if(a.call(f[c],c,f[c])===!1)break}else for(;d<x;)if(a.call(f[d],d,f[d++])===!1)break;return f},trim:t?function(f){return f==null?"":t.call(f)}:function(f){return f==null?"":f.toString().replace(j,"").replace(m,"")},makeArray:function(f,a){var b=a||[];if(f!=null){var e=p.type(f);f.length==null||e==="string"||e==="function"||e===
"regexp"||p.isWindow(f)?ya.call(b,f):p.merge(b,f)}return b},inArray:function(f,a){if(C)return C.call(a,f);for(var b=0,e=a.length;b<e;b++)if(a[b]===f)return b;return-1},merge:function(f,a){var e=f.length,p=0;if(typeof a.length==="number")for(var c=a.length;p<c;p++)f[e++]=a[p];else for(;a[p]!==b;)f[e++]=a[p++];f.length=e;return f},grep:function(f,a,b){var e=[],p;b=!!b;for(var c=0,d=f.length;c<d;c++)p=!!a(f[c],c),b!==p&&e.push(f[c]);return e},map:function(f,a,e){var c,d,x=[],g=0,H=f.length;if(f instanceof
p||H!==b&&typeof H==="number"&&(H>0&&f[0]&&f[H-1]||H===0||p.isArray(f)))for(;g<H;g++)c=a(f[g],g,e),c!=null&&(x[x.length]=c);else for(d in f)c=a(f[d],d,e),c!=null&&(x[x.length]=c);return x.concat.apply([],x)},guid:1,proxy:function(f,a){if(typeof a==="string"){var e=f[a];a=f;f=e}if(!p.isFunction(f))return b;var c=ma.call(arguments,2);e=function(){return f.apply(a,c.concat(ma.call(arguments)))};e.guid=f.guid=f.guid||e.guid||p.guid++;return e},access:function(f,a,e,c,d,x){var g=f.length;if(typeof a===
"object"){for(var H in a)p.access(f,H,a[H],c,d,e);return f}if(e!==b){c=!x&&c&&p.isFunction(e);for(H=0;H<g;H++)d(f[H],a,c?e.call(f[H],H,d(f[H],a)):e,x);return f}return g?d(f[0],a):b},now:function(){return(new Date).getTime()},uaMatch:function(f){f=f.toLowerCase();f=E.exec(f)||q.exec(f)||A.exec(f)||f.indexOf("compatible")<0&&F.exec(f)||[];return{browser:f[1]||"",version:f[2]||"0"}},sub:function(){function f(a,e){return new f.fn.init(a,e)}p.extend(!0,f,this);f.superclass=this;f.fn=f.prototype=this();
f.fn.constructor=f;f.sub=this.sub;f.fn.init=function(e,b){b&&b instanceof p&&!(b instanceof f)&&(b=f(b));return p.fn.init.call(this,e,b,a)};f.fn.init.prototype=f.fn;var a=f(s);return f},browser:{}});p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(f,a){N["[object "+a+"]"]=a.toLowerCase()});la=p.uaMatch(la);if(la.browser)p.browser[la.browser]=!0,p.browser.version=la.version;if(p.browser.webkit)p.browser.safari=!0;h.test("\u00a0")&&(j=/^[\s\xA0]+/,m=/[\s\xA0]+$/);
d=p(s);s.addEventListener?ga=function(){s.removeEventListener("DOMContentLoaded",ga,!1);p.ready()}:s.attachEvent&&(ga=function(){s.readyState==="complete"&&(s.detachEvent("onreadystatechange",ga),p.ready())});return p}(),E="done fail isResolved isRejected promise then always pipe".split(" "),L=[].slice;e.extend({_Deferred:function(){var f=[],a,b,c,d={done:function(){if(!c){var b=arguments,x,g,h,j,m;a&&(m=a,a=0);x=0;for(g=b.length;x<g;x++)h=b[x],j=e.type(h),j==="array"?d.done.apply(d,h):j==="function"&&
f.push(h);m&&d.resolveWith(m[0],m[1])}return this},resolveWith:function(e,d){if(!c&&!a&&!b){d=d||[];b=1;try{for(;f[0];)f.shift().apply(e,d)}finally{a=[e,d],b=0}}return this},resolve:function(){d.resolveWith(this,arguments);return this},isResolved:function(){return!(!b&&!a)},cancel:function(){c=1;f=[];return this}};return d},Deferred:function(f){var a=e._Deferred(),b=e._Deferred(),c;e.extend(a,{then:function(f,b){a.done(f).fail(b);return this},always:function(){return a.done.apply(a,arguments).fail.apply(this,
arguments)},fail:b.done,rejectWith:b.resolveWith,reject:b.resolve,isRejected:b.isResolved,pipe:function(f,b){return e.Deferred(function(c){e.each({done:[f,"resolve"],fail:[b,"reject"]},function(f,b){var d=b[0],x=b[1],g;if(e.isFunction(d))a[f](function(){if((g=d.apply(this,arguments))&&e.isFunction(g.promise))g.promise().then(c.resolve,c.reject);else c[x](g)});else a[f](c[x])})}).promise()},promise:function(f){if(f==null){if(c)return c;c=f={}}for(var b=E.length;b--;)f[E[b]]=a[E[b]];return f}});a.done(b.cancel).fail(a.cancel);
delete a.cancel;f&&f.call(a,a);return a},when:function(f){function a(f){return function(a){b[f]=arguments.length>1?L.call(arguments,0):a;--g||h.resolveWith(h,L.call(b,0))}}var b=arguments,c=0,d=b.length,g=d,h=d<=1&&f&&e.isFunction(f.promise)?f:e.Deferred();if(d>1){for(;c<d;c++)b[c]&&e.isFunction(b[c].promise)?b[c].promise().then(a(c),h.reject):--g;g||h.resolveWith(h,b)}else h!==f&&h.resolveWith(h,d?[f]:[]);return h.promise()}});e.support=function(){var f=s.createElement("div"),a=s.documentElement,
b,e,c,d,g,h;f.setAttribute("className","t");f.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=f.getElementsByTagName("*");e=f.getElementsByTagName("a")[0];if(!b||!b.length||!e)return{};c=s.createElement("select");d=c.appendChild(s.createElement("option"));b=f.getElementsByTagName("input")[0];g={leadingWhitespace:f.firstChild.nodeType===3,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,
style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:b.value==="on",optSelected:d.selected,getSetAttribute:f.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};b.checked=!0;g.noCloneChecked=b.cloneNode(!0).checked;c.disabled=!0;g.optDisabled=!d.disabled;try{delete f.test}catch(j){g.deleteExpando=
!1}!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",function Wa(){g.noCloneEvent=!1;f.detachEvent("onclick",Wa)}),f.cloneNode(!0).fireEvent("onclick"));b=s.createElement("input");b.value="t";b.setAttribute("type","radio");g.radioValue=b.value==="t";b.setAttribute("checked","checked");f.appendChild(b);e=s.createDocumentFragment();e.appendChild(f.firstChild);g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked;f.innerHTML="";f.style.width=f.style.paddingLeft="1px";e=
s.createElement("body");c={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(h in c)e.style[h]=c[h];e.appendChild(f);a.insertBefore(e,a.firstChild);g.appendChecked=b.checked;g.boxModel=f.offsetWidth===2;if("zoom"in f.style)f.style.display="inline",f.style.zoom=1,g.inlineBlockNeedsLayout=f.offsetWidth===2,f.style.display="",f.innerHTML="<div style='width:4px;'></div>",g.shrinkWrapBlocks=f.offsetWidth!==2;f.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
c=f.getElementsByTagName("td");b=c[0].offsetHeight===0;c[0].style.display="";c[1].style.display="none";g.reliableHiddenOffsets=b&&c[0].offsetHeight===0;f.innerHTML="";if(s.defaultView&&s.defaultView.getComputedStyle)b=s.createElement("div"),b.style.width="0",b.style.marginRight="0",f.appendChild(b),g.reliableMarginRight=(parseInt((s.defaultView.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)===0;e.innerHTML="";a.removeChild(e);if(f.attachEvent)for(h in{submit:1,change:1,focusin:1})a=
"on"+h,b=a in f,b||(f.setAttribute(a,"return;"),b=typeof f[a]==="function"),g[h+"Bubbles"]=b;return g}();e.boxModel=e.support.boxModel;var ca=/^(?:\{.*\}|\[.*\])$/,T=/([a-z])([A-Z])/g;e.extend({cache:{},uuid:0,expando:"jQuery"+(e.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(f){f=f.nodeType?e.cache[f[e.expando]]:f[e.expando];return!!f&&!d(f)},data:function(f,a,c,d){if(e.acceptData(f)){var g=e.expando,h=typeof a===
"string",j=f.nodeType,m=j?e.cache:f,k=j?f[e.expando]:f[e.expando]&&e.expando;if(k&&(!d||!k||m[k][g])||!(h&&c===b)){if(!k)j?f[e.expando]=k=++e.uuid:k=e.expando;if(!m[k]&&(m[k]={},!j))m[k].toJSON=e.noop;if(typeof a==="object"||typeof a==="function")d?m[k][g]=e.extend(m[k][g],a):m[k]=e.extend(m[k],a);f=m[k];d&&(f[g]||(f[g]={}),f=f[g]);c!==b&&(f[e.camelCase(a)]=c);if(a==="events"&&!f[a])return f[g]&&f[g].events;return h?f[e.camelCase(a)]:f}}},removeData:function(f,b,c){if(e.acceptData(f)){var g=e.expando,
h=f.nodeType,j=h?e.cache:f,m=h?f[e.expando]:e.expando;if(j[m]){if(b){var k=c?j[m][g]:j[m];if(k&&(delete k[b],!d(k)))return}if(c&&(delete j[m][g],!d(j[m])))return;b=j[m][g];e.support.deleteExpando||j!=a?delete j[m]:j[m]=null;if(b){j[m]={};if(!h)j[m].toJSON=e.noop;j[m][g]=b}else h&&(e.support.deleteExpando?delete f[e.expando]:f.removeAttribute?f.removeAttribute(e.expando):f[e.expando]=null)}}},_data:function(f,a,b){return e.data(f,a,b,!0)},acceptData:function(f){if(f.nodeName){var a=e.noData[f.nodeName.toLowerCase()];
if(a)return!(a===!0||f.getAttribute("classid")!==a)}return!0}});e.fn.extend({data:function(f,a){var d=null;if(typeof f==="undefined"){if(this.length&&(d=e.data(this[0]),this[0].nodeType===1))for(var g=this[0].attributes,h,j=0,m=g.length;j<m;j++)h=g[j].name,h.indexOf("data-")===0&&(h=e.camelCase(h.substring(5)),c(this[0],h,d[h]));return d}else if(typeof f==="object")return this.each(function(){e.data(this,f)});var k=f.split(".");k[1]=k[1]?"."+k[1]:"";return a===b?(d=this.triggerHandler("getData"+k[1]+
"!",[k[0]]),d===b&&this.length&&(d=e.data(this[0],f),d=c(this[0],f,d)),d===b&&k[1]?this.data(k[0]):d):this.each(function(){var b=e(this),c=[k[0],a];b.triggerHandler("setData"+k[1]+"!",c);e.data(this,f,a);b.triggerHandler("changeData"+k[1]+"!",c)})},removeData:function(f){return this.each(function(){e.removeData(this,f)})}});e.extend({_mark:function(f,a){f&&(a=(a||"fx")+"mark",e.data(f,a,(e.data(f,a,b,!0)||0)+1,!0))},_unmark:function(f,a,c){f!==!0&&(c=a,a=f,f=!1);if(a){c=c||"fx";var d=c+"mark";(f=
f?0:(e.data(a,d,b,!0)||1)-1)?e.data(a,d,f,!0):(e.removeData(a,d,!0),h(a,c,"mark"))}},queue:function(f,a,c){if(f){a=(a||"fx")+"queue";var d=e.data(f,a,b,!0);c&&(!d||e.isArray(c)?d=e.data(f,a,e.makeArray(c),!0):d.push(c));return d||[]}},dequeue:function(f,a){a=a||"fx";var b=e.queue(f,a),c=b.shift();c==="inprogress"&&(c=b.shift());c&&(a==="fx"&&b.unshift("inprogress"),c.call(f,function(){e.dequeue(f,a)}));b.length||(e.removeData(f,a+"queue",!0),h(f,a,"queue"))}});e.fn.extend({queue:function(f,a){typeof f!==
"string"&&(a=f,f="fx");if(a===b)return e.queue(this[0],f);return this.each(function(){var b=e.queue(this,f,a);f==="fx"&&b[0]!=="inprogress"&&e.dequeue(this,f)})},dequeue:function(f){return this.each(function(){e.dequeue(this,f)})},delay:function(f,a){f=e.fx?e.fx.speeds[f]||f:f;a=a||"fx";return this.queue(a,function(){var b=this;setTimeout(function(){e.dequeue(b,a)},f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f){function a(){--h||c.resolveWith(d,[d])}typeof f!=="string"&&
(f=b);f=f||"fx";var c=e.Deferred(),d=this,g=d.length,h=1,j=f+"defer",m=f+"queue";f+="mark";for(var k;g--;)if(k=e.data(d[g],j,b,!0)||(e.data(d[g],m,b,!0)||e.data(d[g],f,b,!0))&&e.data(d[g],j,e._Deferred(),!0))h++,k.done(a);a();return c.promise()}});var da=/[\n\t\r]/g,S=/\s+/,V=/\r/g,ra=/^(?:button|input)$/i,w=/^(?:button|input|object|select|textarea)$/i,u=/^a(?:rea)?$/i,z=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,I=
/\:/,C,P;e.fn.extend({attr:function(f,a){return e.access(this,f,a,!0,e.attr)},removeAttr:function(f){return this.each(function(){e.removeAttr(this,f)})},prop:function(f,a){return e.access(this,f,a,!0,e.prop)},removeProp:function(f){f=e.propFix[f]||f;return this.each(function(){try{this[f]=b,delete this[f]}catch(a){}})},addClass:function(f){if(e.isFunction(f))return this.each(function(a){var b=e(this);b.addClass(f.call(this,a,b.attr("class")||""))});if(f&&typeof f==="string")for(var a=(f||"").split(S),
b=0,c=this.length;b<c;b++){var d=this[b];if(d.nodeType===1)if(d.className){for(var g=" "+d.className+" ",h=d.className,j=0,m=a.length;j<m;j++)g.indexOf(" "+a[j]+" ")<0&&(h+=" "+a[j]);d.className=e.trim(h)}else d.className=f}return this},removeClass:function(f){if(e.isFunction(f))return this.each(function(a){var b=e(this);b.removeClass(f.call(this,a,b.attr("class")))});if(f&&typeof f==="string"||f===b)for(var a=(f||"").split(S),c=0,d=this.length;c<d;c++){var g=this[c];if(g.nodeType===1&&g.className)if(f){for(var h=
(" "+g.className+" ").replace(da," "),j=0,m=a.length;j<m;j++)h=h.replace(" "+a[j]+" "," ");g.className=e.trim(h)}else g.className=""}return this},toggleClass:function(f,a){var b=typeof f,c=typeof a==="boolean";if(e.isFunction(f))return this.each(function(b){var c=e(this);c.toggleClass(f.call(this,b,c.attr("class"),a),a)});return this.each(function(){if(b==="string")for(var d,g=0,h=e(this),j=a,m=f.split(S);d=m[g++];)j=c?j:!h.hasClass(d),h[j?"addClass":"removeClass"](d);else if(b==="undefined"||b===
"boolean")this.className&&e._data(this,"__className__",this.className),this.className=this.className||f===!1?"":e._data(this,"__className__")||""})},hasClass:function(f){f=" "+f+" ";for(var a=0,b=this.length;a<b;a++)if((" "+this[a].className+" ").replace(da," ").indexOf(f)>-1)return!0;return!1},val:function(f){var a,c,d=this[0];if(!arguments.length){if(d){if((a=e.valHooks[d.nodeName.toLowerCase()]||e.valHooks[d.type])&&"get"in a&&(c=a.get(d,"value"))!==b)return c;return(d.value||"").replace(V,"")}return b}var g=
e.isFunction(f);return this.each(function(c){var d=e(this);if(this.nodeType===1&&(c=g?f.call(this,c,d.val()):f,c==null?c="":typeof c==="number"?c+="":e.isArray(c)&&(c=e.map(c,function(f){return f==null?"":f+""})),a=e.valHooks[this.nodeName.toLowerCase()]||e.valHooks[this.type],!a||!("set"in a)||a.set(this,c,"value")===b))this.value=c})}});e.extend({valHooks:{option:{get:function(f){var a=f.attributes.value;return!a||a.specified?f.value:f.text}},select:{get:function(f){var a,b=f.selectedIndex,c=[],
d=f.options;f=f.type==="select-one";if(b<0)return null;for(var g=f?b:0,h=f?b+1:d.length;g<h;g++)if(a=d[g],a.selected&&(e.support.optDisabled?!a.disabled:a.getAttribute("disabled")===null)&&(!a.parentNode.disabled||!e.nodeName(a.parentNode,"optgroup"))){a=e(a).val();if(f)return a;c.push(a)}if(f&&!c.length&&d.length)return e(d[b]).val();return c},set:function(f,a){var b=e.makeArray(a);e(f).find("option").each(function(){this.selected=e.inArray(e(this).val(),b)>=0});if(!b.length)f.selectedIndex=-1;return b}}},
attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(f,a,c,d){var g=f.nodeType;if(!f||g===3||g===8||g===2)return b;if(d&&a in e.attrFn)return e(f)[a](c);if(!("getAttribute"in f))return e.prop(f,a,c);var h;a=(g=g!==1||!e.isXMLDoc(f))&&e.attrFix[a]||a;d=e.attrHooks[a];if(!d)if(z.test(a)&&(typeof c==="boolean"||c===b||c.toLowerCase()===a.toLowerCase()))d=P;else if(C&&(e.nodeName(f,"form")||I.test(a)))d=C;return c!==b?c===null?(e.removeAttr(f,
a),b):d&&"set"in d&&g&&(h=d.set(f,c,a))!==b?h:(f.setAttribute(a,""+c),c):d&&"get"in d&&g?d.get(f,a):(h=f.getAttribute(a),h===null?b:h)},removeAttr:function(f,a){var b;if(f.nodeType===1&&(a=e.attrFix[a]||a,e.support.getSetAttribute?f.removeAttribute(a):(e.attr(f,a,""),f.removeAttributeNode(f.getAttributeNode(a))),z.test(a)&&(b=e.propFix[a]||a)in f))f[b]=!1},attrHooks:{type:{set:function(f,a){if(ra.test(f.nodeName)&&f.parentNode)e.error("type property can't be changed");else if(!e.support.radioValue&&
a==="radio"&&e.nodeName(f,"input")){var b=f.value;f.setAttribute("type",a);if(b)f.value=b;return a}}},tabIndex:{get:function(f){var a=f.getAttributeNode("tabIndex");return a&&a.specified?parseInt(a.value,10):w.test(f.nodeName)||u.test(f.nodeName)&&f.href?0:b}}},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(f,a,c){var d=f.nodeType;if(!f||d===3||d===8||d===2)return b;var g;a=(d!==1||!e.isXMLDoc(f))&&e.propFix[a]||a;d=e.propHooks[a];return c!==b?d&&"set"in d&&(g=d.set(f,c,a))!==b?g:f[a]=c:d&&"get"in d&&(g=d.get(f,a))!==b?g:f[a]},propHooks:{}});P={get:function(f,a){return f[e.propFix[a]||a]?a.toLowerCase():b},set:function(f,a,b){var c;a===!1?e.removeAttr(f,b):(c=e.propFix[b]||b,c in f&&(f[c]=a),f.setAttribute(b,b.toLowerCase()));return b}};e.attrHooks.value={get:function(f,a){if(C&&e.nodeName(f,
"button"))return C.get(f,a);return f.value},set:function(a,b,c){if(C&&e.nodeName(a,"button"))return C.set(a,b,c);a.value=b}};if(!e.support.getSetAttribute)e.attrFix=e.propFix,C=e.attrHooks.name=e.valHooks.button={get:function(a,e){var c;return(c=a.getAttributeNode(e))&&c.nodeValue!==""?c.nodeValue:b},set:function(a,b,e){if(a=a.getAttributeNode(e))return a.nodeValue=b}},e.each(["width","height"],function(a,b){e.attrHooks[b]=e.extend(e.attrHooks[b],{set:function(a,f){if(f==="")return a.setAttribute(b,
"auto"),f}})});e.support.hrefNormalized||e.each(["href","src","width","height"],function(a,c){e.attrHooks[c]=e.extend(e.attrHooks[c],{get:function(a){a=a.getAttribute(c,2);return a===null?b:a}})});if(!e.support.style)e.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}};if(!e.support.optSelected)e.propHooks.selected=e.extend(e.propHooks.selected,{get:function(){}});e.support.checkOn||e.each(["radio","checkbox"],function(){e.valHooks[this]=
{get:function(a){return a.getAttribute("value")===null?"on":a.value}}});e.each(["radio","checkbox"],function(){e.valHooks[this]=e.extend(e.valHooks[this],{set:function(a,b){if(e.isArray(b))return a.checked=e.inArray(e(a).val(),b)>=0}})});var X=/\.(.*)$/,Z=/^(?:textarea|input|select)$/i,Xa=/\./g,Ya=/ /g,eb=/[^\w\s.|`]/g,fb=function(a){return a.replace(eb,"\\$&")};e.event={add:function(a,c,d,h){if(!(a.nodeType===3||a.nodeType===8)){if(d===!1)d=g;else if(!d)return;var j,m;if(d.handler)j=d,d=j.handler;
if(!d.guid)d.guid=e.guid++;if(m=e._data(a)){var k=m.events,n=m.handle;if(!k)m.events=k={};if(!n)m.handle=n=function(a){return typeof e!=="undefined"&&(!a||e.event.triggered!==a.type)?e.event.handle.apply(n.elem,arguments):b};n.elem=a;c=c.split(" ");for(var o,u=0,z;o=c[u++];){m=j?e.extend({},j):{handler:d,data:h};o.indexOf(".")>-1?(z=o.split("."),o=z.shift(),m.namespace=z.slice(0).sort().join(".")):(z=[],m.namespace="");m.type=o;if(!m.guid)m.guid=d.guid;var I=k[o],E=e.event.special[o]||{};if(!I&&(I=
k[o]=[],!E.setup||E.setup.call(a,h,z,n)===!1))a.addEventListener?a.addEventListener(o,n,!1):a.attachEvent&&a.attachEvent("on"+o,n);if(E.add&&(E.add.call(a,m),!m.handler.guid))m.handler.guid=d.guid;I.push(m);e.event.global[o]=!0}a=null}}},global:{},remove:function(a,c,d,h){if(!(a.nodeType===3||a.nodeType===8)){d===!1&&(d=g);var j,m,k=0,n,o,u,z,I,E,q=e.hasData(a)&&e._data(a),A=q&&q.events;if(q&&A){if(c&&c.type)d=c.handler,c=c.type;if(!c||typeof c==="string"&&c.charAt(0)===".")for(j in c=c||"",A)e.event.remove(a,
j+c);else{for(c=c.split(" ");j=c[k++];)if(z=j,n=j.indexOf(".")<0,o=[],n||(o=j.split("."),j=o.shift(),u=RegExp("(^|\\.)"+e.map(o.slice(0).sort(),fb).join("\\.(?:.*\\.)?")+"(\\.|$)")),I=A[j])if(d){z=e.event.special[j]||{};for(m=h||0;m<I.length;m++)if(E=I[m],d.guid===E.guid){if(n||u.test(E.namespace))h==null&&I.splice(m--,1),z.remove&&z.remove.call(a,E);if(h!=null)break}if(I.length===0||h!=null&&I.length===1)(!z.teardown||z.teardown.call(a,o)===!1)&&e.removeEvent(a,j,q.handle),delete A[j]}else for(m=
0;m<I.length;m++)if(E=I[m],n||u.test(E.namespace))e.event.remove(a,z,E.handler,m),I.splice(m--,1);if(e.isEmptyObject(A)){if(c=q.handle)c.elem=null;delete q.events;delete q.handle;e.isEmptyObject(q)&&e.removeData(a,b,!0)}}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(f,c,d,g){var h=f.type||f,j=[],m;h.indexOf("!")>=0&&(h=h.slice(0,-1),m=!0);h.indexOf(".")>=0&&(j=h.split("."),h=j.shift(),j.sort());if(d&&!e.event.customEvent[h]||e.event.global[h]){f=typeof f==="object"?f[e.expando]?
f:new e.Event(h,f):new e.Event(h);f.type=h;f.exclusive=m;f.namespace=j.join(".");f.namespace_re=RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!d)f.preventDefault(),f.stopPropagation();if(d){if(!(d.nodeType===3||d.nodeType===8)){f.result=b;f.target=d;c=c?e.makeArray(c):[];c.unshift(f);j=d;g=h.indexOf(":")<0?"on"+h:"";do{m=e._data(j,"handle");f.currentTarget=j;m&&m.apply(j,c);if(g&&e.acceptData(j)&&j[g]&&j[g].apply(j,c)===!1)f.result=!1,f.preventDefault();j=j.parentNode||j.ownerDocument||
j===f.target.ownerDocument&&a}while(j&&!f.isPropagationStopped());if(!f.isDefaultPrevented()){var k;j=e.event.special[h]||{};if((!j._default||j._default.call(d.ownerDocument,f)===!1)&&!(h==="click"&&e.nodeName(d,"a"))&&e.acceptData(d)){try{if(g&&d[h])(k=d[g])&&(d[g]=null),e.event.triggered=h,d[h]()}catch(n){}k&&(d[g]=k);e.event.triggered=b}}return f.result}}else e.each(e.cache,function(){var a=this[e.expando];a&&a.events&&a.events[h]&&e.event.trigger(f,c,a.handle.elem)})}},handle:function(f){f=e.event.fix(f||
a.event);var c=((e._data(this,"events")||{})[f.type]||[]).slice(0),d=!f.exclusive&&!f.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=f;f.currentTarget=this;for(var h=0,j=c.length;h<j;h++){var m=c[h];if(d||f.namespace_re.test(m.namespace)){f.handler=m.handler;f.data=m.data;f.handleObj=m;m=m.handler.apply(this,g);if(m!==b)f.result=m,m===!1&&(f.preventDefault(),f.stopPropagation());if(f.isImmediatePropagationStopped())break}}return f.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[e.expando])return a;var c=a;a=e.Event(c);for(var d=this.props.length,g;d;)g=this.props[--d],a[g]=c[g];if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null)d=a.target.ownerDocument||s,c=d.documentElement,d=d.body,a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c&&c.clientLeft||d&&d.clientLeft||0),
a.pageY=a.clientY+(c&&c.scrollTop||d&&d.scrollTop||0)-(c&&c.clientTop||d&&d.clientTop||0);if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==b)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:e.proxy,special:{ready:{setup:e.bindReady,teardown:e.noop},live:{add:function(a){e.event.add(this,j(a.origType,a.selector),e.extend({},a,{handler:m,guid:a.handler.guid}))},
remove:function(a){e.event.remove(this,j(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){if(e.isWindow(this))this.onbeforeunload=c},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};e.removeEvent=s.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};e.Event=function(a,b){if(!this.preventDefault)return new e.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=
a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?k:g):this.type=a;b&&e.extend(this,b);this.timeStamp=e.now();this[e.expando]=!0};e.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=k;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
k;this.stopPropagation()},isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g};var Fa=function(a){var b=a.relatedTarget;a.type=a.data;try{if(!b||b===s||b.parentNode){for(;b&&b!==this;)b=b.parentNode;b!==this&&e.event.handle.apply(this,arguments)}}catch(c){}},Ga=function(a){a.type=a.data;e.event.handle.apply(this,arguments)};e.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){e.event.special[a]={setup:function(c){e.event.add(this,b,c&&c.selector?Ga:Fa,a)},teardown:function(a){e.event.remove(this,
b,a&&a.selector?Ga:Fa)}}});if(!e.support.submitBubbles)e.event.special.submit={setup:function(){if(e.nodeName(this,"form"))return!1;else e.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&e(b).closest("form").length&&n("submit",this,arguments)}),e.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&e(b).closest("form").length&&a.keyCode===13&&n("submit",this,arguments)})},teardown:function(){e.event.remove(this,
".specialSubmit")}};if(!e.support.changeBubbles){var na,Ha=function(a){var b=a.type,c=a.value;if(b==="radio"||b==="checkbox")c=a.checked;else if(b==="select-multiple")c=a.selectedIndex>-1?e.map(a.options,function(a){return a.selected}).join("-"):"";else if(e.nodeName(a,"select"))c=a.selectedIndex;return c},sa=function(a,c){var d=a.target,g,h;if(Z.test(d.nodeName)&&!d.readOnly&&(g=e._data(d,"_change_data"),h=Ha(d),(a.type!=="focusout"||d.type!=="radio")&&e._data(d,"_change_data",h),!(g===b||h===g)))if(g!=
null||h)a.type="change",a.liveFired=b,e.event.trigger(a,c,d)};e.event.special.change={filters:{focusout:sa,beforedeactivate:sa,click:function(a){var b=a.target,c=e.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||e.nodeName(b,"select"))&&sa.call(this,a)},keydown:function(a){var b=a.target,c=e.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!e.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&sa.call(this,a)},beforeactivate:function(a){a=a.target;
e._data(a,"_change_data",Ha(a))}},setup:function(){if(this.type==="file")return!1;for(var a in na)e.event.add(this,a+".specialChange",na[a]);return Z.test(this.nodeName)},teardown:function(){e.event.remove(this,".specialChange");return Z.test(this.nodeName)}};na=e.event.special.change.filters;na.focus=na.beforeactivate}e.support.focusinBubbles||e.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){var f=e.event.fix(a);f.type=b;f.originalEvent={};e.event.trigger(f,null,f.target);f.isDefaultPrevented()&&
a.preventDefault()}var d=0;e.event.special[b]={setup:function(){d++===0&&s.addEventListener(a,c,!0)},teardown:function(){--d===0&&s.removeEventListener(a,c,!0)}}});e.each(["bind","one"],function(a,c){e.fn[c]=function(a,f,d){var g;if(typeof a==="object"){for(var h in a)this[c](h,f,a[h],d);return this}if(arguments.length===2||f===!1)d=f,f=b;c==="one"?(g=function(a){e(this).unbind(a,g);return d.apply(this,arguments)},g.guid=d.guid||e.guid++):g=d;if(a==="unload"&&c!=="one")this.one(a,f,d);else{h=0;for(var j=
this.length;h<j;h++)e.event.add(this[h],a,g,f)}return this}});e.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else{c=0;for(var d=this.length;c<d;c++)e.event.remove(this[c],a,b)}return this},delegate:function(a,b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){e.event.trigger(a,b,this)})},triggerHandler:function(a,
b){if(this[0])return e.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||e.guid++,d=0,g=function(c){var g=(e.data(this,"lastToggle"+a.guid)||0)%d;e.data(this,"lastToggle"+a.guid,g+1);c.preventDefault();return b[g].apply(this,arguments)||!1};for(g.guid=c;d<b.length;)b[d++].guid=c;return this.click(g)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var za={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};e.each(["live","die"],
function(a,c){e.fn[c]=function(a,f,d,h){var m=0,k,n,o=h||this.selector,u=h?this:e(this.context);if(typeof a==="object"&&!a.preventDefault){for(k in a)u[c](k,f,a[k],o);return this}if(c==="die"&&!a&&h&&h.charAt(0)===".")return u.unbind(h),this;if(f===!1||e.isFunction(f))d=f||g,f=b;for(a=(a||"").split(" ");(h=a[m++])!=null;)if(k=X.exec(h),n="",k&&(n=k[0],h=h.replace(X,"")),h==="hover")a.push("mouseenter"+n,"mouseleave"+n);else if(k=h,za[h]?(a.push(za[h]+n),h+=n):h=(za[h]||h)+n,c==="live"){n=0;for(var z=
u.length;n<z;n++)e.event.add(u[n],"live."+j(h,o),{data:f,selector:o,handler:d,origType:h,origHandler:d,preType:k})}else u.unbind("live."+j(h,o),d);return this}});e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){e.fn[b]=function(a,f){f==null&&(f=a,a=null);return arguments.length>0?this.bind(b,a,f):this.trigger(b)};e.attrFn&&(e.attrFn[b]=
!0)});(function(){function a(f,b,c,e,d,g){d=0;for(var h=e.length;d<h;d++){var j=e[d];if(j){var p=!1;for(j=j[f];j;){if(j.sizcache===c){p=e[j.sizset];break}if(j.nodeType===1&&!g)j.sizcache=c,j.sizset=d;if(j.nodeName.toLowerCase()===b){p=j;break}j=j[f]}e[d]=p}}}function c(a,f,b,e,d,g){d=0;for(var h=e.length;d<h;d++){var j=e[d];if(j){var p=!1;for(j=j[a];j;){if(j.sizcache===b){p=e[j.sizset];break}if(j.nodeType===1){if(!g)j.sizcache=b,j.sizset=d;if(typeof f!=="string"){if(j===f){p=!0;break}}else if(o.filter(f,
[j]).length>0){p=j;break}}j=j[a]}e[d]=p}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,g=0,h=Object.prototype.toString,j=!1,m=!0,k=/\\/g,n=/\W/;[0,0].sort(function(){m=!1;return 0});var o=function(a,f,b,c){b=b||[];var e=f=f||s;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!a||typeof a!=="string")return b;var g,j,p,m,k,H=!0,n=o.isXML(f),J=[],I=a;do if(d.exec(""),g=d.exec(I))if(I=g[3],J.push(g[1]),g[2]){m=
g[3];break}while(g);if(J.length>1&&z.exec(a))if(J.length===2&&u.relative[J[0]])j=t(J[0]+J[1],f);else for(j=u.relative[J[0]]?[f]:o(J.shift(),f);J.length;)a=J.shift(),u.relative[a]&&(a+=J.shift()),j=t(a,j);else if(!c&&J.length>1&&f.nodeType===9&&!n&&u.match.ID.test(J[0])&&!u.match.ID.test(J[J.length-1])&&(g=o.find(J.shift(),f,n),f=g.expr?o.filter(g.expr,g.set)[0]:g.set[0]),f){g=c?{expr:J.pop(),set:q(c)}:o.find(J.pop(),J.length===1&&(J[0]==="~"||J[0]==="+")&&f.parentNode?f.parentNode:f,n);j=g.expr?o.filter(g.expr,
g.set):g.set;for(J.length>0?p=q(j):H=!1;J.length;)g=k=J.pop(),u.relative[k]?g=J.pop():k="",g==null&&(g=f),u.relative[k](p,g,n)}else p=[];p||(p=j);p||o.error(k||a);if(h.call(p)==="[object Array]")if(H)if(f&&f.nodeType===1)for(a=0;p[a]!=null;a++)p[a]&&(p[a]===!0||p[a].nodeType===1&&o.contains(f,p[a]))&&b.push(j[a]);else for(a=0;p[a]!=null;a++)p[a]&&p[a].nodeType===1&&b.push(j[a]);else b.push.apply(b,p);else q(p,b);m&&(o(m,e,b,c),o.uniqueSort(b));return b};o.uniqueSort=function(a){if(M&&(j=m,a.sort(M),
j))for(var f=1;f<a.length;f++)a[f]===a[f-1]&&a.splice(f--,1);return a};o.matches=function(a,f){return o(a,null,null,f)};o.matchesSelector=function(a,f){return o(f,null,null,[a]).length>0};o.find=function(a,f,b){var c;if(!a)return[];for(var e=0,d=u.order.length;e<d;e++){var g,h=u.order[e];if(g=u.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"&&(g[1]=(g[1]||"").replace(k,""),c=u.find[h](g,f,b),c!=null)){a=a.replace(u.match[h],"");break}}}c||(c=typeof f.getElementsByTagName!==
"undefined"?f.getElementsByTagName("*"):[]);return{set:c,expr:a}};o.filter=function(a,f,c,e){for(var d,g,h=a,j=[],p=f,m=f&&f[0]&&o.isXML(f[0]);a&&f.length;){for(var k in u.filter)if((d=u.leftMatch[k].exec(a))!=null&&d[2]){var x,H,n=u.filter[k];H=d[1];g=!1;d.splice(1,1);if(H.substr(H.length-1)!=="\\"){p===j&&(j=[]);if(u.preFilter[k])if(d=u.preFilter[k](d,p,c,j,e,m)){if(d===!0)continue}else g=x=!0;if(d)for(var oa=0;(H=p[oa])!=null;oa++)if(H){x=n(H,d,oa,p);var J=e^!!x;c&&x!=null?J?g=!0:p[oa]=!1:J&&(j.push(H),
g=!0)}if(x!==b){c||(p=j);a=a.replace(u.match[k],"");if(!g)return[];break}}}if(a===h)if(g==null)o.error(a);else break;h=a}return p};o.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var u=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,f){var b=
typeof f==="string",c=b&&!n.test(f);b=b&&!c;c&&(f=f.toLowerCase());c=0;for(var e=a.length,d;c<e;c++)if(d=a[c]){for(;(d=d.previousSibling)&&d.nodeType!==1;);a[c]=b||d&&d.nodeName.toLowerCase()===f?d||!1:d===f}b&&o.filter(f,a,!0)},">":function(a,f){var b,c=typeof f==="string",e=0,d=a.length;if(c&&!n.test(f))for(f=f.toLowerCase();e<d;e++){if(b=a[e])b=b.parentNode,a[e]=b.nodeName.toLowerCase()===f?b:!1}else{for(;e<d;e++)(b=a[e])&&(a[e]=c?b.parentNode:b.parentNode===f);c&&o.filter(f,a,!0)}},"":function(b,
e,d){var h,j=g++,m=c;typeof e==="string"&&!n.test(e)&&(h=e=e.toLowerCase(),m=a);m("parentNode",e,j,b,h,d)},"~":function(b,e,d){var h,j=g++,m=c;typeof e==="string"&&!n.test(e)&&(h=e=e.toLowerCase(),m=a);m("previousSibling",e,j,b,h,d)}},find:{ID:function(a,f,b){if(typeof f.getElementById!=="undefined"&&!b)return(a=f.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,f){if(typeof f.getElementsByName!=="undefined"){for(var b=[],c=f.getElementsByName(a[1]),e=0,d=c.length;e<d;e++)c[e].getAttribute("name")===
a[1]&&b.push(c[e]);return b.length===0?null:b}},TAG:function(a,f){if(typeof f.getElementsByTagName!=="undefined")return f.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,f,b,c,e,d){a=" "+a[1].replace(k,"")+" ";if(d)return a;d=0;for(var g;(g=f[d])!=null;d++)g&&(e^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?b||c.push(g):b&&(f[d]=!1));return!1},ID:function(a){return a[1].replace(k,"")},TAG:function(a){return a[1].replace(k,"").toLowerCase()},CHILD:function(a){if(a[1]===
"nth"){a[2]||o.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var f=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=f[1]+(f[2]||1)-0;a[3]=f[3]-0}else a[2]&&o.error(a[0]);a[0]=g++;return a},ATTR:function(a,f,b,c,e,d){f=a[1]=a[1].replace(k,"");!d&&u.attrMap[f]&&(a[1]=u.attrMap[f]);a[4]=(a[4]||a[5]||"").replace(k,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,f,b,c,e){if(a[1]==="not")if((d.exec(a[3])||"").length>1||
/^\w/.test(a[3]))a[3]=o(a[3],null,null,f);else return a=o.filter(a[3],f,b,1^e),b||c.push.apply(c,a),!1;else if(u.match.POS.test(a[0])||u.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},
has:function(a,f,b){return!!o(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var f=a.getAttribute("type"),b=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===b&&(f===b||f===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()===
"input"&&"password"===a.type},submit:function(a){var f=a.nodeName.toLowerCase();return(f==="input"||f==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var f=a.nodeName.toLowerCase();return(f==="input"||f==="button")&&"reset"===a.type},button:function(a){var f=a.nodeName.toLowerCase();return f==="input"&&"button"===a.type||f==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===
a.ownerDocument.activeElement}},setFilters:{first:function(a,f){return f===0},last:function(a,f,b,c){return f===c.length-1},even:function(a,f){return f%2===0},odd:function(a,f){return f%2===1},lt:function(a,f,b){return f<b[3]-0},gt:function(a,f,b){return f>b[3]-0},nth:function(a,f,b){return b[3]-0===f},eq:function(a,f,b){return b[3]-0===f}},filter:{PSEUDO:function(a,f,b,c){var e=f[1],d=u.filters[e];if(d)return d(a,b,f,c);else if(e==="contains")return(a.textContent||a.innerText||o.getText([a])||"").indexOf(f[3])>=
0;else if(e==="not"){f=f[3];b=0;for(c=f.length;b<c;b++)if(f[b]===a)return!1;return!0}else o.error(e)},CHILD:function(a,f){var b=f[1],c=a;switch(b){case "only":case "first":for(;c=c.previousSibling;)if(c.nodeType===1)return!1;if(b==="first")return!0;c=a;case "last":for(;c=c.nextSibling;)if(c.nodeType===1)return!1;return!0;case "nth":b=f[2];var e=f[3];if(b===1&&e===0)return!0;var d=f[0],g=a.parentNode;if(g&&(g.sizcache!==d||!a.nodeIndex)){var h=0;for(c=g.firstChild;c;c=c.nextSibling)if(c.nodeType===
1)c.nodeIndex=++h;g.sizcache=d}c=a.nodeIndex-e;return b===0?c===0:c%b===0&&c/b>=0}},ID:function(a,f){return a.nodeType===1&&a.getAttribute("id")===f},TAG:function(a,f){return f==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===f},CLASS:function(a,f){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(a,f){var b=f[1];b=u.attrHandle[b]?u.attrHandle[b](a):a[b]!=null?a[b]:a.getAttribute(b);var c=b+"",e=f[2],d=f[4];return b==null?e==="!=":e==="="?c===d:e==="*="?c.indexOf(d)>=
0:e==="~="?(" "+c+" ").indexOf(d)>=0:!d?c&&b!==!1:e==="!="?c!==d:e==="^="?c.indexOf(d)===0:e==="$="?c.substr(c.length-d.length)===d:e==="|="?c===d||c.substr(0,d.length+1)===d+"-":!1},POS:function(a,f,b,c){var e=u.setFilters[f[2]];if(e)return e(a,b,f,c)}}},z=u.match.POS,I=function(a,f){return"\\"+(f-0+1)},E;for(E in u.match)u.match[E]=RegExp(u.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[E]=RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[E].source.replace(/\\(\d+)/g,I));var q=function(a,
f){a=Array.prototype.slice.call(a,0);if(f)return f.push.apply(f,a),f;return a};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(A){q=function(a,f){var b=0,c=f||[];if(h.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var e=a.length;b<e;b++)c.push(a[b]);else for(;a[b];b++)c.push(a[b]);return c}}var M,F;s.documentElement.compareDocumentPosition?M=function(a,f){if(a===f)return j=!0,0;if(!a.compareDocumentPosition||!f.compareDocumentPosition)return a.compareDocumentPosition?
-1:1;return a.compareDocumentPosition(f)&4?-1:1}:(M=function(a,f){if(a===f)return j=!0,0;else if(a.sourceIndex&&f.sourceIndex)return a.sourceIndex-f.sourceIndex;var b,c,e=[],d=[];b=a.parentNode;c=f.parentNode;var g=b;if(b===c)return F(a,f);else if(b){if(!c)return 1}else return-1;for(;g;)e.unshift(g),g=g.parentNode;for(g=c;g;)d.unshift(g),g=g.parentNode;b=e.length;c=d.length;for(g=0;g<b&&g<c;g++)if(e[g]!==d[g])return F(e[g],d[g]);return g===b?F(a,d[g],-1):F(e[g],f,1)},F=function(a,f,b){if(a===f)return b;
for(a=a.nextSibling;a;){if(a===f)return-1;a=a.nextSibling}return 1});o.getText=function(a){for(var f="",b,c=0;a[c];c++)b=a[c],b.nodeType===3||b.nodeType===4?f+=b.nodeValue:b.nodeType!==8&&(f+=o.getText(b.childNodes));return f};(function(){var a=s.createElement("div"),f="script"+(new Date).getTime(),c=s.documentElement;a.innerHTML="<a name='"+f+"'/>";c.insertBefore(a,c.firstChild);if(s.getElementById(f))u.find.ID=function(a,f,c){if(typeof f.getElementById!=="undefined"&&!c)return(f=f.getElementById(a[1]))?
f.id===a[1]||typeof f.getAttributeNode!=="undefined"&&f.getAttributeNode("id").nodeValue===a[1]?[f]:b:[]},u.filter.ID=function(a,f){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===f};c.removeChild(a);c=a=null})();(function(){var a=s.createElement("div");a.appendChild(s.createComment(""));if(a.getElementsByTagName("*").length>0)u.find.TAG=function(a,f){var b=f.getElementsByTagName(a[1]);if(a[1]==="*"){for(var c=[],e=0;b[e];e++)b[e].nodeType===
1&&c.push(b[e]);b=c}return b};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();s.querySelectorAll&&function(){var a=o,f=s.createElement("div");f.innerHTML="<p class='TEST'></p>";if(!(f.querySelectorAll&&f.querySelectorAll(".TEST").length===0)){o=function(f,b,c,e){b=b||s;if(!e&&!o.isXML(b)){var d=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(f);
if(d&&(b.nodeType===1||b.nodeType===9))if(d[1])return q(b.getElementsByTagName(f),c);else if(d[2]&&u.find.CLASS&&b.getElementsByClassName)return q(b.getElementsByClassName(d[2]),c);if(b.nodeType===9){if(f==="body"&&b.body)return q([b.body],c);else if(d&&d[3]){var g=b.getElementById(d[3]);if(g&&g.parentNode){if(g.id===d[3])return q([g],c)}else return q([],c)}try{return q(b.querySelectorAll(f),c)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){d=b;var j=(g=b.getAttribute("id"))||
"__sizzle__",p=b.parentNode,m=/^\s*[+~]/.test(f);g?j=j.replace(/'/g,"\\$&"):b.setAttribute("id",j);if(m&&p)b=b.parentNode;try{if(!m||p)return q(b.querySelectorAll("[id='"+j+"'] "+f),c)}catch(k){}finally{g||d.removeAttribute("id")}}}return a(f,b,c,e)};for(var b in a)o[b]=a[b];f=null}}();(function(){var a=s.documentElement,f=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(f){var b=!f.call(s.createElement("div"),"div"),c=!1;try{f.call(s.documentElement,"[test!='']:sizzle")}catch(e){c=
!0}o.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!o.isXML(a))try{if(c||!u.match.PSEUDO.test(e)&&!/!=/.test(e)){var d=f.call(a,e);if(d||!b||a.document&&a.document.nodeType!==11)return d}}catch(g){}return o(e,null,null,[a]).length>0}}})();(function(){var a=s.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==
1))u.order.splice(1,0,"CLASS"),u.find.CLASS=function(a,f,b){if(typeof f.getElementsByClassName!=="undefined"&&!b)return f.getElementsByClassName(a[1])},a=null})();o.contains=s.documentElement.contains?function(a,f){return a!==f&&(a.contains?a.contains(f):!0)}:s.documentElement.compareDocumentPosition?function(a,f){return!!(a.compareDocumentPosition(f)&16)}:function(){return!1};o.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var t=function(a,f){for(var b,
c=[],e="",d=f.nodeType?[f]:f;b=u.match.PSEUDO.exec(a);)e+=b[0],a=a.replace(u.match.PSEUDO,"");a=u.relative[a]?a+"*":a;b=0;for(var g=d.length;b<g;b++)o(a,d[b],c);return o.filter(e,c)};e.find=o;e.expr=o.selectors;e.expr[":"]=e.expr.filters;e.unique=o.uniqueSort;e.text=o.getText;e.isXMLDoc=o.isXML;e.contains=o.contains})();var gb=/Until$/,hb=/^(?:parents|prevUntil|prevAll)/,ib=/,/,Za=/^.[^:#\[\.,]*$/,jb=Array.prototype.slice,Ia=e.expr.match.POS,kb={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({find:function(a){var b=
this,c,d;if(typeof a!=="string")return e(a).filter(function(){c=0;for(d=b.length;c<d;c++)if(e.contains(b[c],this))return!0});var g=this.pushStack("","find",a),h,j,m;c=0;for(d=this.length;c<d;c++)if(h=g.length,e.find(a,this[c],g),c>0)for(j=h;j<g.length;j++)for(m=0;m<h;m++)if(g[m]===g[j]){g.splice(j--,1);break}return g},has:function(a){var b=e(a);return this.filter(function(){for(var a=0,f=b.length;a<f;a++)if(e.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(o(this,a,!1),"not",
a)},filter:function(a){return this.pushStack(o(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?e.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,g,h=this[0];if(e.isArray(a)){var j,m={},k=1;if(h&&a.length){d=0;for(g=a.length;d<g;d++)j=a[d],m[j]||(m[j]=Ia.test(j)?e(j,b||this.context):j);for(;h&&h.ownerDocument&&h!==b;){for(j in m)d=m[j],(d.jquery?d.index(h)>-1:e(h).is(d))&&c.push({selector:j,elem:h,level:k});h=h.parentNode;k++}}return c}j=Ia.test(a)||
typeof a!=="string"?e(a,b||this.context):0;d=0;for(g=this.length;d<g;d++)for(h=this[d];h;)if(j?j.index(h)>-1:e.find.matchesSelector(h,a)){c.push(h);break}else if(h=h.parentNode,!h||!h.ownerDocument||h===b||h.nodeType===11)break;c=c.length>1?e.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return e.inArray(this[0],a?e(a):this.parent().children());return e.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?e(a,b):e.makeArray(a&&
a.nodeType?[a]:a),d=e.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11?d:e.unique(d))},andSelf:function(){return this.add(this.prevObject)}});e.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return e.dir(a,"parentNode")},parentsUntil:function(a,b,c){return e.dir(a,"parentNode",c)},next:function(a){return e.nth(a,2,"nextSibling")},prev:function(a){return e.nth(a,
2,"previousSibling")},nextAll:function(a){return e.dir(a,"nextSibling")},prevAll:function(a){return e.dir(a,"previousSibling")},nextUntil:function(a,b,c){return e.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return e.dir(a,"previousSibling",c)},siblings:function(a){return e.sibling(a.parentNode.firstChild,a)},children:function(a){return e.sibling(a.firstChild)},contents:function(a){return e.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:e.makeArray(a.childNodes)}},function(a,
b){e.fn[a]=function(c,d){var g=e.map(this,b,c),h=jb.call(arguments);gb.test(a)||(d=c);d&&typeof d==="string"&&(g=e.filter(d,g));g=this.length>1&&!kb[a]?e.unique(g):g;if((this.length>1||ib.test(d))&&hb.test(a))g=g.reverse();return this.pushStack(g,a,h.join(","))}});e.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?e.find.matchesSelector(b[0],a)?[b[0]]:[]:e.find.matches(a,b)},dir:function(a,c,d){var g=[];for(a=a[c];a&&a.nodeType!==9&&(d===b||a.nodeType!==1||!e(a).is(d));)a.nodeType===
1&&g.push(a),a=a[c];return g},nth:function(a,b,c){b=b||1;for(var e=0;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var lb=/ jQuery\d+="(?:\d+|null)"/g,Aa=/^\s+/,Ja=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ka=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&#?\w+;/,La=/<(?:script|object|embed|option|style)/i,Ma=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/\/(java|ecma)script/i,$a=/^\s*<!(?:\[CDATA\[|\-\-)/,
W={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};W.optgroup=W.option;W.tbody=W.tfoot=W.colgroup=W.caption=W.thead;W.th=W.td;if(!e.support.htmlSerialize)W._default=[1,"div<div>","</div>"];e.fn.extend({text:function(a){if(e.isFunction(a))return this.each(function(b){var c=
e(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return e.text(this)},wrapAll:function(a){if(e.isFunction(a))return this.each(function(b){e(this).wrapAll(a.call(this,b))});if(this[0]){var b=e(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},
wrapInner:function(a){if(e.isFunction(a))return this.each(function(b){e(this).wrapInner(a.call(this,b))});return this.each(function(){var b=e(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){e(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,
!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var a=e(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=
this.pushStack(this,"after",arguments);a.push.apply(a,e(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||e.filter(a,[d]).length)!b&&d.nodeType===1&&(e.cleanData(d.getElementsByTagName("*")),e.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&e.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=
a==null?!1:a;b=b==null?a:b;return this.map(function(){return e.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(lb,""):null;else if(typeof a==="string"&&!La.test(a)&&(e.support.leadingWhitespace||!Aa.test(a))&&!W[(Ka.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ja,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1)e.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a}catch(g){this.empty().append(a)}}else e.isFunction(a)?
this.each(function(b){var c=e(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(e.isFunction(a))return this.each(function(b){var c=e(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!=="string"&&(a=e(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;e(this).remove();b?e(b).before(a):e(c).append(a)})}else return this.length?this.pushStack(e(e.isFunction(a)?a():a),"replaceWith",
a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var g,h,j,m=a[0],k=[];if(!e.support.checkClone&&arguments.length===3&&typeof m==="string"&&Ma.test(m))return this.each(function(){e(this).domManip(a,c,d,!0)});if(e.isFunction(m))return this.each(function(g){var h=e(this);a[0]=m.call(this,g,c?h.html():b);h.domManip(a,c,d)});if(this[0]){g=m&&m.parentNode;g=e.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===this.length?{fragment:g}:e.buildFragment(a,this,k);j=
g.fragment;if(h=j.childNodes.length===1?j=j.firstChild:j.firstChild){c=c&&e.nodeName(h,"tr");h=0;for(var o=this.length,n=o-1;h<o;h++)d.call(c?e.nodeName(this[h],"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h]:this[h],g.cacheable||o>1&&h<n?e.clone(j,!0,!0):j)}k.length&&e.each(k,K)}return this}});e.buildFragment=function(a,b,c){var d,g,h;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<
512&&b===s&&a[0].charAt(0)==="<"&&!La.test(a[0])&&(e.support.checkClone||!Ma.test(a[0])))g=!0,(h=e.fragments[a[0]])&&h!==1&&(d=h);d||(d=b.createDocumentFragment(),e.clean(a,b,d,c));g&&(e.fragments[a[0]]=h?d:1);return{fragment:d,cacheable:g}};e.fragments={};e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){e.fn[a]=function(c){var d=[];c=e(c);var g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===
1&&c.length===1)return c[b](this[0]),this;else{g=0;for(var h=c.length;g<h;g++){var j=(g>0?this.clone(!0):this).get();e(c[g])[b](j);d=d.concat(j)}return this.pushStack(d,a,c.selector)}}});e.extend({clone:function(a,b,c){var d=a.cloneNode(!0),g,h,j;if((!e.support.noCloneEvent||!e.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!e.isXMLDoc(a)){A(a,d);g=y(a);h=y(d);for(j=0;g[j];++j)A(g[j],h[j])}if(b&&(q(a,d),c)){g=y(a);h=y(d);for(j=0;g[j];++j)q(g[j],h[j])}return d},clean:function(a,b,c,d){b=
b||s;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||s);for(var g=[],h,j=0,m;(m=a[j])!=null;j++)if(typeof m==="number"&&(m+=""),m){if(typeof m==="string")if(nb.test(m)){m=m.replace(Ja,"<$1></$2>");h=(Ka.exec(m)||["",""])[1].toLowerCase();var k=W[h]||W._default,o=k[0],n=b.createElement("div");for(n.innerHTML=k[1]+m+k[2];o--;)n=n.lastChild;if(!e.support.tbody){o=mb.test(m);k=h==="table"&&!o?n.firstChild&&n.firstChild.childNodes:k[1]==="<table>"&&!o?n.childNodes:[];
for(h=k.length-1;h>=0;--h)e.nodeName(k[h],"tbody")&&!k[h].childNodes.length&&k[h].parentNode.removeChild(k[h])}!e.support.leadingWhitespace&&Aa.test(m)&&n.insertBefore(b.createTextNode(Aa.exec(m)[0]),n.firstChild);m=n.childNodes}else m=b.createTextNode(m);var u;if(!e.support.appendChecked)if(m[0]&&typeof(u=m.length)==="number")for(h=0;h<u;h++)N(m[h]);else N(m);m.nodeType?g.push(m):g=e.merge(g,m)}if(c){a=function(a){return!a.type||ob.test(a.type)};for(j=0;g[j];j++)d&&e.nodeName(g[j],"script")&&(!g[j].type||
g[j].type.toLowerCase()==="text/javascript")?d.push(g[j].parentNode?g[j].parentNode.removeChild(g[j]):g[j]):(g[j].nodeType===1&&(b=e.grep(g[j].getElementsByTagName("script"),a),g.splice.apply(g,[j+1,0].concat(b))),c.appendChild(g[j]))}return g},cleanData:function(a){for(var b,c,d=e.cache,g=e.expando,h=e.event.special,j=e.support.deleteExpando,m=0,k;(k=a[m])!=null;m++)if(!k.nodeName||!e.noData[k.nodeName.toLowerCase()])if(c=k[e.expando]){if((b=d[c]&&d[c][g])&&b.events){for(var o in b.events)h[o]?e.event.remove(k,
o):e.removeEvent(k,o,b.handle);if(b.handle)b.handle.elem=null}j?delete k[e.expando]:k.removeAttribute&&k.removeAttribute(e.expando);delete d[c]}}});var Na=/alpha\([^)]*\)/i,pb=/opacity=([^)]*)/,qb=/-([a-z])/ig,rb=/([A-Z]|^ms)/g,Oa=/^-?\d+(?:px)?$/i,sb=/^-?\d/,tb=/^[+\-]=/,ub=/[^+\-\.\de]+/g,vb={position:"absolute",visibility:"hidden",display:"block"},ab=["Left","Right"],bb=["Top","Bottom"],ha,Pa,ta,wb=function(a,b){return b.toUpperCase()};e.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;
return e.access(this,a,c,!0,function(a,f,c){return c!==b?e.style(a,f,c):e.css(a,f)})};e.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ha(a,"opacity","opacity");return c===""?"1":c}else return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0,widows:!0,orphans:!0},cssProps:{"float":e.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,g){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var h,j=e.camelCase(c),m=a.style,k=e.cssHooks[j];c=e.cssProps[j]||
j;if(d!==b){if(g=typeof d,!(g==="number"&&isNaN(d)||d==null))if(g==="string"&&tb.test(d)&&(d=+d.replace(ub,"")+parseFloat(e.css(a,c))),g==="number"&&!e.cssNumber[j]&&(d+="px"),!k||!("set"in k)||(d=k.set(a,d))!==b)try{m[c]=d}catch(o){}}else{if(k&&"get"in k&&(h=k.get(a,!1,g))!==b)return h;return m[c]}}},css:function(a,c,d){var g,h;c=e.camelCase(c);h=e.cssHooks[c];c=e.cssProps[c]||c;c==="cssFloat"&&(c="float");if(h&&"get"in h&&(g=h.get(a,!0,d))!==b)return g;else if(ha)return ha(a,c)},swap:function(a,
b,c){var d={},e;for(e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(qb,wb)}});e.curCSS=e.css;e.each(["height","width"],function(a,b){e.cssHooks[b]={get:function(a,f,c){var d;if(f){a.offsetWidth!==0?d=B(a,b,c):e.swap(a,vb,function(){d=B(a,b,c)});if(d<=0&&(d=ha(a,b,b),d==="0px"&&ta&&(d=ta(a,b,b)),d!=null))return d===""||d==="auto"?"0px":d;if(d<0||d==null)return d=a.style[b],d===""||d==="auto"?"0px":d;return typeof d==="string"?d:d+
"px"}},set:function(a,b){if(Oa.test(b)){if(b=parseFloat(b),b>=0)return b+"px"}else return b}}});if(!e.support.opacity)e.cssHooks.opacity={get:function(a,b){return pb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var g=e.isNaN(b)?"":"alpha(opacity="+b*100+")";d=d&&d.filter||c.filter||"";c.filter=Na.test(d)?d.replace(Na,g):d+" "+g}};e(function(){if(!e.support.reliableMarginRight)e.cssHooks.marginRight=
{get:function(a,b){var c;e.swap(a,{display:"inline-block"},function(){c=b?ha(a,"margin-right","marginRight"):a.style.marginRight});return c}}});s.defaultView&&s.defaultView.getComputedStyle&&(Pa=function(a,c){var d,g;c=c.replace(rb,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(g=g.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!e.contains(a.ownerDocument.documentElement,a)&&(d=e.style(a,c));return d});s.documentElement.currentStyle&&(ta=function(a,b){var c,d=a.currentStyle&&
a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;if(!Oa.test(d)&&sb.test(d)){c=g.left;if(e)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":d||0;d=g.pixelLeft+"px";g.left=c;if(e)a.runtimeStyle.left=e}return d===""?"auto":d});ha=Pa||ta;if(e.expr&&e.expr.filters)e.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!e.support.reliableHiddenOffsets&&(a.style.display||e.css(a,"display"))==="none"},e.expr.filters.visible=function(a){return!e.expr.filters.hidden(a)};
var xb=/%20/g,cb=/\[\]$/,Qa=/\r?\n/g,yb=/#.*$/,zb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ab=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Bb=/^(?:GET|HEAD)$/,Cb=/^\/\//,Ra=/\?/,Db=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Eb=/^(?:select|textarea)/i,Da=/\s+/,Fb=/([?&])_=[^&]*/,Sa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Ta=e.fn.load,va={},Ua={},ea,fa;try{ea=F.href}catch(Lb){ea=s.createElement("a"),ea.href="",ea=ea.href}fa=Sa.exec(ea.toLowerCase())||
[];e.fn.extend({load:function(a,c,d){if(typeof a!=="string"&&Ta)return Ta.apply(this,arguments);else if(!this.length)return this;var g=a.indexOf(" ");if(g>=0){var h=a.slice(g,a.length);a=a.slice(0,g)}g="GET";c&&(e.isFunction(c)?(d=c,c=b):typeof c==="object"&&(c=e.param(c,e.ajaxSettings.traditional),g="POST"));var j=this;e.ajax({url:a,type:g,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText;a.isResolved()&&(a.done(function(a){c=a}),j.html(h?e("<div>").append(c.replace(Db,"")).find(h):
c));d&&j.each(d,[c,b,a])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Eb.test(this.nodeName)||Ab.test(this.type))}).map(function(a,b){var c=e(this).val();return c==null?null:e.isArray(c)?e.map(c,function(a){return{name:b.name,value:a.replace(Qa,"\r\n")}}):{name:b.name,value:c.replace(Qa,"\r\n")}}).get()}});
e.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){e.fn[b]=function(a){return this.bind(b,a)}});e.each(["get","post"],function(a,c){e[c]=function(a,f,d,g){e.isFunction(f)&&(g=g||d,d=f,f=b);return e.ajax({type:c,url:a,data:f,success:d,dataType:g})}});e.extend({getScript:function(a,c){return e.get(a,b,c,"script")},getJSON:function(a,b,c){return e.get(a,b,c,"json")},ajaxSetup:function(a,b){b?e.extend(!0,a,e.ajaxSettings,b):(b=a,a=e.extend(!0,e.ajaxSettings,
b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in e.ajaxSettings&&(a[c]=e.ajaxSettings[c]);return a},ajaxSettings:{url:ea,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(fa[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",
text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML}},ajaxPrefilter:D(va),ajaxTransport:D(Ua),ajax:function(a,c){function d(a,c,f,p){if(M!==2){M=2;A&&clearTimeout(A);q=b;I=p||"";C.readyState=a?4:0;var u,z,x;if(f){p=g;var E=C,F=p.contents,t=p.dataTypes,N=p.responseFields,L,P,y,w;for(P in N)P in f&&(E[N[P]]=f[P]);for(;t[0]==="*";)t.shift(),L===b&&(L=p.mimeType||E.getResponseHeader("content-type"));if(L)for(P in F)if(F[P]&&F[P].test(L)){t.unshift(P);
break}if(t[0]in f)y=t[0];else{for(P in f){if(!t[0]||p.converters[P+" "+t[0]]){y=P;break}w||(w=P)}y=y||w}y?(y!==t[0]&&t.unshift(y),f=f[y]):f=void 0}else f=b;if(a>=200&&a<300||a===304){if(g.ifModified){if(L=C.getResponseHeader("Last-Modified"))e.lastModified[n]=L;if(L=C.getResponseHeader("Etag"))e.etag[n]=L}if(a===304)c="notmodified",u=!0;else try{L=g;L.dataFilter&&(f=L.dataFilter(f,L.dataType));var S=L.dataTypes;P={};var T,ca,da=S.length,v,Z=S[0],B,Q,X,V,D;for(T=1;T<da;T++){if(T===1)for(ca in L.converters)typeof ca===
"string"&&(P[ca.toLowerCase()]=L.converters[ca]);B=Z;Z=S[T];if(Z==="*")Z=B;else if(B!=="*"&&B!==Z){Q=B+" "+Z;X=P[Q]||P["* "+Z];if(!X)for(V in D=b,P)if(v=V.split(" "),v[0]===B||v[0]==="*")if(D=P[v[1]+" "+Z]){V=P[V];V===!0?X=D:D===!0&&(X=V);break}!X&&!D&&e.error("No conversion from "+Q.replace(" "," to "));X!==!0&&(f=X?X(f):D(V(f)))}}z=f;c="success";u=!0}catch(K){c="parsererror",x=K}}else if(x=c,!c||a)c="error",a<0&&(a=0);C.status=a;C.statusText=c;u?m.resolveWith(h,[z,c,C]):m.rejectWith(h,[C,c,x]);
C.statusCode(o);o=b;s&&j.trigger("ajax"+(u?"Success":"Error"),[C,g,u?z:x]);k.resolveWith(h,[C,c]);s&&(j.trigger("ajaxComplete",[C,g]),--e.active||e.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b);c=c||{};var g=e.ajaxSetup({},c),h=g.context||g,j=h!==g&&(h.nodeType||h instanceof e)?e(h):e.event,m=e.Deferred(),k=e._Deferred(),o=g.statusCode||{},n,u={},z={},I,E,q,A,F,M=0,s,t,C={readyState:0,setRequestHeader:function(a,b){if(!M){var c=a.toLowerCase();a=z[c]=z[c]||a;u[a]=b}return this},getAllResponseHeaders:function(){return M===
2?I:null},getResponseHeader:function(a){var c;if(M===2){if(!E)for(E={};c=zb.exec(I);)E[c[1].toLowerCase()]=c[2];c=E[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){if(!M)g.mimeType=a;return this},abort:function(a){a=a||"abort";q&&q.abort(a);d(0,a);return this}};m.promise(C);C.success=C.done;C.error=C.fail;C.complete=k.done;C.statusCode=function(a){if(a){var b;if(M<2)for(b in a)o[b]=[o[b],a[b]];else b=a[C.status],C.then(b,b)}return this};g.url=((a||g.url)+"").replace(yb,"").replace(Cb,
fa[1]+"//");g.dataTypes=e.trim(g.dataType||"*").toLowerCase().split(Da);if(g.crossDomain==null)F=Sa.exec(g.url.toLowerCase()),g.crossDomain=!(!F||!(F[1]!=fa[1]||F[2]!=fa[2]||(F[3]||(F[1]==="http:"?80:443))!=(fa[3]||(fa[1]==="http:"?80:443))));if(g.data&&g.processData&&typeof g.data!=="string")g.data=e.param(g.data,g.traditional);Q(va,g,c,C);if(M===2)return!1;s=g.global;g.type=g.type.toUpperCase();g.hasContent=!Bb.test(g.type);s&&e.active++===0&&e.event.trigger("ajaxStart");if(!g.hasContent&&(g.data&&
(g.url+=(Ra.test(g.url)?"&":"?")+g.data),n=g.url,g.cache===!1)){F=e.now();var N=g.url.replace(Fb,"$1_="+F);g.url=N+(N===g.url?(Ra.test(g.url)?"&":"?")+"_="+F:"")}(g.data&&g.hasContent&&g.contentType!==!1||c.contentType)&&C.setRequestHeader("Content-Type",g.contentType);g.ifModified&&(n=n||g.url,e.lastModified[n]&&C.setRequestHeader("If-Modified-Since",e.lastModified[n]),e.etag[n]&&C.setRequestHeader("If-None-Match",e.etag[n]));C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?
g.accepts[g.dataTypes[0]]+(g.dataTypes[0]!=="*"?", */*; q=0.01":""):g.accepts["*"]);for(t in g.headers)C.setRequestHeader(t,g.headers[t]);if(g.beforeSend&&(g.beforeSend.call(h,C,g)===!1||M===2))return C.abort(),!1;for(t in{success:1,error:1,complete:1})C[t](g[t]);if(q=Q(Ua,g,c,C)){C.readyState=1;s&&j.trigger("ajaxSend",[C,g]);g.async&&g.timeout>0&&(A=setTimeout(function(){C.abort("timeout")},g.timeout));try{M=1,q.send(u,d)}catch(L){status<2?d(-1,L):e.error(L)}}else d(-1,"No Transport");return C},
param:function(a,c){var d=[],g=function(a,b){b=e.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(c===b)c=e.ajaxSettings.traditional;if(e.isArray(a)||a.jquery&&!e.isPlainObject(a))e.each(a,function(){g(this.name,this.value)});else for(var h in a)R(h,a[h],c,g);return d.join("&").replace(xb,"+")}});e.extend({active:0,lastModified:{},etag:{}});var Gb=e.now(),ua=/(\=)\?(&|$)|\?\?/i;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return e.expando+"_"+Gb++}});e.ajaxPrefilter("json jsonp",
function(b,c,d){c=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ua.test(b.url)||c&&ua.test(b.data))){var g,h=b.jsonpCallback=e.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,j=a[h],m=b.url,k=b.data,o="$1"+h+"$2";b.jsonp!==!1&&(m=m.replace(ua,o),b.url===m&&(c&&(k=k.replace(ua,o)),b.data===k&&(m+=(/\?/.test(m)?"&":"?")+b.jsonp+"="+h)));b.url=m;b.data=k;a[h]=function(a){g=[a]};d.always(function(){a[h]=j;if(g&&
e.isFunction(j))a[h](g[0])});b.converters["script json"]=function(){g||e.error(h+" was not called");return g[0]};b.dataTypes[0]="json";return"script"}});e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){e.globalEval(a);return a}}});e.ajaxPrefilter("script",function(a){if(a.cache===b)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});e.ajaxTransport("script",
function(a){if(a.crossDomain){var c,d=s.head||s.getElementsByTagName("head")[0]||s.documentElement;return{send:function(e,g){c=s.createElement("script");c.async="async";if(a.scriptCharset)c.charset=a.scriptCharset;c.src=a.url;c.onload=c.onreadystatechange=function(a,f){if(f||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,f||g(200,"success")};d.insertBefore(c,d.firstChild)},abort:function(){if(c)c.onload(0,1)}}}});var Ba=
a.ActiveXObject?function(){for(var a in ia)ia[a](0,1)}:!1,Hb=0,ia;e.ajaxSettings.xhr=a.ActiveXObject?function(){var b;if(!(b=!this.isLocal&&U()))a:{try{b=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}b=void 0}return b}:U;(function(a){e.extend(e.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(e.ajaxSettings.xhr());e.support.ajax&&e.ajaxTransport(function(c){if(!c.crossDomain||e.support.cors){var d;return{send:function(g,h){var j=c.xhr(),m,k;c.username?j.open(c.type,c.url,c.async,
c.username,c.password):j.open(c.type,c.url,c.async);if(c.xhrFields)for(k in c.xhrFields)j[k]=c.xhrFields[k];c.mimeType&&j.overrideMimeType&&j.overrideMimeType(c.mimeType);!c.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");try{for(k in g)j.setRequestHeader(k,g[k])}catch(o){}j.send(c.hasContent&&c.data||null);d=function(a,g){var k,o,n,u,z;try{if(d&&(g||j.readyState===4)){d=b;if(m)j.onreadystatechange=e.noop,Ba&&delete ia[m];if(g)j.readyState!==4&&j.abort();else{k=j.status;
n=j.getAllResponseHeaders();u={};if((z=j.responseXML)&&z.documentElement)u.xml=z;u.text=j.responseText;try{o=j.statusText}catch(I){o=""}!k&&c.isLocal&&!c.crossDomain?k=u.text?200:404:k===1223&&(k=204)}}}catch(E){g||h(-1,E)}u&&h(k,o,u,n)};!c.async||j.readyState===4?d():(m=++Hb,Ba&&(ia||(ia={},e(a).unload(Ba)),ia[m]=d),j.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var wa={},ba,ka,Ib=/^(?:toggle|show|hide)$/,Jb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ja,Ea=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],pa,Ca=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;e.fn.extend({show:function(a,b,c){if(a||a===0)return this.animate(O("show",3),a,b,c);else{c=0;for(var d=this.length;c<d;c++)if(a=this[c],a.style){b=a.style.display;if(!e._data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&e.css(a,"display")==="none"&&e._data(a,"olddisplay",aa(a.nodeName))}for(c=
0;c<d;c++)if(a=this[c],a.style&&(b=a.style.display,b===""||b==="none"))a.style.display=e._data(a,"olddisplay")||"";return this}},hide:function(a,b,c){if(a||a===0)return this.animate(O("hide",3),a,b,c);else{a=0;for(b=this.length;a<b;a++)this[a].style&&(c=e.css(this[a],"display"),c!=="none"&&!e._data(this[a],"olddisplay")&&e._data(this[a],"olddisplay",c));for(a=0;a<b;a++)if(this[a].style)this[a].style.display="none";return this}},_toggle:e.fn.toggle,toggle:function(a,b,c){var d=typeof a==="boolean";
e.isFunction(a)&&e.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:e(this).is(":hidden");e(this)[b?"show":"hide"]()}):this.animate(O("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var g=e.speed(b,c,d);if(e.isEmptyObject(a))return this.each(g.complete,[!1]);a=e.extend({},a);return this[g.queue===!1?"each":"queue"](function(){g.queue===
!1&&e._mark(this);var b=e.extend({},g),c=this.nodeType===1,d=c&&e(this).is(":hidden"),h,j,m,k,o;b.animatedProperties={};for(m in a){h=e.camelCase(m);m!==h&&(a[h]=a[m],delete a[m]);j=a[h];e.isArray(j)?(b.animatedProperties[h]=j[1],j=a[h]=j[0]):b.animatedProperties[h]=b.specialEasing&&b.specialEasing[h]||b.easing||"swing";if(j==="hide"&&d||j==="show"&&!d)return b.complete.call(this);if(c&&(h==="height"||h==="width"))if(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],e.css(this,
"display")==="inline"&&e.css(this,"float")==="none")e.support.inlineBlockNeedsLayout?(j=aa(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"}if(b.overflow!=null)this.style.overflow="hidden";for(m in a)if(c=new e.fx(this,b,m),j=a[m],Ib.test(j))c[j==="toggle"?d?"show":"hide":j]();else h=Jb.exec(j),k=c.cur(),h?(j=parseFloat(h[2]),o=h[3]||(e.cssNumber[m]?"":"px"),o!=="px"&&(e.style(this,m,(j||1)+o),k*=(j||1)/
c.cur(),e.style(this,m,k+o)),h[1]&&(j=(h[1]==="-="?-1:1)*j+k),c.custom(k,j,o)):c.custom(k,j,"");return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=e.timers,c=a.length;for(b||e._unmark(!0,this);c--;)if(a[c].elem===this){if(b)a[c](!0);a.splice(c,1)}});b||this.dequeue();return this}});e.each({slideDown:O("show",1),slideUp:O("hide",1),slideToggle:O("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){e.fn[a]=function(a,c,d){return this.animate(b,
a,c,d)}});e.extend({speed:function(a,b,c){var d=a&&typeof a==="object"?e.extend({},a):{complete:c||!c&&b||e.isFunction(a)&&a,duration:a,easing:c&&b||b&&!e.isFunction(b)&&b};d.duration=e.fx.off?0:typeof d.duration==="number"?d.duration:d.duration in e.fx.speeds?e.fx.speeds[d.duration]:e.fx.speeds._default;d.old=d.complete;d.complete=function(a){d.queue!==!1?e.dequeue(this):a!==!1&&e._unmark(this);e.isFunction(d.old)&&d.old.call(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,
b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=e.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},
custom:function(a,b,c){function d(a){return g.step(a)}var g=this,h=e.fx,j;this.startTime=pa||G();this.start=a;this.end=b;this.unit=c||this.unit||(e.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;d.elem=this.elem;d()&&e.timers.push(d)&&!ja&&(Ca?(ja=1,j=function(){ja&&(Ca(j),h.tick())},Ca(j)):ja=setInterval(h.tick,h.interval))},show:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?
1:0,this.cur());e(this.elem).show()},hide:function(){this.options.orig[this.prop]=e.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=pa||G(),c=!0,d=this.elem,g=this.options,h;if(a||b>=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(h in g.animatedProperties)g.animatedProperties[h]!==!0&&(c=!1);if(c){g.overflow!=null&&!e.support.shrinkWrapBlocks&&e.each(["","X","Y"],function(a,b){d.style["overflow"+
b]=g.overflow[a]});g.hide&&e(d).hide();if(g.hide||g.show)for(var j in g.animatedProperties)e.style(d,j,g.orig[j]);g.complete.call(d)}return!1}else g.duration==Infinity?this.now=b:(a=b-this.startTime,this.state=a/g.duration,this.pos=e.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}};e.extend(e.fx,{tick:function(){for(var a=e.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||e.fx.stop()},interval:13,
stop:function(){clearInterval(ja);ja=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){e.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});if(e.expr&&e.expr.filters)e.expr.filters.animated=function(a){return e.grep(e.timers,function(b){return a===b.elem}).length};var Kb=/^t(?:able|d|h)$/i,Va=/^(?:body|html)$/i;e.fn.offset=
"getBoundingClientRect"in s.documentElement?function(a){var b=this[0],c;if(a)return this.each(function(b){e.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return e.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var g=b.ownerDocument,h=g.documentElement;if(!c||!e.contains(h,b))return c?{top:c.top,left:c.left}:{top:0,left:0};b=g.body;g=Y(g);return{top:c.top+(g.pageYOffset||e.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||
0),left:c.left+(g.pageXOffset||e.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){e.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return e.offset.bodyOffset(b);e.offset.initialize();var c,d=b.offsetParent,g=b.ownerDocument,h=g.documentElement,j=g.body;c=(g=g.defaultView)?g.getComputedStyle(b,null):b.currentStyle;for(var m=b.offsetTop,k=b.offsetLeft;(b=b.parentNode)&&
b!==j&&b!==h;){if(e.offset.supportsFixedPosition&&c.position==="fixed")break;c=g?g.getComputedStyle(b,null):b.currentStyle;m-=b.scrollTop;k-=b.scrollLeft;if(b===d){m+=b.offsetTop;k+=b.offsetLeft;if(e.offset.doesNotAddBorder&&(!e.offset.doesAddBorderForTableAndCells||!Kb.test(b.nodeName)))m+=parseFloat(c.borderTopWidth)||0,k+=parseFloat(c.borderLeftWidth)||0;d=b.offsetParent}e.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(m+=parseFloat(c.borderTopWidth)||0,k+=parseFloat(c.borderLeftWidth)||
0)}if(c.position==="relative"||c.position==="static")m+=j.offsetTop,k+=j.offsetLeft;e.offset.supportsFixedPosition&&c.position==="fixed"&&(m+=Math.max(h.scrollTop,j.scrollTop),k+=Math.max(h.scrollLeft,j.scrollLeft));return{top:m,left:k}};e.offset={initialize:function(){var a=s.body,b=s.createElement("div"),c,d,g,h=parseFloat(e.css(a,"marginTop"))||0;e.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);c=b.firstChild;d=c.firstChild;g=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=d.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;d.style.position="fixed";d.style.top="20px";this.supportsFixedPosition=d.offsetTop===20||d.offsetTop===15;d.style.position=d.style.top="";c.style.overflow="hidden";c.style.position="relative";this.subtractsBorderForOverflowNotVisible=d.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);
e.offset.initialize=e.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;e.offset.initialize();e.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(e.css(a,"marginTop"))||0,c+=parseFloat(e.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=e.css(a,"position");if(d==="static")a.style.position="relative";var g=e(a),h=g.offset(),j=e.css(a,"top"),m=e.css(a,"left"),k={},o={};(d==="absolute"||d==="fixed")&&e.inArray("auto",[j,m])>-1?(o=g.position(),d=o.top,m=
o.left):(d=parseFloat(j)||0,m=parseFloat(m)||0);e.isFunction(b)&&(b=b.call(a,c,h));if(b.top!=null)k.top=b.top-h.top+d;if(b.left!=null)k.left=b.left-h.left+m;"using"in b?b.using.call(a,k):g.css(k)}};e.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=Va.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(e.css(a,"marginTop"))||0;c.left-=parseFloat(e.css(a,"marginLeft"))||0;d.top+=parseFloat(e.css(b[0],"borderTopWidth"))||0;d.left+=
parseFloat(e.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!Va.test(a.nodeName)&&e.css(a,"position")==="static";)a=a.offsetParent;return a})}});e.each(["Left","Top"],function(a,c){var d="scroll"+c;e.fn[d]=function(c){var g,h;if(c===b){g=this[0];if(!g)return null;return(h=Y(g))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:e.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:
g[d]}return this.each(function(){(h=Y(this))?h.scrollTo(!a?c:e(h).scrollLeft(),a?c:e(h).scrollTop()):this[d]=c})}});e.each(["Height","Width"],function(a,c){var d=c.toLowerCase();e.fn["inner"+c]=function(){return this[0]?parseFloat(e.css(this[0],d,"padding")):null};e.fn["outer"+c]=function(a){return this[0]?parseFloat(e.css(this[0],d,a?"margin":"border")):null};e.fn[d]=function(a){var g=this[0];if(!g)return a==null?null:this;if(e.isFunction(a))return this.each(function(b){var c=e(this);c[d](a.call(this,
b,c[d]()))});if(e.isWindow(g)){var f=g.document.documentElement["client"+c];return g.document.compatMode==="CSS1Compat"&&f||g.document.body["client"+c]||f}else return g.nodeType===9?Math.max(g.documentElement["client"+c],g.body["scroll"+c],g.documentElement["scroll"+c],g.body["offset"+c],g.documentElement["offset"+c]):a===b?(g=e.css(g,d),f=parseFloat(g),e.isNaN(f)?g:f):this.css(d,typeof a==="string"?a:a+"px")}});a.jQuery=a.$=e})(window);
(function(a){a.extend(a.support,{placeholder:!!("placeholder"in document.createElement("input"))});a.fn.addPlaceholder=function(b){function c(a,b){if(h(a.val())||a.val()==b)a.val(b),a.addClass(g["class"]);a.focusin(function(){a.hasClass(g["class"])&&(a.removeClass(g["class"]),a.val(""))});a.focusout(function(){h(a.val())&&(a.val(b),a.addClass(g["class"]))})}function d(b,c){b.addClass(g["class"]);var d=a("<span/>",{"class":b.attr("class")+" "+g["class"],text:c,css:{border:"none",cursor:"text",background:"transparent",
position:"absolute",top:b.position().top+b.margin().top+b.padding().top,left:b.position().left+b.margin().left+b.padding().left,lineHeight:b.height()+2+"px"}}).insertAfter(b);b.focusin(function(){b.hasClass(g["class"])&&(d.hide(),b.removeClass(g["class"]))});d.click(function(){d.hide();b.removeClass(g["class"]);b.focus()});b.focusout(function(){h(b.val())&&(d.show(),b.addClass(g["class"]))});g.checkafill&&function o(){!h(b.val())&&b.hasClass(g["class"])&&b.focusin();setTimeout(o,250)}()}function h(b){return g.allowspaces?
b==="":a.trim(b)===""}var g={"class":"placeholder",allowspaces:!1,dopass:!0,dotextarea:!0,checkafill:!0};return this.each(function(){if(a.support.placeholder)return!1;a.extend(g,b);if(!(this.tagName.toLowerCase()=="input"||g.dotextarea&&this.tagName.toLowerCase()=="textarea"))return!0;var h=a(this),n=this.getAttribute("placeholder"),m=h.is("input[type=password]");if(!n)return!0;g.dopass&&m?d(h,n):m||c(h,n)})}})(jQuery);
(function(a){var b=function(a){return parseInt(a,10)||0};a.each(["min","max"],function(c,d){a.fn[d+"Size"]=function(a){var c;return a?(a.width!==void 0&&this.css(d+"-width",a.width),a.height!==void 0&&this.css(d+"-height",a.height),this):(a=this.css(d+"-width"),c=this.css(d+"-height"),{width:d==="max"&&(a===void 0||a==="none"||b(a)===-1)&&Number.MAX_VALUE||b(a),height:d==="max"&&(c===void 0||c==="none"||b(c)===-1)&&Number.MAX_VALUE||b(c)})}});a.fn.isVisible=function(){return this.is(":visible")};
a.each(["border","margin","padding"],function(c,d){a.fn[d]=function(a){return a?(a.top!==void 0&&this.css(d+"-top"+(d==="border"?"-width":""),a.top),a.bottom!==void 0&&this.css(d+"-bottom"+(d==="border"?"-width":""),a.bottom),a.left!==void 0&&this.css(d+"-left"+(d==="border"?"-width":""),a.left),a.right!==void 0&&this.css(d+"-right"+(d==="border"?"-width":""),a.right),this):{top:b(this.css(d+"-top"+(d==="border"?"-width":""))),bottom:b(this.css(d+"-bottom"+(d==="border"?"-width":""))),left:b(this.css(d+
"-left"+(d==="border"?"-width":""))),right:b(this.css(d+"-right"+(d==="border"?"-width":"")))}}})})(jQuery);var JSON;JSON||(JSON={});
(function(){function a(a){return a<10?"0"+a:a}function b(a){h.lastIndex=0;return h.test(a)?'"'+a.replace(h,function(a){var b=n[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var h,n,y,t,N=g,K,B=d[a];B&&typeof B==="object"&&typeof B.toJSON==="function"&&(B=B.toJSON(a));typeof m==="function"&&(B=m.call(d,a,B));switch(typeof B){case "string":return b(B);case "number":return isFinite(B)?String(B):"null";case "boolean":case "null":return String(B);
case "object":if(!B)return"null";g+=k;K=[];if(Object.prototype.toString.apply(B)==="[object Array]"){t=B.length;for(h=0;h<t;h+=1)K[h]=c(h,B)||"null";y=K.length===0?"[]":g?"[\n"+g+K.join(",\n"+g)+"\n"+N+"]":"["+K.join(",")+"]";g=N;return y}if(m&&typeof m==="object"){t=m.length;for(h=0;h<t;h+=1)typeof m[h]==="string"&&(n=m[h],(y=c(n,B))&&K.push(b(n)+(g?": ":":")+y))}else for(n in B)Object.prototype.hasOwnProperty.call(B,n)&&(y=c(n,B))&&K.push(b(n)+(g?": ":":")+y);y=K.length===0?"{}":g?"{\n"+g+K.join(",\n"+
g)+"\n"+N+"}":"{"+K.join(",")+"}";g=N;return y}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
h=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g,k,n={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},m;if(typeof JSON.stringify!=="function")JSON.stringify=function(a,b,d){var h;k=g="";if(typeof d==="number")for(h=0;h<d;h+=1)k+=" ";else typeof d==="string"&&(k=d);if((m=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return c("",
{"":a})};if(typeof JSON.parse!=="function")JSON.parse=function(a,b){function c(a,d){var g,h,j=a[d];if(j&&typeof j==="object")for(g in j)Object.prototype.hasOwnProperty.call(j,g)&&(h=c(j,g),h!==void 0?j[g]=h:delete j[g]);return b.call(a,d,j)}var g;a=String(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return g=eval("("+a+")"),typeof b==="function"?c({"":g},""):g;throw new SyntaxError("JSON.parse");}})();
jQuery.cookie=function(a,b,c){if(typeof b!="undefined"){c=c||{};if(b===null)b="",c.expires=-1;var d="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString))typeof c.expires=="number"?(d=new Date,d.setTime(d.getTime()+c.expires*864E5)):d=c.expires,d="; expires="+d.toUTCString();var h=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,h,g,c].join("")}else{b=null;if(document.cookie&&document.cookie!=""){c=
document.cookie.split(";");for(d=0;d<c.length;d++)if(h=jQuery.trim(c[d]),h.substring(0,a.length+1)==a+"="){b=decodeURIComponent(h.substring(a.length+1));break}}return b}};
(function(a){function b(b){this.input=b;a(b[0].form).submit(function(){if(b.hasClass("placeholder")&&b[0].value==b.attr("placeholder"))b[0].value=""})}b.prototype={show:function(a){if(this.input[0].value===""||a&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(b){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&
(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(a){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var b=this.input;b.attr("realType","password");this.isPassword=!0;if(a.browser.msie&&b[0].outerHTML){var c=a(b[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=c.val(b.attr("placeholder")).addClass("placeholder").focus(function(){b.trigger("focus");
a(this).hide()});a(b[0].form).submit(function(){c.remove();b.show()})}}};var c=!!("placeholder"in document.createElement("input"));a.fn.placeholder=function(){return c?this:this.each(function(){var c=a(this);if(c.attr("type")!="password"){var h=new b(c);h.show(!0);c.focus(function(){h.hide()});c.blur(function(){h.show(!1)});a.browser.msie&&(a(window).load(function(){c.val()&&c.removeClass("placeholder");h.show(!0)}),c.focus(function(){if(this.value==""){var a=this.createTextRange();a.collapse(!0);
a.moveStart("character",0);a.select()}}))}})}})(jQuery);function LatLon(a,b,c){typeof c=="undefined"&&(c=6371);this._lat=typeof a=="number"?a:typeof a=="string"&&a.trim()!=""?+a:NaN;this._lon=typeof a=="number"?b:typeof b=="string"&&b.trim()!=""?+b:NaN;this._radius=typeof c=="number"?c:typeof c=="string"&&trim(b)!=""?+c:NaN}
LatLon.prototype.distanceTo=function(a,b){typeof b=="undefined"&&(b=4);var c=this._radius,d=this._lat.toRad(),h=this._lon.toRad(),g=a._lat.toRad(),k=a._lon.toRad(),n=g-d;h=k-h;d=Math.sin(n/2)*Math.sin(n/2)+Math.cos(d)*Math.cos(g)*Math.sin(h/2)*Math.sin(h/2);return(c*2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))).toPrecisionFixed(b)};
LatLon.prototype.bearingTo=function(a){var b=this._lat.toRad(),c=a._lat.toRad();a=(a._lon-this._lon).toRad();return(Math.atan2(Math.sin(a)*Math.cos(c),Math.cos(b)*Math.sin(c)-Math.sin(b)*Math.cos(c)*Math.cos(a)).toDeg()+360)%360};LatLon.prototype.finalBearingTo=function(a){var b=a._lat.toRad(),c=this._lat.toRad();a=(this._lon-a._lon).toRad();return(Math.atan2(Math.sin(a)*Math.cos(c),Math.cos(b)*Math.sin(c)-Math.sin(b)*Math.cos(c)*Math.cos(a)).toDeg()+180)%360};
LatLon.prototype.midpointTo=function(a){lat1=this._lat.toRad();lon1=this._lon.toRad();lat2=a._lat.toRad();var b=(a._lon-this._lon).toRad();a=Math.cos(lat2)*Math.cos(b);b=Math.cos(lat2)*Math.sin(b);lat3=Math.atan2(Math.sin(lat1)+Math.sin(lat2),Math.sqrt((Math.cos(lat1)+a)*(Math.cos(lat1)+a)+b*b));lon3=lon1+Math.atan2(b,Math.cos(lat1)+a);return new LatLon(lat3.toDeg(),lon3.toDeg())};
LatLon.prototype.destinationPoint=function(a,b){b=typeof b=="number"?b:typeof b=="string"&&b.trim()!=""?+b:NaN;b/=this._radius;a=a.toRad();var c=this._lat.toRad(),d=this._lon.toRad(),h=Math.asin(Math.sin(c)*Math.cos(b)+Math.cos(c)*Math.sin(b)*Math.cos(a));c=d+Math.atan2(Math.sin(a)*Math.sin(b)*Math.cos(c),Math.cos(b)-Math.sin(c)*Math.sin(h));c=(c+3*Math.PI)%(2*Math.PI)-Math.PI;return new LatLon(h.toDeg(),c.toDeg())};
LatLon.intersection=function(a,b,c,d){b=typeof b=="number"?b:typeof b=="string"&&trim(b)!=""?+b:NaN;d=typeof d=="number"?d:typeof d=="string"&&trim(d)!=""?+d:NaN;lat1=a._lat.toRad();lon1=a._lon.toRad();lat2=c._lat.toRad();lon2=c._lon.toRad();brng13=b.toRad();brng23=d.toRad();dLat=lat2-lat1;dLon=lon2-lon1;dist12=2*Math.asin(Math.sqrt(Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(lat1)*Math.cos(lat2)*Math.sin(dLon/2)*Math.sin(dLon/2)));if(dist12==0)return null;brngA=Math.acos((Math.sin(lat2)-Math.sin(lat1)*
Math.cos(dist12))/(Math.sin(dist12)*Math.cos(lat1)));isNaN(brngA)&&(brngA=0);brngB=Math.acos((Math.sin(lat1)-Math.sin(lat2)*Math.cos(dist12))/(Math.sin(dist12)*Math.cos(lat2)));Math.sin(lon2-lon1)>0?(brng12=brngA,brng21=2*Math.PI-brngB):(brng12=2*Math.PI-brngA,brng21=brngB);alpha1=(brng13-brng12+Math.PI)%(2*Math.PI)-Math.PI;alpha2=(brng21-brng23+Math.PI)%(2*Math.PI)-Math.PI;if(Math.sin(alpha1)==0&&Math.sin(alpha2)==0)return null;if(Math.sin(alpha1)*Math.sin(alpha2)<0)return null;alpha3=Math.acos(-Math.cos(alpha1)*
Math.cos(alpha2)+Math.sin(alpha1)*Math.sin(alpha2)*Math.cos(dist12));dist13=Math.atan2(Math.sin(dist12)*Math.sin(alpha1)*Math.sin(alpha2),Math.cos(alpha2)+Math.cos(alpha1)*Math.cos(alpha3));lat3=Math.asin(Math.sin(lat1)*Math.cos(dist13)+Math.cos(lat1)*Math.sin(dist13)*Math.cos(brng13));dLon13=Math.atan2(Math.sin(brng13)*Math.sin(dist13)*Math.cos(lat1),Math.cos(dist13)-Math.sin(lat1)*Math.sin(lat3));lon3=lon1+dLon13;lon3=(lon3+Math.PI)%(2*Math.PI)-Math.PI;return new LatLon(lat3.toDeg(),lon3.toDeg())};
LatLon.prototype.rhumbDistanceTo=function(a){var b=this._radius,c=this._lat.toRad(),d=a._lat.toRad(),h=(a._lat-this._lat).toRad();a=Math.abs(a._lon-this._lon).toRad();d=Math.log(Math.tan(d/2+Math.PI/4)/Math.tan(c/2+Math.PI/4));c=!isNaN(h/d)?h/d:Math.cos(c);a>Math.PI&&(a=2*Math.PI-a);return(Math.sqrt(h*h+c*c*a*a)*b).toPrecisionFixed(4)};
LatLon.prototype.rhumbBearingTo=function(a){var b=this._lat.toRad(),c=a._lat.toRad();a=(a._lon-this._lon).toRad();b=Math.log(Math.tan(c/2+Math.PI/4)/Math.tan(b/2+Math.PI/4));Math.abs(a)>Math.PI&&(a=a>0?-(2*Math.PI-a):2*Math.PI+a);return(Math.atan2(a,b).toDeg()+360)%360};
LatLon.prototype.rhumbDestinationPoint=function(a,b){var c=this._radius,d=parseFloat(b)/c,h=this._lat.toRad();c=this._lon.toRad();a=a.toRad();var g=h+d*Math.cos(a),k=g-h,n=Math.log(Math.tan(g/2+Math.PI/4)/Math.tan(h/2+Math.PI/4));h=!isNaN(k/n)?k/n:Math.cos(h);d=d*Math.sin(a)/h;Math.abs(g)>Math.PI/2&&(g=g>0?Math.PI-g:-(Math.PI-g));lon2=(c+d+3*Math.PI)%(2*Math.PI)-Math.PI;return new LatLon(g.toDeg(),lon2.toDeg())};
LatLon.prototype.lat=function(a,b){if(typeof a=="undefined")return this._lat;return Geo.toLat(this._lat,a,b)};LatLon.prototype.lon=function(a,b){if(typeof a=="undefined")return this._lon;return Geo.toLon(this._lon,a,b)};LatLon.prototype.toString=function(a,b){typeof a=="undefined"&&(a="dms");if(isNaN(this._lat)||isNaN(this._lon))return"-,-";return Geo.toLat(this._lat,a,b)+", "+Geo.toLon(this._lon,a,b)};
if(typeof Number.prototype.toRad==="undefined")Number.prototype.toRad=function(){return this*Math.PI/180};if(typeof Number.prototype.toDeg==="undefined")Number.prototype.toDeg=function(){return this*180/Math.PI};
if(typeof Number.prototype.toPrecisionFixed==="undefined")Number.prototype.toPrecisionFixed=function(a){if(isNaN(this))return"NaN";var b=this<0?-this:this,c=this<0?"-":"";if(b==0){for(b="0.";a--;)b+="0";return b}var d=Math.ceil(Math.log(b)*Math.LOG10E);b=String(Math.round(b*Math.pow(10,a-d)));if(d>0){for(l=d-b.length;l-- >0;)b+="0";d<b.length&&(b=b.slice(0,d)+"."+b.slice(d))}else{for(;d++<0;)b="0"+b;b="0."+b}return c+b};
if(typeof String.prototype.trim==="undefined")String.prototype.trim=function(){return String(this).replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var Geo={};
Geo.parseDMS=function(a){if(typeof b=="object")throw new TypeError("Geo.parseDMS - dmsStr is [DOM?] object");if(typeof a==="number"&&isFinite(a))return Number(a);b=String(a).trim().replace(/^-/,"").replace(/[NSEW]$/i,"").split(/[^0-9.,]+/);b[b.length-1]==""&&b.splice(b.length-1);if(b=="")return NaN;switch(b.length){case 3:var b=b[0]/1+b[1]/60+b[2]/3600;break;case 2:b=b[0]/1+b[1]/60;break;case 1:b=b[0];/[NS]/i.test(a)&&(b="0"+b);/[0-9]{7}/.test(b)&&(b=b.slice(0,3)/1+b.slice(3,5)/60+b.slice(5)/3600);
break;default:return NaN}/^-|[WS]$/i.test(a.trim())&&(b=-b);return Number(b)};
Geo.toDMS=function(a,b,c){if(typeof a=="object")throw new TypeError("Geo.toDMS - deg is [DOM?] object");if(isNaN(a))return"NaN";typeof b=="undefined"&&(b="dms");if(typeof c=="undefined")switch(b){case "d":c=4;break;case "dm":c=2;break;case "dms":c=0;break;default:b="dms",c=0}a=Math.abs(a);switch(b){case "d":a=a.toFixed(c);a<100&&(a="0"+a);a<10&&(a="0"+a);dms=a+"\u00b0";break;case "dm":b=(a*60).toFixed(c);a=Math.floor(b/60);b=(b%60).toFixed(c);a<100&&(a="0"+a);a<10&&(a="0"+a);b<10&&(b="0"+b);dms=a+
"\u00b0"+b+"\u2032";break;case "dms":var d=(a*3600).toFixed(c);a=Math.floor(d/3600);b=Math.floor(d/60)%60;c=(d%60).toFixed(c);a<100&&(a="0"+a);a<10&&(a="0"+a);b<10&&(b="0"+b);c<10&&(c="0"+c);dms=a+"\u00b0"+b+"\u2032"+c+"\u2033"}return dms};Geo.toLat=function(a,b,c){b=Geo.toDMS(a,b,c);return b==""?"":b.slice(1)+(a<0?"S":"N")};Geo.toLon=function(a,b,c){b=Geo.toDMS(a,b,c);return b==""?"":b+(a<0?"W":"E")};Geo.toBrng=function(a,b,c){return Geo.toDMS((Number(a)+360)%360,b,c).replace("360","0")};
(function(a){function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.ajaxSubmit=function(c){function d(){function d(){var b=j.attr("target"),c=j.attr("action");h.setAttribute("target",k);h.getAttribute("method")!="POST"&&h.setAttribute("method","POST");h.getAttribute("action")!=m.url&&h.setAttribute("action",m.url);m.skipEncodingOverride||
j.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});m.timeout&&(G=setTimeout(function(){U=!0;g(!0)},m.timeout));var e=[];try{if(m.extraData)for(var q in m.extraData)e.push(a('<input type="hidden" name="'+q+'" value="'+m.extraData[q]+'" />').appendTo(h)[0]);o.appendTo("body");n.attachEvent?n.attachEvent("onload",g):n.addEventListener("load",g,!1);h.submit()}finally{h.setAttribute("action",c),b?h.setAttribute("target",b):j.removeAttr("target"),a(e).remove()}}function g(c){if(!q.aborted&&
!s)if(c===!0&&q)q.abort("timeout");else if((c=n.contentWindow?n.contentWindow.document:n.contentDocument?n.contentDocument:n.document)&&c.location.href!=m.iframeSrc||U){n.detachEvent?n.detachEvent("onload",g):n.removeEventListener("load",g,!1);var d=!0;try{if(U)throw"timeout";var h=m.dataType=="xml"||c.XMLDocument||a.isXMLDoc(c);b("isXml="+h);if(!h&&window.opera&&(c.body==null||c.body.innerHTML=="")&&--Y){b("requeing onLoad callback, DOM not available");setTimeout(g,250);return}q.responseText=c.body?
c.body.innerHTML:c.documentElement?c.documentElement.innerHTML:null;q.responseXML=c.XMLDocument?c.XMLDocument:c;if(h)m.dataType="xml";q.getResponseHeader=function(a){return{"content-type":m.dataType}[a]};var j=/(json|script|text)/.test(m.dataType);if(j||m.textarea){var k=c.getElementsByTagName("textarea")[0];if(k)q.responseText=k.value;else if(j){var F=c.getElementsByTagName("pre")[0],A=c.getElementsByTagName("body")[0];if(F)q.responseText=F.textContent;else if(A)q.responseText=A.innerHTML}}else if(m.dataType==
"xml"&&!q.responseXML&&q.responseText!=null)q.responseXML=M(q.responseText);aa=e(q,m.dataType,m)}catch(t){b("error caught:",t),d=!1,q.error=t,m.error&&m.error.call(m.context,q,"error",t),R&&a.event.trigger("ajaxError",[q,m,t])}q.aborted&&(b("upload aborted"),d=!1);d&&(m.success&&m.success.call(m.context,aa,"success",q),R&&a.event.trigger("ajaxSuccess",[q,m]));window.hide_loading();R&&a.event.trigger("ajaxComplete",[q,m]);R&&!--a.active&&a.event.trigger("ajaxStop");m.complete&&m.complete.call(m.context,
q,d?"success":"error");s=!0;m.timeout&&clearTimeout(G);setTimeout(function(){o.removeData("form-plugin-onload");o.remove();q.responseXML=null},100)}}var h=j[0];if(a(":input[name=submit],:input[id=submit]",h).length)alert('Error: Form elements must not have name or id of "submit".');else{var m=a.extend(!0,{},a.ajaxSettings,c);m.context=m.context||m;var k="jqFormIO"+(new Date).getTime(),o=a('<iframe id="'+k+'" name="'+k+'" src="'+m.iframeSrc+'" />'),n=o[0];o.css({position:"absolute",top:"-1000px",left:"-1000px"});
var q={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(c){c=c==="timeout"?"timeout":"aborted";b("aborting upload... "+c);this.aborted=1;o.attr("src",m.iframeSrc);q.error=c;m.error&&m.error.call(m.context,q,c,c);R&&a.event.trigger("ajaxError",[q,m,c]);m.complete&&m.complete.call(m.context,q,c)}},R=m.global;window.show_loading();R&&!a.active++&&a.event.trigger("ajaxStart");
R&&a.event.trigger("ajaxSend",[q,m]);if(m.beforeSend&&m.beforeSend.call(m.context,q,m)===!1)m.global&&a.active--;else if(!q.aborted){var U=0,G,v=h.clk;if(v){var O=v.name;if(O&&!v.disabled&&(m.extraData=m.extraData||{},m.extraData[O]=v.value,v.type=="image"))m.extraData[O+".x"]=h.clk_x,m.extraData[O+".y"]=h.clk_y}m.forceSync?d():setTimeout(d,10);var aa,Y=50,s,M=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,
"text/xml");return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null},F=a.parseJSON||function(a){return window.eval("("+a+")")},e=function(b,c,d){var g=b.getResponseHeader("content-type")||"",e=c==="xml"||!c&&g.indexOf("xml")>=0;b=e?b.responseXML:b.responseText;e&&b.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror");d&&d.dataFilter&&(b=d.dataFilter(b,c));typeof b==="string"&&(c==="json"||!c&&g.indexOf("json")>=0?b=F(b):(c==="script"||!c&&g.indexOf("javascript")>=
0)&&a.globalEval(b));return b}}}}if(!this.length)return b("ajaxSubmit: skipping submit process - no element selected"),this;typeof c=="function"&&(c={success:c});var h=this.attr("action");(h=typeof h==="string"?a.trim(h):"")&&(h=(h.match(/^([^#]+)/)||[])[1]);h=h||window.location.href||"";c=a.extend(!0,{url:h,success:a.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);h={};this.trigger("form-pre-serialize",
[this,c,h]);if(h.veto)return b("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1)return b("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var g,k,n=this.formToArray(c.semantic);if(c.data)for(g in c.extraData=c.data,c.data)if(c.data[g]instanceof Array)for(var m in c.data[g])n.push({name:g,value:c.data[g][m]});else k=c.data[g],k=a.isFunction(k)?k():k,n.push({name:g,value:k});if(c.beforeSubmit&&c.beforeSubmit(n,this,
c)===!1)return b("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[n,this,c,h]);if(h.veto)return b("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;g=a.param(n);c.type.toUpperCase()=="GET"?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+g,c.data=null):c.data=g;var j=this,o=[];c.resetForm&&o.push(function(){j.resetForm()});c.clearForm&&o.push(function(){j.clearForm()});if(!c.dataType&&c.target){var q=c.success||function(){};o.push(function(b){var d=
c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(q,arguments)})}else c.success&&o.push(c.success);c.success=function(a,b,d){for(var g=c.context||c,h=0,m=o.length;h<m;h++)o[h].apply(g,[a,b,d||j,j])};g=a("input:file",this).length>0;m=j.attr("enctype")=="multipart/form-data"||j.attr("encoding")=="multipart/form-data";c.iframe!==!1&&(g||c.iframe||m)?c.closeKeepAlive?a.get(c.closeKeepAlive,d):d():a.ajax(c);this.trigger("form-submit-notify",[this,c]);return this};a.fn.ajaxForm=function(c){if(this.length===
0){var d={s:this.selector,c:this.context};if(!a.isReady&&d.s)return b("DOM not ready, queuing ajaxForm"),a(function(){a(d.s,d.c).ajaxForm(c)}),this;b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(c))}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){c=d.closest(":submit");if(c.length==
0)return;c=c[0]}var n=this;n.clk=c;if(c.type=="image")b.offsetX!=void 0?(n.clk_x=b.offsetX,n.clk_y=b.offsetY):typeof a.fn.offset=="function"?(d=d.offset(),n.clk_x=b.pageX-d.left,n.clk_y=b.pageY-d.top):(n.clk_x=b.pageX-c.offsetLeft,n.clk_y=b.pageY-c.offsetTop);setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(b){var d=[];if(this.length===0)return d;var h=this[0],g=b?h.getElementsByTagName("*"):
h.elements;if(!g)return d;var k,n,m,j,o,q;k=0;for(o=g.length;k<o;k++)if(n=g[k],m=n.name)if(b&&h.clk&&n.type=="image")!n.disabled&&h.clk==n&&(d.push({name:m,value:a(n).val()}),d.push({name:m+".x",value:h.clk_x},{name:m+".y",value:h.clk_y}));else if((j=a.fieldValue(n,!0))&&j.constructor==Array){n=0;for(q=j.length;n<q;n++)d.push({name:m,value:j[n]})}else j!==null&&typeof j!="undefined"&&d.push({name:m,value:j});if(!b&&h.clk&&(b=a(h.clk),g=b[0],(m=g.name)&&!g.disabled&&g.type=="image"))d.push({name:m,
value:b.val()}),d.push({name:m+".x",value:h.clk_x},{name:m+".y",value:h.clk_y});return d};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var d=[];this.each(function(){var h=this.name;if(h){var g=a.fieldValue(this,b);if(g&&g.constructor==Array)for(var k=0,n=g.length;k<n;k++)d.push({name:h,value:g[k]});else g!==null&&typeof g!="undefined"&&d.push({name:this.name,value:g})}});return a.param(d)};a.fn.fieldValue=function(b){for(var d=[],h=0,g=this.length;h<
g;h++){var k=a.fieldValue(this[h],b);k===null||typeof k=="undefined"||k.constructor==Array&&!k.length||(k.constructor==Array?a.merge(d,k):d.push(k))}return d};a.fieldValue=function(b,d){var h=b.name,g=b.type,k=b.tagName.toLowerCase();d===void 0&&(d=!0);if(d&&(!h||b.disabled||g=="reset"||g=="button"||(g=="checkbox"||g=="radio")&&!b.checked||(g=="submit"||g=="image")&&b.form&&b.form.clk!=b||k=="select"&&b.selectedIndex==-1))return null;if(k=="select"){var n=b.selectedIndex;if(n<0)return null;h=[];k=
b.options;var m=(g=g=="select-one")?n+1:k.length;for(n=g?n:0;n<m;n++){var j=k[n];if(j.selected){var o=j.value;o||(o=j.attributes&&j.attributes.value&&!j.attributes.value.specified?j.text:j.value);if(g)return o;h.push(o)}}return h}return a(b).val()};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();if(a=="text"||a=="password"||b==
"textarea")this.value="";else if(a=="checkbox"||a=="radio")this.checked=!1;else if(b=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){a===void 0&&(a=!0);return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){b===void 0&&(b=!0);return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio")this.checked=b;else if(this.tagName.toLowerCase()==
"option")d=a(this).parent("select"),b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(!1),this.selected=b})}})(jQuery);
(function(a){function b(b,d){this.$element=a(b);this.options=d;this.enabled=!0;this.fixTitle()}b.prototype={show:function(){var b=this.getTitle();if(b&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](b);d[0].className="tipsy";d.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);b=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var h=d[0].offsetWidth,g=d[0].offsetHeight,
k=typeof this.options.gravity=="function"?this.options.gravity.call(this.$element[0]):this.options.gravity,n;switch(k.charAt(0)){case "n":n={top:b.top+b.height+this.options.offset,left:b.left+b.width/2-h/2};break;case "s":n={top:b.top-g-this.options.offset,left:b.left+b.width/2-h/2};break;case "e":n={top:b.top+b.height/2-g/2,left:b.left-h-this.options.offset};break;case "w":n={top:b.top+b.height/2-g/2,left:b.left+b.width+this.options.offset}}if(k.length==2)n.left=k.charAt(1)=="w"?b.left+b.width/2-
15:b.left+b.width/2-h+15;d.css(n).addClass("tipsy-"+k);d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+k.charAt(0);this.options.className&&d.addClass(typeof this.options.className=="function"?this.options.className.call(this.$element[0]):this.options.className);this.options.fade?d.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):d.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){Utils.log("Hide");this.options.fade?
this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},fixTitle:function(){var a=this.$element;if(a.attr("title")||typeof a.attr("original-title")!="string")a.attr("original-title",a.attr("title")||"").removeAttr("title")},getTitle:function(){var a,b=this.$element,h=this.options;this.fixTitle();h=this.options;typeof h.title=="string"?a=b.attr(h.title=="title"?"original-title":h.title):typeof h.title=="function"&&(a=h.title.call(b[0]));return(a=(""+a).replace(/(^\s*|\s*$)/,""))||
h.fallback},tip:function(){if(!this.$tip)this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');return this.$tip},validate:function(){if(!this.$element[0].parentNode)this.hide(),this.options=this.$element=null},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};a.fn.tipsy=function(c){function d(d){var g=a.data(d,"tipsy");g||(g=new b(d,a.fn.tipsy.elementOptions(d,c)),a.data(d,
"tipsy",g));return g}function h(){var a=d(this);a.hoverState="in";c.delayIn==0?a.show():(a.fixTitle(),setTimeout(function(){a.hoverState=="in"&&a.show()},c.delayIn))}function g(){var a=d(this);a.hoverState="out";c.delayOut==0?a.hide():setTimeout(function(){a.hoverState=="out"&&a.hide()},c.delayOut)}if(c===!0)return this.data("tipsy");else if(typeof c=="string"){var k=this.data("tipsy");if(k)k[c]();return this}c=a.extend({},a.fn.tipsy.defaults,c);c.live||this.each(function(){d(this)});if(c.trigger!=
"manual"){k=c.live?"live":"bind";var n=c.trigger=="hover"?"mouseleave":"blur";this[k](c.trigger=="hover"?"mouseenter":"focus",h)[k](n,g)}return this};a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover"};a.fn.tipsy.elementOptions=function(b,d){return a.metadata?a.extend({},d,a(b).metadata()):d};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?
"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"};a.fn.tipsy.autoBounds=function(b,d){return function(){var h={ns:d[0],ew:d.length>1?d[1]:!1},g=a(document).scrollTop()+b,k=a(document).scrollLeft()+b,n=a(this);if(n.offset().top<g)h.ns="n";if(n.offset().left<k)h.ew="w";if(a(window).width()+a(document).scrollLeft()-n.offset().left<b)h.ew="e";if(a(window).height()+a(document).scrollTop()-n.offset().top<b)h.ns="s";return h.ns+(h.ew?
h.ew:"")}}})(jQuery);Date.ext={};Date.ext.util={};Date.ext.util.xPad=function(a,b,c){for(typeof c=="undefined"&&(c=10);parseInt(a,10)<c&&c>1;c/=10)a=b.toString()+a;return a.toString()};Date.prototype.locale="en-GB";if(document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang)Date.prototype.locale=document.getElementsByTagName("html")[0].lang;Date.ext.locales={};
Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"};Date.ext.locales["en-US"]=Date.ext.locales.en;Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z";
Date.ext.locales["en-US"].x="%D";Date.ext.locales["en-US"].X="%r";Date.ext.locales["en-GB"]=Date.ext.locales.en;Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"];
Date.ext.formats={a:function(a){return Date.ext.locales[a.locale].a[a.getDay()]},A:function(a){return Date.ext.locales[a.locale].A[a.getDay()]},b:function(a){return Date.ext.locales[a.locale].b[a.getMonth()]},B:function(a){return Date.ext.locales[a.locale].B[a.getMonth()]},c:"toLocaleString",C:function(a){return Date.ext.util.xPad(parseInt(a.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(a){return Date.ext.util.xPad(parseInt(Date.ext.util.G(a)/100,10),0)},G:function(a){var b=
a.getFullYear(),c=parseInt(Date.ext.formats.V(a),10);a=parseInt(Date.ext.formats.W(a),10);a>c?b++:a===0&&c>=52&&b--;return b},H:["getHours","0"],I:function(a){a=a.getHours()%12;return Date.ext.util.xPad(a===0?12:a,0)},j:function(a){var b=a-new Date(""+a.getFullYear()+"/1/1 GMT");b+=a.getTimezoneOffset()*6E4;a=parseInt(b/6E4/60/24,10)+1;return Date.ext.util.xPad(a,0,100)},m:function(a){return Date.ext.util.xPad(a.getMonth()+1,0)},M:["getMinutes","0"],p:function(a){return Date.ext.locales[a.locale].p[a.getHours()>=
12?1:0]},P:function(a){return Date.ext.locales[a.locale].P[a.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(a){a=a.getDay();return a===0?7:a},U:function(a){var b=parseInt(Date.ext.formats.j(a),10);a=6-a.getDay();b=parseInt((b+a)/7,10);return Date.ext.util.xPad(b,0)},V:function(a){var b=parseInt(Date.ext.formats.W(a),10),c=(new Date(""+a.getFullYear()+"/1/1")).getDay();b+=c>4||c<=1?0:1;b==53&&(new Date(""+a.getFullYear()+"/12/31")).getDay()<4?b=1:b===0&&(b=Date.ext.formats.V(new Date(""+(a.getFullYear()-
1)+"/12/31")));return Date.ext.util.xPad(b,0)},w:"getDay",W:function(a){var b=parseInt(Date.ext.formats.j(a),10);a=7-Date.ext.formats.u(a);b=parseInt((b+a)/7,10);return Date.ext.util.xPad(b,0,10)},y:function(a){return Date.ext.util.xPad(a.getFullYear()%100,0)},Y:"getFullYear",z:function(a){a=a.getTimezoneOffset();var b=Date.ext.util.xPad(parseInt(Math.abs(a/60),10),0),c=Date.ext.util.xPad(a%60,0);return(a>0?"-":"+")+b+c},Z:function(a){return a.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(){return"%"}};
Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"};Date.ext.aggregates.z=Date.ext.formats.z(new Date);Date.ext.aggregates.Z=Date.ext.formats.Z(new Date);Date.ext.unsupported={};
Date.prototype.strftime=function(a){if(!(this.locale in Date.ext.locales))this.locale=this.locale.replace(/-[a-zA-Z]+$/,"")in Date.ext.locales?this.locale.replace(/-[a-zA-Z]+$/,""):"en-GB";for(var b=this;a.match(/%[cDhnrRtTxXzZ]/);)a=a.replace(/%([cDhnrRtTxXzZ])/g,function(a,d){var h=Date.ext.aggregates[d];return h=="locale"?Date.ext.locales[b.locale][d]:h});a=a.replace(/%([aAbBCdegGHIjmMpPSuUVwWyY%])/g,function(a,d){var h=Date.ext.formats[d];return typeof h=="string"?b[h]():typeof h=="function"?
h.call(b,b):typeof h=="object"&&typeof h[0]=="string"?Date.ext.util.xPad(b[h[0]](),h[1]):d});b=null;return a};
Date.CultureInfo={name:"it-IT",englishName:"Italian (Italy)",nativeName:"italiano (Italia)",dayNames:["domenica","luned\u00ec","marted\u00ec","mercoled\u00ec","gioved\u00ec","venerd\u00ec","sabato"],abbreviatedDayNames:["dom","lun","mar","mer","gio","ven","sab"],shortestDayNames:["do","lu","ma","me","gi","ve","sa"],firstLetterDayNames:["d","l","m","m","g","v","s"],monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],abbreviatedMonthNames:["gen",
"feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"dmy",formatPatterns:{shortDate:"dd/MM/yyyy",longDate:"dddd d MMMM yyyy",shortTime:"H.mm",longTime:"H.mm.ss",fullDateTime:"dddd d MMMM yyyy H.mm.ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"dd MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^gen(naio)?/i,
feb:/^feb(braio)?/i,mar:/^mar(zo)?/i,apr:/^apr(ile)?/i,may:/^mag(gio)?/i,jun:/^giu(gno)?/i,jul:/^lug(lio)?/i,aug:/^ago(sto)?/i,sep:/^set(tembre)?/i,oct:/^ott(obre)?/i,nov:/^nov(embre)?/i,dec:/^dic(embre)?/i,sun:/^do(m(enica)?)?/i,mon:/^lu(n(ed\u00ec)?)?/i,tue:/^ma(r(ted\u00ec)?)?/i,wed:/^me(r(coled\u00ec)?)?/i,thu:/^gi(o(ved\u00ec)?)?/i,fri:/^ve(n(erd\u00ec)?)?/i,sat:/^sa(b(ato)?)?/i,future:/^pro(x|ss(imo)?)/i,past:/^ultimo|prec(edente)?|passato/i,add:/^(\+|pi\u00f9)/i,subtract:/^(\-|meno)/i,yesterday:/^ieri/i,
today:/^oggi/i,tomorrow:/^domani/i,now:/^ora|adesso/i,millisecond:/^ms|milli(second[oi])?/i,second:/^sec(ondi)?s?/i,minute:/^mn|min(ut[io])?/i,hour:/^h|or[ae]/i,week:/^w|settiman[ea]/i,month:/^m|mes[ei]/i,day:/^d|giorn[oi]/i,year:/^y|ann[oi]/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a(?!u|p)|p)/i},timezones:[{name:"UTC",offset:"-000"},
{name:"GMT",offset:"-000"},{name:"EST",offset:"-0500"},{name:"EDT",offset:"-0400"},{name:"CST",offset:"-0600"},{name:"CDT",offset:"-0500"},{name:"MST",offset:"-0700"},{name:"MDT",offset:"-0600"},{name:"PST",offset:"-0800"},{name:"PDT",offset:"-0700"}]};
(function(){var a=Date,b=a.prototype,c=a.CultureInfo,d=function(a,b){b||(b=2);return("000"+a).slice(b*-1)};b.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};b.setTimeToNow=function(){var a=new Date;this.setHours(a.getHours());this.setMinutes(a.getMinutes());this.setSeconds(a.getSeconds());this.setMilliseconds(a.getMilliseconds());return this};a.today=function(){return(new Date).clearTime()};a.compare=function(a,b){if(isNaN(a)||isNaN(b))throw Error(a+
" - "+b);else if(a instanceof Date&&b instanceof Date)return a<b?-1:a>b?1:0;else throw new TypeError(a+" - "+b);};a.equals=function(a,b){return a.compareTo(b)===0};a.getDayNumberFromName=function(a){var b=c.dayNames,d=c.abbreviatedDayNames,g=c.shortestDayNames;a=a.toLowerCase();for(var h=0;h<b.length;h++)if(b[h].toLowerCase()==a||d[h].toLowerCase()==a||g[h].toLowerCase()==a)return h;return-1};a.getMonthNumberFromName=function(a){var b=c.monthNames,d=c.abbreviatedMonthNames;a=a.toLowerCase();for(var g=
0;g<b.length;g++)if(b[g].toLowerCase()==a||d[g].toLowerCase()==a)return g;return-1};a.isLeapYear=function(a){return a%4===0&&a%100!==0||a%400===0};a.getDaysInMonth=function(b,c){return[31,a.isLeapYear(b)?29:28,31,30,31,30,31,31,30,31,30,31][c]};a.getTimezoneAbbreviation=function(a){for(var b=c.timezones,d=0;d<b.length;d++)if(b[d].offset===a)return b[d].name;return null};a.getTimezoneOffset=function(a){for(var b=c.timezones,d=0;d<b.length;d++)if(b[d].name===a.toUpperCase())return b[d].offset;return null};
b.clone=function(){return new Date(this.getTime())};b.toLocalTime=function(){return this.setTimezoneOffset(0)};b.compareTo=function(a){return Date.compare(this,a)};b.equals=function(a){return Date.equals(this,a||new Date)};b.between=function(a,b){return this.getTime()>=a.getTime()&&this.getTime()<=b.getTime()};b.isAfter=function(a){return this.compareTo(a||new Date)===1};b.isBefore=function(a){return this.compareTo(a||new Date)===-1};b.isToday=b.isSameDay=function(a){return this.clone().clearTime().equals((a||
new Date).clone().clearTime())};b.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a*1);return this};b.addSeconds=function(a){return this.addMilliseconds(a*1E3)};b.addMinutes=function(a){return this.addMilliseconds(a*6E4)};b.addHours=function(a){return this.addMilliseconds(a*36E5)};b.addDays=function(a){this.setDate(this.getDate()+a*1);return this};b.addWeeks=function(a){return this.addDays(a*7)};b.addMonths=function(b){var c=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+
b*1);this.setDate(Math.min(c,a.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};b.addYears=function(a){return this.addMonths(a*12)};b.add=function(a){if(typeof a=="number")return this._orient=a,this;a.milliseconds&&this.addMilliseconds(a.milliseconds);a.seconds&&this.addSeconds(a.seconds);a.minutes&&this.addMinutes(a.minutes);a.hours&&this.addHours(a.hours);a.weeks&&this.addWeeks(a.weeks);a.months&&this.addMonths(a.months);a.years&&this.addYears(a.years);a.days&&this.addDays(a.days);
return this};var h,g,k;b.getWeek=function(){var a,b,c,d,n;h=!h?this.getFullYear():h;g=!g?this.getMonth()+1:g;k=!k?this.getDate():k;g<=2?(a=h-1,b=(a/4|0)-(a/100|0)+(a/400|0),c=b-(((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0)),d=0,n=k-1+31*(g-1)):(a=h,b=(a/4|0)-(a/100|0)+(a/400|0),c=b-(((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0)),d=c+1,n=k+(153*(g-3)+2)/5+58+c);a=(a+b)%7;d=n+3-(n+a-d)%7|0;h=g=k=null;return d<0?53-((a-c)/5|0):d>364+c?1:(d/7|0)+1};b.getISOWeek=function(){h=this.getUTCFullYear();g=this.getUTCMonth()+
1;k=this.getUTCDate();return d(this.getWeek())};b.setWeek=function(a){return this.moveToDayOfWeek(1).addWeeks(a-this.getWeek())};var n=function(a,b,c,d){if(typeof a=="undefined")return!1;else if(typeof a!="number")throw new TypeError(a+" is not a Number.");else if(a<b||a>c)throw new RangeError(a+" is not a valid value for "+d+".");return!0};a.validateMillisecond=function(a){return n(a,0,999,"millisecond")};a.validateSecond=function(a){return n(a,0,59,"second")};a.validateMinute=function(a){return n(a,
0,59,"minute")};a.validateHour=function(a){return n(a,0,23,"hour")};a.validateDay=function(b,c,d){return n(b,1,a.getDaysInMonth(c,d),"day")};a.validateMonth=function(a){return n(a,0,11,"month")};a.validateYear=function(a){return n(a,0,9999,"year")};b.set=function(b){a.validateMillisecond(b.millisecond)&&this.addMilliseconds(b.millisecond-this.getMilliseconds());a.validateSecond(b.second)&&this.addSeconds(b.second-this.getSeconds());a.validateMinute(b.minute)&&this.addMinutes(b.minute-this.getMinutes());
a.validateHour(b.hour)&&this.addHours(b.hour-this.getHours());a.validateMonth(b.month)&&this.addMonths(b.month-this.getMonth());a.validateYear(b.year)&&this.addYears(b.year-this.getFullYear());a.validateDay(b.day,this.getFullYear(),this.getMonth())&&this.addDays(b.day-this.getDate());b.timezone&&this.setTimezone(b.timezone);b.timezoneOffset&&this.setTimezoneOffset(b.timezoneOffset);b.week&&n(b.week,0,53,"week")&&this.setWeek(b.week);return this};b.moveToFirstDayOfMonth=function(){return this.set({day:1})};
b.moveToLastDayOfMonth=function(){return this.set({day:a.getDaysInMonth(this.getFullYear(),this.getMonth())})};b.moveToNthOccurrence=function(a,b){var c=0;if(b>0)c=b-1;else if(b===-1)return this.moveToLastDayOfMonth(),this.getDay()!==a&&this.moveToDayOfWeek(a,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(a,1).addWeeks(c)};b.moveToDayOfWeek=function(a,b){var c=(a-this.getDay()+7*(b||1))%7;return this.addDays(c===0?c+7*(b||1):c)};b.moveToMonth=function(a,b){var c=(a-this.getMonth()+
12*(b||1))%12;return this.addMonths(c===0?c+12*(b||1):c)};b.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864E5)+1};b.getTimezone=function(){return a.getTimezoneAbbreviation(this.getUTCOffset())};b.setTimezoneOffset=function(a){var b=this.getTimezoneOffset();return this.addMinutes(Number(a)*-6/10-b)};b.setTimezone=function(b){return this.setTimezoneOffset(a.getTimezoneOffset(b))};b.hasDaylightSavingTime=function(){return Date.today().set({month:0,
day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()};b.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!=this.getTimezoneOffset()};b.getUTCOffset=function(){var a=this.getTimezoneOffset()*-10/6;return a<0?(a=(a-1E4).toString(),a.charAt(0)+a.substr(2)):(a=(a+1E4).toString(),"+"+a.substr(1))};b.getElapsed=function(a){return(a||new Date)-this};if(!b.toISOString)b.toISOString=function(){function a(b){return b<10?"0"+b:b}return'"'+
this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+'Z"'};b._toString=b.toString;b.toString=function(a){var b=this;if(a&&a.length==1){var g=c.formatPatterns;b.t=b.toString;switch(a){case "d":return b.t(g.shortDate);case "D":return b.t(g.longDate);case "F":return b.t(g.fullDateTime);case "m":return b.t(g.monthDay);case "r":return b.t(g.rfc1123);case "s":return b.t(g.sortableDateTime);case "t":return b.t(g.shortTime);
case "T":return b.t(g.longTime);case "u":return b.t(g.universalSortableDateTime);case "y":return b.t(g.yearMonth)}}var h=function(a){switch(a*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};return a?a.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(a){if(a.charAt(0)==="\\")return a.replace("\\","");b.h=b.getHours;switch(a){case "hh":return d(b.h()<13?b.h()===0?12:b.h():b.h()-12);case "h":return b.h()<13?b.h()===
0?12:b.h():b.h()-12;case "HH":return d(b.h());case "H":return b.h();case "mm":return d(b.getMinutes());case "m":return b.getMinutes();case "ss":return d(b.getSeconds());case "s":return b.getSeconds();case "yyyy":return d(b.getFullYear(),4);case "yy":return d(b.getFullYear());case "dddd":return c.dayNames[b.getDay()];case "ddd":return c.abbreviatedDayNames[b.getDay()];case "dd":return d(b.getDate());case "d":return b.getDate();case "MMMM":return c.monthNames[b.getMonth()];case "MMM":return c.abbreviatedMonthNames[b.getMonth()];
case "MM":return d(b.getMonth()+1);case "M":return b.getMonth()+1;case "t":return b.h()<12?c.amDesignator.substring(0,1):c.pmDesignator.substring(0,1);case "tt":return b.h()<12?c.amDesignator:c.pmDesignator;case "S":return h(b.getDate());default:return a}}):this._toString()}})();
(function(){Date.Parsing={Exception:function(a){this.message="Parse error at '"+a.substring(0,10)+" ...'"}};for(var a=Date.Parsing,b=a.Operators={rtoken:function(b){return function(c){var d=c.match(b);if(d)return[d[0],c.substring(d[0].length)];else throw new a.Exception(c);}},token:function(){return function(a){return b.rtoken(RegExp("^s*"+a+"s*"))(a)}},stoken:function(a){return b.rtoken(RegExp("^"+a))},until:function(a){return function(b){for(var c=[],d=null;b.length;){try{d=a.call(this,b)}catch(h){c.push(d[0]);
b=d[1];continue}break}return[c,b]}},many:function(a){return function(b){for(var c=[],d=null;b.length;){try{d=a.call(this,b)}catch(h){break}c.push(d[0]);b=d[1]}return[c,b]}},optional:function(a){return function(b){var c=null;try{c=a.call(this,b)}catch(d){return[null,b]}return[c[0],c[1]]}},not:function(b){return function(c){try{b.call(this,c)}catch(d){return[null,c]}throw new a.Exception(c);}},ignore:function(a){return a?function(b){var c=null;c=a.call(this,b);return[null,c[1]]}:null},product:function(){for(var a=
arguments[0],c=Array.prototype.slice.call(arguments,1),d=[],h=0;h<a.length;h++)d.push(b.each(a[h],c));return d},cache:function(b){var c={},d=null;return function(h){try{d=c[h]=c[h]||b.call(this,h)}catch(j){d=c[h]=j}if(d instanceof a.Exception)throw d;else return d}},any:function(){var b=arguments;return function(c){for(var d=null,h=0;h<b.length;h++)if(b[h]!=null){try{d=b[h].call(this,c)}catch(j){d=null}if(d)return d}throw new a.Exception(c);}},each:function(){var b=arguments;return function(c){for(var d=
[],h=null,j=0;j<b.length;j++)if(b[j]!=null){try{h=b[j].call(this,c)}catch(o){throw new a.Exception(c);}d.push(h[0]);c=h[1]}return[d,c]}},all:function(){var a=a;return a.each(a.optional(arguments))},sequence:function(c,d,h){d=d||b.rtoken(/^\s*/);h=h||null;if(c.length==1)return c[0];return function(b){for(var j=null,o=null,q=[],A=0;A<c.length;A++){try{j=c[A].call(this,b)}catch(y){break}q.push(j[0]);try{o=d.call(this,j[1])}catch(t){o=null;break}b=o[1]}if(!j)throw new a.Exception(b);if(o)throw new a.Exception(o[1]);
if(h)try{j=h.call(this,j[1])}catch(N){throw new a.Exception(j[1]);}return[q,j?j[1]:b]}},between:function(a,c,d){d=d||a;var h=b.each(b.ignore(a),c,b.ignore(d));return function(a){a=h.call(this,a);return[[a[0][0],r[0][2]],a[1]]}},list:function(a,c,d){c=c||b.rtoken(/^\s*/);d=d||null;return a instanceof Array?b.each(b.product(a.slice(0,-1),b.ignore(c)),a.slice(-1),b.ignore(d)):b.each(b.many(b.each(a,b.ignore(c))),px,b.ignore(d))},set:function(c,d,h){d=d||b.rtoken(/^\s*/);h=h||null;return function(m){for(var j=
null,o=j=null,q=null,A=[[],m],y=!1,t=0;t<c.length;t++){j=o=null;y=c.length==1;try{j=c[t].call(this,m)}catch(N){continue}q=[[j[0]],j[1]];if(j[1].length>0&&!y)try{o=d.call(this,j[1])}catch(K){y=!0}else y=!0;!y&&o[1].length===0&&(y=!0);if(!y){j=[];for(y=0;y<c.length;y++)t!=y&&j.push(c[y]);j=b.set(j,d).call(this,o[1]);j[0].length>0&&(q[0]=q[0].concat(j[0]),q[1]=j[1])}q[1].length<A[1].length&&(A=q);if(A[1].length===0)break}if(A[0].length===0)return A;if(h){try{o=h.call(this,A[1])}catch(B){throw new a.Exception(A[1]);
}A[1]=o[1]}return A}},forward:function(a,b){return function(c){return a[b].call(this,c)}},replace:function(a,b){return function(c){c=a.call(this,c);return[b,c[1]]}},process:function(a,b){return function(c){c=a.call(this,c);return[b.call(this,c[0]),c[1]]}},min:function(b,c){return function(d){var h=c.call(this,d);if(h[0].length<b)throw new a.Exception(d);return h}}},c=function(a){return function(){var b=null,c=[];arguments.length>1?b=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&
(b=arguments[0]);if(b)for(var d=b.shift();0<d.length;)return b.unshift(d[0]),c.push(a.apply(null,b)),b.shift(),c;else return a.apply(null,arguments)}},d="optional not ignore cache".split(/\s/),h=0;h<d.length;h++)b[d[h]]=c(b[d[h]]);c=function(a){return function(){return arguments[0]instanceof Array?a.apply(null,arguments[0]):a.apply(null,arguments)}};d="each any all".split(/\s/);for(h=0;h<d.length;h++)b[d[h]]=c(b[d[h]])})();
(function(){var a=Date,b=a.CultureInfo,c=function(a){for(var b=[],d=0;d<a.length;d++)a[d]instanceof Array?b=b.concat(c(a[d])):a[d]&&b.push(a[d]);return b};a.Grammar={};a.Translator={hour:function(a){return function(){this.hour=Number(a)}},minute:function(a){return function(){this.minute=Number(a)}},second:function(a){return function(){this.second=Number(a)}},meridian:function(a){return function(){this.meridian=a.slice(0,1).toLowerCase()}},timezone:function(a){return function(){var b=a.replace(/[^\d\+\-]/g,
"");b.length?this.timezoneOffset=Number(b):this.timezone=a.toLowerCase()}},day:function(a){var b=a[0];return function(){this.day=Number(b.match(/\d+/)[0])}},month:function(a){return function(){this.month=a.length==3?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(a)/4:Number(a)-1}},year:function(a){return function(){var c=Number(a);this.year=a.length>2?c:c+(c+2E3<b.twoDigitYearMax?2E3:1900)}},rday:function(a){return function(){switch(a){case "yesterday":this.days=-1;break;case "tomorrow":this.days=
1;break;case "today":this.days=0;break;case "now":this.days=0,this.now=!0}}},finishExact:function(b){b=b instanceof Array?b:[b];for(var c=0;c<b.length;c++)b[c]&&b[c].call(this);b=new Date;if((this.hour||this.minute)&&!this.month&&!this.year&&!this.day)this.day=b.getDate();if(!this.year)this.year=b.getFullYear();if(!this.month&&this.month!==0)this.month=b.getMonth();if(!this.day)this.day=1;if(!this.hour)this.hour=0;if(!this.minute)this.minute=0;if(!this.second)this.second=0;if(this.meridian&&this.hour)if(this.meridian==
"p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.day>a.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");b=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);this.timezone?b.set({timezone:this.timezone}):this.timezoneOffset&&b.set({timezoneOffset:this.timezoneOffset});return b},finish:function(b){b=b instanceof Array?c(b):[b];if(b.length===0)return null;for(var d=0;d<b.length;d++)typeof b[d]==
"function"&&b[d].call(this);b=a.today();if(this.now&&!this.unit&&!this.operator)return new Date;else this.now&&(b=new Date);d=!!(this.days&&this.days!==null||this.orient||this.operator);var g,h,k;k=this.orient=="past"||this.operator=="subtract"?-1:1;!this.now&&"hour minute second".indexOf(this.unit)!=-1&&b.setTimeToNow();if((this.month||this.month===0)&&"year day hour minute second".indexOf(this.unit)!=-1)this.value=this.month+1,this.month=null,d=!0;if(!d&&this.weekday&&!this.day&&!this.days){g=Date[this.weekday]();
this.day=g.getDate();if(!this.month)this.month=g.getMonth();this.year=g.getFullYear()}if(d&&this.weekday&&this.unit!="month")this.unit="day",g=a.getDayNumberFromName(this.weekday)-b.getDay(),h=7,this.days=g?(g+k*h)%h:k*h;if(this.month&&this.unit=="day"&&this.operator)this.value=this.month+1,this.month=null;if(this.value!=null&&this.month!=null&&this.year!=null)this.day=this.value*1;if(this.month&&!this.day&&this.value&&(b.set({day:this.value*1}),!d))this.day=this.value*1;if(!this.month&&this.value&&
this.unit=="month"&&!this.now)this.month=this.value,d=!0;if(d&&(this.month||this.month===0)&&this.unit!="year")this.unit="month",g=this.month-b.getMonth(),h=12,this.months=g?(g+k*h)%h:k*h,this.month=null;if(!this.unit)this.unit="day";if(!this.value&&this.operator&&this.operator!==null&&this[this.unit+"s"]&&this[this.unit+"s"]!==null)this[this.unit+"s"]=this[this.unit+"s"]+(this.operator=="add"?1:-1)+(this.value||0)*k;else if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value)this.value=
1;this[this.unit+"s"]=this.value*k}if(this.meridian&&this.hour)if(this.meridian=="p"&&this.hour<12)this.hour+=12;else if(this.meridian=="a"&&this.hour==12)this.hour=0;if(this.weekday&&!this.day&&!this.days&&(g=Date[this.weekday](),this.day=g.getDate(),g.getMonth()!==b.getMonth()))this.month=g.getMonth();if((this.month||this.month===0)&&!this.day)this.day=1;if(!this.orient&&!this.operator&&this.unit=="week"&&this.value&&!this.day&&!this.month)return Date.today().setWeek(this.value);if(d&&this.timezone&&
this.day&&this.days)this.day=this.days;return d?b.add(this):b.set(this)}};var d=a.Parsing.Operators,h=a.Grammar,g=a.Translator,k;h.datePartDelimiter=d.rtoken(/^([\s\-\.\,\/\x27]+)/);h.timePartDelimiter=d.stoken(":");h.whiteSpace=d.rtoken(/^\s*/);h.generalDelimiter=d.rtoken(/^(([\s\,]|at|@|on)+)/);var n={};h.ctoken=function(a){var c=n[a];if(!c){c=b.regexPatterns;for(var g=a.split(/\s+/),h=[],k=0;k<g.length;k++)h.push(d.replace(d.rtoken(c[g[k]]),g[k]));c=n[a]=d.any.apply(null,h)}return c};h.ctoken2=
function(a){return d.rtoken(b.regexPatterns[a])};h.h=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),g.hour));h.hh=d.cache(d.process(d.rtoken(/^(0[0-9]|1[0-2])/),g.hour));h.H=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),g.hour));h.HH=d.cache(d.process(d.rtoken(/^([0-1][0-9]|2[0-3])/),g.hour));h.m=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),g.minute));h.mm=d.cache(d.process(d.rtoken(/^[0-5][0-9]/),g.minute));h.s=d.cache(d.process(d.rtoken(/^([0-5][0-9]|[0-9])/),g.second));h.ss=
d.cache(d.process(d.rtoken(/^[0-5][0-9]/),g.second));h.hms=d.cache(d.sequence([h.H,h.m,h.s],h.timePartDelimiter));h.t=d.cache(d.process(h.ctoken2("shortMeridian"),g.meridian));h.tt=d.cache(d.process(h.ctoken2("longMeridian"),g.meridian));h.z=d.cache(d.process(d.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),g.timezone));h.zz=d.cache(d.process(d.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),g.timezone));h.zzz=d.cache(d.process(h.ctoken2("timezone"),g.timezone));h.timeSuffix=d.each(d.ignore(h.whiteSpace),
d.set([h.tt,h.zzz]));h.time=d.each(d.optional(d.ignore(d.stoken("T"))),h.hms,h.timeSuffix);h.d=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1]|\d)/),d.optional(h.ctoken2("ordinalSuffix"))),g.day));h.dd=d.cache(d.process(d.each(d.rtoken(/^([0-2]\d|3[0-1])/),d.optional(h.ctoken2("ordinalSuffix"))),g.day));h.ddd=h.dddd=d.cache(d.process(h.ctoken("sun mon tue wed thu fri sat"),function(a){return function(){this.weekday=a}}));h.M=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d|\d)/),g.month));h.MM=d.cache(d.process(d.rtoken(/^(1[0-2]|0\d)/),
g.month));h.MMM=h.MMMM=d.cache(d.process(h.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),g.month));h.y=d.cache(d.process(d.rtoken(/^(\d\d?)/),g.year));h.yy=d.cache(d.process(d.rtoken(/^(\d\d)/),g.year));h.yyy=d.cache(d.process(d.rtoken(/^(\d\d?\d?\d?)/),g.year));h.yyyy=d.cache(d.process(d.rtoken(/^(\d\d\d\d)/),g.year));k=function(){return d.each(d.any.apply(null,arguments),d.not(h.ctoken2("timeContext")))};h.day=k(h.d,h.dd);h.month=k(h.M,h.MMM);h.year=k(h.yyyy,h.yy);h.orientation=d.process(h.ctoken("past future"),
function(a){return function(){this.orient=a}});h.operator=d.process(h.ctoken("add subtract"),function(a){return function(){this.operator=a}});h.rday=d.process(h.ctoken("yesterday tomorrow today now"),g.rday);h.unit=d.process(h.ctoken("second minute hour day week month year"),function(a){return function(){this.unit=a}});h.value=d.process(d.rtoken(/^\d\d?(st|nd|rd|th)?/),function(a){return function(){this.value=a.replace(/\D/g,"")}});h.expression=d.set([h.rday,h.operator,h.value,h.unit,h.orientation,
h.ddd,h.MMM]);k=function(){return d.set(arguments,h.datePartDelimiter)};h.mdy=k(h.ddd,h.month,h.day,h.year);h.ymd=k(h.ddd,h.year,h.month,h.day);h.dmy=k(h.ddd,h.day,h.month,h.year);h.date=function(a){return(h[b.dateElementOrder]||h.mdy).call(this,a)};h.format=d.process(d.many(d.any(d.process(d.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(b){if(h[b])return h[b];else throw a.Parsing.Exception(b);}),d.process(d.rtoken(/^[^dMyhHmstz]+/),function(a){return d.ignore(d.stoken(a))}))),
function(a){return d.process(d.each.apply(null,a),g.finishExact)});var m={};h.formats=function(a){if(a instanceof Array){for(var b=[],c=0;c<a.length;c++)b.push(m[a[c]]=m[a[c]]||h.format(a[c])[0]);return d.any.apply(null,b)}else return m[a]=m[a]||h.format(a)[0]};h._formats=h.formats(['"yyyy-MM-ddTHH:mm:ssZ"',"yyyy-MM-ddTHH:mm:ssZ","yyyy-MM-ddTHH:mm:ssz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mmZ","yyyy-MM-ddTHH:mmz","yyyy-MM-ddTHH:mm","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","MMddyyyy",
"ddMMyyyy","Mddyyyy","ddMyyyy","Mdyyyy","dMyyyy","yyyy","Mdyy","dMyy","d"]);h._start=d.process(d.set([h.date,h.time,h.expression],h.generalDelimiter,h.whiteSpace),g.finish);h.start=function(a){try{var b=h._formats.call({},a);if(b[1].length===0)return b}catch(c){}return h._start.call({},a)};a._parse=a.parse;a.parse=function(b){var c=null;if(!b)return null;if(b instanceof Date)return b;try{c=a.Grammar.start.call({},b.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(d){return null}return c[1].length===
0?c[0]:null};a.getParseFunction=function(b){var c=a.Grammar.formats(b);return function(a){var b=null;try{b=c.call({},a)}catch(d){return null}return b[1].length===0?b[0]:null}};a.parseExact=function(b,c){return a.getParseFunction(c)(b)}})();
jQuery&&jQuery(document).ready(function(){jQuery.fn.listAttributes=function(a){var b=[];$(this).each(function(){var c=[],d;for(d in this.attributes)isNaN(d)||(!a||this.attributes[d].name.substr(0,a.length)==a)&&this.attributes[d]&&c.push(this.attributes[d].name);b.push(c)});return b.length>1?b:b[0]}});var I18n=I18n||{};I18n.defaultLocale="it";I18n.locale=null;I18n.debug=!1;
I18n.lookup=function(a,b){var c=this.prepareOptions(I18n.translations)[I18n.currentLocale()];b=this.prepareOptions(b);if(c){typeof a=="object"&&(a=a.join("."));b.scope&&(a=b.scope.toString()+"."+a);for(a=a.split(".");a.length>0;){var d=a.shift();c=c[d];if(!c)break}if(!c&&b.defaultValue!=null&&b.defaultValue!=void 0)c=b.defaultValue;return c}};I18n.prepareOptions=function(){for(var a={},b,c=arguments.length,d=0;d<c;d++)if(b=arguments[d])for(var h in b)if(a[h]==void 0||a[h]==null)a[h]=b[h];return a};
I18n.interpolate=function(a,b){b=b||{};var c=/\{\{(.*?)\}\}/gm,d=a.match(c);if(!d)return a;for(var h,g,k=0;c=d[k];k++){g=c.replace(/\{\{(.*?)\}\}/gm,"$1");h=b[g];if(b[g]==null||b[g]==void 0)h=I18n.debug?"["+c+"]":c;c=RegExp(c.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));a=a.replace(c,h)}return a};
I18n.translate=function(a,b){b=this.prepareOptions(b);var c=this.lookup(a,b);try{return typeof c=="object"?typeof b.count=="number"?I18n.debug?"["+this.pluralize(b.count,a,b)+"]":this.pluralize(b.count,a,b):I18n.debug?"["+c+"]":c:I18n.debug?"["+this.interpolate(c,b)+"]":this.interpolate(c,b)}catch(d){return this.missingTranslation(a)}};
I18n.localize=function(a,b){switch(a){case "currency":return this.toCurrency(b);case "number":return a=this.lookup("number.format"),this.toNumber(b,a);default:return a.match(/^(date|time)/)?this.toTime(a,b):b.toString()}};
I18n.parseDate=function(a){var b;if(b=a.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ |T](\d{2}):(\d{2}):(\d{2}))?(Z)?/)){for(a=1;a<=6;a++)b[a]=b[a]==void 0?0:parseInt(b[a],10);b[2]-=1;b=b[7]?new Date(Date.UTC(b[1],b[2],b[3],b[4],b[5],b[6])):b[4]?new Date(b[1],b[2],b[3],b[4],b[5],b[6]):new Date(b[1],b[2],b[3])}else typeof a=="number"?(b=new Date,b.setTime(a)):(b=new Date,b.setTime(Date.parse(a)));return b};
I18n.toTime=function(a,b){var c=this.parseDate(b),d=this.lookup(a);if(c.toString().match(/invalid/i))return c.toString();if(!d)return c.toString();return this.strftime(c,d)};
I18n.strftime=function(a,b){var c=this.lookup("date");if(!c)return a.toString();var d=a.getDay(),h=a.getDate(),g=a.getFullYear(),k=a.getMonth()+1,n=a.getHours(),m=n,j=n>12?"PM":"AM",o=a.getSeconds(),q=a.getMinutes(),A=a.getTimezoneOffset(),y=Math.floor(Math.abs(A/60)),t=Math.abs(A)-y*60;A=(A>0?"-":"+")+(y.toString().length<2?"0"+y:y)+(t.toString().length<2?"0"+t:t);m>12&&(m-=12);y=function(a){a="0"+a.toString();return a.substr(a.length-2)};t=b.replace("%a",c.abbr_day_names[d]);t=t.replace("%A",c.day_names[d]);
t=t.replace("%b",c.abbr_month_names[k]);t=t.replace("%B",c.month_names[k]);t=t.replace("%d",y(h));t=t.replace("%-d",h);t=t.replace("%H",y(n));t=t.replace("%-H",n);t=t.replace("%I",y(m));t=t.replace("%-I",m);t=t.replace("%m",y(k));t=t.replace("%-m",k);t=t.replace("%M",y(q));t=t.replace("%-M",q);t=t.replace("%p",j);t=t.replace("%S",y(o));t=t.replace("%-S",o);t=t.replace("%w",d);t=t.replace("%y",y(g));t=t.replace("%-y",y(g).replace(/^0+/,""));t=t.replace("%Y",g);return t=t.replace("%z",A)};
I18n.toNumber=function(a,b){b=this.prepareOptions(b,this.lookup("number.format"),{precision:3,separator:".",delimiter:","});var c=a.toFixed(b.precision).toString().split(".");a=c[0];for(var d=[];a.length>0;)d.unshift(a.substr(Math.max(0,a.length-3),3)),a=a.substr(0,a.length-3);d=d.join(b.delimiter);b.precision>0&&(d+=b.separator+c[1]);return d};
I18n.toCurrency=function(a,b){b=this.prepareOptions(b,this.lookup("number.currency.format"),this.lookup("number.format"),{unit:"$",precision:2,format:"%u%n",delimiter:",",separator:"."});a=this.toNumber(a,b);return a=b.format.replace("%u",b.unit).replace("%n",a)};I18n.toPercentage=function(a,b){b=this.prepareOptions(b,this.lookup("number.percentage.format"),this.lookup("number.format"),{precision:3,separator:".",delimiter:""});a=this.toNumber(a,b);return a+"%"};
I18n.pluralize=function(a,b,c){var d=this.lookup(b,c);c=c||{};c.count=a.toString();switch(Math.abs(a)){case 0:a=d.zero||d.none||d.other||this.missingTranslation(b,"zero");break;case 1:a=d.one||this.missingTranslation(b,"one");break;default:a=d.other||this.missingTranslation(b,"other")}return this.interpolate(a,c)};I18n.missingTranslation=function(){for(var a="["+this.currentLocale(),b=arguments.length,c=0;c<b;c++)a+="."+arguments[c];a+="]";return a};
I18n.currentLocale=function(){return I18n.locale||I18n.defaultLocale};I18n.t=I18n.translate;I18n.l=I18n.localize;I18n.p=I18n.pluralize;base64={};base64.PADCHAR="=";base64.ALPHA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";base64.getbyte64=function(a,b){var c=base64.ALPHA.indexOf(a.charAt(b));if(c==-1)throw"Cannot decode base64";return c};
base64.decode=function(a){a=""+a;var b=base64.getbyte64,c,d,h,g=a.length;if(g==0)return a;if(g%4!=0)throw"Cannot decode base64";c=0;a.charAt(g-1)==base64.PADCHAR&&(c=1,a.charAt(g-2)==base64.PADCHAR&&(c=2),g-=4);var k=[];for(d=0;d<g;d+=4)h=b(a,d)<<18|b(a,d+1)<<12|b(a,d+2)<<6|b(a,d+3),k.push(String.fromCharCode(h>>16,h>>8&255,h&255));switch(c){case 1:h=b(a,d)<<18|b(a,d+1)<<12|b(a,d+2)<<6;k.push(String.fromCharCode(h>>16,h>>8&255));break;case 2:h=b(a,d)<<18|b(a,d+1)<<12,k.push(String.fromCharCode(h>>
16))}return k.join("")};base64.getbyte=function(a,b){var c=a.charCodeAt(b);if(c>255)throw"INVALID_CHARACTER_ERR: DOM Exception 5";return c};
base64.encode=function(a){if(arguments.length!=1)throw"SyntaxError: Not enough arguments";var b=base64.PADCHAR,c=base64.ALPHA,d=base64.getbyte,h,g,k=[];a=""+a;var n=a.length-a.length%3;if(a.length==0)return a;for(h=0;h<n;h+=3)g=d(a,h)<<16|d(a,h+1)<<8|d(a,h+2),k.push(c.charAt(g>>18)),k.push(c.charAt(g>>12&63)),k.push(c.charAt(g>>6&63)),k.push(c.charAt(g&63));switch(a.length-n){case 1:g=d(a,h)<<16;k.push(c.charAt(g>>18)+c.charAt(g>>12&63)+b+b);break;case 2:g=d(a,h)<<16|d(a,h+1)<<8,k.push(c.charAt(g>>
18)+c.charAt(g>>12&63)+c.charAt(g>>6&63)+b)}return k.join("")};
eval(function(a,b,c,d,h,g){h=function(a){return(a<b?"":h(parseInt(a/b)))+((a%=b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){for(;c--;)g[h(c)]=d[c]||h(c);d=[function(a){return g[a]}];h=function(){return"\\w+"};c=1}for(;c--;)d[c]&&(a=a.replace(RegExp("\\b"+h(c)+"\\b","g"),d[c]));return a}("q(!m){A m={1h:{6Y:'9p',9m:'bC...',9o:'7g 2h bA',9A:'7g 2h bs 2h bM',9B:'c5 2h c4 H (f)',aR:'c7 by <i>9z ax</i>',aT:'c8 2h bZ 9z ax dy',8X:'9y',8I:'8u',8D:'8s',8y:'aM',8p:'aM (dd)',9a:'dc',dT:'aa',dG:'aa ay (8z)',cu:'ai',ct:'ai ay (8z)',93:'9y (7n 1i)',8Y:'8u (7n 2U)',8G:'8s',dM:'1:1',7U:'7g 2h 2m 2a, dS 8H dR 2h 3S. dW 7n dg W 1M 8H 5S.'},4X:'S/df/',64:'dq.6X',4G:'dp.6X',7m:6v,al:6v,4i:15,7R:15,3X:15,68:15,49:b0,9n:0.75,6G:I,6T:5,3h:2,aX:3,5g:1g,ae:'3M 2U',9X:1,a2:I,an:'aW://S.cd/',ak:'bV',8K:I,6B:['a','4s'],5r:1g,5Q:I,44:I,2Z:'51',7z:I,7H:I,3P:8L,4P:8L,4y:I,1B:'bU-bW',91:{95:'<1n 3t=\"S-bj\"><9j>'+'<3w 3t=\"S-5S\">'+'<a 2D=\"#\" 2E=\"{m.1h.93}\" 2J=\"E m.5S(k)\">'+'<2o>{m.1h.8X}</2o></a>'+'</3w>'+'<3w 3t=\"S-1M\">'+'<a 2D=\"#\" 2E=\"{m.1h.8Y}\" 2J=\"E m.1M(k)\">'+'<2o>{m.1h.8I}</2o></a>'+'</3w>'+'<3w 3t=\"S-3S\">'+'<a 2D=\"#\" 2E=\"{m.1h.8G}\" 2J=\"E 1g\">'+'<2o>{m.1h.8D}</2o></a>'+'</3w>'+'<3w 3t=\"S-2m\">'+'<a 2D=\"#\" 2E=\"{m.1h.8p}\" 2J=\"E m.2m(k)\">'+'<2o>{m.1h.8y}</2o></a>'+'</3w>'+'</9j></1n>'+'<1n 3t=\"S-Y\"></1n>'+'<1n 3t=\"S-bz\"><1n>'+'<2o 3t=\"S-3u\" 2E=\"{m.1h.9a}\"><2o></2o></2o>'+'</1n></1n>'},4D:[],6O:I,Q:[],6P:['4y','2S','1B','3h','bE','bF','bK','9c','bJ','bI','bG','9b','aN','7H','M','O','7L','5r','5Q','44','bH','bx','bw','21','7z','3p','3I','2Z','7N','6S','3P','4P','5w','72','8q','41','2i','9Z','ag','V'],1P:[],5d:0,bo:{x:['9M','1i','7F','2U','9K'],y:['5b','1c','7T','3M','6u']},6b:{},9b:{},9c:{},7N:{az:{},1G:{},ao:{}},3v:[],3R:{},3A:[],5N:[],46:[],6i:{},8j:{},5B:[],2f:/bk\\/4\\.0/.14(4u.5V)?8:7W((4u.5V.52().2X(/.+(?:9k|bl|bp|1N)[\\/: ]([\\d.]+)/)||[0,'0'])[1]),1N:(P.4A&&!1A.3f),5k:/bq/.14(4u.5V),76:/bv.+9k:1\\.[0-8].+bt/.14(4u.5V),$:C(1j){q(1j)E P.74(1j)},22:C(1S,2N){1S[1S.11]=2N},1b:C(8N,3x,3k,4R,8J){A D=P.1b(8N);q(3x)m.3m(D,3x);q(8J)m.T(D,{8n:0,9N:'2e',7w:0});q(3k)m.T(D,3k);q(4R)4R.1J(D);E D},3m:C(D,3x){W(A x 3C 3x)D[x]=3x[x];E D},T:C(D,3k){W(A x 3C 3k){q(m.3c&&x=='1E'){q(3k[x]>0.99)D.G.bL('4J');L D.G.4J='90(1E='+(3k[x]*2C)+')'}L D.G[x]=3k[x]}},43:C(D,1e,2T){A 3K,4g,3V;q(1x 2T!='7x'||2T===K){A 2t=9v;2T={3H:2t[2],2i:2t[3],7k:2t[4]}}q(1x 2T.3H!='4e')2T.3H=6v;2T.2i=1l[2T.2i]||1l.9r;2T.5x=m.3m({},1e);W(A 2v 3C 1e){A e=1z m.1C(D,2T,2v);3K=7W(m.6K(D,2v))||0;4g=7W(1e[2v]);3V=2v!='1E'?'F':'';e.2V(3K,4g,3V)}},6K:C(D,1e){q(D.G[1e]){E D.G[1e]}L q(P.81){E P.81.a9(D,K).ab(1e)}L{q(1e=='1E')1e='4J';A 2N=D.4W[1e.20(/\\-(\\w)/g,C(a,b){E b.c3()})];q(1e=='4J')2N=2N.20(/90\\(1E=([0-9]+)\\)/,C(a,b){E b/2C});E 2N===''?1:2N}},6a:C(){A d=P,w=1A,4K=d.62&&d.62!='6N'?d.4v:d.Y,3c=m.1N&&(m.2f<9||1x 9s=='23');A M=3c?4K.8Z:(d.4v.8Z||5y.c1),O=3c?4K.c2:5y.c6;m.3l={M:M,O:O,5W:3c?4K.5W:9s,5O:3c?4K.5O:ca};E m.3l},7E:C(D){q(/4s/i.14(D.3q)){A 5H=P.3a('1v');W(A i=0;i<5H.11;i++){A u=5H[i].c9;q(u&&u.20(/^.*?#/,'')==D.2R.2v){D=5H[i];5K}}}A p={x:D.8W,y:D.84};3Z(D.8V){D=D.8V;p.x+=D.8W;p.y+=D.84;q(D!=P.Y&&D!=P.4v){p.x-=D.5W;p.y-=D.5O}}E p},4m:C(a,1G,2V,N){q(!a)a=m.1b('a',K,{1R:'2e'},m.1V);q(1x a.5h=='C')E 1G;q(N=='2W'){W(A i=0;i<m.3A.11;i++){q(m.3A[i]&&m.3A[i].a==a){m.3A[i].aJ();m.3A[i]=K;E 1g}}m.8S=I}1m{1z m.4z(a,1G,2V,N);E 1g}1k(e){E I}},6J:C(a,1G,2V){E m.4m(a,1G,2V,'2W')},7M:C(){E m.1b('1n',{1s:'S-2W-R',2q:m.94(m.91.95)})},4c:C(D,3q,1s){A 19=D.3a(3q);W(A i=0;i<19.11;i++){q((1z 6e(1s)).14(19[i].1s)){E 19[i]}}E K},94:C(s){s=s.20(/\\s/g,' ');A 2A=/{m\\.1h\\.([^}]+)\\}/g,5e=s.2X(2A),1h;q(5e)W(A i=0;i<5e.11;i++){1h=5e[i].20(2A,\"$1\");q(1x m.1h[1h]!='23')s=s.20(5e[i],m.1h[1h])}E s},98:C(){A 19=P.3a('a');W(A i=0;i<19.11;i++){A N=m.8U(19[i]);q(N&&!19[i].92){(C(){A t=N;q(m.1q(m,'bR',{5P:19[i],N:t})){19[i].2J=(N=='2a')?C(){E m.4m(k)}:C(){E m.6J(k,{21:t})}}})();19[i].92=I}}m.4C()},8U:C(D){q(D.5I=='S')E'2a';L q(D.5I=='S-2k')E'2k';L q(D.5I=='S-Z')E'Z';L q(D.5I=='S-2K')E'2K'},7X:C(a){W(A i=0;i<m.46.11;i++){q(m.46[i][0]==a){A c=m.46[i][1];m.46[i][1]=c.5p(1);E c}}E K},at:C(e){A 1S=m.4C();W(A i=0;i<1S.4a.11;i++){A a=1S.4a[i];q(m.4o(a,'21')=='2k'&&m.4o(a,'7z'))m.22(m.5N,a)}m.7J(0)},7J:C(i){q(!m.5N[i])E;A a=m.5N[i];A 59=m.3F(m.4o(a,'7L'));q(!59)59=m.7M();A 2k=1z m.6l(a,59,1);2k.7h=C(){};2k.2M=C(){m.22(m.46,[a,59]);m.7J(i+1)};2k.7e()},8O:C(){A 7G=0,5T=-1,Q=m.Q,B,1y;W(A i=0;i<Q.11;i++){B=Q[i];q(B){1y=B.16.G.1y;q(1y&&1y>7G){7G=1y;5T=i}}}q(5T==-1)m.2u=-1;L Q[5T].3r()},4o:C(a,57){a.5h=a.2J;A p=a.5h?a.5h():K;a.5h=K;E(p&&1x p[57]!='23')?p[57]:(1x m[57]!='23'?m[57]:K)},6g:C(a){A V=m.4o(a,'V');q(V)E V;E a.2D},3F:C(1j){A 1F=m.$(1j),3D=m.8j[1j],a={};q(!1F&&!3D)E K;q(!3D){3D=1F.5p(I);3D.1j='';m.8j[1j]=3D;E 1F}L{E 3D.5p(I)}},3z:C(d){q(d)m.6y.1J(d);m.6y.2q=''},8M:C(8h,B){A 3g=B||m.3y();B=3g;q(m.3B)E 1g;L m.3g=3g;m.47(P,1A.3f?'5m':'5l',m.4U);1m{m.3B=8h;8h.2J()}1k(e){m.3g=m.3B=K}1m{B.2m()}1k(e){}E 1g},5n:C(D,2G){A B=m.3y(D);q(B)E m.8M(B.6M(2G),B);L E 1g},5S:C(D){E m.5n(D,-1)},1M:C(D){E m.5n(D,1)},4U:C(e){q(!e)e=1A.26;q(!e.2w)e.2w=e.6R;q(1x e.2w.6Z!='23')E I;q(!m.1q(m,'bY',e))E I;A B=m.3y();A 2G=K;8F(e.bX){1K 70:q(B)B.7j();E I;1K 32:1K 34:1K 39:1K 40:2G=1;5K;1K 8:1K 33:1K 37:1K 38:2G=-1;5K;1K 27:1K 13:2G=0}q(2G!==K){m.47(P,1A.3f?'5m':'5l',m.4U);q(!m.8K)E I;q(e.5E)e.5E();L e.bd=1g;q(B){q(2G==0){B.2m()}L{m.5n(B.U,2G)}E 1g}}E I},bc:C(1a){m.22(m.1P,m.3m(1a,{2Q:'2Q'+m.5d++}))},7B:C(5P,5F){A D,2A=/^S-16-([0-9]+)$/;D=5P;3Z(D.2R){q(D.1j&&2A.14(D.1j))E D.1j.20(2A,\"$1\");D=D.2R}q(!5F){D=5P;3Z(D.2R){q(D.3q&&m.5J(D)){W(A U=0;U<m.Q.11;U++){A B=m.Q[U];q(B&&B.a==D)E U}}D=D.2R}}E K},3y:C(D,5F){q(1x D=='23')E m.Q[m.2u]||K;q(1x D=='4e')E m.Q[D]||K;q(1x D=='7c')D=m.$(D);E m.Q[m.7B(D,5F)]||K},5J:C(a){E(a.2J&&a.2J.aA().20(/\\s/g,' ').2X(/m.(bg|e)b5/))},a1:C(){W(A i=0;i<m.Q.11;i++)q(m.Q[i]&&m.Q[i].3Y)m.8O()},1q:C(5f,85,2t){E 5f&&5f[85]?(5f[85](5f,2t)!==1g):I},8b:C(e){q(!e)e=1A.26;q(e.b6>1)E I;q(!e.2w)e.2w=e.6R;A D=e.2w;3Z(D.2R&&!(/S-(2a|3S|2W|3u)/.14(D.1s))){D=D.2R}A B=m.3y(D);q(B&&(B.5a||!B.3Y))E I;q(B&&e.N=='80'){q(e.2w.6Z)E I;A 2X=D.1s.2X(/S-(2a|3S|3u)/);q(2X){m.1X={B:B,N:2X[1],1i:B.x.J,M:B.x.H,1c:B.y.J,O:B.y.H,8R:e.69,8Q:e.6t};m.1T(P,'7K',m.88);q(e.5E)e.5E();q(/S-(2a|2W)-7V/.14(B.R.1s)){B.3r();m.83=I}E 1g}L q(/S-2W/.14(D.1s)&&m.2u!=B.U){B.3r();B.4b('1p')}}L q(e.N=='8T'){m.47(P,'7K',m.88);q(m.1X){q(m.4t&&m.1X.N=='2a')m.1X.B.R.G.3G=m.4t;A 3b=m.1X.3b;q(!3b&&!m.83&&!/(3S|3u)/.14(m.1X.N)){q(m.1q(B,'bf'))B.2m()}L q(3b||(!3b&&m.8S)){m.1X.B.4b('1p')}q(m.1X.B.31)m.1X.B.31.G.1R='2e';q(3b)m.1q(m.1X.B,'b9',m.1X);m.83=1g;m.1X=K}L q(/S-2a-7V/.14(D.1s)){D.G.3G=m.4t}}E 1g},88:C(e){q(!m.1X)E I;q(!e)e=1A.26;A a=m.1X,B=a.B;q(B.Z){q(!B.31)B.31=m.1b('1n',K,{1f:'28',M:B.x.H+'F',O:B.y.H+'F',1i:B.x.cb+'F',1c:B.y.cb+'F',1y:4,8t:(m.3c?'ba':'2e'),1E:0.bb},B.16,I);q(B.31.G.1R=='2e')B.31.G.1R=''}a.dX=e.69-a.8R;a.dY=e.6t-a.8Q;A 8a=1l.b2(1l.8P(a.dX,2)+1l.8P(a.dY,2));q(!a.3b)a.3b=(a.N!='2a'&&8a>0)||(8a>(m.bi||5));q(a.3b&&e.69>5&&e.6t>5){q(!m.1q(B,'aZ',a))E 1g;q(a.N=='3u')B.3u(a);L{B.7u(a.1i+a.dX,a.1c+a.dY);q(a.N=='2a')B.R.G.3G='3S'}}E 1g},8x:C(e){1m{q(!e)e=1A.26;A 4w=/aY/i.14(e.N);q(!e.2w)e.2w=e.6R;q(!e.5t)e.5t=4w?e.aV:e.bP;A B=m.3y(e.2w);q(!B.3Y)E;q(!B||!e.5t||m.3y(e.5t,I)==B||m.1X)E;m.1q(B,4w?'dt':'ds',e);W(A i=0;i<B.1P.11;i++)(C(){A o=m.$('2Q'+B.1P[i]);q(o&&o.6d){q(4w)m.T(o,{1t:'2r',1R:''});m.43(o,{1E:4w?o.1E:0},o.3j)}})()}1k(e){}},1T:C(D,26,3d){q(D==P&&26=='3n'){m.22(m.5B,3d)}1m{D.1T(26,3d,1g)}1k(e){1m{D.96('53'+26,3d);D.dr('53'+26,3d)}1k(e){D['53'+26]=3d}}},47:C(D,26,3d){1m{D.47(26,3d,1g)}1k(e){1m{D.96('53'+26,3d)}1k(e){D['53'+26]=K}}},5D:C(i){q(m.6O&&m.4D[i]&&m.4D[i]!='23'){A 1v=P.1b('1v');1v.3U=C(){1v=K;m.5D(i+1)};1v.V=m.4D[i]}},9e:C(4e){q(4e&&1x 4e!='7x')m.6T=4e;A 1S=m.4C();W(A i=0;i<1S.4p.11&&i<m.6T;i++){m.22(m.4D,m.6g(1S.4p[i]))}q(m.1B)1z m.5c(m.1B,C(){m.5D(0)});L m.5D(0);q(m.4G)A 6X=m.1b('1v',{V:m.4X+m.4G})},6j:C(){q(!m.1V){m.3J=m.1N&&m.2f<7;m.3c=m.1N&&m.2f<9;m.6a();m.8A=m.3J&&7Y.du=='dv:';W(A x 3C m.6o){q(1x m[x]!='23')m.1h[x]=m[x];L q(1x m.1h[x]=='23'&&1x m.6o[x]!='23')m.1h[x]=m.6o[x]}m.1V=m.1b('1n',{1s:'S-1V'},{1f:'28',1i:0,1c:0,M:'2C%',1y:m.49,71:'9p'},P.Y,I);m.24=m.1b('a',{1s:'S-24',2E:m.1h.9o,2q:m.1h.9m,2D:'9C:;'},{1f:'28',1c:'-3Q',1E:m.9n,1y:1},m.1V);m.6y=m.1b('1n',K,{1R:'2e'},m.1V);m.2O=m.1b('1n',K,{aS:'aU',dw:'ce'},K,I);1l.do=C(t,b,c,d){E c*t/d+b};1l.9r=C(t,b,c,d){E c*(t/=d)*t+b};m.af=m.3J;m.ah=((1A.3f&&m.2f<9)||4u.9P=='9Q'||(m.3J&&m.2f<5.5));m.1q(k,'dn')}},3n:C(){q(m.6I)E;m.6I=I;W(A i=0;i<m.5B.11;i++)m.5B[i]()},9w:C(){A D,19,4A=[],4p=[],4a=[],3o={},2A;W(A i=0;i<m.6B.11;i++){19=P.3a(m.6B[i]);W(A j=0;j<19.11;j++){D=19[j];2A=m.5J(D);q(2A){m.22(4A,D);q(2A[0]=='m.4m')m.22(4p,D);L q(2A[0]=='m.6J')m.22(4a,D);A g=m.4o(D,'41')||'2e';q(!3o[g])3o[g]=[];m.22(3o[g],D)}}}m.5G={4A:4A,3o:3o,4p:4p,4a:4a};E m.5G},4C:C(){E m.5G||m.9w()},2m:C(D){A B=m.3y(D);q(B)B.2m();E 1g}};m.1C=C(2p,1Q,1e){k.1Q=1Q;k.2p=2p;k.1e=1e;q(!1Q.9u)1Q.9u={}};m.1C.4Q={79:C(){(m.1C.3s[k.1e]||m.1C.3s.9f)(k);q(k.1Q.3s)k.1Q.3s.9d(k.2p,k.3O,k)},2V:C(9t,2h,3V){k.7q=(1z 6f()).6h();k.3K=9t;k.4g=2h;k.3V=3V;k.3O=k.3K;k.J=k.7i=0;A 5y=k;C t(5z){E 5y.3s(5z)}t.2p=k.2p;q(t()&&m.3v.22(t)==1){m.9l=dk(C(){A 3v=m.3v;W(A i=0;i<3v.11;i++)q(!3v[i]())3v.di(i--,1);q(!3v.11){dC(m.9l)}},13)}},3s:C(5z){A t=(1z 6f()).6h();q(5z||t>=k.1Q.3H+k.7q){k.3O=k.4g;k.J=k.7i=1;k.79();k.1Q.5x[k.1e]=I;A 7l=I;W(A i 3C k.1Q.5x)q(k.1Q.5x[i]!==I)7l=1g;q(7l){q(k.1Q.7k)k.1Q.7k.9d(k.2p)}E 1g}L{A n=t-k.7q;k.7i=n/k.1Q.3H;k.J=k.1Q.2i(n,0,1,k.1Q.3H);k.3O=k.3K+((k.4g-k.3K)*k.J);k.79()}E I}};m.3m(m.1C,{3s:{1E:C(1C){m.T(1C.2p,{1E:1C.3O})},9f:C(1C){1m{q(1C.2p.G&&1C.2p.G[1C.1e]!=K)1C.2p.G[1C.1e]=1C.3O+1C.3V;L 1C.2p[1C.1e]=1C.3O}1k(e){}}}});m.5c=C(1B,2M){k.2M=2M;k.1B=1B;A v=m.2f,5A;k.7b=m.1N&&m.2f<7;q(!1B){q(2M)2M();E}m.6j();k.2n=m.1b('2n',{e0:0},{1t:'1p',1f:'28',dQ:'dP',M:0},m.1V,I);A 7f=m.1b('7f',K,K,k.2n,1);k.2j=[];W(A i=0;i<=8;i++){q(i%3==0)5A=m.1b('5A',K,{O:'1L'},7f,I);k.2j[i]=m.1b('2j',K,K,5A,I);A G=i!=4?{dF:0,dD:0}:{1f:'3L'};m.T(k.2j[i],G)}k.2j[4].1s=1B+' S-1r';k.9h()};m.5c.4Q={9h:C(){A V=m.4X+(m.dI||\"dJ/\")+k.1B+\".dO\";A 9g=m.5k&&m.2f<8o?m.1V:K;k.3e=m.1b('1v',K,{1f:'28',1c:'-3Q'},9g,I);A 2Y=k;k.3e.3U=C(){2Y.9x()};k.3e.V=V},9x:C(){A o=k.1w=k.3e.M/4,J=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],1I={O:(2*o)+'F',M:(2*o)+'F'};W(A i=0;i<=8;i++){q(J[i]){q(k.7b){A w=(i==1||i==7)?'2C%':k.3e.M+'F';A 1n=m.1b('1n',K,{M:'2C%',O:'2C%',1f:'3L',1Y:'1p'},k.2j[i],I);m.1b('1n',K,{4J:\"dK:dL.9H.d9(d8=cy, V='\"+k.3e.V+\"')\",1f:'28',M:w,O:k.3e.O+'F',1i:(J[i][0]*o)+'F',1c:(J[i][1]*o)+'F'},1n,I)}L{m.T(k.2j[i],{8t:'8g('+k.3e.V+') '+(J[i][0]*o)+'F '+(J[i][1]*o)+'F'})}q(1A.3f&&(i==3||i==5))m.1b('1n',K,1I,k.2j[i],I);m.T(k.2j[i],1I)}}k.3e=K;q(m.3R[k.1B])m.3R[k.1B].6m();m.3R[k.1B]=k;q(k.2M)k.2M()},4S:C(J,1w,8v,3j,2i){A B=k.B,5i=B.16.G,1w=1w||0,J=J||{x:B.x.J+1w,y:B.y.J+1w,w:B.x.1d('1O')-2*1w,h:B.y.1d('1O')-2*1w};q(8v)k.2n.G.1t=(J.h>=4*k.1w)?'2r':'1p';m.T(k.2n,{1i:(J.x-k.1w)+'F',1c:(J.y-k.1w)+'F',M:(J.w+2*k.1w)+'F'});J.w-=2*k.1w;J.h-=2*k.1w;m.T(k.2j[4],{M:J.w>=0?J.w+'F':0,O:J.h>=0?J.h+'F':0});q(k.7b)k.2j[3].G.O=k.2j[5].G.O=k.2j[4].G.O},6m:C(8C){q(8C)k.2n.G.1t='1p';L m.3z(k.2n)}};m.5C=C(B,1I){k.B=B;k.1I=1I;k.2L=1I=='x'?'cv':'cz';k.2H=k.2L.52();k.4M=1I=='x'?'cA':'cF';k.6C=k.4M.52();k.7p=1I=='x'?'cE':'cD';k.cB=k.7p.52();k.1Z=k.36=0};m.5C.4Q={1d:C(U){8F(U){1K'8f':E k.1u+k.2B+(k.t-m.24['1w'+k.2L])/2;1K'1O':E k.H+2*k.cb+k.1Z+k.36;1K'4r':E k.5s-k.3W-k.5u;1K'77':E k.1d('4r')-2*k.cb-k.1Z-k.36;1K'4H':E k.J-(k.B.1r?k.B.1r.1w:0);1K'7A':E k.1d('1O')+(k.B.1r?2*k.B.1r.1w:0);1K'5R':E k.1W?1l.67((k.H-k.1W)/2):0}},7P:C(){k.cb=(k.B.R['1w'+k.2L]-k.t)/2;k.5u=m['7w'+k.7p]},8c:C(){k.t=k.B.D[k.2H]?3T(k.B.D[k.2H]):k.B.D['1w'+k.2L];k.1u=k.B.1u[k.1I];k.2B=(k.B.D['1w'+k.2L]-k.t)/2;q(k.1u==0||k.1u==-1){k.1u=(m.3l[k.2H]/2)+m.3l['3i'+k.4M]}},7Q:C(){A B=k.B;k.4n='1L';k.J=k.1u-k.cb+k.2B;q(k.72&&k.1I=='x')B.5w=1l.2x(B.5w||k.18,B.72*k.18/B.y.18);k.H=1l.2x(k.18,B['4O'+k.2L]||k.18);k.2I=B.4y?1l.2x(B['2x'+k.2L],k.18):k.18;q(B.2y&&B.2S){k.H=B[k.2H];k.1W=k.18}q(k.1I=='x'&&m.5g)k.2I=B.3P;k.3W=m['7w'+k.4M];k.3i=m.3l['3i'+k.4M];k.5s=m.3l[k.2H]},8i:C(i){A B=k.B;q(B.2y&&(B.2S||m.5g)){k.1W=i;k.H=1l.4O(k.H,k.1W);B.R.G[k.6C]=k.1d('5R')+'F'}L k.H=i;B.R.G[k.2H]=i+'F';B.16.G[k.2H]=k.1d('1O')+'F';q(B.1r)B.1r.4S();q(B.31)B.31.G[k.2H]=i+'F';q(k.1I=='y'&&B.4V&&B.Y.G.O!='1L')1m{B.4V.Y.G.1Y='1L'}1k(e){}q(B.29){A d=B.2d;q(k.6x===23)k.6x=B.1o['1w'+k.2L]-d['1w'+k.2L];d.G[k.2H]=(k.H-k.6x)+'F';q(k.1I=='x')B.3E.G.M='1L';q(B.Y)B.Y.G[k.2H]='1L'}q(k.1I=='x'&&B.1D)B.4d(I)},7S:C(i){k.J=i;k.B.16.G[k.6C]=i+'F';q(k.B.1r)k.B.1r.4S()}};m.4z=C(a,1G,2V,2F){q(P.9S&&m.1N&&!m.6I){m.1T(P,'3n',C(){1z m.4z(a,1G,2V,2F)});E}k.a=a;k.2V=2V;k.2F=2F||'2a';k.29=(2F=='2W');k.2y=!k.29;m.6O=1g;k.1P=[];m.6j();A U=k.U=m.Q.11;W(A i=0;i<m.6P.11;i++){A 2v=m.6P[i];k[2v]=1G&&1x 1G[2v]!='23'?1G[2v]:m[2v]}q(!k.V)k.V=a.2D;A D=(1G&&1G.8m)?m.$(1G.8m):a;D=k.8r=D.3a('1v')[0]||D;k.5X=D.1j||a.1j;q(!m.1q(k,'cl'))E I;W(A i=0;i<m.Q.11;i++){q(m.Q[i]&&m.Q[i].a==a){m.Q[i].3r();E 1g}}q(!m.cm)W(A i=0;i<m.Q.11;i++){q(m.Q[i]&&m.Q[i].8r!=D&&!m.Q[i].5q){m.Q[i].7I()}}m.Q[U]=k;q(!m.6G&&!m.3B){q(m.Q[U-1])m.Q[U-1].2m();q(1x m.2u!='23'&&m.Q[m.2u])m.Q[m.2u].2m()}k.D=D;k.1u=k.8q||m.7E(D);m.6a();A x=k.x=1z m.5C(k,'x');x.8c();A y=k.y=1z m.5C(k,'y');y.8c();q(/4s/i.14(D.3q))k.9D(D);k.16=m.1b('1n',{1j:'S-16-'+k.U,1s:'S-16 '+k.6S},{1t:'1p',1f:'28',1y:m.49+=2},K,I);k.16.cn=k.16.co=m.8x;q(k.2F=='2a'&&k.3h==2)k.3h=0;q(!k.1B){k[k.2F+'8d']()}L q(m.3R[k.1B]){k.8k();k[k.2F+'8d']()}L{k.58();A B=k;1z m.5c(k.1B,C(){B.8k();B[B.2F+'8d']()})}E I};m.4z.4Q={7s:C(e){q(m.cG)cH('d0 '+e.cZ+': '+e.cY);L 1A.7Y.2D=k.V},8k:C(){A 1r=k.1r=m.3R[k.1B];1r.B=k;1r.2n.G.1y=k.16.G.1y-1;m.3R[k.1B]=K},58:C(){q(k.5q||k.24)E;k.24=m.24;A B=k;k.24.2J=C(){B.7I()};q(!m.1q(k,'cW'))E;A B=k,l=k.x.1d('8f')+'F',t=k.y.1d('8f')+'F';54(C(){q(B.24)m.T(B.24,{1i:l,1c:t,1y:m.49++})},2C)},cX:C(){A B=k;A 1v=P.1b('1v');k.R=1v;1v.3U=C(){q(m.Q[B.U])B.5j()};q(m.d1)1v.d2=C(){E 1g};1v.1s='S-2a';m.T(1v,{1t:'1p',1R:'4I',1f:'28',5w:'3Q',1y:3});1v.2E=m.1h.7U;q(m.5k&&m.2f<8o)m.1V.1J(1v);q(m.1N&&m.d5)1v.V=K;1v.V=k.V;k.58()},d3:C(){q(!m.1q(k,'d4'))E;k.R=m.7X(k.a);q(!k.R)k.R=m.3F(k.7L);q(!k.R)k.R=m.7M();k.7D(['5v']);q(k.5v){A Y=m.4c(k.R,'1n','S-Y');q(Y)Y.1J(k.5v);k.5v.G.1R='4I'}m.1q(k,'cU');A 1o=k.1o=k.R;q(/(2K|Z)/.14(k.21))k.6W(1o);m.1V.1J(k.16);m.T(k.16,{1f:'cM',8n:'0 '+m.7R+'F 0 '+m.4i+'F'});k.R=m.1b('1n',{1s:'S-2W'},{1f:'3L',1y:3,O:0,1Y:'1p'},k.16);k.3E=m.1b('1n',K,K,k.R,1);k.3E.1J(1o);m.T(1o,{1f:'3L',1R:'4I',71:m.1h.6Y||''});q(k.M)1o.G.M=k.M+'F';q(k.O)m.T(1o,{O:k.O+'F',1Y:'1p'});q(1o.2b<k.3P)1o.G.M=k.3P+'F';q(k.21=='2k'&&!m.7X(k.a)){k.58();A B=k;A 2k=1z m.6l(k.a,1o);2k.V=k.V;2k.2M=C(){q(m.Q[B.U])B.5j()};2k.7h=C(){7Y.2D=B.V};2k.7e()}L q(k.21=='Z'&&k.2Z=='51'){k.5U()}L k.5j()},5j:C(){1m{q(!k.R)E;k.R.3U=K;q(k.5q)E;L k.5q=I;A x=k.x,y=k.y;q(k.24){m.T(k.24,{1c:'-3Q'});k.24=K;m.1q(k,'av')}q(k.2y){x.18=k.R.M;y.18=k.R.O;m.T(k.R,{M:x.t+'F',O:y.t+'F'});k.16.1J(k.R);m.1V.1J(k.16)}L q(k.8l)k.8l();x.7P();y.7P();m.T(k.16,{1i:(x.1u+x.2B-x.cb)+'F',1c:(y.1u+x.2B-y.cb)+'F'});k.9E();A 2g=x.18/y.18;x.7Q();k.4n(x);y.7Q();k.4n(y);q(k.29)k.9O();q(k.1D)k.4d(0,1);q(k.4y){q(k.2y)k.9L(2g);L k.7t();q(k.2y&&k.x.18>(k.x.1W||k.x.H)){k.9R();q(k.1P.11==1)k.4d()}}k.6F()}1k(e){k.7s(e)}},6W:C(4R,1L){A c=m.4c(4R,'6s','S-Y');q(/(Z|2K)/.14(k.21)){q(k.3p)c.G.M=k.3p+'F';q(k.3I)c.G.O=k.3I+'F'}},5U:C(){q(k.ap)E;A B=k;k.Y=m.4c(k.1o,'6s','S-Y');q(k.21=='Z'){k.58();A 4f=m.2O.5p(1);k.Y.1J(4f);k.cP=k.1o.2b;q(!k.3p)k.3p=4f.2b;A 4l=k.1o.1H-k.Y.1H,h=k.3I||m.3l.O-4l-m.3X-m.68,3U=k.2Z=='51'?' 3U=\"q (m.Q['+k.U+']) m.Q['+k.U+'].5j()\" ':'';k.Y.2q+='<Z 2v=\"m'+(1z 6f()).6h()+'\" cR=\"0\" U=\"'+k.U+'\" '+' G=\"M:'+k.3p+'F; O:'+h+'F\" '+3U+' V=\"'+k.V+'\" ></Z>';k.4f=k.Y.3a('1n')[0];k.Z=k.Y.3a('Z')[0];q(k.2Z=='4Z')k.7r()}q(k.21=='2K'){k.Y.1j=k.Y.1j||'m-cN-1j-'+k.U;A a=k.7N;q(!a.1G)a.1G={};q(1x a.1G.am=='23')a.1G.am='cI';q(6H)6H.cK(k.V,k.Y.1j,k.3p,k.3I,a.cL||'7',a.cV,a.az,a.1G,a.ao)}k.ap=I},8l:C(){q(k.Z&&!k.3I){k.Z.G.O=k.Y.G.O=k.aF()+'F'}k.1o.1J(m.2O);q(!k.x.18)k.x.18=k.1o.2b;k.y.18=k.1o.1H;k.1o.aj(m.2O);q(m.1N&&k.ar>3T(k.1o.4W.O)){k.ar=3T(k.1o.4W.O)}m.T(k.16,{1f:'28',8n:'0'});m.T(k.R,{M:k.x.t+'F',O:k.y.t+'F'})},aF:C(){A h;1m{A 1U=k.4V=k.Z.7d||k.Z.4N.P;A 2O=1U.1b('1n');2O.G.aS='aU';1U.Y.1J(2O);h=2O.84;q(m.1N)h+=3T(1U.Y.4W.3X)+3T(1U.Y.4W.68)-1}1k(e){h=cq}E h},7r:C(){A 4q=k.1o.2b-k.4f.2b;m.3z(k.4f);q(4q<0)4q=0;A 4l=k.1o.1H-k.Z.1H;q(k.4V&&!k.3I&&!k.O&&k.y.H==k.y.18)1m{k.4V.Y.G.1Y='1p'}1k(e){}m.T(k.Z,{M:1l.7Z(k.x.H-4q)+'F',O:1l.7Z(k.y.H-4l)+'F'});m.T(k.Y,{M:k.Z.G.M,O:k.Z.G.O});k.48=k.Z;k.2d=k.48},9O:C(){k.6W(k.1o);q(k.21=='2K'&&k.2Z=='51')k.5U();q(k.x.H<k.x.18&&!k.5r)k.x.H=k.x.18;q(k.y.H<k.y.18&&!k.5Q)k.y.H=k.y.18;k.2d=k.1o;m.T(k.3E,{1f:'3L',M:k.x.H+'F'});m.T(k.1o,{9N:'2e',M:'1L',O:'1L'});A 1F=m.4c(k.1o,'6s','S-Y');q(1F&&!/(Z|2K)/.14(k.21)){A 4k=1F;1F=m.1b(4k.cf,K,{1Y:'1p'},K,I);4k.2R.ch(1F,4k);1F.1J(m.2O);1F.1J(4k);A 4q=k.1o.2b-1F.2b;A 4l=k.1o.1H-1F.1H;1F.aj(m.2O);A 5o=m.5k||4u.9P=='9Q'?1:0;m.T(1F,{M:(k.x.H-4q-5o)+'F',O:(k.y.H-4l)+'F',1Y:'1L',1f:'3L'});q(5o&&4k.1H>1F.1H){1F.G.M=(3T(1F.G.M)+5o)+'F'}k.48=1F;k.2d=k.48}q(k.Z&&k.2Z=='51')k.7r();q(!k.48&&k.y.H<k.3E.1H)k.2d=k.R;q(k.2d==k.R&&!k.5r&&!/(Z|2K)/.14(k.21)){k.x.H+=17}q(k.2d&&k.2d.1H>k.2d.2R.1H){54(\"1m { m.Q[\"+k.U+\"].2d.G.1Y = '1L'; } 1k(e) {}\",m.7m)}},9D:C(4s){A c=4s.cw.73(',');W(A i=0;i<c.11;i++)c[i]=3T(c[i]);q(4s.cx.52()=='dN'){k.x.1u+=c[0]-c[2];k.y.1u+=c[1]-c[2];k.x.t=k.y.t=2*c[2]}L{A 55,4F,56=55=c[0],4E=4F=c[1];W(A i=0;i<c.11;i++){q(i%2==0){56=1l.2x(56,c[i]);55=1l.4O(55,c[i])}L{4E=1l.2x(4E,c[i]);4F=1l.4O(4F,c[i])}}k.x.1u+=56;k.x.t=55-56;k.y.1u+=4E;k.y.t=4F-4E}},4n:C(p,42){A dH,e2=p.2w,1I=p==k.x?'x':'y';A 7a=1g;A 4h=p.B.4y;p.J=1l.67(p.J-((p.1d('1O')-p.t)/2));q(p.J<p.3i+p.3W){p.J=p.3i+p.3W;7a=I}q(!42&&p.H<p.2I){p.H=p.2I;4h=1g}q(p.J+p.1d('1O')>p.3i+p.5s-p.5u){q(!42&&7a&&4h){p.H=1l.2x(p.H,p.1d(1I=='y'?'4r':'77'))}L q(p.1d('1O')<p.1d('4r')){p.J=p.3i+p.5s-p.5u-p.1d('1O')}L{p.J=p.3i+p.3W;q(!42&&4h)p.H=p.1d(1I=='y'?'4r':'77')}}q(!42&&p.H<p.2I){p.H=p.2I;4h=1g}q(p.J<p.3W){A a3=p.J;p.J=p.3W;q(4h&&!42)p.H=p.H-(p.J-a3)}},9L:C(2g){A x=k.x,y=k.y,35=1g,2s=1l.2x(x.18,x.H),2P=1l.2x(y.18,y.H),2S=(k.2S||m.5g);q(2s/2P>2g){ 2s=2P*2g;q(2s<x.2I){2s=x.2I;2P=2s/2g}35=I}L q(2s/2P<2g){ 2P=2s/2g;35=I}q(m.5g&&x.18<x.2I){x.1W=x.18;y.H=y.1W=y.18}L q(k.2S){x.1W=2s;y.1W=2P}L{x.H=2s;y.H=2P}35=k.7t(k.2S?K:2g,35);q(2S&&y.H<y.1W){y.1W=y.H;x.1W=y.H*2g}q(35||2S){x.J=x.1u-x.cb+x.2B;x.2I=x.H;k.4n(x,I);y.J=y.1u-y.cb+y.2B;y.2I=y.H;k.4n(y,I);q(k.1D)k.4d()}},7t:C(2g,35){A x=k.x,y=k.y;q(k.1D&&(k.2y||k.5Q)){3Z(y.H>k.4P&&x.H>k.3P&&y.1d('1O')>y.1d('4r')){y.H-=10;q(2g)x.H=y.H*2g;k.4d(0,1);35=I}}E 35},6F:C(){A x=k.x,y=k.y;k.4b('1p');m.1q(k,'dV');k.7o(1,{16:{M:x.1d('1O'),O:y.1d('1O'),1i:x.J,1c:y.J},R:{1i:x.1Z+x.1d('5R'),1c:y.1Z+y.1d('5R'),M:x.1W||x.H,O:y.1W||y.H}},m.7m)},7o:C(2z,2h,3j){q(k.1r&&!k.3h){q(2z)k.1r.4S();L k.1r.6m((k.29&&k.44))}q(!2z)k.9U();A B=k,x=B.x,y=B.y,2i=k.2i;q(!2z)2i=k.9Z||2i;A 4Z=2z?C(){q(B.1r)B.1r.2n.G.1t=\"2r\";54(C(){B.aL()},50)}:C(){B.78()};q(2z)m.T(k.16,{M:x.t+'F',O:y.t+'F'});q(2z&&k.29){m.T(k.16,{1i:(x.1u-x.cb+x.2B)+'F',1c:(y.1u-y.cb+y.2B)+'F'})}q(k.ag){m.T(k.16,{1E:2z?0:1});m.3m(2h.16,{1E:2z})}m.43(k.16,2h.16,{3H:3j,2i:2i,3s:C(2N,2t){q(B.1r&&B.3h&&2t.1e=='1c'){A 4Y=2z?2t.J:1-2t.J;A J={w:x.t+(x.1d('1O')-x.t)*4Y,h:y.t+(y.1d('1O')-y.t)*4Y,x:x.1u+(x.J-x.1u)*4Y,y:y.1u+(y.J-y.1u)*4Y};B.1r.4S(J,0,1)}q(B.29){q(2t.1e=='1i')B.3E.G.1i=(x.J-2N)+'F';q(2t.1e=='1c')B.3E.G.1c=(y.J-2N)+'F'}}});m.43(k.R,2h.R,3j,2i,4Z);q(2z){k.16.G.1t='2r';k.R.G.1t='2r';q(k.29)k.1o.G.1t='2r';k.a.1s+=' S-a4-a5'}},aL:C(){k.3Y=I;k.3r();q(k.29&&k.2Z=='4Z')k.5U();q(k.Z){1m{A B=k,1U=k.Z.7d||k.Z.4N.P;m.1T(1U,'80',C(){q(m.2u!=B.U)B.3r()})}1k(e){}q(m.1N&&1x k.5a!='dz')k.Z.G.M=(k.3p-1)+'F'}q(m.3B&&m.3B==k.a)m.3B=K;k.au();A p=m.3l,6V=m.6b.x+p.5W,6U=m.6b.y+p.5O;k.6D=k.x.J<6V&&6V<k.x.J+k.x.1d('1O')&&k.y.J<6U&&6U<k.y.J+k.y.1d('1O');q(k.1D)k.aI();m.1q(k,'dA')},au:C(){A U=k.U;A 1B=k.1B;1z m.5c(1B,C(){1m{m.Q[U].aD()}1k(e){}})},aD:C(){A 1M=k.6M(1);q(1M&&1M.2J.aA().2X(/m\\.4m/))A 1v=m.1b('1v',{V:m.6g(1M)})},6M:C(2G){A aw=k.aP(),as=m.5G.3o[k.41||'2e'];E(as&&as[aw+2G])||K},aP:C(){A 1S=m.4C().3o[k.41||'2e'];q(1S)W(A i=0;i<1S.11;i++){q(1S[i]==k.a)E i}E K},7I:C(){m.3z(k.16);m.Q[k.U]=K;q(k.24)m.24.G.1i='-3Q';m.1q(k,'av')},9Y:C(){k.87=m.1b('a',{2D:m.an,2w:m.ak,1s:'S-87',2q:m.1h.aR,2E:m.1h.aT});k.4T({6c:k.87,1f:k.aN||'1c 1i'})},7D:C(82,a7){W(A i=0;i<82.11;i++){A N=82[i],s=K;q(N=='7y'&&!m.1q(k,'b8'))E;L q(N=='4j'&&!m.1q(k,'b7'))E;q(!k[N+'45']&&k.5X)k[N+'45']=N+'-W-'+k.5X;q(k[N+'45'])k[N]=m.3F(k[N+'45']);q(!k[N]&&!k[N+'86']&&k[N+'9T'])1m{s=b4(k[N+'9T'])}1k(e){}q(!k[N]&&k[N+'86']){s=k[N+'86']}q(!k[N]&&!s){k[N]=m.3F(k.a['ad'+N+'45']);q(!k[N]){A 1M=k.a.a0;3Z(1M&&!m.5J(1M)){q((1z 6e('S-'+N)).14(1M.1s||K)){q(!1M.1j)k.a['ad'+N+'45']=1M.1j='2Q'+m.5d++;k[N]=m.3F(1M.1j);5K}1M=1M.a0}}}q(!k[N]&&s)k[N]=m.1b('1n',{1s:'S-'+N,2q:s});q(a7&&k[N]){A o={1f:(N=='4j')?'5b':'6u'};W(A x 3C k[N+'a8'])o[x]=k[N+'a8'][x];o.6c=k[N];k.4T(o)}}},4b:C(1t){q(m.af)k.5M('bT',1t);q(m.ah)k.5M('bO',1t);q(m.76)k.5M('*',1t)},5M:C(3q,1t){A 19=P.3a(3q);A 1e=3q=='*'?'1Y':'1t';W(A i=0;i<19.11;i++){q(1e=='1t'||(P.81.a9(19[i],\"\").ab('1Y')=='1L'||19[i].ac('1p-by')!=K)){A 2l=19[i].ac('1p-by');q(1t=='2r'&&2l){2l=2l.20('['+k.U+']','');19[i].4x('1p-by',2l);q(!2l)19[i].G[1e]=19[i].7C}L q(1t=='1p'){A 30=m.7E(19[i]);30.w=19[i].2b;30.h=19[i].1H;A 9V=(30.x+30.w<k.x.1d('4H')||30.x>k.x.1d('4H')+k.x.1d('7A'));A 9F=(30.y+30.h<k.y.1d('4H')||30.y>k.y.1d('4H')+k.y.1d('7A'));A 5L=m.7B(19[i]);q(!9V&&!9F&&5L!=k.U){q(!2l){19[i].4x('1p-by','['+k.U+']');19[i].7C=19[i].G[1e];19[i].G[1e]='1p'}L q(2l.9G('['+k.U+']')==-1){19[i].4x('1p-by',2l+'['+k.U+']')}}L q((2l=='['+k.U+']'||m.2u==5L)&&5L!=k.U){19[i].4x('1p-by','');19[i].G[1e]=19[i].7C||''}L q(2l&&2l.9G('['+k.U+']')>-1){19[i].4x('1p-by',2l.20('['+k.U+']',''))}}}}},3r:C(){k.16.G.1y=m.49+=2;W(A i=0;i<m.Q.11;i++){q(m.Q[i]&&i==m.2u){A 3N=m.Q[i];3N.R.1s+=' S-'+3N.2F+'-7V';q(3N.2y){3N.R.G.3G=m.3J?'9J':'65';3N.R.2E=m.1h.9A}m.1q(3N,'c0')}}q(k.1r)k.1r.2n.G.1y=k.16.G.1y-1;k.R.1s='S-'+k.2F;q(k.2y){k.R.2E=m.1h.7U;q(m.4G){m.4t=1A.3f?'65':'8g('+m.4X+m.4G+'), 65';q(m.3J&&m.2f<6)m.4t='9J';k.R.G.3G=m.4t}}m.2u=k.U;m.1T(P,1A.3f?'5m':'5l',m.4U);m.1q(k,'cc')},7u:C(x,y){k.x.7S(x);k.y.7S(y)},3u:C(e){A w,h,r=e.M/e.O;w=1l.4O(e.M+e.dX,1l.2x(k.3P,k.x.18));q(k.2y&&1l.7Z(w-k.x.18)<12)w=k.x.18;h=k.29?e.O+e.dY:w/r;q(h<1l.2x(k.4P,k.y.18)){h=1l.2x(k.4P,k.y.18);q(k.2y)w=h*r}k.7v(w,h)},7v:C(w,h){k.y.8i(h);k.x.8i(w);k.16.G.O=k.y.1d('1O')+'F'},2m:C(){q(k.5a||!k.3Y)E;q(!m.1q(k,'br'))E;k.5a=I;m.47(P,1A.3f?'5m':'5l',m.4U);1m{q(k.29)k.aq();k.R.G.3G='bu';k.7o(0,{16:{M:k.x.t,O:k.y.t,1i:k.x.1u-k.x.cb+k.x.2B,1c:k.y.1u-k.y.cb+k.y.2B},R:{1i:0,1c:0,M:k.x.t,O:k.y.t}},m.al)}1k(e){k.78()}},aq:C(){q(m.76){q(!m.4B)m.4B=m.1b('1n',K,{1f:'28'},m.1V);m.T(m.4B,{M:k.x.H+'F',O:k.y.H+'F',1i:k.x.J+'F',1c:k.y.J+'F',1R:'4I'})}q(k.21=='2K')1m{m.$(k.Y.1j).bB()}1k(e){}q(k.2Z=='4Z'&&!k.44)k.aH();q(k.2d&&k.2d!=k.48)k.2d.G.1Y='1p'},aH:C(){q(m.1N&&k.Z)1m{k.Z.4N.P.Y.2q=''}1k(e){}q(k.21=='2K')6H.bD(k.Y.1j);k.Y.2q=''},a6:C(){q(k.1r)k.1r.2n.G.1R='2e';k.31=K;k.16.G.1R='2e';k.3Y=1g;m.22(m.3A,k)},aJ:C(){1m{m.Q[k.U]=k;q(!m.6G&&m.2u!=k.U){1m{m.Q[m.2u].2m()}1k(e){}}A z=m.49++,5i={1R:'',1y:z};m.T(k.16,5i);k.5a=1g;A o=k.1r||0;q(o){q(!k.3h)5i.1t='1p';m.T(o.2n,5i)}k.6F()}1k(e){}},4T:C(o){A D=o.6c;q(1x D=='7c')D=m.3F(D);q(o.2W)D=m.1b('1n',{2q:o.2W});q(!D||1x D=='7c')E;q(!m.1q(k,'bn',{1a:D}))E;D.G.1R='4I';k.aE();A M=o.M&&/^[0-9]+(F|%)$/.14(o.M)?o.M:'1L';q(/^(1i|2U)6A$/.14(o.1f)&&!/^[0-9]+F$/.14(o.M))M='bm';A 1a=m.1b('1n',{1j:'2Q'+m.5d++,2Q:o.2Q},{1f:'28',1t:'1p',M:M,71:m.1h.6Y||'',1E:0},k.1D,I);1a.1J(D);m.3m(1a,{1E:1,aO:0,aK:0,3j:(o.6Q===0||o.6Q===1g||(o.6Q==2&&m.1N))?0:6v});m.3m(1a,o);q(k.aQ){k.61(1a);q(!1a.6d||k.6D)m.43(1a,{1E:1a.1E},1a.3j)}m.22(k.1P,m.5d-1)},61:C(1a){A p=1a.1f||'7T 7F',6w=1a.aO,66=1a.aK;q(1a.2R!=k.1D)k.1D.1J(1a);q(/1i$/.14(p))1a.G.1i=6w+'F';q(/7F$/.14(p))m.T(1a,{1i:'50%',4i:(6w-1l.67(1a.2b/2))+'F'});q(/2U$/.14(p))1a.G.2U=-6w+'F';q(/^9M$/.14(p)){m.T(1a,{2U:'2C%',7R:k.x.cb+'F',1c:-k.y.cb+'F',3M:-k.y.cb+'F',1Y:'1L'});k.x.1Z=1a.2b}L q(/^9K$/.14(p)){m.T(1a,{1i:'2C%',4i:k.x.cb+'F',1c:-k.y.cb+'F',3M:-k.y.cb+'F',1Y:'1L'});k.x.36=1a.2b}q(/^1c/.14(p))1a.G.1c=66+'F';q(/^7T/.14(p))m.T(1a,{1c:'50%',3X:(66-1l.67(1a.1H/2))+'F'});q(/^3M/.14(p))1a.G.3M=-66+'F';q(/^5b$/.14(p)){m.T(1a,{1i:(-k.x.1Z-k.x.cb)+'F',2U:(-k.x.36-k.x.cb)+'F',3M:'2C%',68:k.y.cb+'F',M:'1L'});k.y.1Z=1a.1H}L q(/^6u$/.14(p)){m.T(1a,{1f:'3L',1i:(-k.x.1Z-k.x.cb)+'F',2U:(-k.x.36-k.x.cb)+'F',1c:'2C%',3X:k.y.cb+'F',M:'1L'});k.y.36=1a.1H;1a.G.1f='28'}},9E:C(){k.7D(['4j','7y'],I);q(k.7y)m.1q(k,'bQ');q(k.4j)m.1q(k,'bN');q(k.4j&&k.7H)k.4j.1s+=' S-3S';q(m.a2)k.9Y();W(A i=0;i<m.1P.11;i++){A o=m.1P[i],5Y=o.8m,60=o.41;q((!5Y&&!60)||(5Y&&5Y==k.5X)||(60&&60===k.41)){q(k.2y||(k.29&&o.b1))k.4T(o)}}A 63=[];W(A i=0;i<k.1P.11;i++){A o=m.$('2Q'+k.1P[i]);q(/6A$/.14(o.1f))k.61(o);L m.22(63,o)}W(A i=0;i<63.11;i++)k.61(63[i]);k.aQ=I},aE:C(){q(!k.1D)k.1D=m.1b('1n',{1s:k.6S},{1f:'28',M:(k.x.H||(k.2S?k.M:K)||k.x.18)+'F',O:(k.y.H||k.y.18)+'F',1t:'1p',1Y:'1p',1y:m.1N?4:'1L'},m.1V,I)},4d:C(6z,aC){A 1D=k.1D,x=k.x,y=k.y;m.T(1D,{M:x.H+'F',O:y.H+'F'});q(6z||aC){W(A i=0;i<k.1P.11;i++){A o=m.$('2Q'+k.1P[i]);A 6L=(m.3J||P.62=='6N');q(o&&/^(5b|6u)$/.14(o.1f)){q(6L){o.G.M=(1D.2b+2*x.cb+x.1Z+x.36)+'F'}y[o.1f=='5b'?'1Z':'36']=o.1H}q(o&&6L&&/^(1i|2U)6A$/.14(o.1f)){o.G.O=(1D.1H+2*y.cb)+'F'}}}q(6z){m.T(k.R,{1c:y.1Z+'F'});m.T(1D,{1c:(y.1Z+y.cb)+'F'})}},aI:C(){A b=k.1D;b.1s='';m.T(b,{1c:(k.y.1Z+k.y.cb)+'F',1i:(k.x.1Z+k.x.cb)+'F',1Y:'2r'});q(m.5k)b.G.1t='2r';k.16.1J(b);W(A i=0;i<k.1P.11;i++){A o=m.$('2Q'+k.1P[i]);o.G.1y=o.1y||4;q(!o.6d||k.6D){o.G.1t='2r';m.T(o,{1t:'2r',1R:''});m.43(o,{1E:o.1E},o.3j)}}},9U:C(){q(!k.1P.11)E;q(k.29&&k.44){k.1D.G.1c='-3Q';m.1V.1J(k.1D)}L m.3z(k.1D)},9R:C(){k.6n=m.1b('a',{2D:'9C:m.Q['+k.U+'].7j();',2E:m.1h.9B,1s:'S-18-4m'});q(!m.1q(k,'dm'))E;k.4T({6c:k.6n,1f:m.ae,6d:I,1E:m.9X})},7j:C(){1m{q(!m.1q(k,'dU'))E;q(k.6n)m.3z(k.6n);k.3r();A 2s=k.x.H,2P=k.y.H;k.7v(k.x.18,k.y.18);A 6p=k.x.J-(k.x.H-2s)/2;q(6p<m.4i)6p=m.4i;A 6q=k.y.J-(k.y.H-2P)/2;q(6q<m.3X)6q=m.3X;k.7u(6p,6q);k.4b('1p')}1k(e){k.7s(e)}},78:C(){k.a.1s=k.a.1s.20('S-a4-a5','');k.4b('2r');q(k.29&&k.44){k.a6()}L{q(k.1r&&k.3h)k.1r.6m();m.3z(k.16)}q(m.4B)m.4B.G.1R='2e';m.1q(k,'dZ');m.Q[k.U]=K;m.a1()}};m.6l=C(a,R,6k){k.a=a;k.R=R;k.6k=6k};m.6l.4Q={7e:C(){A 2c;q(!k.V)k.V=m.6g(k.a);q(k.V.2X('#')){A 1S=k.V.73('#');k.V=1S[0];k.1j=1S[1]}q(m.6i[k.V]){k.8B=m.6i[k.V];q(k.1j)k.7O();L k.4L();E}1m{2c=1z aG()}1k(e){1m{2c=1z 9W(\"dE.9I\")}1k(e){1m{2c=1z 9W(\"9H.9I\")}1k(e){k.7h()}}}A 2Y=k;2c.cC=C(){q(2Y.2c.9S==4){q(2Y.1j)2Y.7O();L 2Y.4L()}};A V=k.V;k.2c=2c;q(m.cs)V=V.20(/$/,(/\\?/.14(V)?'&':'?')+'cj='+(1z 6f()).6h());2c.9i('ci',V,I);2c.aB('X-cg-cr','aG');2c.aB('cJ-cO','dx/x-cQ-6Z-cS');2c.cT(K)},7O:C(){m.6j();A 3x=1A.3f||m.8A?{V:'d6:d7'}:K;k.Z=m.1b('Z',3x,{1f:'28',1c:'-3Q'},m.1V);k.4L()},4L:C(){A s=k.8B||k.2c.cp,6r;q(k.6k)m.6i[k.V]=s;q(!m.1N||m.2f>=5.5){s=s.20(1z 6e('<ck[^>]*>','8E'),'').20(1z 6e('<8w[^>]*>.*?</8w>','8E'),'');q(k.Z){A 1U=k.Z.7d;q(!1U&&k.Z.4N)1U=k.Z.4N.P;q(!1U){A 2Y=k;54(C(){2Y.4L()},25);E}1U.9i();1U.e1(s);1U.2m();1m{s=1U.74(k.1j).2q}1k(e){1m{s=k.Z.P.74(k.1j).2q}1k(e){}}m.3z(k.Z)}L{6r=/(<Y[^>]*>|<\\/Y>)/e3;q(6r.14(s))s=s.73(6r)[m.3c?1:2]}}m.4c(k.R,'6s','S-Y').2q=s;k.2M();W(A x 3C k)k[x]=K}};m.6o=m.1h;A dj=m.4z;q(m.1N&&1A==1A.1c){(C(){1m{P.4v.dl('1i')}1k(e){54(9v.dh,50);E}m.3n()})()}m.1T(P,'db',m.3n);m.1T(1A,'6E',m.3n);m.1T(P,'3n',C(){q(m.64){A G=m.1b('G',{N:'da/6K'},K,P.3a('de')[0]),9q=P.62=='6N';C 5Z(89,8e){q(m.1N&&(m.2f<9||9q)){A 3g=P.97[P.97.11-1];q(1x(3g.5Z)==\"7x\")3g.5Z(89,8e)}L{G.1J(P.dB(89+\" {\"+8e+\"}\"))}}C b3(1e){E'bh( ( ( be = P.4v.'+1e+' ? P.4v.'+1e+' : P.Y.'+1e+' ) ) + \\'F\\' );'}q(m.64)5Z('.S 1v','3G: 8g('+m.4X+m.64+'), 65 !bS;')}});m.1T(1A,'3u',C(){m.6a()});m.1T(P,'7K',C(e){m.6b={x:e.69,y:e.6t}});m.1T(P,'80',m.8b);m.1T(P,'8T',m.8b);m.1T(P,'3n',m.98);m.1T(1A,'6E',m.9e);m.1T(1A,'6E',m.at)}",62,
872,"||||||||||||||||||||this||hs||||if||||||||||var|exp|function|el|return|px|style|size|true|pos|null|else|width|type|height|document|expanders|content|highslide|setStyles|key|src|for||body|iframe||length|||test||wrapper||full|els|overlay|createElement|top|get|prop|position|false|lang|left|id|catch|Math|try|div|innerContent|hidden|fireEvent|outline|className|visibility|tpos|img|offset|typeof|zIndex|new|window|outlineType|fx|overlayBox|opacity|node|params|offsetHeight|dim|appendChild|case|auto|next|ie|wsize|overlays|options|display|arr|addEventListener|doc|container|imgSize|dragArgs|overflow|p1|replace|objectType|push|undefined|loading||event||absolute|isHtml|image|offsetWidth|xhr|scrollerDiv|none|uaVersion|ratio|to|easing|td|ajax|hiddenBy|close|table|span|elem|innerHTML|visible|xSize|args|focusKey|name|target|min|isImage|up|re|tb|100|href|title|contentType|op|wh|minSize|onclick|swf|ucwh|onLoad|val|clearing|ySize|hsId|parentNode|useBox|opt|right|custom|html|match|pThis|objectLoadTime|elPos|releaseMask||||changed|p2||||getElementsByTagName|hasDragged|ieLt9|func|graphic|opera|last|outlineWhileAnimating|scroll|dur|styles|page|extend|ready|groups|objectWidth|tagName|focus|step|class|resize|timers|li|attribs|getExpander|discardElement|sleeping|upcoming|in|clone|mediumContent|getNode|cursor|duration|objectHeight|ieLt7|start|relative|bottom|blurExp|now|minWidth|9999px|pendingOutlines|move|parseInt|onload|unit|marginMin|marginTop|isExpanded|while||slideshowGroup|moveOnly|animate|preserveContent|Id|cacheBindings|removeEventListener|scrollingContent|zIndexCounter|htmls|doShowHide|getElementByClass|sizeOverlayBox|number|ruler|end|allowReduce|marginLeft|heading|cNode|hDiff|expand|justify|getParam|images|wDiff|fitsize|area|styleRestoreCursor|navigator|documentElement|over|setAttribute|allowSizeReduction|Expander|all|mask|getAnchors|preloadTheseImages|minY|maxY|restoreCursor|opos|block|filter|iebody|loadHTML|uclt|contentWindow|max|minHeight|prototype|parent|setPosition|createOverlay|keyHandler|iDoc|currentStyle|graphicsDir|fac|after||before|toLowerCase|on|setTimeout|maxX|minX|param|showLoading|cache|isClosing|above|Outline|idCounter|matches|obj|padToMinWidth|getParams|stl|contentLoaded|safari|keydown|keypress|previousOrNext|kdeBugCorr|cloneNode|onLoadStarted|allowWidthReduction|clientSize|relatedTarget|marginMax|maincontent|maxWidth|curAnim|self|gotoEnd|tr|onReady|Dimension|preloadFullImage|preventDefault|expOnly|anchors|imgs|rel|isHsAnchor|break|wrapperKey|showHideElements|preloadTheseAjax|scrollTop|element|allowHeightReduction|imgPad|previous|topmostKey|writeExtendedContent|userAgent|scrollLeft|thumbsUserSetId|tId|addRule|sg|positionOverlay|compatMode|os|expandCursor|pointer|offY|round|marginBottom|clientX|getPageSize|mouse|overlayId|hideOnMouseOut|RegExp|Date|getSrc|getTime|cachedGets|init|pre|Ajax|destroy|fullExpandLabel|langDefaults|xpos|ypos|regBody|DIV|clientY|below|250|offX|sizeDiff|garbageBin|doWrapper|panel|openerTagNames|lt|mouseIsOver|load|show|allowMultipleInstances|swfobject|isReady|htmlExpand|css|ie6|getAdjacentAnchor|BackCompat|continuePreloading|overrides|fade|srcElement|wrapperClassName|numberOfImagesToPreload|mY|mX|setObjContainerSize|cur|cssDirection|form||direction|maxHeight|split|getElementById||geckoMac|maxsize|afterClose|update|hasMovedMin|hasAlphaImageLoader|string|contentDocument|run|tbody|Click|onError|state|doFullExpand|complete|done|expandDuration|arrow|changeSize|ucrb|startTime|correctIframeSize|error|fitOverlayBox|moveTo|resizeTo|margin|object|caption|cacheAjax|osize|getWrapperKey|origProp|getInline|getPosition|center|topZ|dragByHeading|cancelLoading|preloadAjaxElement|mousemove|contentId|getSelfRendered|swfOptions|getElementContent|calcBorders|calcExpanded|marginRight|setPos|middle|restoreTitle|blur|parseFloat|getCacheBinding|location|abs|mousedown|defaultView|types|hasFocused|offsetTop|evt|Text|credits|dragHandler|sel|distance|mouseClickHandler|calcThumb|Create|dec|loadingPos|url|adj|setSize|clones|connectOutline|htmlGetSize|thumbnailId|padding|525|closeTitle|pageOrigin|thumb|Move|background|Next|vis|script|wrapperMouseHandler|closeText|spacebar|ie6SSL|cachedGet|hide|moveText|gi|switch|moveTitle|and|nextText|nopad|enableKeyListener|200|transit|tag|focusTopmost|pow|clickY|clickX|hasHtmlExpanders|mouseup|isUnobtrusiveAnchor|offsetParent|offsetLeft|previousText|nextTitle|clientWidth|alpha|skin|hsHasSetClick|previousTitle|replaceLang|contentWrapper|detachEvent|styleSheets|setClickEvents||resizeTitle|headingOverlay|captionOverlay|call|preloadImages|_default|appendTo|preloadGraphic|open|ul|rv|timerId|loadingText|loadingOpacity|loadingTitle|ltr|backCompat|easeInQuad|pageXOffset|from|orig|arguments|updateAnchors|onGraphicLoad|Previous|Highslide|focusTitle|fullExpandTitle|javascript|getImageMapAreaCorrection|getOverlays|clearsY|indexOf|Microsoft|XMLHTTP|hand|rightpanel|correctRatio|leftpanel|border|htmlSizeOperations|vendor|KDE|createFullExpand|readyState|Eval|destroyOverlays|clearsX|ActiveXObject|fullExpandOpacity|writeCredits|easingClose|nextSibling|reOrder|showCredits|tmpMin|active|anchor|sleep|addOverlay|Overlay|getComputedStyle|Play|getPropertyValue|getAttribute|_|fullExpandPosition|hideSelects|fadeInOut|hideIframes|Pause|removeChild|creditsTarget|restoreDuration|wmode|creditsHref|attributes|hasExtendedContent|htmlPrepareClose|newHeight||preloadAjax|prepareNextOutline|onHideLoading|current|JS|slideshow|flashvars|toString|setRequestHeader|doPanels|preloadNext|genOverlayBox|getIframePageHeight|XMLHttpRequest|destroyObject|showOverlays|awake|offsetY|afterExpand|Close|creditsPosition|offsetX|getAnchorIndex|gotOverlays|creditsText|clear|creditsTitle|both|fromElement|http|outlineStartOffset|mouseover|onDrag|1001|useOnHtml|sqrt|fix|eval|xpand|button|onBeforeGetHeading|onBeforeGetCaption|onDrop|white|01|registerOverlay|returnValue|ignoreMe|onImageClick|htmlE|expression|dragSensitivity|header|Trident|it|200px|onCreateOverlay|oPos|ra|Safari|onBeforeClose|bring|Gecko|default|Macintosh|maincontentEval|maincontentText||footer|cancel|StopPlay|Loading|removeSWF|captionId|captionText|headingEval|maincontentId|headingText|headingId|captionEval|removeAttribute|front|onAfterGetHeading|IFRAME|toElement|onAfterGetCaption|onSetClickEvent|important|SELECT|drop|_self|shadow|keyCode|onKeyDown|the|onBlur|innerWidth|clientHeight|toUpperCase|actual|Expand|innerHeight|Powered|Go|useMap|pageYOffset||onFocus|com|1px|nodeName|Requested|insertBefore|GET|dummy|link|onInit|allowSimultaneousLoading|onmouseover|onmouseout|responseText|300|With|forceAjaxReload|pauseTitle|pauseText|Width|coords|shape|scale|Height|Left|rb|onreadystatechange|Bottom|Right|Top|debug|alert|transparent|Content|embedSWF|version|static|flash|Type|newWidth|www|frameborder|urlencoded|send|onAfterGetContent|expressInstallSwfurl|onShowLoading|imageCreate|message|lineNumber|Line|blockRightClick|oncontextmenu|htmlCreate|onBeforeGetContent|flushImgSize|about|blank|sizingMethod|AlphaImageLoader|text|DOMContentLoaded|Resize|esc|HEAD|graphics|keys|callee|splice|HsExpander|setInterval|doScroll|onCreateFullExpand|onActivate|linearTween|zoomout|zoomin|attachEvent|onMouseOut|onMouseOver|protocol|https|paddingTop|application|homepage|boolean|onAfterExpand|createTextNode|clearInterval|fontSize|Msxml2|lineHeight|playTitle|tgtArr|outlinesDir|outlines|progid|DXImageTransform|fullExpandText|circle|png|collapse|borderCollapse|drag|click|playText|onDoFullExpand|onBeforeExpand|Use|||onAfterClose|cellSpacing|write|tgt|ig".split("|"),
0,{}));var $p,pure=$p=function(a,b){var c=a,d=!1;typeof c==="string"?d=b||!1:c&&!c[0]&&!c.length&&(c=[c]);return $p.core(c,d)};
$p.core=function(a,b,c){function d(a){if(typeof console!=="undefined"){console.log(a);debugger}throw"pure error: "+a;}function h(){var a=$p.plugins,b=function(){};b.prototype=a;b.prototype.compile=a.compile||B;b.prototype.render=a.render||D;b.prototype.autoRender=a.autoRender||Q;b.prototype.find=a.find||n;b.prototype._compiler=K;b.prototype._error=d;return new b}function g(a){return a.outerHTML||function(a){var b=document.createElement("div");b.appendChild(a.cloneNode(!0));return b.innerHTML}(a)}
function k(a,b){return function(c){return a(""+b.call(c.item||c.context,c))}}function n(a,b){typeof a==="string"&&(b=a,a=!1);return typeof document.querySelectorAll!=="undefined"?(a||document).querySelectorAll(b):d("You can test PURE standalone with: iPhone, FF3.5+, Safari4+ and IE8+\n\nTo run PURE on your browser, you need a JS library/framework with a CSS selector engine")}function m(a,b){return function(c){for(var d=[a[0]],g=a.length,h,j,k,m,n=1;n<g;n++){h=b[n].call(this,c);j=a[n];if(h===""&&(k=
d[d.length-1],(m=k.search(/[^\s]+=\"?$/))>-1))d[d.length-1]=k.substring(0,m),j=j.substr(1);d[d.length]=h;d[d.length]=j}return d.join("")}}function j(a){var b=a.match(/^(\w+)\s*<-\s*(\S+)?$/);b===null&&d('bad loop spec: "'+a+'"');b[1]==="item"&&d('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.');if(!b[2]||b[2]&&/context/i.test(b[2]))b[2]=function(a){return a.context};return{name:b[1],sel:b[2]}}function o(a){if(typeof a==="function")return a;
var b=a.match(/^[a-zA-Z\$_\@][\w\$:-]*(\.[\w\$:-]*[^\.])*$/);if(b===null){var c=!1,d=a,g=[],h=[],j=0,k;if(/\'|\"/.test(d.charAt(0))){if(/\'|\"/.test(d.charAt(d.length-1)))return k=d.substring(1,d.length-1),function(){return k}}else for(;(b=d.match(/#\{([^{}]+)\}/))!==null;)c=!0,g[j++]=d.slice(0,b.index),h[j]=o(b[1]),d=d.slice(b.index+b[0].length,d.length);if(!c)return function(){return a};g[j]=d;return m(g,h)}b=a.split(".");return function(a){var c=a.context||a,d=a[b[0]];a=0;if(d&&d.item)if(a+=1,
b[a]==="pos")return d.pos;else c=d.item;for(d=b.length;a<d;a++){if(!c)break;c=c[b[a]];c=$p.options.disable_escape==!0?c:c!=null&&typeof c.replace==="function"?c.escape():c}return!c&&c!==0?"":c}}function q(a,b,e){var h,j,k,m,n,o=[];if(typeof b==="string"){if(h=b,(n=b.match(aa))||d("bad selector syntax: "+b),j=n[1],k=n[2],m=n[3],n=n[4],k==="."||!k&&m?o[0]=a:o=c.find(a,k),!o||o.length===0)return d('The node "'+b+'" was not found in the template:\n'+g(a).replace(/\t/g,"  "))}else j=b.prepend,m=b.attr,
n=b.append,o=[a];if(j||n)j&&n?d("append/prepend cannot take place at the same time"):e?d("no append/prepend/replace modifiers allowed for loop target"):n&&e&&d("cannot append with loop (sel: "+h+")");var q,s,t,u,z;m?(t=/^style$/i.test(m),z=(u=/^class$/i.test(m))?"className":m,q=function(a,b){a.setAttribute(O+m,b);if(z in a&&!t)try{a[z]=""}catch(c){}a.nodeType===1&&(a.removeAttribute(m),u&&a.removeAttribute(z))},s=t||u?t?function(a){return a.style.cssText}:function(a){return a.className}:function(a){return a.getAttribute(m)},
a=function(a){return a.replace(/\"/g,"&quot;")},j=j?function(a,b){q(a,b+s(a))}:n?function(a,b){q(a,s(a)+b)}:function(a,b){q(a,b)}):(j=e?function(a,b){var c=a.parentNode;c&&(c.insertBefore(document.createTextNode(b),a.nextSibling),c.removeChild(a))}:j?function(a,b){a.insertBefore(document.createTextNode(b),a.firstChild)}:n?function(a,b){a.appendChild(document.createTextNode(b))}:function(a,b){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(b))},a=function(a){return a});
return{attr:m,nodes:o,set:j,sel:h,quotefn:a}}function A(a,b){for(var c=v+b+":",d=0;d<a.nodes.length;d++)a.set(a.nodes[d],c)}function y(a,b,c,g,h){return function(j){var k=b(j),m=j[a],n={items:k},o=0,q,t=[],u=function(a,b,d,g){var h=j.pos,m=j.item,u=j.items;j.pos=b.pos=a;j.item=b.item=k[a];j.items=k;typeof g!=="undefined"&&(j.length=g);typeof d==="function"&&d.call(j.item,j)===!1?o++:(t.push(c.call(j.item,j)),j.pos=h,j.item=m,j.items=u)};j[a]=n;if(s(k)){q=k.length||0;typeof g==="function"&&k.sort(g);
for(var z=0;z<q;z++)u(z,n,h,q-o)}else for(q in k&&typeof g!=="undefined"&&d("sort is only available on arrays, not objects"),k)k.hasOwnProperty(q)&&u(q,n,h);typeof m!=="undefined"?j[a]=m:delete j[a];return t.join("")}}function t(a,b,c,g){var h=!1,m,n,s,v;for(v in c)if(c.hasOwnProperty(v))v==="sort"?n=c.sort:v==="filter"?s=c.filter:(h&&d("cannot have more than one loop on a target"),m=v,h=!0);m||d("Error in the selector: "+b+"\nA directive action must be a string, a function or a loop(<-)");h=c[m];
if(typeof h==="string"||typeof h==="function")return c={},c[m]={root:h},t(a,b,c,g);c=j(m);m=o(c.sel);a=q(a,b,!0);b=a.nodes;for(G=0;G<b.length;G++){v=b[G];var B=K(v,h);g[g.length]=k(a.quotefn,y(c.name,m,B,n,s));a.nodes=[v];A(a,g.length-1)}return a}function N(a,b){function c(a,d){var g=a.match(aa);g={prepend:!!g[1],prop:g[2],attr:g[3]||Y[d],append:!!g[4],sel:a};var e,j,k;for(e=h.a.length-1;e>=0;e--)if(j=h.a[e],k=(k=j.l[0])&&k[g.prop],typeof k!=="undefined"){g.prop=j.p+"."+g.prop;h.l[g.prop]===!0&&(k=
k[0]);break}if(typeof k==="undefined"&&(k=o(g.prop)(s(b)?b[0]:b),k===""))return!1;s(k)?(h.a.push({l:k,p:g.prop}),h.l[g.prop]=!0,g.t="loop"):g.t="str";return g}var d=a.getElementsByTagName("*"),g=[],h={a:[],l:{}},j,k,m,n,q,t,u,z;m=-1;for(n=d.length;m<n;m++)if(u=m>-1?d[m]:a,u.nodeType===1&&u.className!==""){z=u.className.split(" ");q=0;for(t=z.length;q<t;q++)if(j=z[q],j=c(j,u.tagName),j!==!1){k=/nodevalue/i.test(j.attr);if(j.sel.indexOf("@")>-1||k)if(u.className=u.className.replace("@"+j.attr,""),k)j.attr=
!1;g.push({n:u,cspec:j})}}return g}function K(a,b,c,d){var h=[],j,n,s,B,D,G,w,u,z,I=[];d=d||c&&N(a,c);if(c)for(;d.length>0;)if(s=d[0].cspec,B=d[0].n,d.splice(0,1),s.t==="str")B=q(B,s,!1),A(B,h.length),h[h.length]=k(B.quotefn,o(s.prop));else{G=o(s.sel);B=q(B,s,!0);D=B.nodes;j=0;for(n=D.length;j<n;j++)w=D[j],u=K(w,!1,c,d),h[h.length]=k(B.quotefn,y(s.sel,G,u)),B.nodes=[w],A(B,h.length-1)}for(z in b)if(b.hasOwnProperty(z)){c=0;d=b[z];s=z.split(/\s*,\s*/);G=s.length;do typeof d==="function"||typeof d===
"string"?(z=s[c],B=q(a,z,!1),A(B,h.length),h[h.length]=k(B.quotefn,o(d))):t(a,z,d,h);while(++c<G)}a=g(a);a=a.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig,"<$1 $3>");a=a.split(O).join("");a=a.split(v);for(c=1;c<a.length;c++)b=a[c],I[c]=h[parseInt(b,10)],a[c]=b.substring(b.indexOf(":")+1);return m(a,I)}function B(a,b,c){var d=K((c||this[0]).cloneNode(!0),a,b);return function(a){return d({context:a})}}function D(a,b){if(typeof b!=="undefined"&&b!==null)$p.options.disable_escape=!0;for(var d=
typeof b==="function"&&b,g=0,h=this.length;g<h;g++)this[g]=R(this[g],(d||c.compile(b,!1,this[g]))(a,!1));context=null;if($p.options.disable_escape==!0)$p.options.disable_escape=!1;return this}function Q(a,b){if(typeof b!=="undefined"&&b!==null)$p.options.disable_escape=!0;for(var d=c.compile(b,a,this[0]),g=0,h=this.length;g<h;g++)this[g]=R(this[g],d(a,!1));context=null;if($p.options.disable_escape==!0)$p.options.disable_escape=!1;return this}function R(a,b){var c,d=a.parentNode,g=0;d||(d=document.createElement("DIV"),
d.appendChild(a));switch(a.tagName){case "TBODY":case "THEAD":case "TFOOT":b="<TABLE>"+b+"</TABLE>";g=1;break;case "TR":b="<TABLE><TBODY>"+b+"</TBODY></TABLE>";g=2;break;case "TD":case "TH":b="<TABLE><TBODY><TR>"+b+"</TR></TBODY></TABLE>",g=3}tmp=document.createElement("SPAN");tmp.style.display="none";document.body.appendChild(tmp);tmp.innerHTML=b;for(c=tmp.firstChild;g--;)c=c.firstChild;d.insertBefore(c,a);d.removeChild(a);document.body.removeChild(tmp);return c}var U=[];c=c||h();switch(typeof a){case "string":U=
c.find(b||document,a);U.length===0&&d('The template "'+a+'" was not found');break;case "undefined":d("The root of the template is undefined, check your selector");break;default:U=a}var G=0;for(a=U.length;G<a;G++)c[G]=U[G];c.length=a;var v="_s"+Math.floor(Math.random()*1E6)+"_",O="_a"+Math.floor(Math.random()*1E6)+"_",aa=/^(\+)?([^\@\+]+)?\@?([^\+]+)?(\+)?$/,Y={IMG:"src",INPUT:"value"},s=Array.isArray?function(a){return Array.isArray(a)}:function(a){return Object.prototype.toString.call(a)==="[object Array]"};
return c};$p.plugins={};
$p.libs={dojo:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){return dojo.query(b,a)}},domassistant:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){return $(a).cssSelect(b)};DOMAssistant.attach({publicMethods:["compile","render","autoRender"],compile:function(a,b){return $p([this]).compile(a,b)},render:function(a,b){return $($p([this]).render(a,b))[0]},autoRender:function(a,b){return $($p([this]).autoRender(a,b))[0]}})},
jquery:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){return jQuery(a).find(b)};jQuery.fn.extend({directives:function(a){this._pure_d=a;return this},compile:function(a,b){return $p(this).compile(this._pure_d||a,b)},render:function(a,b){return jQuery($p(this).render(a,this._pure_d||b))},autoRender:function(a,b){return jQuery($p(this).autoRender(a,this._pure_d||b))}})},mootools:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,
b){return $(a).getElements(b)};Element.implement({compile:function(a,b){return $p(this).compile(a,b)},render:function(a,b){return $p([this]).render(a,b)},autoRender:function(a,b){return $p([this]).autoRender(a,b)}})},prototype:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){a=a===document?a.body:a;return typeof a==="string"?$$(a):$(a).select(b)};Element.addMethods({compile:function(a,b,c){return $p([a]).compile(b,c)},render:function(a,b,c){return $p([a]).render(b,
c)},autoRender:function(a,b,c){return $p([a]).autoRender(b,c)}})},sizzle:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){return Sizzle(b,a)}},sly:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(a,b){return Sly(b,a)}}};
(function(){var a=typeof dojo!=="undefined"&&"dojo"||typeof DOMAssistant!=="undefined"&&"domassistant"||typeof jQuery!=="undefined"&&"jquery"||typeof MooTools!=="undefined"&&"mootools"||typeof Prototype!=="undefined"&&"prototype"||typeof Sizzle!=="undefined"&&"sizzle"||typeof Sly!=="undefined"&&"sly";a&&$p.libs[a]();if(typeof exports!=="undefined")exports.$p=$p})();$p.options={disable_escape:!1};
var swfobject=function(){function a(){if(!T){try{var a=v.getElementsByTagName("body")[0].appendChild(v.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}T=!0;a=Y.length;for(var c=0;c<a;c++)Y[c]()}}function b(a){T?a():Y[Y.length]=a}function c(a){if(typeof G.addEventListener!=D)G.addEventListener("load",a,!1);else if(typeof v.addEventListener!=D)v.addEventListener("load",a,!1);else if(typeof G.attachEvent!=D)y(G,"onload",a);else if(typeof G.onload=="function"){var b=G.onload;G.onload=
function(){b();a()}}else G.onload=a}function d(){var a=v.getElementsByTagName("body")[0],b=v.createElement(Q);b.setAttribute("type",R);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=D){var g=c.GetVariable("$version");if(g)g=g.split(" ")[1].split(","),w.pv=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)]}else if(d<10){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;h()})()}else h()}function h(){var a=s.length;if(a>0)for(var b=0;b<a;b++){var c=s[b].id,
d=s[b].callbackFn,e={success:!1,id:c};if(w.pv[0]>0){var h=A(c);if(h)if(t(s[b].swfVersion)&&!(w.wk&&w.wk<312)){if(K(c,!0),d)e.success=!0,e.ref=g(c),d(e)}else if(s[b].expressInstall&&k()){e={};e.data=s[b].expressInstall;e.width=h.getAttribute("width")||"0";e.height=h.getAttribute("height")||"0";if(h.getAttribute("class"))e.styleclass=h.getAttribute("class");if(h.getAttribute("align"))e.align=h.getAttribute("align");var j={};h=h.getElementsByTagName("param");for(var o=h.length,q=0;q<o;q++)h[q].getAttribute("name").toLowerCase()!=
"movie"&&(j[h[q].getAttribute("name")]=h[q].getAttribute("value"));n(e,j,c,d)}else m(h),d&&d(e)}else if(K(c,!0),d){if((c=g(c))&&typeof c.SetVariable!=D)e.success=!0,e.ref=c;d(e)}}}function g(a){var b=null;if((a=A(a))&&a.nodeName=="OBJECT")typeof a.SetVariable!=D?b=a:(a=a.getElementsByTagName(Q)[0])&&(b=a);return b}function k(){return!da&&t("6.0.65")&&(w.win||w.mac)&&!(w.wk&&w.wk<312)}function n(a,b,c,d){da=!0;L=d||null;ca={success:!1,id:c};var g=A(c);if(g){g.nodeName=="OBJECT"?(e=j(g),E=null):(e=
g,E=c);a.id=U;if(typeof a.width==D||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==D||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";v.title=v.title.slice(0,47)+" - Flash Player Installation";d=w.ie&&w.win?"ActiveX":"PlugIn";d="MMredirectURL="+G.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+v.title;typeof b.flashvars!=D?b.flashvars+="&"+d:b.flashvars=d;if(w.ie&&w.win&&g.readyState!=4)d=v.createElement("div"),c+="SWFObjectNew",
d.setAttribute("id",c),g.parentNode.insertBefore(d,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}();o(a,b,c)}}function m(a){if(w.ie&&w.win&&a.readyState!=4){var b=v.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(j(a),b);a.style.display="none";(function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(j(a),a)}function j(a){var b=v.createElement("div");
if(w.win&&w.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(Q)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)!(a[d].nodeType==1&&a[d].nodeName=="PARAM")&&a[d].nodeType!=8&&b.appendChild(a[d].cloneNode(!0));return b}function o(a,b,c){var d,g=A(c);if(w.wk&&w.wk<312)return d;if(g){if(typeof a.id==D)a.id=c;if(w.ie&&w.win){var e="",h;for(h in a)if(a[h]!=Object.prototype[h])h.toLowerCase()=="data"?b.movie=a[h]:h.toLowerCase()=="styleclass"?e+=' class="'+a[h]+'"':h.toLowerCase()!="classid"&&
(e+=" "+h+'="'+a[h]+'"');h="";for(var j in b)b[j]!=Object.prototype[j]&&(h+='<param name="'+j+'" value="'+b[j]+'" />');g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+e+">"+h+"</object>";M[M.length]=a.id;d=A(a.id)}else{j=v.createElement(Q);j.setAttribute("type",R);for(var k in a)a[k]!=Object.prototype[k]&&(k.toLowerCase()=="styleclass"?j.setAttribute("class",a[k]):k.toLowerCase()!="classid"&&j.setAttribute(k,a[k]));for(e in b)b[e]!=Object.prototype[e]&&e.toLowerCase()!=
"movie"&&(a=j,h=e,k=b[e],c=v.createElement("param"),c.setAttribute("name",h),c.setAttribute("value",k),a.appendChild(c));g.parentNode.replaceChild(j,g);d=j}}return d}function q(a){var b=A(a);if(b&&b.nodeName=="OBJECT")w.ie&&w.win?(b.style.display="none",function(){if(b.readyState==4){var c=A(a);if(c){for(var d in c)typeof c[d]=="function"&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b)}function A(a){var b=null;try{b=v.getElementById(a)}catch(c){}return b}
function y(a,b,c){a.attachEvent(b,c);F[F.length]=[a,b,c]}function t(a){var b=w.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function N(a,b,c,d){if(!w.ie||!w.mac){var g=v.getElementsByTagName("head")[0];if(g){c=c&&typeof c=="string"?c:"screen";d&&(V=S=null);if(!S||V!=c)d=v.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),S=g.appendChild(d),
w.ie&&w.win&&typeof v.styleSheets!=D&&v.styleSheets.length>0&&(S=v.styleSheets[v.styleSheets.length-1]),V=c;w.ie&&w.win?S&&typeof S.addRule==Q&&S.addRule(a,b):S&&typeof v.createTextNode!=D&&S.appendChild(v.createTextNode(a+" {"+b+"}"))}}}function K(a,b){if(ra){var c=b?"visible":"hidden";T&&A(a)?A(a).style.visibility=c:N("#"+a,"visibility:"+c)}}function B(a){return/[\\\"<>\.;]/.exec(a)!=null&&typeof encodeURIComponent!=D?encodeURIComponent(a):a}var D="undefined",Q="object",R="application/x-shockwave-flash",
U="SWFObjectExprInst",G=window,v=document,O=navigator,aa=!1,Y=[function(){aa?d():h()}],s=[],M=[],F=[],e,E,L,ca,T=!1,da=!1,S,V,ra=!0,w=function(){var a=typeof v.getElementById!=D&&typeof v.getElementsByTagName!=D&&typeof v.createElement!=D,b=O.userAgent.toLowerCase(),c=O.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b);c=c?/mac/.test(c):/mac/.test(b);b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1;var g=!1,e=[0,0,0],h=null;if(typeof O.plugins!=D&&typeof O.plugins["Shockwave Flash"]==
Q){if((h=O.plugins["Shockwave Flash"].description)&&!(typeof O.mimeTypes!=D&&O.mimeTypes[R]&&!O.mimeTypes[R].enabledPlugin))aa=!0,g=!1,h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e[0]=parseInt(h.replace(/^(.*)\..*$/,"$1"),10),e[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10),e[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof G.ActiveXObject!=D)try{var j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(j&&(h=j.GetVariable("$version")))g=!0,h=h.split(" ")[1].split(","),
e=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}catch(k){}return{w3:a,pv:e,wk:b,ie:g,win:d,mac:c}}();(function(){w.w3&&((typeof v.readyState!=D&&v.readyState=="complete"||typeof v.readyState==D&&(v.getElementsByTagName("body")[0]||v.body))&&a(),T||(typeof v.addEventListener!=D&&v.addEventListener("DOMContentLoaded",a,!1),w.ie&&w.win&&(v.attachEvent("onreadystatechange",function(){v.readyState=="complete"&&(v.detachEvent("onreadystatechange",arguments.callee),a())}),G==top&&function(){if(!T){try{v.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,
0);return}a()}}()),w.wk&&function(){T||(/loaded|complete/.test(v.readyState)?a():setTimeout(arguments.callee,0))}(),c(a)))})();(function(){w.ie&&w.win&&window.attachEvent("onunload",function(){for(var a=F.length,b=0;b<a;b++)F[b][0].detachEvent(F[b][1],F[b][2]);a=M.length;for(b=0;b<a;b++)q(M[b]);for(var c in w)w[c]=null;w=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(w.w3&&a&&b){var g={};g.id=a;g.swfVersion=b;g.expressInstall=c;g.callbackFn=
d;s[s.length]=g;K(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(w.w3)return g(a)},embedSWF:function(a,c,d,g,e,h,j,m,q,s){var A={success:!1,id:c};w.w3&&!(w.wk&&w.wk<312)&&a&&c&&d&&g&&e?(K(c,!1),b(function(){d+="";g+="";var b={};if(q&&typeof q===Q)for(var v in q)b[v]=q[v];b.data=a;b.width=d;b.height=g;v={};if(m&&typeof m===Q)for(var w in m)v[w]=m[w];if(j&&typeof j===Q)for(var y in j)typeof v.flashvars!=D?v.flashvars+="&"+y+"="+j[y]:v.flashvars=y+"="+j[y];if(t(e))w=o(b,v,c),b.id==
c&&K(c,!0),A.success=!0,A.ref=w;else if(h&&k()){b.data=h;n(b,v,c,s);return}else K(c,!0);s&&s(A)})):s&&s(A)},switchOffAutoHideShow:function(){ra=!1},ua:w,getFlashPlayerVersion:function(){return{major:w.pv[0],minor:w.pv[1],release:w.pv[2]}},hasFlashPlayerVersion:t,createSWF:function(a,b,c){if(w.w3)return o(a,b,c)},showExpressInstall:function(a,b,c,d){w.w3&&k()&&n(a,b,c,d)},removeSWF:function(a){w.w3&&q(a)},createCSS:function(a,b,c,d){w.w3&&N(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=
v.location.search||v.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return B(b);b=b.split("&");for(var c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return B(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(da){var a=A(U);if(a&&e){a.parentNode.replaceChild(e,a);if(E&&(K(E,!0),w.ie&&w.win))e.style.display="block";L&&L(ca)}da=!1}}}}();
(function(a){a.fn.externalInterface=function(a){this.each(function(){if(typeof a.method!="undefined")try{var c=typeof a.args!="undefined"?typeof a.args=="object"&&a.args.length?this[a.method].apply(this,a.args):this[a.method](a.args):this[a.method]();typeof a.success!="undefined"&&a.success(c)}catch(d){typeof a.error!="undefined"&&a.error(d)}});return this}})(jQuery);
(function(a){var b=a.browser.msie&&parseInt(a.browser.version)===6&&typeof window.XMLHttpRequest!=="object",c=a.browser.msie&&parseInt(a.browser.version)===7,d=null,h=[];a.modal=function(b,c){return a.modal.impl.init(b,c)};a.modal.close=function(){a.modal.impl.close()};a.modal.focus=function(b){a.modal.impl.focus(b)};a.modal.setContainerDimensions=function(){a.modal.impl.setContainerDimensions()};a.modal.setPosition=function(){a.modal.impl.setPosition()};a.modal.update=function(b,c){a.modal.impl.update(b,
c)};a.fn.modal=function(b){return a.modal.impl.init(this,b)};a.modal.defaults={appendTo:"body",focus:!0,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:!1,autoPosition:!0,zIndex:1E3,close:!0,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:!0,overlayClose:!1,position:null,persist:!1,modal:!0,
onOpen:null,onShow:null,onClose:null};a.modal.impl={d:{},init:function(b,c){if(this.d.data)return!1;d=a.browser.msie&&!a.boxModel;this.o=a.extend({},a.modal.defaults,c);this.zIndex=this.o.zIndex;this.occb=!1;if(typeof b==="object"){if(b=b instanceof jQuery?b:a(b),this.d.placeholder=!1,b.parent().parent().size()>0&&(b.before(a("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"})),this.d.placeholder=!0,this.display=b.css("display"),!this.o.persist))this.d.orig=b.clone(!0)}else if(typeof b===
"string"||typeof b==="number")b=a("<div></div>").html(b);else return alert("SimpleModal Error: Unsupported data type: "+typeof b),this;this.create(b);this.open();a.isFunction(this.o.onShow)&&this.o.onShow.apply(this,[this.d]);return this},create:function(c){h=this.getDimensions();if(this.o.modal&&b)this.d.iframe=a('<iframe src="javascript:false;"></iframe>').css(a.extend(this.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:h[0],width:h[1],zIndex:this.o.zIndex,top:0,left:0})).appendTo(this.o.appendTo);
this.d.overlay=a("<div></div>").attr("id",this.o.overlayId).addClass("simplemodal-overlay").css(a.extend(this.o.overlayCss,{display:"none",opacity:this.o.opacity/100,height:this.o.modal?h[0]:0,width:this.o.modal?h[1]:0,position:"fixed",left:0,top:0,zIndex:this.o.zIndex+1})).appendTo(this.o.appendTo);this.d.container=a("<div></div>").attr("id",this.o.containerId).addClass("simplemodal-container").css(a.extend(this.o.containerCss,{display:"none",position:"fixed",zIndex:this.o.zIndex+2})).append(this.o.close&&
this.o.closeHTML?a(this.o.closeHTML).addClass(this.o.closeClass):"").appendTo(this.o.appendTo);this.d.wrap=a("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(this.d.container);this.d.data=c.attr("id",c.attr("id")||this.o.dataId).addClass("simplemodal-data").css(a.extend(this.o.dataCss,{display:"none"})).appendTo("body");this.setContainerDimensions();this.d.data.appendTo(this.d.wrap);(b||d)&&this.fixIE()},bindEvents:function(){var c=
this;a("."+c.o.closeClass).bind("click.simplemodal",function(a){a.preventDefault();c.close()});c.o.modal&&c.o.close&&c.o.overlayClose&&c.d.overlay.bind("click.simplemodal",function(a){a.preventDefault();c.close()});a(document).bind("keydown.simplemodal",function(a){c.o.modal&&a.keyCode===9?c.watchTab(a):c.o.close&&c.o.escClose&&a.keyCode===27&&(a.preventDefault(),c.close())});a(window).bind("resize.simplemodal",function(){h=c.getDimensions();c.o.autoResize?c.setContainerDimensions():c.o.autoPosition&&
c.setPosition();b||d?c.fixIE():c.o.modal&&(c.d.iframe&&c.d.iframe.css({height:h[0],width:h[1]}),c.d.overlay.css({height:h[0],width:h[1]}))})},unbindEvents:function(){a("."+this.o.closeClass).unbind("click.simplemodal");a(document).unbind("keydown.simplemodal");a(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var b=this.o.position;a.each([this.d.iframe||null,!this.o.modal?null:this.d.overlay,this.d.container],function(a,c){if(c){var d=c[0].style;d.position=
"absolute";if(a<2)d.removeExpression("height"),d.removeExpression("width"),d.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"'),d.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"');else{var h;b&&b.constructor===Array?(a=b[0]?typeof b[0]==="number"?b[0].toString():b[0].replace(/px/,""):c.css("top").replace(/px/,""),
a=a.indexOf("%")===-1?a+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(a.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"',b[1]&&(h=typeof b[1]==="number"?b[1].toString():b[1].replace(/px/,""),h=h.indexOf("%")===-1?h+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':
parseInt(h.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"')):(a='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"',h='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"');
d.removeExpression("top");d.removeExpression("left");d.setExpression("top",a);d.setExpression("left",h)}}})},focus:function(b){var c=this;b=b&&a.inArray(b,["first","last"])!==-1?b:"first";var d=a(":input:enabled:visible:"+b,c.d.wrap);setTimeout(function(){d.length>0?d.focus():c.d.wrap.focus()},10)},getDimensions:function(){var b=a(window);return[a.browser.opera&&a.browser.version>"9.5"&&a.fn.jquery<"1.3"||a.browser.opera&&a.browser.version<"9.5"&&a.fn.jquery>"1.2.6"?b[0].innerHeight:b.height(),b.width()]},
getVal:function(a,b){return a?typeof a==="number"?a:a==="auto"?0:a.indexOf("%")>0?parseInt(a.replace(/%/,""))/100*(b==="h"?h[0]:h[1]):parseInt(a.replace(/px/,"")):null},update:function(a,b){if(!this.d.data)return!1;this.d.origHeight=this.getVal(a,"h");this.d.origWidth=this.getVal(b,"w");this.d.data.hide();a&&this.d.container.css("height",a);b&&this.d.container.css("width",b);this.setContainerDimensions();this.d.data.show();this.o.focus&&this.focus();this.unbindEvents();this.bindEvents()},setContainerDimensions:function(){var d=
b||c,k=this.d.origHeight?this.d.origHeight:a.browser.opera?this.d.container.height():this.getVal(d?this.d.container[0].currentStyle.height:this.d.container.css("height"),"h");d=this.d.origWidth?this.d.origWidth:a.browser.opera?this.d.container.width():this.getVal(d?this.d.container[0].currentStyle.width:this.d.container.css("width"),"w");var n=this.d.data.outerHeight(!0),m=this.d.data.outerWidth(!0);this.d.origHeight=this.d.origHeight||k;this.d.origWidth=this.d.origWidth||d;var j=this.o.maxHeight?
this.getVal(this.o.maxHeight,"h"):null,o=this.o.maxWidth?this.getVal(this.o.maxWidth,"w"):null;j=j&&j<h[0]?j:h[0];o=o&&o<h[1]?o:h[1];var q=this.o.minHeight?this.getVal(this.o.minHeight,"h"):"auto";k=k?this.o.autoResize&&k>j?j:k<q?q:k:n?n>j?j:this.o.minHeight&&q!=="auto"&&n<q?q:n:q;j=this.o.minWidth?this.getVal(this.o.minWidth,"w"):"auto";d=d?this.o.autoResize&&d>o?o:d<j?j:d:m?m>o?o:this.o.minWidth&&j!=="auto"&&m<j?j:m:j;this.d.container.css({height:k,width:d});this.d.wrap.css({overflow:n>k||m>d?"auto":
"visible"});this.o.autoPosition&&this.setPosition()},setPosition:function(){var a,b;a=h[0]/2-this.d.container.outerHeight(!0)/2;b=h[1]/2-this.d.container.outerWidth(!0)/2;this.o.position&&Object.prototype.toString.call(this.o.position)==="[object Array]"&&(a=this.o.position[0]||a,b=this.o.position[1]||b);this.d.container.css({left:b,top:a})},watchTab:function(b){if(a(b.target).parents(".simplemodal-container").length>0){if(this.inputs=a(":input:enabled:visible:first, :input:enabled:visible:last",
this.d.data[0]),!b.shiftKey&&b.target===this.inputs[this.inputs.length-1]||b.shiftKey&&b.target===this.inputs[0]||this.inputs.length===0)b.preventDefault(),this.focus(b.shiftKey?"last":"first")}else b.preventDefault(),this.focus()},open:function(){this.d.iframe&&this.d.iframe.show();a.isFunction(this.o.onOpen)?this.o.onOpen.apply(this,[this.d]):(this.d.overlay.show(),this.d.container.show(),this.d.data.show());this.o.focus&&this.focus();this.bindEvents()},close:function(){var b=this;if(!b.d.data)return!1;
b.unbindEvents();if(a.isFunction(b.o.onClose)&&!b.occb)b.occb=!0,b.o.onClose.apply(b,[b.d]);else{if(b.d.placeholder){var c=a("#simplemodal-placeholder");b.o.persist?c.replaceWith(b.d.data.removeClass("simplemodal-data").css("display",b.display)):(b.d.data.hide().remove(),c.replaceWith(b.d.orig))}else b.d.data.hide().remove();b.d.container.hide().remove();b.d.overlay.hide();b.d.iframe&&b.d.iframe.hide().remove();setTimeout(function(){b.d.overlay.remove();b.d={}},10)}}}})(jQuery);
(function(a){a.toJSON=function(b){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(b);var c=typeof b;if(b===null)return"null";if(c!="undefined"){if(c=="number"||c=="boolean")return b+"";if(c=="string")return a.quoteString(b);if(c=="object"){if(typeof b.toJSON=="function")return a.toJSON(b.toJSON());if(b.constructor===Date){var g=b.getUTCMonth()+1;g<10&&(g="0"+g);var k=b.getUTCDate();k<10&&(k="0"+k);c=b.getUTCFullYear();var n=b.getUTCHours();n<10&&(n="0"+n);var m=b.getUTCMinutes();m<
10&&(m="0"+m);var j=b.getUTCSeconds();j<10&&(j="0"+j);b=b.getUTCMilliseconds();b<100&&(b="0"+b);b<10&&(b="0"+b);return'"'+c+"-"+g+"-"+k+"T"+n+":"+m+":"+j+"."+b+'Z"'}if(b.constructor===Array){g=[];for(k=0;k<b.length;k++)g.push(a.toJSON(b[k])||"null");return"["+g.join(",")+"]"}g=[];for(k in b){c=typeof k;if(c=="number")c='"'+k+'"';else if(c=="string")c=a.quoteString(k);else continue;typeof b[k]!="function"&&(n=a.toJSON(b[k]),g.push(c+":"+n))}return"{"+g.join(", ")+"}"}}};a.evalJSON=function(a){if(typeof JSON==
"object"&&JSON.parse)return JSON.parse(a);return eval("("+a+")")};a.secureEvalJSON=function(a){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(a);var b;b=a.replace(/\\["\\\/bfnrtu]/g,"@");b=b.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");b=b.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(b))return eval("("+a+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};a.quoteString=function(a){if(a.match(b))return'"'+a.replace(b,
function(a){var b=c[a];if(typeof b==="string")return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"';return'"'+a+'"'};var b=/["\\\x00-\x1f\x7f-\x9f]/g,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);
var RemoteScript3x={IframeName:"_3xRemoteScript_",getEmptyArray:function(){return[]},rpcReceiveDispatch:function(a,b,c){c=c!=null?c:[];for(var d=a.RemoteScript3x.getEmptyArray(),h=0;h<c.length;h++)d.push(c[h]);b=typeof b=="function"?b:eval(b);return b.apply(a,d)},rpcReceive:function(){var a={};try{var b=document.location.href,c=b.substr(b.indexOf("?")+1);if(c.indexOf("loginUrl=")==0){var d=decodeURIComponent(c.substr(c.indexOf("=")+1));document.location.href=d;return}else{var h=c.split("&");for(b=
0;b<h.length;b++){var g=h[b].split("=");g.length>=2?a[g[0]]=decodeURIComponent(g[1]):g.length>=1&&(a[g[0]]="")}}}catch(k){}h=a.fn;g=a.ft;if(!(h==null||g==null)){c=[];for(b=0;a["a"+b]!=null;)c[b]=a["a"+b++];try{this.rpcReceiveDispatch(eval("parent."+g),"parent."+g+"."+h,c)}catch(n){}}},rpcRemoteCall:function(a,b,c,d){d=d==null?[]:d;a=a+"3xRemoteScript.html?fn="+encodeURIComponent(c)+"&ts="+(new Date).getTime()+"&ft="+encodeURIComponent(b);b="";for(c=0;c<d.length;c++)b+="&a"+c+"="+encodeURIComponent(d[c]!=
null&&d[c]!="null"?d[c]:"");a+=b;d=document.createElement("iframe");d.setAttribute("width","0");d.setAttribute("height","0");d.setAttribute("style","visibility:hidden");document.body.appendChild(d);d.setAttribute("src",a)},getRpcNodeUrl:function(){var a=(document.location.href+"").split("/");return a[0]+"//"+a[2]+"/"},makeRpcId:function(a,b){var c=this.extractRpcRemoteNodeUrl(a);a=this.extractRpcLocalId(a!=null?a:"");a==""&&(a=(new Date).getTime()+"");if(b==null||b=="")b="window";c==""&&(c=this.getRpcNodeUrl());
return c+"|"+a+"|"+b},extractRpcLocalId:function(a){a=(a!=null?a:"").split("|");if(a.length==0)return"";if(a.length==1)return a[0];return a[1]},extractRpcTarget:function(a){a=(a!=null?a:"").split("|");if(a.length<=2)return"window";return a[2]!=""?a[2]:"window"},extractRpcRemoteNodeUrl:function(a){a=(a!=null?a:"").split("|");if(a.length<=1)return"";return a[0]==this.getRpcNodeUrl()?"":a[0]}};
function ApplicationSession(a){a=ApplicationScript.evalJsonObject(a);this.SessionKey=a==null?"":a.SessionKey;this.BaseUrl=a==null?"":a.BaseUrl;this.ApplicationName=a==null?"":a.ApplicationName;this.ApplicationUrl=a==null?"":a.ApplicationUrl;this.CallBackUrl=a==null?"":a.CallBackUrl;this.ApplicationId=a==null?"":a.ApplicationId;this.OriginalProviderSessionString=a==null?"":a.OriginalProviderSessionString;this.UserGlobalUid=a==null?"":a.UserGlobalUid;this.UserLocalUri=a==null?"":a.UserLocalUri;this.WWWUrl=
a==null?"":a.BaseUrl+"ww/";this.JsonSessionToken=a==null?"":a.JsonSessionToken;this.Domain=a==null?"":a.Domain;this.SubApplicationType=a==null?"":a.SubApplicationType;Language=a==null?"":a.Language;this.LocalIdType=a==null?"":a.UserLocalUri.substr(1,2);this.UserLocalId=a==null?"":a.UserLocalUri.substr(4)}
var ApplicationScript={ManagedSocials:["FB","TW","GM","MS","WW","LD"],BaseUrl:"",SubApplicationType:"",LanguageTag:"",UseLocalLoginUrl:!1,Init:function(a,b,c){this.BaseUrl=a;this.LanguageTag=c;this.SubApplicationType=b;this.GetDomain()},SetLanguageTag:function(a){this.LanguageTag=a},GetDomain:function(a){var b=this.BaseUrl.split("/"),c="";a?c=b[2]:(a=b[2].split("."),c=a.length==3?a[1]+"."+a[2]:a[0]+"."+a[1]);return c},GetThisDomain:function(a){var b=window.location.href.split("/"),c="";a?c=b[2]:(a=
b[2].split("."),c=a.length==3?a[1]+"."+a[2]:a[0]+"."+a[1]);return c},RestUrl:function(a,b){var c=this.BaseUrl+"xml/WebService.ashx?action="+a+"&lng="+this.LanguageTag+"&ts="+(new Date).getTime();b!=null&&(c+="&sk="+b);return c},GetSocialContextFromSk:function(a){a=a.substr(0,2);return a=="WW"?NextNextWW:a=="FB"?NextNextFB:a=="MS"?NextNextMS:NextNextWW},_login_popup:null,_login_dialogId:"",DialogLoginCheckPopup:function(){if(this._login_popup!=null)this._login_popup.closed?(this.rpc_DialogLoginSessionResponse(RemoteScript3x.extractRpcLocalId(this._login_dialogId),
"","cb",null),this._login_popup=null,this._login_dialogId=""):setTimeout("ApplicationScript.DialogLoginCheckPopup()",100)},DialogLoginShow:function(a,b,c,d){window.name="LOGINHOST";var h=!1;try{var g=ApplicationScript.Get_Cookie(b+"_sk");g!=null&&g.length>10&&(h=!0,c=c.replace("popup_","frame_"))}catch(k){}d==null||d==""?d="ctx="+ApplicationScript.SubApplicationType+"&lng="+ApplicationScript.LanguageTag+"&loginType="+b+"&loginMode="+c+"&dialogId=":d+="&ctx="+ApplicationScript.SubApplicationType+"&lng="+
ApplicationScript.LanguageTag+"&loginType="+b+"&loginMode="+c+"&dialogId=";b=this.BaseUrl+"dialogs/login/?"+d;h?(a=RemoteScript3x.makeRpcId(a,"parent"),b+=a,a=document.createElement("iframe"),a.setAttribute("width","0"),a.setAttribute("height","0"),a.setAttribute("style","visibility:hidden"),document.body.appendChild(a),a.setAttribute("src",b)):c.indexOf("popup")!=-1?(a=RemoteScript3x.makeRpcId(a,"opener"),b+=a,h="Login",a.indexOf("aux")!=-1&&(h="LoginAux"),this.UseLocalLoginUrl&&this.GetThisDomain(!0)!=
this.GetDomain(!0)&&(b="/3xRemoteScript.html?loginUrl="+encodeURIComponent(b)),h=window.open(b,h,"status=1, location=1, resizable=0, width=830,height=470"),h.focus(),c.indexOf("cb")!=-1?(this._login_popup=h,this._login_dialogId=a,setTimeout("ApplicationScript.DialogLoginCheckPopup()",100)):(this._login_popup=null,this._login_dialogId="")):(a=RemoteScript3x.makeRpcId(a,"window"),b+=a,this._login_popup=null,this._login_dialogId="",document.location.href=b)},rpc_DialogLoginSessionResponse:function(a,
b,c,d){try{b!=null&&b.length>10&&ApplicationScript.Set_Cookie(b.substr(0,2)+"_sk",b,ApplicationScript.GetThisDomain())}catch(h){}var g=RemoteScript3x.extractRpcRemoteNodeUrl(a),k=RemoteScript3x.extractRpcTarget(a);a=RemoteScript3x.extractRpcLocalId(a);if(g!="")RemoteScript3x.rpcRemoteCall(g,k,"ApplicationScript.rpc_DialogLoginSessionResponse",[a,b,c,d]);else{g=eval(k);try{var n=g.ApplicationScript._login_popup;g.ApplicationScript._login_popup=null;n&&n.close()}catch(m){}if(c=="get"||c=="getc")g.location.href=
d;else if(c=="post"){c="";if(k=="opener"||k=="parent")c="LOGINHOST"+(new Date).getTime(),g.name=c;k=document.createElement("form");k.setAttribute("method","post");k.setAttribute("action",d);c!=""&&k.setAttribute("target",c);k.setAttribute("style","visibility:hidden");d=document.createElement("input");d.setAttribute("name","sk");d.setAttribute("value",b);d.setAttribute("type","hidden");k.appendChild(d);document.body.appendChild(k);k.submit()}else if(c=="cb")g.ApplicationScript._login_popup=null,g.ApplicationScript._login_dialogId=
null,g.ApplicationScript.notify_ExternalSessionReady(a,b)}},notify_ExternalSessionReady:function(a,b){try{$("#flashcontent").externalInterface({method:"SwfExternalSessionReady",args:[a,b],success:function(){},error:function(){}})}catch(c){}try{JsExternalSessionReady(a,b)}catch(d){}},SocialContextInit:function(a,b,c){this.GetSocialContextFromSk(a).Init(a,b,c)},rpc_LogoutClose:function(a,b){b?b=="false"?b=!1:b=="true"&&(b=!0):b=!1;try{ApplicationScript.Delete_Cookie("sk",ApplicationScript.GetThisDomain());
for(var c=0;c<ApplicationScript.ManagedSocials.length;c++)ApplicationScript.Delete_Cookie(ApplicationScript.ManagedSocials[c]+"_sk",ApplicationScript.GetThisDomain())}catch(d){}c=RemoteScript3x.extractRpcRemoteNodeUrl(a);var h=RemoteScript3x.extractRpcTarget(a),g=RemoteScript3x.extractRpcLocalId(a);c!=""?RemoteScript3x.rpcRemoteCall(c,h,"ApplicationScript.rpc_LogoutClose",[g,b]):b==!1&&eval(h).ApplicationScript.notify_ExternalLogoutDone(g)},notify_ExternalLogoutDone:function(a){try{$("#flashcontent").externalInterface({method:"SwfExternalLogoutDone",
args:[a],success:function(){},error:function(){}})}catch(b){}try{JsExternalLogoutDone(a)}catch(c){}},Logout:function(a,b){a=RemoteScript3x.makeRpcId(a,"parent");var c=this.BaseUrl+"dialogs/logout/?dialogId="+a+"&nextUrl="+encodeURIComponent(b?b:""),d=document.createElement("iframe");d.setAttribute("width","0");d.setAttribute("height","0");d.setAttribute("style","visibility:hidden");document.body.appendChild(d);d.setAttribute("src",c)},rpc_DialogInviteClose:function(a,b){var c=RemoteScript3x.extractRpcRemoteNodeUrl(a),
d=RemoteScript3x.extractRpcTarget(a),h=RemoteScript3x.extractRpcLocalId(a);c!=""?RemoteScript3x.rpcRemoteCall(c,d,"ApplicationScript.rpc_DialogInviteClose",[h,b]):(c=eval(d),c.$.modal.close(),c.ApplicationScript.notify_ExternalInvitationDone(h,b))},notify_ExternalInvitationDone:function(a,b){try{$("#flashcontent").externalInterface({method:"SwfExternalInvitationDone",args:[a,b],success:function(){},error:function(){}})}catch(c){}try{JsExternalInvitationDone(a,b)}catch(d){}},DialogInviteSelfClose:function(a,
b,c){a=RemoteScript3x.makeRpcId(a,c?c:RemoteScript3x.extractRpcTarget(a));this.rpc_DialogInviteClose(a,b)},DialogInvitePublishShow:function(a,b,c,d){return this.DialogInviteShow(a,b,"",d,c)},DialogInviteShow:function(a,b,c,d,h){c="";h!=null&&(c=typeof h!="string"?$.toJSON(h):h);d||(d="full");a=RemoteScript3x.makeRpcId(a,"parent");b==null||b==""?this.notify_ExternalInvitationDone(RemoteScript3x.extractRpcLocalId(a),!1):(h="",a="?sk="+b+"&dialogId="+a+"&dialogStyle="+d+"&lng="+ApplicationScript.LanguageTag+
"&ms="+encodeURIComponent(c),h=b.substr(0,2)=="FB"?this.BaseUrl+"dialogs/invite/FB/"+a:this.BaseUrl+"dialogs/invite/"+a,b=d=="compact"?486:760,$.modal('<iframe src="'+h+'" border="0" frameborder="0" height="488" width="'+b+'" scrolling="no" style="border:0px solid #ECEFF6; margin: 0px; padding: 0px">',{closeHTML:"",containerCss:{backgroundColor:"#ECEFF6",borderColor:"#ECEFF6",height:488,padding:0,width:b},overlayClose:!1}),$(".simplemodal-wrap").css("overflow","hidden"))},DialogInviteReplace:function(a,
b,c,d){var h="";c!=null&&(h=typeof c!="string"?$.toJSON(c):c);d||(d="full");c="";a="?sk="+b+"&dialogId="+a+"&dialogStyle="+d+"&lng="+ApplicationScript.LanguageTag+"&ms="+encodeURIComponent(h);c=b.substr(0,2)=="FB"?this.BaseUrl+"dialogs/invite/FB/"+a:this.BaseUrl+"dialogs/invite/"+a;document.location.href=c},DialogInviteMakeInvitation:function(a,b,c,d){b=b!=null&&b.length>0?b:this.SessionKey;var h=this.GetSocialContextFromSk(b);try{h.MakeInvitation(a,b,c,d)}catch(g){}ApplicationScript.DialogInviteSelfClose(a,
!0)},rpc_DialogStreamPublishClose:function(a,b){var c=RemoteScript3x.extractRpcRemoteNodeUrl(a),d=RemoteScript3x.extractRpcTarget(a),h=RemoteScript3x.extractRpcLocalId(a);c!=""?RemoteScript3x.rpcRemoteCall(c,d,"ApplicationScript.rpc_DialogStreamPublishClose",[h,b]):(c=eval(d),c.$.modal.close(),c.ApplicationScript.notify_ExternalMessageStreamDone(h,b))},notify_ExternalMessageStreamDone:function(a,b){try{$("#flashcontent").externalInterface({method:"SwfExternalMessageStreamDone",args:[a,b],success:function(){},
error:function(){}})}catch(c){}try{JsExternalMessageStreamDone(a,b)}catch(d){}},DialogStramPublishSelfClose:function(a,b,c){a=RemoteScript3x.makeRpcId(a,c?c:RemoteScript3x.extractRpcTarget(a));this.rpc_DialogStreamPublishClose(a,b)},DialogStreamPublishShow:function(a,b,c){var d="";d=typeof c!="string"?$.toJSON(c):c;if(b.substr(0,2)!="FB")a=RemoteScript3x.makeRpcId(a,"parent"),c="",c=this.BaseUrl+"dialogs/publish/"+("?sk="+b+"&dialogId="+a+"&ms="+encodeURIComponent(d)+"&lng="+ApplicationScript.LanguageTag),
$.modal('<iframe src="'+c+'" border="0" frameborder="0" height="400" width="600" scrolling="no" style="border:0px solid #ECEFF6; margin: 0px; padding: 0px">',{closeHTML:"",containerCss:{backgroundColor:"#ECEFF6",borderColor:"#ECEFF6",height:400,padding:0,width:600},overlayClose:!1});else{a=RemoteScript3x.makeRpcId(a,"");c=this.GetSocialContextFromSk(b);try{c.StreamPublish(a,d,b,function(b){b&&b.post_id?ApplicationScript.DialogStramPublishSelfClose(a,b.post_id,"window"):ApplicationScript.DialogStramPublishSelfClose(a,
"","window")})}catch(h){ApplicationScript.DialogStramPublishSelfClose(a,"","window")}}$(".simplemodal-wrap").css("overflow","hidden")},DialogStreamPublishReplace:function(a,b,c){var d="";d=typeof c!="string"?$.toJSON(c):c;c="";a="?sk="+b+"&dialogId="+a+"&ms="+d+"&lng="+ApplicationScript.LanguageTag;c=b.substr(0,2)=="FB"?this.BaseUrl+"dialogs/publish/FB/"+a:this.BaseUrl+"dialogs/publish/"+a;document.location.href=c},rpc_ConnectClose:function(a,b){try{ApplicationScript.Set_Cookie("sk",b,ApplicationScript.GetThisDomain())}catch(c){}var d=
RemoteScript3x.extractRpcRemoteNodeUrl(a),h=RemoteScript3x.extractRpcTarget(a),g=RemoteScript3x.extractRpcLocalId(a);d!=""?RemoteScript3x.rpcRemoteCall(d,h,"ApplicationScript.rpc_ConnectClose",[g,b]):(d=eval(h),d.$.modal.close(),d.ApplicationScript.notify_ConnectDone(g,b))},notify_ConnectDone:function(a,b){try{$("#flashcontent").externalInterface({method:"SwfExternalConnectDone",args:[a,b],success:function(){},error:function(){}})}catch(c){}try{JsExternalConnectDone(a,b)}catch(d){}},DialogConnectShow:function(a,
b){a=RemoteScript3x.makeRpcId(a,"parent");$.modal('<iframe src="'+(this.BaseUrl+"dialogs/login/Unify.aspx?dialogId="+a+"&sk="+b+"&lng="+ApplicationScript.LanguageTag)+'" border="0" frameborder="0" height="420" width="577" scrolling="no" style="border:0px solid #ECEFF6; margin: 0px; padding: 0px">',{closeHTML:"",containerCss:{backgroundColor:"#ECEFF6",borderColor:"#ECEFF6",height:420,padding:0,width:577},overlayClose:!1})},SwfExternalShowLoading:function(a){$("#flashcontent").externalInterface({method:"SwfExternalShowLoading",
args:a,success:function(){},error:function(){}})},JsExternalShowLoading:function(a){a?$("#loading").show():$("#loading").hide()},evalJsonObject:function(a){var b=null;if(a==null)return b;if(typeof a=="string")try{eval("_obj="+a)}catch(c){}else b=a;return b},Get_Cookie:function(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return null;if(b==-1)return null;a=document.cookie.indexOf(";",c);if(a==-1)a=document.cookie.length;c=unescape(document.cookie.substring(c,
a));c!=null&&(c=$.trim(c));return c},Delete_Cookie:function(a,b){b||(b=this.GetThisDomain());if(this.Get_Cookie(a))document.cookie=a+"= "+(b?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/"},Set_Cookie:function(a,b,c){c||(c=this.GetThisDomain());document.cookie=a+"= "+b+(c?";domain="+c:"")+";path=/"}},NextNextFB={SocialId:"FB",SessionObject:null,Session:null,StreamPublishVersion:2,IsFacebookDomain:function(){try{return top.location.href.indexOf("apps.facebook.com")!=-1}catch(a){return!0}},
Init:function(a,b,c){this.SessionObject=new ApplicationSession(b);this.Session=ApplicationScript.evalJsonObject(this.SessionObject.JsonSessionToken);this.IsFacebookDomain()?FB.init({appId:this.SessionObject.ApplicationId,status:!0,cookie:!1,xfbml:!0}):FB.init({appId:this.SessionObject.ApplicationId,status:!0,cookie:!1,xfbml:!0,session:this.Session});if(this.IsFacebookDomain()&&c!=null&&c.autoResizeTime>-1)window.fbAsyncInit=function(){FB.Canvas.setAutoResize(!0,c.autoResizeTime)}},StreamPublish:function(a,
b,c,d){this.IsFacebookDomain()&&this.StreamPublishVersion==2?this.StreamPublish2(a,b,c,d):this.StreamPublish3(a,b,c,d)},StreamPublish2:function(a,b,c,d,h){var g=this.SessionObject!=null?this.SessionObject.UserLocalId:null,k=this.SessionObject!=null?this.SessionObject.UserLocalId:null,n=null,m=null,j=function(a,b){var c=ApplicationScript.evalJsonObject(a);if(c.media!=null&&c.media.length>0)for(i=0;i<c.media.length;i++)if(c.media[i].type=="image")n=c.media[i].src;else if(c.media[i].type=="flash")m=
c.media[i].src;else if(c.media[i].type=="mp3")m=c.media[i].src;if(c.targetLocalUri!=null&&c.targetLocalUri.length>0){var d=c.targetLocalUri[0];d.indexOf("/FB/")==0&&(g=d.substr(4))}FB.ui({method:"feed",name:c.name,link:c.link,picture:n,caption:c.caption,description:c.description,message:c.message,actions:c.action_links&&c.action_links.length>0?c.action_links:null,source:m,to:g,from:k},b)};h?j(b,d):(a={},a.url=ApplicationScript.RestUrl("message.stream",c),a.type="get",a.dataType="jsonp",a.data={ms:b,
bindOnly:!0},a.success=function(a){a._responseStatus==""?j(a.ms,d):j(b,d)},a.error=function(){j(b,d)},$.ajax(a))},StreamPublish3:function(a,b,c,d){a=RemoteScript3x.makeRpcId(a,"parent");this._callback_tmp_StreamPublish=d;a=ApplicationScript.BaseUrl+"dialogs/publish/FB/?sk="+c+"&ms="+encodeURIComponent(b)+"&dialogId="+a+"&lng="+ApplicationScript.LanguageTag;$.modal('<iframe src="'+a+'" border="0" frameborder="0" height="400" width="600" scrolling="no" style="border:0px solid #ECEFF6; margin: 0px; padding: 0px">',
{closeHTML:"",containerCss:{backgroundColor:"#ECEFF6",borderColor:"#ECEFF6",height:400,padding:0,width:600},overlayClose:!1})},MakeInvitation:function(){},DialogAuthorizeShow:function(a,b,c){FB.ui({method:"permissions.request",perms:b},function(b){if(b.status!=="notConnected"||b.session!==null){var h=b.session.uid;b=b.session.access_token;c&&c(a,h,b)}else c(a,null,null)})},AggiustaCss:function(){NextNextFB.dialogStyle=="compact"?$(".fb_ltr").css("width","486px"):$(".fb_ltr").css("width","760px")},
action_linksJsonEncode:function(a){var b="[",c;for(c=0;c<a.length;c++)b+='{"name":"'+a[c].name+'"',b+=',"link":"'+a[c].link+'"}';b+="]";return b}},NextNextMS={SocialId:"MS",SessionObject:null,Session:null,InviteClaim:"",container:null,IsMySpaceDomain:function(){try{return top.location.href.indexOf("www.myspace.com")!=-1}catch(a){return!0}},Init:function(a,b,c){this.SessionObject=new ApplicationSession(b);this.InviteClaim=this.SessionObject.ApplicationName;this.Session=ApplicationScript.evalJsonObject(this.SessionObject.JsonSessionToken);
try{gadgets.rpc.setRelayUrl("..","http://profile.myspace.com/Modules/Applications/Pages/rpc_relay.aspx"),MyOpenSpace.MySpaceContainer.get().registerParam("panelId","apppanel_"+this.SessionObject.ApplicationId+"_canvas"),MyOpenSpace.MySpaceContainer.get().registerParam("localRelay",ApplicationScript.BaseUrl+"containers/ms/ifpc_relay_external002.html"),this.container=MyOpenSpace.MySpaceContainer.get(),c!=null&&c.size>-1&&this.container.adjustHeight(c.size)}catch(d){}},CpRequestPermission:null,CpMandatatoryPermission:null,
CpSuccessUrl:null,CpReason:null,CpProcessQueue:function(a){var b=!a?this.CpRequestPermission:this.CpMandatatoryPermission;if(b.length>0){var c=b[0];this.container.hasPermission(c)?(b.splice(0,1),NextNextMS.CpProcessQueue(a)):(a||b.splice(0,1),this.container.requestPermission(c,this.CpReason,function(){NextNextMS.CpProcessQueue(a)}))}else a?document.location.href=this.CpSuccessUrl:NextNextMS.CpProcessQueue(!0)},CheckPermission:function(a,b,c,d){this.CpRequestPermission=a;this.CpMandatatoryPermission=
b;this.CpSuccessUrl=c;this.CpReason=d;this.CpProcessQueue(!1)},StreamPublish:function(a,b,c){b=this.SessionObject.BaseUrl+"sharer/";var d=a.attachment.caption,h=a.attachment.description,g=a.attachment.href,k="";try{if(a.attachment.media[0].type=="image")k=a.attachment.media[0].src;else if(a.attachment.media[0].type=="flash")k=a.attachment.media[0].imgsrc}catch(n){}a="title="+encodeURIComponent(d)+"&description="+encodeURIComponent(h)+"&r="+encodeURIComponent(g)+"&img="+encodeURIComponent(k);b+="?"+
a;window.open("http://www.myspace.com/Modules/PostTo/Pages/?u="+encodeURIComponent(b),"ptm","height=450,width=550").focus();a={};a.post_id="1";c&&c(a)},MakeInvitation:function(a,b,c){c=ApplicationScript.evalJsonObject(c);if(c!=null&&c.length>0){var d="";for(i=0;i<c.length;i++)c[i].indexOf("/MS/")==0&&(d+=(d.length>0?",":"")+c[i].substr(4));a.indexOf("parent")==-1?NextNextMS.DoInvitation(d,b,this.SessionObject.UserLocalId,this.InviteClaim,function(){}):parent.NextNextMS.DoInvitation(d,b,this.SessionObject.UserLocalId,
this.InviteClaim,function(){})}},DoInvitation:function(a,b,c,d,h){var g=MyOpenSpace.MySpaceContainer.get(),k={};k[MyOpenSpace.NavigationParameters.Field.DESTINATION_TYPE]=MyOpenSpace.NavigationParameters.DestinationType.RECIPIENT_DESTINATION;k[MyOpenSpace.NavigationParameters.Field.PARAMETERS]=encodeURIComponent("nnFrom="+c);c=g.newNavigationParameters(k);k=function(a){try{for(var c=a.ResponseValues.success,d="",g=0;g<c.length;g++)d=d+"/MS/"+c[g]+",";c={};c.url=this.SessionObject.BaseUrl+"xml/WebService.ashx?action=invite.log&sk="+
b+"&ids="+d;$.ajax(c)}catch(k){}h&&h(a)};d=g.newMessage(d,{});var n=a;typeof a=="string"&&(n=a.split(","));n.length>0?g.requestShareApp(n,d,k,[c]):h&&h(null)}},NextNextWW={SocialId:"WW",SessionObject:null,Init:function(a,b){this.SessionObject=new ApplicationSession(b)},StreamPublish:function(a,b,c){c&&c(null)},MakeInvitation:function(){}};ApplicationScript.Init("http://social.we-sport.com/social/","WW","IT");ApplicationScript.ManagedSocials=["FB","TW","GM","MS","WW","LD"];
ApplicationScript.UseLocalLoginUrl=!1;

//     Underscore.js 1.1.6
//     (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
//     Underscore is freely distributable under the MIT license.
//     Portions of Underscore are inspired or borrowed from Prototype,
//     Oliver Steele's Functional, and John Resig's Micro-Templating.
//     For all details and documentation:
//     http://documentcloud.github.com/underscore
(function() {

    // Baseline setup
    // --------------
    // Establish the root object, `window` in the browser, or `global` on the server.
    var root = this;

    // Save the previous value of the `_` variable.
    var previousUnderscore = root._;

    // Establish the object that gets returned to break out of a loop iteration.
    var breaker = {};

    // Save bytes in the minified (but not gzipped) version:
    var ArrayProto = Array.prototype,
        ObjProto = Object.prototype,
        FuncProto = Function.prototype;

    // Create quick reference variables for speed access to core prototypes.
    var slice = ArrayProto.slice,
        unshift = ArrayProto.unshift,
        toString = ObjProto.toString,
        hasOwnProperty = ObjProto.hasOwnProperty;

    // All **ECMAScript 5** native function implementations that we hope to use
    // are declared here.
    var
    nativeForEach = ArrayProto.forEach,
        nativeMap = ArrayProto.map,
        nativeReduce = ArrayProto.reduce,
        nativeReduceRight = ArrayProto.reduceRight,
        nativeFilter = ArrayProto.filter,
        nativeEvery = ArrayProto.every,
        nativeSome = ArrayProto.some,
        nativeIndexOf = ArrayProto.indexOf,
        nativeLastIndexOf = ArrayProto.lastIndexOf,
        nativeIsArray = Array.isArray,
        nativeKeys = Object.keys,
        nativeBind = FuncProto.bind;

    // Create a safe reference to the Underscore object for use below.
    var _ = function(obj) {
        return new wrapper(obj);
    };

    // Export the Underscore object for **CommonJS**, with backwards-compatibility
    // for the old `require()` API. If we're not in CommonJS, add `_` to the
    // global object.
    if (typeof module !== 'undefined' && module.exports) {
        module.exports = _;
        _._ = _;
    } else {
        root._ = _;
    }

    // Current version.
    _.VERSION = '1.1.6';

    // Collection Functions
    // --------------------
    // The cornerstone, an `each` implementation, aka `forEach`.
    // Handles objects implementing `forEach`, arrays, and raw objects.
    // Delegates to **ECMAScript 5**'s native `forEach` if available.
    var each = _.each = _.forEach = function(obj, iterator, context) {
        if (obj == null) return;
        if (nativeForEach && obj.forEach === nativeForEach) {
            obj.forEach(iterator, context);
        } else if (_.isNumber(obj.length)) {
            for (var i = 0, l = obj.length; i < l; i++) {
                if (iterator.call(context, obj[i], i, obj) === breaker) return;
            }
        } else {
            for (var key in obj) {
                if (hasOwnProperty.call(obj, key)) {
                    if (iterator.call(context, obj[key], key, obj) === breaker) return;
                }
            }
        }
    };

    // Return the results of applying the iterator to each element.
    // Delegates to **ECMAScript 5**'s native `map` if available.
    _.map = function(obj, iterator, context) {
        var results = [];
        if (obj == null) return results;
        if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
        each(obj, function(value, index, list) {
            results[results.length] = iterator.call(context, value, index, list);
        });
        return results;
    };

    // **Reduce** builds up a single result from a list of values, aka `inject`,
    // or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available.
    _.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
        var initial = memo !== void 0;
        if (obj == null) obj = [];
        if (nativeReduce && obj.reduce === nativeReduce) {
            if (context) iterator = _.bind(iterator, context);
            return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
        }
        each(obj, function(value, index, list) {
            if (!initial && index === 0) {
                memo = value;
                initial = true;
            } else {
                memo = iterator.call(context, memo, value, index, list);
            }
        });
        if (!initial) throw new TypeError("Reduce of empty array with no initial value");
        return memo;
    };

    // The right-associative version of reduce, also known as `foldr`.
    // Delegates to **ECMAScript 5**'s native `reduceRight` if available.
    _.reduceRight = _.foldr = function(obj, iterator, memo, context) {
        if (obj == null) obj = [];
        if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {
            if (context) iterator = _.bind(iterator, context);
            return memo !== void 0 ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);
        }
        var reversed = (_.isArray(obj) ? obj.slice() : _.toArray(obj)).reverse();
        return _.reduce(reversed, iterator, memo, context);
    };

    // Return the first value which passes a truth test. Aliased as `detect`.
    _.find = _.detect = function(obj, iterator, context) {
        var result;
        any(obj, function(value, index, list) {
            if (iterator.call(context, value, index, list)) {
                result = value;
                return true;
            }
        });
        return result;
    };

    // Return all the elements that pass a truth test.
    // Delegates to **ECMAScript 5**'s native `filter` if available.
    // Aliased as `select`.
    _.filter = _.select = function(obj, iterator, context) {
        var results = [];
        if (obj == null) return results;
        if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);
        each(obj, function(value, index, list) {
            if (iterator.call(context, value, index, list)) results[results.length] = value;
        });
        return results;
    };

    // Return all the elements for which a truth test fails.
    _.reject = function(obj, iterator, context) {
        var results = [];
        if (obj == null) return results;
        each(obj, function(value, index, list) {
            if (!iterator.call(context, value, index, list)) results[results.length] = value;
        });
        return results;
    };

    // Determine whether all of the elements match a truth test.
    // Delegates to **ECMAScript 5**'s native `every` if available.
    // Aliased as `all`.
    _.every = _.all = function(obj, iterator, context) {
        var result = true;
        if (obj == null) return result;
        if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context);
        each(obj, function(value, index, list) {
            if (!(result = result && iterator.call(context, value, index, list))) return breaker;
        });
        return result;
    };

    // Determine if at least one element in the object matches a truth test.
    // Delegates to **ECMAScript 5**'s native `some` if available.
    // Aliased as `any`.
    var any = _.some = _.any = function(obj, iterator, context) {
        iterator || (iterator = _.identity);
        var result = false;
        if (obj == null) return result;
        if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
        each(obj, function(value, index, list) {
            if (result = iterator.call(context, value, index, list)) return breaker;
        });
        return result;
    };

    // Determine if a given value is included in the array or object using `===`.
    // Aliased as `contains`.
    _.include = _.contains = function(obj, target) {
        var found = false;
        if (obj == null) return found;
        if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;
        any(obj, function(value) {
            if (found = value === target) return true;
        });
        return found;
    };

    // Invoke a method (with arguments) on every item in a collection.
    _.invoke = function(obj, method) {
        var args = slice.call(arguments, 2);
        return _.map(obj, function(value) {
            return (method.call ? method || value : value[method]).apply(value, args);
        });
    };

    // Convenience version of a common use case of `map`: fetching a property.
    _.pluck = function(obj, key) {
        return _.map(obj, function(value) {
            return value[key];
        });
    };

    // Return the maximum element or (element-based computation).
    _.max = function(obj, iterator, context) {
        if (!iterator && _.isArray(obj)) return Math.max.apply(Math, obj);
        var result = {
            computed: -Infinity
        };
        each(obj, function(value, index, list) {
            var computed = iterator ? iterator.call(context, value, index, list) : value;
            computed >= result.computed && (result = {
                value: value,
                computed: computed
            });
        });
        return result.value;
    };

    // Return the minimum element (or element-based computation).
    _.min = function(obj, iterator, context) {
        if (!iterator && _.isArray(obj)) return Math.min.apply(Math, obj);
        var result = {
            computed: Infinity
        };
        each(obj, function(value, index, list) {
            var computed = iterator ? iterator.call(context, value, index, list) : value;
            computed < result.computed && (result = {
                value: value,
                computed: computed
            });
        });
        return result.value;
    };

    // Sort the object's values by a criterion produced by an iterator.
    _.sortBy = function(obj, iterator, context) {
        return _.pluck(_.map(obj, function(value, index, list) {
            return {
                value: value,
                criteria: iterator.call(context, value, index, list)
            };
        }).sort(function(left, right) {
            var a = left.criteria,
                b = right.criteria;
            return a < b ? -1 : a > b ? 1 : 0;
        }), 'value');
    };

    // Use a comparator function to figure out at what index an object should
    // be inserted so as to maintain order. Uses binary search.
    _.sortedIndex = function(array, obj, iterator) {
        iterator || (iterator = _.identity);
        var low = 0,
            high = array.length;
        while (low < high) {
            var mid = (low + high) >> 1;
            iterator(array[mid]) < iterator(obj) ? low = mid + 1 : high = mid;
        }
        return low;
    };

    // Safely convert anything iterable into a real, live array.
    _.toArray = function(iterable) {
        if (!iterable) return [];
        if (iterable.toArray) return iterable.toArray();
        if (_.isArray(iterable)) return iterable;
        if (_.isArguments(iterable)) return slice.call(iterable);
        return _.values(iterable);
    };

    // Return the number of elements in an object.
    _.size = function(obj) {
        return _.toArray(obj).length;
    };

    // Array Functions
    // ---------------
    // Get the first element of an array. Passing **n** will return the first N
    // values in the array. Aliased as `head`. The **guard** check allows it to work
    // with `_.map`.
    _.first = _.head = function(array, n, guard) {
        return (n != null) && !guard ? slice.call(array, 0, n) : array[0];
    };

    // Returns everything but the first entry of the array. Aliased as `tail`.
    // Especially useful on the arguments object. Passing an **index** will return
    // the rest of the values in the array from that index onward. The **guard**
    // check allows it to work with `_.map`.
    _.rest = _.tail = function(array, index, guard) {
        return slice.call(array, (index == null) || guard ? 1 : index);
    };

    // Get the last element of an array.
    _.last = function(array) {
        return array[array.length - 1];
    };

    // Trim out all falsy values from an array.
    _.compact = function(array) {
        return _.filter(array, function(value) {
            return !!value;
        });
    };

    // Return a completely flattened version of an array.
    _.flatten = function(array) {
        return _.reduce(array, function(memo, value) {
            if (_.isArray(value)) return memo.concat(_.flatten(value));
            memo[memo.length] = value;
            return memo;
        }, []);
    };

    // Return a version of the array that does not contain the specified value(s).
    _.without = function(array) {
        var values = slice.call(arguments, 1);
        return _.filter(array, function(value) {
            return !_.include(values, value);
        });
    };

    // Produce a duplicate-free version of the array. If the array has already
    // been sorted, you have the option of using a faster algorithm.
    // Aliased as `unique`.
    _.uniq = _.unique = function(array, isSorted) {
        return _.reduce(array, function(memo, el, i) {
            if (0 == i || (isSorted === true ? _.last(memo) != el : !_.include(memo, el))) memo[memo.length] = el;
            return memo;
        }, []);
    };

    // Produce an array that contains every item shared between all the
    // passed-in arrays.
    _.intersect = function(array) {
        var rest = slice.call(arguments, 1);
        return _.filter(_.uniq(array), function(item) {
            return _.every(rest, function(other) {
                return _.indexOf(other, item) >= 0;
            });
        });
    };

    // Zip together multiple lists into a single array -- elements that share
    // an index go together.
    _.zip = function() {
        var args = slice.call(arguments);
        var length = _.max(_.pluck(args, 'length'));
        var results = new Array(length);
        for (var i = 0; i < length; i++) results[i] = _.pluck(args, "" + i);
        return results;
    };

    // If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
    // we need this function. Return the position of the first occurrence of an
    // item in an array, or -1 if the item is not included in the array.
    // Delegates to **ECMAScript 5**'s native `indexOf` if available.
    // If the array is large and already in sort order, pass `true`
    // for **isSorted** to use binary search.
    _.indexOf = function(array, item, isSorted) {
        if (array == null) return -1;
        var i, l;
        if (isSorted) {
            i = _.sortedIndex(array, item);
            return array[i] === item ? i : -1;
        }
        if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
        for (i = 0, l = array.length; i < l; i++) if (array[i] === item) return i;
        return -1;
    };


    // Delegates to **ECMAScript 5**'s native `lastIndexOf` if available.
    _.lastIndexOf = function(array, item) {
        if (array == null) return -1;
        if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) return array.lastIndexOf(item);
        var i = array.length;
        while (i--) if (array[i] === item) return i;
        return -1;
    };

    // Generate an integer Array containing an arithmetic progression. A port of
    // the native Python `range()` function. See
    // [the Python documentation](http://docs.python.org/library/functions.html#range).
    _.range = function(start, stop, step) {
        if (arguments.length <= 1) {
            stop = start || 0;
            start = 0;
        }
        step = arguments[2] || 1;

        var len = Math.max(Math.ceil((stop - start) / step), 0);
        var idx = 0;
        var range = new Array(len);

        while (idx < len) {
            range[idx++] = start;
            start += step;
        }

        return range;
    };

    // Function (ahem) Functions
    // ------------------
    // Create a function bound to a given object (assigning `this`, and arguments,
    // optionally). Binding with arguments is also known as `curry`.
    // Delegates to **ECMAScript 5**'s native `Function.bind` if available.
    // We check for `func.bind` first, to fail fast when `func` is undefined.
    _.bind = function(func, obj) {
        if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
        var args = slice.call(arguments, 2);
        return function() {
            return func.apply(obj, args.concat(slice.call(arguments)));
        };
    };

    // Bind all of an object's methods to that object. Useful for ensuring that
    // all callbacks defined on an object belong to it.
    _.bindAll = function(obj) {
        var funcs = slice.call(arguments, 1);
        if (funcs.length == 0) funcs = _.functions(obj);
        each(funcs, function(f) {
            obj[f] = _.bind(obj[f], obj);
        });
        return obj;
    };

    // Memoize an expensive function by storing its results.
    _.memoize = function(func, hasher) {
        var memo = {};
        hasher || (hasher = _.identity);
        return function() {
            var key = hasher.apply(this, arguments);
            return hasOwnProperty.call(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
        };
    };

    // Delays a function for the given number of milliseconds, and then calls
    // it with the arguments supplied.
    _.delay = function(func, wait) {
        var args = slice.call(arguments, 2);
        return setTimeout(function() {
            return func.apply(func, args);
        }, wait);
    };

    // Defers a function, scheduling it to run after the current call stack has
    // cleared.
    _.defer = function(func) {
        return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
    };

    // Internal function used to implement `_.throttle` and `_.debounce`.
    var limit = function(func, wait, debounce) {
        var timeout;
        return function() {
            var context = this,
                args = arguments;
            var throttler = function() {
                timeout = null;
                func.apply(context, args);
            };
            if (debounce) clearTimeout(timeout);
            if (debounce || !timeout) timeout = setTimeout(throttler, wait);
        };
    };

    // Returns a function, that, when invoked, will only be triggered at most once
    // during a given window of time.
    _.throttle = function(func, wait) {
        return limit(func, wait, false);
    };

    // Returns a function, that, as long as it continues to be invoked, will not
    // be triggered. The function will be called after it stops being called for
    // N milliseconds.
    _.debounce = function(func, wait) {
        return limit(func, wait, true);
    };

    // Returns a function that will be executed at most one time, no matter how
    // often you call it. Useful for lazy initialization.
    _.once = function(func) {
        var ran = false,
            memo;
        return function() {
            if (ran) return memo;
            ran = true;
            return memo = func.apply(this, arguments);
        };
    };

    // Returns the first function passed as an argument to the second,
    // allowing you to adjust arguments, run code before and after, and
    // conditionally execute the original function.
    _.wrap = function(func, wrapper) {
        return function() {
            var args = [func].concat(slice.call(arguments));
            return wrapper.apply(this, args);
        };
    };

    // Returns a function that is the composition of a list of functions, each
    // consuming the return value of the function that follows.
    _.compose = function() {
        var funcs = slice.call(arguments);
        return function() {
            var args = slice.call(arguments);
            for (var i = funcs.length - 1; i >= 0; i--) {
                args = [funcs[i].apply(this, args)];
            }
            return args[0];
        };
    };

    // Returns a function that will only be executed after being called N times.
    _.after = function(times, func) {
        return function() {
            if (--times < 1) {
                return func.apply(this, arguments);
            }
        };
    };


    // Object Functions
    // ----------------
    // Retrieve the names of an object's properties.
    // Delegates to **ECMAScript 5**'s native `Object.keys`
    _.keys = nativeKeys ||
    function(obj) {
        if (obj !== Object(obj)) throw new TypeError('Invalid object');
        var keys = [];
        for (var key in obj) if (hasOwnProperty.call(obj, key)) keys[keys.length] = key;
        return keys;
    };

    // Retrieve the values of an object's properties.
    _.values = function(obj) {
        return _.map(obj, _.identity);
    };

    // Return a sorted list of the function names available on the object.
    // Aliased as `methods`
    _.functions = _.methods = function(obj) {
        return _.filter(_.keys(obj), function(key) {
            return _.isFunction(obj[key]);
        }).sort();
    };

    // Extend a given object with all the properties in passed-in object(s).
    _.extend = function(obj) {
        each(slice.call(arguments, 1), function(source) {
            for (var prop in source) {
                if (source[prop] !== void 0) obj[prop] = source[prop];
            }
        });
        return obj;
    };

    // Fill in a given object with default properties.
    _.defaults = function(obj) {
        each(slice.call(arguments, 1), function(source) {
            for (var prop in source) {
                if (obj[prop] == null) obj[prop] = source[prop];
            }
        });
        return obj;
    };

    // Create a (shallow-cloned) duplicate of an object.
    _.clone = function(obj) {
        return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
    };

    // Invokes interceptor with the obj, and then returns obj.
    // The primary purpose of this method is to "tap into" a method chain, in
    // order to perform operations on intermediate results within the chain.
    _.tap = function(obj, interceptor) {
        interceptor(obj);
        return obj;
    };

    // Perform a deep comparison to check if two objects are equal.
    _.isEqual = function(a, b) {
        // Check object identity.
        if (a === b) return true;
        // Different types?
        var atype = typeof(a),
            btype = typeof(b);
        if (atype != btype) return false;
        // Basic equality test (watch out for coercions).
        if (a == b) return true;
        // One is falsy and the other truthy.
        if ((!a && b) || (a && !b)) return false;
        // Unwrap any wrapped objects.
        if (a._chain) a = a._wrapped;
        if (b._chain) b = b._wrapped;
        // One of them implements an isEqual()?
        if (a.isEqual) return a.isEqual(b);
        // Check dates' integer values.
        if (_.isDate(a) && _.isDate(b)) return a.getTime() === b.getTime();
        // Both are NaN?
        if (_.isNaN(a) && _.isNaN(b)) return false;
        // Compare regular expressions.
        if (_.isRegExp(a) && _.isRegExp(b)) return a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline;
        // If a is not an object by this point, we can't handle it.
        if (atype !== 'object') return false;
        // Check for different array lengths before comparing contents.
        if (a.length && (a.length !== b.length)) return false;
        // Nothing else worked, deep compare the contents.
        var aKeys = _.keys(a),
            bKeys = _.keys(b);
        // Different object sizes?
        if (aKeys.length != bKeys.length) return false;
        // Recursive comparison of contents.
        for (var key in a) if (!(key in b) || !_.isEqual(a[key], b[key])) return false;
        return true;
    };

    // Is a given array or object empty?
    _.isEmpty = function(obj) {
        if (_.isArray(obj) || _.isString(obj)) return obj.length === 0;
        for (var key in obj) if (hasOwnProperty.call(obj, key)) return false;
        return true;
    };

    // Is a given value a DOM element?
    _.isElement = function(obj) {
        return !!(obj && obj.nodeType == 1);
    };

    // Is a given value an array?
    // Delegates to ECMA5's native Array.isArray
    _.isArray = nativeIsArray ||
    function(obj) {
        return toString.call(obj) === '[object Array]';
    };

    // Is a given variable an arguments object?
    _.isArguments = function(obj) {
        return !!(obj && hasOwnProperty.call(obj, 'callee'));
    };

    // Is a given value a function?
    _.isFunction = function(obj) {
        return !!(obj && obj.constructor && obj.call && obj.apply);
    };

    // Is a given value a string?
    _.isString = function(obj) {
        return !!(obj === '' || (obj && obj.charCodeAt && obj.substr));
    };

    // Is a given value a number?
    _.isNumber = function(obj) {
        return !!(obj === 0 || (obj && obj.toExponential && obj.toFixed));
    };

    // Is the given value `NaN`? `NaN` happens to be the only value in JavaScript
    // that does not equal itself.
    _.isNaN = function(obj) {
        return obj !== obj;
    };

    // Is a given value a boolean?
    _.isBoolean = function(obj) {
        return obj === true || obj === false;
    };

    // Is a given value a date?
    _.isDate = function(obj) {
        return !!(obj && obj.getTimezoneOffset && obj.setUTCFullYear);
    };

    // Is the given value a regular expression?
    _.isRegExp = function(obj) {
        return !!(obj && obj.test && obj.exec && (obj.ignoreCase || obj.ignoreCase === false));
    };

    // Is a given value equal to null?
    _.isNull = function(obj) {
        return obj === null;
    };

    // Is a given variable undefined?
    _.isUndefined = function(obj) {
        return obj === void 0;
    };

    // Utility Functions
    // -----------------
    // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
    // previous owner. Returns a reference to the Underscore object.
    _.noConflict = function() {
        root._ = previousUnderscore;
        return this;
    };

    // Keep the identity function around for default iterators.
    _.identity = function(value) {
        return value;
    };

    // Run a function **n** times.
    _.times = function(n, iterator, context) {
        for (var i = 0; i < n; i++) iterator.call(context, i);
    };

    // Add your own custom functions to the Underscore object, ensuring that
    // they're correctly added to the OOP wrapper as well.
    _.mixin = function(obj) {
        each(_.functions(obj), function(name) {
            addToWrapper(name, _[name] = obj[name]);
        });
    };

    // Generate a unique integer id (unique within the entire client session).
    // Useful for temporary DOM ids.
    var idCounter = 0;
    _.uniqueId = function(prefix) {
        var id = idCounter++;
        return prefix ? prefix + id : id;
    };

    // By default, Underscore uses ERB-style template delimiters, change the
    // following template settings to use alternative delimiters.
    _.templateSettings = {
        evaluate: /<%([\s\S]+?)%>/g,
        interpolate: /<%=([\s\S]+?)%>/g
    };

    // JavaScript micro-templating, similar to John Resig's implementation.
    // Underscore templating handles arbitrary delimiters, preserves whitespace,
    // and correctly escapes quotes within interpolated code.
    _.template = function(str, data) {
        var c = _.templateSettings;
        var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' + 'with(obj||{}){__p.push(\'' + str.replace(/\\/g, '\\\\').replace(/'/g, "\\'").replace(c.interpolate, function(match, code) {
            return "'," + code.replace(/\\'/g, "'") + ",'";
        }).replace(c.evaluate || null, function(match, code) {
            return "');" + code.replace(/\\'/g, "'").replace(/[\r\n\t]/g, ' ') + "__p.push('";
        }).replace(/\r/g, '\\r').replace(/\n/g, '\\n').replace(/\t/g, '\\t') + "');}return __p.join('');";
        var func = new Function('obj', tmpl);
        return data ? func(data) : func;
    };

    // The OOP Wrapper
    // ---------------
    // If Underscore is called as a function, it returns a wrapped object that
    // can be used OO-style. This wrapper holds altered versions of all the
    // underscore functions. Wrapped objects may be chained.
    var wrapper = function(obj) {
        this._wrapped = obj;
    };

    // Expose `wrapper.prototype` as `_.prototype`
    _.prototype = wrapper.prototype;

    // Helper function to continue chaining intermediate results.
    var result = function(obj, chain) {
        return chain ? _(obj).chain() : obj;
    };

    // A method to easily add functions to the OOP wrapper.
    var addToWrapper = function(name, func) {
        wrapper.prototype[name] = function() {
            var args = slice.call(arguments);
            unshift.call(args, this._wrapped);
            return result(func.apply(_, args), this._chain);
        };
    };

    // Add all of the Underscore functions to the wrapper object.
    _.mixin(_);

    // Add all mutator Array functions to the wrapper.
    each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
        var method = ArrayProto[name];
        wrapper.prototype[name] = function() {
            method.apply(this._wrapped, arguments);
            return result(this._wrapped, this._chain);
        };
    });

    // Add all accessor Array functions to the wrapper.
    each(['concat', 'join', 'slice'], function(name) {
        var method = ArrayProto[name];
        wrapper.prototype[name] = function() {
            return result(method.apply(this._wrapped, arguments), this._chain);
        };
    });

    // Start chaining a wrapped Underscore object.
    wrapper.prototype.chain = function() {
        this._chain = true;
        return this;
    };

    // Extracts the result from a wrapped and chained object.
    wrapper.prototype.value = function() {
        return this._wrapped;
    };

})();
//     Backbone.js 0.5.3
//     (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
//     Backbone may be freely distributed under the MIT license.
//     For all details and documentation:
//     http://documentcloud.github.com/backbone

(function(){

  // Initial Setup
  // -------------

  // Save a reference to the global object.
  var root = this;

  // Save the previous value of the `Backbone` variable.
  var previousBackbone = root.Backbone;

  // The top-level namespace. All public Backbone classes and modules will
  // be attached to this. Exported for both CommonJS and the browser.
  var Backbone;
  if (typeof exports !== 'undefined') {
    Backbone = exports;
  } else {
    Backbone = root.Backbone = {};
  }

  // Current version of the library. Keep in sync with `package.json`.
  Backbone.VERSION = '0.5.3';

  // Require Underscore, if we're on the server, and it's not already present.
  var _ = root._;
  if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._;

  // For Backbone's purposes, jQuery or Zepto owns the `$` variable.
  var $ = root.jQuery || root.Zepto;

  // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
  // to its previous owner. Returns a reference to this Backbone object.
  Backbone.noConflict = function() {
    root.Backbone = previousBackbone;
    return this;
  };

  // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option will
  // fake `"PUT"` and `"DELETE"` requests via the `_method` parameter and set a
  // `X-Http-Method-Override` header.
  Backbone.emulateHTTP = false;

  // Turn on `emulateJSON` to support legacy servers that can't deal with direct
  // `application/json` requests ... will encode the body as
  // `application/x-www-form-urlencoded` instead and will send the model in a
  // form param named `model`.
  Backbone.emulateJSON = false;

  // Backbone.Events
  // -----------------

  // A module that can be mixed in to *any object* in order to provide it with
  // custom events. You may `bind` or `unbind` a callback function to an event;
  // `trigger`-ing an event fires all callbacks in succession.
  //
  //     var object = {};
  //     _.extend(object, Backbone.Events);
  //     object.bind('expand', function(){ alert('expanded'); });
  //     object.trigger('expand');
  //
  Backbone.Events = {

    // Bind an event, specified by a string name, `ev`, to a `callback` function.
    // Passing `"all"` will bind the callback to all events fired.
    bind : function(ev, callback, context) {
      var calls = this._callbacks || (this._callbacks = {});
      var list  = calls[ev] || (calls[ev] = []);
      list.push([callback, context]);
      return this;
    },

    // Remove one or many callbacks. If `callback` is null, removes all
    // callbacks for the event. If `ev` is null, removes all bound callbacks
    // for all events.
    unbind : function(ev, callback) {
      var calls;
      if (!ev) {
        this._callbacks = {};
      } else if (calls = this._callbacks) {
        if (!callback) {
          calls[ev] = [];
        } else {
          var list = calls[ev];
          if (!list) return this;
          for (var i = 0, l = list.length; i < l; i++) {
            if (list[i] && callback === list[i][0]) {
              list[i] = null;
              break;
            }
          }
        }
      }
      return this;
    },

    // Trigger an event, firing all bound callbacks. Callbacks are passed the
    // same arguments as `trigger` is, apart from the event name.
    // Listening for `"all"` passes the true event name as the first argument.
    trigger : function(eventName) {
      var list, calls, ev, callback, args;
      var both = 2;
      if (!(calls = this._callbacks)) return this;
      while (both--) {
        ev = both ? eventName : 'all';
        if (list = calls[ev]) {
          for (var i = 0, l = list.length; i < l; i++) {
            if (!(callback = list[i])) {
              list.splice(i, 1); i--; l--;
            } else {
              args = both ? Array.prototype.slice.call(arguments, 1) : arguments;
              callback[0].apply(callback[1] || this, args);
            }
          }
        }
      }
      return this;
    }

  };

  // Backbone.Model
  // --------------

  // Create a new model, with defined attributes. A client id (`cid`)
  // is automatically generated and assigned for you.
  Backbone.Model = function(attributes, options) {
    var defaults;
    attributes || (attributes = {});
    if (defaults = this.defaults) {
      if (_.isFunction(defaults)) defaults = defaults.call(this);
      attributes = _.extend({}, defaults, attributes);
    }
    this.attributes = {};
    this._escapedAttributes = {};
    this.cid = _.uniqueId('c');
    this.set(attributes, {silent : true});
    this._changed = false;
    this._previousAttributes = _.clone(this.attributes);
    if (options && options.collection) this.collection = options.collection;
    this.initialize(attributes, options);
  };

  // Attach all inheritable methods to the Model prototype.
  _.extend(Backbone.Model.prototype, Backbone.Events, {

    // A snapshot of the model's previous attributes, taken immediately
    // after the last `"change"` event was fired.
    _previousAttributes : null,

    // Has the item been changed since the last `"change"` event?
    _changed : false,

    // The default name for the JSON `id` attribute is `"id"`. MongoDB and
    // CouchDB users may want to set this to `"_id"`.
    idAttribute : 'id',

    // Initialize is an empty function by default. Override it with your own
    // initialization logic.
    initialize : function(){},

    // Return a copy of the model's `attributes` object.
    toJSON : function() {
      return _.clone(this.attributes);
    },

    // Get the value of an attribute.
    get : function(attr) {
      return this.attributes[attr];
    },

    // Get the HTML-escaped value of an attribute.
    escape : function(attr) {
      var html;
      if (html = this._escapedAttributes[attr]) return html;
      var val = this.attributes[attr];
      return this._escapedAttributes[attr] = escapeHTML(val == null ? '' : '' + val);
    },

    // Returns `true` if the attribute contains a value that is not null
    // or undefined.
    has : function(attr) {
      return this.attributes[attr] != null;
    },

    // Set a hash of model attributes on the object, firing `"change"` unless you
    // choose to silence it.
    set : function(attrs, options) {

      // Extract attributes and options.
      options || (options = {});
      if (!attrs) return this;
      if (attrs.attributes) attrs = attrs.attributes;
      var now = this.attributes, escaped = this._escapedAttributes;
      
      temp_attrs = _.extend({}, this.attributes, attrs);

      // Run validation.
      if (!options.silent && this.validate && !this._performValidation(temp_attrs, options)) return false;

      // Check for changes of `id`.
      if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];

      // We're about to start triggering change events.
      var alreadyChanging = this._changing;
      this._changing = true;

      // Update attributes.
      for (var attr in attrs) {
        var val = attrs[attr];
        if (!_.isEqual(now[attr], val)) {
          now[attr] = val;
          delete escaped[attr];
          this._changed = true;
          if (!options.silent) this.trigger('change:' + attr, this, val, options);
        }
      }

      // Fire the `"change"` event, if the model has been changed.
      if (!alreadyChanging && !options.silent && this._changed) this.change(options);
      this._changing = false;
      return this;
    },

    // Remove an attribute from the model, firing `"change"` unless you choose
    // to silence it. `unset` is a noop if the attribute doesn't exist.
    unset : function(attr, options) {
      if (!(attr in this.attributes)) return this;
      options || (options = {});
      var value = this.attributes[attr];

      // Run validation.
      var validObj = {};
      validObj[attr] = void 0;
      if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;

      // Remove the attribute.
      delete this.attributes[attr];
      delete this._escapedAttributes[attr];
      if (attr == this.idAttribute) delete this.id;
      this._changed = true;
      if (!options.silent) {
        this.trigger('change:' + attr, this, void 0, options);
        this.change(options);
      }
      return this;
    },

    // Clear all attributes on the model, firing `"change"` unless you choose
    // to silence it.
    clear : function(options) {
      options || (options = {});
      var attr;
      var old = this.attributes;

      // Run validation.
      var validObj = {};
      for (attr in old) validObj[attr] = void 0;
      if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;

      this.attributes = {};
      this._escapedAttributes = {};
      this._changed = true;
      if (!options.silent) {
        for (attr in old) {
          this.trigger('change:' + attr, this, void 0, options);
        }
        this.change(options);
      }
      return this;
    },

    // Fetch the model from the server. If the server's representation of the
    // model differs from its current attributes, they will be overriden,
    // triggering a `"change"` event.
    fetch : function(options) {
      options || (options = {});
      var model = this;
      var success = options.success;
      options.success = function(resp, status, xhr) {
        if (!model.set(model.parse(resp, xhr), options)) return false;
        if (success) success(model, resp);
      };
      options.error = wrapError(options.error, model, options);
      return (this.sync || Backbone.sync).call(this, 'read', this, options);
    },

    // Set a hash of model attributes, and sync the model to the server.
    // If the server returns an attributes hash that differs, the model's
    // state will be `set` again.
    save : function(attrs, options) {
      options || (options = {});
      if (attrs && !this.set(attrs, options)) return false;
      var model = this;
      var success = options.success;
      options.success = function(resp, status, xhr) {
        if (!model.set(model.parse(resp, xhr), options)) return false;
        if (success) success(model, resp, xhr);
      };
      options.error = wrapError(options.error, model, options);
      var method = this.isNew() ? 'create' : 'update';
      return (this.sync || Backbone.sync).call(this, method, this, options);
    },

    // Destroy this model on the server if it was already persisted. Upon success, the model is removed
    // from its collection, if it has one.
    destroy : function(options) {
      options || (options = {});
      if (this.isNew()) return this.trigger('destroy', this, this.collection, options);
      var model = this;
      var success = options.success;
      options.success = function(resp) {
        model.trigger('destroy', model, model.collection, options);
        if (success) success(model, resp);
      };
      options.error = wrapError(options.error, model, options);
      return (this.sync || Backbone.sync).call(this, 'delete', this, options);
    },

    // Default URL for the model's representation on the server -- if you're
    // using Backbone's restful methods, override this to change the endpoint
    // that will be called.
    url : function() {
      var base = getUrl(this.collection) || this.urlRoot || urlError();
      if (this.isNew()) return base;
      return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + encodeURIComponent(this.id);
    },

    // **parse** converts a response into the hash of attributes to be `set` on
    // the model. The default implementation is just to pass the response along.
    parse : function(resp, xhr) {
      return resp;
    },

    // Create a new model with identical attributes to this one.
    clone : function() {
      return new this.constructor(this);
    },

    // A model is new if it has never been saved to the server, and lacks an id.
    isNew : function() {
      return this.id == null;
    },

    // Call this method to manually fire a `change` event for this model.
    // Calling this will cause all objects observing the model to update.
    change : function(options) {
      this.trigger('change', this, options);
      this._previousAttributes = _.clone(this.attributes);
      this._changed = false;
    },

    // Determine if the model has changed since the last `"change"` event.
    // If you specify an attribute name, determine if that attribute has changed.
    hasChanged : function(attr) {
      if (attr) return this._previousAttributes[attr] != this.attributes[attr];
      return this._changed;
    },

    // Return an object containing all the attributes that have changed, or false
    // if there are no changed attributes. Useful for determining what parts of a
    // view need to be updated and/or what attributes need to be persisted to
    // the server.
    changedAttributes : function(now) {
      now || (now = this.attributes);
      var old = this._previousAttributes;
      var changed = false;
      for (var attr in now) {
        if (!_.isEqual(old[attr], now[attr])) {
          changed = changed || {};
          changed[attr] = now[attr];
        }
      }
      return changed;
    },

    // Get the previous value of an attribute, recorded at the time the last
    // `"change"` event was fired.
    previous : function(attr) {
      if (!attr || !this._previousAttributes) return null;
      return this._previousAttributes[attr];
    },

    // Get all of the attributes of the model at the time of the previous
    // `"change"` event.
    previousAttributes : function() {
      return _.clone(this._previousAttributes);
    },

    // Run validation against a set of incoming attributes, returning `true`
    // if all is well. If a specific `error` callback has been passed,
    // call that instead of firing the general `"error"` event.
    _performValidation : function(attrs, options) {
      var error = this.validate(attrs);
      if (error) {
        if (options.error) {
          options.error(this, error, options);
        } else {
          this.trigger('error', this, error, options);
        }
        return false;
      }
      return true;
    }

  });

  // Backbone.Collection
  // -------------------

  // Provides a standard collection class for our sets of models, ordered
  // or unordered. If a `comparator` is specified, the Collection will maintain
  // its models in sort order, as they're added and removed.
  Backbone.Collection = function(models, options) {
    options || (options = {});
    if (options.comparator) this.comparator = options.comparator;
    _.bindAll(this, '_onModelEvent', '_removeReference');
    this._reset();
    if (models) this.reset(models, {silent: true});
    this.initialize.apply(this, arguments);
  };

  // Define the Collection's inheritable methods.
  _.extend(Backbone.Collection.prototype, Backbone.Events, {

    // The default model for a collection is just a **Backbone.Model**.
    // This should be overridden in most cases.
    model : Backbone.Model,

    // Initialize is an empty function by default. Override it with your own
    // initialization logic.
    initialize : function(){},

    // The JSON representation of a Collection is an array of the
    // models' attributes.
    toJSON : function() {
      return this.map(function(model){ return model.toJSON(); });
    },

    // Add a model, or list of models to the set. Pass **silent** to avoid
    // firing the `added` event for every new model.
    add : function(models, options) {
      if (_.isArray(models)) {
        for (var i = 0, l = models.length; i < l; i++) {
          this._add(models[i], options);
        }
      } else {
        this._add(models, options);
      }
      return this;
    },

    // Remove a model, or a list of models from the set. Pass silent to avoid
    // firing the `removed` event for every model removed.
    remove : function(models, options) {
      if (_.isArray(models)) {
        for (var i = 0, l = models.length; i < l; i++) {
          this._remove(models[i], options);
        }
      } else {
        this._remove(models, options);
      }
      return this;
    },

    // Get a model from the set by id.
    get : function(id) {
      if (id == null) return null;
      return this._byId[id.id != null ? id.id : id];
    },

    // Get a model from the set by client id.
    getByCid : function(cid) {
      return cid && this._byCid[cid.cid || cid];
    },

    // Get the model at the given index.
    at: function(index) {
      return this.models[index];
    },

    // Force the collection to re-sort itself. You don't need to call this under normal
    // circumstances, as the set will maintain sort order as each item is added.
    sort : function(options) {
      options || (options = {});
      if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
      this.models = this.sortBy(this.comparator);
      if (!options.silent) this.trigger('reset', this, options);
      return this;
    },

    // Pluck an attribute from each model in the collection.
    pluck : function(attr) {
      return _.map(this.models, function(model){ return model.get(attr); });
    },

    // When you have more items than you want to add or remove individually,
    // you can reset the entire set with a new list of models, without firing
    // any `added` or `removed` events. Fires `reset` when finished.
    reset : function(models, options) {
      models  || (models = []);
      options || (options = {});
      this.each(this._removeReference);
      this._reset();
      this.add(models, {silent: true});
      if (!options.silent) this.trigger('reset', this, options);
      return this;
    },

    // Fetch the default set of models for this collection, resetting the
    // collection when they arrive. If `add: true` is passed, appends the
    // models to the collection instead of resetting.
    fetch : function(options) {
      options || (options = {});
      var collection = this;
      var success = options.success;
      options.success = function(resp, status, xhr) {
        collection[options.add ? 'add' : 'reset'](collection.parse(resp, xhr), options);
        if (success) success(collection, resp);
      };
      options.error = wrapError(options.error, collection, options);
      return (this.sync || Backbone.sync).call(this, 'read', this, options);
    },

    // Create a new instance of a model in this collection. After the model
    // has been created on the server, it will be added to the collection.
    // Returns the model, or 'false' if validation on a new model fails.
    create : function(model, options) {
      var coll = this;
      options || (options = {});
      model = this._prepareModel(model, options);
      if (!model) return false;
      var success = options.success;
      options.success = function(nextModel, resp, xhr) {
        coll.add(nextModel, options);
        if (success) success(nextModel, resp, xhr);
      };
      model.save(null, options);
      return model;
    },

    // **parse** converts a response into a list of models to be added to the
    // collection. The default implementation is just to pass it through.
    parse : function(resp, xhr) {
      return resp;
    },

    // Proxy to _'s chain. Can't be proxied the same way the rest of the
    // underscore methods are proxied because it relies on the underscore
    // constructor.
    chain: function () {
      return _(this.models).chain();
    },

    // Reset all internal state. Called when the collection is reset.
    _reset : function(options) {
      this.length = 0;
      this.models = [];
      this._byId  = {};
      this._byCid = {};
    },

    // Prepare a model to be added to this collection
    _prepareModel: function(model, options) {
      if (!(model instanceof Backbone.Model)) {
        var attrs = model;
        model = new this.model(attrs, {collection: this});
        if (model.validate && !model._performValidation(attrs, options)) model = false;
      } else if (!model.collection) {
        model.collection = this;
      }
      return model;
    },

    // Internal implementation of adding a single model to the set, updating
    // hash indexes for `id` and `cid` lookups.
    // Returns the model, or 'false' if validation on a new model fails.
    _add : function(model, options) {
      options || (options = {});
      model = this._prepareModel(model, options);
      if (!model) return false;
      var already = this.getByCid(model);
      if (already) throw new Error(["Can't add the same model to a set twice", already.id]);
      this._byId[model.id] = model;
      this._byCid[model.cid] = model;
      var index = options.at != null ? options.at :
                  this.comparator ? this.sortedIndex(model, this.comparator) :
                  this.length;
      this.models.splice(index, 0, model);
      model.bind('all', this._onModelEvent);
      this.length++;
      if (!options.silent) model.trigger('add', model, this, options);
      return model;
    },

    // Internal implementation of removing a single model from the set, updating
    // hash indexes for `id` and `cid` lookups.
    _remove : function(model, options) {
      options || (options = {});
      model = this.getByCid(model) || this.get(model);
      if (!model) return null;
      delete this._byId[model.id];
      delete this._byCid[model.cid];
      this.models.splice(this.indexOf(model), 1);
      this.length--;
      if (!options.silent) model.trigger('remove', model, this, options);
      this._removeReference(model);
      return model;
    },

    // Internal method to remove a model's ties to a collection.
    _removeReference : function(model) {
      if (this == model.collection) {
        delete model.collection;
      }
      model.unbind('all', this._onModelEvent);
    },

    // Internal method called every time a model in the set fires an event.
    // Sets need to update their indexes when models change ids. All other
    // events simply proxy through. "add" and "remove" events that originate
    // in other collections are ignored.
    _onModelEvent : function(ev, model, collection, options) {
      if ((ev == 'add' || ev == 'remove') && collection != this) return;
      if (ev == 'destroy') {
        this._remove(model, options);
      }
      if (model && ev === 'change:' + model.idAttribute) {
        delete this._byId[model.previous(model.idAttribute)];
        this._byId[model.id] = model;
      }
      this.trigger.apply(this, arguments);
    }

  });

  // Underscore methods that we want to implement on the Collection.
  var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find', 'detect',
    'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include',
    'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
    'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty', 'groupBy'];

  // Mix in each Underscore method as a proxy to `Collection#models`.
  _.each(methods, function(method) {
    Backbone.Collection.prototype[method] = function() {
      return _[method].apply(_, [this.models].concat(_.toArray(arguments)));
    };
  });

  // Backbone.Router
  // -------------------

  // Routers map faux-URLs to actions, and fire events when routes are
  // matched. Creating a new one sets its `routes` hash, if not set statically.
  Backbone.Router = function(options) {
    options || (options = {});
    if (options.routes) this.routes = options.routes;
    this._bindRoutes();
    this.initialize.apply(this, arguments);
  };

  // Cached regular expressions for matching named param parts and splatted
  // parts of route strings.
  var namedParam    = /:([\w\d]+)/g;
  var splatParam    = /\*([\w\d]+)/g;
  var escapeRegExp  = /[-[\]{}()+?.,\\^$|#\s]/g;

  // Set up all inheritable **Backbone.Router** properties and methods.
  _.extend(Backbone.Router.prototype, Backbone.Events, {

    // Initialize is an empty function by default. Override it with your own
    // initialization logic.
    initialize : function(){},

    // Manually bind a single named route to a callback. For example:
    //
    //     this.route('search/:query/p:num', 'search', function(query, num) {
    //       ...
    //     });
    //
    route : function(route, name, callback) {
      Backbone.history || (Backbone.history = new Backbone.History);
      if (!_.isRegExp(route)) route = this._routeToRegExp(route);
      Backbone.history.route(route, _.bind(function(fragment) {
        var args = this._extractParameters(route, fragment);
        callback.apply(this, args);
        this.trigger.apply(this, ['route:' + name].concat(args));
      }, this));
    },

    // Simple proxy to `Backbone.history` to save a fragment into the history.
    navigate : function(fragment, triggerRoute) {
      Backbone.history.navigate(fragment, triggerRoute);
    },

    // Bind all defined routes to `Backbone.history`. We have to reverse the
    // order of the routes here to support behavior where the most general
    // routes can be defined at the bottom of the route map.
    _bindRoutes : function() {
      if (!this.routes) return;
      var routes = [];
      for (var route in this.routes) {
        routes.unshift([route, this.routes[route]]);
      }
      for (var i = 0, l = routes.length; i < l; i++) {
        this.route(routes[i][0], routes[i][1], this[routes[i][1]]);
      }
    },

    // Convert a route string into a regular expression, suitable for matching
    // against the current location hash.
    _routeToRegExp : function(route) {
      route = route.replace(escapeRegExp, "\\$&")
                   .replace(namedParam, "([^\/]*)")
                   .replace(splatParam, "(.*?)");
      return new RegExp('^' + route + '$');
    },

    // Given a route, and a URL fragment that it matches, return the array of
    // extracted parameters.
    _extractParameters : function(route, fragment) {
      return route.exec(fragment).slice(1);
    }

  });

  // Backbone.History
  // ----------------

  // Handles cross-browser history management, based on URL fragments. If the
  // browser does not support `onhashchange`, falls back to polling.
  Backbone.History = function() {
    this.handlers = [];
    _.bindAll(this, 'checkUrl');
  };

  // Cached regex for cleaning hashes.
  var hashStrip = /^#*/;

  // Cached regex for detecting MSIE.
  var isExplorer = /msie [\w.]+/;

  // Has the history handling already been started?
  var historyStarted = false;

  // Set up all inheritable **Backbone.History** properties and methods.
  _.extend(Backbone.History.prototype, {

    // The default interval to poll for hash changes, if necessary, is
    // twenty times a second.
    interval: 50,

    // Get the cross-browser normalized URL fragment, either from the URL,
    // the hash, or the override.
    getFragment : function(fragment, forcePushState) {
      if (fragment == null) {
        if (this._hasPushState || forcePushState) {
          fragment = window.location.pathname;
          var search = window.location.search;
          if (search) fragment += search;
          if (fragment.indexOf(this.options.root) == 0) fragment = fragment.substr(this.options.root.length);
        } else {
          fragment = window.location.hash;
        }
      }
      return decodeURIComponent(fragment.replace(hashStrip, ''));
    },

    // Start the hash change handling, returning `true` if the current URL matches
    // an existing route, and `false` otherwise.
    /*start : function(options) {

      // Figure out the initial configuration. Do we need an iframe?
      // Is pushState desired ... is it available?
      if (historyStarted) throw new Error("Backbone.history has already been started");
      this.options          = _.extend({}, {root: '/'}, this.options, options);
      this._wantsPushState  = !!this.options.pushState;
      this._hasPushState    = !!(this.options.pushState && window.history && window.history.pushState);
      var fragment          = this.getFragment();
      var docMode           = document.documentMode;
      var oldIE             = (isExplorer.exec(navigator.userAgent.toLowerCase()) && (!docMode || docMode <= 7));
      if (oldIE) {
        this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
        this.navigate(fragment);
      }

      // Depending on whether we're using pushState or hashes, and whether
      // 'onhashchange' is supported, determine how we check the URL state.
      if (this._hasPushState) {
        $(window).bind('popstate', this.checkUrl);
      } else if ('onhashchange' in window && !oldIE) {
        $(window).bind('hashchange', this.checkUrl);
      } else {
        setInterval(this.checkUrl, this.interval);
      }

      // Determine if we need to change the base url, for a pushState link
      // opened by a non-pushState browser.
      this.fragment = fragment;
      historyStarted = true;
      var loc = window.location;
      var atRoot  = loc.pathname == this.options.root;
      if (this._wantsPushState && !this._hasPushState && !atRoot) {
        this.fragment = this.getFragment(null, true);
        window.location.replace(this.options.root + '#' + this.fragment);
        // Return immediately as browser will do redirect to new url
        return true;
      } else if (this._wantsPushState && this._hasPushState && atRoot && loc.hash) {
        this.fragment = loc.hash.replace(hashStrip, '');
        window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + this.options.root + this.fragment);
      }

      if (!this.options.silent) {
        return this.loadUrl();
      }
    },*/
    
    start : function(callback) {
      this.on_route_change = callback;
      $(window).hashchange(this.checkUrl);
      return this.loadUrl();
    },

    // Add a route to be tested when the fragment changes. Routes added later may
    // override previous routes.
    route : function(route, callback) {
      this.handlers.unshift({route : route, callback : callback});
    },

    // Checks the current URL to see if it has changed, and if it has,
    // calls `loadUrl`, normalizing across the hidden iframe.
    checkUrl : function(e) {
      var current = this.getFragment();
      if (current == this.fragment && this.iframe) current = this.getFragment(this.iframe.location.hash);
      if (current == this.fragment || current == decodeURIComponent(this.fragment)) return false;
      if (this.iframe) this.navigate(current);
      this.loadUrl() || this.loadUrl(window.location.hash);
    },
    
    // Attempt to load the current URL fragment. If a route succeeds with a
    // match, returns `true`. If no defined routes matches the fragment,
    // returns `false`.
    loadUrl : function(fragmentOverride) {
      var fragment = this.fragment = this.getFragment(fragmentOverride);
      var on_route_change = this.on_route_change;
      var matched = _.any(this.handlers, function(handler) {
        if (handler.route.test(fragment)) {
          if (on_route_change) {
            on_route_change();
          }
          handler.callback(fragment);
          return true;
        }
      });
      return matched;
    },

    // Save a fragment into the hash history. You are responsible for properly
    // URL-encoding the fragment in advance. This does not trigger
    // a `hashchange` event.
    navigate : function(fragment, triggerRoute) {
      var frag = (fragment || '').replace(hashStrip, '');
      if (this.fragment == frag || this.fragment == decodeURIComponent(frag)) return;
      if (this._hasPushState) {
        var loc = window.location;
        if (frag.indexOf(this.options.root) != 0) frag = this.options.root + frag;
        this.fragment = frag;
        window.history.pushState({}, document.title, loc.protocol + '//' + loc.host + frag);
      } else {
        window.location.hash = this.fragment = frag;
        if (this.iframe && (frag != this.getFragment(this.iframe.location.hash))) {
          this.iframe.document.open().close();
          this.iframe.location.hash = frag;
        }
      }
      if (triggerRoute) this.loadUrl(fragment);
    }

  });

  // Backbone.View
  // -------------

  // Creating a Backbone.View creates its initial element outside of the DOM,
  // if an existing element is not provided...
  Backbone.View = function(options) {
    this.cid = _.uniqueId('view');
    this._configure(options || {});
    this._ensureElement();
    this.delegateEvents();
    this.initialize.apply(this, arguments);
  };

  // Element lookup, scoped to DOM elements within the current view.
  // This should be prefered to global lookups, if you're dealing with
  // a specific view.
  var selectorDelegate = function(selector) {
    return $(selector, this.el);
  };

  // Cached regex to split keys for `delegate`.
  var eventSplitter = /^(\S+)\s*(.*)$/;

  // List of view options to be merged as properties.
  var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName'];

  // Set up all inheritable **Backbone.View** properties and methods.
  _.extend(Backbone.View.prototype, Backbone.Events, {

    // The default `tagName` of a View's element is `"div"`.
    tagName : 'div',

    // Attach the `selectorDelegate` function as the `$` property.
    $       : selectorDelegate,

    // Initialize is an empty function by default. Override it with your own
    // initialization logic.
    initialize : function(){},

    // **render** is the core function that your view should override, in order
    // to populate its element (`this.el`), with the appropriate HTML. The
    // convention is for **render** to always return `this`.
    render : function() {
      return this;
    },

    // Remove this view from the DOM. Note that the view isn't present in the
    // DOM by default, so calling this method may be a no-op.
    remove : function() {
      $(this.el).remove();
      return this;
    },

    // For small amounts of DOM Elements, where a full-blown template isn't
    // needed, use **make** to manufacture elements, one at a time.
    //
    //     var el = this.make('li', {'class': 'row'}, this.model.escape('title'));
    //
    make : function(tagName, attributes, content) {
      var el = document.createElement(tagName);
      if (attributes) $(el).attr(attributes);
      if (content) $(el).html(content);
      return el;
    },

    // Set callbacks, where `this.callbacks` is a hash of
    //
    // *{"event selector": "callback"}*
    //
    //     {
    //       'mousedown .title':  'edit',
    //       'click .button':     'save'
    //     }
    //
    // pairs. Callbacks will be bound to the view, with `this` set properly.
    // Uses event delegation for efficiency.
    // Omitting the selector binds the event to `this.el`.
    // This only works for delegate-able events: not `focus`, `blur`, and
    // not `change`, `submit`, and `reset` in Internet Explorer.
    delegateEvents : function(events) {
      if (!(events || (events = this.events))) return;
      if (_.isFunction(events)) events = events.call(this);
      $(this.el).unbind('.delegateEvents' + this.cid);
      for (var key in events) {
        var method = this[events[key]];
        if (!method) throw new Error('Event "' + events[key] + '" does not exist');
        var match = key.match(eventSplitter);
        var eventName = match[1], selector = match[2];
        method = _.bind(method, this);
        eventName += '.delegateEvents' + this.cid;
        if (selector === '') {
          $(this.el).bind(eventName, method);
        } else {
          $(this.el).delegate(selector, eventName, method);
          Utils.log("Delegate", selector, eventName, method);
        }
      }
    },

    // Performs the initial configuration of a View with a set of options.
    // Keys with special meaning *(model, collection, id, className)*, are
    // attached directly to the view.
    _configure : function(options) {
      if (this.options) options = _.extend({}, this.options, options);
      for (var i = 0, l = viewOptions.length; i < l; i++) {
        var attr = viewOptions[i];
        if (options[attr]) this[attr] = options[attr];
      }
      this.options = options;
    },

    // Ensure that the View has a DOM element to render into.
    // If `this.el` is a string, pass it through `$()`, take the first
    // matching element, and re-assign it to `el`. Otherwise, create
    // an element from the `id`, `className` and `tagName` proeprties.
    _ensureElement : function() {
      if (!this.el) {
        var attrs = this.attributes || {};
        if (this.id) attrs.id = this.id;
        if (this.className) attrs['class'] = this.className;
        this.el = this.make(this.tagName, attrs);
      } else if (_.isString(this.el)) {
        this.el = $(this.el).get(0);
      }
    }

  });

  // The self-propagating extend function that Backbone classes use.
  var extend = function (protoProps, classProps) {
    var child = inherits(this, protoProps, classProps);
    child.extend = this.extend;
    return child;
  };

  // Set up inheritance for the model, collection, and view.
  Backbone.Model.extend = Backbone.Collection.extend =
    Backbone.Router.extend = Backbone.View.extend = extend;

  // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
  var methodMap = {
    'create': 'POST',
    'update': 'PUT',
    'delete': 'DELETE',
    'read'  : 'GET'
  };

  // Backbone.sync
  // -------------

  // Override this function to change the manner in which Backbone persists
  // models to the server. You will be passed the type of request, and the
  // model in question. By default, uses makes a RESTful Ajax request
  // to the model's `url()`. Some possible customizations could be:
  //
  // * Use `setTimeout` to batch rapid-fire updates into a single request.
  // * Send up the models as XML instead of JSON.
  // * Persist models via WebSockets instead of Ajax.
  //
  // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
  // as `POST`, with a `_method` parameter containing the true HTTP method,
  // as well as all requests with the body as `application/x-www-form-urlencoded` instead of
  // `application/json` with the model in a param named `model`.
  // Useful when interfacing with server-side languages like **PHP** that make
  // it difficult to read the body of `PUT` requests.
  Backbone.sync = function(method, model, options) {
    var type = methodMap[method];

    // Default JSON-request options.
    var params = _.extend({
      type:         type,
      dataType:     'json'
    }, options);

    // Ensure that we have a URL.
    if (!params.url) {
      params.url = getUrl(model) || urlError();
    }

    // Ensure that we have the appropriate request data.
    if (!params.data && model && (method == 'create' || method == 'update')) {
      params.contentType = 'application/json';
      params.data = JSON.stringify(model.toJSON());
    }

    // For older servers, emulate JSON by encoding the request into an HTML-form.
    if (Backbone.emulateJSON) {
      params.contentType = 'application/x-www-form-urlencoded';
      params.data        = params.data ? {model : params.data} : {};
    }

    // For older servers, emulate HTTP by mimicking the HTTP method with `_method`
    // And an `X-HTTP-Method-Override` header.
    if (Backbone.emulateHTTP) {
      if (type === 'PUT' || type === 'DELETE') {
        if (Backbone.emulateJSON) params.data._method = type;
        params.type = 'POST';
        params.beforeSend = function(xhr) {
          xhr.setRequestHeader('X-HTTP-Method-Override', type);
        };
      }
    }

    // Don't process data on a non-GET request.
    if (params.type !== 'GET' && !Backbone.emulateJSON) {
      params.processData = false;
    }

    // Make the request.
    return $.ajax(params);
  };

  // Helpers
  // -------

  // Shared empty constructor function to aid in prototype-chain creation.
  var ctor = function(){};

  // Helper function to correctly set up the prototype chain, for subclasses.
  // Similar to `goog.inherits`, but uses a hash of prototype properties and
  // class properties to be extended.
  var inherits = function(parent, protoProps, staticProps) {
    var child;

    // The constructor function for the new subclass is either defined by you
    // (the "constructor" property in your `extend` definition), or defaulted
    // by us to simply call `super()`.
    if (protoProps && protoProps.hasOwnProperty('constructor')) {
      child = protoProps.constructor;
    } else {
      child = function(){ return parent.apply(this, arguments); };
    }

    // Inherit class (static) properties from parent.
    _.extend(child, parent);

    // Set the prototype chain to inherit from `parent`, without calling
    // `parent`'s constructor function.
    ctor.prototype = parent.prototype;
    child.prototype = new ctor();

    // Add prototype properties (instance properties) to the subclass,
    // if supplied.
    if (protoProps) _.extend(child.prototype, protoProps);

    // Add static properties to the constructor function, if supplied.
    if (staticProps) _.extend(child, staticProps);

    // Correctly set child's `prototype.constructor`.
    child.prototype.constructor = child;

    // Set a convenience property in case the parent's prototype is needed later.
    child.__super__ = parent.prototype;

    return child;
  };

  // Helper function to get a URL from a Model or Collection as a property
  // or as a function.
  var getUrl = function(object) {
    if (!(object && object.url)) return null;
    return _.isFunction(object.url) ? object.url() : object.url;
  };

  // Throw an error when a URL is needed, and none is supplied.
  var urlError = function() {
    throw new Error('A "url" property or function must be specified');
  };

  // Wrap an optional error callback with a fallback error event.
  var wrapError = function(onError, model, options) {
    return function(resp) {
      if (onError) {
        onError(model, resp, options);
      } else {
        model.trigger('error', model, resp, options);
      }
    };
  };

  // Helper function to escape a string for HTML rendering.
  var escapeHTML = function(string) {
    return string.replace(/&(?!\w+;|#\d+;|#x[\da-f]+;)/gi, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\//g,'&#x2F;');
  };

}).call(this);

/*!
 * jQuery UI 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.13",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();
b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,
"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,
outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);
return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=
0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
;/*!
 * jQuery UI Widget 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;
e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*
 * jQuery UI Position 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Position
 */
(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY,
left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+=
k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-=
m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=
d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+=
a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b),
g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
;/*
 * jQuery UI Autocomplete 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Autocomplete
 *
 * Depends:
 *  jquery.ui.core.js
 *  jquery.ui.widget.js
 *  jquery.ui.position.js
 */
(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.attr("readonly"))){g=
false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=
a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};
this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&&
a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&&
b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source=
this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();
this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label||
b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this;
d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery);
(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b,
this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);
;/*
 * jQuery UI Datepicker 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Datepicker
 *
 * Depends:
 *  jquery.ui.core.js
 */
(function(d,B){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",
"mouseout",function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){if(!d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==B)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.13"}});var z=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},
_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,
b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);
if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);
return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);
if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/
2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,
"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=
false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=
true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;
for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&
this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==B&&f.minDate===B)e.settings.minDate=this._formatDate(e,i);if(g!==null&&f.dateFormat!==B&&f.maxDate===B)e.settings.maxDate=this._formatDate(e,g);this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=
this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();
c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,
"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,
-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();
a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==B?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);
d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=
null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=
null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],
top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");
c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},
_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-
g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=
null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):
0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=
false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=
d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);
else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=
a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,
g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var C=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&C?4:p=="o"?3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,C,K){p=d.map(o(p)?K:C,function(w,x){return[[x,w]]}).sort(function(w,x){return-(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=
x[1];if(b.substr(s,w.length).toLowerCase()==w.toLowerCase()){E=x[0];s+=w.length;return false}});if(E!=-1)return E+1;else throw"Unknown name at position "+s;},r=function(){if(b.charAt(s)!=a.charAt(A))throw"Unexpected literal at position "+s;s++},s=0,A=0;A<a.length;A++)if(k)if(a.charAt(A)=="'"&&!o("'"))k=false;else r();else switch(a.charAt(A)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=
new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "'":if(o("'"))r();else k=true;break;default:r()}if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=
c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,
h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;
case "o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+
1)==h)&&f++;return h},f=0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==B?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,
f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,
c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=
parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;
a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||
a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+z+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,
g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+z+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";j=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&
a.currentDay?u:b;j=!h?j:this.formatDate(j,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+z+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
z+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),C=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){for(var O=
"",G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&x==0?c?
f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var D=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=(t+h)%7;D+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}y+=D+"</tr></thead><tbody>";D=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
D);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;D=l?6:Math.ceil((t+D)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<D;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],F=q.getMonth()!=g,L=F&&!K||!I[0]||k&&q<k||o&&q>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(q.getTime()==P.getTime()&&g==a.selectedMonth&&
a._keyEvent||E.getTime()==q.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!C?"":" "+I[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||C)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+z+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(F&&!C?"&#xa0;":L?'<span class="ui-state-default">'+q.getDate()+
"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+z+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+z+".datepicker._clickMonthYear('#"+
a.id+"');\">";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?
r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+z+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+z+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=
(h||!(j&&l)?"&#xa0;":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,
"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,
b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!=
"string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this;if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&
arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.13";window["DP_jQuery_"+z]=d})(jQuery);
;
/*
 * jQuery hashchange event - v1.3 - 7/21/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);
/* 
 * 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 <http://www.gnu.org/licenses/>.
 * 
 * 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<r&&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&&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&&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&&"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&&v.fp_play!==undefined&&!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()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!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()&&/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&&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&&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()&&R=="onLoad"&&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"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&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<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<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)&&!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"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&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&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&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>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[10,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&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<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"&&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='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+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+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";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&&r&&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="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&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&&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]>k[0])||(m[0]==k[0]&&m[1]>=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}}})();

/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
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&&typeof j.getElementsByTagName!=D&&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&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!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&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&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<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<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&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<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&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&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&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<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)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&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&&M.win&&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&&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<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(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&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&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+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";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]&&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&&X.nodeName=="OBJECT"){if(M.ie&&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]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&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&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<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&&ab&&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&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&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&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+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&&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&&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("&");for(var X=0;X<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&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();

(function($){$.jGrowl=function(m,o){if($('#jGrowl').size()==0)
$('<div id="jGrowl"></div>').addClass((o&&o.position)?o.position:$.jGrowl.defaults.position).appendTo('body');$('#jGrowl').jGrowl(m,o);};$.fn.jGrowl=function(m,o){if($.isFunction(this.each)){var args=arguments;return this.each(function(){var self=this;if($(this).data('jGrowl.instance')==undefined){$(this).data('jGrowl.instance',$.extend(new $.fn.jGrowl(),{notifications:[],element:null,interval:null}));$(this).data('jGrowl.instance').startup(this);}
if($.isFunction($(this).data('jGrowl.instance')[m])){$(this).data('jGrowl.instance')[m].apply($(this).data('jGrowl.instance'),$.makeArray(args).slice(1));}else{$(this).data('jGrowl.instance').create(m,o);}});};};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:'',group:'',sticky:false,position:'top-right',glue:'after',theme:'default',themeState:'highlight',corners:'10px',check:250,life:3000,closeDuration:'normal',openDuration:'normal',easing:'swing',closer:true,closeTemplate:'&times;',closerTemplate:'<div>[ close all ]</div>',log:function(e,m,o){},beforeOpen:function(e,m,o){},afterOpen:function(e,m,o){},open:function(e,m,o){},beforeClose:function(e,m,o){},close:function(e,m,o){},animateOpen:{opacity:'show'},animateClose:{opacity:'hide'}},notifications:[],element:null,interval:null,create:function(message,o){var o=$.extend({},this.defaults,o);if(typeof o.speed!=='undefined'){o.openDuration=o.speed;o.closeDuration=o.speed;}
this.notifications.push({message:message,options:o});o.log.apply(this.element,[this.element,message,o]);},render:function(notification){var self=this;var message=notification.message;var o=notification.options;var notification=$('<div class="jGrowl-notification '+o.themeState+' ui-corner-all'+
((o.group!=undefined&&o.group!='')?' '+o.group:'')+'">'+'<div class="jGrowl-close">'+o.closeTemplate+'</div>'+'<div class="jGrowl-header">'+o.header+'</div>'+'<div class="jGrowl-message">'+message+'</div></div>').data("jGrowl",o).addClass(o.theme).children('div.jGrowl-close').bind("click.jGrowl",function(){$(this).parent().trigger('jGrowl.close');}).parent();$(notification).bind("mouseover.jGrowl",function(){$('div.jGrowl-notification',self.element).data("jGrowl.pause",true);}).bind("mouseout.jGrowl",function(){$('div.jGrowl-notification',self.element).data("jGrowl.pause",false);}).bind('jGrowl.beforeOpen',function(){if(o.beforeOpen.apply(notification,[notification,message,o,self.element])!=false){$(this).trigger('jGrowl.open');}}).bind('jGrowl.open',function(){if(o.open.apply(notification,[notification,message,o,self.element])!=false){if(o.glue=='after'){$('div.jGrowl-notification:last',self.element).after(notification);}else{$('div.jGrowl-notification:first',self.element).before(notification);}
$(this).animate(o.animateOpen,o.openDuration,o.easing,function(){if($.browser.msie&&(parseInt($(this).css('opacity'),10)===1||parseInt($(this).css('opacity'),10)===0))
this.style.removeAttribute('filter');$(this).data("jGrowl").created=new Date();$(this).trigger('jGrowl.afterOpen');});}}).bind('jGrowl.afterOpen',function(){o.afterOpen.apply(notification,[notification,message,o,self.element]);}).bind('jGrowl.beforeClose',function(){if(o.beforeClose.apply(notification,[notification,message,o,self.element])!=false)
$(this).trigger('jGrowl.close');}).bind('jGrowl.close',function(){$(this).data('jGrowl.pause',true);$(this).animate(o.animateClose,o.closeDuration,o.easing,function(){$(this).remove();var close=o.close.apply(notification,[notification,message,o,self.element]);if($.isFunction(close))
close.apply(notification,[notification,message,o,self.element]);});}).trigger('jGrowl.beforeOpen');if(o.corners!=''&&$.fn.corner!=undefined)$(notification).corner(o.corners);if($('div.jGrowl-notification:parent',self.element).size()>1&&$('div.jGrowl-closer',self.element).size()==0&&this.defaults.closer!=false){$(this.defaults.closerTemplate).addClass('jGrowl-closer ui-state-highlight ui-corner-all').addClass(this.defaults.theme).appendTo(self.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){$(this).siblings().trigger("jGrowl.beforeClose");if($.isFunction(self.defaults.closer)){self.defaults.closer.apply($(this).parent()[0],[$(this).parent()[0]]);}});};},update:function(){$(this.element).find('div.jGrowl-notification:parent').each(function(){if($(this).data("jGrowl")!=undefined&&$(this).data("jGrowl").created!=undefined&&($(this).data("jGrowl").created.getTime()+parseInt($(this).data("jGrowl").life))<(new Date()).getTime()&&$(this).data("jGrowl").sticky!=true&&($(this).data("jGrowl.pause")==undefined||$(this).data("jGrowl.pause")!=true)){$(this).trigger('jGrowl.beforeClose');}});if(this.notifications.length>0&&(this.defaults.pool==0||$(this.element).find('div.jGrowl-notification:parent').size()<this.defaults.pool))
this.render(this.notifications.shift());if($(this.element).find('div.jGrowl-notification:parent').size()<2){$(this.element).find('div.jGrowl-closer').animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){$(this).remove();});}},startup:function(e){this.element=$(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){$(e).data('jGrowl.instance').update();},parseInt(this.defaults.check));if($.browser.msie&&parseInt($.browser.version)<7&&!window["XMLHttpRequest"]){$(this.element).addClass('ie6');}},shutdown:function(){$(this.element).removeClass('jGrowl').find('div.jGrowl-notification').remove();clearInterval(this.interval);},close:function(){$(this.element).find('div.jGrowl-notification').each(function(){$(this).trigger('jGrowl.beforeClose');});}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaults;})(jQuery);
