/*!
 * jQuery JavaScript Library v1.7.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Wed Mar 21 12:46:34 2012 -0700
 */

(function(u,p){function hb(a){var b=pa[a]={},c,e;a=a.split(/\s+/);c=0;for(e=a.length;c<e;c++)b[a[c]]=!0;return b}function qa(a,b,d){if(d===p&&1===a.nodeType)if(d="data-"+b.replace(ib,"-$1").toLowerCase(),d=a.getAttribute(d),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:c.isNumeric(d)?+d:jb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=p;return d}function ba(a){for(var b in a)if(("data"!==b||!c.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function ra(a,b,
d){var e=b+"defer",f=b+"queue",g=b+"mark",k=c._data(a,e);!k||"queue"!==d&&c._data(a,f)||"mark"!==d&&c._data(a,g)||setTimeout(function(){c._data(a,f)||c._data(a,g)||(c.removeData(a,e,!0),k.fire())},0)}function H(){return!1}function N(){return!0}function sa(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});if(b.nodeType)return c.grep(a,function(a,c){return a===b===d});if("string"===typeof b){var e=c.grep(a,function(a){return 1===a.nodeType});if(kb.test(b))return c.filter(b,
e,!d);b=c.filter(b,e)}return c.grep(a,function(a,e){return 0<=c.inArray(a,b)===d})}function ta(a){var b=ua.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function va(a,b){if(1===b.nodeType&&c.hasData(a)){var d,e,f;e=c._data(a);var g=c._data(b,e),k=e.events;if(k)for(d in delete g.handle,g.events={},k)for(e=0,f=k[d].length;e<f;e++)c.event.add(b,d,k[d][e]);g.data&&(g.data=c.extend({},g.data))}}function wa(a,b){var d;1===b.nodeType&&(b.clearAttributes&&
b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),d=b.nodeName.toLowerCase(),"object"===d?b.outerHTML=a.outerHTML:"input"!==d||"checkbox"!==a.type&&"radio"!==a.type?"option"===d?b.selected=a.defaultSelected:"input"===d||"textarea"===d?b.defaultValue=a.defaultValue:"script"===d&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(c.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}
function T(a){return"undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName("*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll("*"):[]}function xa(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function ya(a){var b=(a.nodeName||"").toLowerCase();"input"===b?xa(a):"script"!==b&&"undefined"!==typeof a.getElementsByTagName&&c.grep(a.getElementsByTagName("input"),xa)}function za(a,b,d){var e="width"===b?a.offsetWidth:a.offsetHeight,f="width"===b?1:0;if(0<
e){if("border"!==d)for(;4>f;f+=2)d||(e-=parseFloat(c.css(a,"padding"+M[f]))||0),e="margin"===d?e+(parseFloat(c.css(a,d+M[f]))||0):e-(parseFloat(c.css(a,"border"+M[f]+"Width"))||0);return e+"px"}e=I(a,b);if(0>e||null==e)e=a.style[b];if(ca.test(e))return e;e=parseFloat(e)||0;if(d)for(;4>f;f+=2)e+=parseFloat(c.css(a,"padding"+M[f]))||0,"padding"!==d&&(e+=parseFloat(c.css(a,"border"+M[f]+"Width"))||0),"margin"===d&&(e+=parseFloat(c.css(a,d+M[f]))||0);return e+"px"}function Aa(a){return function(b,d){"string"!==
typeof b&&(d=b,b="*");if(c.isFunction(d))for(var e=b.toLowerCase().split(Ba),f=0,g=e.length,k,h;f<g;f++)k=e[f],(h=/^\+/.test(k))&&(k=k.substr(1)||"*"),k=a[k]=a[k]||[],k[h?"unshift":"push"](d)}}function W(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=!0;f=a[f];for(var k=0,h=f?f.length:0,l=a===da,q;k<h&&(l||!q);k++)q=f[k](b,c,e),"string"===typeof q&&(!l||g[q]?q=p:(b.dataTypes.unshift(q),q=W(a,b,c,e,q,g)));!l&&q||g["*"]||(q=W(a,b,c,e,"*",g));return q}function Ca(a,b){var d,e,f=c.ajaxSettings.flatOptions||
{};for(d in b)b[d]!==p&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(!0,a,e)}function ea(a,b,d,e){if(c.isArray(b))c.each(b,function(b,c){d||lb.test(a)?e(a,c):ea(a+"["+("object"===typeof c?b:"")+"]",c,d,e)});else if(d||"object"!==c.type(b))e(a,b);else for(var f in b)ea(a+"["+f+"]",b[f],d,e)}function Da(){try{return new u.XMLHttpRequest}catch(a){}}function Ea(){setTimeout(mb,0);return X=c.now()}function mb(){X=p}function O(a,b){var d={};c.each(Y.concat.apply([],Y.slice(0,b)),function(){d[this]=a});return d}
function Fa(a){if(!fa[a]){var b=m.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if("none"===e||""===e)B||(B=m.createElement("iframe"),B.frameBorder=B.width=B.height=0),b.appendChild(B),J&&B.createElement||(J=(B.contentWindow||B.contentDocument).document,J.write((c.support.boxModel?"<!doctype html>":"")+"<html><body>"),J.close()),d=J.createElement(a),J.body.appendChild(d),e=c.css(d,"display"),b.removeChild(B);fa[a]=e}return fa[a]}function Ga(a){return c.isWindow(a)?a:9===a.nodeType?
a.defaultView||a.parentWindow:!1}var m=u.document,nb=u.navigator,ob=u.location,c=function(){function a(){if(!b.isReady){try{m.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c,f)},c=u.jQuery,e=u.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=/\S/,h=/^\s+/,l=/\s+$/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,s=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,pb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=
/(?:^|:|,)(?:\s*\[)+/g,ga=/(webkit)[ \/]([\w.]+)/,qb=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,y=/-([a-z]|[0-9])/ig,C=/^-ms-/,t=function(a,b){return(b+"").toUpperCase()},E=nb.userAgent,v,D,rb=Object.prototype.toString,ha=Object.prototype.hasOwnProperty,ia=Array.prototype.push,V=Array.prototype.slice,Ha=String.prototype.trim,Ia=Array.prototype.indexOf,Ja={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e;if(!a)return this;if(a.nodeType)return this.context=
this[0]=a,this.length=1,this;if("body"===a&&!c&&m.body)return this.context=m,this[0]=m.body,this.selector=a,this.length=1,this;if("string"===typeof a){e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:g.exec(a);if(!e||!e[1]&&c)return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a);if(e[1])return d=(c=c instanceof b?c[0]:c)?c.ownerDocument||c:m,(a=q.exec(a))?b.isPlainObject(c)?(a=[m.createElement(a[1])],b.fn.attr.call(a,c,!0)):a=[d.createElement(a[1])]:(a=b.buildFragment([e[1]],
[d]),a=(a.cacheable?b.clone(a.fragment):a.fragment).childNodes),b.merge(this,a);if((c=m.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=m;this.selector=a;return this}if(b.isFunction(a))return d.ready(a);a.selector!==p&&(this.selector=a.selector,this.context=a.context);return b.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return V.call(this,0)},get:function(a){return null==a?this.toArray():
0>a?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();b.isArray(a)?ia.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;"find"===c?e.selector=this.selector+(this.selector?" ":"")+d:c&&(e.selector=this.selector+"."+c+"("+d+")");return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();v.add(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
slice:function(){return this.pushStack(V.apply(this,arguments),"slice",V.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ia,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,v=arguments[0]||{},g=1,k=arguments.length,h=!1;"boolean"===typeof v&&(h=v,v=arguments[1]||{},g=2);"object"===typeof v||b.isFunction(v)||(v=
{});k===g&&(v=this,--g);for(;g<k;g++)if(null!=(a=arguments[g]))for(c in a)d=v[c],e=a[c],v!==e&&(h&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))?(f?(f=!1,d=d&&b.isArray(d)?d:[]):d=d&&b.isPlainObject(d)?d:{},v[c]=b.extend(h,d,e)):e!==p&&(v[c]=e));return v};b.extend({noConflict:function(a){u.$===b&&(u.$=e);a&&u.jQuery===b&&(u.jQuery=c);return b},isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){if(!0===a&&!--b.readyWait||!0!==a&&!b.isReady){if(!m.body)return setTimeout(b.ready,
1);b.isReady=!0;!0!==a&&0<--b.readyWait||(v.fireWith(m,[b]),b.fn.trigger&&b(m).trigger("ready").off("ready"))}},bindReady:function(){if(!v){v=b.Callbacks("once memory");if("complete"===m.readyState)return setTimeout(b.ready,1);if(m.addEventListener)m.addEventListener("DOMContentLoaded",D,!1),u.addEventListener("load",b.ready,!1);else if(m.attachEvent){m.attachEvent("onreadystatechange",D);u.attachEvent("onload",b.ready);var c=!1;try{c=null==u.frameElement}catch(d){}m.documentElement.doScroll&&c&&
a()}}},isFunction:function(a){return"function"===b.type(a)},isArray:Array.isArray||function(a){return"array"===b.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==a?String(a):Ja[rb.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==b.type(a)||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!ha.call(a,"constructor")&&!ha.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in a);
return d===p||ha.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw Error(a);},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=b.trim(a);if(u.JSON&&u.JSON.parse)return u.JSON.parse(a);if(s.test(a.replace(n,"@").replace(pb,"]").replace(r,"")))return(new Function("return "+a))();b.error("Invalid JSON: "+a)},parseXML:function(a){if("string"!==typeof a||!a)return null;var c,d;try{u.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):
(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(e){c=p}c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){a&&k.test(a)&&(u.execScript||function(a){u.eval.call(u,a)})(a)},camelCase:function(a){return a.replace(C,"ms-").replace(y,t)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,v=a.length,g=v===p||b.isFunction(a);
if(d)if(g)for(e in a){if(!1===c.apply(a[e],d))break}else for(;f<v&&!1!==c.apply(a[f++],d););else if(g)for(e in a){if(!1===c.call(a[e],e,a[e]))break}else for(;f<v&&!1!==c.call(a[f],f,a[f++]););return a},trim:Ha?function(a){return null==a?"":Ha.call(a)}:function(a){return null==a?"":a.toString().replace(h,"").replace(l,"")},makeArray:function(a,c){var d=c||[];if(null!=a){var e=b.type(a);null==a.length||"string"===e||"function"===e||"regexp"===e||b.isWindow(a)?ia.call(d,a):b.merge(d,a)}return d},inArray:function(a,
b,c){var d;if(b){if(Ia)return Ia.call(b,a,c);d=b.length;for(c=c?0>c?Math.max(0,d+c):c:0;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=a.length,d=0;if("number"===typeof b.length)for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==p;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,v=a.length;f<v;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var e,f,v=[],g=0,k=a.length;if(a instanceof b||k!==p&&"number"===typeof k&&
(0<k&&a[0]&&a[k-1]||0===k||b.isArray(a)))for(;g<k;g++)e=c(a[g],g,d),null!=e&&(v[v.length]=e);else for(f in a)e=c(a[f],f,d),null!=e&&(v[v.length]=e);return v.concat.apply([],v)},guid:1,proxy:function(a,c){if("string"===typeof c){var d=a[c];c=a;a=d}if(!b.isFunction(a))return p;var e=V.call(arguments,2),d=function(){return a.apply(c,e.concat(V.call(arguments)))};d.guid=a.guid=a.guid||d.guid||b.guid++;return d},access:function(a,c,d,e,f,v,g){var k,h=null==d,D=0,l=a.length;if(d&&"object"===typeof d){for(D in d)b.access(a,
c,D,d[D],1,v,e);f=1}else if(e!==p){k=g===p&&b.isFunction(e);h&&(k?(k=c,c=function(a,c,d){return k.call(b(a),d)}):(c.call(a,e),c=null));if(c)for(;D<l;D++)c(a[D],d,k?e.call(a[D],D,c(a[D],d)):e,g);f=1}return f?a:h?c.call(a):l?c(a[0],d):v},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=ga.exec(a)||qb.exec(a)||w.exec(a)||0>a.indexOf("compatible")&&x.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}b.extend(!0,
a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){e&&e instanceof b&&!(e instanceof a)&&(e=a(e));return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(m);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Ja["[object "+b+"]"]=b.toLowerCase()});E=b.uaMatch(E);E.browser&&(b.browser[E.browser]=!0,b.browser.version=E.version);b.browser.webkit&&(b.browser.safari=!0);k.test("\u00a0")&&
(h=/^[\s\xA0]+/,l=/[\s\xA0]+$/);f=b(m);m.addEventListener?D=function(){m.removeEventListener("DOMContentLoaded",D,!1);b.ready()}:m.attachEvent&&(D=function(){"complete"===m.readyState&&(m.detachEvent("onreadystatechange",D),b.ready())});return b}(),pa={};c.Callbacks=function(a){a=a?pa[a]||hb(a):{};var b=[],d=[],e,f,g,k,h,l,q=function(d){var e,f,g,k;e=0;for(f=d.length;e<f;e++)g=d[e],k=c.type(g),"array"===k?q(g):"function"===k&&(a.unique&&n.has(g)||b.push(g))},s=function(c,q){q=q||[];e=!a.memory||[c,
q];g=f=!0;l=k||0;k=0;for(h=b.length;b&&l<h;l++)if(!1===b[l].apply(c,q)&&a.stopOnFalse){e=!0;break}g=!1;b&&(a.once?!0===e?n.disable():b=[]:d&&d.length&&(e=d.shift(),n.fireWith(e[0],e[1])))},n={add:function(){if(b){var a=b.length;q(arguments);g?h=b.length:e&&!0!==e&&(k=a,s(e[0],e[1]))}return this},remove:function(){if(b)for(var c=arguments,d=0,e=c.length;d<e;d++)for(var f=0;f<b.length&&(c[d]!==b[f]||(g&&f<=h&&(h--,f<=l&&l--),b.splice(f--,1),!a.unique));f++);return this},has:function(a){if(b)for(var c=
0,d=b.length;c<d;c++)if(a===b[c])return!0;return!1},empty:function(){b=[];return this},disable:function(){b=d=e=p;return this},disabled:function(){return!b},lock:function(){d=p;e&&!0!==e||n.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(g?a.once||d.push([b,c]):a.once&&e||s(b,c));return this},fire:function(){n.fireWith(this,arguments);return this},fired:function(){return!!f}};return n};var ja=[].slice;c.extend({Deferred:function(a){var b=c.Callbacks("once memory"),d=
c.Callbacks("once memory"),e=c.Callbacks("memory"),f="pending",g={resolve:b,reject:d,notify:e},k={done:b.add,fail:d.add,progress:e.add,state:function(){return f},isResolved:b.fired,isRejected:d.fired,then:function(a,b,c){h.done(a).fail(b).progress(c);return this},always:function(){h.done.apply(h,arguments).fail.apply(h,arguments);return this},pipe:function(a,b,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[b,"reject"],progress:[d,"notify"]},function(a,b){var d=b[0],f=b[1],g;if(c.isFunction(d))h[a](function(){if((g=
d.apply(this,arguments))&&c.isFunction(g.promise))g.promise().then(e.resolve,e.reject,e.notify);else e[f+"With"](this===h?e:this,[g])});else h[a](e[f])})}).promise()},promise:function(a){if(null==a)a=k;else for(var b in k)a[b]=k[b];return a}},h=k.promise({}),l;for(l in g)h[l]=g[l].fire,h[l+"With"]=g[l].fireWith;h.done(function(){f="resolved"},d.disable,e.lock).fail(function(){f="rejected"},b.disable,e.lock);a&&a.call(h,h);return h},when:function(a){function b(a){return function(b){e[a]=1<arguments.length?
ja.call(arguments,0):b;--h||l.resolveWith(l,e)}}function d(a){return function(b){k[a]=1<arguments.length?ja.call(arguments,0):b;l.notifyWith(q,k)}}var e=ja.call(arguments,0),f=0,g=e.length,k=Array(g),h=g,l=1>=g&&a&&c.isFunction(a.promise)?a:c.Deferred(),q=l.promise();if(1<g){for(;f<g;f++)e[f]&&e[f].promise&&c.isFunction(e[f].promise)?e[f].promise().then(b(f),l.reject,d(f)):--h;h||l.resolveWith(l,e)}else l!==a&&l.resolveWith(l,g?[a]:[]);return q}});c.support=function(){var a,b,d,e,f,g,k,h,l=m.createElement("div");
l.setAttribute("className","t");l.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=l.getElementsByTagName("*");d=l.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=m.createElement("select");f=e.appendChild(m.createElement("option"));b=l.getElementsByTagName("input")[0];a={leadingWhitespace:3===l.firstChild.nodeType,tbody:!l.getElementsByTagName("tbody").length,htmlSerialize:!!l.getElementsByTagName("link").length,
style:/top/.test(d.getAttribute("style")),hrefNormalized:"/a"===d.getAttribute("href"),opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:"on"===b.value,optSelected:f.selected,getSetAttribute:"t"!==l.className,enctype:!!m.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==m.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,
pixelMargin:!0};c.boxModel=a.boxModel="CSS1Compat"===m.compatMode;b.checked=!0;a.noCloneChecked=b.cloneNode(!0).checked;e.disabled=!0;a.optDisabled=!f.disabled;try{delete l.test}catch(q){a.deleteExpando=!1}!l.addEventListener&&l.attachEvent&&l.fireEvent&&(l.attachEvent("onclick",function(){a.noCloneEvent=!1}),l.cloneNode(!0).fireEvent("onclick"));b=m.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue="t"===b.value;b.setAttribute("checked","checked");b.setAttribute("name",
"t");l.appendChild(b);d=m.createDocumentFragment();d.appendChild(l.lastChild);a.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(l);if(l.attachEvent)for(k in{submit:1,change:1,focusin:1})b="on"+k,h=b in l,h||(l.setAttribute(b,"return;"),h="function"===typeof l[b]),a[k+"Bubbles"]=h;d.removeChild(l);d=e=f=l=b=null;c(function(){var b,d,e,f,k=m.getElementsByTagName("body")[0];k&&(b=m.createElement("div"),b.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",
k.insertBefore(b,k.firstChild),l=m.createElement("div"),b.appendChild(l),l.innerHTML="<table><tr><td style='padding:0;margin:0;border:0;display:none'></td><td>t</td></tr></table>",g=l.getElementsByTagName("td"),h=0===g[0].offsetHeight,g[0].style.display="",g[1].style.display="none",a.reliableHiddenOffsets=h&&0===g[0].offsetHeight,u.getComputedStyle&&(l.innerHTML="",d=m.createElement("div"),d.style.width="0",d.style.marginRight="0",l.style.width="2px",l.appendChild(d),a.reliableMarginRight=0===(parseInt((u.getComputedStyle(d,
null)||{marginRight:0}).marginRight,10)||0)),"undefined"!==typeof l.style.zoom&&(l.innerHTML="",l.style.width=l.style.padding="1px",l.style.border=0,l.style.overflow="hidden",l.style.display="inline",l.style.zoom=1,a.inlineBlockNeedsLayout=3===l.offsetWidth,l.style.display="block",l.style.overflow="visible",l.innerHTML="<div style='width:5px;'></div>",a.shrinkWrapBlocks=3!==l.offsetWidth),l.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",
l.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:5px solid #000;display:block;'><div style='padding:0;margin:0;border:0;display:block;overflow:hidden;'></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:5px solid #000;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",d=l.firstChild,e=d.firstChild,f=d.nextSibling.firstChild.firstChild,f={doesNotAddBorder:5!==e.offsetTop,doesAddBorderForTableAndCells:5===
f.offsetTop},e.style.position="fixed",e.style.top="20px",f.fixedPosition=20===e.offsetTop||15===e.offsetTop,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",f.subtractsBorderForOverflowNotVisible=-5===e.offsetTop,f.doesNotIncludeMarginInBodyOffset=1!==k.offsetTop,u.getComputedStyle&&(l.style.marginTop="1%",a.pixelMargin="1%"!==(u.getComputedStyle(l,null)||{marginTop:0}).marginTop),"undefined"!==typeof b.style.zoom&&(b.style.zoom=1),k.removeChild(b),l=null,c.extend(a,
f))});return a}();var jb=/^(?:\{.*\}|\[.*\])$/,ib=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!ba(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var g="string"===typeof b,k=a.nodeType,h=k?c.cache:a,l=k?a[f]:a[f]&&f,q="events"===b;if(l&&h[l]&&(q||e||h[l].data)||!g||d!==
p){l||(k?a[f]=l=++c.uuid:l=f);h[l]||(h[l]={},k||(h[l].toJSON=c.noop));if("object"===typeof b||"function"===typeof b)e?h[l]=c.extend(h[l],b):h[l].data=c.extend(h[l].data,b);f=a=h[l];e||(a.data||(a.data={}),a=a.data);d!==p&&(a[c.camelCase(b)]=d);if(q&&!a[b])return f.events;g?(d=a[b],null==d&&(d=a[c.camelCase(b)])):d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,g,k=c.expando,h=a.nodeType,l=h?c.cache:a,q=h?a[k]:k;if(l[q]){if(b&&(e=d?l[q]:l[q].data)){c.isArray(b)||(b in e?b=[b]:
(b=c.camelCase(b),b=b in e?[b]:b.split(" ")));f=0;for(g=b.length;f<g;f++)delete e[b[f]];if(!(d?ba:c.isEmptyObject)(e))return}if(!d&&(delete l[q].data,!ba(l[q])))return;c.support.deleteExpando||!l.setInterval?delete l[q]:l[q]=null;h&&(c.support.deleteExpando?delete a[k]:a.removeAttribute?a.removeAttribute(k):a[k]=null)}}},_data:function(a,b,d){return c.data(a,b,d,!0)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(!0===b||a.getAttribute("classid")!==b)}return!0}});
c.fn.extend({data:function(a,b){var d,e,f,g,k,h=this[0],l=0,q=null;if(a===p){if(this.length&&(q=c.data(h),1===h.nodeType&&!c._data(h,"parsedAttrs"))){f=h.attributes;for(k=f.length;l<k;l++)g=f[l].name,0===g.indexOf("data-")&&(g=c.camelCase(g.substring(5)),qa(h,g,q[g]));c._data(h,"parsedAttrs",!0)}return q}if("object"===typeof a)return this.each(function(){c.data(this,a)});d=a.split(".",2);d[1]=d[1]?"."+d[1]:"";e=d[1]+"!";return c.access(this,function(b){if(b===p)return q=this.triggerHandler("getData"+
e,[d[0]]),q===p&&h&&(q=c.data(h,a),q=qa(h,a,q)),q===p&&d[1]?this.data(d[0]):q;d[1]=b;this.each(function(){var f=c(this);f.triggerHandler("setData"+e,d);c.data(this,a,b);f.triggerHandler("changeData"+e,d)})},null,b,1<arguments.length,null,!1)},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",c._data(a,b,(c._data(a,b)||0)+1))},_unmark:function(a,b,d){!0!==a&&(d=b,b=a,a=!1);if(b){d=d||"fx";var e=d+"mark";(a=a?0:(c._data(b,
e)||1)-1)?c._data(b,e,a):(c.removeData(b,e,!0),ra(b,d,"mark"))}},queue:function(a,b,d){var e;if(a)return b=(b||"fx")+"queue",e=c._data(a,b),d&&(!e||c.isArray(d)?e=c._data(a,b,c.makeArray(d)):e.push(d)),e||[]},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift(),f={};"inprogress"===e&&(e=d.shift());e&&("fx"===b&&d.unshift("inprogress"),c._data(a,b+".run",f),e.call(a,function(){c.dequeue(a,b)},f));d.length||(c.removeData(a,b+"queue "+b+".run",!0),ra(a,b,"queue"))}});c.fn.extend({queue:function(a,
b){var d=2;"string"!==typeof a&&(b=a,a="fx",d--);return arguments.length<d?c.queue(this[0],a):b===p?this:this.each(function(){var d=c.queue(this,a,b);"fx"===a&&"inprogress"!==d[0]&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,c){var f=setTimeout(b,a);c.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){function d(){--k||
e.resolveWith(f,[f])}"string"!==typeof a&&(b=a,a=p);a=a||"fx";for(var e=c.Deferred(),f=this,g=f.length,k=1,h=a+"defer",l=a+"queue",q=a+"mark",s;g--;)if(s=c.data(f[g],h,p,!0)||(c.data(f[g],l,p,!0)||c.data(f[g],q,p,!0))&&c.data(f[g],h,c.Callbacks("once memory"),!0))k++,s.add(d);d();return e.promise(b)}});var Ka=/[\n\t\r]/g,Z=/\s+/,sb=/\r/g,tb=/^(?:button|input)$/i,ub=/^(?:button|input|object|select|textarea)$/i,vb=/^a(?:rea)?$/i,La=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
Ma=c.support.getSetAttribute,z,Na,Oa;c.fn.extend({attr:function(a,b){return c.access(this,c.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,c.prop,a,b,1<arguments.length)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=p,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,k,h;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});
if(a&&"string"===typeof a)for(b=a.split(Z),d=0,e=this.length;d<e;d++)if(f=this[d],1===f.nodeType)if(f.className||1!==b.length){g=" "+f.className+" ";k=0;for(h=b.length;k<h;k++)~g.indexOf(" "+b[k]+" ")||(g+=b[k]+" ");f.className=c.trim(g)}else f.className=a;return this},removeClass:function(a){var b,d,e,f,g,k,h;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});if(a&&"string"===typeof a||a===p)for(b=(a||"").split(Z),d=0,e=this.length;d<e;d++)if(f=this[d],
1===f.nodeType&&f.className)if(a){g=(" "+f.className+" ").replace(Ka," ");k=0;for(h=b.length;k<h;k++)g=g.replace(" "+b[k]+" "," ");f.className=c.trim(g)}else f.className="";return this},toggleClass:function(a,b){var d=typeof a,e="boolean"===typeof b;return c.isFunction(a)?this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if("string"===d)for(var f,g=0,k=c(this),h=b,l=a.split(Z);f=l[g++];)h=e?h:!k.hasClass(f),k[h?"addClass":"removeClass"](f);else if("undefined"===
d||"boolean"===d)this.className&&c._data(this,"__className__",this.className),this.className=this.className||!1===a?"":c._data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&-1<(" "+this[b].className+" ").replace(Ka," ").indexOf(a))return!0;return!1},val:function(a){var b,d,e,f=this[0];if(arguments.length)return e=c.isFunction(a),this.each(function(d){var f=c(this);1===this.nodeType&&(d=e?a.call(this,d,f.val()):a,null==d?d=
"":"number"===typeof d?d+="":c.isArray(d)&&(d=c.map(d,function(a){return null==a?"":a+""})),b=c.valHooks[this.type]||c.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&b.set(this,d,"value")!==p||(this.value=d))});if(f){if((b=c.valHooks[f.type]||c.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(d=b.get(f,"value"))!==p)return d;d=f.value;return"string"===typeof d?d.replace(sb,""):null==d?"":d}}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:
a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,f=[],g=a.options,k="select-one"===a.type;if(0>e)return null;a=k?e:0;for(d=k?e+1:g.length;a<d;a++)if(b=g[a],b.selected&&!((c.support.optDisabled?b.disabled:null!==b.getAttribute("disabled"))||b.parentNode.disabled&&c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(k)return b;f.push(b)}return k&&!f.length&&g.length?c(g[e]).val():f},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=0<=c.inArray(c(this).val(),
d)});d.length||(a.selectedIndex=-1);return d}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,d,e){var f,g,k=a.nodeType;if(a&&3!==k&&8!==k&&2!==k){if(e&&b in c.attrFn)return c(a)[b](d);if("undefined"===typeof a.getAttribute)return c.prop(a,b,d);if(e=1!==k||!c.isXMLDoc(a))b=b.toLowerCase(),g=c.attrHooks[b]||(La.test(b)?Na:z);if(d!==p)if(null===d)c.removeAttr(a,b);else{if(g&&"set"in g&&e&&(f=g.set(a,d,b))!==p)return f;a.setAttribute(b,""+d);return d}else{if(g&&
"get"in g&&e&&null!==(f=g.get(a,b)))return f;f=a.getAttribute(b);return null===f?p:f}}},removeAttr:function(a,b){var d,e,f,g,k,h=0;if(b&&1===a.nodeType)for(e=b.toLowerCase().split(Z),g=e.length;h<g;h++)if(f=e[h])d=c.propFix[f]||f,(k=La.test(f))||c.attr(a,f,""),a.removeAttribute(Ma?f:d),k&&d in a&&(a[d]=!1)},attrHooks:{type:{set:function(a,b){if(tb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&"radio"===b&&c.nodeName(a,"input")){var d=a.value;
a.setAttribute("type",b);d&&(a.value=d);return b}}},value:{get:function(a,b){return z&&c.nodeName(a,"button")?z.get(a,b):b in a?a.value:null},set:function(a,b,d){if(z&&c.nodeName(a,"button"))return z.set(a,b,d);a.value=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(a,
b,d){var e,f,g;g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g){if(g=1!==g||!c.isXMLDoc(a))b=c.propFix[b]||b,f=c.propHooks[b];return d!==p?f&&"set"in f&&(e=f.set(a,d,b))!==p?e:a[b]=d:f&&"get"in f&&null!==(e=f.get(a,b))?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):ub.test(a.nodeName)||vb.test(a.nodeName)&&a.href?0:p}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;Na={get:function(a,b){var d,e=c.prop(a,b);return!0===e||"boolean"!==
typeof e&&(d=a.getAttributeNode(b))&&!1!==d.nodeValue?b.toLowerCase():p},set:function(a,b,d){!1===b?c.removeAttr(a,d):(b=c.propFix[d]||d,b in a&&(a[b]=!0),a.setAttribute(d,d.toLowerCase()));return d}};Ma||(Oa={name:!0,id:!0,coords:!0},z=c.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(Oa[b]?""!==c.nodeValue:c.specified)?c.nodeValue:p},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=m.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=b+""}},c.attrHooks.tabindex.set=
z.set,c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}})}),c.attrHooks.contenteditable={get:z.get,set:function(a,b,c){""===b&&(b="false");z.set(a,b,c)}});c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return null===a?p:a}})});c.support.style||(c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||
p},set:function(a,b){return a.style.cssText=""+b}});c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex;return null}}));c.support.enctype||(c.propFix.enctype="encoding");c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],
{set:function(a,b){if(c.isArray(b))return a.checked=0<=c.inArray(c(a).val(),b)}})});var ka=/^(?:textarea|input|select)$/i,Pa=/^([^\.]*)?(?:\.(.+))?$/,wb=/(?:^|\s)hover(\.\S+)?\b/,xb=/^key/,yb=/^(?:mouse|contextmenu)|click/,Qa=/^(?:focusinfocus|focusoutblur)$/,zb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Ab=function(a){if(a=zb.exec(a))a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)");return a},Ra=function(a){return c.event.special.hover?a:a.replace(wb,"mouseenter$1 mouseleave$1")};
c.event={add:function(a,b,d,e,f){var g,k,h,l,q,s,n,m,r;if(3!==a.nodeType&&8!==a.nodeType&&b&&d&&(g=c._data(a))){d.handler&&(n=d,d=n.handler,f=n.selector);d.guid||(d.guid=c.guid++);h=g.events;h||(g.events=h={});k=g.handle;k||(g.handle=k=function(a){return"undefined"===typeof c||a&&c.event.triggered===a.type?p:c.event.dispatch.apply(k.elem,arguments)},k.elem=a);b=c.trim(Ra(b)).split(" ");for(g=0;g<b.length;g++)l=Pa.exec(b[g])||[],q=l[1],s=(l[2]||"").split(".").sort(),r=c.event.special[q]||{},q=(f?r.delegateType:
r.bindType)||q,r=c.event.special[q]||{},l=c.extend({type:q,origType:l[1],data:e,handler:d,guid:d.guid,selector:f,quick:f&&Ab(f),namespace:s.join(".")},n),m=h[q],m||(m=h[q]=[],m.delegateCount=0,r.setup&&!1!==r.setup.call(a,e,s,k)||(a.addEventListener?a.addEventListener(q,k,!1):a.attachEvent&&a.attachEvent("on"+q,k))),r.add&&(r.add.call(a,l),l.handler.guid||(l.handler.guid=d.guid)),f?m.splice(m.delegateCount++,0,l):m.push(l),c.event.global[q]=!0;a=null}},global:{},remove:function(a,b,d,e,f){var g=c.hasData(a)&&
c._data(a),k,h,l,q,s,n,m,r,p,u;if(g&&(m=g.events)){b=c.trim(Ra(b||"")).split(" ");for(k=0;k<b.length;k++)if(h=Pa.exec(b[k])||[],l=q=h[1],h=h[2],l){r=c.event.special[l]||{};l=(e?r.delegateType:r.bindType)||l;p=m[l]||[];s=p.length;h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<p.length;n++)u=p[n],!f&&q!==u.origType||d&&d.guid!==u.guid||h&&!h.test(u.namespace)||e&&!(e===u.selector||"**"===e&&u.selector)||(p.splice(n--,1),u.selector&&p.delegateCount--,r.remove&&
r.remove.call(a,u));0===p.length&&s!==p.length&&(r.teardown&&!1!==r.teardown.call(a,h)||c.removeEvent(a,l,g.handle),delete m[l])}else for(l in m)c.event.remove(a,l+b[k],d,e,!0);if(c.isEmptyObject(m)){if(b=g.handle)b.elem=null;c.removeData(a,["events","handle"],!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,d,e){if(!d||3!==d.nodeType&&8!==d.nodeType){var f=a.type||a,g=[],k,h,l,q,s;if(!Qa.test(f+c.event.triggered)&&(0<=f.indexOf("!")&&(f=f.slice(0,-1),k=!0),0<=f.indexOf(".")&&
(g=f.split("."),f=g.shift(),g.sort()),d&&!c.event.customEvent[f]||c.event.global[f]))if(a="object"===typeof a?a[c.expando]?a:new c.Event(f,a):new c.Event(f),a.type=f,a.isTrigger=!0,a.exclusive=k,a.namespace=g.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,k=0>f.indexOf(":")?"on"+f:"",d){if(a.result=p,a.target||(a.target=d),b=null!=b?c.makeArray(b):[],b.unshift(a),l=c.event.special[f]||{},!l.trigger||!1!==l.trigger.apply(d,b)){s=[[d,l.bindType||f]];if(!e&&
!l.noBubble&&!c.isWindow(d)){q=l.delegateType||f;g=Qa.test(q+f)?d:d.parentNode;for(h=null;g;g=g.parentNode)s.push([g,q]),h=g;h&&h===d.ownerDocument&&s.push([h.defaultView||h.parentWindow||u,q])}for(h=0;h<s.length&&!a.isPropagationStopped();h++)g=s[h][0],a.type=s[h][1],(q=(c._data(g,"events")||{})[a.type]&&c._data(g,"handle"))&&q.apply(g,b),(q=k&&g[k])&&c.acceptData(g)&&!1===q.apply(g,b)&&a.preventDefault();a.type=f;e||a.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.ownerDocument,b)||"click"===
f&&c.nodeName(d,"a")||!c.acceptData(d)||!k||!d[f]||("focus"===f||"blur"===f)&&0===a.target.offsetWidth||c.isWindow(d)||((h=d[k])&&(d[k]=null),c.event.triggered=f,d[f](),c.event.triggered=p,h&&(d[k]=h));return a.result}}else for(h in d=c.cache,d)d[h].events&&d[h].events[f]&&c.event.trigger(a,b,d[h].handle.elem,!0)}},dispatch:function(a){a=c.event.fix(a||u.event);var b=(c._data(this,"events")||{})[a.type]||[],d=b.delegateCount,e=[].slice.call(arguments,0),f=!a.exclusive&&!a.namespace,g=c.event.special[a.type]||
{},k=[],h,l,q,s,n,m,r;e[0]=a;a.delegateTarget=this;if(!g.preDispatch||!1!==g.preDispatch.call(this,a)){if(d&&(!a.button||"click"!==a.type))for(q=c(this),q.context=this.ownerDocument||this,l=a.target;l!=this;l=l.parentNode||this)if(!0!==l.disabled){n={};m=[];q[0]=l;for(h=0;h<d;h++){s=b[h];r=s.selector;if(n[r]===p){var ga=n,y=r,w;if(s.quick){w=s.quick;var x=l.attributes||{};w=(!w[1]||l.nodeName.toLowerCase()===w[1])&&(!w[2]||(x.id||{}).value===w[2])&&(!w[3]||w[3].test((x["class"]||{}).value))}else w=
q.is(r);ga[y]=w}n[r]&&m.push(s)}m.length&&k.push({elem:l,matches:m})}b.length>d&&k.push({elem:this,matches:b.slice(d)});for(h=0;h<k.length&&!a.isPropagationStopped();h++)for(d=k[h],a.currentTarget=d.elem,b=0;b<d.matches.length&&!a.isImmediatePropagationStopped();b++)if(s=d.matches[b],f||!a.namespace&&!s.namespace||a.namespace_re&&a.namespace_re.test(s.namespace))a.data=s.data,a.handleObj=s,s=((c.event.special[s.origType]||{}).handle||s.handler).apply(d.elem,e),s!==p&&(a.result=s,!1===s&&(a.preventDefault(),
a.stopPropagation()));g.postDispatch&&g.postDispatch.call(this,a);return a.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter:function(a,b){var c,e,f=b.button,g=b.fromElement;null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||m,e=c.documentElement,c=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0));!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g);a.which||f===p||(a.which=f&1?1:f&2?3:f&4?2:0);return a}},fix:function(a){if(a[c.expando])return a;var b,
d,e=a,f=c.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=c.Event(e);for(b=g.length;b;)d=g[--b],a[d]=e[d];a.target||(a.target=e.srcElement||m);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey===p&&(a.metaKey=a.ctrlKey);return f.filter?f.filter(a,e):a},special:{ready:{setup:c.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,d){c.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,
b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,d,e){a=c.extend(new c.Event,d,{type:a,isSimulated:!0,originalEvent:{}});e?c.event.trigger(a,null,b):c.event.dispatch.call(b,a);a.isDefaultPrevented()&&d.preventDefault()}};c.event.handle=c.event.dispatch;c.removeEvent=m.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a,b){if(!(this instanceof c.Event))return new c.Event(a,
b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?N:H):this.type=a;b&&c.extend(this,b);this.timeStamp=a&&a.timeStamp||c.now();this[c.expando]=!0};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=N;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=N;var a=this.originalEvent;a&&(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=N;this.stopPropagation()},isDefaultPrevented:H,isPropagationStopped:H,isImmediatePropagationStopped:H};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={delegateType:b,bindType:b,handle:function(a){var e=a.relatedTarget,f=a.handleObj,g;if(!e||e!==this&&!c.contains(this,e))a.type=f.origType,g=f.handler.apply(this,arguments),a.type=b;return g}}});c.support.submitBubbles||
(c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return!1;c.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=c.nodeName(a,"input")||c.nodeName(a,"button")?a.form:p)&&!a._submit_attached&&(c.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),a._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&c.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(c.nodeName(this,
"form"))return!1;c.event.remove(this,"._submit")}});c.support.changeBubbles||(c.event.special.change={setup:function(){if(ka.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)c.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),c.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,c.event.simulate("change",this,a,!0))});return!1}c.event.add(this,"beforeactivate._change",
function(a){a=a.target;ka.test(a.nodeName)&&!a._change_attached&&(c.event.add(a,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||c.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){c.event.remove(this,"._change");return ka.test(this.nodeName)}});c.support.focusinBubbles||
c.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){c.event.simulate(b,a.target,c.event.fix(a),!0)};c.event.special[b]={setup:function(){0===d++&&m.addEventListener(a,e,!0)},teardown:function(){0===--d&&m.removeEventListener(a,e,!0)}}});c.fn.extend({on:function(a,b,d,e,f){var g,k;if("object"===typeof a){"string"!==typeof b&&(d=d||b,b=p);for(k in a)this.on(k,b,d,a[k],f);return this}null==d&&null==e?(e=b,d=b=p):null==e&&("string"===typeof b?(e=d,d=p):(e=d,d=b,b=p));if(!1===
e)e=H;else if(!e)return this;1===f&&(g=e,e=function(a){c().off(a);return g.apply(this,arguments)},e.guid=g.guid||(g.guid=c.guid++));return this.each(function(){c.event.add(this,a,e,d,b)})},one:function(a,b,c,e){return this.on(a,b,c,e,1)},off:function(a,b,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;c(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if("object"===typeof a){for(e in a)this.off(e,b,a[e]);return this}if(!1===b||"function"===
typeof b)d=b,b=p;!1===d&&(d=H);return this.each(function(){c.event.remove(this,a,d,b)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,d){c(this.context).on(a,this.selector,b,d);return this},die:function(a,b){c(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,e){return this.on(b,a,c,e)},undelegate:function(a,b,c){return 1==arguments.length?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,
b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c._data(this,"lastToggle"+a.guid)||0)%e;c._data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,arguments)||!1};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){c.fn[b]=function(a,c){null==c&&(c=a,a=null);return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=!0);xb.test(b)&&(c.event.fixHooks[b]=c.event.keyHooks);yb.test(b)&&(c.event.fixHooks[b]=c.event.mouseHooks)});(function(){function a(a,b,c,d,f,g){f=0;for(var k=d.length;f<k;f++){var h=d[f];if(h){for(var l=!1,h=h[a];h;){if(h[e]===c){l=d[h.sizset];break}1!==h.nodeType||g||(h[e]=c,h.sizset=f);if(h.nodeName.toLowerCase()===b){l=h;break}h=h[a]}d[f]=l}}}function b(a,
b,c,d,f,g){f=0;for(var k=d.length;f<k;f++){var h=d[f];if(h){for(var l=!1,h=h[a];h;){if(h[e]===c){l=d[h.sizset];break}if(1===h.nodeType)if(g||(h[e]=c,h.sizset=f),"string"!==typeof b){if(h===b){l=!0;break}}else if(0<n.filter(b,[h]).length){l=h;break}h=h[a]}d[f]=l}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,k=!1,h=!0,l=/\\/g,
q=/\r\n/g,s=/\W/;[0,0].sort(function(){h=!1;return 0});var n=function(a,b,c,e){c=c||[];var f=b=b||m;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var k,h,l,q,s,p=!0,u=n.isXML(b),t=[],w=a;do if(d.exec(""),k=d.exec(w))if(w=k[3],t.push(k[1]),k[2]){q=k[3];break}while(k);if(1<t.length&&y.exec(a))if(2===t.length&&r.relative[t[0]])h=E(t[0]+t[1],b,e);else for(h=r.relative[t[0]]?[b]:n(t.shift(),b);t.length;)a=t.shift(),r.relative[a]&&(a+=t.shift()),h=E(a,h,e);else if(!e&&1<
t.length&&9===b.nodeType&&!u&&r.match.ID.test(t[0])&&!r.match.ID.test(t[t.length-1])&&(k=n.find(t.shift(),b,u),b=k.expr?n.filter(k.expr,k.set)[0]:k.set[0]),b)for(k=e?{expr:t.pop(),set:x(e)}:n.find(t.pop(),1!==t.length||"~"!==t[0]&&"+"!==t[0]||!b.parentNode?b:b.parentNode,u),h=k.expr?n.filter(k.expr,k.set):k.set,0<t.length?l=x(h):p=!1;t.length;)k=s=t.pop(),r.relative[s]?k=t.pop():s="",null==k&&(k=b),r.relative[s](l,k,u);else l=[];l||(l=h);l||n.error(s||a);if("[object Array]"===g.call(l))if(p)if(b&&
1===b.nodeType)for(a=0;null!=l[a];a++)l[a]&&(!0===l[a]||1===l[a].nodeType&&n.contains(b,l[a]))&&c.push(h[a]);else for(a=0;null!=l[a];a++)l[a]&&1===l[a].nodeType&&c.push(h[a]);else c.push.apply(c,l);else x(l,c);q&&(n(q,f,c,e),n.uniqueSort(c));return c};n.uniqueSort=function(a){if(C&&(k=h,a.sort(C),k))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};n.matches=function(a,b){return n(a,null,null,b)};n.matchesSelector=function(a,b){return 0<n(b,null,null,[a]).length};n.find=function(a,
b,c){var d,e,f,g,k,h;if(!a)return[];e=0;for(f=r.order.length;e<f;e++)if(k=r.order[e],g=r.leftMatch[k].exec(a))if(h=g[1],g.splice(1,1),"\\"!==h.substr(h.length-1)&&(g[1]=(g[1]||"").replace(l,""),d=r.find[k](g,b,c),null!=d)){a=a.replace(r.match[k],"");break}d||(d="undefined"!==typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};n.filter=function(a,b,c,d){for(var e,f,g,k,h,l,q,s,m=a,t=[],u=b,w=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(g in r.filter)if(null!=(e=r.leftMatch[g].exec(a))&&
e[2]&&(l=r.filter[g],h=e[1],f=!1,e.splice(1,1),"\\"!==h.substr(h.length-1))){u===t&&(t=[]);if(r.preFilter[g])if(e=r.preFilter[g](e,u,c,t,d,w),!e)f=k=!0;else if(!0===e)continue;if(e)for(q=0;null!=(h=u[q]);q++)h&&(k=l(h,e,q,u),s=d^k,c&&null!=k?s?f=!0:u[q]=!1:s&&(t.push(h),f=!0));if(k!==p){c||(u=t);a=a.replace(r.match[g],"");if(!f)return[];break}}if(a===m)if(null==f)n.error(a);else break;m=a}return u};n.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var u=n.getText=function(a){var b,
c;b=a.nodeType;var d="";if(b)if(1===b||9===b||11===b){if("string"===typeof a.textContent)return a.textContent;if("string"===typeof a.innerText)return a.innerText.replace(q,"");for(a=a.firstChild;a;a=a.nextSibling)d+=u(a)}else{if(3===b||4===b)return a.nodeValue}else for(b=0;c=a[b];b++)8!==c.nodeType&&(d+=u(c));return d},r=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},
type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c="string"===typeof b,d=c&&!s.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&1!==f.nodeType;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&n.filter(b,a,!0)},">":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!s.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<f;e++)(c=
a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&n.filter(b,a,!0)}},"":function(c,d,e){var g,k=f++,h=b;"string"!==typeof d||s.test(d)||(g=d=d.toLowerCase(),h=a);h("parentNode",d,k,c,g,e)},"~":function(c,d,e){var g,k=f++,h=b;"string"!==typeof d||s.test(d)||(g=d=d.toLowerCase(),h=a);h("previousSibling",d,k,c,g,e)}},find:{ID:function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if("undefined"!==typeof b.getElementsByName){for(var c=
[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return 0===c.length?null:c}},TAG:function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(l,"")+" ";if(f)return a;f=0;for(var g;null!=(g=b[f]);f++)g&&(e^(g.className&&0<=(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a))?c||d.push(g):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(l,
"")},TAG:function(a,b){return a[1].replace(l,"").toLowerCase()},CHILD:function(a){if("nth"===a[1]){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=f++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(l,"");!f&&r.attrMap[b]&&(a[1]=r.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(l,"");"~="===a[2]&&(a[4]=" "+a[4]+
" ");return a},PSEUDO:function(a,b,c,e,f){if("not"===a[1])if(1<(d.exec(a[3])||"").length||/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else return a=n.filter(a[3],b,c,1^f),c||e.push.apply(e,a),!1;else if(r.match.POS.test(a[0])||r.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){a.parentNode&&
a.parentNode.selectedIndex;return!0===a.selected},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!n(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"input"===a.nodeName.toLowerCase()&&"text"===c&&(b===c||null===b)},radio:function(a){return"input"===a.nodeName.toLowerCase()&&"radio"===a.type},checkbox:function(a){return"input"===a.nodeName.toLowerCase()&&"checkbox"===
a.type},file:function(a){return"input"===a.nodeName.toLowerCase()&&"file"===a.type},password:function(a){return"input"===a.nodeName.toLowerCase()&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"submit"===a.type},image:function(a){return"input"===a.nodeName.toLowerCase()&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();
return"input"===b&&"button"===a.type||"button"===b},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,
b,c,d){var e=b[1],f=r.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||u([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}n.error(e)},CHILD:function(a,b){var c,d,f,g,k,h;c=b[1];h=a;switch(c){case "only":case "first":for(;h=h.previousSibling;)if(1===h.nodeType)return!1;if("first"===c)return!0;h=a;case "last":for(;h=h.nextSibling;)if(1===h.nodeType)return!1;return!0;case "nth":c=b[2];d=b[3];if(1===c&&0===
d)return!0;f=b[0];if((g=a.parentNode)&&(g[e]!==f||!a.nodeIndex)){k=0;for(h=g.firstChild;h;h=h.nextSibling)1===h.nodeType&&(h.nodeIndex=++k);g[e]=f}h=a.nodeIndex-d;return 0===c?0===h:0===h%c&&0<=h/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)},ATTR:function(a,b){var c=b[1],c=n.attr?n.attr(a,c):r.attrHandle[c]?
r.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return null==c?"!="===e:!e&&n.attr?null!=c:"="===e?d===f:"*="===e?0<=d.indexOf(f):"~="===e?0<=(" "+d+" ").indexOf(f):f?"!="===e?d!==f:"^="===e?0===d.indexOf(f):"$="===e?d.substr(d.length-f.length)===f:"|="===e?d===f||d.substr(0,f.length+1)===f+"-":!1:d&&!1!==c},POS:function(a,b,c,d){var e=r.setFilters[b[2]];if(e)return e(a,c,b,d)}}},y=r.match.POS,B=function(a,b){return"\\"+(b-0+1)},w;for(w in r.match)r.match[w]=RegExp(r.match[w].source+
/(?![^\[]*\])(?![^\(]*\))/.source),r.leftMatch[w]=RegExp(/(^(?:.|\r|\n)*?)/.source+r.match[w].source.replace(/\\(\d+)/g,B));r.match.globalPOS=y;var x=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(m.documentElement.childNodes,0)[0].nodeType}catch(z){x=function(a,b){var c=0,d=b||[];if("[object Array]"===g.call(a))Array.prototype.push.apply(d,a);else if("number"===typeof a.length)for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);
return d}}var C,t;m.documentElement.compareDocumentPosition?C=function(a,b){return a===b?(k=!0,0):a.compareDocumentPosition&&b.compareDocumentPosition?a.compareDocumentPosition(b)&4?-1:1:a.compareDocumentPosition?-1:1}:(C=function(a,b){if(a===b)return k=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var g=c;if(c===d)return t(a,b);if(!c)return-1;if(!d)return 1;for(;g;)e.unshift(g),g=g.parentNode;for(g=d;g;)f.unshift(g),g=g.parentNode;
c=e.length;d=f.length;for(g=0;g<c&&g<d;g++)if(e[g]!==f[g])return t(e[g],f[g]);return g===c?t(a,f[g],-1):t(e[g],b,1)},t=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});(function(){var a=m.createElement("div"),b="script"+(new Date).getTime(),c=m.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);m.getElementById(b)&&(r.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?
b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:p:[]},r.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=m.createElement("div");a.appendChild(m.createComment(""));0<a.getElementsByTagName("*").length&&(r.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if("*"===a[1]){for(var d=[],e=0;c[e];e++)1===c[e].nodeType&&
d.push(c[e]);c=d}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&(r.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();m.querySelectorAll&&function(){var a=n,b=m.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){n=function(b,c,d,e){c=c||m;if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&
(1===c.nodeType||9===c.nodeType)){if(f[1])return x(c.getElementsByTagName(b),d);if(f[2]&&r.find.CLASS&&c.getElementsByClassName)return x(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return x([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return x([g],d)}else return x([],d)}try{return x(c.querySelectorAll(b),d)}catch(h){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,k=(g=c.getAttribute("id"))||"__sizzle__",
l=c.parentNode,q=/^\s*[+~]/.test(b);g?k=k.replace(/'/g,"\\$&"):c.setAttribute("id",k);q&&l&&(c=c.parentNode);try{if(!q||l)return x(c.querySelectorAll("[id='"+k+"'] "+b),d)}catch(s){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)n[c]=a[c];b=null}}();(function(){var a=m.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(m.createElement("div"),"div"),d=!1;try{b.call(m.documentElement,"[test!='']:sizzle")}catch(e){d=
!0}n.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(d||!r.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0<n(e,null,null,[a]).length}}})();(function(){var a=m.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&
(r.order.splice(1,0,"CLASS"),r.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null))})();n.contains=m.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:m.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var E=function(a,b,c){var d,
e=[],f="";for(b=b.nodeType?[b]:b;d=r.match.PSEUDO.exec(a);)f+=d[0],a=a.replace(r.match.PSEUDO,"");a=r.relative[a]?a+"*":a;d=0;for(var g=b.length;d<g;d++)n(a,b[d],e,c);return n.filter(f,e)};n.attr=c.attr;n.selectors.attrMap={};c.find=n;c.expr=n.selectors;c.expr[":"]=c.expr.filters;c.unique=n.uniqueSort;c.text=n.getText;c.isXMLDoc=n.isXML;c.contains=n.contains})();var Bb=/Until$/,Cb=/^(?:parents|prevUntil|prevAll)/,Db=/,/,kb=/^.[^:#\[\.,]*$/,Eb=Array.prototype.slice,Sa=c.expr.match.globalPOS,Fb={children:!0,
contents:!0,next:!0,prev:!0};c.fn.extend({find:function(a){var b=this,d,e;if("string"!==typeof a)return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return!0});var f=this.pushStack("","find",a),g,k,h;d=0;for(e=this.length;d<e;d++)if(g=f.length,c.find(a,this[d],f),0<d)for(k=g;k<f.length;k++)for(h=0;h<g;h++)if(f[h]===f[k]){f.splice(k--,1);break}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return!0})},
not:function(a){return this.pushStack(sa(this,a,!1),"not",a)},filter:function(a){return this.pushStack(sa(this,a,!0),"filter",a)},is:function(a){return!!a&&("string"===typeof a?Sa.test(a)?0<=c(a,this.context).index(this[0]):0<c.filter(a,this).length:0<this.filter(a).length)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){for(f=1;g&&g.ownerDocument&&g!==b;){for(e=0;e<a.length;e++)c(g).is(a[e])&&d.push({selector:a[e],elem:g,level:f});g=g.parentNode;f++}return d}var k=Sa.test(a)||"string"!==
typeof a?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(k?-1<k.index(g):c.find.matchesSelector(g,a)){d.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===b||11===g.nodeType)break;d=1<d.length?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return a?"string"===typeof a?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var d="string"===typeof a?c(a,b):c.makeArray(a&&
a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(d[0]&&d[0].parentNode&&11!==d[0].parentNode.nodeType&&e[0]&&e[0].parentNode&&11!==e[0].parentNode.nodeType?c.unique(e):e)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Bb.test(a)||(e=d);e&&"string"===typeof e&&(f=c.filter(e,f));f=1<this.length&&!Fb[a]?c.unique(f):f;(1<this.length||Db.test(e))&&Cb.test(a)&&(f=f.reverse());return this.pushStack(f,a,Eb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return 1===b.length?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&9!==a.nodeType&&(d===p||1!==a.nodeType||!c(a).is(d));)1===a.nodeType&&
e.push(a),a=a[b];return e},nth:function(a,b,c,e){b=b||1;for(e=0;a&&(1!==a.nodeType||++e!==b);a=a[c]);return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var ua="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Gb=/ jQuery\d+="(?:\d+|null)"/g,la=/^\s+/,Ta=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ua=/<([\w:]+)/,
Hb=/<tbody/i,Ib=/<|&#?\w+;/,Jb=/<(?:script|style)/i,Kb=/<(?:script|object|embed|option|style)/i,Va=RegExp("<(?:"+ua+")[\\s/>]","i"),Wa=/checked\s*(?:[^=]|=\s*.checked.)/i,Xa=/\/(java|ecma)script/i,Lb=/^\s*<!(?:\[CDATA\[|\-\-)/,y={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,"",""]},ma=ta(m);y.optgroup=y.option;y.tbody=y.tfoot=y.colgroup=y.caption=y.thead;y.th=y.td;c.support.htmlSerialize||(y._default=[1,"div<div>","</div>"]);c.fn.extend({text:function(a){return c.access(this,function(a){return a===p?c.text(this):this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=
c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?a.call(this,d):
a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&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)});if(arguments.length){var a=
c.clean(arguments);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)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;null!=(e=this[d]);d++)if(!a||c.filter(a,[e]).length)b||1!==e.nodeType||(c.cleanData(e.getElementsByTagName("*")),
c.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){return c.access(this,function(a){var d=this[0]||{},e=0,f=this.length;if(a===p)return 1===d.nodeType?d.innerHTML.replace(Gb,""):null;if("string"===
typeof a&&!(Jb.test(a)||!c.support.leadingWhitespace&&la.test(a)||y[(Ua.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(Ta,"<$1></$2>");try{for(;e<f;e++)d=this[e]||{},1===d.nodeType&&(c.cleanData(d.getElementsByTagName("*")),d.innerHTML=a);d=0}catch(g){}}d&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});"string"!==typeof a&&(a=c(a).detach());
return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,d){var e,f,g,k=a[0],h=[];if(!c.support.checkClone&&3===arguments.length&&"string"===typeof k&&Wa.test(k))return this.each(function(){c(this).domManip(a,b,d,!0)});if(c.isFunction(k))return this.each(function(e){var f=c(this);a[0]=k.call(this,
e,b?f.html():p);f.domManip(a,b,d)});if(this[0]){e=k&&k.parentNode;e=c.support.parentNode&&e&&11===e.nodeType&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,h);g=e.fragment;if(f=1===g.childNodes.length?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var l=this.length,q=l-1;f<l;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],e.cacheable||1<l&&f<q?
c.clone(g,!0,!0):g)}h.length&&c.each(h,function(a,b){b.src?c.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Lb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)})}return this}});c.buildFragment=function(a,b,d){var e,f,g,k,h=a[0];b&&b[0]&&(k=b[0].ownerDocument||b[0]);k.createDocumentFragment||(k=m);1===a.length&&"string"===typeof h&&512>h.length&&k===m&&"<"===h.charAt(0)&&!(Kb.test(h)||!c.support.checkClone&&Wa.test(h)||
!c.support.html5Clone&&Va.test(h))&&(f=!0,(g=c.fragments[h])&&1!==g&&(e=g));e||(e=k.createDocumentFragment(),c.clean(a,k,e,d));f&&(c.fragments[h]=g?e:1);return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=1===this.length&&this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===d.length)return d[b](this[0]),this;for(var f=
0,g=d.length;f<g;f++){var k=(0<f?this.clone(!0):this).get();c(d[f])[b](k);e=e.concat(k)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e,f,g;c.support.html5Clone||c.isXMLDoc(a)||!Va.test("<"+a.nodeName+">")?e=a.cloneNode(!0):(e=m.createElement("div"),ma.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var k=e;if(!(c.support.noCloneEvent&&c.support.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||c.isXMLDoc(a)))for(wa(a,k),e=T(a),f=T(k),g=0;e[g];++g)f[g]&&wa(e[g],
f[g]);if(b&&(va(a,k),d))for(e=T(a),f=T(k),g=0;e[g];++g)va(e[g],f[g]);return k},clean:function(a,b,d,e){var f,g=[];b=b||m;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||m);for(var k=0,h;null!=(h=a[k]);k++)if("number"===typeof h&&(h+=""),h){if("string"===typeof h)if(Ib.test(h)){h=h.replace(Ta,"<$1></$2>");f=(Ua.exec(h)||["",""])[1].toLowerCase();var l=y[f]||y._default,q=l[0],s=b.createElement("div"),n=ma.childNodes;b===m?ma.appendChild(s):ta(b).appendChild(s);for(s.innerHTML=
l[1]+h+l[2];q--;)s=s.lastChild;if(!c.support.tbody)for(q=Hb.test(h),l="table"!==f||q?"<table>"!==l[1]||q?[]:s.childNodes:s.firstChild&&s.firstChild.childNodes,f=l.length-1;0<=f;--f)c.nodeName(l[f],"tbody")&&!l[f].childNodes.length&&l[f].parentNode.removeChild(l[f]);!c.support.leadingWhitespace&&la.test(h)&&s.insertBefore(b.createTextNode(la.exec(h)[0]),s.firstChild);h=s.childNodes;s&&(s.parentNode.removeChild(s),0<n.length&&(s=n[n.length-1])&&s.parentNode&&s.parentNode.removeChild(s))}else h=b.createTextNode(h);
var p;if(!c.support.appendChecked)if(h[0]&&"number"===typeof(p=h.length))for(f=0;f<p;f++)ya(h[f]);else ya(h);h.nodeType?g.push(h):g=c.merge(g,h)}if(d)for(a=function(a){return!a.type||Xa.test(a.type)},k=0;g[k];k++)b=g[k],e&&c.nodeName(b,"script")&&(!b.type||Xa.test(b.type))?e.push(b.parentNode?b.parentNode.removeChild(b):b):(1===b.nodeType&&(h=c.grep(b.getElementsByTagName("script"),a),g.splice.apply(g,[k+1,0].concat(h))),d.appendChild(b));return g},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,
g=c.support.deleteExpando,k=0,h;null!=(h=a[k]);k++)if(!h.nodeName||!c.noData[h.nodeName.toLowerCase()])if(d=h[c.expando]){if((b=e[d])&&b.events){for(var l in b.events)f[l]?c.event.remove(h,l):c.removeEvent(h,l,b.handle);b.handle&&(b.handle.elem=null)}g?delete h[c.expando]:h.removeAttribute&&h.removeAttribute(c.expando);delete e[d]}}});var na=/alpha\([^)]*\)/i,Mb=/opacity=([^)]*)/,Nb=/([A-Z]|^ms)/g,Ob=/^[\-+]?(?:\d*\.)?\d+$/i,ca=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Pb=/^([\-+])=([\-+.\de]+)/,Qb=/^margin/,
Rb={position:"absolute",visibility:"hidden",display:"block"},M=["Top","Right","Bottom","Left"],I,Ya,Za;c.fn.css=function(a,b){return c.access(this,function(a,b,f){return f!==p?c.style(a,b,f):c.css(a,b)},a,b,1<arguments.length)};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=I(a,"opacity");return""===c?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},
style:function(a,b,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g=c.camelCase(b),k=a.style,h=c.cssHooks[g];b=c.cssProps[g]||g;if(d!==p){if(e=typeof d,"string"===e&&(f=Pb.exec(d))&&(d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b)),e="number"),!(null==d||"number"===e&&isNaN(d)||("number"!==e||c.cssNumber[g]||(d+="px"),h&&"set"in h&&(d=h.set(a,d))===p)))try{k[b]=d}catch(l){}}else return h&&"get"in h&&(f=h.get(a,!1,e))!==p?f:k[b]}},css:function(a,b,d){var e,f;b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||
b;"cssFloat"===b&&(b="float");if(f&&"get"in f&&(e=f.get(a,!0,d))!==p)return e;if(I)return I(a,b)},swap:function(a,b,c){var e={},f;for(f in b)e[f]=a.style[f],a.style[f]=b[f];c=c.call(a);for(f in b)a.style[f]=e[f];return c}});c.curCSS=c.css;m.defaultView&&m.defaultView.getComputedStyle&&(Ya=function(a,b){var d,e,f,g=a.style;b=b.replace(Nb,"-$1").toLowerCase();(e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))&&(d=f.getPropertyValue(b),""!==d||c.contains(a.ownerDocument.documentElement,
a)||(d=c.style(a,b)));!c.support.pixelMargin&&f&&Qb.test(b)&&ca.test(d)&&(e=g.width,g.width=d,d=f.width,g.width=e);return d});m.documentElement.currentStyle&&(Za=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;null==f&&g&&(c=g[b])&&(f=c);if(ca.test(f)){c=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left="fontSize"===b?"1em":f;f=g.pixelLeft+"px";g.left=c;e&&(a.runtimeStyle.left=e)}return""===f?"auto":f});I=Ya||Za;c.each(["height","width"],
function(a,b){c.cssHooks[b]={get:function(a,e,f){if(e)return 0!==a.offsetWidth?za(a,b,f):c.swap(a,Rb,function(){return za(a,b,f)})},set:function(a,b){return Ob.test(b)?b+"px":b}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Mb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNumeric(b)?"alpha(opacity="+100*b+")":"",g=e&&e.filter||d.filter||"";d.zoom=1;if(1<=b&&""===
c.trim(g.replace(na,""))&&(d.removeAttribute("filter"),e&&!e.filter))return;d.filter=na.test(g)?g.replace(na,f):g+" "+f}});c(function(){c.support.reliableMarginRight||(c.cssHooks.marginRight={get:function(a,b){return c.swap(a,{display:"inline-block"},function(){return b?I(a,"margin-right"):a.style.marginRight})}})});c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(a){var b=a.offsetHeight;return 0===a.offsetWidth&&0===b||!c.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||
c.css(a,"display"))},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)});c.each({margin:"",padding:"",border:"Width"},function(a,b){c.cssHooks[a+b]={expand:function(c){var e="string"===typeof c?c.split(" "):[c],f={};for(c=0;4>c;c++)f[a+M[c]+b]=e[c]||e[c-2]||e[0];return f}}});var Sb=/%20/g,lb=/\[\]$/,$a=/\r?\n/g,Tb=/#.*$/,Ub=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Vb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Wb=/^(?:GET|HEAD)$/,
Xb=/^\/\//,ab=/\?/,Yb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Zb=/^(?:select|textarea)/i,Ba=/\s+/,$b=/([?&])_=[^&]*/,bb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,cb=c.fn.load,da={},db={},K,L,eb=["*/"]+["*"];try{K=ob.href}catch(fc){K=m.createElement("a"),K.href="",K=K.href}L=bb.exec(K.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if("string"!==typeof a&&cb)return cb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e){var f=a.slice(e,a.length);
a=a.slice(0,e)}e="GET";b&&(c.isFunction(b)?(d=b,b=p):"object"===typeof b&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?c("<div>").append(e.replace(Yb,"")).find(f):e));d&&g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):
this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Zb.test(this.nodeName)||Vb.test(this.type))}).map(function(a,b){var d=c(this).val();return null==d?null:c.isArray(d)?c.map(d,function(a,c){return{name:b.name,value:a.replace($a,"\r\n")}}):{name:b.name,value:d.replace($a,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.on(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,
e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=p);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,p,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?Ca(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);Ca(a,b);return a},ajaxSettings:{url:K,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(L[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,
async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":eb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":u.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Aa(da),ajaxTransport:Aa(db),ajax:function(a,b){function d(a,b,d,n){if(2!==x){x=2;y&&clearTimeout(y);u=p;m=n||"";t.readyState=0<a?
4:0;var s,r,v;n=b;if(d){var w=e,C=t,E=w.contents,z=w.dataTypes,M=w.responseFields,F,A,P,K;for(A in M)A in d&&(C[M[A]]=d[A]);for(;"*"===z[0];)z.shift(),F===p&&(F=w.mimeType||C.getResponseHeader("content-type"));if(F)for(A in E)if(E[A]&&E[A].test(F)){z.unshift(A);break}if(z[0]in d)P=z[0];else{for(A in d){if(!z[0]||w.converters[A+" "+z[0]]){P=A;break}K||(K=A)}P=P||K}P?(P!==z[0]&&z.unshift(P),d=d[P]):d=void 0}else d=p;if(200<=a&&300>a||304===a){if(e.ifModified){if(F=t.getResponseHeader("Last-Modified"))c.lastModified[q]=
F;if(F=t.getResponseHeader("Etag"))c.etag[q]=F}if(304===a)n="notmodified",s=!0;else try{F=e;F.dataFilter&&(d=F.dataFilter(d,F.dataType));var L=F.dataTypes;A={};var H,I,O=L.length,J,Q=L[0],G,N,R,S,U;for(H=1;H<O;H++){if(1===H)for(I in F.converters)"string"===typeof I&&(A[I.toLowerCase()]=F.converters[I]);G=Q;Q=L[H];if("*"===Q)Q=G;else if("*"!==G&&G!==Q){N=G+" "+Q;R=A[N]||A["* "+Q];if(!R)for(S in U=p,A)if(J=S.split(" "),J[0]===G||"*"===J[0])if(U=A[J[1]+" "+Q]){S=A[S];!0===S?R=U:!0===U&&(R=S);break}R||
U||c.error("No conversion from "+N.replace(" "," to "));!0!==R&&(d=R?R(d):U(S(d)))}}r=d;n="success";s=!0}catch(T){n="parsererror",v=T}}else if(v=n,!n||a)n="error",0>a&&(a=0);t.status=a;t.statusText=""+(b||n);s?k.resolveWith(f,[r,n,t]):k.rejectWith(f,[t,n,v]);t.statusCode(l);l=p;B&&g.trigger("ajax"+(s?"Success":"Error"),[t,e,s?r:v]);h.fireWith(f,[t,n]);B&&(g.trigger("ajaxComplete",[t,e]),--c.active||c.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=p);b=b||{};var e=c.ajaxSetup({},b),f=e.context||
e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,k=c.Deferred(),h=c.Callbacks("once memory"),l=e.statusCode||{},q,s={},n={},m,r,u,y,w,x=0,B,C,t={readyState:0,setRequestHeader:function(a,b){if(!x){var c=a.toLowerCase();a=n[c]=n[c]||a;s[a]=b}return this},getAllResponseHeaders:function(){return 2===x?m:null},getResponseHeader:function(a){var b;if(2===x){if(!r)for(r={};b=Ub.exec(m);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return b===p?null:b},overrideMimeType:function(a){x||(e.mimeType=a);
return this},abort:function(a){a=a||"abort";u&&u.abort(a);d(0,a);return this}};k.promise(t);t.success=t.done;t.error=t.fail;t.complete=h.add;t.statusCode=function(a){if(a){var b;if(2>x)for(b in a)l[b]=[l[b],a[b]];else b=a[t.status],t.then(b,b)}return this};e.url=((a||e.url)+"").replace(Tb,"").replace(Xb,L[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Ba);null==e.crossDomain&&(w=bb.exec(e.url.toLowerCase()),e.crossDomain=!(!w||w[1]==L[1]&&w[2]==L[2]&&(w[3]||("http:"===w[1]?80:443))==
(L[3]||("http:"===L[1]?80:443))));e.data&&e.processData&&"string"!==typeof e.data&&(e.data=c.param(e.data,e.traditional));W(da,e,b,t);if(2===x)return!1;B=e.global;e.type=e.type.toUpperCase();e.hasContent=!Wb.test(e.type);B&&0===c.active++&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(ab.test(e.url)?"&":"?")+e.data,delete e.data),q=e.url,!1===e.cache)){w=c.now();var E=e.url.replace($b,"$1_="+w);e.url=E+(E===e.url?(ab.test(e.url)?"&":"?")+"_="+w:"")}(e.data&&e.hasContent&&!1!==e.contentType||
b.contentType)&&t.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(q=q||e.url,c.lastModified[q]&&t.setRequestHeader("If-Modified-Since",c.lastModified[q]),c.etag[q]&&t.setRequestHeader("If-None-Match",c.etag[q]));t.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+eb+"; q=0.01":""):e.accepts["*"]);for(C in e.headers)t.setRequestHeader(C,e.headers[C]);if(e.beforeSend&&(!1===e.beforeSend.call(f,t,e)||2===x))return t.abort(),
!1;for(C in{success:1,error:1,complete:1})t[C](e[C]);if(u=W(db,e,b,t)){t.readyState=1;B&&g.trigger("ajaxSend",[t,e]);e.async&&0<e.timeout&&(y=setTimeout(function(){t.abort("timeout")},e.timeout));try{x=1,u.send(s,d)}catch(v){if(2>x)d(-1,v);else throw v;}}else d(-1,"No Transport");return t},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===p&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,
function(){e(this.name,this.value)});else for(var f in a)ea(f,a[f],b,e);return d.join("&").replace(Sb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var ac=c.now(),$=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+ac++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b="string"===typeof a.data&&/^application\/x\-www\-form\-urlencoded/.test(a.contentType);if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&($.test(a.url)||b&&$.test(a.data))){var e,f=a.jsonpCallback=
c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=u[f],k=a.url,h=a.data,l="$1"+f+"$2";!1!==a.jsonp&&(k=k.replace($,l),a.url===k&&(b&&(h=h.replace($,l)),a.data===h&&(k+=(/\?/.test(k)?"&":"?")+a.jsonp+"="+f)));a.url=k;a.data=h;u[f]=function(a){e=[a]};d.always(function(){u[f]=g;if(e&&c.isFunction(g))u[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){a.cache===p&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=m.head||m.getElementsByTagName("head")[0]||m.documentElement;return{send:function(e,f){b=m.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,
e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=p,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var oa=u.ActiveXObject?function(){for(var a in G)G[a](0,1)}:!1,bc=0,G;c.ajaxSettings.xhr=u.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Da()))a:{try{a=new u.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Da;(function(a){c.extend(c.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,k;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(k in a.xhrFields)f[k]=a.xhrFields[k];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);a.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");try{for(k in d)f.setRequestHeader(k,
d[k])}catch(h){}f.send(a.hasContent&&a.data||null);b=function(d,h){var k,n,m,r,u;try{if(b&&(h||4===f.readyState))if(b=p,g&&(f.onreadystatechange=c.noop,oa&&delete G[g]),h)4!==f.readyState&&f.abort();else{k=f.status;m=f.getAllResponseHeaders();r={};(u=f.responseXML)&&u.documentElement&&(r.xml=u);try{r.text=f.responseText}catch(y){}try{n=f.statusText}catch(w){n=""}k||!a.isLocal||a.crossDomain?1223===k&&(k=204):k=r.text?200:404}}catch(x){h||e(-1,x)}r&&e(k,n,r,m)};a.async&&4!==f.readyState?(g=++bc,oa&&
(G||(G={},c(u).unload(oa)),G[g]=b),f.onreadystatechange=b):b()},abort:function(){b&&b(0,1)}}}});var fa={},B,J,cc=/^(?:toggle|show|hide)$/,dc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,aa,Y=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],X;c.fn.extend({show:function(a,b,d){if(a||0===a)return this.animate(O("show",3),a,b,d);d=0;for(var e=this.length;d<e;d++)a=this[d],a.style&&(b=a.style.display,c._data(a,"olddisplay")||
"none"!==b||(b=a.style.display=""),(""===b&&"none"===c.css(a,"display")||!c.contains(a.ownerDocument.documentElement,a))&&c._data(a,"olddisplay",Fa(a.nodeName)));for(d=0;d<e;d++)if(a=this[d],a.style&&(b=a.style.display,""===b||"none"===b))a.style.display=c._data(a,"olddisplay")||"";return this},hide:function(a,b,d){if(a||0===a)return this.animate(O("hide",3),a,b,d);d=0;for(var e=this.length;d<e;d++)a=this[d],a.style&&(b=c.css(a,"display"),"none"===b||c._data(a,"olddisplay")||c._data(a,"olddisplay",
b));for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e="boolean"===typeof a;c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):null==a||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(O("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){function f(){!1===
g.queue&&c._mark(this);var b=c.extend({},g),d=1===this.nodeType,e=d&&c(this).is(":hidden"),f,m,n,p,r;b.animatedProperties={};for(n in a)if(f=c.camelCase(n),n!==f&&(a[f]=a[n],delete a[n]),(m=c.cssHooks[f])&&"expand"in m)for(n in p=m.expand(a[f]),delete a[f],p)n in a||(a[n]=p[n]);for(f in a){m=a[f];c.isArray(m)?(b.animatedProperties[f]=m[1],m=a[f]=m[0]):b.animatedProperties[f]=b.specialEasing&&b.specialEasing[f]||b.easing||"swing";if("hide"===m&&e||"show"===m&&!e)return b.complete.call(this);!d||"height"!==
f&&"width"!==f||(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===c.css(this,"display")&&"none"===c.css(this,"float")&&(c.support.inlineBlockNeedsLayout&&"inline"!==Fa(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=b.overflow&&(this.style.overflow="hidden");for(n in a)if(d=new c.fx(this,b,n),m=a[n],cc.test(m))if(f=c._data(this,"toggle"+n)||("toggle"===m?e?"show":"hide":0))c._data(this,"toggle"+n,"show"===f?"hide":"show"),d[f]();else d[m]();
else f=dc.exec(m),p=d.cur(),f?(m=parseFloat(f[2]),r=f[3]||(c.cssNumber[n]?"":"px"),"px"!==r&&(c.style(this,n,(m||1)+r),p*=(m||1)/d.cur(),c.style(this,n,p+r)),f[1]&&(m=("-="===f[1]?-1:1)*m+p),d.custom(p,m,r)):d.custom(p,m,"");return!0}var g=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(g.complete,[!1]);a=c.extend({},a);return!1===g.queue?this.each(f):this.queue(g.queue,f)},stop:function(a,b,d){"string"!==typeof a&&(d=b,b=a,a=p);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b,
f=!1,g=c.timers,k=c._data(this);d||c._unmark(!0,this);if(null==a)for(b in k){if(k[b]&&k[b].stop&&b.indexOf(".run")===b.length-4){var h=k[b];c.removeData(this,b,!0);h.stop(d)}}else k[b=a+".run"]&&k[b].stop&&(k=k[b],c.removeData(this,b,!0),k.stop(d));for(b=g.length;b--;)if(g[b].elem===this&&(null==a||g[b].queue===a)){if(d)g[b](!0);else g[b].saveState();f=!0;g.splice(b,1)}d&&f||c.dequeue(this,a)})}});c.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){c.fn[a]=function(a,c,f){return this.animate(b,a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&"object"===typeof a?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:"number"===typeof e.duration?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;if(null==e.queue||!0===e.queue)e.queue="fx";e.old=e.complete;e.complete=function(a){c.isFunction(e.old)&&
e.old.call(this);e.queue?c.dequeue(this,e.queue):!1!==a&&c._unmark(this)};return e},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+0.5}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];
var a,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?b&&"auto"!==b?b:0:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=X||Ea();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){c._data(f.elem,"fxshow"+f.prop)===p&&(f.options.hide?c._data(f.elem,"fxshow"+f.prop,f.start):f.options.show&&c._data(f.elem,"fxshow"+f.prop,f.end))};
e()&&c.timers.push(e)&&!aa&&(aa=setInterval(g.tick,g.interval))},show:function(){var a=c._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||c.style(this.elem,this.prop);this.options.show=!0;a!==p?this.custom(this.cur(),a):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c._data(this.elem,"fxshow"+this.prop)||c.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b,
d=X||Ea(),e=!0,f=this.elem,g=this.options;if(a||d>=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(b in g.animatedProperties)!0!==g.animatedProperties[b]&&(e=!1);if(e){null==g.overflow||c.support.shrinkWrapBlocks||c.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]});g.hide&&c(f).hide();if(g.hide||g.show)for(b in g.animatedProperties)c.style(f,b,g.orig[b]),c.removeData(f,"fxshow"+b,!0),c.removeData(f,"toggle"+
b,!0);if(a=g.complete)g.complete=!1,a.call(f)}return!1}Infinity==g.duration?this.now=d:(a=d-this.startTime,this.state=a/g.duration,this.pos=c.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}};c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d<b.length;d++)a=b[d],a()||b[d]!==a||b.splice(d--,1);b.length||c.fx.stop()},interval:13,stop:function(){clearInterval(aa);aa=null},speeds:{slow:600,fast:200,
_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});c.each(Y.concat.apply([],Y),function(a,b){b.indexOf("margin")&&(c.fx.step[b]=function(a){c.style(a.elem,b,Math.max(0,a.now)+a.unit)})});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var fb,ec=/^t(?:able|d|h)$/i,gb=/^(?:body|html)$/i;
fb="getBoundingClientRect"in m.documentElement?function(a,b,d,e){try{e=a.getBoundingClientRect()}catch(f){}if(!e||!c.contains(d,a))return e?{top:e.top,left:e.left}:{top:0,left:0};a=b.body;b=Ga(b);return{top:e.top+(b.pageYOffset||c.support.boxModel&&d.scrollTop||a.scrollTop)-(d.clientTop||a.clientTop||0),left:e.left+(b.pageXOffset||c.support.boxModel&&d.scrollLeft||a.scrollLeft)-(d.clientLeft||a.clientLeft||0)}}:function(a,b,d){var e,f=a.offsetParent,g=b.body;e=(b=b.defaultView)?b.getComputedStyle(a,
null):a.currentStyle;for(var k=a.offsetTop,h=a.offsetLeft;(a=a.parentNode)&&a!==g&&a!==d&&(!c.support.fixedPosition||"fixed"!==e.position);)e=b?b.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,h-=a.scrollLeft,a===f&&(k+=a.offsetTop,h+=a.offsetLeft,!c.support.doesNotAddBorder||c.support.doesAddBorderForTableAndCells&&ec.test(a.nodeName)||(k+=parseFloat(e.borderTopWidth)||0,h+=parseFloat(e.borderLeftWidth)||0),f=a.offsetParent),c.support.subtractsBorderForOverflowNotVisible&&"visible"!==e.overflow&&
(k+=parseFloat(e.borderTopWidth)||0,h+=parseFloat(e.borderLeftWidth)||0);if("relative"===e.position||"static"===e.position)k+=g.offsetTop,h+=g.offsetLeft;c.support.fixedPosition&&"fixed"===e.position&&(k+=Math.max(d.scrollTop,g.scrollTop),h+=Math.max(d.scrollLeft,g.scrollLeft));return{top:k,left:h}};c.fn.offset=function(a){if(arguments.length)return a===p?this:this.each(function(b){c.offset.setOffset(this,a,b)});var b=this[0],d=b&&b.ownerDocument;return d?b===d.body?c.offset.bodyOffset(b):fb(b,d,
d.documentElement):null};c.offset={bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(c.css(a,"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");"static"===e&&(a.style.position="relative");var f=c(a),g=f.offset(),k=c.css(a,"top"),h=c.css(a,"left"),l={},m={};("absolute"===e||"fixed"===e)&&-1<c.inArray("auto",[k,h])?(m=f.position(),e=m.top,h=m.left):(e=parseFloat(k)||
0,h=parseFloat(h)||0);c.isFunction(b)&&(b=b.call(a,d,g));null!=b.top&&(l.top=b.top-g.top+e);null!=b.left&&(l.left=b.left-g.left+h);"using"in b?b.using.call(a,l):f.css(l)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=gb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],
"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||m.body;a&&!gb.test(a.nodeName)&&"static"===c.css(a,"position");)a=a.offsetParent;return a})}});c.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var d=/Y/.test(b);c.fn[a]=function(e){return c.access(this,function(a,e,k){var h=Ga(a);if(k===p)return h?b in h?h[b]:c.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:
a[e];h?h.scrollTo(d?c(h).scrollLeft():k,d?k:c(h).scrollTop()):a[e]=k},a,e,arguments.length,null)}});c.each({Height:"height",Width:"width"},function(a,b){var d="client"+a,e="scroll"+a,f="offset"+a;c.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(c.css(a,b,"padding")):this[b]():null};c.fn["outer"+a]=function(a){var d=this[0];return d?d.style?parseFloat(c.css(d,b,a?"margin":"border")):this[b]():null};c.fn[b]=function(a){return c.access(this,function(a,b,g){if(c.isWindow(a))return b=
a.document,a=b.documentElement[d],c.support.boxModel&&a||b.body&&b.body[d]||a;if(9===a.nodeType)return b=a.documentElement,b[d]>=b[e]?b[d]:Math.max(a.body[e],b[e],a.body[f],b[f]);if(g===p)return a=c.css(a,b),b=parseFloat(a),c.isNumeric(b)?b:a;c(a).css(b,g)},b,a,arguments.length,null)}});u.jQuery=u.$=c;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);


