A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 242

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/pearsone/www/compagnons/moneformation/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/pearsone/www/compagnons/moneformation/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/pearsone/www/compagnons/moneformation/system/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 408

/*! * 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;cf;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").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?"":"")+""),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(;gc?Math.max(0,d+c):c:0;ca.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=g&&a&&c.isFunction(a.promise)?a:c.Deferred(),n=j.promise();if(1"!==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="
t
";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="
",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="
";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;fe)return null;a=i?e:0;for(d=i?e+1:g.length;af.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;hd&&i.push({elem:this,matches:b.slice(d)});for(h=0;h+~,(\[\\]+)+|[>+~])(\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":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!p.test(b))for(b=b.toLowerCase();ec[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";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

";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
";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]*)\/>/ig,Ra=/<([\w:]+)/,Eb=/]","i"),Ta=/checked\s*(?:[^=]|=\s*.checked.)/i, Ua=/\/(java|ecma)script/i,Ib=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_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
","
"];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>");try{for(;eh.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")?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>");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:""===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),0c;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>/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("
").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=0a||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;Ea&&(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&&0u)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=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[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;eb&&a=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=0a.collisionPosition.left?e+f+i:0a.collisionPosition.top?e+f+i:0b})()})(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('
').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.leftg[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.topg[3])?h:!(h-this.offset.click.topg[2])?e:!(e-this.offset.click.leftd.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
').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');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(cb.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');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("",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(""),d.secondary&&a.append(""),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||" ",e=c.ui.dialog.getTitleId(a.element),f=(a.uiDialog=c("
")).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("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f), g=c('').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("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(g);c("").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("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),f=c("
").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('').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||" "))}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()").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'))}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('
'))}},_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(''+d+""),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("").addClass(this._triggerClass).attr({src:f,alt:d,title:d}):c('').addClass(this._triggerClass).html(""==f?d:c("").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;cb)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(''),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;bd||!b||-1g&&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[0a,""]},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+1d&&(d+=(new Date).getFullYear()- (new Date).getFullYear()%100+(d<=e?0:-100));if(-1b.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+1g&&(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&&mm;)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)?''+m+"":f?"":''+m+"",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)?''+s+"":f?"":''+s+"",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?'":"",e=e?'
'+(d?j:"")+(this._isInRange(a, s)?'":"")+(d?"":j)+"
":"",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'+(/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
'),w=i?'":"",t=0;7>t;t++)var q=(t+j)%7,w=w+("'+u[q]+""); r+=w+"";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",K=!i?"":'",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&&qo,K=K+('");q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}r+=K+""}g++;11
'+this._get(a,"weekHeader")+"
'+this._get(a,"calculateWeek")(q)+""+(B&&!z?" ":L?''+q.getDate()+"":''+q.getDate()+"")+"
"+ (h?""+(0':""):"");J+=r}F+=J}F+=e+(c.browser.msie&&7>parseInt(c.browser.version,10)&&!a.inline?'':"");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='
',o="";if(j||!i)o+=''+ k[b]+"";else{for(var k=c&&c.getFullYear()==d,n=f&&f.getFullYear()==d,o=o+('"}p||(l+=o+(j||!i||!h?" ":""));if(!a.yearshtml)if(a.yearshtml="",j||!h)l+=''+d+"";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+='";l+=a.yearshtml;a.yearshtml=null}l+=this._get(a,"yearSuffix");p&&(l+=(j||!i||!h?" ":"")+o);return l+"
"},_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&&bc?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);1b||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=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("
    "),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('
  • '+(a.separator||"")+"
  • ").appendTo(b);else{d++;for(g=s.length-1;0<=g;g--)e+=s[g]+"-";e=c('
  • '+(a.name||"")+"
  • ").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");d.wrap("
    ');d.wrap('
    ');d.addClass("markItUpEditor");u=c('
    ').insertBefore(d);c(l(b.markupSet)).appendTo(u);D=c('
    ').insertAfter(d);!0===b.resizeHandle&&!0!==c.browser.safari&&(resizeHandle=c('
    ').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("
    "),$("#TB_overlay").fadeIn("slow"),$("#TB_overlay").click(tb_remove))):null===document.getElementById("TB_overlay")&&($("body").fadeIn("slow"),$("body").append("
    "), $("#TB_overlay").fadeIn("slow").click(tb_remove));tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");null===a&&(a="");$("body").append("
    ");$("#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  Next >"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL= TB_TempArray[TB_Counter].href,TB_PrevHTML="  < Prev"):(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+"
    "+a+"
    "+TB_imageCount+TB_PrevHTML+TB_NextHTML+"
    close or Esc Key
    ");$(".TB_closeWindowButton").click(tb_remove);if(""!==TB_PrevHTML){var e=function(){$(document).unbind("click",e)&&$(document).unbind("click", e);$("#TB_window").remove();$("body").append("
    ");tb_show(TB_PrevCaption,TB_PrevURL,d);return!1};$("#TB_prev").click(e)}if(""!==TB_NextHTML){var i=function(){$("#TB_window").remove();$("body").append("
    ");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("
    "+a+"
    close or Esc Key
    "):($("#TB_overlay").unbind(),$("#TB_window").append(""))):"block"!=$("#TB_window").css("display")?"true"!=i.modal?$("#TB_window").append("
    "+a+"
    close or Esc Key
    "):($("#TB_overlay").unbind(),$("#TB_window").append("
    ")):($("#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;da?(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("
    ").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(''),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])(?![^>]*_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)[^>]*$|\{\{\! /, 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").join(">").split('"').join(""").split("'").join("'")}});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 - 2013, EllisLab, Inc. * @license http://ellislab.com/expressionengine/user-guide/license.html * @link http://ellislab.com * @since Version 2.0 * @filesource */ var selField=!1,selMode="normal";function setFieldName(c){c!=selField&&(selField=c,clear_state(),tagarray=[],usedarray=[],running=0)} function taginsert(c,h,e){var f=eval("item.name");if(!selField)return $.ee_notice(no_cursor),!1;var b=!1,d=!1,a=document.getElementById("entryform")[selField];"guided"==selMode&&(data=prompt(enter_text,""),null!=data&&""!=data&&(d=h+data+e));if(document.selection)b=document.selection.createRange().text,a.focus(),b?document.selection.createRange().text=!1==d?h+b+e:d:document.selection.createRange().text=!1==d?h+e:d,a.blur(),a.focus();else if(isNaN(a.selectionEnd)){if("guided"==selMode)curField=document.submit_post[selfField], curField.value+=d;else{if("other"==c)eval("document.getElementById('entryform')."+selField+".value += tagOpen");else if(0==eval(f))eval("document.getElementById('entryform')."+selField+".value += result"),eval(f+" = 1"),arraypush(tagarray,e),arraypush(usedarray,f),running++,styleswap(f);else{for(i=n=0;i=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('
  • Close Formatting Buttons
  • ');$(".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})});