/*!
 * 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(r,m){function eb(a){var b=ma[a]={},c,e,a=a.split(/\s+/);for(c=0,e=a.length;c<e;c++)b[a[c]]=!0;return b}function na(a,b,d){if(d===m&&1===a.nodeType)if(d="data-"+b.replace(fb,"-$1").toLowerCase(),d=a.getAttribute(d),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:c.isNumeric(d)?+d:gb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=m;return d}function Z(a){for(var b in a)if(!("data"===b&&c.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function oa(a,b,
d){var e=b+"defer",f=b+"queue",g=b+"mark",i=c._data(a,e);i&&("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),i.fire())},0)}function E(){return!1}function K(){return!0}function pa(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){return a===b===d});if("string"===typeof b){var e=c.grep(a,function(a){return 1===a.nodeType});if(hb.test(b))return c.filter(b,
e,!d);b=c.filter(b,e)}return c.grep(a,function(a){return 0<=c.inArray(a,b)===d})}function qa(a){var b=ra.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function sa(a,b){if(1===b.nodeType&&c.hasData(a)){var d,e,f;e=c._data(a);var g=c._data(b,e),i=e.events;if(i)for(d in delete g.handle,g.events={},i)for(e=0,f=i[d].length;e<f;e++)c.event.add(b,d,i[d][e]);if(g.data)g.data=c.extend({},g.data)}}function ta(a,b){var d;if(1===b.nodeType){b.clearAttributes&&
b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if("object"===d)b.outerHTML=a.outerHTML;else if("input"===d&&("checkbox"===a.type||"radio"===a.type)){if(a.checked)b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if("option"===d)b.selected=a.defaultSelected;else if("input"===d||"textarea"===d)b.defaultValue=a.defaultValue;else if("script"===d&&b.text!==a.text)b.text=a.text;b.removeAttribute(c.expando);b.removeAttribute("_submit_attached");
b.removeAttribute("_change_attached")}}function Q(a){return"undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName("*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll("*"):[]}function ua(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function va(a){var b=(a.nodeName||"").toLowerCase();"input"===b?ua(a):"script"!==b&&"undefined"!==typeof a.getElementsByTagName&&c.grep(a.getElementsByTagName("input"),ua)}function wa(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"+J[f]))||0),e="margin"===d?e+(parseFloat(c.css(a,d+J[f]))||0):e-(parseFloat(c.css(a,"border"+J[f]+"Width"))||0);return e+"px"}e=F(a,b);if(0>e||null==e)e=a.style[b];if($.test(e))return e;e=parseFloat(e)||0;if(d)for(;4>f;f+=2)e+=parseFloat(c.css(a,"padding"+J[f]))||0,"padding"!==d&&(e+=parseFloat(c.css(a,"border"+J[f]+"Width"))||0),"margin"===d&&(e+=parseFloat(c.css(a,d+J[f]))||0);return e+"px"}
function xa(a){return function(b,d){var j;"string"!==typeof b&&(d=b,b="*");if(c.isFunction(d))for(var e=b.toLowerCase().split(ya),f=0,g=e.length,i,h;f<g;f++)i=e[f],(h=/^\+/.test(i))&&(i=i.substr(1)||"*"),j=a[i]=a[i]||[],i=j,i[h?"unshift":"push"](d)}}function T(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=!0;for(var f=a[f],i=0,h=f?f.length:0,j=a===aa,n;i<h&&(j||!n);i++)n=f[i](b,c,e),"string"===typeof n&&(!j||g[n]?n=m:(b.dataTypes.unshift(n),n=T(a,b,c,e,n,g)));if((j||!n)&&!g["*"])n=T(a,b,c,e,"*",g);
return n}function za(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==m&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(!0,a,e)}function ba(a,b,d,e){if(c.isArray(b))c.each(b,function(b,c){d||ib.test(a)?e(a,c):ba(a+"["+("object"===typeof c?b:"")+"]",c,d,e)});else if(!d&&"object"===c.type(b))for(var f in b)ba(a+"["+f+"]",b[f],d,e);else e(a,b)}function Aa(){try{return new r.XMLHttpRequest}catch(a){}}function Ba(){setTimeout(jb,0);return U=c.now()}function jb(){U=m}function L(a,b){var d={};c.each(V.concat.apply([],
V.slice(0,b)),function(){d[this]=a});return d}function Ca(a){if(!ca[a]){var b=k.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if("none"===e||""===e){if(!y)y=k.createElement("iframe"),y.frameBorder=y.width=y.height=0;b.appendChild(y);if(!G||!y.createElement)G=(y.contentWindow||y.contentDocument).document,G.write((c.support.boxModel?"<!doctype html>":"")+"<html><body>"),G.close();d=G.createElement(a);G.body.appendChild(d);e=c.css(d,"display");b.removeChild(y)}ca[a]=e}return ca[a]}function Da(a){return c.isWindow(a)?
a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var k=r.document,kb=r.navigator,lb=r.location,c=function(){function a(){if(!b.isReady){try{k.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=r.jQuery,e=r.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,h=/^\s+/,j=/\s+$/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,p=/^[\],:{}\s]*$/,l=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,mb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
o=/(?:^|:|,)(?:\s*\[)+/g,da=/(webkit)[ \/]([\w.]+)/,nb=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,z=/^-ms-/,q=function(a,b){return(b+"").toUpperCase()},B=kb.userAgent,s,A,ob=Object.prototype.toString,ea=Object.prototype.hasOwnProperty,fa=Array.prototype.push,S=Array.prototype.slice,Ea=String.prototype.trim,Fa=Array.prototype.indexOf,Ga={};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&&k.body)return this.context=k,this[0]=k.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:g.exec(a))&&(e[1]||!c)){if(e[1])return d=(c=c instanceof b?c[0]:c)?c.ownerDocument||c:k,(a=n.exec(a))?b.isPlainObject(c)?(a=[k.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=k.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=k;this.selector=a;return this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}if(b.isFunction(a))return d.ready(a);if(a.selector!==m)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 S.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)?fa.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;if("find"===c)e.selector=this.selector+(this.selector?" ":"")+d;else if(c)e.selector=this.selector+"."+c+"("+d+")";return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();s.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(S.apply(this,arguments),"slice",S.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:fa,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,s=arguments[0]||{},g=1,i=arguments.length,h=!1;"boolean"===typeof s&&(h=s,s=arguments[1]||{},g=2);"object"!==typeof s&&!b.isFunction(s)&&(s=
{});i===g&&(s=this,--g);for(;g<i;g++)if(null!=(a=arguments[g]))for(c in a)d=s[c],e=a[c],s!==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:{},s[c]=b.extend(h,d,e)):e!==m&&(s[c]=e));return s};b.extend({noConflict:function(a){if(r.$===b)r.$=e;if(a&&r.jQuery===b)r.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(!k.body)return setTimeout(b.ready,
1);b.isReady=!0;!0!==a&&0<--b.readyWait||(s.fireWith(k,[b]),b.fn.trigger&&b(k).trigger("ready").off("ready"))}},bindReady:function(){if(!s){s=b.Callbacks("once memory");if("complete"===k.readyState)return setTimeout(b.ready,1);if(k.addEventListener)k.addEventListener("DOMContentLoaded",A,!1),r.addEventListener("load",b.ready,!1);else if(k.attachEvent){k.attachEvent("onreadystatechange",A);r.attachEvent("onload",b.ready);var c=!1;try{c=null==r.frameElement}catch(d){}k.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?""+a:Ga[ob.call(a)]||"object"},isPlainObject:function(a){if(!a||"object"!==b.type(a)||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!ea.call(a,"constructor")&&!ea.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var d in a);
return d===m||ea.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(r.JSON&&r.JSON.parse)return r.JSON.parse(a);if(p.test(a.replace(l,"@").replace(mb,"]").replace(o,"")))return(new Function("return "+a))();b.error("Invalid JSON: "+a)},parseXML:function(a){if("string"!==typeof a||!a)return null;var c,d;try{r.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):
(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(e){c=m}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+a);return c},noop:function(){},globalEval:function(a){a&&i.test(a)&&(r.execScript||function(a){r.eval.call(r,a)})(a)},camelCase:function(a){return a.replace(z,"ms-").replace(v,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,s=a.length,g=s===m||b.isFunction(a);
if(d)if(g)for(e in a){if(!1===c.apply(a[e],d))break}else for(;f<s&&!(!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<s&&!(!1===c.call(a[f],f,a[f++])););return a},trim:Ea?function(a){return null==a?"":Ea.call(a)}:function(a){return null==a?"":a.toString().replace(h,"").replace(j,"")},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)?fa.call(d,a):b.merge(d,a)}return d},
inArray:function(a,b,c){var d;if(b){if(Fa)return Fa.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]!==m;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){for(var d=[],e,c=!!c,f=0,s=a.length;f<s;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var e,f,s=[],g=0,i=a.length;if(a instanceof b||i!==m&&"number"===
typeof i&&(0<i&&a[0]&&a[i-1]||0===i||b.isArray(a)))for(;g<i;g++)e=c(a[g],g,d),null!=e&&(s[s.length]=e);else for(f in a)e=c(a[f],f,d),null!=e&&(s[s.length]=e);return s.concat.apply([],s)},guid:1,proxy:function(a,c){if("string"===typeof c)var d=a[c],c=a,a=d;if(!b.isFunction(a))return m;var e=S.call(arguments,2),d=function(){return a.apply(c,e.concat(S.call(arguments)))};d.guid=a.guid=a.guid||d.guid||b.guid++;return d},access:function(a,c,d,e,f,s,g){var i,h=null==d,A=0,j=a.length;if(d&&"object"===typeof d){for(A in d)b.access(a,
c,A,d[A],1,s,e);f=1}else if(e!==m){i=g===m&&b.isFunction(e);h&&(i?(i=c,c=function(a,c,d){return i.call(b(a),d)}):(c.call(a,e),c=null));if(c)for(;A<j;A++)c(a[A],d,i?e.call(a[A],A,c(a[A],d)):e,g);f=1}return f?a:h?c.call(a):j?c(a[0],d):s},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=da.exec(a)||nb.exec(a)||t.exec(a)||0>a.indexOf("compatible")&&u.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(k);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Ga["[object "+b+"]"]=b.toLowerCase()});B=b.uaMatch(B);if(B.browser)b.browser[B.browser]=!0,b.browser.version=B.version;if(b.browser.webkit)b.browser.safari=!0;i.test("\u00a0")&&
(h=/^[\s\xA0]+/,j=/[\s\xA0]+$/);f=b(k);k.addEventListener?A=function(){k.removeEventListener("DOMContentLoaded",A,!1);b.ready()}:k.attachEvent&&(A=function(){"complete"===k.readyState&&(k.detachEvent("onreadystatechange",A),b.ready())});return b}(),ma={};c.Callbacks=function(a){var a=a?ma[a]||eb(a):{},b=[],d=[],e,f,g,i,h,j,n=function(d){var e,f,g,i;for(e=0,f=d.length;e<f;e++)g=d[e],i=c.type(g),"array"===i?n(g):"function"===i&&(!a.unique||!l.has(g))&&b.push(g)},p=function(c,n){n=n||[];e=!a.memory||
[c,n];g=f=!0;j=i||0;i=0;for(h=b.length;b&&j<h;j++)if(!1===b[j].apply(c,n)&&a.stopOnFalse){e=!0;break}g=!1;b&&(a.once?!0===e?l.disable():b=[]:d&&d.length&&(e=d.shift(),l.fireWith(e[0],e[1])))},l={add:function(){if(b){var a=b.length;n(arguments);g?h=b.length:e&&!0!==e&&(i=a,p(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<=j&&j--),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=m;return this},disabled:function(){return!b},lock:function(){d=m;(!e||!0===e)&&l.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(g?a.once||d.push([b,c]):(!a.once||!e)&&p(b,c));return this},fire:function(){l.fireWith(this,arguments);return this},fired:function(){return!!f}};return l};var ga=[].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},i={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=i;else for(var b in i)a[b]=i[b];return a}},h=i.promise({}),j;for(j in g)h[j]=g[j].fire,h[j+"With"]=g[j].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?
ga.call(arguments,0):b;--h||j.resolveWith(j,e)}}function d(a){return function(b){i[a]=1<arguments.length?ga.call(arguments,0):b;j.notifyWith(n,i)}}var e=ga.call(arguments,0),f=0,g=e.length,i=Array(g),h=g,j=1>=g&&a&&c.isFunction(a.promise)?a:c.Deferred(),n=j.promise();if(1<g){for(;f<g;f++)e[f]&&e[f].promise&&c.isFunction(e[f].promise)?e[f].promise().then(b(f),j.reject,d(f)):--h;h||j.resolveWith(j,e)}else j!==a&&j.resolveWith(j,g?[a]:[]);return n}});c.support=function(){var a,b,d,e,f,g,i,h,j=k.createElement("div");
j.setAttribute("className","t");j.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=j.getElementsByTagName("*");d=j.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=k.createElement("select");f=e.appendChild(k.createElement("option"));b=j.getElementsByTagName("input")[0];a={leadingWhitespace:3===j.firstChild.nodeType,tbody:!j.getElementsByTagName("tbody").length,htmlSerialize:!!j.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"!==j.className,enctype:!!k.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==k.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"===k.compatMode;b.checked=!0;a.noCloneChecked=b.cloneNode(!0).checked;e.disabled=!0;a.optDisabled=!f.disabled;try{delete j.test}catch(n){a.deleteExpando=!1}!j.addEventListener&&j.attachEvent&&j.fireEvent&&(j.attachEvent("onclick",function(){a.noCloneEvent=!1}),j.cloneNode(!0).fireEvent("onclick"));b=k.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue="t"===b.value;b.setAttribute("checked","checked");b.setAttribute("name",
"t");j.appendChild(b);d=k.createDocumentFragment();d.appendChild(j.lastChild);a.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(j);if(j.attachEvent)for(i in{submit:1,change:1,focusin:1})b="on"+i,h=b in j,h||(j.setAttribute(b,"return;"),h="function"===typeof j[b]),a[i+"Bubbles"]=h;d.removeChild(j);d=e=f=j=b=null;c(function(){var b,d,e,f,i=k.getElementsByTagName("body")[0];if(i){b=k.createElement("div");b.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px";
i.insertBefore(b,i.firstChild);j=k.createElement("div");b.appendChild(j);j.innerHTML="<table><tr><td style='padding:0;margin:0;border:0;display:none'></td><td>t</td></tr></table>";g=j.getElementsByTagName("td");h=0===g[0].offsetHeight;g[0].style.display="";g[1].style.display="none";a.reliableHiddenOffsets=h&&0===g[0].offsetHeight;if(r.getComputedStyle)j.innerHTML="",d=k.createElement("div"),d.style.width="0",d.style.marginRight="0",j.style.width="2px",j.appendChild(d),a.reliableMarginRight=0===(parseInt((r.getComputedStyle(d,
null)||{marginRight:0}).marginRight,10)||0);if("undefined"!==typeof j.style.zoom)j.innerHTML="",j.style.width=j.style.padding="1px",j.style.border=0,j.style.overflow="hidden",j.style.display="inline",j.style.zoom=1,a.inlineBlockNeedsLayout=3===j.offsetWidth,j.style.display="block",j.style.overflow="visible",j.innerHTML="<div style='width:5px;'></div>",a.shrinkWrapBlocks=3!==j.offsetWidth;j.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;";
j.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=j.firstChild;e=d.firstChild;f={doesNotAddBorder:5!==e.offsetTop,doesAddBorderForTableAndCells:5===d.nextSibling.firstChild.firstChild.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!==i.offsetTop;if(r.getComputedStyle)j.style.marginTop="1%",a.pixelMargin="1%"!==(r.getComputedStyle(j,null)||{marginTop:0}).marginTop;if("undefined"!==typeof b.style.zoom)b.style.zoom=1;i.removeChild(b);j=null;c.extend(a,f)}});
return a}();var gb=/^(?:\{.*\}|\[.*\])$/,fb=/([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&&!Z(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var g="string"===typeof b,i=a.nodeType,h=i?c.cache:a,j=i?a[f]:a[f]&&f,n="events"===b;if(j&&h[j]&&(n||e||h[j].data)||!(g&&d===m)){j||
(i?a[f]=j=++c.uuid:j=f);if(!h[j]&&(h[j]={},!i))h[j].toJSON=c.noop;if("object"===typeof b||"function"===typeof b)e?h[j]=c.extend(h[j],b):h[j].data=c.extend(h[j].data,b);f=a=h[j];if(!e){if(!a.data)a.data={};a=a.data}d!==m&&(a[c.camelCase(b)]=d);if(n&&!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,i=c.expando,h=a.nodeType,j=h?c.cache:a,n=h?a[i]:i;if(j[n]){if(b&&(e=d?j[n]:j[n].data)){c.isArray(b)||(b in e?b=[b]:
(b=c.camelCase(b),b=b in e?[b]:b.split(" ")));for(f=0,g=b.length;f<g;f++)delete e[b[f]];if(!(d?Z:c.isEmptyObject)(e))return}if(!d&&(delete j[n].data,!Z(j[n])))return;c.support.deleteExpando||!j.setInterval?delete j[n]:j[n]=null;h&&(c.support.deleteExpando?delete a[i]:a.removeAttribute?a.removeAttribute(i):a[i]=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,i,h=this[0],j=0,n=null;if(a===m){if(this.length&&(n=c.data(h),1===h.nodeType&&!c._data(h,"parsedAttrs"))){f=h.attributes;for(i=f.length;j<i;j++)g=f[j].name,0===g.indexOf("data-")&&(g=c.camelCase(g.substring(5)),na(h,g,n[g]));c._data(h,"parsedAttrs",!0)}return n}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===m)return n=this.triggerHandler("getData"+
e,[d[0]]),n===m&&h&&(n=c.data(h,a),n=na(h,a,n)),n===m&&d[1]?this.data(d[0]):n;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){var d=d||"fx",e=d+"mark";(a=a?0:(c._data(b,
e)||1)-1)?c._data(b,e,a):(c.removeData(b,e,!0),oa(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){var b=b||"fx",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),oa(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===m?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(){--i||
e.resolveWith(f,[f])}"string"!==typeof a&&(b=a,a=m);for(var a=a||"fx",e=c.Deferred(),f=this,g=f.length,i=1,h=a+"defer",j=a+"queue",n=a+"mark",p;g--;)if(p=c.data(f[g],h,m,!0)||(c.data(f[g],j,m,!0)||c.data(f[g],n,m,!0))&&c.data(f[g],h,c.Callbacks("once memory"),!0))i++,p.add(d);d();return e.promise(b)}});var Ha=/[\n\t\r]/g,W=/\s+/,pb=/\r/g,qb=/^(?:button|input)$/i,rb=/^(?:button|input|object|select|textarea)$/i,sb=/^a(?:rea)?$/i,Ia=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
Ja=c.support.getSetAttribute,w,Ka,La;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]=m,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,i,h;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});
if(a&&"string"===typeof a){b=a.split(W);for(d=0,e=this.length;d<e;d++)if(f=this[d],1===f.nodeType)if(!f.className&&1===b.length)f.className=a;else{g=" "+f.className+" ";for(i=0,h=b.length;i<h;i++)~g.indexOf(" "+b[i]+" ")||(g+=b[i]+" ");f.className=c.trim(g)}}return this},removeClass:function(a){var b,d,e,f,g,i,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===m){b=(a||"").split(W);for(d=0,e=this.length;d<e;d++)if(f=
this[d],1===f.nodeType&&f.className)if(a){g=(" "+f.className+" ").replace(Ha," ");for(i=0,h=b.length;i<h;i++)g=g.replace(" "+b[i]+" "," ");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,i=c(this),h=b,j=a.split(W);f=j[g++];)h=e?h:!i.hasClass(f),i[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){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if(1===this[b].nodeType&&-1<(" "+this[b].className+" ").replace(Ha," ").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);if(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")===m))this.value=d});if(f){if((b=c.valHooks[f.type]||c.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(d=b.get(f,"value"))!==m)return d;d=f.value;return"string"===typeof d?d.replace(pb,""):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,i="select-one"===a.type;if(0>e)return null;a=i?e:0;for(d=i?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(i)return b;f.push(b)}return i&&!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)});if(!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,i=a.nodeType;if(a&&!(3===i||8===i||2===i)){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!==i||!c.isXMLDoc(a))b=b.toLowerCase(),g=c.attrHooks[b]||(Ia.test(b)?Ka:w);if(d!==m)if(null===d)c.removeAttr(a,b);else{if(g&&"set"in g&&e&&(f=g.set(a,d,b))!==m)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?m:f}}},removeAttr:function(a,b){var d,e,f,g,i,h=0;if(b&&1===a.nodeType){e=b.toLowerCase().split(W);for(g=e.length;h<g;h++)if(f=e[h])d=c.propFix[f]||f,(i=Ia.test(f))||c.attr(a,f,""),a.removeAttribute(Ja?f:d),i&&d in a&&(a[d]=!1)}},attrHooks:{type:{set:function(a,b){if(qb.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);if(d)a.value=d;return b}}},value:{get:function(a,b){return w&&c.nodeName(a,"button")?w.get(a,b):b in a?a.value:null},set:function(a,b,d){if(w&&c.nodeName(a,"button"))return w.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=a.nodeType;if(a&&!(3===g||8===g||2===g)){if(1!==g||!c.isXMLDoc(a))b=c.propFix[b]||b,f=c.propHooks[b];return d!==m?f&&"set"in f&&(e=f.set(a,d,b))!==m?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):rb.test(a.nodeName)||sb.test(a.nodeName)&&a.href?0:m}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;Ka={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():m},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}};if(!Ja)La={name:!0,id:!0,coords:!0},w=c.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(La[b]?""!==c.nodeValue:c.specified)?c.nodeValue:m},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=k.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=b+
""}},c.attrHooks.tabindex.set=w.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:w.get,set:function(a,b,c){""===b&&(b="false");w.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?m:a}})});if(!c.support.style)c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||
m},set:function(a,b){return a.style.cssText=""+b}};if(!c.support.optSelected)c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}});if(!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 ha=/^(?:textarea|input|select)$/i,Ma=/^([^\.]*)?(?:\.(.+))?$/,tb=/(?:^|\s)hover(\.\S+)?\b/,ub=/^key/,vb=/^(?:mouse|contextmenu)|click/,Na=/^(?:focusinfocus|focusoutblur)$/,wb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,xb=function(a){if(a=wb.exec(a))a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)");return a},Oa=function(a){return c.event.special.hover?a:a.replace(tb,"mouseenter$1 mouseleave$1")};c.event={add:function(a,b,d,e,f){var g,i,h,j,n,p,l,k,o;if(!(3===a.nodeType||
8===a.nodeType||!b||!d||!(g=c._data(a)))){if(d.handler)l=d,d=l.handler,f=l.selector;if(!d.guid)d.guid=c.guid++;h=g.events;if(!h)g.events=h={};i=g.handle;if(!i)g.handle=i=function(a){return"undefined"!==typeof c&&(!a||c.event.triggered!==a.type)?c.event.dispatch.apply(i.elem,arguments):m},i.elem=a;b=c.trim(Oa(b)).split(" ");for(g=0;g<b.length;g++){j=Ma.exec(b[g])||[];n=j[1];p=(j[2]||"").split(".").sort();o=c.event.special[n]||{};n=(f?o.delegateType:o.bindType)||n;o=c.event.special[n]||{};j=c.extend({type:n,
origType:j[1],data:e,handler:d,guid:d.guid,selector:f,quick:f&&xb(f),namespace:p.join(".")},l);k=h[n];if(!k&&(k=h[n]=[],k.delegateCount=0,!o.setup||!1===o.setup.call(a,e,p,i)))a.addEventListener?a.addEventListener(n,i,!1):a.attachEvent&&a.attachEvent("on"+n,i);if(o.add&&(o.add.call(a,j),!j.handler.guid))j.handler.guid=d.guid;f?k.splice(k.delegateCount++,0,j):k.push(j);c.event.global[n]=!0}a=null}},global:{},remove:function(a,b,d,e,f){var g=c.hasData(a)&&c._data(a),i,h,j,n,p,l,k,o,m,r;if(g&&(k=g.events)){b=
c.trim(Oa(b||"")).split(" ");for(i=0;i<b.length;i++)if(h=Ma.exec(b[i])||[],j=n=h[1],h=h[2],j){o=c.event.special[j]||{};j=(e?o.delegateType:o.bindType)||j;m=k[j]||[];p=m.length;h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(l=0;l<m.length;l++)if(r=m[l],(f||n===r.origType)&&(!d||d.guid===r.guid)&&(!h||h.test(r.namespace))&&(!e||e===r.selector||"**"===e&&r.selector))m.splice(l--,1),r.selector&&m.delegateCount--,o.remove&&o.remove.call(a,r);0===m.length&&p!==m.length&&
((!o.teardown||!1===o.teardown.call(a,h))&&c.removeEvent(a,j,g.handle),delete k[j])}else for(j in k)c.event.remove(a,j+b[i],d,e,!0);if(c.isEmptyObject(k)){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=[],i,h,j,n,p;if(!Na.test(f+c.event.triggered)&&(0<=f.indexOf("!")&&(f=f.slice(0,-1),i=!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=i,a.namespace=g.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,i=0>f.indexOf(":")?"on"+f:"",d){a.result=m;if(!a.target)a.target=d;b=null!=b?c.makeArray(b):[];b.unshift(a);j=c.event.special[f]||{};if(!(j.trigger&&!1===j.trigger.apply(d,b))){p=[[d,j.bindType||f]];if(!e&&!j.noBubble&&!c.isWindow(d)){n=
j.delegateType||f;g=Na.test(n+f)?d:d.parentNode;for(h=null;g;g=g.parentNode)p.push([g,n]),h=g;h&&h===d.ownerDocument&&p.push([h.defaultView||h.parentWindow||r,n])}for(h=0;h<p.length&&!a.isPropagationStopped();h++)g=p[h][0],a.type=p[h][1],(n=(c._data(g,"events")||{})[a.type]&&c._data(g,"handle"))&&n.apply(g,b),(n=i&&g[i])&&c.acceptData(g)&&!1===n.apply(g,b)&&a.preventDefault();a.type=f;if(!e&&!a.isDefaultPrevented()&&(!j._default||!1===j._default.apply(d.ownerDocument,b))&&!("click"===f&&c.nodeName(d,
"a"))&&c.acceptData(d))if(i&&d[f]&&("focus"!==f&&"blur"!==f||0!==a.target.offsetWidth)&&!c.isWindow(d))(h=d[i])&&(d[i]=null),c.event.triggered=f,d[f](),c.event.triggered=m,h&&(d[i]=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){var a=c.event.fix(a||r.event),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]||{},i=
[],h,j,n,p,l,k,o;e[0]=a;a.delegateTarget=this;if(!(g.preDispatch&&!1===g.preDispatch.call(this,a))){if(d&&!(a.button&&"click"===a.type)){n=c(this);n.context=this.ownerDocument||this;for(j=a.target;j!=this;j=j.parentNode||this)if(!0!==j.disabled){l={};k=[];n[0]=j;for(h=0;h<d;h++){p=b[h];o=p.selector;if(l[o]===m){var da=l,v=o,t;if(p.quick){t=p.quick;var u=j.attributes||{};t=(!t[1]||j.nodeName.toLowerCase()===t[1])&&(!t[2]||(u.id||{}).value===t[2])&&(!t[3]||t[3].test((u["class"]||{}).value))}else t=
n.is(o);da[v]=t}l[o]&&k.push(p)}k.length&&i.push({elem:j,matches:k})}}b.length>d&&i.push({elem:this,matches:b.slice(d)});for(h=0;h<i.length&&!a.isPropagationStopped();h++){d=i[h];a.currentTarget=d.elem;for(b=0;b<d.matches.length&&!a.isImmediatePropagationStopped();b++)if(p=d.matches[b],f||!a.namespace&&!p.namespace||a.namespace_re&&a.namespace_re.test(p.namespace))if(a.data=p.data,a.handleObj=p,p=((c.event.special[p.origType]||{}).handle||p.handler).apply(d.elem,e),p!==m)a.result=p,!1===p&&(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".split(" "),filter:function(a,b){if(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;if(null==a.pageX&&null!=b.clientX)c=a.target.ownerDocument||k,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);if(!a.relatedTarget&&g)a.relatedTarget=g===a.target?b.toElement:g;if(!a.which&&f!==m)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];if(!a.target)a.target=e.srcElement||k;if(3===a.target.nodeType)a.target=a.target.parentNode;if(a.metaKey===m)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){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,
b){if(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=k.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()?K:E):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=K;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;if(a)a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K;this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};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}}});if(!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;if((a=c.nodeName(a,"input")||c.nodeName(a,"button")?a.form:m)&&!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")}};if(!c.support.changeBubbles)c.event.special.change={setup:function(){if(ha.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)c.event.add(this,"propertychange._change",function(a){if("checked"===a.originalEvent.propertyName)this._just_changed=!0}),c.event.add(this,"click._change",function(a){if(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;if(ha.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 ha.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++&&k.addEventListener(a,e,!0)},teardown:function(){0===--d&&k.removeEventListener(a,e,!0)}}});c.fn.extend({on:function(a,b,d,e,f){var g,i;if("object"===typeof a){"string"!==typeof b&&(d=d||b,b=m);for(i in a)this.on(i,b,d,a[i],f);return this}null==d&&null==e?(e=b,d=b=m):null==e&&("string"===typeof b?(e=d,d=m):(e=d,d=b,b=m));if(!1===e)e=E;else if(!e)return this;
if(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=m;!1===
d&&(d=E);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);if(ub.test(b))c.event.fixHooks[b]=c.event.keyHooks;if(vb.test(b))c.event.fixHooks[b]=c.event.mouseHooks});(function(){function a(a,b,c,d,f,g){for(var f=0,i=d.length;f<i;f++){var h=d[f];if(h){for(var j=!1,h=h[a];h;){if(h[e]===c){j=d[h.sizset];break}if(1===h.nodeType&&!g)h[e]=c,h.sizset=f;if(h.nodeName.toLowerCase()===b){j=h;break}h=h[a]}d[f]=j}}}function b(a,
b,c,d,f,g){for(var f=0,i=d.length;f<i;f++){var h=d[f];if(h){for(var j=!1,h=h[a];h;){if(h[e]===c){j=d[h.sizset];break}if(1===h.nodeType){if(!g)h[e]=c,h.sizset=f;if("string"!==typeof b){if(h===b){j=!0;break}}else if(0<l.filter(b,[h]).length){j=h;break}}h=h[a]}d[f]=j}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,i=!1,h=!0,j=/\\/g,
n=/\r\n/g,p=/\W/;[0,0].sort(function(){h=!1;return 0});var l=function(a,b,c,e){var c=c||[],f=b=b||k;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var i,h,j,n,p,m=!0,r=l.isXML(b),q=[],t=a;do if(d.exec(""),i=d.exec(t))if(t=i[3],q.push(i[1]),i[2]){n=i[3];break}while(i);if(1<q.length&&v.exec(a))if(2===q.length&&o.relative[q[0]])h=B(q[0]+q[1],b,e);else for(h=o.relative[q[0]]?[b]:l(q.shift(),b);q.length;)a=q.shift(),o.relative[a]&&(a+=q.shift()),h=B(a,h,e);else if(!e&&1<
q.length&&9===b.nodeType&&!r&&o.match.ID.test(q[0])&&!o.match.ID.test(q[q.length-1])&&(i=l.find(q.shift(),b,r),b=i.expr?l.filter(i.expr,i.set)[0]:i.set[0]),b){i=e?{expr:q.pop(),set:u(e)}:l.find(q.pop(),1===q.length&&("~"===q[0]||"+"===q[0])&&b.parentNode?b.parentNode:b,r);h=i.expr?l.filter(i.expr,i.set):i.set;for(0<q.length?j=u(h):m=!1;q.length;)i=p=q.pop(),o.relative[p]?i=q.pop():p="",null==i&&(i=b),o.relative[p](j,i,r)}else j=[];j||(j=h);j||l.error(p||a);if("[object Array]"===g.call(j))if(m)if(b&&
1===b.nodeType)for(a=0;null!=j[a];a++)j[a]&&(!0===j[a]||1===j[a].nodeType&&l.contains(b,j[a]))&&c.push(h[a]);else for(a=0;null!=j[a];a++)j[a]&&1===j[a].nodeType&&c.push(h[a]);else c.push.apply(c,j);else u(j,c);n&&(l(n,f,c,e),l.uniqueSort(c));return c};l.uniqueSort=function(a){if(z&&(i=h,a.sort(z),i))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};l.matches=function(a,b){return l(a,null,null,b)};l.matchesSelector=function(a,b){return 0<l(b,null,null,[a]).length};l.find=function(a,
b,c){var d,e,f,g,i,h;if(!a)return[];for(e=0,f=o.order.length;e<f;e++)if(i=o.order[e],g=o.leftMatch[i].exec(a))if(h=g[1],g.splice(1,1),"\\"!==h.substr(h.length-1)&&(g[1]=(g[1]||"").replace(j,""),d=o.find[i](g,b,c),null!=d)){a=a.replace(o.match[i],"");break}d||(d="undefined"!==typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};l.filter=function(a,b,c,d){for(var e,f,g,i,h,j,n,p,k=a,q=[],r=b,t=b&&b[0]&&l.isXML(b[0]);a&&b.length;){for(g in o.filter)if(null!=(e=o.leftMatch[g].exec(a))&&
e[2])if(j=o.filter[g],h=e[1],f=!1,e.splice(1,1),"\\"!==h.substr(h.length-1)){r===q&&(q=[]);if(o.preFilter[g])if(e=o.preFilter[g](e,r,c,q,d,t)){if(!0===e)continue}else f=i=!0;if(e)for(n=0;null!=(h=r[n]);n++)h&&(i=j(h,e,n,r),p=d^i,c&&null!=i?p?f=!0:r[n]=!1:p&&(q.push(h),f=!0));if(i!==m){c||(r=q);a=a.replace(o.match[g],"");if(!f)return[];break}}if(a===k)if(null==f)l.error(a);else break;k=a}return r};l.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var r=l.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(n,"");for(a=a.firstChild;a;a=a.nextSibling)d+=r(a)}else{if(3===b||4===b)return a.nodeValue}else for(b=0;c=a[b];b++)8!==c.nodeType&&(d+=r(c));return d},o=l.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&&!p.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&&l.filter(b,a,!0)},">":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!p.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&&l.filter(b,a,!0)}},"":function(c,d,e){var g,i=f++,h=b;"string"===typeof d&&!p.test(d)&&(g=d=d.toLowerCase(),h=a);h("parentNode",d,i,c,g,e)},"~":function(c,d,e){var g,i=f++,h=b;"string"===typeof d&&!p.test(d)&&(g=d=d.toLowerCase(),h=a);h("previousSibling",d,i,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(j,"")+" ";if(f)return a;for(var f=0,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(j,
"")},TAG:function(a){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if("nth"===a[1]){a[2]||l.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]&&l.error(a[0]);a[0]=f++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(j,"");!f&&o.attrMap[b]&&(a[1]=o.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(j,"");"~="===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]=l(a[3],null,null,b);else return a=l.filter(a[3],b,c,1^f),c||e.push.apply(e,a),!1;else if(o.match.POS.test(a[0])||o.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){return!0===a.selected},
parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!l(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=o.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||
r([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}l.error(e)},CHILD:function(a,b){var c,d,f,g,i,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)){i=0;for(h=g.firstChild;h;h=h.nextSibling)if(1===
h.nodeType)h.nodeIndex=++i;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=l.attr?l.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return null==c?"!="===e:
!e&&l.attr?null!=c:"="===e?d===f:"*="===e?0<=d.indexOf(f):"~="===e?0<=(" "+d+" ").indexOf(f):!f?d&&!1!==c:"!="===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},POS:function(a,b,c,d){var e=o.setFilters[b[2]];if(e)return e(a,c,b,d)}}},v=o.match.POS,y=function(a,b){return"\\"+(b-0+1)},t;for(t in o.match)o.match[t]=RegExp(o.match[t].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[t]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[t].source.replace(/\\(\d+)/g,
y));o.match.globalPOS=v;var u=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(k.documentElement.childNodes,0)}catch(w){u=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 z,q;k.documentElement.compareDocumentPosition?z=function(a,b){return a===b?(i=!0,0):!a.compareDocumentPosition||
!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(z=function(a,b){if(a===b)return i=!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 q(a,b);if(c){if(!d)return 1}else 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 q(e[g],f[g]);return g===c?q(a,f[g],-1):q(e[g],
b,1)},q=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=k.createElement("div"),b="script"+(new Date).getTime(),c=k.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);if(k.getElementById(b))o.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]:m:[]},o.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=k.createElement("div");a.appendChild(k.createComment(""));if(0<a.getElementsByTagName("*").length)o.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>";if(a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&
"#"!==a.firstChild.getAttribute("href"))o.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();k.querySelectorAll&&function(){var a=l,b=k.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&0===b.querySelectorAll(".TEST").length)){l=function(b,c,d,e){c=c||k;if(!e&&!l.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return u(c.getElementsByTagName(b),d);if(f[2]&&o.find.CLASS&&c.getElementsByClassName)return u(c.getElementsByClassName(f[2]),
d)}if(9===c.nodeType){if("body"===b&&c.body)return u([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return u([g],d)}else return u([],d)}try{return u(c.querySelectorAll(b),d)}catch(h){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",j=c.parentNode,n=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);if(n&&j)c=c.parentNode;try{if(!n||j)return u(c.querySelectorAll("[id='"+i+"'] "+
b),d)}catch(p){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)l[c]=a[c];b=null}}();(function(){var a=k.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(k.createElement("div"),"div"),d=!1;try{b.call(k.documentElement,"[test!='']:sizzle")}catch(e){d=!0}l.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a))try{if(d||!o.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<l(e,null,null,[a]).length}}})();(function(){var a=k.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},
a=null})();l.contains=k.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:k.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};l.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var B=function(a,b,c){for(var d,e=[],f="",b=b.nodeType?[b]:b;d=o.match.PSEUDO.exec(a);)f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;d=0;for(var g=b.length;d<g;d++)l(a,
b[d],e,c);return l.filter(f,e)};l.attr=c.attr;l.selectors.attrMap={};c.find=l;c.expr=l.selectors;c.expr[":"]=c.expr.filters;c.unique=l.uniqueSort;c.text=l.getText;c.isXMLDoc=l.isXML;c.contains=l.contains})();var yb=/Until$/,zb=/^(?:parents|prevUntil|prevAll)/,Ab=/,/,hb=/^.[^:#\[\.,]*$/,Bb=Array.prototype.slice,Pa=c.expr.match.globalPOS,Cb={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(){for(d=0,e=b.length;d<
e;d++)if(c.contains(b[d],this))return!0});var f=this.pushStack("","find",a),g,i,h;for(d=0,e=this.length;d<e;d++)if(g=f.length,c.find(a,this[d],f),0<d)for(i=g;i<f.length;i++)for(h=0;h<g;h++)if(f[h]===f[i]){f.splice(i--,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(pa(this,a,!1),"not",a)},filter:function(a){return this.pushStack(pa(this,a,!0),"filter",a)},is:function(a){return!!a&&
("string"===typeof a?Pa.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 i=Pa.test(a)||"string"!==typeof a?c(a,b||this.context):0;for(e=0,f=this.length;e<f;e++)for(g=this[e];g;)if(i?-1<i.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?this[0]&&this[0].parentNode?this.prevAll().length:-1:"string"===typeof a?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this)},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?e:c.unique(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);yb.test(a)||(e=d);e&&"string"===typeof e&&(f=c.filter(e,f));f=1<this.length&&!Cb[a]?c.unique(f):
f;if((1<this.length||Ab.test(e))&&zb.test(a))f=f.reverse();return this.pushStack(f,a,Bb.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){for(var e=[],a=a[b];a&&9!==a.nodeType&&(d===m||1!==a.nodeType||!c(a).is(d));)1===a.nodeType&&e.push(a),a=a[b];return e},nth:function(a,b,c){for(var b=b||1,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 ra="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Db=/ jQuery\d+="(?:\d+|null)"/g,ia=/^\s+/,Qa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ra=/<([\w:]+)/,Eb=/<tbody/i,Fb=/<|&#?\w+;/,Gb=/<(?:script|style)/i,Hb=/<(?:script|object|embed|option|style)/i,Sa=RegExp("<(?:"+ra+")[\\s/>]","i"),Ta=/checked\s*(?:[^=]|=\s*.checked.)/i,
Ua=/\/(java|ecma)script/i,Ib=/^\s*<!(?:\[CDATA\[|\-\-)/,v={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,"",""]},ja=qa(k);v.optgroup=v.option;v.tbody=v.tfoot=v.colgroup=v.caption=v.thead;v.th=v.td;if(!c.support.htmlSerialize)v._default=
[1,"div<div>","</div>"];c.fn.extend({text:function(a){return c.access(this,function(a){return a===m?c.text(this):this.empty().append((this[0]&&this[0].ownerDocument||k).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===m)return 1===d.nodeType?d.innerHTML.replace(Db,""):null;if("string"===typeof a&&!Gb.test(a)&&(c.support.leadingWhitespace||!ia.test(a))&&!v[(Ra.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Qa,"<$1></$2>");try{for(;e<f;e++)if(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,i=a[0],h=[];if(!c.support.checkClone&&3===arguments.length&&"string"===typeof i&&Ta.test(i))return this.each(function(){c(this).domManip(a,b,d,!0)});if(c.isFunction(i))return this.each(function(e){var f=c(this);a[0]=i.call(this,e,b?f.html():m);f.domManip(a,b,d)});if(this[0]){e=i&&i.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 j=this.length,n=j-1;f<j;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<j&&f<n?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(Ib,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)})}return this}});
c.buildFragment=function(a,b,d){var e,f,g,i,h=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]);i.createDocumentFragment||(i=k);if(1===a.length&&"string"===typeof h&&512>h.length&&i===k&&"<"===h.charAt(0)&&!Hb.test(h)&&(c.support.checkClone||!Ta.test(h))&&(c.support.html5Clone||!Sa.test(h)))f=!0,(g=c.fragments[h])&&1!==g&&(e=g);e||(e=i.createDocumentFragment(),c.clean(a,i,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),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 i=(0<f?this.clone(!0):this).get();c(d[f])[b](i);e=e.concat(i)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e,f,g;c.support.html5Clone||c.isXMLDoc(a)||!Sa.test("<"+a.nodeName+">")?e=a.cloneNode(!0):(e=k.createElement("div"),
ja.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var i=e;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!c.isXMLDoc(a)){ta(a,i);e=Q(a);f=Q(i);for(g=0;e[g];++g)f[g]&&ta(e[g],f[g])}if(b&&(sa(a,i),d)){e=Q(a);f=Q(i);for(g=0;e[g];++g)sa(e[g],f[g])}return i},clean:function(a,b,d,e){var f,g=[],b=b||k;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||k);for(var i=0,h;null!=(h=a[i]);i++)if("number"===typeof h&&(h+=""),
h){if("string"===typeof h)if(Fb.test(h)){h=h.replace(Qa,"<$1></$2>");f=(Ra.exec(h)||["",""])[1].toLowerCase();var j=v[f]||v._default,n=j[0],p=b.createElement("div"),l=ja.childNodes;b===k?ja.appendChild(p):qa(b).appendChild(p);for(p.innerHTML=j[1]+h+j[2];n--;)p=p.lastChild;if(!c.support.tbody){n=Eb.test(h);j="table"===f&&!n?p.firstChild&&p.firstChild.childNodes:"<table>"===j[1]&&!n?p.childNodes:[];for(f=j.length-1;0<=f;--f)c.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!c.support.leadingWhitespace&&
ia.test(h)&&p.insertBefore(b.createTextNode(ia.exec(h)[0]),p.firstChild);h=p.childNodes;p&&(p.parentNode.removeChild(p),0<l.length&&(p=l[l.length-1])&&p.parentNode&&p.parentNode.removeChild(p))}else h=b.createTextNode(h);var m;if(!c.support.appendChecked)if(h[0]&&"number"===typeof(m=h.length))for(f=0;f<m;f++)va(h[f]);else va(h);h.nodeType?g.push(h):g=c.merge(g,h)}if(d){a=function(a){return!a.type||Ua.test(a.type)};for(i=0;g[i];i++)b=g[i],e&&c.nodeName(b,"script")&&(!b.type||Ua.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,[i+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,i=0,h;null!=(h=a[i]);i++)if(!h.nodeName||!c.noData[h.nodeName.toLowerCase()])if(d=h[c.expando]){if((b=e[d])&&b.events){for(var j in b.events)f[j]?c.event.remove(h,j):c.removeEvent(h,j,b.handle);if(b.handle)b.handle.elem=null}g?delete h[c.expando]:h.removeAttribute&&
h.removeAttribute(c.expando);delete e[d]}}});var ka=/alpha\([^)]*\)/i,Jb=/opacity=([^)]*)/,Kb=/([A-Z]|^ms)/g,Lb=/^[\-+]?(?:\d*\.)?\d+$/i,$=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Mb=/^([\-+])=([\-+.\de]+)/,Nb=/^margin/,Ob={position:"absolute",visibility:"hidden",display:"block"},J=["Top","Right","Bottom","Left"],F,Va,Wa;c.fn.css=function(a,b){return c.access(this,function(a,b,f){return f!==m?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=
F(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),i=a.style,h=c.cssHooks[g],b=c.cssProps[g]||g;if(d!==m){e=typeof d;if("string"===e&&(f=Mb.exec(d)))d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b)),e="number";if(!(null==d||"number"===e&&
isNaN(d)))if("number"===e&&!c.cssNumber[g]&&(d+="px"),!h||!("set"in h)||(d=h.set(a,d))!==m)try{i[b]=d}catch(j){}}else return h&&"get"in h&&(f=h.get(a,!1,e))!==m?f:i[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))!==m)return e;if(F)return F(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;k.defaultView&&
k.defaultView.getComputedStyle&&(Va=function(a,b){var d,e,f,g=a.style,b=b.replace(Kb,"-$1").toLowerCase();if((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));if(!c.support.pixelMargin&&f&&Nb.test(b)&&$.test(d))e=g.width,g.width=d,d=f.width,g.width=e;return d});k.documentElement.currentStyle&&(Wa=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(null==f&&g&&(c=g[b]))f=
c;if($.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;if(e)a.runtimeStyle.left=e}return""===f?"auto":f});F=Va||Wa;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){if(e)return 0!==a.offsetWidth?wa(a,b,f):c.swap(a,Ob,function(){return wa(a,b,f)})},set:function(a,b){return Lb.test(b)?b+"px":b}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Jb.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(ka,""))&&(d.removeAttribute("filter"),e&&!e.filter))return;d.filter=ka.test(g)?g.replace(ka,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){return c.swap(a,{display:"inline-block"},function(){return b?
F(a,"margin-right"):a.style.marginRight})}}});if(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){for(var e="string"===typeof c?c.split(" "):[c],f={},c=0;4>c;c++)f[a+J[c]+b]=e[c]||e[c-2]||
e[0];return f}}});var Pb=/%20/g,ib=/\[\]$/,Xa=/\r?\n/g,Qb=/#.*$/,Rb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Sb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Tb=/^(?:GET|HEAD)$/,Ub=/^\/\//,Ya=/\?/,Vb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Wb=/^(?:select|textarea)/i,ya=/\s+/,Xb=/([?&])_=[^&]*/,Za=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,$a=c.fn.load,aa={},ab={},H,I,bb=["*/"]+["*"];try{H=lb.href}catch(cc){H=k.createElement("a"),
H.href="",H=H.href}I=Za.exec(H.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if("string"!==typeof a&&$a)return $a.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=m):"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(Vb,
"")).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||Wb.test(this.nodeName)||Sb.test(this.type))}).map(function(a,b){var d=c(this).val();return null==d?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a.replace(Xa,"\r\n")}}):{name:b.name,value:d.replace(Xa,
"\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=m);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,m,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?za(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);za(a,
b);return a},ajaxSettings:{url:H,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(I[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","*":bb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":!0,"text json":c.parseJSON,
"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:xa(aa),ajaxTransport:xa(ab),ajax:function(a,b){function d(a,b,d,l){if(2!==u){u=2;v&&clearTimeout(v);r=m;k=l||"";q.readyState=0<a?4:0;var p,o,s,l=b;if(d){var t=e,z=q,B=t.contents,w=t.dataTypes,J=t.responseFields,C,x,M,H;for(x in J)x in d&&(z[J[x]]=d[x]);for(;"*"===w[0];)w.shift(),C===m&&(C=t.mimeType||z.getResponseHeader("content-type"));if(C)for(x in B)if(B[x]&&B[x].test(C)){w.unshift(x);break}if(w[0]in d)M=w[0];else{for(x in d){if(!w[0]||
t.converters[x+" "+w[0]]){M=x;break}H||(H=x)}M=M||H}M?(M!==w[0]&&w.unshift(M),d=d[M]):d=void 0}else d=m;if(200<=a&&300>a||304===a){if(e.ifModified){if(C=q.getResponseHeader("Last-Modified"))c.lastModified[n]=C;if(C=q.getResponseHeader("Etag"))c.etag[n]=C}if(304===a)l="notmodified",p=!0;else try{C=e;C.dataFilter&&(d=C.dataFilter(d,C.dataType));var I=C.dataTypes;x={};var E,F,L=I.length,G,N=I[0],D,K,O,P,R;for(E=1;E<L;E++){if(1===E)for(F in C.converters)"string"===typeof F&&(x[F.toLowerCase()]=C.converters[F]);
D=N;N=I[E];if("*"===N)N=D;else if("*"!==D&&D!==N){K=D+" "+N;O=x[K]||x["* "+N];if(!O)for(P in R=m,x)if(G=P.split(" "),G[0]===D||"*"===G[0])if(R=x[G[1]+" "+N]){P=x[P];!0===P?O=R:!0===R&&(O=P);break}!O&&!R&&c.error("No conversion from "+K.replace(" "," to "));!0!==O&&(d=O?O(d):R(P(d)))}}o=d;l="success";p=!0}catch(Q){l="parsererror",s=Q}}else if(s=l,!l||a)l="error",0>a&&(a=0);q.status=a;q.statusText=""+(b||l);p?i.resolveWith(f,[o,l,q]):i.rejectWith(f,[q,l,s]);q.statusCode(j);j=m;y&&g.trigger("ajax"+(p?
"Success":"Error"),[q,e,p?o:s]);h.fireWith(f,[q,l]);y&&(g.trigger("ajaxComplete",[q,e]),--c.active||c.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=m);var b=b||{},e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,i=c.Deferred(),h=c.Callbacks("once memory"),j=e.statusCode||{},n,p={},l={},k,o,r,v,t,u=0,y,z,q={readyState:0,setRequestHeader:function(a,b){if(!u){var c=a.toLowerCase(),a=l[c]=l[c]||a;p[a]=b}return this},getAllResponseHeaders:function(){return 2===
u?k:null},getResponseHeader:function(a){var b;if(2===u){if(!o)for(o={};b=Rb.exec(k);)o[b[1].toLowerCase()]=b[2];b=o[a.toLowerCase()]}return b===m?null:b},overrideMimeType:function(a){if(!u)e.mimeType=a;return this},abort:function(a){a=a||"abort";r&&r.abort(a);d(0,a);return this}};i.promise(q);q.success=q.done;q.error=q.fail;q.complete=h.add;q.statusCode=function(a){if(a){var b;if(2>u)for(b in a)j[b]=[j[b],a[b]];else b=a[q.status],q.then(b,b)}return this};e.url=((a||e.url)+"").replace(Qb,"").replace(Ub,
I[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(ya);if(null==e.crossDomain)t=Za.exec(e.url.toLowerCase()),e.crossDomain=!(!t||!(t[1]!=I[1]||t[2]!=I[2]||(t[3]||("http:"===t[1]?80:443))!=(I[3]||("http:"===I[1]?80:443))));if(e.data&&e.processData&&"string"!==typeof e.data)e.data=c.param(e.data,e.traditional);T(aa,e,b,q);if(2===u)return!1;y=e.global;e.type=e.type.toUpperCase();e.hasContent=!Tb.test(e.type);y&&0===c.active++&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=
(Ya.test(e.url)?"&":"?")+e.data,delete e.data),n=e.url,!1===e.cache)){t=c.now();var B=e.url.replace(Xb,"$1_="+t);e.url=B+(B===e.url?(Ya.test(e.url)?"&":"?")+"_="+t:"")}(e.data&&e.hasContent&&!1!==e.contentType||b.contentType)&&q.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(n=n||e.url,c.lastModified[n]&&q.setRequestHeader("If-Modified-Since",c.lastModified[n]),c.etag[n]&&q.setRequestHeader("If-None-Match",c.etag[n]));q.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?
e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+bb+"; q=0.01":""):e.accepts["*"]);for(z in e.headers)q.setRequestHeader(z,e.headers[z]);if(e.beforeSend&&(!1===e.beforeSend.call(f,q,e)||2===u))return q.abort(),!1;for(z in{success:1,error:1,complete:1})q[z](e[z]);if(r=T(ab,e,b,q)){q.readyState=1;y&&g.trigger("ajaxSend",[q,e]);e.async&&0<e.timeout&&(v=setTimeout(function(){q.abort("timeout")},e.timeout));try{u=1,r.send(p,d)}catch(s){if(2>u)d(-1,s);else throw s;}}else d(-1,"No Transport");return q},
param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===m)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)ba(f,a[f],b,e);return d.join("&").replace(Pb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Yb=c.now(),X=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Yb++}});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&&(X.test(a.url)||b&&X.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=r[f],i=a.url,h=a.data,j="$1"+f+"$2";!1!==a.jsonp&&(i=i.replace(X,j),a.url===i&&(b&&(h=h.replace(X,j)),a.data===h&&(i+=(/\?/.test(i)?"&":"?")+a.jsonp+"="+f)));a.url=i;a.data=h;r[f]=function(a){e=[a]};d.always(function(){r[f]=g;if(e&&
c.isFunction(g))r[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){if(a.cache===m)a.cache=!1;if(a.crossDomain)a.type="GET",a.global=!1});c.ajaxTransport("script",
function(a){if(a.crossDomain){var b,c=k.head||k.getElementsByTagName("head")[0]||k.documentElement;return{send:function(e,f){b=k.createElement("script");b.async="async";if(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=m,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var la=
r.ActiveXObject?function(){for(var a in D)D[a](0,1)}:!1,Zb=0,D;c.ajaxSettings.xhr=r.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&Aa()))a:{try{a=new r.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Aa;(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,i;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(i in a.xhrFields)f[i]=a.xhrFields[i];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(i in d)f.setRequestHeader(i,d[i])}catch(h){}f.send(a.hasContent&&a.data||null);b=function(d,h){var i,l,k,o,r;try{if(b&&(h||4===f.readyState)){b=m;if(g)f.onreadystatechange=c.noop,la&&delete D[g];if(h)4!==f.readyState&&f.abort();else{i=f.status;
k=f.getAllResponseHeaders();o={};if((r=f.responseXML)&&r.documentElement)o.xml=r;try{o.text=f.responseText}catch(v){}try{l=f.statusText}catch(t){l=""}!i&&a.isLocal&&!a.crossDomain?i=o.text?200:404:1223===i&&(i=204)}}}catch(u){h||e(-1,u)}o&&e(i,l,o,k)};!a.async||4===f.readyState?b():(g=++Zb,la&&(D||(D={},c(r).unload(la)),D[g]=b),f.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var ca={},y,G,$b=/^(?:toggle|show|hide)$/,ac=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Y,V=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],U;c.fn.extend({show:function(a,b,d){if(a||0===a)return this.animate(L("show",3),a,b,d);for(var d=0,e=this.length;d<e;d++)if(a=this[d],a.style){b=a.style.display;if(!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",Ca(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(L("hide",3),a,b,d);for(var d=0,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++)if(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(L("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(){var h;!1===g.queue&&c._mark(this);var b=c.extend({},g),d=1===this.nodeType,e=d&&c(this).is(":hidden"),f,k,l,m,o;b.animatedProperties={};for(l in a)if(f=c.camelCase(l),l!==f&&(a[f]=a[l],delete a[l]),(k=c.cssHooks[f])&&
"expand"in k)for(l in m=k.expand(a[f]),delete a[f],m)l in a||(a[l]=m[l]);for(f in a){k=a[f];c.isArray(k)?(b.animatedProperties[f]=k[1],h=a[f]=k[0],k=h):b.animatedProperties[f]=b.specialEasing&&b.specialEasing[f]||b.easing||"swing";if("hide"===k&&e||"show"===k&&!e)return b.complete.call(this);if(d&&("height"===f||"width"===f))if(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"===Ca(this.nodeName)?this.style.display="inline-block":this.style.zoom=1}if(null!=b.overflow)this.style.overflow="hidden";for(l in a)if(d=new c.fx(this,b,l),k=a[l],$b.test(k))if(f=c._data(this,"toggle"+l)||("toggle"===k?e?"show":"hide":0))c._data(this,"toggle"+l,"show"===f?"hide":"show"),d[f]();else d[k]();else f=ac.exec(k),m=d.cur(),f?(k=parseFloat(f[2]),o=f[3]||(c.cssNumber[l]?"":"px"),"px"!==o&&(c.style(this,l,(k||1)+o),m*=(k||1)/d.cur(),c.style(this,l,m+o)),f[1]&&(k=("-="===f[1]?-1:1)*
k+m),d.custom(m,k,o)):d.custom(m,k,"");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=m);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b,f=!1,g=c.timers,i=c._data(this);d||c._unmark(!0,this);if(null==a)for(b in i){if(i[b]&&i[b].stop&&b.indexOf(".run")===b.length-4){var h=i[b];c.removeData(this,b,!0);h.stop(d)}}else if(i[b=
a+".run"]&&i[b].stop)i=i[b],c.removeData(this,b,!0),i.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:L("show",1),slideUp:L("hide",1),slideToggle:L("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?0:b:a},custom:function(a,b,d){function e(a){return f.step(a)}
var f=this,g=c.fx;this.startTime=U||Ba();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)===m&&(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)&&!Y&&(Y=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!==m?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=U||Ba(),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(Y);Y=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(V.concat.apply([],V),function(a,b){b.indexOf("margin")&&(c.fx.step[b]=function(a){c.style(a.elem,b,Math.max(0,a.now)+a.unit)})});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var cb,bc=/^t(?:able|d|h)$/i,db=/^(?:body|html)$/i;cb="getBoundingClientRect"in k.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=
Da(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 i=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;
i-=a.scrollTop;h-=a.scrollLeft;if(a===f){i+=a.offsetTop;h+=a.offsetLeft;if(c.support.doesNotAddBorder&&(!c.support.doesAddBorderForTableAndCells||!bc.test(a.nodeName)))i+=parseFloat(e.borderTopWidth)||0,h+=parseFloat(e.borderLeftWidth)||0;f=a.offsetParent}c.support.subtractsBorderForOverflowNotVisible&&"visible"!==e.overflow&&(i+=parseFloat(e.borderTopWidth)||0,h+=parseFloat(e.borderLeftWidth)||0)}if("relative"===e.position||"static"===e.position)i+=g.offsetTop,h+=g.offsetLeft;c.support.fixedPosition&&
"fixed"===e.position&&(i+=Math.max(d.scrollTop,g.scrollTop),h+=Math.max(d.scrollLeft,g.scrollLeft));return{top:i,left:h}};c.fn.offset=function(a){if(arguments.length)return a===m?this:this.each(function(b){c.offset.setOffset(this,a,b)});var b=this[0],d=b&&b.ownerDocument;return!d?null:b===d.body?c.offset.bodyOffset(b):cb(b,d,d.documentElement)};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");if("static"===e)a.style.position="relative";var f=c(a),g=f.offset(),i=c.css(a,"top"),h=c.css(a,"left"),j={},k={};("absolute"===e||"fixed"===e)&&-1<c.inArray("auto",[i,h])?(k=f.position(),e=k.top,h=k.left):(e=parseFloat(i)||0,h=parseFloat(h)||0);c.isFunction(b)&&(b=b.call(a,d,g));if(null!=b.top)j.top=b.top-g.top+e;if(null!=b.left)j.left=b.left-g.left+h;"using"in b?b.using.call(a,j):f.css(j)}};c.fn.extend({position:function(){if(!this[0])return null;
var a=this[0],b=this.offsetParent(),d=this.offset(),e=db.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||k.body;a&&!db.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,i){var h=Da(a);if(i===m)return h?b in h?h[b]:c.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(!d?i:c(h).scrollLeft(),d?i:c(h).scrollTop()):a[e]=i},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===m)return a=c.css(a,b),b=parseFloat(a),c.isNumeric(b)?b:a;
c(a).css(b,g)},b,a,arguments.length,null)}});r.jQuery=r.$=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 i(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&&j(d)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&j(a)}function j(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)for(var a=c(this[0]),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 i(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);
return(d||0<=b)&&i(a,!d)}}),c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=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){var a=c.ui[a].prototype,e;for(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 i=c.cleanData;c.cleanData=function(a){for(var b=0,d;null!=(d=a[b]);b++)try{c(d).triggerHandler("remove")}catch(e){}i(a)}}else{var j=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 j.call(c(this),a,b)})}}c.widget=function(a,b,d){var e=a.split(".")[0],f,a=a.split(".")[1];f=e+"-"+a;if(!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){var d=!1;b(document).mouseup(function(){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;if(!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();if(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);if(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(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){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){d.ui=d.ui||{};var k=/left|center|right/,l=/top|center|bottom/,p,n=d.fn.position,o=d.fn.offset;d.fn.position=function(b){if(!b||!b.of)return n.apply(this,arguments);var b=d.extend({},b),a=d(b.of),c=a[0],e=(b.collision||"flip").split(" "),f=b.offset?b.offset.split(" "):[0,0],i,j,g;9===c.nodeType?(i=a.width(),j=a.height(),g={top:0,left:0}):c.setTimeout?(i=a.width(),j=a.height(),g={top:a.scrollTop(),left:a.scrollLeft()}):c.preventDefault?(b.at="left top",i=j=0,g={top:b.of.pageY,left:b.of.pageX}):
(i=a.outerWidth(),j=a.outerHeight(),g=a.offset());d.each(["my","at"],function(){var a=(b[this]||"").split(" ");1===a.length&&(a=k.test(a[0])?a.concat(["center"]):l.test(a[0])?["center"].concat(a):["center","center"]);a[0]=k.test(a[0])?a[0]:"center";a[1]=l.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+=i:"center"===b.at[0]&&(g.left+=i/2);"bottom"===b.at[1]?g.top+=j:"center"===b.at[1]&&
(g.top+=j/2);g.left+=f[0];g.top+=f[1];return this.each(function(){var a=d(this),c=a.outerWidth(),m=a.outerHeight(),k=parseInt(d.curCSS(this,"marginLeft",!0))||0,l=parseInt(d.curCSS(this,"marginTop",!0))||0,n=c+k+(parseInt(d.curCSS(this,"marginRight",!0))||0),o=m+l+(parseInt(d.curCSS(this,"marginBottom",!0))||0),h=d.extend({},g),q;"right"===b.my[0]?h.left-=c:"center"===b.my[0]&&(h.left-=c/2);"bottom"===b.my[1]?h.top-=m:"center"===b.my[1]&&(h.top-=m/2);if(!p)h.left=Math.round(h.left),h.top=Math.round(h.top);
q={left:h.left-k,top:h.top-l};d.each(["left","top"],function(a,g){if(d.ui.position[e[a]])d.ui.position[e[a]][g](h,{targetWidth:i,targetHeight:j,elemWidth:c,elemHeight:m,collisionPosition:q,collisionWidth:n,collisionHeight:o,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,i=-2*a.offset[0];b.left+=0>a.collisionPosition.left?e+f+i:0<c?e+f+i: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,i=-2*a.offset[1];b.top+=0>a.collisionPosition.top?e+f+i:0<c?e+f+i:0}}}};if(!d.offset.setOffset)d.offset.setOffset=function(b,a){if(/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,i=parseInt(d.curCSS(b,
"left",!0),10)||0,e={top:a.top-e.top+f,left:a.left-e.left+i};"using"in a?a.using.call(b,e):c.css(e)},d.fn.offset=function(b){var a=this[0];return!a||!a.ownerDocument?null:b?this.each(function(){d.offset.setOffset(this,b)}):o.call(this)};(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);p=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(d){d.widget("ui.draggable",d.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(){if("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(a){var c=this.options;if(this.helper||c.disabled||d(a.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(a);if(!this.handle)return!1;c.iframeFix&&d(!0===c.iframeFix?"iframe":c.iframeFix).each(function(){d('<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(d(this).offset()).appendTo("body")});return!0},_mouseStart:function(a){var c=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.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};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;
this.originalPageY=a.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(!1===this._trigger("start",a))return this._clear(),!1;this._cacheHelperProportions();d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,!0);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return!0},_mouseDrag:function(a,c){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!c){var b=this._uiHash();if(!1===this._trigger("drag",a,b))return this._mouseUp({}),!1;this.position=b.position}if(!this.options.axis||"y"!=this.options.axis)this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||"x"!=this.options.axis)this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return!1},_mouseStop:function(a){var c=!1;d.ui.ddmanager&&!this.options.dropBehaviour&&(c=d.ui.ddmanager.drop(this,a));if(this.dropped)c=this.dropped,this.dropped=
!1;for(var b=this.element[0],f=!1;b&&(b=b.parentNode);)b==document&&(f=!0);if(!f&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!c||"valid"==this.options.revert&&c||!0===this.options.revert||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var e=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",a)&&e._clear()})}else!1!==this._trigger("stop",a)&&this._clear();return!1},
_mouseUp:function(a){!0===this.options.iframeFix&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var c=!this.options.handle||!d(this.options.handle,this.element).length?!0:!1;d(this.options.handle,this.element).find("*").andSelf().each(function(){this==
a.target&&(c=!0)});return c},_createHelper:function(a){var c=this.options,a=d.isFunction(c.helper)?d(c.helper.apply(this.element[0],[a])):"clone"==c.helper?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo("parent"==c.appendTo?this.element[0].parentNode:c.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){"string"==typeof a&&(a=a.split(" "));d.isArray(a)&&(a=
{left:+a[0],top:+a[1]||0});if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&
d.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(a.left+=this.scrollParent.scrollLeft(),a.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=
this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.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 a=this.options;if("parent"==a.containment)a.containment=this.helper[0].parentNode;if("document"==a.containment||"window"==a.containment)this.containment=["document"==a.containment?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==a.containment?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==a.containment?0:d(window).scrollLeft())+
d("document"==a.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==a.containment?0:d(window).scrollTop())+(d("document"==a.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var a=d(a.containment),c=a[0];if(c){a.offset();var b="hidden"!=d(c).css("overflow");this.containment=[(parseInt(d(c).css("borderLeftWidth"),
10)||0)+(parseInt(d(c).css("paddingLeft"),10)||0),(parseInt(d(c).css("borderTopWidth"),10)||0)+(parseInt(d(c).css("paddingTop"),10)||0),(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(d(c).css("borderLeftWidth"),10)||0)-(parseInt(d(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(d(c).css("borderTopWidth"),10)||0)-(parseInt(d(c).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,c){if(!c)c=this.position;var b="absolute"==a?1:-1,f="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(d.browser.safari&&
526>d.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():e?0:f.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():e?0:f.scrollLeft())*b)}},_generatePosition:function(a){var c=this.options,b="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(b[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(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,a.pageX-this.offset.click.left<g[0]&&(e=g[0]+this.offset.click.left),a.pageY-this.offset.click.top<g[1]&&(h=g[1]+this.offset.click.top),a.pageX-
this.offset.click.left>g[2]&&(e=g[2]+this.offset.click.left),a.pageY-this.offset.click.top>g[3]&&(h=g[3]+this.offset.click.top);c.grid&&(h=c.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-c.grid[1]:h+c.grid[1]:h,e=c.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,e=g?!(e-this.offset.click.left<
g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-c.grid[0]:e+c.grid[0]:e)}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():f?0:b.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?
-this.scrollParent.scrollLeft():f?0:b.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(a,c,b){b=b||this._uiHash();d.ui.plugin.call(this,a,[c,b]);if("drag"==a)this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,c,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,
originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"@VERSION"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,c){var b=d(this).data("draggable"),f=b.options,e=d.extend({},c,{item:b.element});b.sortables=[];d(f.connectToSortable).each(function(){var c=d.data(this,"sortable");c&&!c.options.disabled&&(b.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",a,e))})},stop:function(a,c){var b=
d(this).data("draggable"),f=d.extend({},c,{item:b.element});d.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;b.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;"original"==b.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",
a,f)})},drag:function(a,c){var b=d(this).data("draggable"),f=this;d.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=d(f).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 c.helper[0]},a.target=this.instance.currentItem[0],this.instance._mouseCapture(a,!0),this.instance._mouseStart(a,!0,!0),this.instance.offset.click.top=b.offset.click.top,this.instance.offset.click.left=b.offset.click.left,this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top,b._trigger("toSortable",a),b.dropped=this.instance.element,
b.currentItem=b.element,this.instance.fromOutside=b;this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver)this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",a,this.instance._uiHash(this.instance)),this.instance._mouseStop(a,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),b._trigger("fromSortable",
a),b.dropped=!1})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),c=d(this).data("draggable").options;if(a.css("cursor"))c._cursor=a.css("cursor");a.css("cursor",c.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,c){var b=d(c.helper),f=d(this).data("draggable").options;if(b.css("opacity"))f._opacity=b.css("opacity");b.css("opacity",f.opacity)},stop:function(a,
c){var b=d(this).data("draggable").options;b._opacity&&d(c.helper).css("opacity",b._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&"HTML"!=a.scrollParent[0].tagName)a.overflowOffset=a.scrollParent.offset()},drag:function(a){var c=d(this).data("draggable"),b=c.options,f=!1;if(c.scrollParent[0]!=document&&"HTML"!=c.scrollParent[0].tagName){if(!b.axis||"x"!=b.axis)if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-
a.pageY<b.scrollSensitivity)c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-c.overflowOffset.top<b.scrollSensitivity)c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||"y"!=b.axis)if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-c.overflowOffset.left<b.scrollSensitivity)c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft-
b.scrollSpeed}else{if(!b.axis||"x"!=b.axis)a.pageY-d(document).scrollTop()<b.scrollSensitivity?f=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed):d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity&&(f=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed));if(!b.axis||"y"!=b.axis)a.pageX-d(document).scrollLeft()<b.scrollSensitivity?f=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed):d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity&&
(f=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed))}!1!==f&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(c,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),c=a.options;a.snapElements=[];d(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var b=d(this),c=b.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(a,
c){for(var b=d(this).data("draggable"),f=b.options,e=f.snapTolerance,h=c.offset.left,g=h+b.helperProportions.width,n=c.offset.top,o=n+b.helperProportions.height,i=b.snapElements.length-1;0<=i;i--){var j=b.snapElements[i].left,l=j+b.snapElements[i].width,k=b.snapElements[i].top,m=k+b.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&&o<m+e){if("inner"!=f.snapMode){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-
g)<=e,s=Math.abs(l-h)<=e;if(p)c.position.top=b._convertPositionTo("relative",{top:k-b.helperProportions.height,left:0}).top-b.margins.top;if(q)c.position.top=b._convertPositionTo("relative",{top:m,left:0}).top-b.margins.top;if(r)c.position.left=b._convertPositionTo("relative",{top:0,left:j-b.helperProportions.width}).left-b.margins.left;if(s)c.position.left=b._convertPositionTo("relative",{top:0,left:l}).left-b.margins.left}var t=p||q||r||s;if("outer"!=f.snapMode){p=Math.abs(k-n)<=e;q=Math.abs(m-
o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)c.position.top=b._convertPositionTo("relative",{top:k,left:0}).top-b.margins.top;if(q)c.position.top=b._convertPositionTo("relative",{top:m-b.helperProportions.height,left:0}).top-b.margins.top;if(r)c.position.left=b._convertPositionTo("relative",{top:0,left:j}).left-b.margins.left;if(s)c.position.left=b._convertPositionTo("relative",{top:0,left:l-b.helperProportions.width}).left-b.margins.left}!b.snapElements[i].snapping&&(p||q||r||s||t)&&b.options.snap.snap&&
b.options.snap.snap.call(b.element,a,d.extend(b._uiHash(),{snapItem:b.snapElements[i].item}));b.snapElements[i].snapping=p||q||r||s||t}else b.snapElements[i].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,a,d.extend(b._uiHash(),{snapItem:b.snapElements[i].item})),b.snapElements[i].snapping=!1}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options,a=d.makeArray(d(a.stack)).sort(function(a,c){return(parseInt(d(a).css("zIndex"),10)||
0)-(parseInt(d(c).css("zIndex"),10)||0)});if(a.length){var c=parseInt(a[0].style.zIndex)||0;d(a).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,c){var b=d(c.helper),f=d(this).data("draggable").options;if(b.css("zIndex"))f._zIndex=b.css("zIndex");b.css("zIndex",f.zIndex)},stop:function(a,c){var b=d(this).data("draggable").options;b._zIndex&&d(c.helper).css("zIndex",b._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){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,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],
_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(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=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{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"});if(this.handles.constructor==String){if("all"==this.handles)this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles=
{};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle ui-resizable-'+f+'"></div>');g.css({zIndex:a.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){var a=a||this.element,b;for(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"}});a.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").hover(function(){a.disabled||(e(this).removeClass("ui-resizable-autohide"),b._handles.show())},function(){!a.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 a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=!1,c;for(c in this.handles)e(this.handles[c])[0]==b.target&&(a=!0);return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=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:c.top,left:c.left});this._renderProxy();var c=j(this.helper.css("left")),f=j(this.helper.css("top"));a.containment&&(c+=e(a.containment).scrollLeft()||0,f+=e(a.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:c,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:c,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 a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",
"auto"==a?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return!0},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return!1;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.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(c);this._trigger("resize",b,this.ui());return!1},_mouseStop:function(b){this.resizing=!1;var a=this.options;if(this._helper){var c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),c=d&&e.ui.hasScroll(c[0],"left")?0:this.sizeDiff.height,d=d?0:this.sizeDiff.width,d={width:this.helper.width()-d,height:this.helper.height()-c},c=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;a.animate||this.element.css(e.extend(d,{top:f,left:c}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!a.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 a=
this.options,c,d,e,a={minWidth:i(a.minWidth)?a.minWidth:0,maxWidth:i(a.maxWidth)?a.maxWidth:Infinity,minHeight:i(a.minHeight)?a.minHeight:0,maxHeight:i(a.maxHeight)?a.maxHeight:Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;e=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(c<a.maxWidth)a.maxWidth=c;if(e<a.maxHeight)a.maxHeight=e}this._vBoundaries=a},_updateCache:function(b){this.offset=
this.helper.offset();if(i(b.left))this.position.left=b.left;if(i(b.top))this.position.top=b.top;if(i(b.height))this.size.height=b.height;if(i(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(i(b.height))b.width=b.height*this.aspectRatio;else if(i(b.width))b.height=b.width/this.aspectRatio;if("sw"==d)b.left=a.left+(c.width-b.width),b.top=null;if("nw"==d)b.top=a.top+(c.height-b.height),b.left=a.left+(c.width-b.width);return b},_respectSize:function(b){var a=
this._vBoundaries,c=this.axis,d=i(b.width)&&a.maxWidth&&a.maxWidth<b.width,e=i(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=i(b.width)&&a.minWidth&&a.minWidth>b.width,h=i(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(e)b.height=a.maxHeight;var k=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,m=/sw|nw|w/.test(c),c=/nw|ne|n/.test(c);if(g&&m)b.left=k-a.minWidth;if(d&&m)b.left=k-a.maxWidth;
if(h&&c)b.top=l-a.minHeight;if(e&&c)b.top=l-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=
[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.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})}if(!e.browser.msie||!e(b).is(":hidden")&&!e(b).parents(":hidden").length)c.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 a=e.browser.msie&&7>e.browser.version,c=a?1:0,a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+
a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,
[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);"resize"!=b&&this._trigger(b,a,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(){var b=e(this).data("resizable").options,a=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 b.alsoResize&&!b.alsoResize.parentNode?b.alsoResize.length?(b.alsoResize=b.alsoResize[0],a(b.alsoResize)):e.each(b.alsoResize,function(b){a(b)}):a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable"),
d=c.options,f=c.originalSize,g=c.originalPosition,h={height:c.size.height-f.height||0,width:c.size.width-f.width||0,top:c.position.top-g.top||0,left:c.position.left-g.left||0},i=function(b,c){e(b).each(function(){var b=e(this),d=e(this).data("resizable-alsoresize"),f={},g=c&&c.length?c:b.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(g,function(a,b){var c=(d[b]||0)+(h[b]||0);c&&0<=c&&(f[b]=c||null)});b.css(f)})};"object"==typeof d.alsoResize&&!d.alsoResize.nodeType?
e.each(d.alsoResize,function(a,b){i(a,b)}):i(d.alsoResize)},stop:function(){e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height,f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g},g=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(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.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)};d&&d.length&&e(d[0]).css({width:c.width,height:c.height});a._updateCache(c);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable",
"containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c)if(b.containerElement=e(a),/document/.test(c)||c==document)b.containerOffset={left:0,top:0},b.containerPosition={left:0,top:0},b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(a,
b){f[a]=j(d.css("padding"+b))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};var c=b.containerOffset,g=b.containerSize.height,h=b.containerSize.width,h=e.ui.hasScroll(a,"left")?a.scrollWidth:h,g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position,b=a._aspectRatio||b.shiftKey,
g={top:0,left:0},h=a.containerElement;h[0]!=document&&/static/.test(h.css("position"))&&(g=d);if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/a.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*a.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=
a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));f&&g&&(c-=a.parentData.left);if(c+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-c,b))a.size.height=a.size.width/a.aspectRatio;if(d+a.size.height>=a.parentData.height&&
(a.size.height=a.parentData.height-d,b))a.size.width=a.size.height*a.aspectRatio},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-
d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof a.ghost?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,
width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid="number"==typeof a.grid?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1),a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);/^(se|s|e)$/.test(g)?(b.size.width=
d.width+h,b.size.height=d.height+a):/^(ne)$/.test(g)?(b.size.width=d.width+h,b.size.height=d.height+a,b.position.top=f.top-a):(/^(sw)$/.test(g)?(b.size.width=d.width+h,b.size.height=d.height+a):(b.size.width=d.width+h,b.size.height=d.height+a,b.position.top=f.top-a),b.position.left=f.left-h)}});var j=function(b){return parseInt(b,10)||0},i=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){var g,h,i,e,k=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},j=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",k);"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":"");if(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){if(!c.disabled)e=!1,h=a.pageX,i=a.pageY}).bind("mouseup.button",function(a){if(!c.disabled&&(h!==a.pageX||i!==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];j(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(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.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"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);if(!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?j(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"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,i){var j={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},k={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},l=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");if("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);if(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)){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();if(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;return 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);if(d.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=d.zIndex;if(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){var d=c.isFunction(d)?{click:d,text:a}:d,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 l)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}}var a=a===i?this.options.resizable:a,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
j&&(e=!0);a in k&&(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});if(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,x){function C(){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=D(c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function D(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");if(!c.datepicker._isDisabledDatepicker(E.inline?a.parent()[0]:E.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 z(a,b){c.extend(a,b);for(var d in b)if(null==b[d]||b[d]==x)a[d]=b[d];return a}c.extend(c.ui,{datepicker:{version:"@VERSION"}});var A=(new Date).getTime(),E;c.extend(C.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){z(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(j){d[e]=f}}}e=a.nodeName.toLowerCase();f="div"==e||"span"==e;if(!a.id)this.uuid+=1,a.id="dp"+this.uuid;var k=this._newInst(c(a),f);k.settings=c.extend({},b||{},d||{});"input"==e?this._connectDatepicker(a,k):f&&this._inlineDatepicker(a,k)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:D(c('<div class="'+
this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_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();if(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++)if(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;if(!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);z(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||
document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=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 j=this._getDateDatepicker(a,!0),k=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");z(e.settings,f);if(null!==k&&f.dateFormat!==x&&f.minDate===x)e.settings.minDate=this._formatDate(e,k);if(null!==g&&f.dateFormat!==x&&f.maxDate===x)e.settings.maxDate=this._formatDate(e,g);this._attachments(c(a),e);this._autoSize(e);this._setDate(e,j);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:if(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:if(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==x?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{if(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){z(b.settings,d);b.lastVal=null;c.datepicker._lastInput=a;c.datepicker._setDateFromField(b);if(c.datepicker._inDialog)a.value="";if(!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"),j=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,j);else b.dpDiv[d||"show"](d?f:null,j);(!d||!f)&&j();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);E=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(),j=a.input?a.input.outerWidth():0,k=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+
c(document).scrollLeft(),i=document.documentElement.clientHeight+c(document).scrollTop();b.left-=this._get(a,"isRTL")?e-j:0;b.left-=d&&b.left==a.input.offset().left?c(document).scrollLeft():0;b.top-=d&&b.top==a.input.offset().top+k?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>i&&i>f?Math.abs(f+k):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"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){var a=this._get(b,"showAnim"),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){var a=c(a.target),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){var a=c(a),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){var a=c(a),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){var a=c(a),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);if(!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=this._getInst(c(a)[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,j=(d?d.dayNames:null)||this._defaults.dayNames,k=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,g=(d?d.monthNames:null)||this._defaults.monthNames,i=d=-1,h=-1,p=-1,l=!1,o=function(b){(b=y+1<a.length&&a.charAt(y+1)==b)&&y++;return b},n=function(a){var d=o(a),a=b.substring(u).match(RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a&&d?4:"o"==a?3:2)+"}"));if(!a)throw"Missing number at position "+
u;u+=a[0].length;return parseInt(a[0],10)},m=function(a,d,e){var a=c.map(o(a)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),f=-1;c.each(a,function(a,d){var c=d[1];if(b.substr(u,c.length).toLowerCase()==c.toLowerCase())return f=d[0],u+=c.length,!1});if(-1!=f)return f+1;throw"Unknown name at position "+u;},s=function(){if(b.charAt(u)!=a.charAt(y))throw"Unexpected literal at position "+u;u++},u=0,y=0;y<a.length;y++)if(l)"'"==a.charAt(y)&&!o("'")?l=!1:s();else switch(a.charAt(y)){case "d":h=
n("d");break;case "D":m("D",f,j);break;case "o":p=n("o");break;case "m":i=n("m");break;case "M":i=m("M",k,g);break;case "y":d=n("y");break;case "@":var v=new Date(n("@")),d=v.getFullYear(),i=v.getMonth()+1,h=v.getDate();break;case "!":v=new Date((n("!")-this._ticksTo1970)/1E4);d=v.getFullYear();i=v.getMonth()+1;h=v.getDate();break;case "'":o("'")?s():l=!0;break;default:s()}if(u<b.length)throw"Extra/unparsed characters found in date: "+b.substring(u);-1==d?d=(new Date).getFullYear():100>d&&(d+=(new Date).getFullYear()-
(new Date).getFullYear()%100+(d<=e?0:-100));if(-1<p){i=1;h=p;do{e=this._getDaysInMonth(d,i-1);if(h<=e)break;i++;h-=e}while(1)}v=this._daylightSavingAdjust(new Date(d,i-1,h));if(v.getFullYear()!=d||v.getMonth()+1!=i||v.getDate()!=h)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970: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,j=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,d=(d?d.monthNames:null)||this._defaults.monthNames,k=function(b){(b=l+1<a.length&&a.charAt(l+1)==b)&&l++;return b},g=function(a,b,d){b=""+b;if(k(a))for(;b.length<d;)b="0"+b;return b},i=function(a,b,d,c){return k(a)?c[b]:d[b]},h="",p=!1;if(b)for(var l=0;l<
a.length;l++)if(p)"'"==a.charAt(l)&&!k("'")?p=!1:h+=a.charAt(l);else switch(a.charAt(l)){case "d":h+=g("d",b.getDate(),2);break;case "D":h+=i("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+=i("M",b.getMonth(),j,d);break;case "y":h+=k("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 "'":k("'")?h+="'":p=!0;break;default:h+=a.charAt(l)}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("'")?d=!1:b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":c("'")?b+="'":d=!0;break;default:b+=a.charAt(f)}return b},_get:function(a,
b){return a.settings[b]!==x?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,j;f=j=this._getDefaultDate(a);var k=this._getFormatConfig(a);try{f=this.parseDate(d,c,k)||j}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 f;var e=function(a){var b=new Date;b.setDate(b.getDate()+a);return b};if(f=(b=null==b||""===b?d:"string"==typeof b?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,g=e.getFullYear(),i=e.getMonth(),e=e.getDate(),h=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,p=h.exec(b);p;){switch(p[2]||"d"){case "d":case "D":e+=parseInt(p[1],10);break;case "w":case "W":e+=7*parseInt(p[1],10);break;case "m":case "M":i+=parseInt(p[1],10);e=Math.min(e,c.datepicker._getDaysInMonth(g,i));break;case "y":case "Y":g+=parseInt(p[1],10),e=Math.min(e,c.datepicker._getDaysInMonth(g,i))}p=h.exec(b)}return new Date(g,i,e)}(b):"number"==typeof b?isNaN(b)?d:e(b):new Date(b.getTime()))&&
"Invalid Date"==b.toString()?d:b,b=f)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,j=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||j!=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"),j=this._get(a,"navigationAsDateFormat"),k=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),i=this._get(a,"stepMonths"),h=1!=k[0]||1!=k[1],p=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),l=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max"),g=a.drawMonth-g,n=a.drawYear;0>g&&(g+=12,n--);if(o)for(var m=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-k[0]*k[1]+1,o.getDate())),m=
l&&m<l?l:m;this._daylightSavingAdjust(new Date(n,g,1))>m;)g--,0>g&&(g=11,n--);a.drawMonth=g;a.drawYear=n;var m=this._get(a,"prevText"),m=!j?m:this.formatDate(m,this._daylightSavingAdjust(new Date(n,g-i,1)),this._getFormatConfig(a)),m=this._canAdjustMonth(a,-1,n,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', -"+i+", 'M');\" title=\""+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+m+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+
m+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"e":"w")+'">'+m+"</span></a>",s=this._get(a,"nextText"),s=!j?s:this.formatDate(s,this._daylightSavingAdjust(new Date(n,g+i,1)),this._getFormatConfig(a)),f=this._canAdjustMonth(a,1,n,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._adjustDate('#"+a.id+"', +"+i+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+
s+'"><span class="ui-icon ui-icon-circle-triangle-'+(d?"w":"e")+'">'+s+"</span></a>",i=this._get(a,"currentText"),s=this._get(a,"gotoCurrent")&&a.currentDay?p:b,i=!j?i:this.formatDate(i,s,this._getFormatConfig(a)),j=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+A+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"",e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(d?j:"")+(this._isInRange(a,
s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+A+".datepicker._gotoToday('#"+a.id+"');\">"+i+"</button>":"")+(d?"":j)+"</div>":"",j=parseInt(this._get(a,"firstDay"),10),j=isNaN(j)?0:j,i=this._get(a,"showWeek"),s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var u=this._get(a,"dayNamesMin"),y=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),x=this._get(a,"beforeShowDay"),z=this._get(a,"showOtherMonths"),
E=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var C=this._getDefaultDate(a),F="",G=0;G<k[0];G++){var J="";this.maxRows=4;for(var H=0;H<k[1];H++){var D=this._daylightSavingAdjust(new Date(n,g,a.selectedDay)),t=" ui-corner-all",r="";if(h){r+='<div class="ui-datepicker-group';if(1<k[1])switch(H){case 0:r+=" ui-datepicker-group-first";t=" ui-corner-"+(d?"right":"left");break;case k[1]-1:r+=" ui-datepicker-group-last";t=" ui-corner-"+(d?"left":"right");break;default:r+=" ui-datepicker-group-middle",
t=""}r+='">'}for(var r=r+('<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&0==G?d?f:m:"")+(/all|right/.test(t)&&0==G?d?m:f:"")+this._generateMonthYearHeader(a,g,n,l,o,0<G||0<H,y,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>'),w=i?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"",t=0;7>t;t++)var q=(t+j)%7,w=w+("<th"+(5<=(t+j+6)%7?' class="ui-datepicker-week-end"':"")+'><span title="'+s[q]+'">'+u[q]+"</span></th>");
r+=w+"</tr></thead><tbody>";w=this._getDaysInMonth(n,g);if(n==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,w);t=(this._getFirstDayOfMonth(n,g)-j+7)%7;w=Math.ceil((t+w)/7);this.maxRows=w=h?this.maxRows>w?this.maxRows:w:w;for(var q=this._daylightSavingAdjust(new Date(n,g,1-t)),M=0;M<w;M++){for(var r=r+"<tr>",K=!i?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>",t=0;7>t;t++){var I=x?x.apply(a.input?a.input[0]:null,[q]):[!0,""],B=q.getMonth()!=
g,L=B&&!E||!I[0]||l&&q<l||o&&q>o,K=K+('<td class="'+(5<=(t+j+6)%7?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==D.getTime()&&g==a.selectedMonth&&a._keyEvent||C.getTime()==q.getTime()&&C.getTime()==D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!z?"":" "+I[1]+(q.getTime()==p.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||z)&&I[2]?' title="'+I[2]+'"':"")+(L?"":
' onclick="DP_jQuery_'+A+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!z?"&#xa0;":L?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==p.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>");q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}r+=K+"</tr>"}g++;11<g&&(g=0,n++);r+="</tbody></table>"+
(h?"</div>"+(0<k[0]&&H==k[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");J+=r}F+=J}F+=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 F},_generateMonthYearHeader:function(a,b,d,c,f,j,k,g){var i=this._get(a,"changeMonth"),h=this._get(a,"changeYear"),p=this._get(a,"showMonthAfterYear"),l='<div class="ui-datepicker-title">',o="";if(j||!i)o+='<span class="ui-datepicker-month">'+
k[b]+"</span>";else{for(var k=c&&c.getFullYear()==d,n=f&&f.getFullYear()==d,o=o+('<select class="ui-datepicker-month" onchange="DP_jQuery_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >"),m=0;12>m;m++)if((!k||m>=c.getMonth())&&(!n||m<=f.getMonth()))o+='<option value="'+m+'"'+(m==b?' selected="selected"':"")+">"+g[m]+"</option>";o+="</select>"}p||(l+=o+(j||!i||!h?"&#xa0;":""));if(!a.yearshtml)if(a.yearshtml="",j||!h)l+='<span class="ui-datepicker-year">'+d+"</span>";else{var g=this._get(a,
"yearRange").split(":"),s=(new Date).getFullYear(),k=function(a){a=a.match(/c[+-].*/)?d+parseInt(a.substring(1),10):a.match(/[+-].*/)?s+parseInt(a,10):parseInt(a,10);return isNaN(a)?s:a},b=k(g[0]),g=Math.max(b,k(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_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==d?' selected="selected"':
"")+">"+b+"</option>";a.yearshtml+="</select>";l+=a.yearshtml;a.yearshtml=null}l+=this._get(a,"yearSuffix");p&&(l+=(j||!i||!h?"&#xa0;":"")+o);return l+"</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){if(!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;if(!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 C;c.datepicker.initialized=!1;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="@VERSION";window["DP_jQuery_"+A]=c})(jQuery);


/**
 * @license 
 * jQuery Tools 1.2.0 Scrollable - New wave UI design
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/scrollable.html
 *
 * Since: March 2008
 * Date:    Tue Apr 20 19:26:58 2010 +0000 
 */

/*
 
 jQuery Tools 1.2.0 Scrollable - New wave UI design

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/scrollable.html

 Since: March 2008
 Date:    Tue Apr 20 19:26:58 2010 +0000 
*/
(function(d){function i(e,c){var a=d(c);return 2>a.length?a:e.parent().find(c)}function r(e,c){var a=this,k=e.add(a),f=e.children(),l=0,m=c.vertical;j||(j=a);1<f.length&&(f=d(c.items,e));d.extend(a,{getConf:function(){return c},getIndex:function(){return l},getSize:function(){return a.getItems().size()},getNaviButtons:function(){return n.add(o)},getRoot:function(){return e},getItemWrap:function(){return f},getItems:function(){return f.children(c.item).not("."+c.clonedClass)},move:function(b,c){return a.seekTo(l+
b,c)},next:function(b){return a.move(1,b)},prev:function(b){return a.move(-1,b)},begin:function(b){return a.seekTo(0,b)},end:function(b){return a.seekTo(a.getSize()-1,b)},focus:function(){return j=a},addItem:function(b){b=d(b);c.circular?(d(".cloned:last").before(b),d(".cloned:first").replaceWith(b.clone().addClass(c.clonedClass))):f.append(b);k.trigger("onAddItem",[b]);return a},seekTo:function(b,g,e){if(!c.circular&&0>b||b>a.getSize())return a;var h=b;b.jquery?b=a.getItems().index(b):h=a.getItems().eq(b);
var i=d.Event("onBeforeSeek");if(!e&&(k.trigger(i,[b,g]),i.isDefaultPrevented()||!h.length))return a;h=m?{top:-h.position().top}:{left:-h.position().left};f.animate(h,g,c.easing,e||function(){k.trigger("onSeek",[b])});j=a;l=b;return a}});d.each(["onBeforeSeek","onSeek","onAddItem"],function(b,g){d.isFunction(c[g])&&d(a).bind(g,c[g]);a[g]=function(b){d(a).bind(g,b);return a}});if(c.circular){var p=a.getItems().slice(-1).clone().prependTo(f),q=a.getItems().eq(1).clone().appendTo(f);p.add(q).addClass(c.clonedClass);
a.onBeforeSeek(function(b,c,d){if(!b.isDefaultPrevented()){if(-1==c)return a.seekTo(p,d,function(){a.end(0)}),b.preventDefault();c==a.getSize()&&a.seekTo(q,d,function(){a.begin(0)})}});a.seekTo(0,0)}var n=i(e,c.prev).click(function(){a.prev()}),o=i(e,c.next).click(function(){a.next()});if(!c.circular&&1<a.getSize())a.onBeforeSeek(function(b,d){n.toggleClass(c.disabledClass,0>=d);o.toggleClass(c.disabledClass,d>=a.getSize()-1)});c.mousewheel&&d.fn.mousewheel&&e.mousewheel(function(b,d){if(c.mousewheel)return a.move(0>
d?1:-1,c.wheelSpeed||50),!1});c.keyboard&&d(document).bind("keydown.scrollable",function(b){if(!(!c.keyboard||b.altKey||b.ctrlKey||d(b.target).is(":input")||"static"!=c.keyboard&&j!=a)){var e=b.keyCode;if(m&&(38==e||40==e))return a.move(38==e?-1:1),b.preventDefault();if(!m&&(37==e||39==e))return a.move(37==e?-1:1),b.preventDefault()}});d(a).trigger("onBeforeSeek",[c.initialIndex])}d.tools=d.tools||{version:"1.2.0"};d.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",
easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,wheelSpeed:0}};var j;d.fn.scrollable=function(e){var c=this.data("scrollable");if(c)return c;e=d.extend({},d.tools.scrollable.conf,e);this.each(function(){c=new r(d(this),e);d(this).data("scrollable",c)});return e.api?c:this}})(jQuery);


/**
 * @license 
 * jQuery Tools 1.2.2 / Scrollable Navigator
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 *
 * http://flowplayer.org/tools/scrollable/navigator.html
 *
 * Since: September 2009
 * Date:    Wed May 19 06:53:17 2010 +0000 
 */

/*
 
 jQuery Tools 1.2.2 / Scrollable Navigator

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/scrollable/navigator.html

 Since: September 2009
 Date:    Wed May 19 06:53:17 2010 +0000 
*/
(function(b){function n(a,f){var g=b(f);return 2>g.length?g:a.parent().find(f)}var h=b.tools.scrollable;h.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}};b.fn.navigator=function(a){"string"==typeof a&&(a={navi:a});var a=b.extend({},h.navigator.conf,a),f;this.each(function(){function g(a,c,b){d.seekTo(c);if(j){if(location.hash)location.hash=a.attr("href").replace("#","")}else return b.preventDefault()}function e(){return k.find(a.naviItem||"> *")}
function h(i){var c=b("<"+(a.naviItem||"a")+"/>").click(function(a){g(b(this),i,a)}).attr("href","#"+i);0===i&&c.addClass(l);a.indexed&&c.text(i+1);a.idPrefix&&c.attr("id",a.idPrefix+i);return c.appendTo(k)}function m(a,c){var b=e().eq(c.replace("#",""));b.length||(b=e().filter("[href="+c+"]"));b.click()}var d=b(this).data("scrollable"),k=n(d.getRoot(),a.navi),o=d.getNaviButtons(),l=a.activeClass,j=a.history&&b.fn.history;d&&(f=d);d.getNaviButtons=function(){return o.add(k)};e().length?e().each(function(a){b(this).click(function(c){g(b(this),
a,c)})}):b.each(d.getItems(),function(a){h(a)});d.onBeforeSeek(function(a,c){var b=e().eq(c);!a.isDefaultPrevented()&&b.length&&e().removeClass(l).eq(c).addClass(l)});d.onAddItem(function(a,b){b=h(d.getItems().index(b));j&&b.history(m)});j&&e().history(m)});return a.api?f:this}})(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(l,f){var b,g,i,p;g=i=p=!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,l,f);b.root||c("script").each(function(g,i){miuScript=c(i).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);if(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 l(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=s.length-1;0<=g;g--)e+=s[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(){r(a)},1);return!1}).hover(function(){c("> ul",this).show();c(document).one("click",function(){c("ul ul",u).hide()})},function(){c("> ul",this).hide()}).appendTo(b);a.dropMenu&&(s.push(d),c(e).addClass("markItUpDropMenu").append(l(a.dropMenu)))}});s.pop();return b}function E(a){return a?
(a=a.toString(),a=a.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(a,c){var b=c.split("|!|");return!0===p?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===t)return!1;value=prompt(b[0],b[1]?b[1]:"");null===value&&(t=!0);return value})):""}function k(a){c.isFunction(a)&&(a=a(o));return E(a)}function v(a){openWith=k(m.openWith);placeHolder=k(m.placeHolder);replaceWith=k(m.replaceWith);closeWith=k(m.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 r(a){var q,f;o=m=a;w();c.extend(o,{line:"",root:b.root,textarea:h,selection:selection||"",caretPosition:e,ctrlKey:g,shiftKey:i,altKey:p});k(b.beforeInsert);k(m.beforeInsert);!0===g&&!0===i&&k(m.beforeMultiInsert);c.extend(o,{line:1});if(!0===g&&!0===i){lines=
selection.split(/\r?\n/);for(a=0,q=lines.length,f=0;f<q;f++)""!==c.trim(lines[f])?(c.extend(o,{line:++a,selection:lines[f]}),lines[f]=v(lines[f]).block):lines[f]="";string={block:lines.join("\n")};start=e;a=string.block.length+(c.browser.opera?q:0)}else!0===g?(string=v(selection),start=e+string.openWith.length,a=string.block.length-string.openWith.length-string.closeWith.length,a-=y(string.block)):!0===i?(string=v(selection),start=e,a=string.block.length,a-=y(string.block)):(string=v(selection),start=
e+string.block.length,a=0,start-=y(string.block));if(""===selection&&""===string.replaceWith)j+=z(string.block),start=e+string.openWith.length,a=string.block.length-string.openWith.length-string.closeWith.length,j=d.val().substring(e,d.val().length).length,j-=z(d.val().substring(0,e));c.extend(o,{caretPosition:e,scrollPosition:x});string.block!==selection&&!1===t?(q=string.block,document.selection?document.selection.createRange().text=q:d.val(d.val().substring(0,e)+q+d.val().substring(e+selection.length,
d.val().length)),A(start,a)):j=-1;w();c.extend(o,{line:"",selection:selection});!0===g&&!0===i&&k(m.afterMultiInsert);k(m.afterInsert);k(b.afterInsert);n&&b.previewAutoRefresh&&F();i=p=g=t=!1}function z(a){return c.browser.opera?a.length-a.replace(/\n*/g,"").length:0}function y(a){return c.browser.msie?a.length-a.replace(/\r*/g,"").length:0}function A(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=x;h.focus()}function w(){h.focus();x=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 F(){""!==
b.previewParserPath?c.ajax({type:"POST",url:b.previewParserPath,data:b.previewParserVar+"="+encodeURIComponent(d.val()),success:function(a){B(f(a,1))}}):G||c.ajax({url:b.previewTemplatePath,success:function(a){B(f(a,1).replace(/<\!-- content --\>/g,d.val()))}});return!1}function B(a){if(n.document){try{sp=n.document.documentElement.scrollTop}catch(c){sp=0}n.document.open();n.document.write(a);n.document.close();n.document.documentElement.scrollTop=sp}b.previewInWindow&&n.focus()}function C(a){i=a.shiftKey;
p=a.altKey;g=!a.altKey||!a.ctrlKey?a.ctrlKey:!1;if("keydown"===a.type){if(!0===g&&(li=c('a[accesskey="'+String.fromCharCode(a.keyCode)+'"]',u).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,r(b.onCtrlEnter),b.onCtrlEnter.keepDefault;if(!0===i)return i=!1,r(b.onShiftEnter),b.onShiftEnter.keepDefault;r(b.onEnter);return b.onEnter.keepDefault}if(9===a.keyCode){if(!0==i||!0==g||!0==p)return!1;
if(-1!==j)return w(),j=d.val().length-j,A(j,0),j=-1,!1;r(b.onTab);return b.onTab.keepDefault}}}var d,h,s,x,e,j,m,o,u,D,n,G,t;d=c(this);h=this;s=[];t=!1;x=e=0;j=-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");u=c('<div class="markItUpHeader"></div>').insertBefore(d);c(l(b.markupSet)).appendTo(u);D=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(){c("html").unbind("mousemove",f).unbind("mouseup",g);return!1};c("html").bind("mousemove",f).bind("mouseup",g)}),D.append(resizeHandle));d.keydown(C).keyup(C);d.bind("insertion",function(a,b){!1!==b.target&&w();h===c.markItUp.focused&&r(b)});d.focus(function(){c.markItUp.focused=this})})()})};c.fn.markItUpRemove=function(){return this.each(function(){var l=c(this).unbind().removeClass("markItUpEditor");l.parent("div").parent("div.markItUp").parent("div").replaceWith(l)})};c.markItUp=function(l){var f=
{target:!1};c.extend(f,l);if(f.target)return c(f.target).each(function(){c(this).focus();c(this).trigger("insertion",[f])});c("textarea").trigger("insertion",[f])}})(jQuery);


/*!
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
 *
 * Modifications made to allow for declaration of windows in percentage terms
 * Most of the credit for this belongs to Dave Miller (Dave-Miller.com) - thanks Dave!
 */

var tb_pathToImage=EE.PATH_CP_GBL_IMG+"loadingAnimation.gif",TB_ajaxCache=[],TB_WIDTH=0,TB_HEIGHT=0,TB_WIDTH_PARAM=0,TB_HEIGHT_PARAM=0,TB_PAGESIZE=[0,0],TB_SCROLL=[0,0],TB_HTML_OVERFLOW="auto",TB_BODY_OVERFLOW="auto",TB_MARGIN_LEFT=0,TB_MARGIN_TOP=0;$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});
function tb_init(a){$(a).click(function(){tb_show(this.title||this.name||null,this.href||this.alt,this.rel||!1);this.blur();return!1})}
function tb_show(a,b,d){try{"undefined"===typeof document.body.style.maxHeight?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),null===document.getElementById("TB_HideSelect")&&($("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"),$("#TB_overlay").fadeIn("slow"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").fadeIn("slow"),$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"),
$("#TB_overlay").fadeIn("slow").click(tb_remove));tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");null===a&&(a="");$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show("1000");var c=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,e=(-1!==b.indexOf("?")?b.substr(0,b.indexOf("?")):b).toLowerCase().match(c);if(".jpg"==e||".jpeg"==e||".png"==e||".gif"==e||".bmp"==e){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=
TB_PrevHTML=TB_PrevURL=TB_PrevCaption="";TB_FoundURL=!1;if(d){TB_TempArray=$("a[rel="+d+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&""===TB_NextHTML;TB_Counter++)TB_TempArray[TB_Counter].href.toLowerCase().match(c),TB_TempArray[TB_Counter].href!=b?TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=
TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"):(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length)}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var h=tb_getPageSize(),c=h[0]-150,h=h[1]-150,f=imgPreloader.width,g=imgPreloader.height;f>c?(g*=c/f,f=c,g>h&&(f*=h/g,g=h)):g>h&&(f*=h/g,g=h,f>c&&(g*=c/f,f=c));TB_WIDTH=f+30;TB_HEIGHT=g+60;TB_WIDTH_PARAM=TB_WIDTH;TB_HEIGHT_PARAM=TB_HEIGHT;
$("#TB_window").fadeIn("slow");$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+b+"' width='"+f+"' height='"+g+"' alt='"+a+"'/></a><div id='TB_caption'>"+a+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$(".TB_closeWindowButton").click(tb_remove);if(""!==TB_PrevHTML){var e=function(){$(document).unbind("click",e)&&$(document).unbind("click",
e);$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,d);return!1};$("#TB_prev").click(e)}if(""!==TB_NextHTML){var i=function(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,d);return!1};$("#TB_next").click(i)}document.onkeydown=function(a){keycode=null==a?event.keyCode:a.which;if(27==keycode)tb_remove();else if(190==keycode){if(""!=TB_NextHTML)document.onkeydown="",i()}else if(188==
keycode&&""!=TB_PrevHTML)document.onkeydown="",e()};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var k=b.replace(/^[^\?]+\??/,""),i=tb_parseQuery(k);TB_WIDTH_PARAM=i.width;TB_HEIGHT_PARAM=i.height;TB_WIDTH=tb_calculateSize(TB_WIDTH_PARAM,0);TB_HEIGHT=tb_calculateSize(TB_HEIGHT_PARAM,1);ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;-1!=b.indexOf("TB_iframe")?(urlNoQuery=b.split("TB_"),$("#TB_iframeContent").remove(),
"true"!=i.modal?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(1E3*Math.random())+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+
urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(1E3*Math.random())+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>"))):"block"!=$("#TB_window").css("display")?"true"!=i.modal?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+
ajaxContentH+"px'></div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(a));$(".TB_closeWindowButton").click(tb_remove);if(-1!=b.indexOf("TB_inline"))$("#TB_ajaxContent").append($("#"+i.inlineId).children()),
$("#TB_window").unload(function(){$("#"+i.inlineId).append($("#TB_ajaxContent").children())}),tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"});else if(-1!=b.indexOf("TB_iframe"))tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}));else{var j=-1!=b.indexOf("TB_cache");j&&TB_ajaxCache[b]?($("#TB_ajaxContent").html(TB_ajaxCache[b]),tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"})):$("#TB_ajaxContent").load(b,
function(){tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});j&&(tb_ajaxCache[b]=$("#TB_ajaxContent").html())})}}TB_PAGESIZE=tb_getPageSize();$(window).resize(tb_resize);document.onkeyup=function(a){keycode=null==a?event.keyCode:a.which;27==keycode&&tb_remove()}}catch(l){alert(l)}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$(".TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("slow",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();"undefined"==typeof document.body.style.maxHeight&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow",""));document.onkeydown="";document.onkeyup="";return!1}
function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});jQuery.browser.msie&&7>jQuery.browser.version||$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}function tb_parseQuery(a){var b={};if(!a)return b;-1!=a.indexOf("?")&&(a=a.substring(a.indexOf("?")+1));for(var a=a.split(/[;&]/),d=0;d<a.length;d++){var c=a[d].split("=");if(c&&2==c.length){var e=unescape(c[0]),c=unescape(c[1]),c=c.replace(/\+/g," ");b[e]=c}}return b}
function tb_getPageSize(){var a=document.documentElement;return arrayPageSize=[window.innerWidth||self.innerWidth||a&&a.clientWidth||document.body.clientWidth,window.innerHeight||self.innerHeight||a&&a.clientHeight||document.body.clientHeight]}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(-1!=a.indexOf("mac")&&-1!=a.indexOf("firefox"))return!0}
function tb_calculateSize(a,b){a=a.toString();if("%"==a.substring(a.length-1)){var a=a.substring(0,a.length-1),d=tb_getPageSize();return d[b]*a/100-16}return 0>a?(d=tb_getPageSize(),d[b]+1*a-16):1*a+(1==b?40:30)}
function tb_resize(){TB_NEW_PAGESIZE=tb_getPageSize();TB_WIDTH=tb_calculateSize(TB_WIDTH_PARAM,0);TB_HEIGHT=tb_calculateSize(TB_HEIGHT_PARAM,1);ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;TB_NEW_PAGESIZE[0]==TB_PAGESIZE[0]&&TB_NEW_PAGESIZE[1]==TB_PAGESIZE[1]||(TB_NEW_PAGESIZE[0]==TB_PAGESIZE[0]&&TB_NEW_PAGESIZE[1]==TB_PAGESIZE[1]+1?TB_PAGESIZE=TB_NEW_PAGESIZE:(TB_PAGESIZE=TB_NEW_PAGESIZE,$("#TB_iframeContent").css({width:ajaxContentW+29+"px",height:ajaxContentH+17+"px"}),$("#TB_ajaxContent").css({width:ajaxContentW+
"px",height:ajaxContentH+"px"}),tb_position()))};