/*!
 * jQuery UI @VERSION
 *
 * Copyright 2012, 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,h){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){var d=a.parentNode,e=d.name;if(!a.href||!e||"map"!==d.nodeName.toLowerCase())return!1;d=c("img[usemap=#"+e+"]")[0];return!!d&&l(d)}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"hidden"===c.curCSS(this,"visibility")||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};c.ui.version||(c.extend(c.ui,{version:"@VERSION",
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({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return"number"===typeof a?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!==h)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("absolute"===b||"relative"===b||"fixed"===b)if(b=parseInt(a.css("zIndex"),10),!isNaN(b)&&0!==b)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(a,b,d,f){c.each(e,function(){b-=parseFloat(c.curCSS(a,"padding"+this,!0))||0;d&&(b-=parseFloat(c.curCSS(a,"border"+this+"Width",!0))||0);f&&(b-=parseFloat(c.curCSS(a,"margin"+this,!0))||0)});return b}var e="Width"===b?["Left","Right"]:["Top","Bottom"],f=b.toLowerCase(),g={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,
outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(a){return a===h?g["inner"+b].call(this):this.each(function(){c(this).css(f,d(this,a)+"px")})};c.fn["outer"+b]=function(a,e){return"number"!==typeof a?g["outer"+b].call(this,a):this.each(function(){c(this).css(f,d(this,a,!0,e)+"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||0<=b)&&k(a,!d)}}),c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));b.offsetHeight;c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=100===b.offsetHeight;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,c){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,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if("hidden"===c(a).css("overflow"))return!1;var d=b&&"left"===b?"scrollLeft":"scrollTop",e=!1;if(0<a[d])return!0;a[d]=1;e=0<a[d];a[d]=0;return e},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,
e,g)}}))})(jQuery);


/*!
 * jQuery UI Widget @VERSION
 *
 * Copyright 2012, 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(c,h){if(c.cleanData){var k=c.cleanData;c.cleanData=function(a){for(var b=0,d;null!=(d=a[b]);b++)try{c(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=c.fn.remove;c.fn.remove=function(a,b){return this.each(function(){b||a&&!c.filter(a,[this]).length||c("*",this).add([this]).each(function(){try{c(this).triggerHandler("remove")}catch(a){}});return l.call(c(this),a,b)})}}c.widget=function(a,b,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;d||(d=b,b=c.Widget);c.expr[":"][f]=function(b){return!!c.data(b,
a)};c[e]=c[e]||{};c[e][a]=function(a,b){arguments.length&&this._createWidget(a,b)};b=new b;b.options=c.extend(!0,{},b.options);c[e][a].prototype=c.extend(!0,b,{namespace:e,widgetName:a,widgetEventPrefix:c[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);c.widget.bridge(a,c[e][a])};c.widget.bridge=function(a,b){c.fn[a]=function(d){var e="string"===typeof d,f=Array.prototype.slice.call(arguments,1),g=this;d=!e&&f.length?c.extend.apply(null,[!0,d].concat(f)):d;if(e&&"_"===d.charAt(0))return g;
e?this.each(function(){var b=c.data(this,a),e=b&&c.isFunction(b[d])?b[d].apply(b,f):b;if(e!==b&&e!==h)return g=e,!1}):this.each(function(){var e=c.data(this,a);e?e.option(d||{})._init():c.data(this,a,new b(d,this))});return g}};c.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(a,b){c.data(b,this.widgetName,this);this.element=c(b);this.options=c.extend(!0,{},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 c.metadata&&c.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,b){var d=a;if(0===arguments.length)return c.extend({},this.options);if("string"===typeof a){if(b===h)return this.options[a];d={};d[a]=b}this._setOptions(d);return this},_setOptions:function(a){var b=this;c.each(a,function(a,c){b._setOption(a,c)});return this},_setOption:function(a,b){this.options[a]=b;"disabled"===a&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",
!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(a,b,d){var e,f=this.options[a];d=d||{};b=c.Event(b);b.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();b.target=this.element[0];if(a=b.originalEvent)for(e in a)e in b||(b[e]=a[e]);this.element.trigger(b,d);return!(c.isFunction(f)&&!1===f.call(this.element[0],b,d)||b.isDefaultPrevented())}}})(jQuery);


/*!
 * jQuery UI Mouse @VERSION
 *
 * Copyright 2012, 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/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */

(function(b,g){var d=!1;b(document).mouseup(function(a){d=!1});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(c){if(!0===b.data(c.target,a.widgetName+".preventClickEvent"))return b.removeData(c.target,a.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,e=1==a.which,f="string"==typeof this.options.cancel&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(a))return!0;this.mouseDelayMet=!this.options.delay;this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=
!0},this.options.delay));if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(a),!this._mouseStarted))return a.preventDefault(),!0;!0===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,
this._mouseUpDelegate);a.preventDefault();return d=!0}},_mouseMove:function(a){if(b.browser.msie&&!(9<=document.documentMode||a.button))return this._mouseUp(a);if(this._mouseStarted)return this._mouseDrag(a),a.preventDefault();this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&((this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,a))?this._mouseDrag(a):this._mouseUp(a));return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+
this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);


/*!
 * jQuery UI Position @VERSION
 *
 * Copyright 2012, 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(d,u){d.ui=d.ui||{};var m=/left|center|right/,n=/top|center|bottom/,s={},q=d.fn.position,r=d.fn.offset;d.fn.position=function(b){if(!b||!b.of)return q.apply(this,arguments);b=d.extend({},b);var a=d(b.of),c=a[0],e=(b.collision||"flip").split(" "),f=b.offset?b.offset.split(" "):[0,0],k,l,g;9===c.nodeType?(k=a.width(),l=a.height(),g={top:0,left:0}):c.setTimeout?(k=a.width(),l=a.height(),g={top:a.scrollTop(),left:a.scrollLeft()}):c.preventDefault?(b.at="left top",k=l=0,g={top:b.of.pageY,left:b.of.pageX}):
(k=a.outerWidth(),l=a.outerHeight(),g=a.offset());d.each(["my","at"],function(){var a=(b[this]||"").split(" ");1===a.length&&(a=m.test(a[0])?a.concat(["center"]):n.test(a[0])?["center"].concat(a):["center","center"]);a[0]=m.test(a[0])?a[0]:"center";a[1]=n.test(a[1])?a[1]:"center";b[this]=a});1===e.length&&(e[1]=e[0]);f[0]=parseInt(f[0],10)||0;1===f.length&&(f[1]=f[0]);f[1]=parseInt(f[1],10)||0;"right"===b.at[0]?g.left+=k:"center"===b.at[0]&&(g.left+=k/2);"bottom"===b.at[1]?g.top+=l:"center"===b.at[1]&&
(g.top+=l/2);g.left+=f[0];g.top+=f[1];return this.each(function(){var a=d(this),c=a.outerWidth(),p=a.outerHeight(),m=parseInt(d.curCSS(this,"marginLeft",!0))||0,n=parseInt(d.curCSS(this,"marginTop",!0))||0,q=c+m+(parseInt(d.curCSS(this,"marginRight",!0))||0),r=p+n+(parseInt(d.curCSS(this,"marginBottom",!0))||0),h=d.extend({},g),t;"right"===b.my[0]?h.left-=c:"center"===b.my[0]&&(h.left-=c/2);"bottom"===b.my[1]?h.top-=p:"center"===b.my[1]&&(h.top-=p/2);s.fractions||(h.left=Math.round(h.left),h.top=
Math.round(h.top));t={left:h.left-m,top:h.top-n};d.each(["left","top"],function(a,g){if(d.ui.position[e[a]])d.ui.position[e[a]][g](h,{targetWidth:k,targetHeight:l,elemWidth:c,elemHeight:p,collisionPosition:t,collisionWidth:q,collisionHeight:r,offset:f,my:b.my,at:b.at})});d.fn.bgiframe&&a.bgiframe();a.offset(d.extend(h,{using:b.using}))})};d.ui.position={fit:{left:function(b,a){var c=d(window),c=a.collisionPosition.left+a.collisionWidth-c.width()-c.scrollLeft();b.left=0<c?b.left-c:Math.max(b.left-
a.collisionPosition.left,b.left)},top:function(b,a){var c=d(window),c=a.collisionPosition.top+a.collisionHeight-c.height()-c.scrollTop();b.top=0<c?b.top-c:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if("center"!==a.at[0]){var c=d(window),c=a.collisionPosition.left+a.collisionWidth-c.width()-c.scrollLeft(),e="left"===a.my[0]?-a.elemWidth:"right"===a.my[0]?a.elemWidth:0,f="left"===a.at[0]?a.targetWidth:-a.targetWidth,k=-2*a.offset[0];b.left+=0>a.collisionPosition.left?e+
f+k:0<c?e+f+k:0}},top:function(b,a){if("center"!==a.at[1]){var c=d(window),c=a.collisionPosition.top+a.collisionHeight-c.height()-c.scrollTop(),e="top"===a.my[1]?-a.elemHeight:"bottom"===a.my[1]?a.elemHeight:0,f="top"===a.at[1]?a.targetHeight:-a.targetHeight,k=-2*a.offset[1];b.top+=0>a.collisionPosition.top?e+f+k:0<c?e+f+k:0}}}};d.offset.setOffset||(d.offset.setOffset=function(b,a){/static/.test(d.curCSS(b,"position"))&&(b.style.position="relative");var c=d(b),e=c.offset(),f=parseInt(d.curCSS(b,"top",
!0),10)||0,k=parseInt(d.curCSS(b,"left",!0),10)||0,e={top:a.top-e.top+f,left:a.left-e.left+k};"using"in a?a.using.call(b,e):c.css(e)},d.fn.offset=function(b){var a=this[0];return a&&a.ownerDocument?b?this.each(function(){d.offset.setOffset(this,b)}):r.call(this):null});(function(){var b=document.getElementsByTagName("body")[0],a=document.createElement("div"),c,e;c=document.createElement(b?"div":"body");e={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};b&&d.extend(e,{position:"absolute",
left:"-1000px",top:"-1000px"});for(var f in e)c.style[f]=e[f];c.appendChild(a);e=b||document.documentElement;e.insertBefore(c,e.firstChild);a.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";a=d(a).offset(function(a,b){return b}).offset();c.innerHTML="";e.removeChild(c);b=a.top+a.left+(b?2E3:0);s.fractions=21<b&&22>b})()})(jQuery);


/*!
 * jQuery UI Draggable @VERSION
 *
 * Copyright 2012, 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/Draggables
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */

(function(c,x){c.widget("ui.draggable",c.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||
(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var d=this.options;if(this.helper||d.disabled||c(b.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(b);if(!this.handle)return!1;d.iframeFix&&c(!0===d.iframeFix?"iframe":d.iframeFix).each(function(){c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(c(this).offset()).appendTo("body")});return!0},_mouseStart:function(b){var d=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();c.ui.ddmanager&&(c.ui.ddmanager.current=
this);this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};c.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;
this.originalPageY=b.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(!1===this._trigger("start",b))return this._clear(),!1;this._cacheHelperProportions();c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,!0);c.ui.ddmanager&&c.ui.ddmanager.dragStart(this,b);return!0},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");
if(!d){var a=this._uiHash();if(!1===this._trigger("drag",b,a))return this._mouseUp({}),!1;this.position=a.position}this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);return!1},_mouseStop:function(b){var d=!1;c.ui.ddmanager&&!this.options.dropBehaviour&&(d=c.ui.ddmanager.drop(this,b));this.dropped&&(d=this.dropped,this.dropped=
!1);for(var a=this.element[0],e=!1;a&&(a=a.parentNode);)a==document&&(e=!0);if(!e&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!d||"valid"==this.options.revert&&d||!0===this.options.revert||c.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==f._trigger("stop",b)&&f._clear()})}else!1!==this._trigger("stop",b)&&this._clear();return!1},
_mouseUp:function(b){!0===this.options.iframeFix&&c("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});c.ui.ddmanager&&c.ui.ddmanager.dragStop(this,b);return c.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(b){var d=this.options.handle&&c(this.options.handle,this.element).length?!1:!0;c(this.options.handle,this.element).find("*").andSelf().each(function(){this==
b.target&&(d=!0)});return d},_createHelper:function(b){var d=this.options;b=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[b])):"clone"==d.helper?this.element.clone().removeAttr("id"):this.element;b.parents("body").length||b.appendTo("parent"==d.appendTo?this.element[0].parentNode:d.appendTo);b[0]==this.element[0]||/(fixed|absolute)/.test(b.css("position"))||b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" "));c.isArray(b)&&(b={left:+b[0],
top:+b[1]||0});"left"in b&&(this.offset.click.left=b.left+this.margins.left);"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left);"top"in b&&(this.offset.click.top=b.top+this.margins.top);"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&c.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var b=this.element.position();return{top:b.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),
height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;"parent"==b.containment&&(b.containment=this.helper[0].parentNode);if("document"==b.containment||"window"==b.containment)this.containment=["document"==b.containment?0:c(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==b.containment?0:c(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==b.containment?0:c(window).scrollLeft())+c("document"==b.containment?document:
window).width()-this.helperProportions.width-this.margins.left,("document"==b.containment?0:c(window).scrollTop())+(c("document"==b.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(/^(document|window|parent)$/.test(b.containment)||b.containment.constructor==Array)b.containment.constructor==Array&&(this.containment=b.containment);else{var b=c(b.containment),d=b[0];if(d){b.offset();var a="hidden"!=c(d).css("overflow");this.containment=
[(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0),(parseInt(c(d).css("borderTopWidth"),10)||0)+(parseInt(c(d).css("paddingTop"),10)||0),(a?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(a?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),
10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=b}}},_convertPositionTo:function(b,d){d||(d=this.position);var a="absolute"==b?1:-1,e="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:d.top+this.offset.relative.top*a+this.offset.parent.top*a-(c.browser.safari&&526>c.browser.version&&"fixed"==this.cssPosition?
0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*a),left:d.left+this.offset.relative.left*a+this.offset.parent.left*a-(c.browser.safari&&526>c.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*a)}},_generatePosition:function(b){var d=this.options,a="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,
e=/(html|body)/i.test(a[0].tagName),f=b.pageX,h=b.pageY;if(this.originalPosition){var g;this.containment&&(this.relative_container?(g=this.relative_container.offset(),g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]):g=this.containment,b.pageX-this.offset.click.left<g[0]&&(f=g[0]+this.offset.click.left),b.pageY-this.offset.click.top<g[1]&&(h=g[1]+this.offset.click.top),b.pageX-this.offset.click.left>g[2]&&(f=g[2]+this.offset.click.left),
b.pageY-this.offset.click.top>g[3]&&(h=g[3]+this.offset.click.top));d.grid&&(h=d.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/d.grid[1])*d.grid[1]:this.originalPageY,h=g?h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3]?h-this.offset.click.top<g[1]?h+d.grid[1]:h-d.grid[1]:h:h,f=d.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0]:this.originalPageX,f=g?f-this.offset.click.left<g[0]||f-this.offset.click.left>g[2]?f-this.offset.click.left<g[0]?
f+d.grid[0]:f-d.grid[0]:f:f)}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&526>c.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():e?0:a.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&526>c.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():e?0:a.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(b,d,a){a=a||this._uiHash();c.ui.plugin.call(this,b,[d,a]);"drag"==b&&(this.positionAbs=this._convertPositionTo("absolute"));return c.Widget.prototype._trigger.call(this,b,d,a)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"@VERSION"});
c.ui.plugin.add("draggable","connectToSortable",{start:function(b,d){var a=c(this).data("draggable"),e=a.options,f=c.extend({},d,{item:a.element});a.sortables=[];c(e.connectToSortable).each(function(){var d=c.data(this,"sortable");d&&!d.options.disabled&&(a.sortables.push({instance:d,shouldRevert:d.options.revert}),d.refreshPositions(),d._trigger("activate",b,f))})},stop:function(b,d){var a=c(this).data("draggable"),e=c.extend({},d,{item:a.element});c.each(a.sortables,function(){this.instance.isOver?
(this.instance.isOver=0,a.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"==a.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,d){var a=c(this).data("draggable"),e=this;c.each(a.sortables,function(f){this.instance.positionAbs=
a.positionAbs;this.instance.helperProportions=a.helperProportions;this.instance.offset.click=a.offset.click;this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=c(e).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return d.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,
!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,a._trigger("toSortable",b),a.dropped=this.instance.element,a.currentItem=a.element,this.instance.fromOutside=a),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&
(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a._trigger("fromSortable",b),a.dropped=!1)})}});c.ui.plugin.add("draggable","cursor",{start:function(b,d){var a=c("body"),e=c(this).data("draggable").options;
a.css("cursor")&&(e._cursor=a.css("cursor"));a.css("cursor",e.cursor)},stop:function(b,d){var a=c(this).data("draggable").options;a._cursor&&c("body").css("cursor",a._cursor)}});c.ui.plugin.add("draggable","opacity",{start:function(b,d){var a=c(d.helper),e=c(this).data("draggable").options;a.css("opacity")&&(e._opacity=a.css("opacity"));a.css("opacity",e.opacity)},stop:function(b,d){var a=c(this).data("draggable").options;a._opacity&&c(d.helper).css("opacity",a._opacity)}});c.ui.plugin.add("draggable",
"scroll",{start:function(b,d){var a=c(this).data("draggable");a.scrollParent[0]!=document&&"HTML"!=a.scrollParent[0].tagName&&(a.overflowOffset=a.scrollParent.offset())},drag:function(b,d){var a=c(this).data("draggable"),e=a.options,f=!1;a.scrollParent[0]!=document&&"HTML"!=a.scrollParent[0].tagName?(e.axis&&"x"==e.axis||(a.overflowOffset.top+a.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?a.scrollParent[0].scrollTop=f=a.scrollParent[0].scrollTop+e.scrollSpeed:b.pageY-a.overflowOffset.top<
e.scrollSensitivity&&(a.scrollParent[0].scrollTop=f=a.scrollParent[0].scrollTop-e.scrollSpeed)),e.axis&&"y"==e.axis||(a.overflowOffset.left+a.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?a.scrollParent[0].scrollLeft=f=a.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-a.overflowOffset.left<e.scrollSensitivity&&(a.scrollParent[0].scrollLeft=f=a.scrollParent[0].scrollLeft-e.scrollSpeed))):(e.axis&&"x"==e.axis||(b.pageY-c(document).scrollTop()<e.scrollSensitivity?f=c(document).scrollTop(c(document).scrollTop()-
e.scrollSpeed):c(window).height()-(b.pageY-c(document).scrollTop())<e.scrollSensitivity&&(f=c(document).scrollTop(c(document).scrollTop()+e.scrollSpeed))),e.axis&&"y"==e.axis||(b.pageX-c(document).scrollLeft()<e.scrollSensitivity?f=c(document).scrollLeft(c(document).scrollLeft()-e.scrollSpeed):c(window).width()-(b.pageX-c(document).scrollLeft())<e.scrollSensitivity&&(f=c(document).scrollLeft(c(document).scrollLeft()+e.scrollSpeed))));!1!==f&&c.ui.ddmanager&&!e.dropBehaviour&&c.ui.ddmanager.prepareOffsets(a,
b)}});c.ui.plugin.add("draggable","snap",{start:function(b,d){var a=c(this).data("draggable"),e=a.options;a.snapElements=[];c(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var b=c(this),d=b.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:d.top,left:d.left})})},drag:function(b,d){for(var a=c(this).data("draggable"),e=a.options,f=e.snapTolerance,h=d.offset.left,g=h+a.helperProportions.width,q=d.offset.top,
r=q+a.helperProportions.height,k=a.snapElements.length-1;0<=k;k--){var l=a.snapElements[k].left,n=l+a.snapElements[k].width,m=a.snapElements[k].top,p=m+a.snapElements[k].height;if(l-f<h&&h<n+f&&m-f<q&&q<p+f||l-f<h&&h<n+f&&m-f<r&&r<p+f||l-f<g&&g<n+f&&m-f<q&&q<p+f||l-f<g&&g<n+f&&m-f<r&&r<p+f){if("inner"!=e.snapMode){var s=Math.abs(m-r)<=f,t=Math.abs(p-q)<=f,u=Math.abs(l-g)<=f,v=Math.abs(n-h)<=f;s&&(d.position.top=a._convertPositionTo("relative",{top:m-a.helperProportions.height,left:0}).top-a.margins.top);
t&&(d.position.top=a._convertPositionTo("relative",{top:p,left:0}).top-a.margins.top);u&&(d.position.left=a._convertPositionTo("relative",{top:0,left:l-a.helperProportions.width}).left-a.margins.left);v&&(d.position.left=a._convertPositionTo("relative",{top:0,left:n}).left-a.margins.left)}var w=s||t||u||v;"outer"!=e.snapMode&&(s=Math.abs(m-q)<=f,t=Math.abs(p-r)<=f,u=Math.abs(l-h)<=f,v=Math.abs(n-g)<=f,s&&(d.position.top=a._convertPositionTo("relative",{top:m,left:0}).top-a.margins.top),t&&(d.position.top=
a._convertPositionTo("relative",{top:p-a.helperProportions.height,left:0}).top-a.margins.top),u&&(d.position.left=a._convertPositionTo("relative",{top:0,left:l}).left-a.margins.left),v&&(d.position.left=a._convertPositionTo("relative",{top:0,left:n-a.helperProportions.width}).left-a.margins.left));!a.snapElements[k].snapping&&(s||t||u||v||w)&&a.options.snap.snap&&a.options.snap.snap.call(a.element,b,c.extend(a._uiHash(),{snapItem:a.snapElements[k].item}));a.snapElements[k].snapping=s||t||u||v||w}else a.snapElements[k].snapping&&
a.options.snap.release&&a.options.snap.release.call(a.element,b,c.extend(a._uiHash(),{snapItem:a.snapElements[k].item})),a.snapElements[k].snapping=!1}}});c.ui.plugin.add("draggable","stack",{start:function(b,d){var a=c(this).data("draggable").options,a=c.makeArray(c(a.stack)).sort(function(a,b){return(parseInt(c(a).css("zIndex"),10)||0)-(parseInt(c(b).css("zIndex"),10)||0)});if(a.length){var e=parseInt(a[0].style.zIndex)||0;c(a).each(function(a){this.style.zIndex=e+a});this[0].style.zIndex=e+a.length}}});
c.ui.plugin.add("draggable","zIndex",{start:function(b,d){var a=c(d.helper),e=c(this).data("draggable").options;a.css("zIndex")&&(e._zIndex=a.css("zIndex"));a.css("zIndex",e.zIndex)},stop:function(b,d){var a=c(this).data("draggable").options;a._zIndex&&c(d.helper).css("zIndex",a._zIndex)}})})(jQuery);