/**
 * @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 k(){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 l;l=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,i,d,e,j;b.mask={load:function(a,g){if(d)return this;"string"==typeof a&&(a={color:a});a=a||e;e=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);c.length||(c=b("<div/>").attr("id",a.maskId),b("body").append(c));var f=k();c.css({position:"absolute",top:0,left:0,width:f[0],height:f[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});f=c.css("backgroundColor");(!f||"transparent"==f||"rgba(0, 0, 0, 0)"==f)&&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()});g&&g.length&&(j=g.eq(0).css("zIndex"),b.each(g,function(){var a=b(this);/relative|absolute|fixed/i.test(a.css("position"))||a.css("position","relative")}),i=g.css({zIndex:Math.max(a.zIndex+1,"auto"==j?0:j)}));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);i&&i.css({zIndex:j})});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask");d=!1}return this},fit:function(){if(d){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(){return d},getConf:function(){return e},getExposed:function(){return i}};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 m(a,c){var d=this,h=a.add(d),n=b(window),e,f,k,g=b.tools.expose&&(c.mask||c.expose),l=Math.random().toString().slice(10);if(g)"string"==typeof g&&(g={color:g}),g.closeOnClick=g.closeOnEsc=!1;var i=c.target||a.attr("rel");f=i?b(i):a;if(!f.length)throw"Could not find Overlay: "+i;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 p=o[c.effect];if(!p)throw'Overlay: cannot find effect : "'+c.effect+
'"';c.oneInstance&&b.each(q,function(){this.close(a)});a=a||b.Event();a.type="onBeforeLoad";h.trigger(a);if(a.isDefaultPrevented())return d;k=!0;g&&b(f).expose(g);var j=c.top,e=c.left,i=f.outerWidth({margin:!0}),m=f.outerHeight({margin:!0});"string"==typeof j&&(j="center"==j?Math.max((n.height()-m)/2,0):parseInt(j,10)/100*n.height());"center"==e&&(e=Math.max((n.width()-i)/2,0));p[0].call(d,{top:j,left:e},function(){if(k)a.type="onLoad",h.trigger(a)});if(g&&c.closeOnClick)b.mask.getMask().one("click",
d.close);c.closeOnClick&&b(document).bind("click."+l,function(a){b(a.target).parents(f).length||d.close(a)});c.closeOnEsc&&b(document).bind("keydown."+l,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 k=!1,o[c.effect][1].call(d,function(){a.type="onClose";h.trigger(a)}),b(document).unbind("click."+l).unbind("keydown."+l),g&&b.mask.close(),d},getOverlay:function(){return f},
getTrigger:function(){return a},getClosers:function(){return e},isOpened:function(){return k},getConf:function(){return c}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),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){o[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 q=[],o={};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 m(b(this),a);q.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){function n(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:B,nest:C,wrap:D,html:E,update:F};a&&d.extend(c,a,{nodes:[],parent:b});if(e)c.tmpl=e,c._ctnt=c._ctnt||c.tmpl(d,c),c.key=++o,(t.length?p:j)[o]=c;return c}function q(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 "+m+'="'+a.key+'" $2'):b:q(b,a,b._ctnt)}):a;if(b)return e;e=e.join("");e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,
function(b,a,e,i){c=d(e).get();v(c);a&&(c=u(a).concat(c));i&&(c=c.concat(u(i)))});return c?c:u(e)}function u(a){var b=document.createElement("div");b.innerHTML=a;return d.makeArray(b.childNodes)}function w(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(a,e,c,g,h,f,i){a=d.tmpl.tag[c];if(!a)throw"Unknown template tag: "+c;c=a._default||[];f&&!/\w$/.test(h)&&(h+=f,f="");h?(h=r(h),i=i?","+r(i)+")":f?")":"",i=f?-1<h.indexOf(".")?h+r(f):"("+h+").call($item"+i:h,f=f?i:"(typeof("+h+")==='function'?("+h+").call($item):("+h+"))"):f=i=c.$1||"null";g=r(g);return"');"+a[e?"close":"open"].split("$notnull_1").join(h?"typeof("+h+")!=='undefined' && ("+h+")!=null":"true").split("$1a").join(f).split("$1").join(i).split("$2").join(g||c.$2||"")+"__.push('"})+
"');}return __;")}function x(a,b){a._wrap=q(a,!0,d.isArray(b)?b:[y.test(b)?b:d(b).html()]).join("")}function r(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function v(a){function b(a){function b(a){var G;a+=e;G=h[a]=h[a]||n(f,j[f.parent.key+e]||f.parent),f=G}var c,g=a,f,i;if(i=a.getAttribute(m)){for(;g.parentNode&&1===(g=g.parentNode).nodeType&&!(c=g.getAttribute(m)););if(c!==i){g=g.parentNode?11===g.nodeType?0:g.getAttribute(m)||0:0;if(!(f=j[i]))f=p[i],f=n(f,j[g]||p[g]),f.key=++o,
j[o]=f;k&&b(i)}a.removeAttribute(m)}else if(k&&(f=d.data(a,"tmplItem")))b(f.key),j[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="_"+k,c,g,h={},f,i,l;for(f=0,i=a.length;f<i;f++)if(1===(c=a[f]).nodeType){g=c.getElementsByTagName("*");for(l=g.length-1;0<=l;l--)b(g[l]);b(c)}}function B(a,b,d,c){if(!a)return t.pop();t.push({_:a,tmpl:b,item:this,data:d,options:c})}function C(a,b,e){return d.tmpl(d.template(a),
b,e,this)}function D(a,b){var e=a.options||{};e.wrapped=b;return d.tmpl(d.template(a.tmpl),a.data,e,a.item)}function E(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;if(!(d=a.outerHTML))d=document.createElement("div"),d.appendChild(a.cloneNode(!0)),d=d.innerHTML;a=d}return a})}function F(){var a=this.nodes;d.tmpl(null,null,null,this).insertBefore(a[0]);d(a).remove()}var z=d.fn.domManip,m="_tmplitem",y=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
j={},p={},s,A={key:0,data:{}},o=0,k=0,t=[];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),g,h,f;g=1===this.length&&this[0].parentNode;s=j||{};if(g&&11===g.nodeType&&1===g.childNodes.length&&1===e.length)e[b](this[0]),c=this;else{for(h=0,f=e.length;h<f;h++)k=h,g=(0<h?this.clone(!0):this).get(),d(e[h])[b](g),c=c.concat(g);k=0;c=this.pushStack(c,a,e.selector)}e=s;s=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,i=0,l;i<f&&!(l=d.data(h[i++],"tmplItem")););l&&k&&(g[2]=function(a){d.tmpl.afterManip(this,a,e)});z.apply(this,g)}else z.apply(this,arguments);k=0;s||d.tmpl.complete(j);return this}});d.extend({tmpl:function(a,b,e,c){var g=
!c;if(g)c=A,a=d.template[a]||d.template(null,a),p={};else if(!a)return a=c.tmpl,j[c.key]=c,c.nodes=[],c.wrapped&&x(c,c.wrapped),d(q(c,null,c.tmpl(d,c)));if(!a)return[];"function"===typeof b&&(b=b.call(c||{}));e&&e.wrapped&&x(e,e.wrapped);b=d.isArray(b)?d.map(b,function(b){return b?n(e,c,a,b):null}):[n(e,c,a,b)];return g?d(q(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||A},template:function(a,b){return b?
("string"===typeof b?b=w(b):b instanceof d&&(b=b[0]||{}),b.nodeType&&(b=d.data(b,"tmpl")||d.data(b,"tmpl",w(b.innerHTML))),"string"===typeof a?d.template[a]=b:b):a?"string"!==typeof a?d.template(null,a):d.template[a]||d.template(null,y.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(){j={}},afterManip:function(a,
b,e){var c=11===b.nodeType?d.makeArray(b.childNodes):1===b.nodeType?[b]:[];e.call(a,b);v(c);k++}})})(jQuery);


var smiley_map = {};function insert_smiley(smiley, field_id) {var el = document.getElementById(field_id), 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 - 2012, EllisLab, Inc.
 * @license		http://expressionengine.com/user_guide/license.html
 * @link		http://expressionengine.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"}if(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{var c=a.scrollTop,g=a.textLength,b=a.selectionStart,j=a.selectionEnd;2>=j&&"undefined"!=typeof g&&(j=g);f=a.value.substring(0,b);g=a.value.substring(b,j).s3=
a.value.substring(j,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){$("#"+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})});