/*!
 * jQuery UI Resizable @VERSION
 *
 * Copyright 2012, 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/Resizables
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */

(function(e,r){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,c=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],
_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=
!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,
display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize());this.handles=c.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var a=this.handles.split(",");this.handles=
{};for(var d=0;d<a.length;d++){var f=e.trim(a[d]),g=e('<div class="ui-resizable-handle ui-resizable-'+f+'"></div>');g.css({zIndex:c.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(a){a=a||this.element;for(var b in this.handles){this.handles[b].constructor==String&&(this.handles[b]=e(this.handles[b],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var c=
e(this.handles[b],this.element),d=0,d=/sw|ne|nw|se|n|s/.test(b)?c.outerHeight():c.outerWidth(),c=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");a.css(c,d);this._proportionallyResize()}e(this.handles[b])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=
a&&a[1]?a[1]:"se"}});c.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").hover(function(){c.disabled||(e(this).removeClass("ui-resizable-autohide"),b._handles.show())},function(){c.disabled||b.resizing||(e(this).addClass("ui-resizable-autohide"),b._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(a){e(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var c=!1,a;for(a in this.handles)e(this.handles[a])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(b){var c=this.options,a=this.element.position(),
d=this.element;this.resizing=!0;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};(d.is(".ui-draggable")||/absolute/.test(d.css("position")))&&d.css({position:"absolute",top:a.top,left:a.left});this._renderProxy();var a=n(this.helper.css("left")),f=n(this.helper.css("top"));c.containment&&(a+=e(c.containment).scrollLeft()||0,f+=e(c.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:a,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:
{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:a,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio="number"==typeof c.aspectRatio?c.aspectRatio:this.originalSize.width/this.originalSize.height||1;c=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",
"auto"==c?this.axis+"-resize":c);d.addClass("ui-resizable-resizing");this._propagate("start",b);return!0},_mouseDrag:function(b){var c=this.helper,a=this.originalMousePosition,d=this._change[this.axis];if(!d)return!1;a=d.apply(this,[b,b.pageX-a.left||0,b.pageY-a.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)a=this._updateRatio(a,b);a=this._respectSize(a,b);this._propagate("resize",b);c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+
"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(a);this._trigger("resize",b,this.ui());return!1},_mouseStop:function(b){this.resizing=!1;var c=this.options;if(this._helper){var a=this._proportionallyResizeElements,d=a.length&&/textarea/i.test(a[0].nodeName),a=d&&e.ui.hasScroll(a[0],"left")?0:this.sizeDiff.height,d=d?0:this.sizeDiff.width,d={width:this.helper.width()-d,height:this.helper.height()-a},a=parseInt(this.element.css("left"),
10)+(this.position.left-this.originalPosition.left)||null,f=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;c.animate||this.element.css(e.extend(d,{top:f,left:a}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!c.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(b){var c=
this.options,a,d,e,c={minWidth:m(c.minWidth)?c.minWidth:0,maxWidth:m(c.maxWidth)?c.maxWidth:Infinity,minHeight:m(c.minHeight)?c.minHeight:0,maxHeight:m(c.maxHeight)?c.maxHeight:Infinity};if(this._aspectRatio||b)b=c.minHeight*this.aspectRatio,d=c.minWidth/this.aspectRatio,a=c.maxHeight*this.aspectRatio,e=c.maxWidth/this.aspectRatio,b>c.minWidth&&(c.minWidth=b),d>c.minHeight&&(c.minHeight=d),a<c.maxWidth&&(c.maxWidth=a),e<c.maxHeight&&(c.maxHeight=e);this._vBoundaries=c},_updateCache:function(b){this.offset=
this.helper.offset();m(b.left)&&(this.position.left=b.left);m(b.top)&&(this.position.top=b.top);m(b.height)&&(this.size.height=b.height);m(b.width)&&(this.size.width=b.width)},_updateRatio:function(b,c){var a=this.position,d=this.size,e=this.axis;m(b.height)?b.width=b.height*this.aspectRatio:m(b.width)&&(b.height=b.width/this.aspectRatio);"sw"==e&&(b.left=a.left+(d.width-b.width),b.top=null);"nw"==e&&(b.top=a.top+(d.height-b.height),b.left=a.left+(d.width-b.width));return b},_respectSize:function(b,
c){var a=this._vBoundaries,d=this.axis,e=m(b.width)&&a.maxWidth&&a.maxWidth<b.width,g=m(b.height)&&a.maxHeight&&a.maxHeight<b.height,k=m(b.width)&&a.minWidth&&a.minWidth>b.width,h=m(b.height)&&a.minHeight&&a.minHeight>b.height;k&&(b.width=a.minWidth);h&&(b.height=a.minHeight);e&&(b.width=a.maxWidth);g&&(b.height=a.maxHeight);var l=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height,q=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);k&&q&&(b.left=l-a.minWidth);e&&q&&(b.left=
l-a.maxWidth);h&&d&&(b.top=p-a.minHeight);g&&d&&(b.top=p-a.maxHeight);(a=!b.width&&!b.height)&&!b.left&&b.top?b.top=null:a&&!b.top&&b.left&&(b.left=null);return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var a=this._proportionallyResizeElements[c];if(!this.borderDif){var d=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],
f=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];this.borderDif=e.map(d,function(a,b){var c=parseInt(a,10)||0,d=parseInt(f[b],10)||0;return c+d})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||a.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||
e('<div style="overflow:hidden;"></div>');var c=e.browser.msie&&7>e.browser.version,a=c?1:0,c=c?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,c,a){return{width:this.originalSize.width+c}},w:function(b,c,a){return{left:this.originalPosition.left+
c,width:this.originalSize.width-c}},n:function(b,c,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(b,c,a){return{height:this.originalSize.height+a}},se:function(b,c,a){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,a]))},sw:function(b,c,a){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,a]))},ne:function(b,c,a){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,
[b,c,a]))},nw:function(b,c,a){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,a]))}},_propagate:function(b,c){e.ui.plugin.call(this,b,[c,this.ui()]);"resize"!=b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"@VERSION"});e.ui.plugin.add("resizable",
"alsoResize",{start:function(b,c){var a=e(this).data("resizable").options,d=function(a){e(a).each(function(){var a=e(this);a.data("resizable-alsoresize",{width:parseInt(a.width(),10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),10)})})};"object"!=typeof a.alsoResize||a.alsoResize.parentNode?d(a.alsoResize):a.alsoResize.length?(a.alsoResize=a.alsoResize[0],d(a.alsoResize)):e.each(a.alsoResize,function(a){d(a)})},resize:function(b,c){var a=e(this).data("resizable"),
d=a.options,f=a.originalSize,g=a.originalPosition,k={height:a.size.height-f.height||0,width:a.size.width-f.width||0,top:a.position.top-g.top||0,left:a.position.left-g.left||0},h=function(a,b){e(a).each(function(){var a=e(this),d=e(this).data("resizable-alsoresize"),f={},g=b&&b.length?b:a.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(g,function(a,b){var c=(d[b]||0)+(k[b]||0);c&&0<=c&&(f[b]=c||null)});a.css(f)})};"object"!=typeof d.alsoResize||d.alsoResize.nodeType?
h(d.alsoResize):e.each(d.alsoResize,function(a,b){h(a,b)})},stop:function(b,c){e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b,c){var a=e(this).data("resizable"),d=a.options,f=a._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),k=g&&e.ui.hasScroll(f[0],"left")?0:a.sizeDiff.height,g={width:a.size.width-(g?0:a.sizeDiff.width),height:a.size.height-k},k=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||
null,h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(g,h&&k?{top:h,left:k}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var c={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};f&&f.length&&e(f[0]).css({width:c.width,height:c.height});a._updateCache(c);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable",
"containment",{start:function(b,c){var a=e(this).data("resizable"),d=a.element,f=a.options.containment;if(d=f instanceof e?f.get(0):/parent/.test(f)?d.parent().get(0):f)if(a.containerElement=e(d),/document/.test(f)||f==document)a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};else{var g=e(d),k=[];e(["Top","Right","Left","Bottom"]).each(function(a,
b){k[a]=n(g.css("padding"+b))});a.containerOffset=g.offset();a.containerPosition=g.position();a.containerSize={height:g.innerHeight()-k[3],width:g.innerWidth()-k[1]};var f=a.containerOffset,h=a.containerSize.height,l=a.containerSize.width,l=e.ui.hasScroll(d,"left")?d.scrollWidth:l,h=e.ui.hasScroll(d)?d.scrollHeight:h;a.parentData={element:d,left:f.left,top:f.top,width:l,height:h}}},resize:function(b,c){var a=e(this).data("resizable"),d=a.options,f=a.containerOffset,g=a.position,k=a._aspectRatio||
b.shiftKey,h={top:0,left:0},l=a.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(h=f);g.left<(a._helper?f.left:0)&&(a.size.width+=a._helper?a.position.left-f.left:a.position.left-h.left,k&&(a.size.height=a.size.width/a.aspectRatio),a.position.left=d.helper?f.left:0);g.top<(a._helper?f.top:0)&&(a.size.height+=a._helper?a.position.top-f.top:a.position.top,k&&(a.size.width=a.size.height*a.aspectRatio),a.position.top=a._helper?f.top:0);a.offset.left=a.parentData.left+a.position.left;
a.offset.top=a.parentData.top+a.position.top;d=Math.abs(a.offset.left-h.left+a.sizeDiff.width);f=Math.abs((a._helper?a.offset.top-h.top:a.offset.top-f.top)+a.sizeDiff.height);h=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));h&&g&&(d-=a.parentData.left);d+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-d,k&&(a.size.height=a.size.width/a.aspectRatio));f+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-
f,k&&(a.size.width=a.size.height*a.aspectRatio))},stop:function(b,c){var a=e(this).data("resizable"),d=a.options,f=a.containerOffset,g=a.containerPosition,k=a.containerElement,h=e(a.helper),l=h.offset(),m=h.outerWidth()-a.sizeDiff.width,h=h.outerHeight()-a.sizeDiff.height;a._helper&&!d.animate&&/relative/.test(k.css("position"))&&e(this).css({left:l.left-g.left-f.left,width:m,height:h});a._helper&&!d.animate&&/static/.test(k.css("position"))&&e(this).css({left:l.left-g.left-f.left,width:m,height:h})}});
e.ui.plugin.add("resizable","ghost",{start:function(b,c){var a=e(this).data("resizable"),d=a.options,f=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof d.ghost?d.ghost:"");a.ghost.appendTo(a.helper)},resize:function(b,c){var a=e(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},
stop:function(b,c){var a=e(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(b,c){var a=e(this).data("resizable"),d=a.options,f=a.size,g=a.originalSize,k=a.originalPosition,h=a.axis;d.grid="number"==typeof d.grid?[d.grid,d.grid]:d.grid;var l=Math.round((f.width-g.width)/(d.grid[0]||1))*(d.grid[0]||1),d=Math.round((f.height-g.height)/(d.grid[1]||1))*(d.grid[1]||1);/^(se|s|e)$/.test(h)?(a.size.width=g.width+
l,a.size.height=g.height+d):/^(ne)$/.test(h)?(a.size.width=g.width+l,a.size.height=g.height+d,a.position.top=k.top-d):(/^(sw)$/.test(h)?(a.size.width=g.width+l,a.size.height=g.height+d):(a.size.width=g.width+l,a.size.height=g.height+d,a.position.top=k.top-d),a.position.left=k.left-l)}});var n=function(b){return parseInt(b,10)||0},m=function(b){return!isNaN(parseInt(b,10))}})(jQuery);


/*!
 * jQuery UI Button @VERSION
 *
 * Copyright 2012, 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/Button
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 */

(function(b,n){var g,h,k,e,m=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},l=function(a){var c=a.name,d=a.form,f=b([]);c&&(f=d?b(d).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form}));return f};b.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",m);"boolean"!==typeof this.options.disabled?
this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,c=this.options,d="checkbox"===this.type||"radio"===this.type,f="ui-state-hover"+(d?"":" ui-state-active");null===c.label&&(c.label=this.buttonElement.html());this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){c.disabled||
(b(this).addClass("ui-state-hover"),this===g&&b(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(f)}).bind("click.button",function(a){c.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus.button",function(){a.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){a.buttonElement.removeClass("ui-state-focus")});d&&(this.element.bind("change.button",function(){e||a.refresh()}),this.buttonElement.bind("mousedown.button",
function(a){c.disabled||(e=!1,h=a.pageX,k=a.pageY)}).bind("mouseup.button",function(a){c.disabled||h===a.pageX&&k===a.pageY||(e=!0)}));"checkbox"===this.type?this.buttonElement.bind("click.button",function(){if(c.disabled||e)return!1;b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)}):"radio"===this.type?this.buttonElement.bind("click.button",function(){if(c.disabled||e)return!1;b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed",
"true");var d=a.element[0];l(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return!1;b(this).addClass("ui-state-active");g=this;b(document).one("mouseup",function(){g=null})}).bind("mouseup.button",function(){if(c.disabled)return!1;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(a){if(c.disabled)return!1;a.keyCode!=b.ui.keyCode.SPACE&&
a.keyCode!=b.ui.keyCode.ENTER||b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(a){a.keyCode===b.ui.keyCode.SPACE&&b(this).click()}));this._setOption("disabled",c.disabled);this._resetButton()},_determineButtonType:function(){this.element.is(":checkbox")?this.type="checkbox":this.element.is(":radio")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";
if("checkbox"===this.type||"radio"===this.type){var a=this.element.parents().filter(":last"),b="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(b);this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b)));this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",
a)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);"disabled"===a?c?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1):this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);"radio"===this.type?l(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
c=b("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,e=[];d.primary||d.secondary?(this.options.text&&e.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary")),d.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||
(e.push(f?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||a.attr("title",c))):e.push("ui-button-text-only");a.addClass(e.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){"disabled"===a&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a="rtl"===
this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(a?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
b.Widget.prototype.destroy.call(this)}})})(jQuery);


/*!
 * jQuery UI Dialog @VERSION
 *
 * Copyright 2012, 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/Dialog
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 *  jquery.ui.button.js
 *	jquery.ui.draggable.js
 *	jquery.ui.mouse.js
 *	jquery.ui.position.js
 *	jquery.ui.resizable.js
 */

(function(c,k){var l={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},m={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},n=c.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};c.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(a){var b=
c(this).css(a).offset().top;0>b&&c(this).css("top",a.top-b)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");"string"!==typeof this.originalTitle&&(this.originalTitle="");this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",e=c.ui.dialog.getTitleId(a.element),f=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(d){b.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE&&(a.close(d),d.preventDefault())}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(c){a.moveToTop(!1,c)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var h=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),
g=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){g.addClass("ui-state-hover")},function(){g.removeClass("ui-state-hover")}).focus(function(){g.addClass("ui-state-focus")}).blur(function(){g.removeClass("ui-state-focus")}).click(function(c){a.close(c);return!1}).appendTo(h);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(g);c("<span></span>").addClass("ui-dialog-title").attr("id",
e).html(d).prependTo(h);c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose)&&(b.beforeClose=b.beforeclose);h.find("*").add(h).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=!1;c.fn.bgiframe&&f.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(!1!==b._trigger("beforeClose",a))return b.overlay&&b.overlay.destroy(),b.uiDialog.unbind("keypress.ui-dialog"),b._isOpen=!1,b.options.hide?b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)}):(b.uiDialog.hide(),b._trigger("close",a)),c.ui.dialog.overlay.resize(),b.options.modal&&(d=0,c(".ui-dialog").each(function(){this!==
b.uiDialog[0]&&(e=c(this).css("z-index"),isNaN(e)||(d=Math.max(d,e)))}),c.ui.dialog.maxZ=d),b},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this.options;if(d.modal&&!a||!d.stack&&!d.modal)return this._trigger("focus",b);d.zIndex>c.ui.dialog.maxZ&&(c.ui.dialog.maxZ=d.zIndex);this.overlay&&(c.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ));d={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};c.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",b);return this},open:function(){if(!this._isOpen){var a=this.options,b=this.uiDialog;this.overlay=a.modal?new c.ui.dialog.overlay(this):null;this._size();this._position(a.position);b.show(a.show);this.moveToTop(!0);a.modal&&b.bind("keydown.ui-dialog",function(a){if(a.keyCode===c.ui.keyCode.TAB){var b=c(":tabbable",this),f=b.filter(":first"),b=b.filter(":last");if(a.target===b[0]&&!a.shiftKey)return f.focus(1),
!1;if(a.target===f[0]&&a.shiftKey)return b.focus(1),!1}});c(this.element.find(":tabbable").get().concat(b.find(".ui-dialog-buttonpane :tabbable").get().concat(b.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(a){var b=this,d=!1,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),f=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();"object"===typeof a&&
null!==a&&c.each(a,function(){return!(d=!0)});d&&(c.each(a,function(a,d){d=c.isFunction(d)?{click:d,text:a}:d;var e=c('<button type="button"></button>').click(function(){d.click.apply(b.element[0],arguments)}).appendTo(f);c.each(d,function(a,b){if("click"!==a)if(a in n)e[a](b);else e.attr(a,b)});c.fn.button&&e.button()}),e.appendTo(b.uiDialog))},_makeDraggable:function(){function a(a){return{position:a.position,offset:a.offset}}var b=this,d=b.options,e=c(document),f;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(e,g){f="auto"===d.height?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,a(g))},drag:function(c,d){b._trigger("drag",c,a(d))},stop:function(h,g){d.position=[g.position.left-e.scrollLeft(),g.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(f);b._trigger("dragStop",h,a(g));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(a){return{originalPosition:a.originalPosition,
originalSize:a.originalSize,position:a.position,size:a.size}}a=a===k?this.options.resizable:a;var d=this,e=d.options,f=d.uiDialog.css("position");a="string"===typeof a?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(a,e){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",a,b(e))},resize:function(a,c){d._trigger("resize",
a,b(c))},stop:function(a,f){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",a,b(f));c.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if("string"===typeof a||"object"===typeof a&&"0"in a)b=a.split?a.split(" "):
[a[0],a[1]],1===b.length&&(b[1]=b[0]),c.each(["left","top"],function(a,c){+b[a]===b[a]&&(d[a]=b[a],b[a]=c)}),a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")};a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=!1;c.each(a,function(a,c){b._setOption(a,c);a in
l&&(e=!0);a in m&&(d[a]=c)});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":this._createButtons(b);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":d.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?d.addClass("ui-dialog-disabled"):
d.removeClass("ui-dialog-disabled");break;case "draggable":var e=d.is(":data(draggable)");e&&!b&&d.draggable("destroy");!e&&b&&this._makeDraggable();break;case "position":this._position(b);break;case "resizable":(e=d.is(":data(resizable)"))&&!b&&d.resizable("destroy");e&&"string"===typeof b&&d.resizable("option","handles",b);e||!1===b||this._makeResizable(b);break;case "title":c(".ui-dialog-title",this.uiDialogTitlebar).html(""+(b||"&#160;"))}c.Widget.prototype._setOption.apply(this,arguments)},_size:function(){var a=
this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});a.minWidth>a.width&&(a.width=a.minWidth);b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);"auto"===a.height?c.support.minHeight?this.element.css({minHeight:d,height:"auto"}):(this.uiDialog.show(),a=this.element.css("height","auto").height(),e||this.uiDialog.hide(),this.element.height(Math.max(a,d))):this.element.height(Math.max(a.height-b,0));this.uiDialog.is(":data(resizable)")&&
this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"@VERSION",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");a||(a=this.uuid+=1);return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus mousedown mouseup keydown keypress click".split(" "),function(a){return a+".dialog-overlay"}).join(" "),create:function(a){0===this.instances.length&&
(setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(a){if(c(a.target).zIndex()<c.ui.dialog.overlay.maxZ)return!1})},1),c(document).bind("keydown.dialog-overlay",function(b){a.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===c.ui.keyCode.ESCAPE&&(a.close(b),b.preventDefault())}),c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize));var b=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);-1!=b&&this.oldInstances.push(this.instances.splice(b,1)[0]);0===this.instances.length&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;return c.browser.msie&&7>c.browser.version?(a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),
b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),a<b?c(window).height()+"px":a+"px"):c(document).height()+"px"},width:function(){var a,b;return c.browser.msie?(a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),a<b?c(window).width()+"px":a+"px"):c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,
height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);


/*!
 * jQuery UI Datepicker @VERSION
 *
 * Copyright 2012, 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(c,A){function F(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:"January February March April May June July August September October November December".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),
weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};c.extend(this._defaults,this.regional[""]);this.dpDiv=G(c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function G(a){return a.bind("mouseout",function(a){a=c(a.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");
a.length&&a.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=c(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");!c.datepicker._isDisabledDatepicker(H.inline?a.parent()[0]:H.input[0])&&b.length&&(b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),b.addClass("ui-state-hover"),b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover"),b.hasClass("ui-datepicker-next")&&
b.addClass("ui-datepicker-next-hover"))})}function C(a,b){c.extend(a,b);for(var d in b)if(null==b[d]||b[d]==A)a[d]=b[d];return a}c.extend(c.ui,{datepicker:{version:"@VERSION"}});var D=(new Date).getTime(),H;c.extend(F.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){C(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var d=null,e;for(e in this._defaults){var f=
a.getAttribute("date:"+e);if(f){d=d||{};try{d[e]=eval(f)}catch(l){d[e]=f}}}e=a.nodeName.toLowerCase();f="div"==e||"span"==e;a.id||(this.uuid+=1,a.id="dp"+this.uuid);var m=this._newInst(c(a),f);m.settings=c.extend({},b||{},d||{});"input"==e?this._connectDatepicker(a,m):f&&this._inlineDatepicker(a,m)},_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?G(c('<div class="'+this._inlineClass+
' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(a,b){var d=c(a);b.append=c([]);b.trigger=c([]);d.hasClass(this.markerClassName)||(this._attachments(d,b),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,d,c){b.settings[d]=c}).bind("getData.datepicker",function(a,d){return this._get(b,d)}),this._autoSize(b),c.data(a,"datepicker",
b),b.settings.disabled&&this._disableDatepicker(a))},_attachments:function(a,b){var d=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();d&&(b.append=c('<span class="'+this._appendClass+'">'+d+"</span>"),a[e?"before":"after"](b.append));a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();d=this._get(b,"showOn");"focus"!=d&&"both"!=d||a.focus(this._showDatepicker);if("button"==d||"both"==d){var d=this._get(b,"buttonText"),f=this._get(b,"buttonImage");b.trigger=
c(this._get(b,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:f,alt:d,title:d}):c('<button type="button"></button>').addClass(this._triggerClass).html(""==f?d:c("<img/>").attr({src:f,alt:d,title:d})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){c.datepicker._datepickerShowing&&c.datepicker._lastInput==a[0]?c.datepicker._hideDatepicker():(c.datepicker._datepickerShowing&&c.datepicker._lastInput!=a[0]&&c.datepicker._hideDatepicker(),c.datepicker._showDatepicker(a[0]));
return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),d=this._get(a,"dateFormat");if(d.match(/[DM]/)){var c=function(a){for(var b=0,d=0,c=0;c<a.length;c++)a[c].length>b&&(b=a[c].length,d=c);return d};b.setMonth(c(this._get(a,d.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(c(this._get(a,d.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var d=c(a);d.hasClass(this.markerClassName)||
(d.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,d,c){b.settings[d]=c}).bind("getData.datepicker",function(a,d){return this._get(b,d)}),c.data(a,"datepicker",b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(a),b.dpDiv.css("display","block"))},_dialogDatepicker:function(a,b,d,e,f){a=this._dialogInst;a||(this.uuid+=1,this._dialogInput=c('<input type="text" id="dp'+this.uuid+
'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),c("body").append(this._dialogInput),a=this._dialogInst=this._newInst(this._dialogInput,!1),a.settings={},c.data(this._dialogInput[0],"datepicker",a));C(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;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=d;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);c.blockUI&&c.blockUI(this.dpDiv);c.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=c(a),d=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=
a.nodeName.toLowerCase();c.removeData(a,"datepicker");"input"==e?(d.append.remove(),d.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=e&&"span"!=e||b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=c(a),d=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if("input"==e)a.disabled=
!1,d.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==e||"span"==e)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=c.map(this._disabledInputs,function(b){return b==a?null:b})}},_disableDatepicker:function(a){var b=c(a),d=c.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=
a.nodeName.toLowerCase();if("input"==e)a.disabled=!0,d.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==e||"span"==e)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=c.map(this._disabledInputs,function(b){return b==a?null:b});this._disabledInputs[this._disabledInputs.length]=
a}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_getInst:function(a){try{return c.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,d){var e=this._getInst(a);if(2==arguments.length&&"string"==typeof b)return"defaults"==b?c.extend({},c.datepicker._defaults):e?"all"==b?c.extend({},e.settings):this._get(e,b):null;var f=b||{};"string"==typeof b&&
(f={},f[b]=d);if(e){this._curInst==e&&this._hideDatepicker();var l=this._getDateDatepicker(a,!0),m=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");C(e.settings,f);null!==m&&f.dateFormat!==A&&f.minDate===A&&(e.settings.minDate=this._formatDate(e,m));null!==g&&f.dateFormat!==A&&f.maxDate===A&&(e.settings.maxDate=this._formatDate(e,g));this._attachments(c(a),e);this._autoSize(e);this._setDate(e,l);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,d){this._optionDatepicker(a,
b,d)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){var d=this._getInst(a);d&&(this._setDate(d,b),this._updateDatepicker(d),this._updateAlternate(d))},_getDateDatepicker:function(a,b){var d=this._getInst(a);d&&!d.inline&&this._setDateFromField(d,b);return d?this._getDate(d):null},_doKeyDown:function(a){var b=c.datepicker._getInst(a.target),d=!0,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=!0;if(c.datepicker._datepickerShowing)switch(a.keyCode){case 9:c.datepicker._hideDatepicker();
d=!1;break;case 13:return d=c("td."+c.datepicker._dayOverClass+":not(."+c.datepicker._currentClass+")",b.dpDiv),d[0]&&c.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,d[0]),(a=c.datepicker._get(b,"onSelect"))?(d=c.datepicker._formatDate(b),a.apply(b.input?b.input[0]:null,[d,b])):c.datepicker._hideDatepicker(),!1;case 27:c.datepicker._hideDatepicker();break;case 33:c.datepicker._adjustDate(a.target,a.ctrlKey?-c.datepicker._get(b,"stepBigMonths"):-c.datepicker._get(b,"stepMonths"),"M");
break;case 34:c.datepicker._adjustDate(a.target,a.ctrlKey?+c.datepicker._get(b,"stepBigMonths"):+c.datepicker._get(b,"stepMonths"),"M");break;case 35:(a.ctrlKey||a.metaKey)&&c.datepicker._clearDate(a.target);d=a.ctrlKey||a.metaKey;break;case 36:(a.ctrlKey||a.metaKey)&&c.datepicker._gotoToday(a.target);d=a.ctrlKey||a.metaKey;break;case 37:(a.ctrlKey||a.metaKey)&&c.datepicker._adjustDate(a.target,e?1:-1,"D");d=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&c.datepicker._adjustDate(a.target,a.ctrlKey?
-c.datepicker._get(b,"stepBigMonths"):-c.datepicker._get(b,"stepMonths"),"M");break;case 38:(a.ctrlKey||a.metaKey)&&c.datepicker._adjustDate(a.target,-7,"D");d=a.ctrlKey||a.metaKey;break;case 39:(a.ctrlKey||a.metaKey)&&c.datepicker._adjustDate(a.target,e?-1:1,"D");d=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&c.datepicker._adjustDate(a.target,a.ctrlKey?+c.datepicker._get(b,"stepBigMonths"):+c.datepicker._get(b,"stepMonths"),"M");break;case 40:(a.ctrlKey||a.metaKey)&&c.datepicker._adjustDate(a.target,
7,"D");d=a.ctrlKey||a.metaKey;break;default:d=!1}else 36==a.keyCode&&a.ctrlKey?c.datepicker._showDatepicker(this):d=!1;d&&(a.preventDefault(),a.stopPropagation())},_doKeyPress:function(a){var b=c.datepicker._getInst(a.target);if(c.datepicker._get(b,"constrainInput")){var b=c.datepicker._possibleChars(c.datepicker._get(b,"dateFormat")),d=String.fromCharCode(a.charCode==A?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||" ">d||!b||-1<b.indexOf(d)}},_doKeyUp:function(a){a=c.datepicker._getInst(a.target);
if(a.input.val()!=a.lastVal)try{c.datepicker.parseDate(c.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,c.datepicker._getFormatConfig(a))&&(c.datepicker._setDateFromField(a),c.datepicker._updateAlternate(a),c.datepicker._updateDatepicker(a))}catch(b){c.datepicker.log(b)}return!0},_showDatepicker:function(a){a=a.target||a;"input"!=a.nodeName.toLowerCase()&&(a=c("input",a.parentNode)[0]);if(!c.datepicker._isDisabledDatepicker(a)&&c.datepicker._lastInput!=a){var b=c.datepicker._getInst(a);
c.datepicker._curInst&&c.datepicker._curInst!=b&&(c.datepicker._curInst.dpDiv.stop(!0,!0),b&&c.datepicker._datepickerShowing&&c.datepicker._hideDatepicker(c.datepicker._curInst.input[0]));var d=c.datepicker._get(b,"beforeShow"),d=d?d.apply(a,[a,b]):{};if(!1!==d){C(b.settings,d);b.lastVal=null;c.datepicker._lastInput=a;c.datepicker._setDateFromField(b);c.datepicker._inDialog&&(a.value="");c.datepicker._pos||(c.datepicker._pos=c.datepicker._findPos(a),c.datepicker._pos[1]+=a.offsetHeight);var e=!1;
c(a).parents().each(function(){e|="fixed"==c(this).css("position");return!e});e&&c.browser.opera&&(c.datepicker._pos[0]-=document.documentElement.scrollLeft,c.datepicker._pos[1]-=document.documentElement.scrollTop);d={left:c.datepicker._pos[0],top:c.datepicker._pos[1]};c.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});c.datepicker._updateDatepicker(b);d=c.datepicker._checkOffset(b,d,e);b.dpDiv.css({position:c.datepicker._inDialog&&c.blockUI?"static":
e?"fixed":"absolute",display:"none",left:d.left+"px",top:d.top+"px"});if(!b.inline){var d=c.datepicker._get(b,"showAnim"),f=c.datepicker._get(b,"duration"),l=function(){var a=b.dpDiv.find("iframe.ui-datepicker-cover");if(a.length){var d=c.datepicker._getBorders(b.dpDiv);a.css({left:-d[0],top:-d[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(c(a).zIndex()+1);c.datepicker._datepickerShowing=!0;if(c.effects&&c.effects[d])b.dpDiv.show(d,c.datepicker._get(b,"showOptions"),
f,l);else b.dpDiv[d||"show"](d?f:null,l);d&&f||l();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();c.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=c.datepicker._getBorders(a.dpDiv);H=a;a.dpDiv.empty().append(this._generateHTML(a));var d=a.dpDiv.find("iframe.ui-datepicker-cover");d.length&&d.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);
d=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<d&&a.dpDiv.addClass("ui-datepicker-multi-"+d).css("width",17*d+"em");a.dpDiv[(1!=b[0]||1!=b[1]?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==c.datepicker._curInst&&c.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(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,d){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),l=a.input?a.input.outerWidth():0,m=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+
c(document).scrollLeft(),n=document.documentElement.clientHeight+c(document).scrollTop();b.left-=this._get(a,"isRTL")?e-l:0;b.left-=d&&b.left==a.input.offset().left?c(document).scrollLeft():0;b.top-=d&&b.top==a.input.offset().top+m?c(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>n&&n>f?Math.abs(f+m):0);return b},_findPos:function(a){for(var b=this._getInst(a),b=this._get(b,"isRTL");a&&("hidden"==a.type||1!=a.nodeType||c.expr.filters.hidden(a));)a=
a[b?"previousSibling":"nextSibling"];a=c(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(b&&(!a||b==c.data(a,"datepicker"))&&this._datepickerShowing){a=this._get(b,"showAnim");var d=this._get(b,"duration"),e=function(){c.datepicker._tidyDialog(b)};if(c.effects&&c.effects[a])b.dpDiv.hide(a,c.datepicker._get(b,"showOptions"),d,e);else b.dpDiv["slideDown"==a?"slideUp":"fadeIn"==a?"fadeOut":"hide"](a?d:null,e);a||e();this._datepickerShowing=!1;(a=this._get(b,"onClose"))&&
a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),c.blockUI&&(c.unblockUI(),c("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(c.datepicker._curInst){a=c(a.target);var b=c.datepicker._getInst(a[0]);(a[0].id!=c.datepicker._mainDivId&&0==a.parents("#"+c.datepicker._mainDivId).length&&
!(a.hasClass(c.datepicker.markerClassName)||a.closest("."+c.datepicker._triggerClass).length||!c.datepicker._datepickerShowing||c.datepicker._inDialog&&c.blockUI)||a.hasClass(c.datepicker.markerClassName)&&c.datepicker._curInst!=b)&&c.datepicker._hideDatepicker()}},_adjustDate:function(a,b,d){a=c(a);var e=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(e,b+("M"==d?this._get(e,"showCurrentAtPos"):0),d),this._updateDatepicker(e))},_gotoToday:function(a){a=c(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 d=new Date;b.selectedDay=d.getDate();b.drawMonth=b.selectedMonth=d.getMonth();b.drawYear=b.selectedYear=d.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,d){a=c(a);var e=this._getInst(a[0]);e["selected"+("M"==d?"Month":"Year")]=e["draw"+("M"==d?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,
10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,d,e){var f=c(a);c(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0])||(f=this._getInst(f[0]),f.selectedDay=f.currentDay=c("a",e).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=d,this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(a){a=c(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){var d=c(a),d=this._getInst(d[0]);
b=null!=b?b:this._formatDate(d);d.input&&d.input.val(b);this._updateAlternate(d);var e=this._get(d,"onSelect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change");d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],"object"!=typeof d.input[0]&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var d=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(d,
e,this._getFormatConfig(a));c(b).each(function(){c(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[0<a&&6>a,""]},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,d){if(null==a||null==b)throw"Invalid arguments";b="object"==typeof b?b.toString():b+"";if(""==b)return null;for(var e=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,
e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),f=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,g=(d?d.monthNames:null)||this._defaults.monthNames,n=d=-1,h=-1,w=-1,k=!1,r=function(b){(b=B+1<a.length&&a.charAt(B+1)==b)&&B++;return b},q=function(a){var d=r(a);a=RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a&&d?4:"o"==a?3:2)+"}");a=b.substring(x).match(a);if(!a)throw"Missing number at position "+
x;x+=a[0].length;return parseInt(a[0],10)},p=function(a,d,e){a=c.map(r(a)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});var f=-1;c.each(a,function(a,d){var c=d[1];if(b.substr(x,c.length).toLowerCase()==c.toLowerCase())return f=d[0],x+=c.length,!1});if(-1!=f)return f+1;throw"Unknown name at position "+x;},u=function(){if(b.charAt(x)!=a.charAt(B))throw"Unexpected literal at position "+x;x++},x=0,B=0;B<a.length;B++)if(k)"'"!=a.charAt(B)||r("'")?u():k=!1;else switch(a.charAt(B)){case "d":h=
q("d");break;case "D":p("D",f,l);break;case "o":w=q("o");break;case "m":n=q("m");break;case "M":n=p("M",m,g);break;case "y":d=q("y");break;case "@":var y=new Date(q("@"));d=y.getFullYear();n=y.getMonth()+1;h=y.getDate();break;case "!":y=new Date((q("!")-this._ticksTo1970)/1E4);d=y.getFullYear();n=y.getMonth()+1;h=y.getDate();break;case "'":r("'")?u():k=!0;break;default:u()}if(x<b.length)throw"Extra/unparsed characters found in date: "+b.substring(x);-1==d?d=(new Date).getFullYear():100>d&&(d+=(new Date).getFullYear()-
(new Date).getFullYear()%100+(d<=e?0:-100));if(-1<w){n=1;h=w;do{e=this._getDaysInMonth(d,n-1);if(h<=e)break;n++;h-=e}while(1)}y=this._daylightSavingAdjust(new Date(d,n-1,h));if(y.getFullYear()!=d||y.getMonth()+1!=n||y.getDate()!=h)throw"Invalid date";return y},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:864E9*(718685+Math.floor(492.5)-
Math.floor(19.7)+Math.floor(4.925)),formatDate:function(a,b,d){if(!b)return"";var c=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,f=(d?d.dayNames:null)||this._defaults.dayNames,l=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort;d=(d?d.monthNames:null)||this._defaults.monthNames;var m=function(b){(b=k+1<a.length&&a.charAt(k+1)==b)&&k++;return b},g=function(a,b,d){b=""+b;if(m(a))for(;b.length<d;)b="0"+b;return b},n=function(a,b,d,c){return m(a)?c[b]:d[b]},h="",w=!1;if(b)for(var k=
0;k<a.length;k++)if(w)"'"!=a.charAt(k)||m("'")?h+=a.charAt(k):w=!1;else switch(a.charAt(k)){case "d":h+=g("d",b.getDate(),2);break;case "D":h+=n("D",b.getDay(),c,f);break;case "o":h+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":h+=g("m",b.getMonth()+1,2);break;case "M":h+=n("M",b.getMonth(),l,d);break;case "y":h+=m("y")?b.getFullYear():(10>b.getYear()%100?"0":"")+b.getYear()%100;break;case "@":h+=
b.getTime();break;case "!":h+=1E4*b.getTime()+this._ticksTo1970;break;case "'":m("'")?h+="'":w=!0;break;default:h+=a.charAt(k)}return h},_possibleChars:function(a){for(var b="",d=!1,c=function(b){(b=f+1<a.length&&a.charAt(f+1)==b)&&f++;return b},f=0;f<a.length;f++)if(d)"'"!=a.charAt(f)||c("'")?b+=a.charAt(f):d=!1;else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":c("'")?b+="'":d=!0;break;default:b+=a.charAt(f)}return b},_get:function(a,
b){return a.settings[b]!==A?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var d=this._get(a,"dateFormat"),c=a.lastVal=a.input?a.input.val():null,f,l;f=l=this._getDefaultDate(a);var m=this._getFormatConfig(a);try{f=this.parseDate(d,c,m)||l}catch(g){this.log(g),c=b?"":c}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=c?f.getDate():0;a.currentMonth=c?f.getMonth():0;a.currentYear=
c?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,d){var e=function(a){var b=new Date;b.setDate(b.getDate()+a);return b},f=function(b){try{return c.datepicker.parseDate(c.datepicker._get(a,"dateFormat"),b,c.datepicker._getFormatConfig(a))}catch(d){}for(var e=(b.toLowerCase().match(/^c/)?c.datepicker._getDate(a):null)||new Date,f=e.getFullYear(),h=e.getMonth(),
e=e.getDate(),w=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=w.exec(b);k;){switch(k[2]||"d"){case "d":case "D":e+=parseInt(k[1],10);break;case "w":case "W":e+=7*parseInt(k[1],10);break;case "m":case "M":h+=parseInt(k[1],10);e=Math.min(e,c.datepicker._getDaysInMonth(f,h));break;case "y":case "Y":f+=parseInt(k[1],10),e=Math.min(e,c.datepicker._getDaysInMonth(f,h))}k=w.exec(b)}return new Date(f,h,e)};if(b=(b=null==b||""===b?d:"string"==typeof b?f(b):"number"==typeof b?isNaN(b)?d:e(b):new Date(b.getTime()))&&
"Invalid Date"==b.toString()?d: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(12<a.getHours()?a.getHours()+2:0);return a},_setDate:function(a,b,d){var c=!b,f=a.selectedMonth,l=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();f==a.selectedMonth&&l==a.selectedYear||d||this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(c?"":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())),d=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),
l=this._get(a,"navigationAsDateFormat"),m=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),n=this._get(a,"stepMonths"),h=1!=m[0]||1!=m[1],w=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),k=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),g=a.drawMonth-g,q=a.drawYear;0>g&&(g+=12,q--);if(r)for(var p=this._daylightSavingAdjust(new Date(r.getFullYear(),r.getMonth()-m[0]*m[1]+1,r.getDate())),p=k&&p<k?k:p;this._daylightSavingAdjust(new Date(q,
g,1))>p;)g--,0>g&&(g=11,q--);a.drawMonth=g;a.drawYear=q;var p=this._get(a,"prevText"),p=l?this.formatDate(p,this._daylightSavingAdjust(new Date(q,g-n,1)),this._getFormatConfig(a)):p,p=this._canAdjustMonth(a,-1,q,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+D+".datepicker._adjustDate('#"+a.id+"', -"+n+", 'M');\" title=\""+p+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+p+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+
p+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+p+"</span></a>",u=this._get(a,"nextText"),u=l?this.formatDate(u,this._daylightSavingAdjust(new Date(q,g+n,1)),this._getFormatConfig(a)):u,f=this._canAdjustMonth(a,1,q,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+D+".datepicker._adjustDate('#"+a.id+"', +"+n+", 'M');\" title=\""+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+u+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+
u+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+u+"</span></a>",n=this._get(a,"currentText"),u=this._get(a,"gotoCurrent")&&a.currentDay?w:b,n=l?this.formatDate(n,u,this._getFormatConfig(a)):n,l=a.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+D+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>",e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(d?l:"")+(this._isInRange(a,
u)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+D+".datepicker._gotoToday('#"+a.id+"');\">"+n+"</button>":"")+(d?"":l)+"</div>":"",l=parseInt(this._get(a,"firstDay"),10),l=isNaN(l)?0:l,n=this._get(a,"showWeek"),u=this._get(a,"dayNames");this._get(a,"dayNamesShort");var x=this._get(a,"dayNamesMin"),B=this._get(a,"monthNames"),y=this._get(a,"monthNamesShort"),A=this._get(a,"beforeShowDay"),C=this._get(a,"showOtherMonths"),
H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var F=this._getDefaultDate(a),I="",J=0;J<m[0];J++){var M="";this.maxRows=4;for(var K=0;K<m[1];K++){var G=this._daylightSavingAdjust(new Date(q,g,a.selectedDay)),v=" ui-corner-all",t="";if(h){t+='<div class="ui-datepicker-group';if(1<m[1])switch(K){case 0:t+=" ui-datepicker-group-first";v=" ui-corner-"+(d?"right":"left");break;case m[1]-1:t+=" ui-datepicker-group-last";v=" ui-corner-"+(d?"left":"right");break;default:t+=" ui-datepicker-group-middle",
v=""}t+='">'}for(var t=t+('<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+v+'">'+(/all|left/.test(v)&&0==J?d?f:p:"")+(/all|right/.test(v)&&0==J?d?p:f:"")+this._generateMonthYearHeader(a,g,q,k,r,0<J||0<K,B,y)+'</div><table class="ui-datepicker-calendar"><thead><tr>'),z=n?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"",v=0;7>v;v++)var s=(v+l)%7,z=z+("<th"+(5<=(v+l+6)%7?' class="ui-datepicker-week-end"':"")+'><span title="'+u[s]+'">'+x[s]+"</span></th>");
t+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(q,g);q==a.selectedYear&&g==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,z));v=(this._getFirstDayOfMonth(q,g)-l+7)%7;z=Math.ceil((v+z)/7);this.maxRows=z=h?this.maxRows>z?this.maxRows:z:z;for(var s=this._daylightSavingAdjust(new Date(q,g,1-v)),P=0;P<z;P++){for(var t=t+"<tr>",N=n?'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(s)+"</td>":"",v=0;7>v;v++){var L=A?A.apply(a.input?a.input[0]:null,[s]):[!0,""],E=s.getMonth()!=
g,O=E&&!H||!L[0]||k&&s<k||r&&s>r,N=N+('<td class="'+(5<=(v+l+6)%7?" ui-datepicker-week-end":"")+(E?" ui-datepicker-other-month":"")+(s.getTime()==G.getTime()&&g==a.selectedMonth&&a._keyEvent||F.getTime()==s.getTime()&&F.getTime()==G.getTime()?" "+this._dayOverClass:"")+(O?" "+this._unselectableClass+" ui-state-disabled":"")+(E&&!C?"":" "+L[1]+(s.getTime()==w.getTime()?" "+this._currentClass:"")+(s.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+(E&&!C||!L[2]?"":' title="'+L[2]+'"')+(O?"":' onclick="DP_jQuery_'+
D+".datepicker._selectDay('#"+a.id+"',"+s.getMonth()+","+s.getFullYear()+', this);return false;"')+">"+(E&&!C?"&#xa0;":O?'<span class="ui-state-default">'+s.getDate()+"</span>":'<a class="ui-state-default'+(s.getTime()==b.getTime()?" ui-state-highlight":"")+(s.getTime()==w.getTime()?" ui-state-active":"")+(E?" ui-priority-secondary":"")+'" href="#">'+s.getDate()+"</a>")+"</td>");s.setDate(s.getDate()+1);s=this._daylightSavingAdjust(s)}t+=N+"</tr>"}g++;11<g&&(g=0,q++);t+="</tbody></table>"+(h?"</div>"+
(0<m[0]&&K==m[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");M+=t}I+=M}I+=e+(c.browser.msie&&7>parseInt(c.browser.version,10)&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=!1;return I},_generateMonthYearHeader:function(a,b,d,c,f,l,m,g){var n=this._get(a,"changeMonth"),h=this._get(a,"changeYear"),w=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',r="";if(l||!n)r+='<span class="ui-datepicker-month">'+
m[b]+"</span>";else{m=c&&c.getFullYear()==d;for(var q=f&&f.getFullYear()==d,r=r+('<select class="ui-datepicker-month" onchange="DP_jQuery_'+D+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >"),p=0;12>p;p++)(!m||p>=c.getMonth())&&(!q||p<=f.getMonth())&&(r+='<option value="'+p+'"'+(p==b?' selected="selected"':"")+">"+g[p]+"</option>");r+="</select>"}w||(k+=r+(!l&&n&&h?"":"&#xa0;"));if(!a.yearshtml)if(a.yearshtml="",l||!h)k+='<span class="ui-datepicker-year">'+d+"</span>";else{g=this._get(a,
"yearRange").split(":");var u=(new Date).getFullYear();m=function(a){a=a.match(/c[+-].*/)?d+parseInt(a.substring(1),10):a.match(/[+-].*/)?u+parseInt(a,10):parseInt(a,10);return isNaN(a)?u:a};b=m(g[0]);g=Math.max(b,m(g[1]||""));b=c?Math.max(b,c.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+D+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==d?' selected="selected"':
"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}k+=this._get(a,"yearSuffix");w&&(k+=(!l&&n&&h?"":"&#xa0;")+r);return k+"</div>"},_adjustInstDate:function(a,b,d){var c=a.drawYear+("Y"==d?b:0),f=a.drawMonth+("M"==d?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(c,f))+("D"==d?b:0);c=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(c,f,b)));a.selectedDay=c.getDate();a.drawMonth=a.selectedMonth=c.getMonth();a.drawYear=a.selectedYear=c.getFullYear();"M"!=d&&
"Y"!=d||this._notifyChange(a)},_restrictMinMax:function(a,b){var d=this._getMinMaxDate(a,"min"),c=this._getMinMaxDate(a,"max"),d=d&&b<d?d:b;return c&&d>c?c:d},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return null==a?[1,1]:"number"==typeof a?[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,d,c){var f=this._getNumberOfMonths(a);d=this._daylightSavingAdjust(new Date(d,c+(0>b?b:f[0]*f[1]),1));0>b&&d.setDate(this._getDaysInMonth(d.getFullYear(),d.getMonth()));return this._isInRange(a,d)},_isInRange:function(a,b){var d=this._getMinMaxDate(a,"min"),c=this._getMinMaxDate(a,"max");return(!d||b.getTime()>=d.getTime())&&(!c||b.getTime()<=
c.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b="string"!=typeof b?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){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);b=b?"object"==typeof b?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))}});c.fn.datepicker=function(a){if(!this.length)return this;c.datepicker.initialized||(c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv),c.datepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return"string"==typeof a&&("isDisabled"==a||"getDate"==a||"widget"==a)||"option"==
a&&2==arguments.length&&"string"==typeof arguments[1]?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(b)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new F;c.datepicker.initialized=!1;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="@VERSION";window["DP_jQuery_"+D]=c})(jQuery);


/*!
// ----------------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// v 1.1.7
// Dual licensed under the MIT and GPL licenses.
// ----------------------------------------------------------------------------
// Copyright (C) 2007-2010 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// ----------------------------------------------------------------------------
*/

(function(c){c.fn.markItUp=function(n,f){var b,g,k,s;g=k=s=!1;b={id:"",nameSpace:"",root:"",previewInWindow:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParserPath:"",previewParserVar:"data",resizeHandle:!0,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]};c.extend(b,n,f);b.root||c("script").each(function(g,k){miuScript=c(k).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);null!==miuScript&&
(b.root=miuScript[1])});return this.each(function(){function f(a,c){return c?a.replace(/("|')~\//g,"$1"+b.root):a.replace(/^~\//,b.root)}function n(a){var b=c("<ul></ul>"),d=0;c("li:hover > ul",b).css("display","block");c.each(a,function(){var a=this,e="",h,g;h=a.key?(a.name||"")+" [Ctrl+"+a.key+"]":a.name||"";key=a.key?'accesskey="'+a.key+'"':"";if(a.separator)e=c('<li class="markItUpSeparator">'+(a.separator||"")+"</li>").appendTo(b);else{d++;for(g=v.length-1;0<=g;g--)e+=v[g]+"-";e=c('<li class="markItUpButton markItUpButton'+
e+d+" "+(a.className||"")+'"><a href="" '+key+' title="'+h+'">'+(a.name||"")+"</a></li>").bind("contextmenu",function(){return!1}).click(function(){return!1}).mousedown(function(){a.call&&eval(a.call)();setTimeout(function(){u(a)},1);return!1}).hover(function(){c("> ul",this).show();c(document).one("click",function(){c("ul ul",x).hide()})},function(){c("> ul",this).hide()}).appendTo(b);a.dropMenu&&(v.push(d),c(e).addClass("markItUpDropMenu").append(n(a.dropMenu)))}});v.pop();return b}function H(a){return a?
(a=a.toString(),a=a.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(a,c){var b=c.split("|!|");return!0===s?void 0!==b[1]?b[1]:b[0]:void 0===b[1]?"":b[0]}),a=a.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(a,c){var b=c.split(":!:");if(!0===w)return!1;value=prompt(b[0],b[1]?b[1]:"");null===value&&(w=!0);return value})):""}function m(a){c.isFunction(a)&&(a=a(r));return H(a)}function y(a){openWith=m(p.openWith);placeHolder=m(p.placeHolder);replaceWith=m(p.replaceWith);closeWith=m(p.closeWith);block=""!==replaceWith?
openWith+replaceWith+closeWith:""===selection&&""!==placeHolder?openWith+placeHolder+closeWith:openWith+(a||selection)+closeWith;return{block:block,openWith:openWith,replaceWith:replaceWith,placeHolder:placeHolder,closeWith:closeWith}}function u(a){var t,f;r=p=a;z();c.extend(r,{line:"",root:b.root,textarea:h,selection:selection||"",caretPosition:e,ctrlKey:g,shiftKey:k,altKey:s});m(b.beforeInsert);m(p.beforeInsert);!0===g&&!0===k&&m(p.beforeMultiInsert);c.extend(r,{line:1});if(!0===g&&!0===k){lines=
selection.split(/\r?\n/);a=0;t=lines.length;for(f=0;f<t;f++)""!==c.trim(lines[f])?(c.extend(r,{line:++a,selection:lines[f]}),lines[f]=y(lines[f]).block):lines[f]="";string={block:lines.join("\n")};start=e;a=string.block.length+(c.browser.opera?t:0)}else!0===g?(string=y(selection),start=e+string.openWith.length,a=string.block.length-string.openWith.length-string.closeWith.length,a-=B(string.block)):!0===k?(string=y(selection),start=e,a=string.block.length,a-=B(string.block)):(string=y(selection),start=
e+string.block.length,a=0,start-=B(string.block));""===selection&&""===string.replaceWith&&(l+=C(string.block),start=e+string.openWith.length,a=string.block.length-string.openWith.length-string.closeWith.length,l=d.val().substring(e,d.val().length).length,l-=C(d.val().substring(0,e)));c.extend(r,{caretPosition:e,scrollPosition:A});string.block!==selection&&!1===w?(t=string.block,document.selection?document.selection.createRange().text=t:d.val(d.val().substring(0,e)+t+d.val().substring(e+selection.length,
d.val().length)),D(start,a)):l=-1;z();c.extend(r,{line:"",selection:selection});!0===g&&!0===k&&m(p.afterMultiInsert);m(p.afterInsert);m(b.afterInsert);q&&b.previewAutoRefresh&&I();k=s=g=w=!1}function C(a){return c.browser.opera?a.length-a.replace(/\n*/g,"").length:0}function B(a){return c.browser.msie?a.length-a.replace(/\r*/g,"").length:0}function D(a,b){if(h.createTextRange){if(c.browser.opera&&9.5<=c.browser.version&&0==b)return!1;range=h.createTextRange();range.collapse(!0);range.moveStart("character",
a);range.moveEnd("character",b);range.select()}else h.setSelectionRange&&h.setSelectionRange(a,a+b);h.scrollTop=A;h.focus()}function z(){h.focus();A=h.scrollTop;if(document.selection)if(selection=document.selection.createRange().text,c.browser.msie){var a=document.selection.createRange(),b=a.duplicate();b.moveToElementText(h);for(e=-1;b.inRange(a);)b.moveStart("character"),e++}else e=h.selectionStart;else e=h.selectionStart,selection=d.val().substring(e,h.selectionEnd);return selection}function I(){""!==
b.previewParserPath?c.ajax({type:"POST",url:b.previewParserPath,data:b.previewParserVar+"="+encodeURIComponent(d.val()),success:function(a){E(f(a,1))}}):J||c.ajax({url:b.previewTemplatePath,success:function(a){E(f(a,1).replace(/\x3c!-- content --\x3e/g,d.val()))}});return!1}function E(a){if(q.document){try{sp=q.document.documentElement.scrollTop}catch(c){sp=0}q.document.open();q.document.write(a);q.document.close();q.document.documentElement.scrollTop=sp}b.previewInWindow&&q.focus()}function F(a){k=
a.shiftKey;g=(s=a.altKey)&&a.ctrlKey?!1:a.ctrlKey;if("keydown"===a.type){if(!0===g&&(li=c('a[accesskey="'+String.fromCharCode(a.keyCode)+'"]',x).parent("li"),0!==li.length))return g=!1,setTimeout(function(){li.triggerHandler("mousedown")},1),!1;if(13===a.keyCode||10===a.keyCode){if(!0===g)return g=!1,u(b.onCtrlEnter),b.onCtrlEnter.keepDefault;if(!0===k)return k=!1,u(b.onShiftEnter),b.onShiftEnter.keepDefault;u(b.onEnter);return b.onEnter.keepDefault}if(9===a.keyCode){if(!0==k||!0==g||!0==s)return!1;
if(-1!==l)return z(),l=d.val().length-l,D(l,0),l=-1,!1;u(b.onTab);return b.onTab.keepDefault}}}var d,h,v,A,e,l,p,r,x,G,q,J,w;d=c(this);h=this;v=[];w=!1;A=e=0;l=-1;b.previewParserPath=f(b.previewParserPath);b.previewTemplatePath=f(b.previewTemplatePath);(function(){nameSpace=id="";b.id?id='id="'+b.id+'"':d.attr("id")&&(id='id="markItUp'+d.attr("id").substr(0,1).toUpperCase()+d.attr("id").substr(1)+'"');b.nameSpace&&(nameSpace='class="'+b.nameSpace+'"');d.wrap("<div "+nameSpace+"></div>");d.wrap("<div "+
id+' class="markItUp"></div>');d.wrap('<div class="markItUpContainer"></div>');d.addClass("markItUpEditor");x=c('<div class="markItUpHeader"></div>').insertBefore(d);c(n(b.markupSet)).appendTo(x);G=c('<div class="markItUpFooter"></div>').insertAfter(d);!0===b.resizeHandle&&!0!==c.browser.safari&&(resizeHandle=c('<div class="markItUpResizeHandle"></div>').insertAfter(d).bind("mousedown",function(a){var b=d.height(),e=a.clientY,f,g;f=function(a){d.css("height",Math.max(20,a.clientY+b-e)+"px");return!1};
g=function(a){c("html").unbind("mousemove",f).unbind("mouseup",g);return!1};c("html").bind("mousemove",f).bind("mouseup",g)}),G.append(resizeHandle));d.keydown(F).keyup(F);d.bind("insertion",function(a,b){!1!==b.target&&z();h===c.markItUp.focused&&u(b)});d.focus(function(){c.markItUp.focused=this})})()})};c.fn.markItUpRemove=function(){return this.each(function(){var n=c(this).unbind().removeClass("markItUpEditor");n.parent("div").parent("div.markItUp").parent("div").replaceWith(n)})};c.markItUp=
function(n){var f={target:!1};c.extend(f,n);if(f.target)return c(f.target).each(function(){c(this).focus();c(this).trigger("insertion",[f])});c("textarea").trigger("insertion",[f])}})(jQuery);


/**
 * @license 
 * jQuery Tools 1.2.1 / Mask - Dim the lights
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/toolbox/mask.html
 *
 * Since: Mar 2010
 * Date:    Tue May 11 09:22:32 2010 +0000 
 */

/*
 
 jQuery Tools 1.2.1 / Mask - Dim the lights

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/toolbox/mask.html

 Since: Mar 2010
 Date:    Tue May 11 09:22:32 2010 +0000 
*/
(function(b){function m(){if(b.browser.msie){var a=b(document).height(),c=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,20>a-c?c:a]}return[b(window).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.1"};var n;n=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};
var c,k,d,e,l;b.mask={load:function(a,f){if(d)return this;"string"==typeof a&&(a={color:a});a=a||e;e=a=b.extend(b.extend({},n.conf),a);c=b("#"+a.maskId);c.length||(c=b("<div/>").attr("id",a.maskId),b("body").append(c));var g=m();c.css({position:"absolute",top:0,left:0,width:g[0],height:g[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});(g=c.css("backgroundColor"))&&"transparent"!=g&&"rgba(0, 0, 0, 0)"!=g||c.css("backgroundColor",a.color);if(!1===h(a.onBeforeLoad))return this;a.closeOnEsc&&
b(document).bind("keydown.mask",function(a){27==a.keyCode&&b.mask.close(a)});a.closeOnClick&&c.bind("click.mask",function(a){b.mask.close(a)});b(window).bind("resize.mask",function(){b.mask.fit()});f&&f.length&&(l=f.eq(0).css("zIndex"),b.each(f,function(){var a=b(this);/relative|absolute|fixed/i.test(a.css("position"))||a.css("position","relative")}),k=f.css({zIndex:Math.max(a.zIndex+1,"auto"==l?0:l)}));c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad)});d=
!0;return this},close:function(){if(d){if(!1===h(e.onBeforeClose))return this;c.fadeOut(e.closeSpeed,function(){h(e.onClose);k&&k.css({zIndex:l})});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask");d=!1}return this},fit:function(){if(d){var a=m();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(){return d},getConf:function(){return e},getExposed:function(){return k}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=
function(a){b.mask.load(a,this);return this}})(jQuery);


/**
 * @license 
 * jQuery Tools 1.2.3 Overlay - Overlay base. Extend it.
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/overlay/
 *
 * Since: March 2008
 * Date:    Mon Jun 7 13:43:53 2010 +0000 
 */

/*
 
 jQuery Tools 1.2.3 Overlay - Overlay base. Extend it.

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/overlay/

 Since: March 2008
 Date:    Mon Jun 7 13:43:53 2010 +0000 
*/
(function(b){function p(a,c){var d=this,h=a.add(d),q=b(window),e,f,m,g=b.tools.expose&&(c.mask||c.expose),n=Math.random().toString().slice(10);g&&("string"==typeof g&&(g={color:g}),g.closeOnClick=g.closeOnEsc=!1);var k=c.target||a.attr("rel");f=k?b(k):a;if(!f.length)throw"Could not find Overlay: "+k;a&&-1==a.index(f)&&a.click(function(b){d.load(b);return b.preventDefault()});b.extend(d,{load:function(a){if(d.isOpened())return d;var s=r[c.effect];if(!s)throw'Overlay: cannot find effect : "'+c.effect+
'"';c.oneInstance&&b.each(t,function(){this.close(a)});a=a||b.Event();a.type="onBeforeLoad";h.trigger(a);if(a.isDefaultPrevented())return d;m=!0;g&&b(f).expose(g);var l=c.top,e=c.left,k=f.outerWidth({margin:!0}),p=f.outerHeight({margin:!0});"string"==typeof l&&(l="center"==l?Math.max((q.height()-p)/2,0):parseInt(l,10)/100*q.height());"center"==e&&(e=Math.max((q.width()-k)/2,0));s[0].call(d,{top:l,left:e},function(){m&&(a.type="onLoad",h.trigger(a))});if(g&&c.closeOnClick)b.mask.getMask().one("click",
d.close);c.closeOnClick&&b(document).bind("click."+n,function(a){b(a.target).parents(f).length||d.close(a)});c.closeOnEsc&&b(document).bind("keydown."+n,function(a){27==a.keyCode&&d.close(a)});return d},close:function(a){if(!d.isOpened())return d;a=a||b.Event();a.type="onBeforeClose";h.trigger(a);if(!a.isDefaultPrevented())return m=!1,r[c.effect][1].call(d,function(){a.type="onClose";h.trigger(a)}),b(document).unbind("click."+n).unbind("keydown."+n),g&&b.mask.close(),d},getOverlay:function(){return f},
getTrigger:function(){return a},getClosers:function(){return e},isOpened:function(){return m},getConf:function(){return c}});b.each(["onBeforeLoad","onStart","onLoad","onBeforeClose","onClose"],function(a,e){b.isFunction(c[e])&&b(d).bind(e,c[e]);d[e]=function(a){b(d).bind(e,a);return d}});e=f.find(c.close||".close");e.length||c.close||(e=b('<a class="close"></a>'),f.prepend(e));e.click(function(a){d.close(a)});c.load&&d.load()}b.tools=b.tools||{version:"1.2.3"};b.tools.overlay={addEffect:function(a,
b,d){r[a]=[b,d]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||6<b.browser.version,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var t=[],r={};b.tools.overlay.addEffect("default",function(a,c){var d=this.getConf(),h=b(window);d.fixed||(a.top+=h.scrollTop(),a.left+=h.scrollLeft());a.position=d.fixed?"fixed":"absolute";this.getOverlay().css(a).fadeIn(d.speed,c)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,
a)});b.fn.overlay=function(a){var c=this.data("overlay");if(c)return c;b.isFunction(a)&&(a={onBeforeLoad:a});a=b.extend(!0,{},b.tools.overlay.conf,a);this.each(function(){c=new p(b(this),a);t.push(c);b(this).data("overlay",c)});return a.api?c:this}})(jQuery);


/*!
 * jQuery Templates Plugin 1.0.0pre
 * http://github.com/jquery/jquery-tmpl
 * Requires jQuery 1.4.2
 *
 * Copyright Software Freedom Conservancy, Inc.
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 */

(function(d,J){function q(a,b,e,c){c={data:c||0===c||!1===c?c:b?b.data:{},_wrap:b?b._wrap:null,tmpl:null,parent:b||null,nodes:[],calls:E,nest:F,wrap:G,html:H,update:I};a&&d.extend(c,a,{nodes:[],parent:b});e&&(c.tmpl=e,c._ctnt=c._ctnt||c.tmpl(d,c),c.key=++r,(w.length?s:l)[r]=c);return c}function t(a,b,e){var c;e=e?d.map(e,function(b){return"string"===typeof b?a.key?b.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+p+'="'+a.key+'" $2'):b:t(b,a,b._ctnt)}):a;if(b)return e;e=e.join("");e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,
function(a,b,e,k){c=d(e).get();y(c);b&&(c=x(b).concat(c));k&&(c=c.concat(x(k)))});return c?c:x(e)}function x(a){var b=document.createElement("div");b.innerHTML=a;return d.makeArray(b.childNodes)}function z(a){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+d.trim(a).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
function(b,a,c,g,h,f,k){b=d.tmpl.tag[c];if(!b)throw"Unknown template tag: "+c;c=b._default||[];f&&!/\w$/.test(h)&&(h+=f,f="");h?(h=u(h),k=k?","+u(k)+")":f?")":"",k=f?-1<h.indexOf(".")?h+u(f):"("+h+").call($item"+k:h,f=f?k:"(typeof("+h+")==='function'?("+h+").call($item):("+h+"))"):f=k=c.$1||"null";g=u(g);return"');"+b[a?"close":"open"].split("$notnull_1").join(h?"typeof("+h+")!=='undefined' && ("+h+")!=null":"true").split("$1a").join(f).split("$1").join(k).split("$2").join(g||c.$2||"")+"__.push('"})+
"');}return __;")}function A(a,b){a._wrap=t(a,!0,d.isArray(b)?b:[B.test(b)?b:d(b).html()]).join("")}function u(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function y(a){function b(a){function b(a){a+=e;f=h[a]=h[a]||q(f,l[f.parent.key+e]||f.parent)}var c,g=a,f,k;if(k=a.getAttribute(p)){for(;g.parentNode&&1===(g=g.parentNode).nodeType&&!(c=g.getAttribute(p)););c!==k&&(g=g.parentNode?11===g.nodeType?0:g.getAttribute(p)||0:0,(f=l[k])||(f=s[k],f=q(f,l[g]||s[g]),f.key=++r,l[r]=f),m&&b(k));
a.removeAttribute(p)}else m&&(f=d.data(a,"tmplItem"))&&(b(f.key),l[f.key]=f,g=(g=d.data(a.parentNode,"tmplItem"))?g.key:0);if(f){for(c=f;c&&c.key!=g;)c.nodes.push(a),c=c.parent;delete f._ctnt;delete f._wrap;d.data(a,"tmplItem",f)}}var e="_"+m,c,g,h={},f,k,n;f=0;for(k=a.length;f<k;f++)if(1===(c=a[f]).nodeType){g=c.getElementsByTagName("*");for(n=g.length-1;0<=n;n--)b(g[n]);b(c)}}function E(a,b,d,c){if(!a)return w.pop();w.push({_:a,tmpl:b,item:this,data:d,options:c})}function F(a,b,e){return d.tmpl(d.template(a),
b,e,this)}function G(a,b){var e=a.options||{};e.wrapped=b;return d.tmpl(d.template(a.tmpl),a.data,e,a.item)}function H(a,b){var e=this._wrap;return d.map(d(d.isArray(e)?e.join(""):e).filter(a||"*"),function(a){if(b)a=a.innerText||a.textContent;else{var d;(d=a.outerHTML)||(d=document.createElement("div"),d.appendChild(a.cloneNode(!0)),d=d.innerHTML);a=d}return a})}function I(){var a=this.nodes;d.tmpl(null,null,null,this).insertBefore(a[0]);d(a).remove()}var C=d.fn.domManip,p="_tmplitem",B=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
l={},s={},v,D={key:0,data:{}},r=0,m=0,w=[];d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(e){var c=[];e=d(e);var g,h,f;g=1===this.length&&this[0].parentNode;v=l||{};if(g&&11===g.nodeType&&1===g.childNodes.length&&1===e.length)e[b](this[0]),c=this;else{h=0;for(f=e.length;h<f;h++)m=h,g=(0<h?this.clone(!0):this).get(),d(e[h])[b](g),c=c.concat(g);m=0;c=this.pushStack(c,a,e.selector)}e=v;v=null;d.tmpl.complete(e);
return c}});d.fn.extend({tmpl:function(a,b,e){return d.tmpl(this[0],a,b,e)},tmplItem:function(){return d.tmplItem(this[0])},template:function(a){return d.template(a,this[0])},domManip:function(a,b,e,c){if(a[0]&&d.isArray(a[0])){for(var g=d.makeArray(arguments),h=a[0],f=h.length,k=0,n;k<f&&!(n=d.data(h[k++],"tmplItem")););n&&m&&(g[2]=function(a){d.tmpl.afterManip(this,a,e)});C.apply(this,g)}else C.apply(this,arguments);m=0;v||d.tmpl.complete(l);return this}});d.extend({tmpl:function(a,b,e,c){var g=
!c;if(g)c=D,a=d.template[a]||d.template(null,a),s={};else if(!a)return a=c.tmpl,l[c.key]=c,c.nodes=[],c.wrapped&&A(c,c.wrapped),d(t(c,null,c.tmpl(d,c)));if(!a)return[];"function"===typeof b&&(b=b.call(c||{}));e&&e.wrapped&&A(e,e.wrapped);b=d.isArray(b)?d.map(b,function(b){return b?q(e,c,a,b):null}):[q(e,c,a,b)];return g?d(t(c,null,b)):b},tmplItem:function(a){var b;for(a instanceof d&&(a=a[0]);a&&1===a.nodeType&&!(b=d.data(a,"tmplItem"))&&(a=a.parentNode););return b||D},template:function(a,b){return b?
("string"===typeof b?b=z(b):b instanceof d&&(b=b[0]||{}),b.nodeType&&(b=d.data(b,"tmpl")||d.data(b,"tmpl",z(b.innerHTML))),"string"===typeof a?d.template[a]=b:b):a?"string"!==typeof a?d.template(null,a):d.template[a]||d.template(null,B.test(a)?a:d(a)):null},encode:function(a){return(""+a).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}});d.extend(d.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},
open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(a){l={}},afterManip:function(a,
b,e){var c=11===b.nodeType?d.makeArray(b.childNodes):1===b.nodeType?[b]:[];e.call(a,b);y(c);m++}})})(jQuery);



(function(){var u=this,L=u._,q={},m=Array.prototype,r=Object.prototype,v=m.push,k=m.slice,s=m.concat,n=r.toString,M=r.hasOwnProperty,A=m.forEach,B=m.map,C=m.reduce,D=m.reduceRight,E=m.filter,F=m.every,G=m.some,t=m.indexOf,H=m.lastIndexOf,r=Array.isArray,N=Object.keys,w=Function.prototype.bind,b=function(a){if(a instanceof b)return a;if(!(this instanceof b))return new b(a);this._wrapped=a};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=b),exports._=
b):u._=b;b.VERSION="1.4.4";var l=b.each=b.forEach=function(a,c,d){if(null!=a)if(A&&a.forEach===A)a.forEach(c,d);else if(a.length===+a.length)for(var e=0,f=a.length;e<f&&c.call(d,a[e],e,a)!==q;e++);else for(e in a)if(b.has(a,e)&&c.call(d,a[e],e,a)===q)break};b.map=b.collect=function(a,c,d){var b=[];if(null==a)return b;if(B&&a.map===B)return a.map(c,d);l(a,function(a,h,g){b[b.length]=c.call(d,a,h,g)});return b};b.reduce=b.foldl=b.inject=function(a,c,d,e){var f=2<arguments.length;null==a&&(a=[]);if(C&&
a.reduce===C)return e&&(c=b.bind(c,e)),f?a.reduce(c,d):a.reduce(c);l(a,function(a,b,O){f?d=c.call(e,d,a,b,O):(d=a,f=!0)});if(!f)throw new TypeError("Reduce of empty array with no initial value");return d};b.reduceRight=b.foldr=function(a,c,d,e){var f=2<arguments.length;null==a&&(a=[]);if(D&&a.reduceRight===D)return e&&(c=b.bind(c,e)),f?a.reduceRight(c,d):a.reduceRight(c);var h=a.length;if(h!==+h)var g=b.keys(a),h=g.length;l(a,function(b,k,l){k=g?g[--h]:--h;f?d=c.call(e,d,a[k],k,l):(d=a[k],f=!0)});
if(!f)throw new TypeError("Reduce of empty array with no initial value");return d};b.find=b.detect=function(a,c,b){var e;I(a,function(a,h,g){if(c.call(b,a,h,g))return e=a,!0});return e};b.filter=b.select=function(a,c,b){var e=[];if(null==a)return e;if(E&&a.filter===E)return a.filter(c,b);l(a,function(a,h,g){c.call(b,a,h,g)&&(e[e.length]=a)});return e};b.reject=function(a,c,d){return b.filter(a,function(a,b,h){return!c.call(d,a,b,h)},d)};b.every=b.all=function(a,c,d){c||(c=b.identity);var e=!0;if(null==
a)return e;if(F&&a.every===F)return a.every(c,d);l(a,function(a,b,g){if(!(e=e&&c.call(d,a,b,g)))return q});return!!e};var I=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=!1;if(null==a)return e;if(G&&a.some===G)return a.some(c,d);l(a,function(a,b,g){if(e||(e=c.call(d,a,b,g)))return q});return!!e};b.contains=b.include=function(a,c){return null==a?!1:t&&a.indexOf===t?-1!=a.indexOf(c):I(a,function(a){return a===c})};b.invoke=function(a,c){var d=k.call(arguments,2),e=b.isFunction(c);return b.map(a,
function(a){return(e?c:a[c]).apply(a,d)})};b.pluck=function(a,c){return b.map(a,function(a){return a[c]})};b.where=function(a,c,d){return b.isEmpty(c)?d?void 0:[]:b[d?"find":"filter"](a,function(a){for(var b in c)if(c[b]!==a[b])return!1;return!0})};b.findWhere=function(a,c){return b.where(a,c,!0)};b.max=function(a,c,d){if(!c&&b.isArray(a)&&a[0]===+a[0]&&65535>a.length)return Math.max.apply(Math,a);if(!c&&b.isEmpty(a))return-Infinity;var e={computed:-Infinity,value:-Infinity};l(a,function(a,b,g){b=
c?c.call(d,a,b,g):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a)&&a[0]===+a[0]&&65535>a.length)return Math.min.apply(Math,a);if(!c&&b.isEmpty(a))return Infinity;var e={computed:Infinity,value:Infinity};l(a,function(a,b,g){b=c?c.call(d,a,b,g):a;b<e.computed&&(e={value:a,computed:b})});return e.value};b.shuffle=function(a){var c,d=0,e=[];l(a,function(a){c=b.random(d++);e[d-1]=e[c];e[c]=a});return e};var x=function(a){return b.isFunction(a)?a:function(c){return c[a]}};
b.sortBy=function(a,c,d){var e=x(c);return b.pluck(b.map(a,function(a,c,b){return{value:a,index:c,criteria:e.call(d,a,c,b)}}).sort(function(a,c){var b=a.criteria,d=c.criteria;if(b!==d){if(b>d||void 0===b)return 1;if(b<d||void 0===d)return-1}return a.index<c.index?-1:1}),"value")};var J=function(a,c,d,e){var f={},h=x(c||b.identity);l(a,function(c,b){var k=h.call(d,c,b,a);e(f,k,c)});return f};b.groupBy=function(a,c,d){return J(a,c,d,function(a,c,d){(b.has(a,c)?a[c]:a[c]=[]).push(d)})};b.countBy=function(a,
c,d){return J(a,c,d,function(a,c){b.has(a,c)||(a[c]=0);a[c]++})};b.sortedIndex=function(a,c,d,e){d=null==d?b.identity:x(d);c=d.call(e,c);for(var f=0,h=a.length;f<h;){var g=f+h>>>1;d.call(e,a[g])<c?f=g+1:h=g}return f};b.toArray=function(a){return a?b.isArray(a)?k.call(a):a.length===+a.length?b.map(a,b.identity):b.values(a):[]};b.size=function(a){return null==a?0:a.length===+a.length?a.length:b.keys(a).length};b.first=b.head=b.take=function(a,c,b){return null==a?void 0:null==c||b?a[0]:k.call(a,0,c)};
b.initial=function(a,c,b){return k.call(a,0,a.length-(null==c||b?1:c))};b.last=function(a,c,b){return null==a?void 0:null==c||b?a[a.length-1]:k.call(a,Math.max(a.length-c,0))};b.rest=b.tail=b.drop=function(a,c,b){return k.call(a,null==c||b?1:c)};b.compact=function(a){return b.filter(a,b.identity)};var K=function(a,c,d){l(a,function(a){b.isArray(a)?c?v.apply(d,a):K(a,c,d):d.push(a)});return d};b.flatten=function(a,c){return K(a,c,[])};b.without=function(a){return b.difference(a,k.call(arguments,1))};
b.uniq=b.unique=function(a,c,d,e){b.isFunction(c)&&(e=d,d=c,c=!1);d=d?b.map(a,d,e):a;var f=[],h=[];l(d,function(d,e){(c?e&&h[h.length-1]===d:b.contains(h,d))||(h.push(d),f.push(a[e]))});return f};b.union=function(){return b.uniq(s.apply(m,arguments))};b.intersection=function(a){var c=k.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return 0<=b.indexOf(c,a)})})};b.difference=function(a){var c=s.apply(m,k.call(arguments,1));return b.filter(a,function(a){return!b.contains(c,
a)})};b.zip=function(){for(var a=k.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.object=function(a,c){if(null==a)return{};for(var b={},e=0,f=a.length;e<f;e++)c?b[a[e]]=c[e]:b[a[e][0]]=a[e][1];return b};b.indexOf=function(a,c,d){if(null==a)return-1;var e=0,f=a.length;if(d)if("number"==typeof d)e=0>d?Math.max(0,f+d):d;else return e=b.sortedIndex(a,c),a[e]===c?e:-1;if(t&&a.indexOf===t)return a.indexOf(c,d);for(;e<f;e++)if(a[e]===c)return e;return-1};
b.lastIndexOf=function(a,c,b){if(null==a)return-1;var e=null!=b;if(H&&a.lastIndexOf===H)return e?a.lastIndexOf(c,b):a.lastIndexOf(c);for(b=e?b:a.length;b--;)if(a[b]===c)return b;return-1};b.range=function(a,b,d){1>=arguments.length&&(b=a||0,a=0);d=arguments[2]||1;for(var e=Math.max(Math.ceil((b-a)/d),0),f=0,h=Array(e);f<e;)h[f++]=a,a+=d;return h};b.bind=function(a,b){if(a.bind===w&&w)return w.apply(a,k.call(arguments,1));var d=k.call(arguments,2);return function(){return a.apply(b,d.concat(k.call(arguments)))}};
b.partial=function(a){var b=k.call(arguments,1);return function(){return a.apply(this,b.concat(k.call(arguments)))}};b.bindAll=function(a){var c=k.call(arguments,1);if(0===c.length)throw Error("bindAll must be passed function names");l(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,c){var d={};c||(c=b.identity);return function(){var e=c.apply(this,arguments);return b.has(d,e)?d[e]:d[e]=a.apply(this,arguments)}};b.delay=function(a,b){var d=k.call(arguments,2);return setTimeout(function(){return a.apply(null,
d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(k.call(arguments,1)))};b.throttle=function(a,b){var d,e,f,h,g=0,k=function(){g=new Date;f=null;h=a.apply(d,e)};return function(){var l=new Date,m=b-(l-g);d=this;e=arguments;0>=m?(clearTimeout(f),f=null,g=l,h=a.apply(d,e)):f||(f=setTimeout(k,m));return h}};b.debounce=function(a,b,d){var e,f;return function(){var h=this,g=arguments,k=d&&!e;clearTimeout(e);e=setTimeout(function(){e=null;d||(f=a.apply(h,g))},b);k&&(f=a.apply(h,g));return f}};
b.once=function(a){var b=!1,d;return function(){if(b)return d;b=!0;d=a.apply(this,arguments);a=null;return d}};b.wrap=function(a,b){return function(){var d=[a];v.apply(d,arguments);return b.apply(this,d)}};b.compose=function(){var a=arguments;return function(){for(var b=arguments,d=a.length-1;0<=d;d--)b=[a[d].apply(this,b)];return b[0]}};b.after=function(a,b){return 0>=a?b():function(){if(1>--a)return b.apply(this,arguments)}};b.keys=N||function(a){if(a!==Object(a))throw new TypeError("Invalid object");
var c=[],d;for(d in a)b.has(a,d)&&(c[c.length]=d);return c};b.values=function(a){var c=[],d;for(d in a)b.has(a,d)&&c.push(a[d]);return c};b.pairs=function(a){var c=[],d;for(d in a)b.has(a,d)&&c.push([d,a[d]]);return c};b.invert=function(a){var c={},d;for(d in a)b.has(a,d)&&(c[a[d]]=d);return c};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&&c.push(d);return c.sort()};b.extend=function(a){l(k.call(arguments,1),function(b){if(b)for(var d in b)a[d]=b[d]});return a};b.pick=
function(a){var b={},d=s.apply(m,k.call(arguments,1));l(d,function(d){d in a&&(b[d]=a[d])});return b};b.omit=function(a){var c={},d=s.apply(m,k.call(arguments,1)),e;for(e in a)b.contains(d,e)||(c[e]=a[e]);return c};b.defaults=function(a){l(k.call(arguments,1),function(b){if(b)for(var d in b)null==a[d]&&(a[d]=b[d])});return a};b.clone=function(a){return b.isObject(a)?b.isArray(a)?a.slice():b.extend({},a):a};b.tap=function(a,b){b(a);return a};var y=function(a,c,d,e){if(a===c)return 0!==a||1/a==1/c;
if(null==a||null==c)return a===c;a instanceof b&&(a=a._wrapped);c instanceof b&&(c=c._wrapped);var f=n.call(a);if(f!=n.call(c))return!1;switch(f){case "[object String]":return a==String(c);case "[object Number]":return a!=+a?c!=+c:0==a?1/a==1/c:a==+c;case "[object Date]":case "[object Boolean]":return+a==+c;case "[object RegExp]":return a.source==c.source&&a.global==c.global&&a.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if("object"!=typeof a||"object"!=typeof c)return!1;for(var h=d.length;h--;)if(d[h]==
a)return e[h]==c;d.push(a);e.push(c);var h=0,g=!0;if("[object Array]"==f){if(h=a.length,g=h==c.length)for(;h--&&(g=y(a[h],c[h],d,e)););}else{var f=a.constructor,k=c.constructor;if(f!==k&&!(b.isFunction(f)&&f instanceof f&&b.isFunction(k)&&k instanceof k))return!1;for(var l in a)if(b.has(a,l)&&(h++,!(g=b.has(c,l)&&y(a[l],c[l],d,e))))break;if(g){for(l in c)if(b.has(c,l)&&!h--)break;g=!h}}d.pop();e.pop();return g};b.isEqual=function(a,b){return y(a,b,[],[])};b.isEmpty=function(a){if(null==a)return!0;
if(b.isArray(a)||b.isString(a))return 0===a.length;for(var c in a)if(b.has(a,c))return!1;return!0};b.isElement=function(a){return!(!a||1!==a.nodeType)};b.isArray=r||function(a){return"[object Array]"==n.call(a)};b.isObject=function(a){return a===Object(a)};l("Arguments Function String Number Date RegExp".split(" "),function(a){b["is"+a]=function(b){return n.call(b)=="[object "+a+"]"}});b.isArguments(arguments)||(b.isArguments=function(a){return!(!a||!b.has(a,"callee"))});"function"!==typeof/./&&(b.isFunction=
function(a){return"function"===typeof a});b.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};b.isNaN=function(a){return b.isNumber(a)&&a!=+a};b.isBoolean=function(a){return!0===a||!1===a||"[object Boolean]"==n.call(a)};b.isNull=function(a){return null===a};b.isUndefined=function(a){return void 0===a};b.has=function(a,b){return M.call(a,b)};b.noConflict=function(){u._=L;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=Array(a),f=0;f<a;f++)e[f]=b.call(d,
f);return e};b.random=function(a,b){null==b&&(b=a,a=0);return a+Math.floor(Math.random()*(b-a+1))};var p={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};p.unescape=b.invert(p.escape);var P={escape:RegExp("["+b.keys(p.escape).join("")+"]","g"),unescape:RegExp("("+b.keys(p.unescape).join("|")+")","g")};b.each(["escape","unescape"],function(a){b[a]=function(b){return null==b?"":(""+b).replace(P[a],function(b){return p[a][b]})}});b.result=function(a,c){if(null!=a){var d=
a[c];return b.isFunction(d)?d.call(a):d}};b.mixin=function(a){l(b.functions(a),function(c){var d=b[c]=a[c];b.prototype[c]=function(){var a=[this._wrapped];v.apply(a,arguments);a=d.apply(b,a);return this._chain?b(a).chain():a}})};var Q=0;b.uniqueId=function(a){var b=++Q+"";return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},S=/\\|'|\r|\n|\t|\u2028|\u2029/g;
b.template=function(a,c,d){var e;d=b.defaults({},d,b.templateSettings);var f=RegExp([(d.escape||z).source,(d.interpolate||z).source,(d.evaluate||z).source].join("|")+"|$","g"),h=0,g="__p+='";a.replace(f,function(b,c,d,e,f){g+=a.slice(h,f).replace(S,function(a){return"\\"+R[a]});c&&(g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'");d&&(g+="'+\n((__t=("+d+"))==null?'':__t)+\n'");e&&(g+="';\n"+e+"\n__p+='");h=f+b.length;return b});g+="';\n";d.variable||(g="with(obj||{}){\n"+g+"}\n");g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+
g+"return __p;\n";try{e=new Function(d.variable||"obj","_",g)}catch(k){throw k.source=g,k;}if(c)return e(c,b);c=function(a){return e.call(this,a,b)};c.source="function("+(d.variable||"obj")+"){\n"+g+"}";return c};b.chain=function(a){return b(a).chain()};b.mixin(b);l("pop push reverse shift sort splice unshift".split(" "),function(a){var c=m[a];b.prototype[a]=function(){var d=this._wrapped;c.apply(d,arguments);"shift"!=a&&"splice"!=a||0!==d.length||delete d[0];return this._chain?b(d).chain():d}});
l(["concat","join","slice"],function(a){var c=m[a];b.prototype[a]=function(){var a=c.apply(this._wrapped,arguments);return this._chain?b(a).chain():a}});b.extend(b.prototype,{chain:function(){this._chain=!0;return this},value:function(){return this._wrapped}})}).call(this);



(function(g){function e(a){a=a.toString();return 2>a.length?"0"+a:a}EE.formatDate=function(a,b){a=a||new Date;b=g.extend({time_format:"12",include_seconds:"n"},b);var c=a.getHours(),h=e(a.getMinutes()),k=e(a.getSeconds()),d=[],f="";"12"==b.time_format&&(f=12>c?" AM":" PM",c=c%12||12);d.push(c);d.push(h);"y"==b.include_seconds&&d.push(k);return" '"+d.join(":")+f+"'"};EE.date_obj_time=EE.formatDate(new Date,EE.date)})(jQuery);


function liveUrlTitle(){var defaultTitle =  EE.publish.default_entry_title;var NewText = document.getElementById("title").value;if (defaultTitle != ''){if (NewText.substr(0, defaultTitle.length) == defaultTitle){NewText = NewText.substr(defaultTitle.length);}}NewText = NewText.toLowerCase();var separator = "-";/* Foreign Character Attempt */var NewTextTemp = '';for(var pos=0; pos<NewText.length; pos++){var c = NewText.charCodeAt(pos);if (c >= 32 && c < 128){NewTextTemp += NewText.charAt(pos);}else{if (c == '223') {NewTextTemp += 'ss'; continue;}if (c == '224') {NewTextTemp += 'a'; continue;}if (c == '225') {NewTextTemp += 'a'; continue;}if (c == '226') {NewTextTemp += 'a'; continue;}if (c == '229') {NewTextTemp += 'a'; continue;}if (c == '227') {NewTextTemp += 'ae'; continue;}if (c == '228') {NewTextTemp += 'ae'; continue;}if (c == '230') {NewTextTemp += 'ae'; continue;}if (c == '231') {NewTextTemp += 'c'; continue;}if (c == '232') {NewTextTemp += 'e'; continue;}if (c == '233') {NewTextTemp += 'e'; continue;}if (c == '234') {NewTextTemp += 'e'; continue;}if (c == '235') {NewTextTemp += 'e'; continue;}if (c == '236') {NewTextTemp += 'i'; continue;}if (c == '237') {NewTextTemp += 'i'; continue;}if (c == '238') {NewTextTemp += 'i'; continue;}if (c == '239') {NewTextTemp += 'i'; continue;}if (c == '241') {NewTextTemp += 'n'; continue;}if (c == '242') {NewTextTemp += 'o'; continue;}if (c == '243') {NewTextTemp += 'o'; continue;}if (c == '244') {NewTextTemp += 'o'; continue;}if (c == '245') {NewTextTemp += 'o'; continue;}if (c == '246') {NewTextTemp += 'oe'; continue;}if (c == '249') {NewTextTemp += 'u'; continue;}if (c == '250') {NewTextTemp += 'u'; continue;}if (c == '251') {NewTextTemp += 'u'; continue;}if (c == '252') {NewTextTemp += 'ue'; continue;}if (c == '255') {NewTextTemp += 'y'; continue;}if (c == '257') {NewTextTemp += 'aa'; continue;}if (c == '269') {NewTextTemp += 'ch'; continue;}if (c == '275') {NewTextTemp += 'ee'; continue;}if (c == '291') {NewTextTemp += 'gj'; continue;}if (c == '299') {NewTextTemp += 'ii'; continue;}if (c == '311') {NewTextTemp += 'kj'; continue;}if (c == '316') {NewTextTemp += 'lj'; continue;}if (c == '326') {NewTextTemp += 'nj'; continue;}if (c == '353') {NewTextTemp += 'sh'; continue;}if (c == '363') {NewTextTemp += 'uu'; continue;}if (c == '382') {NewTextTemp += 'zh'; continue;}if (c == '256') {NewTextTemp += 'aa'; continue;}if (c == '268') {NewTextTemp += 'ch'; continue;}if (c == '274') {NewTextTemp += 'ee'; continue;}if (c == '290') {NewTextTemp += 'gj'; continue;}if (c == '298') {NewTextTemp += 'ii'; continue;}if (c == '310') {NewTextTemp += 'kj'; continue;}if (c == '315') {NewTextTemp += 'lj'; continue;}if (c == '325') {NewTextTemp += 'nj'; continue;}if (c == '352') {NewTextTemp += 'sh'; continue;}if (c == '362') {NewTextTemp += 'uu'; continue;}if (c == '381') {NewTextTemp += 'zh'; continue;}}}var multiReg = new RegExp(separator + '{2,}', 'g');NewText = NewTextTemp;NewText = NewText.replace('/<(.*?)>/g', '');NewText = NewText.replace(/\s+/g, separator);NewText = NewText.replace(/\//g, separator);NewText = NewText.replace(/[^a-z0-9\-\._]/g,'');NewText = NewText.replace(/\+/g, separator);NewText = NewText.replace(multiReg, separator);NewText = NewText.replace(/-$/g,'');NewText = NewText.replace(/_$/g,'');NewText = NewText.replace(/^_/g,'');NewText = NewText.replace(/^-/g,'');if (document.getElementById("url_title")){document.getElementById("url_title").value = EE.publish.url_title_prefix + NewText;}else{document.forms['entryform'].elements['url_title'].value = EE.publish.url_title_prefix + NewText;}}

var smiley_map = {};function insert_smiley(smiley, field_id) {var el = document.getElementsByName(field_id)[0], newStart;if ( ! el && smiley_map[field_id]) {el = document.getElementById(smiley_map[field_id]);if ( ! el)return false;}el.focus();smiley = " " + smiley;if ('selectionStart' in el) {newStart = el.selectionStart + smiley.length;el.value = el.value.substr(0, el.selectionStart) +smiley +el.value.substr(el.selectionEnd, el.value.length);el.setSelectionRange(newStart, newStart);}else if (document.selection) {document.selection.createRange().text = smiley;}}

/*!
 * ExpressionEngine - by EllisLab
 *
 * @package		ExpressionEngine
 * @author		EllisLab Dev Team
 * @copyright	Copyright (c) 2003 - 2014, EllisLab, Inc.
 * @license		http://ellislab.com/expressionengine/user-guide/license.html
 * @link		http://ellislab.com
 * @since		Version 2.0
 * @filesource
 */

var selField=!1,selMode="normal";function setFieldName(c){c!=selField&&(selField=c,clear_state(),tagarray=[],usedarray=[],running=0)}
function taginsert(c,h,e){var f=eval("item.name");if(!selField)return $.ee_notice(no_cursor),!1;var b=!1,d=!1,a=document.getElementById("entryform")[selField];"guided"==selMode&&(data=prompt(enter_text,""),null!=data&&""!=data&&(d=h+data+e));if(document.selection)b=document.selection.createRange().text,a.focus(),b?document.selection.createRange().text=!1==d?h+b+e:d:document.selection.createRange().text=!1==d?h+e:d,a.blur(),a.focus();else if(isNaN(a.selectionEnd)){if("guided"==selMode)curField=document.submit_post[selfField],
curField.value+=d;else{if("other"==c)eval("document.getElementById('entryform')."+selField+".value += tagOpen");else if(0==eval(f))eval("document.getElementById('entryform')."+selField+".value += result"),eval(f+" = 1"),arraypush(tagarray,e),arraypush(usedarray,f),running++,styleswap(f);else{for(i=n=0;i<tagarray.length;i++)if(tagarray[i]==e){n=i;for(running--;tagarray[n];)closeTag=arraypop(tagarray),eval("document.getElementById('entryform')."+selField+".value += closeTag");for(;usedarray[n];)clearState=
arraypop(usedarray),eval(clearState+" = 0"),document.getElementById(clearState).className="htmlButtonA"}0>=running&&"htmlButtonB"==document.getElementById("close_all").className&&(document.getElementById("close_all").className="htmlButtonA")}curField=eval("document.getElementById('entryform')."+selField)}curField.blur();curField.focus()}else{c=a.scrollTop;var g=a.textLength,b=a.selectionStart,k=a.selectionEnd;2>=k&&"undefined"!=typeof g&&(k=g);f=a.value.substring(0,b);g=a.value.substring(b,k).s3=
a.value.substring(k,g);!1==d?(b=b+h.length+g.length+e.length,a.value=!1==d?f+h+g+e+s3:d):(b+=d.length,a.value=f+d+s3);a.focus();a.selectionStart=b;a.selectionEnd=b;a.scrollTop=c}}
$(document).ready(function(){$(".js_show").show();$(".js_hide").hide();void 0!==EE.publish.markitup&&void 0!==EE.publish.markitup.fields&&$.each(EE.publish.markitup.fields,function(c,e){$("#"+c).markItUp(mySettings)});!0===EE.publish.smileys&&($("a.glossary_link").click(function(){$(this).parent().siblings(".glossary_content").slideToggle("fast");$(this).parent().siblings(".smileyContent .spellcheck_content").hide();return!1}),$("a.smiley_link").toggle(function(){which=$(this).attr("id").substr(12);
$("#smiley_table_"+which).slideDown("fast",function(){$(this).css("display","")})},function(){$("#smiley_table_"+which).slideUp("fast")}),$(this).parent().siblings(".glossary_content, .spellcheck_content").hide(),$(".glossary_content a").click(function(){$.markItUp({replaceWith:$(this).attr("title")});return!1}));$(".btn_plus a").click(function(){return confirm(EE.lang.confirm_exit,"")});$(".markItUpHeader ul").prepend('<li class="close_formatting_buttons"><a href="#"><img width="10" height="10" src="'+
EE.THEME_URL+'images/publish_minus.gif" alt="Close Formatting Buttons"/></a></li>');$(".close_formatting_buttons a").toggle(function(){$(this).parent().parent().children(":not(.close_formatting_buttons)").hide();$(this).parent().parent().css("height","13px");$(this).children("img").attr("src",EE.THEME_URL+"images/publish_plus.png")},function(){$(this).parent().parent().children().show();$(this).parent().parent().css("height","auto");$(this).children("img").attr("src",EE.THEME_URL+"images/publish_minus.gif")});
var c="";!0===EE.publish.show_write_mode&&$("#write_mode_textarea").markItUp(myWritemodeSettings);$(".write_mode_trigger").click(function(){c=$(this).attr("id").match(/^id_\d+$/)?"field_"+$(this).attr("id"):$(this).attr("id").replace(/id_/,"");$("#write_mode_textarea").val($("#"+c).val());$("#write_mode_textarea").focus();return!1})});
