(function(a,c){function d(){if(!i.isReady){try{A.documentElement.doScroll("left")}catch(e){setTimeout(d,1);return}i.ready()}}function f(e,j){j.src?i.ajax({url:j.src,async:false,dataType:"script"}):i.globalEval(j.text||j.textContent||j.innerHTML||"");j.parentNode&&j.parentNode.removeChild(j)}function b(e,j,k,p,o,x){var y=e.length;if(typeof j==="object"){for(var E in j)b(e,E,j[E],p,o,k);return e}if(k!==c){p=!x&&p&&i.isFunction(k);for(E=0;E<y;E++)o(e[E],j,p?k.call(e[E],E,o(e[E],j)):k,x);return e}return y?
o(e[0],j):c}function g(){return(new Date).getTime()}function h(){return false}function n(){return true}function r(e,j,k){k[0].type=e;return i.event.handle.apply(j,k)}function m(e){var j,k=[],p=[],o=arguments,x,y,E,C,F,L;y=i.data(this,"events");if(!(e.liveFired===this||!y||!y.live||e.button&&e.type==="click")){e.liveFired=this;var R=y.live.slice(0);for(C=0;C<R.length;C++){y=R[C];y.origType.replace(ta,"")===e.type?p.push(y.selector):R.splice(C--,1)}x=i(e.target).closest(p,e.currentTarget);F=0;for(L=
x.length;F<L;F++)for(C=0;C<R.length;C++){y=R[C];if(x[F].selector===y.selector){E=x[F].elem;p=null;if(y.preType==="mouseenter"||y.preType==="mouseleave")p=i(e.relatedTarget).closest(y.selector)[0];if(!p||p!==E)k.push({elem:E,handleObj:y})}}F=0;for(L=k.length;F<L;F++){x=k[F];e.currentTarget=x.elem;e.data=x.handleObj.data;e.handleObj=x.handleObj;if(x.handleObj.origHandler.apply(x.elem,o)===false){j=false;break}}return j}}function l(e,j){return"live."+(e&&e!=="*"?e+".":"")+j.replace(/\./g,"`").replace(/ /g,
"&")}function q(e,j){var k=0;j.each(function(){if(this.nodeName===(e[k]&&e[k].nodeName)){var p=i.data(e[k++]),o=i.data(this,p);if(p=p&&p.events){delete o.handle;o.events={};for(var x in p)for(var y in p[x])i.event.add(this,x,p[x][y],p[x][y].data)}}})}function u(e,j,k){var p,o,x;j=j&&j[0]?j[0].ownerDocument||j[0]:A;if(e.length===1&&typeof e[0]==="string"&&e[0].length<512&&j===A&&!Ka.test(e[0])&&(i.support.checkClone||!La.test(e[0]))){o=true;if(x=i.fragments[e[0]])if(x!==1)p=x}if(!p){p=j.createDocumentFragment();
i.clean(e,j,p,k)}if(o)i.fragments[e[0]]=x?p:1;return{fragment:p,cacheable:o}}function w(e,j){var k={};i.each(Ma.concat.apply([],Ma.slice(0,j)),function(){k[this]=e});return k}function z(e){return"scrollTo"in e&&e.document?e:e.nodeType===9?e.defaultView||e.parentWindow:false}var i=function(e,j){return new i.fn.init(e,j)},N=a.jQuery,J=a.$,A=a.document,P,U=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,M=/^.[^:#\[\.,]*$/,H=/\S/,K=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,V=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ba=navigator.userAgent,
ia=false,ja=[],ha,pa=Object.prototype.toString,ka=Object.prototype.hasOwnProperty,qa=Array.prototype.push,Y=Array.prototype.slice,da=Array.prototype.indexOf;i.fn=i.prototype={init:function(e,j){var k,p;if(!e)return this;if(e.nodeType){this.context=this[0]=e;this.length=1;return this}if(e==="body"&&!j){this.context=A;this[0]=A.body;this.selector="body";this.length=1;return this}if(typeof e==="string")if((k=U.exec(e))&&(k[1]||!j))if(k[1]){p=j?j.ownerDocument||j:A;if(e=V.exec(e))if(i.isPlainObject(j)){e=
[A.createElement(e[1])];i.fn.attr.call(e,j,true)}else e=[p.createElement(e[1])];else{e=u([k[1]],[p]);e=(e.cacheable?e.fragment.cloneNode(true):e.fragment).childNodes}return i.merge(this,e)}else{if(j=A.getElementById(k[2])){if(j.id!==k[2])return P.find(e);this.length=1;this[0]=j}this.context=A;this.selector=e;return this}else if(!j&&/^\w+$/.test(e)){this.selector=e;this.context=A;e=A.getElementsByTagName(e);return i.merge(this,e)}else return!j||j.jquery?(j||P).find(e):i(j).find(e);else if(i.isFunction(e))return P.ready(e);
if(e.selector!==c){this.selector=e.selector;this.context=e.context}return i.makeArray(e,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return Y.call(this,0)},get:function(e){return e==null?this.toArray():e<0?this.slice(e)[0]:this[e]},pushStack:function(e,j,k){var p=i();i.isArray(e)?qa.apply(p,e):i.merge(p,e);p.prevObject=this;p.context=this.context;if(j==="find")p.selector=this.selector+(this.selector?" ":"")+k;else if(j)p.selector=this.selector+
"."+j+"("+k+")";return p},each:function(e,j){return i.each(this,e,j)},ready:function(e){i.bindReady();if(i.isReady)e.call(A,i);else ja&&ja.push(e);return this},eq:function(e){return e===-1?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(i.map(this,function(j,k){return e.call(j,k,j)}))},end:function(){return this.prevObject||
i(null)},push:qa,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var e=arguments[0]||{},j=1,k=arguments.length,p=false,o,x,y,E;if(typeof e==="boolean"){p=e;e=arguments[1]||{};j=2}if(typeof e!=="object"&&!i.isFunction(e))e={};if(k===j){e=this;--j}for(;j<k;j++)if((o=arguments[j])!=null)for(x in o){y=e[x];E=o[x];if(e!==E)if(p&&E&&(i.isPlainObject(E)||i.isArray(E))){y=y&&(i.isPlainObject(y)||i.isArray(y))?y:i.isArray(E)?[]:{};e[x]=i.extend(p,y,E)}else if(E!==c)e[x]=
E}return e};i.extend({noConflict:function(e){a.$=J;if(e)a.jQuery=N;return i},isReady:false,ready:function(){if(!i.isReady){if(!A.body)return setTimeout(i.ready,13);i.isReady=true;if(ja){for(var e,j=0;e=ja[j++];)e.call(A,i);ja=null}i.fn.triggerHandler&&i(A).triggerHandler("ready")}},bindReady:function(){if(!ia){ia=true;if(A.readyState==="complete")return i.ready();if(A.addEventListener){A.addEventListener("DOMContentLoaded",ha,false);a.addEventListener("load",i.ready,false)}else if(A.attachEvent){A.attachEvent("onreadystatechange",
ha);a.attachEvent("onload",i.ready);var e=false;try{e=a.frameElement==null}catch(j){}A.documentElement.doScroll&&e&&d()}}},isFunction:function(e){return pa.call(e)==="[object Function]"},isArray:function(e){return pa.call(e)==="[object Array]"},isPlainObject:function(e){if(!e||pa.call(e)!=="[object Object]"||e.nodeType||e.setInterval)return false;if(e.constructor&&!ka.call(e,"constructor")&&!ka.call(e.constructor.prototype,"isPrototypeOf"))return false;for(var j in e);return j===c||ka.call(e,j)},
isEmptyObject:function(e){for(var j in e)return false;return true},error:function(e){throw e;},parseJSON:function(e){if(typeof e!=="string"||!e)return null;e=i.trim(e);if(/^[\],:{}\s]*$/.test(e.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(e):(new Function("return "+e))();else i.error("Invalid JSON: "+e)},noop:function(){},globalEval:function(e){if(e&&
H.test(e)){var j=A.getElementsByTagName("head")[0]||A.documentElement,k=A.createElement("script");k.type="text/javascript";if(i.support.scriptEval)k.appendChild(A.createTextNode(e));else k.text=e;j.insertBefore(k,j.firstChild);j.removeChild(k)}},nodeName:function(e,j){return e.nodeName&&e.nodeName.toUpperCase()===j.toUpperCase()},each:function(e,j,k){var p,o=0,x=e.length,y=x===c||i.isFunction(e);if(k)if(y)for(p in e){if(j.apply(e[p],k)===false)break}else for(;o<x;){if(j.apply(e[o++],k)===false)break}else if(y)for(p in e){if(j.call(e[p],
p,e[p])===false)break}else for(k=e[0];o<x&&j.call(k,o,k)!==false;k=e[++o]);return e},trim:function(e){return(e||"").replace(K,"")},makeArray:function(e,j){j=j||[];if(e!=null)e.length==null||typeof e==="string"||i.isFunction(e)||typeof e!=="function"&&e.setInterval?qa.call(j,e):i.merge(j,e);return j},inArray:function(e,j){if(j.indexOf)return j.indexOf(e);for(var k=0,p=j.length;k<p;k++)if(j[k]===e)return k;return-1},merge:function(e,j){var k=e.length,p=0;if(typeof j.length==="number")for(var o=j.length;p<
o;p++)e[k++]=j[p];else for(;j[p]!==c;)e[k++]=j[p++];e.length=k;return e},grep:function(e,j,k){for(var p=[],o=0,x=e.length;o<x;o++)!k!==!j(e[o],o)&&p.push(e[o]);return p},map:function(e,j,k){for(var p=[],o,x=0,y=e.length;x<y;x++){o=j(e[x],x,k);if(o!=null)p[p.length]=o}return p.concat.apply([],p)},guid:1,proxy:function(e,j,k){if(arguments.length===2)if(typeof j==="string"){k=e;e=k[j];j=c}else if(j&&!i.isFunction(j)){k=j;j=c}if(!j&&e)j=function(){return e.apply(k||this,arguments)};if(e)j.guid=e.guid=
e.guid||j.guid||i.guid++;return j},uaMatch:function(e){e=e.toLowerCase();e=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||!/compatible/.test(e)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[];return{browser:e[1]||"",version:e[2]||"0"}},browser:{}});ba=i.uaMatch(ba);if(ba.browser){i.browser[ba.browser]=true;i.browser.version=ba.version}if(i.browser.webkit)i.browser.safari=true;if(da)i.inArray=function(e,j){return da.call(j,e)};P=i(A);if(A.addEventListener)ha=
function(){A.removeEventListener("DOMContentLoaded",ha,false);i.ready()};else if(A.attachEvent)ha=function(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",ha);i.ready()}};(function(){i.support={};var e=A.documentElement,j=A.createElement("script"),k=A.createElement("div"),p="script"+g();k.style.display="none";k.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var o=k.getElementsByTagName("*"),x=k.getElementsByTagName("a")[0];
if(!(!o||!o.length||!x)){i.support={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/red/.test(x.getAttribute("style")),hrefNormalized:x.getAttribute("href")==="/a",opacity:/^0.55$/.test(x.style.opacity),cssFloat:!!x.style.cssFloat,checkOn:k.getElementsByTagName("input")[0].value==="on",optSelected:A.createElement("select").appendChild(A.createElement("option")).selected,parentNode:k.removeChild(k.appendChild(A.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};j.type="text/javascript";try{j.appendChild(A.createTextNode("window."+p+"=1;"))}catch(y){}e.insertBefore(j,e.firstChild);if(a[p]){i.support.scriptEval=true;delete a[p]}try{delete j.test}catch(E){i.support.deleteExpando=false}e.removeChild(j);if(k.attachEvent&&k.fireEvent){k.attachEvent("onclick",function C(){i.support.noCloneEvent=false;k.detachEvent("onclick",C)});k.cloneNode(true).fireEvent("onclick")}k=A.createElement("div");
k.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";e=A.createDocumentFragment();e.appendChild(k.firstChild);i.support.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;i(function(){var C=A.createElement("div");C.style.width=C.style.paddingLeft="1px";A.body.appendChild(C);i.boxModel=i.support.boxModel=C.offsetWidth===2;A.body.removeChild(C).style.display="none"});e=function(C){var F=A.createElement("div");C="on"+C;var L=C in F;if(!L){F.setAttribute(C,"return;");L=typeof F[C]===
"function"}return L};i.support.submitBubbles=e("submit");i.support.changeBubbles=e("change");e=j=k=o=x=null}})();i.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ca="jQuery"+g(),Z=0,ua={};i.extend({cache:{},expando:ca,noData:{embed:true,object:true,applet:true},data:function(e,j,k){if(!(e.nodeName&&i.noData[e.nodeName.toLowerCase()])){e=
e==a?ua:e;var p=e[ca],o=i.cache;if(!p&&typeof j==="string"&&k===c)return null;p||(p=++Z);if(typeof j==="object"){e[ca]=p;o[p]=i.extend(true,{},j)}else if(!o[p]){e[ca]=p;o[p]={}}e=o[p];if(k!==c)e[j]=k;return typeof j==="string"?e[j]:e}},removeData:function(e,j){if(!(e.nodeName&&i.noData[e.nodeName.toLowerCase()])){e=e==a?ua:e;var k=e[ca],p=i.cache,o=p[k];if(j){if(o){delete o[j];i.isEmptyObject(o)&&i.removeData(e)}}else{if(i.support.deleteExpando)delete e[i.expando];else e.removeAttribute&&e.removeAttribute(i.expando);
delete p[k]}}}});i.fn.extend({data:function(e,j){if(typeof e==="undefined"&&this.length)return i.data(this[0]);else if(typeof e==="object")return this.each(function(){i.data(this,e)});var k=e.split(".");k[1]=k[1]?"."+k[1]:"";if(j===c){var p=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(p===c&&this.length)p=i.data(this[0],e);return p===c&&k[1]?this.data(k[0]):p}else return this.trigger("setData"+k[1]+"!",[k[0],j]).each(function(){i.data(this,e,j)})},removeData:function(e){return this.each(function(){i.removeData(this,
e)})}});i.extend({queue:function(e,j,k){if(e){j=(j||"fx")+"queue";var p=i.data(e,j);if(!k)return p||[];if(!p||i.isArray(k))p=i.data(e,j,i.makeArray(k));else p.push(k);return p}},dequeue:function(e,j){j=j||"fx";var k=i.queue(e,j),p=k.shift();if(p==="inprogress")p=k.shift();if(p){j==="fx"&&k.unshift("inprogress");p.call(e,function(){i.dequeue(e,j)})}}});i.fn.extend({queue:function(e,j){if(typeof e!=="string"){j=e;e="fx"}if(j===c)return i.queue(this[0],e);return this.each(function(){var k=i.queue(this,
e,j);e==="fx"&&k[0]!=="inprogress"&&i.dequeue(this,e)})},dequeue:function(e){return this.each(function(){i.dequeue(this,e)})},delay:function(e,j){e=i.fx?i.fx.speeds[e]||e:e;j=j||"fx";return this.queue(j,function(){var k=this;setTimeout(function(){i.dequeue(k,j)},e)})},clearQueue:function(e){return this.queue(e||"fx",[])}});var va=/[\n\t]/g,la=/\s+/,ma=/\r/g,wa=/href|src|style/,bb=/(button|input)/i,cb=/(button|input|object|select|textarea)/i,db=/^(a|area)$/i,Na=/radio|checkbox/;i.fn.extend({attr:function(e,
j){return b(this,e,j,true,i.attr)},removeAttr:function(e){return this.each(function(){i.attr(this,e,"");this.nodeType===1&&this.removeAttribute(e)})},addClass:function(e){if(i.isFunction(e))return this.each(function(F){var L=i(this);L.addClass(e.call(this,F,L.attr("class")))});if(e&&typeof e==="string")for(var j=(e||"").split(la),k=0,p=this.length;k<p;k++){var o=this[k];if(o.nodeType===1)if(o.className){for(var x=" "+o.className+" ",y=o.className,E=0,C=j.length;E<C;E++)if(x.indexOf(" "+j[E]+" ")<
0)y+=" "+j[E];o.className=i.trim(y)}else o.className=e}return this},removeClass:function(e){if(i.isFunction(e))return this.each(function(C){var F=i(this);F.removeClass(e.call(this,C,F.attr("class")))});if(e&&typeof e==="string"||e===c)for(var j=(e||"").split(la),k=0,p=this.length;k<p;k++){var o=this[k];if(o.nodeType===1&&o.className)if(e){for(var x=(" "+o.className+" ").replace(va," "),y=0,E=j.length;y<E;y++)x=x.replace(" "+j[y]+" "," ");o.className=i.trim(x)}else o.className=""}return this},toggleClass:function(e,
j){var k=typeof e,p=typeof j==="boolean";if(i.isFunction(e))return this.each(function(o){var x=i(this);x.toggleClass(e.call(this,o,x.attr("class"),j),j)});return this.each(function(){if(k==="string")for(var o,x=0,y=i(this),E=j,C=e.split(la);o=C[x++];){E=p?E:!y.hasClass(o);y[E?"addClass":"removeClass"](o)}else if(k==="undefined"||k==="boolean"){this.className&&i.data(this,"__className__",this.className);this.className=this.className||e===false?"":i.data(this,"__className__")||""}})},hasClass:function(e){e=
" "+e+" ";for(var j=0,k=this.length;j<k;j++)if((" "+this[j].className+" ").replace(va," ").indexOf(e)>-1)return true;return false},val:function(e){if(e===c){var j=this[0];if(j){if(i.nodeName(j,"option"))return(j.attributes.value||{}).specified?j.value:j.text;if(i.nodeName(j,"select")){var k=j.selectedIndex,p=[],o=j.options;j=j.type==="select-one";if(k<0)return null;var x=j?k:0;for(k=j?k+1:o.length;x<k;x++){var y=o[x];if(y.selected){e=i(y).val();if(j)return e;p.push(e)}}return p}if(Na.test(j.type)&&
!i.support.checkOn)return j.getAttribute("value")===null?"on":j.value;return(j.value||"").replace(ma,"")}return c}var E=i.isFunction(e);return this.each(function(C){var F=i(this),L=e;if(this.nodeType===1){if(E)L=e.call(this,C,F.val());if(typeof L==="number")L+="";if(i.isArray(L)&&Na.test(this.type))this.checked=i.inArray(F.val(),L)>=0;else if(i.nodeName(this,"select")){var R=i.makeArray(L);i("option",this).each(function(){this.selected=i.inArray(i(this).val(),R)>=0});if(!R.length)this.selectedIndex=
-1}else this.value=L}})}});i.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(e,j,k,p){if(!e||e.nodeType===3||e.nodeType===8)return c;if(p&&j in i.attrFn)return i(e)[j](k);p=e.nodeType!==1||!i.isXMLDoc(e);var o=k!==c;j=p&&i.props[j]||j;if(e.nodeType===1){var x=wa.test(j);if(j in e&&p&&!x){if(o){j==="type"&&bb.test(e.nodeName)&&e.parentNode&&i.error("type property can't be changed");e[j]=k}if(i.nodeName(e,"form")&&e.getAttributeNode(j))return e.getAttributeNode(j).nodeValue;
if(j==="tabIndex")return(j=e.getAttributeNode("tabIndex"))&&j.specified?j.value:cb.test(e.nodeName)||db.test(e.nodeName)&&e.href?0:c;return e[j]}if(!i.support.style&&p&&j==="style"){if(o)e.style.cssText=""+k;return e.style.cssText}o&&e.setAttribute(j,""+k);e=!i.support.hrefNormalized&&p&&x?e.getAttribute(j,2):e.getAttribute(j);return e===null?c:e}return i.style(e,j,k)}});var ta=/\.(.*)$/,eb=function(e){return e.replace(/[^\w\s\.\|`]/g,function(j){return"\\"+j})};i.event={add:function(e,j,k,p){if(!(e.nodeType===
3||e.nodeType===8)){if(e.setInterval&&e!==a&&!e.frameElement)e=a;var o,x;if(k.handler){o=k;k=o.handler}if(!k.guid)k.guid=i.guid++;if(x=i.data(e)){var y=x.events=x.events||{},E=x.handle;if(!E)x.handle=E=function(){return typeof i!=="undefined"&&!i.event.triggered?i.event.handle.apply(E.elem,arguments):c};E.elem=e;j=j.split(" ");for(var C,F=0,L;C=j[F++];){x=o?i.extend({},o):{handler:k,data:p};if(C.indexOf(".")>-1){L=C.split(".");C=L.shift();x.namespace=L.slice(0).sort().join(".")}else{L=[];x.namespace=
""}x.type=C;x.guid=k.guid;var R=y[C],W=i.event.special[C]||{};if(!R){R=y[C]=[];if(!W.setup||W.setup.call(e,p,L,E)===false)if(e.addEventListener)e.addEventListener(C,E,false);else e.attachEvent&&e.attachEvent("on"+C,E)}if(W.add){W.add.call(e,x);if(!x.handler.guid)x.handler.guid=k.guid}R.push(x);i.event.global[C]=true}e=null}}},global:{},remove:function(e,j,k,p){if(!(e.nodeType===3||e.nodeType===8)){var o,x=0,y,E,C,F,L,R,W=i.data(e),aa=W&&W.events;if(W&&aa){if(j&&j.type){k=j.handler;j=j.type}if(!j||
typeof j==="string"&&j.charAt(0)==="."){j=j||"";for(o in aa)i.event.remove(e,o+j)}else{for(j=j.split(" ");o=j[x++];){F=o;y=o.indexOf(".")<0;E=[];if(!y){E=o.split(".");o=E.shift();C=RegExp("(^|\\.)"+i.map(E.slice(0).sort(),eb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(L=aa[o])if(k){F=i.event.special[o]||{};for(X=p||0;X<L.length;X++){R=L[X];if(k.guid===R.guid){if(y||C.test(R.namespace)){p==null&&L.splice(X--,1);F.remove&&F.remove.call(e,R)}if(p!=null)break}}if(L.length===0||p!=null&&L.length===1){if(!F.teardown||
F.teardown.call(e,E)===false)Oa(e,o,W.handle);delete aa[o]}}else for(var X=0;X<L.length;X++){R=L[X];if(y||C.test(R.namespace)){i.event.remove(e,F,R.handler,X);L.splice(X--,1)}}}if(i.isEmptyObject(aa)){if(j=W.handle)j.elem=null;delete W.events;delete W.handle;i.isEmptyObject(W)&&i.removeData(e)}}}}},trigger:function(e,j,k,p){var o=e.type||e;if(!p){e=typeof e==="object"?e[ca]?e:i.extend(i.Event(o),e):i.Event(o);if(o.indexOf("!")>=0){e.type=o=o.slice(0,-1);e.exclusive=true}if(!k){e.stopPropagation();
i.event.global[o]&&i.each(i.cache,function(){this.events&&this.events[o]&&i.event.trigger(e,j,this.handle.elem)})}if(!k||k.nodeType===3||k.nodeType===8)return c;e.result=c;e.target=k;j=i.makeArray(j);j.unshift(e)}e.currentTarget=k;(p=i.data(k,"handle"))&&p.apply(k,j);p=k.parentNode||k.ownerDocument;try{if(!(k&&k.nodeName&&i.noData[k.nodeName.toLowerCase()]))if(k["on"+o]&&k["on"+o].apply(k,j)===false)e.result=false}catch(x){}if(!e.isPropagationStopped()&&p)i.event.trigger(e,j,p,true);else if(!e.isDefaultPrevented()){p=
e.target;var y,E=i.nodeName(p,"a")&&o==="click",C=i.event.special[o]||{};if((!C._default||C._default.call(k,e)===false)&&!E&&!(p&&p.nodeName&&i.noData[p.nodeName.toLowerCase()])){try{if(p[o]){if(y=p["on"+o])p["on"+o]=null;i.event.triggered=true;p[o]()}}catch(F){}if(y)p["on"+o]=y;i.event.triggered=false}}},handle:function(e){var j,k,p,o;e=arguments[0]=i.event.fix(e||a.event);e.currentTarget=this;j=e.type.indexOf(".")<0&&!e.exclusive;if(!j){k=e.type.split(".");e.type=k.shift();p=RegExp("(^|\\.)"+k.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}o=i.data(this,"events");k=o[e.type];if(o&&k){k=k.slice(0);o=0;for(var x=k.length;o<x;o++){var y=k[o];if(j||p.test(y.namespace)){e.handler=y.handler;e.data=y.data;e.handleObj=y;y=y.handler.apply(this,arguments);if(y!==c){e.result=y;if(y===false){e.preventDefault();e.stopPropagation()}}if(e.isImmediatePropagationStopped())break}}}return e.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(e){if(e[ca])return e;var j=e;e=i.Event(j);for(var k=this.props.length,p;k;){p=this.props[--k];e[p]=j[p]}if(!e.target)e.target=e.srcElement||A;if(e.target.nodeType===3)e.target=e.target.parentNode;if(!e.relatedTarget&&e.fromElement)e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement;if(e.pageX==null&&e.clientX!=null){j=A.documentElement;k=A.body;e.pageX=e.clientX+(j&&j.scrollLeft||k&&k.scrollLeft||0)-(j&&j.clientLeft||k&&k.clientLeft||0);e.pageY=e.clientY+(j&&j.scrollTop||
k&&k.scrollTop||0)-(j&&j.clientTop||k&&k.clientTop||0)}if(!e.which&&(e.charCode||e.charCode===0?e.charCode:e.keyCode))e.which=e.charCode||e.keyCode;if(!e.metaKey&&e.ctrlKey)e.metaKey=e.ctrlKey;if(!e.which&&e.button!==c)e.which=e.button&1?1:e.button&2?3:e.button&4?2:0;return e},guid:1E8,proxy:i.proxy,special:{ready:{setup:i.bindReady,teardown:i.noop},live:{add:function(e){i.event.add(this,e.origType,i.extend({},e,{handler:m}))},remove:function(e){var j=true,k=e.origType.replace(ta,"");i.each(i.data(this,
"events").live||[],function(){if(k===this.origType.replace(ta,""))return j=false});j&&i.event.remove(this,e.origType,m)}},beforeunload:{setup:function(e,j,k){if(this.setInterval)this.onbeforeunload=k;return false},teardown:function(e,j){if(this.onbeforeunload===j)this.onbeforeunload=null}}}};var Oa=A.removeEventListener?function(e,j,k){e.removeEventListener(j,k,false)}:function(e,j,k){e.detachEvent("on"+j,k)};i.Event=function(e){if(!this.preventDefault)return new i.Event(e);if(e&&e.type){this.originalEvent=
e;this.type=e.type}else this.type=e;this.timeStamp=g();this[ca]=true};i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var e=this.originalEvent;if(e){e.preventDefault&&e.preventDefault();e.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=n;var e=this.originalEvent;if(e){e.stopPropagation&&e.stopPropagation();e.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,
isImmediatePropagationStopped:h};var Pa=function(e){var j=e.relatedTarget;try{for(;j&&j!==this;)j=j.parentNode;if(j!==this){e.type=e.data;i.event.handle.apply(this,arguments)}}catch(k){}},Qa=function(e){e.type=e.data;i.event.handle.apply(this,arguments)};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,j){i.event.special[e]={setup:function(k){i.event.add(this,j,k&&k.selector?Qa:Pa,e)},teardown:function(k){i.event.remove(this,j,k&&k.selector?Qa:Pa)}}});if(!i.support.submitBubbles)i.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){i.event.add(this,"click.specialSubmit",function(e){var j=e.target,k=j.type;if((k==="submit"||k==="image")&&i(j).closest("form").length)return r("submit",this,arguments)});i.event.add(this,"keypress.specialSubmit",function(e){var j=e.target,k=j.type;if((k==="text"||k==="password")&&i(j).closest("form").length&&e.keyCode===13)return r("submit",this,arguments)})}else return false},teardown:function(){i.event.remove(this,".specialSubmit")}};if(!i.support.changeBubbles){var Ba=
/textarea|input|select/i,Ca,Ra=function(e){var j=e.type,k=e.value;if(j==="radio"||j==="checkbox")k=e.checked;else if(j==="select-multiple")k=e.selectedIndex>-1?i.map(e.options,function(p){return p.selected}).join("-"):"";else if(e.nodeName.toLowerCase()==="select")k=e.selectedIndex;return k},Da=function(e,j){var k=e.target,p,o;if(!(!Ba.test(k.nodeName)||k.readOnly)){p=i.data(k,"_change_data");o=Ra(k);if(e.type!=="focusout"||k.type!=="radio")i.data(k,"_change_data",o);if(!(p===c||o===p))if(p!=null||
o){e.type="change";return i.event.trigger(e,j,k)}}};i.event.special.change={filters:{focusout:Da,click:function(e){var j=e.target,k=j.type;if(k==="radio"||k==="checkbox"||j.nodeName.toLowerCase()==="select")return Da.call(this,e)},keydown:function(e){var j=e.target,k=j.type;if(e.keyCode===13&&j.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")return Da.call(this,e)},beforeactivate:function(e){e=e.target;i.data(e,"_change_data",Ra(e))}},setup:function(){if(this.type===
"file")return false;for(var e in Ca)i.event.add(this,e+".specialChange",Ca[e]);return Ba.test(this.nodeName)},teardown:function(){i.event.remove(this,".specialChange");return Ba.test(this.nodeName)}};Ca=i.event.special.change.filters}A.addEventListener&&i.each({focus:"focusin",blur:"focusout"},function(e,j){function k(p){p=i.event.fix(p);p.type=j;return i.event.handle.call(this,p)}i.event.special[j]={setup:function(){this.addEventListener(e,k,true)},teardown:function(){this.removeEventListener(e,
k,true)}}});i.each(["bind","one"],function(e,j){i.fn[j]=function(k,p,o){if(typeof k==="object"){for(var x in k)this[j](x,p,k[x],o);return this}if(i.isFunction(p)){o=p;p=c}var y=j==="one"?i.proxy(o,function(C){i(this).unbind(C,y);return o.apply(this,arguments)}):o;if(k==="unload"&&j!=="one")this.one(k,p,o);else{x=0;for(var E=this.length;x<E;x++)i.event.add(this[x],k,y,p)}return this}});i.fn.extend({unbind:function(e,j){if(typeof e==="object"&&!e.preventDefault)for(var k in e)this.unbind(k,e[k]);else{k=
0;for(var p=this.length;k<p;k++)i.event.remove(this[k],e,j)}return this},delegate:function(e,j,k,p){return this.live(j,k,p,e)},undelegate:function(e,j,k){return arguments.length===0?this.unbind("live"):this.die(j,null,k,e)},trigger:function(e,j){return this.each(function(){i.event.trigger(e,j,this)})},triggerHandler:function(e,j){if(this[0]){e=i.Event(e);e.preventDefault();e.stopPropagation();i.event.trigger(e,j,this[0]);return e.result}},toggle:function(e){for(var j=arguments,k=1;k<j.length;)i.proxy(e,
j[k++]);return this.click(i.proxy(e,function(p){var o=(i.data(this,"lastToggle"+e.guid)||0)%k;i.data(this,"lastToggle"+e.guid,o+1);p.preventDefault();return j[o].apply(this,arguments)||false}))},hover:function(e,j){return this.mouseenter(e).mouseleave(j||e)}});var Sa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};i.each(["live","die"],function(e,j){i.fn[j]=function(k,p,o,x){var y,E=0,C,F,L=x||this.selector,R=x?this:i(this.context);if(i.isFunction(p)){o=p;p=c}for(k=
(k||"").split(" ");(y=k[E++])!=null;){x=ta.exec(y);C="";if(x){C=x[0];y=y.replace(ta,"")}if(y==="hover")k.push("mouseenter"+C,"mouseleave"+C);else{F=y;if(y==="focus"||y==="blur"){k.push(Sa[y]+C);y+=C}else y=(Sa[y]||y)+C;j==="live"?R.each(function(){i.event.add(this,l(y,L),{data:p,selector:L,handler:o,origType:y,origHandler:o,preType:F})}):R.unbind(l(y,L),o)}}return this}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(e,j){i.fn[j]=function(k){return k?this.bind(j,k):this.trigger(j)};if(i.attrFn)i.attrFn[j]=true});a.attachEvent&&!a.addEventListener&&a.attachEvent("onunload",function(){for(var e in i.cache)if(i.cache[e].handle)try{i.event.remove(i.cache[e].handle.elem)}catch(j){}});(function(){function e(s){for(var v="",B,D=0;s[D];D++){B=s[D];if(B.nodeType===3||B.nodeType===4)v+=B.nodeValue;else if(B.nodeType!==8)v+=e(B.childNodes)}return v}function j(s,v,B,D,I,G){I=0;for(var Q=D.length;I<Q;I++){var O=D[I];
if(O){O=O[s];for(var T=false;O;){if(O.sizcache===B){T=D[O.sizset];break}if(O.nodeType===1&&!G){O.sizcache=B;O.sizset=I}if(O.nodeName.toLowerCase()===v){T=O;break}O=O[s]}D[I]=T}}}function k(s,v,B,D,I,G){I=0;for(var Q=D.length;I<Q;I++){var O=D[I];if(O){O=O[s];for(var T=false;O;){if(O.sizcache===B){T=D[O.sizset];break}if(O.nodeType===1){if(!G){O.sizcache=B;O.sizset=I}if(typeof v!=="string"){if(O===v){T=true;break}}else if(C.filter(v,[O]).length>0){T=O;break}}O=O[s]}D[I]=T}}}var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
o=0,x=Object.prototype.toString,y=false,E=true;[0,0].sort(function(){E=false;return 0});var C=function(s,v,B,D){B=B||[];var I=v=v||A;if(v.nodeType!==1&&v.nodeType!==9)return[];if(!s||typeof s!=="string")return B;for(var G=[],Q,O,T,xa,na=true,ra=S(v),oa=s;(p.exec(""),Q=p.exec(oa))!==null;){oa=Q[3];G.push(Q[1]);if(Q[2]){xa=Q[3];break}}if(G.length>1&&L.exec(s))if(G.length===2&&F.relative[G[0]])O=Ea(G[0]+G[1],v);else for(O=F.relative[G[0]]?[v]:C(G.shift(),v);G.length;){s=G.shift();if(F.relative[s])s+=
G.shift();O=Ea(s,O)}else{if(!D&&G.length>1&&v.nodeType===9&&!ra&&F.match.ID.test(G[0])&&!F.match.ID.test(G[G.length-1])){Q=C.find(G.shift(),v,ra);v=Q.expr?C.filter(Q.expr,Q.set)[0]:Q.set[0]}if(v){Q=D?{expr:G.pop(),set:W(D)}:C.find(G.pop(),G.length===1&&(G[0]==="~"||G[0]==="+")&&v.parentNode?v.parentNode:v,ra);O=Q.expr?C.filter(Q.expr,Q.set):Q.set;if(G.length>0)T=W(O);else na=false;for(;G.length;){var ea=G.pop();Q=ea;if(F.relative[ea])Q=G.pop();else ea="";if(Q==null)Q=v;F.relative[ea](T,Q,ra)}}else T=
[]}T||(T=O);T||C.error(ea||s);if(x.call(T)==="[object Array]")if(na)if(v&&v.nodeType===1)for(s=0;T[s]!=null;s++){if(T[s]&&(T[s]===true||T[s].nodeType===1&&fa(v,T[s])))B.push(O[s])}else for(s=0;T[s]!=null;s++)T[s]&&T[s].nodeType===1&&B.push(O[s]);else B.push.apply(B,T);else W(T,B);if(xa){C(xa,I,B,D);C.uniqueSort(B)}return B};C.uniqueSort=function(s){if(X){y=E;s.sort(X);if(y)for(var v=1;v<s.length;v++)s[v]===s[v-1]&&s.splice(v--,1)}return s};C.matches=function(s,v){return C(s,null,null,v)};C.find=function(s,
v,B){var D,I;if(!s)return[];for(var G=0,Q=F.order.length;G<Q;G++){var O=F.order[G];if(I=F.leftMatch[O].exec(s)){var T=I[1];I.splice(1,1);if(T.substr(T.length-1)!=="\\"){I[1]=(I[1]||"").replace(/\\/g,"");D=F.find[O](I,v,B);if(D!=null){s=s.replace(F.match[O],"");break}}}}D||(D=v.getElementsByTagName("*"));return{set:D,expr:s}};C.filter=function(s,v,B,D){for(var I=s,G=[],Q=v,O,T,xa=v&&v[0]&&S(v[0]);s&&v.length;){for(var na in F.filter)if((O=F.leftMatch[na].exec(s))!=null&&O[2]){var ra=F.filter[na],oa,
ea;ea=O[1];T=false;O.splice(1,1);if(ea.substr(ea.length-1)!=="\\"){if(Q===G)G=[];if(F.preFilter[na])if(O=F.preFilter[na](O,Q,B,G,D,xa)){if(O===true)continue}else T=oa=true;if(O)for(var ya=0;(ea=Q[ya])!=null;ya++)if(ea){oa=ra(ea,O,ya,Q);var Ta=D^!!oa;if(B&&oa!=null)if(Ta)T=true;else Q[ya]=false;else if(Ta){G.push(ea);T=true}}if(oa!==c){B||(Q=G);s=s.replace(F.match[na],"");if(!T)return[];break}}}if(s===I)if(T==null)C.error(s);else break;I=s}return Q};C.error=function(s){throw"Syntax error, unrecognized expression: "+
s;};var F=C.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(s){return s.getAttribute("href")}},relative:{"+":function(s,v){var B=typeof v==="string",D=B&&!/\W/.test(v);B=B&&!D;if(D)v=v.toLowerCase();D=0;for(var I=s.length,G;D<I;D++)if(G=s[D]){for(;(G=G.previousSibling)&&G.nodeType!==1;);s[D]=B||G&&G.nodeName.toLowerCase()===v?G||false:G===v}B&&C.filter(v,s,true)},">":function(s,v){var B=typeof v==="string";if(B&&!/\W/.test(v)){v=v.toLowerCase();for(var D=0,I=s.length;D<I;D++){var G=
s[D];if(G){B=G.parentNode;s[D]=B.nodeName.toLowerCase()===v?B:false}}}else{D=0;for(I=s.length;D<I;D++)if(G=s[D])s[D]=B?G.parentNode:G.parentNode===v;B&&C.filter(v,s,true)}},"":function(s,v,B){var D=o++,I=k;if(typeof v==="string"&&!/\W/.test(v)){var G=v=v.toLowerCase();I=j}I("parentNode",v,D,s,G,B)},"~":function(s,v,B){var D=o++,I=k;if(typeof v==="string"&&!/\W/.test(v)){var G=v=v.toLowerCase();I=j}I("previousSibling",v,D,s,G,B)}},find:{ID:function(s,v,B){if(typeof v.getElementById!=="undefined"&&
!B)return(s=v.getElementById(s[1]))?[s]:[]},NAME:function(s,v){if(typeof v.getElementsByName!=="undefined"){var B=[];v=v.getElementsByName(s[1]);for(var D=0,I=v.length;D<I;D++)v[D].getAttribute("name")===s[1]&&B.push(v[D]);return B.length===0?null:B}},TAG:function(s,v){return v.getElementsByTagName(s[1])}},preFilter:{CLASS:function(s,v,B,D,I,G){s=" "+s[1].replace(/\\/g,"")+" ";if(G)return s;G=0;for(var Q;(Q=v[G])!=null;G++)if(Q)if(I^(Q.className&&(" "+Q.className+" ").replace(/[\t\n]/g," ").indexOf(s)>=
0))B||D.push(Q);else if(B)v[G]=false;return false},ID:function(s){return s[1].replace(/\\/g,"")},TAG:function(s){return s[1].toLowerCase()},CHILD:function(s){if(s[1]==="nth"){var v=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]==="even"&&"2n"||s[2]==="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=v[1]+(v[2]||1)-0;s[3]=v[3]-0}s[0]=o++;return s},ATTR:function(s,v,B,D,I,G){v=s[1].replace(/\\/g,"");if(!G&&F.attrMap[v])s[1]=F.attrMap[v];if(s[2]==="~=")s[4]=" "+s[4]+" ";return s},PSEUDO:function(s,v,B,D,
I){if(s[1]==="not")if((p.exec(s[3])||"").length>1||/^\w/.test(s[3]))s[3]=C(s[3],null,null,v);else{s=C.filter(s[3],v,B,true^I);B||D.push.apply(D,s);return false}else if(F.match.POS.test(s[0])||F.match.CHILD.test(s[0]))return true;return s},POS:function(s){s.unshift(true);return s}},filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return!!s.firstChild},
empty:function(s){return!s.firstChild},has:function(s,v,B){return!!C(B[3],s).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){return"text"===s.type},radio:function(s){return"radio"===s.type},checkbox:function(s){return"checkbox"===s.type},file:function(s){return"file"===s.type},password:function(s){return"password"===s.type},submit:function(s){return"submit"===s.type},image:function(s){return"image"===s.type},reset:function(s){return"reset"===s.type},button:function(s){return"button"===
s.type||s.nodeName.toLowerCase()==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)}},setFilters:{first:function(s,v){return v===0},last:function(s,v,B,D){return v===D.length-1},even:function(s,v){return v%2===0},odd:function(s,v){return v%2===1},lt:function(s,v,B){return v<B[3]-0},gt:function(s,v,B){return v>B[3]-0},nth:function(s,v,B){return B[3]-0===v},eq:function(s,v,B){return B[3]-0===v}},filter:{PSEUDO:function(s,v,B,D){var I=v[1],G=F.filters[I];if(G)return G(s,
B,v,D);else if(I==="contains")return(s.textContent||s.innerText||e([s])||"").indexOf(v[3])>=0;else if(I==="not"){v=v[3];B=0;for(D=v.length;B<D;B++)if(v[B]===s)return false;return true}else C.error("Syntax error, unrecognized expression: "+I)},CHILD:function(s,v){var B=v[1],D=s;switch(B){case "only":case "first":for(;D=D.previousSibling;)if(D.nodeType===1)return false;if(B==="first")return true;D=s;case "last":for(;D=D.nextSibling;)if(D.nodeType===1)return false;return true;case "nth":B=v[2];var I=
v[3];if(B===1&&I===0)return true;v=v[0];var G=s.parentNode;if(G&&(G.sizcache!==v||!s.nodeIndex)){var Q=0;for(D=G.firstChild;D;D=D.nextSibling)if(D.nodeType===1)D.nodeIndex=++Q;G.sizcache=v}s=s.nodeIndex-I;return B===0?s===0:s%B===0&&s/B>=0}},ID:function(s,v){return s.nodeType===1&&s.getAttribute("id")===v},TAG:function(s,v){return v==="*"&&s.nodeType===1||s.nodeName.toLowerCase()===v},CLASS:function(s,v){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(v)>-1},ATTR:function(s,v){var B=
v[1];s=F.attrHandle[B]?F.attrHandle[B](s):s[B]!=null?s[B]:s.getAttribute(B);B=s+"";var D=v[2];v=v[4];return s==null?D==="!=":D==="="?B===v:D==="*="?B.indexOf(v)>=0:D==="~="?(" "+B+" ").indexOf(v)>=0:!v?B&&s!==false:D==="!="?B!==v:D==="^="?B.indexOf(v)===0:D==="$="?B.substr(B.length-v.length)===v:D==="|="?B===v||B.substr(0,v.length+1)===v+"-":false},POS:function(s,v,B,D){var I=F.setFilters[v[2]];if(I)return I(s,B,v,D)}}},L=F.match.POS,R;for(R in F.match){F.match[R]=RegExp(F.match[R].source+/(?![^\[]*\])(?![^\(]*\))/.source);
F.leftMatch[R]=RegExp(/(^(?:.|\r|\n)*?)/.source+F.match[R].source.replace(/\\(\d+)/g,function(s,v){return"\\"+(v-0+1)}))}var W=function(s,v){s=Array.prototype.slice.call(s,0);if(v){v.push.apply(v,s);return v}return s};try{Array.prototype.slice.call(A.documentElement.childNodes,0)}catch(aa){W=function(s,v){v=v||[];if(x.call(s)==="[object Array]")Array.prototype.push.apply(v,s);else if(typeof s.length==="number")for(var B=0,D=s.length;B<D;B++)v.push(s[B]);else for(B=0;s[B];B++)v.push(s[B]);return v}}var X;
if(A.documentElement.compareDocumentPosition)X=function(s,v){if(!s.compareDocumentPosition||!v.compareDocumentPosition){if(s==v)y=true;return s.compareDocumentPosition?-1:1}s=s.compareDocumentPosition(v)&4?-1:s===v?0:1;if(s===0)y=true;return s};else if("sourceIndex"in A.documentElement)X=function(s,v){if(!s.sourceIndex||!v.sourceIndex){if(s==v)y=true;return s.sourceIndex?-1:1}s=s.sourceIndex-v.sourceIndex;if(s===0)y=true;return s};else if(A.createRange)X=function(s,v){if(!s.ownerDocument||!v.ownerDocument){if(s==
v)y=true;return s.ownerDocument?-1:1}var B=s.ownerDocument.createRange(),D=v.ownerDocument.createRange();B.setStart(s,0);B.setEnd(s,0);D.setStart(v,0);D.setEnd(v,0);s=B.compareBoundaryPoints(Range.START_TO_END,D);if(s===0)y=true;return s};(function(){var s=A.createElement("div"),v="script"+(new Date).getTime();s.innerHTML="<a name='"+v+"'/>";var B=A.documentElement;B.insertBefore(s,B.firstChild);if(A.getElementById(v)){F.find.ID=function(D,I,G){if(typeof I.getElementById!=="undefined"&&!G)return(I=
I.getElementById(D[1]))?I.id===D[1]||typeof I.getAttributeNode!=="undefined"&&I.getAttributeNode("id").nodeValue===D[1]?[I]:c:[]};F.filter.ID=function(D,I){var G=typeof D.getAttributeNode!=="undefined"&&D.getAttributeNode("id");return D.nodeType===1&&G&&G.nodeValue===I}}B.removeChild(s);B=s=null})();(function(){var s=A.createElement("div");s.appendChild(A.createComment(""));if(s.getElementsByTagName("*").length>0)F.find.TAG=function(v,B){B=B.getElementsByTagName(v[1]);if(v[1]==="*"){v=[];for(var D=
0;B[D];D++)B[D].nodeType===1&&v.push(B[D]);B=v}return B};s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#")F.attrHandle.href=function(v){return v.getAttribute("href",2)};s=null})();A.querySelectorAll&&function(){var s=C,v=A.createElement("div");v.innerHTML="<p class='TEST'></p>";if(!(v.querySelectorAll&&v.querySelectorAll(".TEST").length===0)){C=function(D,I,G,Q){I=I||A;if(!Q&&I.nodeType===9&&!S(I))try{return W(I.querySelectorAll(D),
G)}catch(O){}return s(D,I,G,Q)};for(var B in s)C[B]=s[B];v=null}}();(function(){var s=A.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){F.order.splice(1,0,"CLASS");F.find.CLASS=function(v,B,D){if(typeof B.getElementsByClassName!=="undefined"&&!D)return B.getElementsByClassName(v[1])};s=null}}})();var fa=A.compareDocumentPosition?
function(s,v){return!!(s.compareDocumentPosition(v)&16)}:function(s,v){return s!==v&&(s.contains?s.contains(v):true)},S=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false},Ea=function(s,v){var B=[],D="",I;for(v=v.nodeType?[v]:v;I=F.match.PSEUDO.exec(s);){D+=I[0];s=s.replace(F.match.PSEUDO,"")}s=F.relative[s]?s+"*":s;I=0;for(var G=v.length;I<G;I++)C(s,v[I],B);return C.filter(D,B)};i.find=C;i.expr=C.selectors;i.expr[":"]=i.expr.filters;i.unique=C.uniqueSort;i.text=
e;i.isXMLDoc=S;i.contains=fa})();var fb=/Until$/,gb=/^(?:parents|prevUntil|prevAll)/,hb=/,/;Y=Array.prototype.slice;var Ua=function(e,j,k){if(i.isFunction(j))return i.grep(e,function(o,x){return!!j.call(o,x,o)===k});else if(j.nodeType)return i.grep(e,function(o){return o===j===k});else if(typeof j==="string"){var p=i.grep(e,function(o){return o.nodeType===1});if(M.test(j))return i.filter(j,p,!k);else j=i.filter(j,p)}return i.grep(e,function(o){return i.inArray(o,j)>=0===k})};i.fn.extend({find:function(e){for(var j=
this.pushStack("","find",e),k=0,p=0,o=this.length;p<o;p++){k=j.length;i.find(e,this[p],j);if(p>0)for(var x=k;x<j.length;x++)for(var y=0;y<k;y++)if(j[y]===j[x]){j.splice(x--,1);break}}return j},has:function(e){var j=i(e);return this.filter(function(){for(var k=0,p=j.length;k<p;k++)if(i.contains(this,j[k]))return true})},not:function(e){return this.pushStack(Ua(this,e,false),"not",e)},filter:function(e){return this.pushStack(Ua(this,e,true),"filter",e)},is:function(e){return!!e&&i.filter(e,this).length>
0},closest:function(e,j){if(i.isArray(e)){var k=[],p=this[0],o,x={},y;if(p&&e.length){o=0;for(var E=e.length;o<E;o++){y=e[o];x[y]||(x[y]=i.expr.match.POS.test(y)?i(y,j||this.context):y)}for(;p&&p.ownerDocument&&p!==j;){for(y in x){o=x[y];if(o.jquery?o.index(p)>-1:i(p).is(o)){k.push({selector:y,elem:p});delete x[y]}}p=p.parentNode}}return k}var C=i.expr.match.POS.test(e)?i(e,j||this.context):null;return this.map(function(F,L){for(;L&&L.ownerDocument&&L!==j;){if(C?C.index(L)>-1:i(L).is(e))return L;
L=L.parentNode}return null})},index:function(e){if(!e||typeof e==="string")return i.inArray(this[0],e?i(e):this.parent().children());return i.inArray(e.jquery?e[0]:e,this)},add:function(e,j){e=typeof e==="string"?i(e,j||this.context):i.makeArray(e);j=i.merge(this.get(),e);return this.pushStack(!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11||!j[0]||!j[0].parentNode||j[0].parentNode.nodeType===11?j:i.unique(j))},andSelf:function(){return this.add(this.prevObject)}});i.each({parent:function(e){return(e=
e.parentNode)&&e.nodeType!==11?e:null},parents:function(e){return i.dir(e,"parentNode")},parentsUntil:function(e,j,k){return i.dir(e,"parentNode",k)},next:function(e){return i.nth(e,2,"nextSibling")},prev:function(e){return i.nth(e,2,"previousSibling")},nextAll:function(e){return i.dir(e,"nextSibling")},prevAll:function(e){return i.dir(e,"previousSibling")},nextUntil:function(e,j,k){return i.dir(e,"nextSibling",k)},prevUntil:function(e,j,k){return i.dir(e,"previousSibling",k)},siblings:function(e){return i.sibling(e.parentNode.firstChild,
e)},children:function(e){return i.sibling(e.firstChild)},contents:function(e){return i.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:i.makeArray(e.childNodes)}},function(e,j){i.fn[e]=function(k,p){var o=i.map(this,j,k);fb.test(e)||(p=k);if(p&&typeof p==="string")o=i.filter(p,o);o=this.length>1?i.unique(o):o;if((this.length>1||hb.test(p))&&gb.test(e))o=o.reverse();return this.pushStack(o,e,Y.call(arguments).join(","))}});i.extend({filter:function(e,j,k){if(k)e=":not("+e+")";return i.find.matches(e,
j)},dir:function(e,j,k){var p=[];for(e=e[j];e&&e.nodeType!==9&&(k===c||e.nodeType!==1||!i(e).is(k));){e.nodeType===1&&p.push(e);e=e[j]}return p},nth:function(e,j,k){j=j||1;for(var p=0;e;e=e[k])if(e.nodeType===1&&++p===j)break;return e},sibling:function(e,j){for(var k=[];e;e=e.nextSibling)e.nodeType===1&&e!==j&&k.push(e);return k}});var Va=/ jQuery\d+="(?:\d+|null)"/g,za=/^\s+/,Wa=/(<([\w:]+)[^>]*?)\/>/g,ib=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Xa=/<([\w:]+)/,jb=/<tbody/i,kb=/<|&#?\w+;/,
Ka=/<script|<object|<embed|<option|<style/i,La=/checked\s*(?:[^=]|=\s*.checked.)/i,Ya=function(e,j,k){return ib.test(k)?e:j+"></"+k+">"},ga={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ga.optgroup=ga.option;ga.tbody=
ga.tfoot=ga.colgroup=ga.caption=ga.thead;ga.th=ga.td;if(!i.support.htmlSerialize)ga._default=[1,"div<div>","</div>"];i.fn.extend({text:function(e){if(i.isFunction(e))return this.each(function(j){var k=i(this);k.text(e.call(this,j,k.text()))});if(typeof e!=="object"&&e!==c)return this.empty().append((this[0]&&this[0].ownerDocument||A).createTextNode(e));return i.text(this)},wrapAll:function(e){if(i.isFunction(e))return this.each(function(k){i(this).wrapAll(e.call(this,k))});if(this[0]){var j=i(e,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&j.insertBefore(this[0]);j.map(function(){for(var k=this;k.firstChild&&k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(e){if(i.isFunction(e))return this.each(function(j){i(this).wrapInner(e.call(this,j))});return this.each(function(){var j=i(this),k=j.contents();k.length?k.wrapAll(e):j.append(e)})},wrap:function(e){return this.each(function(){i(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,
"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(j){this.parentNode.insertBefore(j,this)});else if(arguments.length){var e=i(arguments[0]);e.push.apply(e,this.toArray());
return this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(j){this.parentNode.insertBefore(j,this.nextSibling)});else if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,i(arguments[0]).toArray());return e}},remove:function(e,j){for(var k=0,p;(p=this[k])!=null;k++)if(!e||i.filter(e,[p]).length){if(!j&&p.nodeType===1){i.cleanData(p.getElementsByTagName("*"));i.cleanData([p])}p.parentNode&&
p.parentNode.removeChild(p)}return this},empty:function(){for(var e=0,j;(j=this[e])!=null;e++)for(j.nodeType===1&&i.cleanData(j.getElementsByTagName("*"));j.firstChild;)j.removeChild(j.firstChild);return this},clone:function(e){var j=this.map(function(){if(!i.support.noCloneEvent&&!i.isXMLDoc(this)){var k=this.outerHTML,p=this.ownerDocument;if(!k){k=p.createElement("div");k.appendChild(this.cloneNode(true));k=k.innerHTML}return i.clean([k.replace(Va,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(za,
"")],p)[0]}else return this.cloneNode(true)});if(e===true){q(this,j);q(this.find("*"),j.find("*"))}return j},html:function(e){if(e===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Va,""):null;else if(typeof e==="string"&&!Ka.test(e)&&(i.support.leadingWhitespace||!za.test(e))&&!ga[(Xa.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Wa,Ya);try{for(var j=0,k=this.length;j<k;j++)if(this[j].nodeType===1){i.cleanData(this[j].getElementsByTagName("*"));this[j].innerHTML=e}}catch(p){this.empty().append(e)}}else i.isFunction(e)?
this.each(function(o){var x=i(this),y=x.html();x.empty().append(function(){return e.call(this,o,y)})}):this.empty().append(e);return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(i.isFunction(e))return this.each(function(j){var k=i(this),p=k.html();k.replaceWith(e.call(this,j,p))});if(typeof e!=="string")e=i(e).detach();return this.each(function(){var j=this.nextSibling,k=this.parentNode;i(this).remove();j?i(j).before(e):i(k).append(e)})}else return this.pushStack(i(i.isFunction(e)?
e():e),"replaceWith",e)},detach:function(e){return this.remove(e,true)},domManip:function(e,j,k){var p,o,x=e[0],y=[],E;if(!i.support.checkClone&&arguments.length===3&&typeof x==="string"&&La.test(x))return this.each(function(){i(this).domManip(e,j,k,true)});if(i.isFunction(x))return this.each(function(F){var L=i(this);e[0]=x.call(this,F,j?L.html():c);L.domManip(e,j,k)});if(this[0]){p=x&&x.parentNode;p=i.support.parentNode&&p&&p.nodeType===11&&p.childNodes.length===this.length?{fragment:p}:u(e,this,
y);E=p.fragment;if(o=E.childNodes.length===1?E=E.firstChild:E.firstChild){j=j&&i.nodeName(o,"tr");o=0;for(var C=this.length;o<C;o++)k.call(j?i.nodeName(this[o],"table")?this[o].getElementsByTagName("tbody")[0]||this[o].appendChild(this[o].ownerDocument.createElement("tbody")):this[o]:this[o],o>0||p.cacheable||this.length>1?E.cloneNode(true):E)}y.length&&i.each(y,f)}return this}});i.fragments={};i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(e,j){i.fn[e]=function(k){var p=[];k=i(k);var o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&k.length===1){k[j](this[0]);return this}else{o=0;for(var x=k.length;o<x;o++){var y=(o>0?this.clone(true):this).get();i.fn[j].apply(i(k[o]),y);p=p.concat(y)}return this.pushStack(p,e,k.selector)}}});i.extend({clean:function(e,j,k,p){j=j||A;if(typeof j.createElement==="undefined")j=j.ownerDocument||j[0]&&j[0].ownerDocument||A;for(var o=[],x=0,y;(y=e[x])!=null;x++){if(typeof y===
"number")y+="";if(y){if(typeof y==="string"&&!kb.test(y))y=j.createTextNode(y);else if(typeof y==="string"){y=y.replace(Wa,Ya);var E=(Xa.exec(y)||["",""])[1].toLowerCase(),C=ga[E]||ga._default,F=C[0],L=j.createElement("div");for(L.innerHTML=C[1]+y+C[2];F--;)L=L.lastChild;if(!i.support.tbody){F=jb.test(y);E=E==="table"&&!F?L.firstChild&&L.firstChild.childNodes:C[1]==="<table>"&&!F?L.childNodes:[];for(C=E.length-1;C>=0;--C)i.nodeName(E[C],"tbody")&&!E[C].childNodes.length&&E[C].parentNode.removeChild(E[C])}!i.support.leadingWhitespace&&
za.test(y)&&L.insertBefore(j.createTextNode(za.exec(y)[0]),L.firstChild);y=L.childNodes}if(y.nodeType)o.push(y);else o=i.merge(o,y)}}if(k)for(x=0;o[x];x++)if(p&&i.nodeName(o[x],"script")&&(!o[x].type||o[x].type.toLowerCase()==="text/javascript"))p.push(o[x].parentNode?o[x].parentNode.removeChild(o[x]):o[x]);else{o[x].nodeType===1&&o.splice.apply(o,[x+1,0].concat(i.makeArray(o[x].getElementsByTagName("script"))));k.appendChild(o[x])}return o},cleanData:function(e){for(var j,k,p=i.cache,o=i.event.special,
x=i.support.deleteExpando,y=0,E;(E=e[y])!=null;y++)if(k=E[i.expando]){j=p[k];if(j.events)for(var C in j.events)o[C]?i.event.remove(E,C):Oa(E,C,j.handle);if(x)delete E[i.expando];else E.removeAttribute&&E.removeAttribute(i.expando);delete p[k]}}});var lb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Za=/alpha\([^)]*\)/,$a=/opacity=([^)]*)/,Fa=/float/i,Ga=/-([a-z])/ig,mb=/([A-Z])/g,nb=/^-?\d+(?:px)?$/i,ob=/^-?\d/,pb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],
rb=["Top","Bottom"],sb=A.defaultView&&A.defaultView.getComputedStyle,ab=i.support.cssFloat?"cssFloat":"styleFloat",Ha=function(e,j){return j.toUpperCase()};i.fn.css=function(e,j){return b(this,e,j,true,function(k,p,o){if(o===c)return i.curCSS(k,p);if(typeof o==="number"&&!lb.test(p))o+="px";i.style(k,p,o)})};i.extend({style:function(e,j,k){if(!e||e.nodeType===3||e.nodeType===8)return c;if((j==="width"||j==="height")&&parseFloat(k)<0)k=c;var p=e.style||e,o=k!==c;if(!i.support.opacity&&j==="opacity"){if(o){p.zoom=
1;j=parseInt(k,10)+""==="NaN"?"":"alpha(opacity="+k*100+")";e=p.filter||i.curCSS(e,"filter")||"";p.filter=Za.test(e)?e.replace(Za,j):j}return p.filter&&p.filter.indexOf("opacity=")>=0?parseFloat($a.exec(p.filter)[1])/100+"":""}if(Fa.test(j))j=ab;j=j.replace(Ga,Ha);if(o)p[j]=k;return p[j]},css:function(e,j,k,p){if(j==="width"||j==="height"){var o,x=j==="width"?qb:rb;k=function(){o=j==="width"?e.offsetWidth:e.offsetHeight;p!=="border"&&i.each(x,function(){p||(o-=parseFloat(i.curCSS(e,"padding"+this,
true))||0);if(p==="margin")o+=parseFloat(i.curCSS(e,"margin"+this,true))||0;else o-=parseFloat(i.curCSS(e,"border"+this+"Width",true))||0})};e.offsetWidth!==0?k():i.swap(e,pb,k);return Math.max(0,Math.round(o))}return i.curCSS(e,j,k)},curCSS:function(e,j,k){var p,o=e.style;if(!i.support.opacity&&j==="opacity"&&e.currentStyle){p=$a.test(e.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return p===""?"1":p}if(Fa.test(j))j=ab;if(!k&&o&&o[j])p=o[j];else if(sb){if(Fa.test(j))j="float";j=j.replace(mb,
"-$1").toLowerCase();o=e.ownerDocument.defaultView;if(!o)return null;if(e=o.getComputedStyle(e,null))p=e.getPropertyValue(j);if(j==="opacity"&&p==="")p="1"}else if(e.currentStyle){k=j.replace(Ga,Ha);p=e.currentStyle[j]||e.currentStyle[k];if(!nb.test(p)&&ob.test(p)){j=o.left;var x=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;o.left=k==="fontSize"?"1em":p||0;p=o.pixelLeft+"px";o.left=j;e.runtimeStyle.left=x}}return p},swap:function(e,j,k){var p={},o;for(o in j){p[o]=e.style[o];e.style[o]=
j[o]}k.call(e);for(o in j)e.style[o]=p[o]}});if(i.expr&&i.expr.filters){i.expr.filters.hidden=function(e){var j=e.offsetWidth,k=e.offsetHeight,p=e.nodeName.toLowerCase()==="tr";return j===0&&k===0&&!p?true:j>0&&k>0&&!p?false:i.curCSS(e,"display")==="none"};i.expr.filters.visible=function(e){return!i.expr.filters.hidden(e)}}var tb=g(),ub=/<script(.|\s)*?\/script>/gi,vb=/select|textarea/i,wb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,sa=/=\?(&|$)/,
Ia=/\?/,xb=/(\?|&)_=.*?(&|$)/,yb=/^(\w+:)?\/\/([^\/?#]+)/,zb=/%20/g,Ab=i.fn.load;i.fn.extend({load:function(e,j,k){if(typeof e!=="string")return Ab.call(this,e);else if(!this.length)return this;var p=e.indexOf(" ");if(p>=0){var o=e.slice(p,e.length);e=e.slice(0,p)}p="GET";if(j)if(i.isFunction(j)){k=j;j=null}else if(typeof j==="object"){j=i.param(j,i.ajaxSettings.traditional);p="POST"}var x=this;i.ajax({url:e,type:p,dataType:"html",data:j,complete:function(y,E){if(E==="success"||E==="notmodified")x.html(o?
i("<div />").append(y.responseText.replace(ub,"")).find(o):y.responseText);k&&x.each(k,[y.responseText,E,y])}});return this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vb.test(this.nodeName)||wb.test(this.type))}).map(function(e,j){e=i(this).val();return e==null?null:i.isArray(e)?i.map(e,function(k){return{name:j.name,
value:k}}):{name:j.name,value:e}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,j){i.fn[j]=function(k){return this.bind(j,k)}});i.extend({get:function(e,j,k,p){if(i.isFunction(j)){p=p||k;k=j;j=null}return i.ajax({type:"GET",url:e,data:j,success:k,dataType:p})},getScript:function(e,j){return i.get(e,null,j,"script")},getJSON:function(e,j,k){return i.get(e,j,k,"json")},post:function(e,j,k,p){if(i.isFunction(j)){p=p||k;k=j;j={}}return i.ajax({type:"POST",
url:e,data:j,success:k,dataType:p})},ajaxSetup:function(e){i.extend(i.ajaxSettings,e)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:a.XMLHttpRequest&&(a.location.protocol!=="file:"||!a.ActiveXObject)?function(){return new a.XMLHttpRequest}:function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(e){function j(){o.success&&o.success.call(C,E,y,S);o.global&&p("ajaxSuccess",[S,o])}function k(){o.complete&&o.complete.call(C,S,y);o.global&&p("ajaxComplete",[S,o]);o.global&&!--i.active&&i.event.trigger("ajaxStop")}function p(I,G){(o.context?i(o.context):i.event).trigger(I,G)}var o=i.extend(true,{},i.ajaxSettings,e),x,y,E,C=e&&e.context||o,F=o.type.toUpperCase();if(o.data&&o.processData&&
typeof o.data!=="string")o.data=i.param(o.data,o.traditional);if(o.dataType==="jsonp"){if(F==="GET")sa.test(o.url)||(o.url+=(Ia.test(o.url)?"&":"?")+(o.jsonp||"callback")+"=?");else if(!o.data||!sa.test(o.data))o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?";o.dataType="json"}if(o.dataType==="json"&&(o.data&&sa.test(o.data)||sa.test(o.url))){x=o.jsonpCallback||"jsonp"+tb++;if(o.data)o.data=(o.data+"").replace(sa,"="+x+"$1");o.url=o.url.replace(sa,"="+x+"$1");o.dataType="script";a[x]=a[x]||
function(I){E=I;j();k();a[x]=c;try{delete a[x]}catch(G){}W&&W.removeChild(aa)}}if(o.dataType==="script"&&o.cache===null)o.cache=false;if(o.cache===false&&F==="GET"){var L=g(),R=o.url.replace(xb,"$1_="+L+"$2");o.url=R+(R===o.url?(Ia.test(o.url)?"&":"?")+"_="+L:"")}if(o.data&&F==="GET")o.url+=(Ia.test(o.url)?"&":"?")+o.data;o.global&&!i.active++&&i.event.trigger("ajaxStart");L=(L=yb.exec(o.url))&&(L[1]&&L[1]!==location.protocol||L[2]!==location.host);if(o.dataType==="script"&&F==="GET"&&L){var W=A.getElementsByTagName("head")[0]||
A.documentElement,aa=A.createElement("script");aa.src=o.url;if(o.scriptCharset)aa.charset=o.scriptCharset;if(!x){var X=false;aa.onload=aa.onreadystatechange=function(){if(!X&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){X=true;j();k();aa.onload=aa.onreadystatechange=null;W&&aa.parentNode&&W.removeChild(aa)}}}W.insertBefore(aa,W.firstChild);return c}var fa=false,S=o.xhr();if(S){o.username?S.open(F,o.url,o.async,o.username,o.password):S.open(F,o.url,o.async);try{if(o.data||
e&&e.contentType)S.setRequestHeader("Content-Type",o.contentType);if(o.ifModified){i.lastModified[o.url]&&S.setRequestHeader("If-Modified-Since",i.lastModified[o.url]);i.etag[o.url]&&S.setRequestHeader("If-None-Match",i.etag[o.url])}L||S.setRequestHeader("X-Requested-With","XMLHttpRequest");S.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default)}catch(Ea){}if(o.beforeSend&&o.beforeSend.call(C,S,o)===false){o.global&&!--i.active&&i.event.trigger("ajaxStop");
S.abort();return false}o.global&&p("ajaxSend",[S,o]);var s=S.onreadystatechange=function(I){if(!S||S.readyState===0||I==="abort"){fa||k();fa=true;if(S)S.onreadystatechange=i.noop}else if(!fa&&S&&(S.readyState===4||I==="timeout")){fa=true;S.onreadystatechange=i.noop;y=I==="timeout"?"timeout":!i.httpSuccess(S)?"error":o.ifModified&&i.httpNotModified(S,o.url)?"notmodified":"success";var G;if(y==="success")try{E=i.httpData(S,o.dataType,o)}catch(Q){y="parsererror";G=Q}if(y==="success"||y==="notmodified")x||
j();else i.handleError(o,S,y,G);k();I==="timeout"&&S.abort();if(o.async)S=null}};try{var v=S.abort;S.abort=function(){S&&v.call(S);s("abort")}}catch(B){}o.async&&o.timeout>0&&setTimeout(function(){S&&!fa&&s("timeout")},o.timeout);try{S.send(F==="POST"||F==="PUT"||F==="DELETE"?o.data:null)}catch(D){i.handleError(o,S,null,D);k()}o.async||s();return S}},handleError:function(e,j,k,p){if(e.error)e.error.call(e.context||e,j,k,p);if(e.global)(e.context?i(e.context):i.event).trigger("ajaxError",[j,e,p])},
active:0,httpSuccess:function(e){try{return!e.status&&location.protocol==="file:"||e.status>=200&&e.status<300||e.status===304||e.status===1223||e.status===0}catch(j){}return false},httpNotModified:function(e,j){var k=e.getResponseHeader("Last-Modified"),p=e.getResponseHeader("Etag");if(k)i.lastModified[j]=k;if(p)i.etag[j]=p;return e.status===304||e.status===0},httpData:function(e,j,k){var p=e.getResponseHeader("content-type")||"",o=j==="xml"||!j&&p.indexOf("xml")>=0;e=o?e.responseXML:e.responseText;
o&&e.documentElement.nodeName==="parsererror"&&i.error("parsererror");if(k&&k.dataFilter)e=k.dataFilter(e,j);if(typeof e==="string")if(j==="json"||!j&&p.indexOf("json")>=0)e=i.parseJSON(e);else if(j==="script"||!j&&p.indexOf("javascript")>=0)i.globalEval(e);return e},param:function(e,j){function k(y,E){if(i.isArray(E))i.each(E,function(C,F){j||/\[\]$/.test(y)?p(y,F):k(y+"["+(typeof F==="object"||i.isArray(F)?C:"")+"]",F)});else!j&&E!=null&&typeof E==="object"?i.each(E,function(C,F){k(y+"["+C+"]",
F)}):p(y,E)}function p(y,E){E=i.isFunction(E)?E():E;o[o.length]=encodeURIComponent(y)+"="+encodeURIComponent(E)}var o=[];if(j===c)j=i.ajaxSettings.traditional;if(i.isArray(e)||e.jquery)i.each(e,function(){p(this.name,this.value)});else for(var x in e)k(x,e[x]);return o.join("&").replace(zb,"+")}});var Ja={},Bb=/toggle|show|hide/,Cb=/^([+-]=)?([\d+-.]+)(.*)$/,Aa,Ma=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];i.fn.extend({show:function(e,j){if(e||e===0)return this.animate(w("show",3),e,j);else{e=0;for(j=this.length;e<j;e++){var k=i.data(this[e],"olddisplay");this[e].style.display=k||"";if(i.css(this[e],"display")==="none"){k=this[e].nodeName;var p;if(Ja[k])p=Ja[k];else{var o=i("<"+k+" />").appendTo("body");p=o.css("display");if(p==="none")p="block";o.remove();Ja[k]=p}i.data(this[e],"olddisplay",p)}}e=0;for(j=this.length;e<j;e++)this[e].style.display=i.data(this[e],"olddisplay")||"";return this}},
hide:function(e,j){if(e||e===0)return this.animate(w("hide",3),e,j);else{e=0;for(j=this.length;e<j;e++){var k=i.data(this[e],"olddisplay");!k&&k!=="none"&&i.data(this[e],"olddisplay",i.css(this[e],"display"))}e=0;for(j=this.length;e<j;e++)this[e].style.display="none";return this}},_toggle:i.fn.toggle,toggle:function(e,j){var k=typeof e==="boolean";if(i.isFunction(e)&&i.isFunction(j))this._toggle.apply(this,arguments);else e==null||k?this.each(function(){var p=k?e:i(this).is(":hidden");i(this)[p?"show":
"hide"]()}):this.animate(w("toggle",3),e,j);return this},fadeTo:function(e,j,k){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:j},e,k)},animate:function(e,j,k,p){var o=i.speed(j,k,p);if(i.isEmptyObject(e))return this.each(o.complete);return this[o.queue===false?"each":"queue"](function(){var x=i.extend({},o),y,E=this.nodeType===1&&i(this).is(":hidden"),C=this;for(y in e){var F=y.replace(Ga,Ha);if(y!==F){e[F]=e[y];delete e[y];y=F}if(e[y]==="hide"&&E||e[y]==="show"&&!E)return x.complete.call(this);
if((y==="height"||y==="width")&&this.style){x.display=i.css(this,"display");x.overflow=this.style.overflow}if(i.isArray(e[y])){(x.specialEasing=x.specialEasing||{})[y]=e[y][1];e[y]=e[y][0]}}if(x.overflow!=null)this.style.overflow="hidden";x.curAnim=i.extend({},e);i.each(e,function(L,R){var W=new i.fx(C,x,L);if(Bb.test(R))W[R==="toggle"?E?"show":"hide":R](e);else{var aa=Cb.exec(R),X=W.cur(true)||0;if(aa){R=parseFloat(aa[2]);var fa=aa[3]||"px";if(fa!=="px"){C.style[L]=(R||1)+fa;X=(R||1)/W.cur(true)*
X;C.style[L]=X+fa}if(aa[1])R=(aa[1]==="-="?-1:1)*R+X;W.custom(X,R,fa)}else W.custom(X,R,"")}});return true})},stop:function(e,j){var k=i.timers;e&&this.queue([]);this.each(function(){for(var p=k.length-1;p>=0;p--)if(k[p].elem===this){j&&k[p](true);k.splice(p,1)}});j||this.dequeue();return this}});i.each({slideDown:w("show",1),slideUp:w("hide",1),slideToggle:w("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(e,j){i.fn[e]=function(k,p){return this.animate(j,k,p)}});i.extend({speed:function(e,
j,k){var p=e&&typeof e==="object"?e:{complete:k||!k&&j||i.isFunction(e)&&e,duration:e,easing:k&&j||j&&!i.isFunction(j)&&j};p.duration=i.fx.off?0:typeof p.duration==="number"?p.duration:i.fx.speeds[p.duration]||i.fx.speeds._default;p.old=p.complete;p.complete=function(){p.queue!==false&&i(this).dequeue();i.isFunction(p.old)&&p.old.call(this)};return p},easing:{linear:function(e,j,k,p){return k+p*e},swing:function(e,j,k,p){return(-Math.cos(e*Math.PI)/2+0.5)*p+k}},timers:[],fx:function(e,j,k){this.options=
j;this.elem=e;this.prop=k;if(!j.orig)j.orig={}}});i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(e){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(e=parseFloat(i.css(this.elem,this.prop,e)))&&e>-1E4?e:parseFloat(i.curCSS(this.elem,
this.prop))||0},custom:function(e,j,k){function p(x){return o.step(x)}this.startTime=g();this.start=e;this.end=j;this.unit=k||this.unit||"px";this.now=this.start;this.pos=this.state=0;var o=this;p.elem=this.elem;if(p()&&i.timers.push(p)&&!Aa)Aa=setInterval(i.fx.tick,13)},show:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=
i.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(e){var j=g(),k=true;if(e||j>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var p in this.options.curAnim)if(this.options.curAnim[p]!==true)k=false;if(k){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;e=i.data(this.elem,"olddisplay");this.elem.style.display=e?e:this.options.display;if(i.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&i(this.elem).hide();if(this.options.hide||this.options.show)for(var o in this.options.curAnim)i.style(this.elem,o,this.options.orig[o]);this.options.complete.call(this.elem)}return false}else{o=j-this.startTime;this.state=o/this.options.duration;e=this.options.easing||(i.easing.swing?"swing":"linear");this.pos=i.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||e](this.state,o,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};i.extend(i.fx,{tick:function(){for(var e=i.timers,j=0;j<e.length;j++)e[j]()||e.splice(j--,1);e.length||i.fx.stop()},stop:function(){clearInterval(Aa);Aa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){i.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null)e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit;else e.elem[e.prop]=
e.now}}});if(i.expr&&i.expr.filters)i.expr.filters.animated=function(e){return i.grep(i.timers,function(j){return e===j.elem}).length};i.fn.offset="getBoundingClientRect"in A.documentElement?function(e){var j=this[0];if(e)return this.each(function(o){i.offset.setOffset(this,e,o)});if(!j||!j.ownerDocument)return null;if(j===j.ownerDocument.body)return i.offset.bodyOffset(j);var k=j.getBoundingClientRect(),p=j.ownerDocument;j=p.body;p=p.documentElement;return{top:k.top+(self.pageYOffset||i.support.boxModel&&
p.scrollTop||j.scrollTop)-(p.clientTop||j.clientTop||0),left:k.left+(self.pageXOffset||i.support.boxModel&&p.scrollLeft||j.scrollLeft)-(p.clientLeft||j.clientLeft||0)}}:function(e){var j=this[0];if(e)return this.each(function(L){i.offset.setOffset(this,e,L)});if(!j||!j.ownerDocument)return null;if(j===j.ownerDocument.body)return i.offset.bodyOffset(j);i.offset.initialize();var k=j.offsetParent,p=j,o=j.ownerDocument,x,y=o.documentElement,E=o.body;p=(o=o.defaultView)?o.getComputedStyle(j,null):j.currentStyle;
for(var C=j.offsetTop,F=j.offsetLeft;(j=j.parentNode)&&j!==E&&j!==y;){if(i.offset.supportsFixedPosition&&p.position==="fixed")break;x=o?o.getComputedStyle(j,null):j.currentStyle;C-=j.scrollTop;F-=j.scrollLeft;if(j===k){C+=j.offsetTop;F+=j.offsetLeft;if(i.offset.doesNotAddBorder&&!(i.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(j.nodeName))){C+=parseFloat(x.borderTopWidth)||0;F+=parseFloat(x.borderLeftWidth)||0}p=k;k=j.offsetParent}if(i.offset.subtractsBorderForOverflowNotVisible&&x.overflow!==
"visible"){C+=parseFloat(x.borderTopWidth)||0;F+=parseFloat(x.borderLeftWidth)||0}p=x}if(p.position==="relative"||p.position==="static"){C+=E.offsetTop;F+=E.offsetLeft}if(i.offset.supportsFixedPosition&&p.position==="fixed"){C+=Math.max(y.scrollTop,E.scrollTop);F+=Math.max(y.scrollLeft,E.scrollLeft)}return{top:C,left:F}};i.offset={initialize:function(){var e=A.body,j=A.createElement("div"),k,p,o,x=parseFloat(i.curCSS(e,"marginTop",true))||0;i.extend(j.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});j.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";e.insertBefore(j,e.firstChild);k=j.firstChild;p=k.firstChild;o=k.nextSibling.firstChild.firstChild;this.doesNotAddBorder=p.offsetTop!==5;this.doesAddBorderForTableAndCells=
o.offsetTop===5;p.style.position="fixed";p.style.top="20px";this.supportsFixedPosition=p.offsetTop===20||p.offsetTop===15;p.style.position=p.style.top="";k.style.overflow="hidden";k.style.position="relative";this.subtractsBorderForOverflowNotVisible=p.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=e.offsetTop!==x;e.removeChild(j);i.offset.initialize=i.noop},bodyOffset:function(e){var j=e.offsetTop,k=e.offsetLeft;i.offset.initialize();if(i.offset.doesNotIncludeMarginInBodyOffset){j+=parseFloat(i.curCSS(e,
"marginTop",true))||0;k+=parseFloat(i.curCSS(e,"marginLeft",true))||0}return{top:j,left:k}},setOffset:function(e,j,k){if(/static/.test(i.curCSS(e,"position")))e.style.position="relative";var p=i(e),o=p.offset(),x=parseInt(i.curCSS(e,"top",true),10)||0,y=parseInt(i.curCSS(e,"left",true),10)||0;if(i.isFunction(j))j=j.call(e,k,o);k={top:j.top-o.top+x,left:j.left-o.left+y};"using"in j?j.using.call(e,k):p.css(k)}};i.fn.extend({position:function(){if(!this[0])return null;var e=this[0],j=this.offsetParent(),
k=this.offset(),p=/^body|html$/i.test(j[0].nodeName)?{top:0,left:0}:j.offset();k.top-=parseFloat(i.curCSS(e,"marginTop",true))||0;k.left-=parseFloat(i.curCSS(e,"marginLeft",true))||0;p.top+=parseFloat(i.curCSS(j[0],"borderTopWidth",true))||0;p.left+=parseFloat(i.curCSS(j[0],"borderLeftWidth",true))||0;return{top:k.top-p.top,left:k.left-p.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||A.body;e&&!/^body|html$/i.test(e.nodeName)&&i.css(e,"position")==="static";)e=
e.offsetParent;return e})}});i.each(["Left","Top"],function(e,j){var k="scroll"+j;i.fn[k]=function(p){var o=this[0],x;if(!o)return null;return p!==c?this.each(function(){if(x=z(this))x.scrollTo(!e?p:i(x).scrollLeft(),e?p:i(x).scrollTop());else this[k]=p}):(x=z(o))?"pageXOffset"in x?x[e?"pageYOffset":"pageXOffset"]:i.support.boxModel&&x.document.documentElement[k]||x.document.body[k]:o[k]}});i.each(["Height","Width"],function(e,j){var k=j.toLowerCase();i.fn["inner"+j]=function(){return this[0]?i.css(this[0],
k,false,"padding"):null};i.fn["outer"+j]=function(p){return this[0]?i.css(this[0],k,false,p?"margin":"border"):null};i.fn[k]=function(p){var o=this[0];if(!o)return p==null?null:this;if(i.isFunction(p))return this.each(function(x){var y=i(this);y[k](p.call(this,x,y[k]()))});return"scrollTo"in o&&o.document?o.document.compatMode==="CSS1Compat"&&o.document.documentElement["client"+j]||o.document.body["client"+j]:o.nodeType===9?Math.max(o.documentElement["client"+j],o.body["scroll"+j],o.documentElement["scroll"+
j],o.body["offset"+j],o.documentElement["offset"+j]):p===c?i.css(o,k):this.css(k,typeof p==="string"?p:p+"px")}});a.jQuery=a.$=i})(window);jQuery.ui||function(a){a.ui={version:"1.8.1",plugin:{add:function(c,d,f){c=a.ui[c].prototype;for(var b in f){c.plugins[b]=c.plugins[b]||[];c.plugins[b].push([d,f[b]])}},call:function(c,d,f){if((d=c.plugins[d])&&c.element[0].parentNode)for(var b=0;b<d.length;b++)c.options[d[b][0]]&&d[b][1].apply(c.element,f)}},contains:function(c,d){return document.compareDocumentPosition?c.compareDocumentPosition(d)&16:c!==d&&c.contains(d)},hasScroll:function(c,d){if(a(c).css("overflow")=="hidden")return false;d=
d&&d=="left"?"scrollLeft":"scrollTop";var f=false;if(c[d]>0)return true;c[d]=1;f=c[d]>0;c[d]=0;return f},isOverAxis:function(c,d,f){return c>d&&c<d+f},isOver:function(c,d,f,b,g,h){return a.ui.isOverAxis(c,f,g)&&a.ui.isOverAxis(d,b,h)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};a.fn.extend({_focus:a.fn.focus,focus:function(c,d){return typeof c==="number"?this.each(function(){var f=this;setTimeout(function(){a(f).focus();d&&d.call(f)},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var c;c=a.browser.msie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?a(document):c},zIndex:function(c){if(c!==
undefined)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(c.css("zIndex"));if(!isNaN(d)&&d!=0)return d}c=c.parent()}}return 0}});a.extend(a.expr[":"],{data:function(c,d,f){return!!a.data(c,f[3])},focusable:function(c){var d=c.nodeName.toLowerCase(),f=a.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(d)?!c.disabled:"a"==d||"area"==d?c.href||!isNaN(f):!isNaN(f))&&
!a(c)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(c){var d=a.attr(c,"tabindex");return(isNaN(d)||d>=0)&&a(c).is(":focusable")}})}(jQuery);
(function(a){var c=a.fn.remove;a.fn.remove=function(d,f){return this.each(function(){if(!f)if(!d||a.filter(d,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return c.call(a(this),d,f)})};a.widget=function(d,f,b){var g=d.split(".")[0],h;d=d.split(".")[1];h=g+"-"+d;if(!b){b=f;f=a.Widget}a.expr[":"][h]=function(n){return!!a.data(n,d)};a[g]=a[g]||{};a[g][d]=function(n,r){arguments.length&&this._createWidget(n,r)};f=new f;f.options=a.extend({},f.options);a[g][d].prototype=
a.extend(true,f,{namespace:g,widgetName:d,widgetEventPrefix:a[g][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},b);a.widget.bridge(d,a[g][d])};a.widget.bridge=function(d,f){a.fn[d]=function(b){var g=typeof b==="string",h=Array.prototype.slice.call(arguments,1),n=this;b=!g&&h.length?a.extend.apply(null,[true,b].concat(h)):b;if(g&&b.substring(0,1)==="_")return n;g?this.each(function(){var r=a.data(this,d),m=r&&a.isFunction(r[b])?r[b].apply(r,h):r;if(m!==r&&m!==undefined){n=m;return false}}):this.each(function(){var r=
a.data(this,d);if(r){b&&r.option(b);r._init()}else a.data(this,d,new f(b,this))});return n}};a.Widget=function(d,f){arguments.length&&this._createWidget(d,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,f){this.element=a(f).data(this.widgetName,this);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(f)[this.widgetName],d);var b=this;this.element.bind("remove."+this.widgetName,function(){b.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(d,f){var b=d,g=this;if(arguments.length===0)return a.extend({},g.options);if(typeof d==="string"){if(f===undefined)return this.options[d];b={};b[d]=f}a.each(b,function(h,
n){g._setOption(h,n)});return g},_setOption:function(d,f){this.options[d]=f;if(d==="disabled")this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,f,b){var g=this.options[d];f=a.Event(f);f.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();b=b||{};if(f.originalEvent){d=
a.event.props.length;for(var h;d;){h=a.event.props[--d];f[h]=f.originalEvent[h]}}this.element.trigger(f,b);return!(a.isFunction(g)&&g.call(this.element[0],f,b)===false||f.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(c._preventClickEvent){c._preventClickEvent=false;d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){c.originalEvent=c.originalEvent||{};if(!c.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(c);this._mouseDownEvent=c;var d=this,f=c.which==1,b=typeof this.options.cancel=="string"?a(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!f||b||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=this._mouseStart(c)!==false;if(!this._mouseStarted){c.preventDefault();
return true}}this._mouseMoveDelegate=function(g){return d._mouseMove(g)};this._mouseUpDelegate=function(g){return d._mouseUp(g)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(a.browser.msie&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&
this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=c.target==this._mouseDownEvent.target;this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-
c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,f=a.fn.position,b=a.fn.offset;a.fn.position=function(g){if(!g||!g.of)return f.apply(this,arguments);g=a.extend({},g);var h=a(g.of),n=(g.collision||"flip").split(" "),r=g.offset?g.offset.split(" "):[0,0],m,l,q;if(g.of.nodeType===9){m=h.width();l=h.height();q={top:0,left:0}}else if(g.of.scrollTo&&g.of.document){m=h.width();l=h.height();q={top:h.scrollTop(),left:h.scrollLeft()}}else if(g.of.preventDefault){g.at="left top";m=l=
0;q={top:g.of.pageY,left:g.of.pageX}}else{m=h.outerWidth();l=h.outerHeight();q=h.offset()}a.each(["my","at"],function(){var u=(g[this]||"").split(" ");if(u.length===1)u=c.test(u[0])?u.concat(["center"]):d.test(u[0])?["center"].concat(u):["center","center"];u[0]=c.test(u[0])?u[0]:"center";u[1]=d.test(u[1])?u[1]:"center";g[this]=u});if(n.length===1)n[1]=n[0];r[0]=parseInt(r[0],10)||0;if(r.length===1)r[1]=r[0];r[1]=parseInt(r[1],10)||0;if(g.at[0]==="right")q.left+=m;else if(g.at[0]==="center")q.left+=
m/2;if(g.at[1]==="bottom")q.top+=l;else if(g.at[1]==="center")q.top+=l/2;q.left+=r[0];q.top+=r[1];return this.each(function(){var u=a(this),w=u.outerWidth(),z=u.outerHeight(),i=a.extend({},q);if(g.my[0]==="right")i.left-=w;else if(g.my[0]==="center")i.left-=w/2;if(g.my[1]==="bottom")i.top-=z;else if(g.my[1]==="center")i.top-=z/2;i.left=parseInt(i.left);i.top=parseInt(i.top);a.each(["left","top"],function(N,J){a.ui.position[n[N]]&&a.ui.position[n[N]][J](i,{targetWidth:m,targetHeight:l,elemWidth:w,
elemHeight:z,offset:r,my:g.my,at:g.at})});a.fn.bgiframe&&u.bgiframe();u.offset(a.extend(i,{using:g.using}))})};a.ui.position={fit:{left:function(g,h){var n=a(window);h=g.left+h.elemWidth-n.width()-n.scrollLeft();g.left=h>0?g.left-h:Math.max(0,g.left)},top:function(g,h){var n=a(window);h=g.top+h.elemHeight-n.height()-n.scrollTop();g.top=h>0?g.top-h:Math.max(0,g.top)}},flip:{left:function(g,h){if(h.at[0]!=="center"){var n=a(window);n=g.left+h.elemWidth-n.width()-n.scrollLeft();var r=h.my[0]==="left"?
-h.elemWidth:h.my[0]==="right"?h.elemWidth:0,m=-2*h.offset[0];g.left+=g.left<0?r+h.targetWidth+m:n>0?r-h.targetWidth+m:0}},top:function(g,h){if(h.at[1]!=="center"){var n=a(window);n=g.top+h.elemHeight-n.height()-n.scrollTop();var r=h.my[1]==="top"?-h.elemHeight:h.my[1]==="bottom"?h.elemHeight:0,m=h.at[1]==="top"?h.targetHeight:-h.targetHeight,l=-2*h.offset[1];g.top+=g.top<0?r+h.targetHeight+l:n>0?r+m+l:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(g,h){if(/static/.test(a.curCSS(g,"position")))g.style.position=
"relative";var n=a(g),r=n.offset(),m=parseInt(a.curCSS(g,"top",true),10)||0,l=parseInt(a.curCSS(g,"left",true),10)||0;r={top:h.top-r.top+m,left:h.left-r.left+l};"using"in h?h.using.call(g,r):n.css(r)};a.fn.offset=function(g){var h=this[0];if(!h||!h.ownerDocument)return null;if(g)return this.each(function(){a.offset.setOffset(this,g)});return b.call(this)}}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?: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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var d=
this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.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};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)d=a.ui.ddmanager.drop(this,c);if(this.dropped){d=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,
d)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",c)!==false&&f._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
c.target)d=true});return d},_createHelper:function(c){var d=this.options;c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):d.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else 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}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment==
"parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&
c.containment.constructor!=Array){var d=a(c.containment)[0];if(d){c=a(c.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,c.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,c.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==Array)this.containment=c.containment},_convertPositionTo:function(c,d){if(!d)d=this.position;c=c=="absolute"?1:-1;var f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(f[0].tagName);return{top:d.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:f.scrollTop())*c),left:d.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
b?0:f.scrollLeft())*c)}},_generatePosition:function(c){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(f[0].tagName),g=c.pageX,h=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])g=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+
this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])g=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(d.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/d.grid[1])*d.grid[1];h=this.containment?!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-d.grid[1]:h+d.grid[1]:h;g=this.originalPageX+
Math.round((g-this.originalPageX)/d.grid[0])*d.grid[0];g=this.containment?!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:!(g-this.offset.click.left<this.containment[0])?g-d.grid[0]:g+d.grid[0]:g}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:f.scrollTop()),left:g-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:f.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=false},_trigger:function(c,d,f){f=f||this._uiHash();a.ui.plugin.call(this,c,[d,f]);if(c=="drag")this.positionAbs=
this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,d,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.1"});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,d){var f=a(this).data("draggable"),b=f.options,g=a.extend({},d,{item:f.element});f.sortables=[];a(b.connectToSortable).each(function(){var h=a.data(this,"sortable");
if(h&&!h.options.disabled){f.sortables.push({instance:h,shouldRevert:h.options.revert});h._refreshItems();h._trigger("activate",c,g)}})},stop:function(c,d){var f=a(this).data("draggable"),b=a.extend({},d,{item:f.element});a.each(f.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;f.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;
f.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,d){var f=a(this).data("draggable"),b=this;a.each(f.sortables,function(){this.instance.positionAbs=f.positionAbs;this.instance.helperProportions=f.helperProportions;this.instance.offset.click=f.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",c);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();f._trigger("fromSortable",c);f.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),d=a(this).data("draggable").options;if(c.css("cursor"))d._cursor=c.css("cursor");c.css("cursor",d.cursor)},stop:function(){var c=a(this).data("draggable").options;c._cursor&&a("body").css("cursor",c._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var c=
a(this).data("draggable").options;a(c.iframeFix===true?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){c=a(d.helper);d=a(this).data("draggable").options;
if(c.css("opacity"))d._opacity=c.css("opacity");c.css("opacity",d.opacity)},stop:function(c,d){c=a(this).data("draggable").options;c._opacity&&a(d.helper).css("opacity",c._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var d=a(this).data("draggable"),f=d.options,b=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!=
"HTML"){if(!f.axis||f.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-c.pageY<f.scrollSensitivity)d.scrollParent[0].scrollTop=b=d.scrollParent[0].scrollTop+f.scrollSpeed;else if(c.pageY-d.overflowOffset.top<f.scrollSensitivity)d.scrollParent[0].scrollTop=b=d.scrollParent[0].scrollTop-f.scrollSpeed;if(!f.axis||f.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-c.pageX<f.scrollSensitivity)d.scrollParent[0].scrollLeft=b=d.scrollParent[0].scrollLeft+f.scrollSpeed;else if(c.pageX-
d.overflowOffset.left<f.scrollSensitivity)d.scrollParent[0].scrollLeft=b=d.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(!f.axis||f.axis!="x")if(c.pageY-a(document).scrollTop()<f.scrollSensitivity)b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<f.scrollSensitivity)b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed);if(!f.axis||f.axis!="y")if(c.pageX-a(document).scrollLeft()<f.scrollSensitivity)b=a(document).scrollLeft(a(document).scrollLeft()-
f.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<f.scrollSensitivity)b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}b!==false&&a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,c)}});a.ui.plugin.add("draggable","snap",{start:function(){var c=a(this).data("draggable"),d=c.options;c.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var f=a(this),b=f.offset();this!=c.element[0]&&c.snapElements.push({item:this,
width:f.outerWidth(),height:f.outerHeight(),top:b.top,left:b.left})})},drag:function(c,d){for(var f=a(this).data("draggable"),b=f.options,g=b.snapTolerance,h=d.offset.left,n=h+f.helperProportions.width,r=d.offset.top,m=r+f.helperProportions.height,l=f.snapElements.length-1;l>=0;l--){var q=f.snapElements[l].left,u=q+f.snapElements[l].width,w=f.snapElements[l].top,z=w+f.snapElements[l].height;if(q-g<h&&h<u+g&&w-g<r&&r<z+g||q-g<h&&h<u+g&&w-g<m&&m<z+g||q-g<n&&n<u+g&&w-g<r&&r<z+g||q-g<n&&n<u+g&&w-g<m&&
m<z+g){if(b.snapMode!="inner"){var i=Math.abs(w-m)<=g,N=Math.abs(z-r)<=g,J=Math.abs(q-n)<=g,A=Math.abs(u-h)<=g;if(i)d.position.top=f._convertPositionTo("relative",{top:w-f.helperProportions.height,left:0}).top-f.margins.top;if(N)d.position.top=f._convertPositionTo("relative",{top:z,left:0}).top-f.margins.top;if(J)d.position.left=f._convertPositionTo("relative",{top:0,left:q-f.helperProportions.width}).left-f.margins.left;if(A)d.position.left=f._convertPositionTo("relative",{top:0,left:u}).left-f.margins.left}var P=
i||N||J||A;if(b.snapMode!="outer"){i=Math.abs(w-r)<=g;N=Math.abs(z-m)<=g;J=Math.abs(q-h)<=g;A=Math.abs(u-n)<=g;if(i)d.position.top=f._convertPositionTo("relative",{top:w,left:0}).top-f.margins.top;if(N)d.position.top=f._convertPositionTo("relative",{top:z-f.helperProportions.height,left:0}).top-f.margins.top;if(J)d.position.left=f._convertPositionTo("relative",{top:0,left:q}).left-f.margins.left;if(A)d.position.left=f._convertPositionTo("relative",{top:0,left:u-f.helperProportions.width}).left-f.margins.left}if(!f.snapElements[l].snapping&&
(i||N||J||A||P))f.options.snap.snap&&f.options.snap.snap.call(f.element,c,a.extend(f._uiHash(),{snapItem:f.snapElements[l].item}));f.snapElements[l].snapping=i||N||J||A||P}else{f.snapElements[l].snapping&&f.options.snap.release&&f.options.snap.release.call(f.element,c,a.extend(f._uiHash(),{snapItem:f.snapElements[l].item}));f.snapElements[l].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=a(this).data("draggable").options;c=a.makeArray(a(c.stack)).sort(function(f,b){return(parseInt(a(f).css("zIndex"),
10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(c.length){var d=parseInt(c[0].style.zIndex)||0;a(c).each(function(f){this.style.zIndex=d+f});this[0].style.zIndex=d+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){c=a(d.helper);d=a(this).data("draggable").options;if(c.css("zIndex"))d._zIndex=c.css("zIndex");c.css("zIndex",d.zIndex)},stop:function(c,d){c=a(this).data("draggable").options;c._zIndex&&a(d.helper).css("zIndex",c._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,d=c.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(d)?d:function(f){return f.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[];a.ui.ddmanager.droppables[c.scope].push(this);
c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],d=0;d<c.length;d++)c[d]==this&&c.splice(d,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept")this.accept=a.isFunction(d)?d:function(f){return f.is(d)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var d=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);d&&this._trigger("activate",c,this.ui(d))},_deactivate:function(c){var d=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",c,this.ui(d))},_over:function(c){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",c,this.ui(d))}},_out:function(c){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(d))}},_drop:function(c,d){var f=d||a.ui.ddmanager.current;if(!f||(f.currentItem||f.element)[0]==this.element[0])return false;var b=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
a.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==f.options.scope&&g.accept.call(g.element[0],f.currentItem||f.element)&&a.ui.intersect(f,a.extend(g,{offset:g.element.offset()}),g.options.tolerance)){b=true;return false}});if(b)return false;if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
c,this.ui(f));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.1"});a.ui.intersect=function(c,d,f){if(!d.offset)return false;var b=(c.positionAbs||c.position.absolute).left,g=b+c.helperProportions.width,h=(c.positionAbs||c.position.absolute).top,n=h+c.helperProportions.height,r=d.offset.left,m=r+d.proportions.width,l=d.offset.top,q=l+d.proportions.height;switch(f){case "fit":return r<
b&&g<m&&l<h&&n<q;case "intersect":return r<b+c.helperProportions.width/2&&g-c.helperProportions.width/2<m&&l<h+c.helperProportions.height/2&&n-c.helperProportions.height/2<q;case "pointer":return a.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,l,r,d.proportions.height,d.proportions.width);case "touch":return(h>=l&&h<=q||n>=l&&n<=q||h<l&&n>q)&&(b>=r&&b<=m||g>=r&&g<=m||b<r&&g>m);default:return false}};
a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,d){var f=a.ui.ddmanager.droppables[c.options.scope]||[],b=d?d.type:null,g=(c.currentItem||c.element).find(":data(droppable)").andSelf(),h=0;a:for(;h<f.length;h++)if(!(f[h].options.disabled||c&&!f[h].accept.call(f[h].element[0],c.currentItem||c.element))){for(var n=0;n<g.length;n++)if(g[n]==f[h].element[0]){f[h].proportions.height=0;continue a}f[h].visible=f[h].element.css("display")!="none";if(f[h].visible){f[h].offset=
f[h].element.offset();f[h].proportions={width:f[h].element[0].offsetWidth,height:f[h].element[0].offsetHeight};b=="mousedown"&&f[h]._activate.call(f[h],d)}}},drop:function(c,d){var f=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance))f=f||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,d)}}});return f},drag:function(c,d){c.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(c,d);a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var f=a.ui.intersect(c,this,this.options.tolerance);if(f=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null){var b;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){b=a.data(g[0],"droppable");
b.greedyChild=f=="isover"?1:0}}if(b&&f=="isover"){b.isover=0;b.isout=1;b._out.call(b,d)}this[f]=1;this[f=="isout"?"isover":"isout"]=0;this[f=="isover"?"_over":"_out"].call(this,d);if(b&&f=="isout"){b.isout=0;b.isover=1;b._over.call(b,d)}}}})}}})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var f=this,b=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;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=b.handles||(!a(".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(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var g=this.handles.split(",");this.handles={};for(var h=0;h<g.length;h++){var n=a.trim(g[h]),r=a('<div class="ui-resizable-handle '+("ui-resizable-"+n)+'"></div>');/sw|se|ne|nw/.test(n)&&r.css({zIndex:++b.zIndex});"se"==n&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[n]=".ui-resizable-"+n;this.element.append(r)}}this._renderAxis=function(m){m=m||this.element;for(var l in this.handles){if(this.handles[l].constructor==
String)this.handles[l]=a(this.handles[l],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=a(this.handles[l],this.element),u=0;u=/sw|ne|nw|se|n|s/.test(l)?q.outerHeight():q.outerWidth();q=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");m.css(q,u);this._proportionallyResize()}a(this.handles[l])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!f.resizing){if(this.className)var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);f.axis=m&&m[1]?m[1]:"se"}});if(b.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){a(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var f=function(g){a(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){f(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);f(this.originalElement);return this},_mouseCapture:function(f){var b=false,g;for(g in this.handles)if(a(this.handles[g])[0]==f.target)b=true;return!this.options.disabled&&b},_mouseStart:function(f){var b=this.options,g=this.element.position(),
h=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(h.is(".ui-draggable")||/absolute/.test(h.css("position")))h.css({position:"absolute",top:g.top,left:g.left});a.browser.opera&&/relative/.test(h.css("position"))&&h.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();g=c(this.helper.css("left"));var n=c(this.helper.css("top"));if(b.containment){g+=a(b.containment).scrollLeft()||0;n+=a(b.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:g,top:n};this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalPosition={left:g,top:n};this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof b.aspectRatio=="number"?b.aspectRatio:
this.originalSize.width/this.originalSize.height||1;b=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",b=="auto"?this.axis+"-resize":b);h.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(f){var b=this.helper,g=this.originalMousePosition,h=this._change[this.axis];if(!h)return false;g=h.apply(this,[f,f.pageX-g.left||0,f.pageY-g.top||0]);if(this._aspectRatio||f.shiftKey)g=this._updateRatio(g,f);g=this._respectSize(g,f);this._propagate("resize",
f);b.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(g);this._trigger("resize",f,this.ui());return false},_mouseStop:function(f){this.resizing=false;var b=this.options;if(this._helper){var g=this._proportionallyResizeElements,h=g.length&&/textarea/i.test(g[0].nodeName);g=h&&a.ui.hasScroll(g[0],"left")?0:this.sizeDiff.height;
h={width:this.size.width-(h?0:this.sizeDiff.width),height:this.size.height-g};g=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var n=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;b.animate||this.element.css(a.extend(h,{top:n,left:g}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!b.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",f);this._helper&&this.helper.remove();return false},_updateCache:function(f){this.offset=this.helper.offset();if(d(f.left))this.position.left=f.left;if(d(f.top))this.position.top=f.top;if(d(f.height))this.size.height=f.height;if(d(f.width))this.size.width=f.width},_updateRatio:function(f){var b=this.position,g=this.size,h=this.axis;if(f.height)f.width=g.height*this.aspectRatio;else if(f.width)f.height=g.width/this.aspectRatio;if(h=="sw"){f.left=b.left+(g.width-f.width);f.top=
null}if(h=="nw"){f.top=b.top+(g.height-f.height);f.left=b.left+(g.width-f.width)}return f},_respectSize:function(f){var b=this.options,g=this.axis,h=d(f.width)&&b.maxWidth&&b.maxWidth<f.width,n=d(f.height)&&b.maxHeight&&b.maxHeight<f.height,r=d(f.width)&&b.minWidth&&b.minWidth>f.width,m=d(f.height)&&b.minHeight&&b.minHeight>f.height;if(r)f.width=b.minWidth;if(m)f.height=b.minHeight;if(h)f.width=b.maxWidth;if(n)f.height=b.maxHeight;var l=this.originalPosition.left+this.originalSize.width,q=this.position.top+
this.size.height,u=/sw|nw|w/.test(g);g=/nw|ne|n/.test(g);if(r&&u)f.left=l-b.minWidth;if(h&&u)f.left=l-b.maxWidth;if(m&&g)f.top=q-b.minHeight;if(n&&g)f.top=q-b.maxHeight;if((b=!f.width&&!f.height)&&!f.left&&f.top)f.top=null;else if(b&&!f.top&&f.left)f.left=null;return f},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var f=this.helper||this.element,b=0;b<this._proportionallyResizeElements.length;b++){var g=this._proportionallyResizeElements[b];if(!this.borderDif){var h=
[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],n=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];this.borderDif=a.map(h,function(r,m){r=parseInt(r,10)||0;m=parseInt(n[m],10)||0;return r+m})}a.browser.msie&&(a(f).is(":hidden")||a(f).parents(":hidden").length)||g.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var f=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var b=a.browser.msie&&a.browser.version<7,g=b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(f,
b){return{width:this.originalSize.width+b}},w:function(f,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(f,b,g){return{top:this.originalPosition.top+g,height:this.originalSize.height-g}},s:function(f,b,g){return{height:this.originalSize.height+g}},se:function(f,b,g){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,b,g]))},sw:function(f,b,g){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,b,
g]))},ne:function(f,b,g){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,b,g]))},nw:function(f,b,g){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,b,g]))}},_propagate:function(f,b){a.ui.plugin.call(this,f,[b,this.ui()]);f!="resize"&&this._trigger(f,b,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}}});a.extend(a.ui.resizable,{version:"1.8.1"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var f=a(this).data("resizable").options,b=function(g){a(g).each(function(){a(this).data("resizable-alsoresize",{width:parseInt(a(this).width(),10),height:parseInt(a(this).height(),10),left:parseInt(a(this).css("left"),10),top:parseInt(a(this).css("top"),10)})})};if(typeof f.alsoResize=="object"&&!f.alsoResize.parentNode)if(f.alsoResize.length){f.alsoResize=
f.alsoResize[0];b(f.alsoResize)}else a.each(f.alsoResize,function(g){b(g)});else b(f.alsoResize)},resize:function(){var f=a(this).data("resizable"),b=f.options,g=f.originalSize,h=f.originalPosition,n={height:f.size.height-g.height||0,width:f.size.width-g.width||0,top:f.position.top-h.top||0,left:f.position.left-h.left||0},r=function(m,l){a(m).each(function(){var q=a(this),u=a(this).data("resizable-alsoresize"),w={};a.each((l&&l.length?l:["width","height","top","left"])||["width","height","top","left"],
function(z,i){if((z=(u[i]||0)+(n[i]||0))&&z>=0)w[i]=z||null});if(/relative/.test(q.css("position"))&&a.browser.opera){f._revertToRelativePosition=true;q.css({position:"absolute",top:"auto",left:"auto"})}q.css(w)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?a.each(b.alsoResize,function(m,l){r(m,l)}):r(b.alsoResize)},stop:function(){var f=a(this).data("resizable");if(f._revertToRelativePosition&&a.browser.opera){f._revertToRelativePosition=false;el.css({position:"relative"})}a(this).removeData("resizable-alsoresize-start")}});
a.ui.plugin.add("resizable","animate",{stop:function(f){var b=a(this).data("resizable"),g=b.options,h=b._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),r=n&&a.ui.hasScroll(h[0],"left")?0:b.sizeDiff.height;n={width:b.size.width-(n?0:b.sizeDiff.width),height:b.size.height-r};r=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var m=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(n,m&&
r?{top:m,left:r}:{}),{duration:g.animateDuration,easing:g.animateEasing,step:function(){var l={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};h&&h.length&&a(h[0]).css({width:l.width,height:l.height});b._updateCache(l);b._propagate("resize",f)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var f=a(this).data("resizable"),b=f.element,g=f.options.containment;if(b=g instanceof
a?g.get(0):/parent/.test(g)?b.parent().get(0):g){f.containerElement=a(b);if(/document/.test(g)||g==document){f.containerOffset={left:0,top:0};f.containerPosition={left:0,top:0};f.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var h=a(b),n=[];a(["Top","Right","Left","Bottom"]).each(function(l,q){n[l]=c(h.css("padding"+q))});f.containerOffset=h.offset();f.containerPosition=h.position();f.containerSize={height:h.innerHeight()-
n[3],width:h.innerWidth()-n[1]};g=f.containerOffset;var r=f.containerSize.height,m=f.containerSize.width;m=a.ui.hasScroll(b,"left")?b.scrollWidth:m;r=a.ui.hasScroll(b)?b.scrollHeight:r;f.parentData={element:b,left:g.left,top:g.top,width:m,height:r}}}},resize:function(f){var b=a(this).data("resizable"),g=b.options,h=b.containerOffset,n=b.position;f=b._aspectRatio||f.shiftKey;var r={top:0,left:0},m=b.containerElement;if(m[0]!=document&&/static/.test(m.css("position")))r=h;if(n.left<(b._helper?h.left:
0)){b.size.width+=b._helper?b.position.left-h.left:b.position.left-r.left;if(f)b.size.height=b.size.width/g.aspectRatio;b.position.left=g.helper?h.left:0}if(n.top<(b._helper?h.top:0)){b.size.height+=b._helper?b.position.top-h.top:b.position.top;if(f)b.size.width=b.size.height*g.aspectRatio;b.position.top=b._helper?h.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;g=Math.abs((b._helper?b.offset.left-r.left:b.offset.left-r.left)+b.sizeDiff.width);h=
Math.abs((b._helper?b.offset.top-r.top:b.offset.top-h.top)+b.sizeDiff.height);n=b.containerElement.get(0)==b.element.parent().get(0);r=/relative|absolute/.test(b.containerElement.css("position"));if(n&&r)g-=b.parentData.left;if(g+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-g;if(f)b.size.height=b.size.width/b.aspectRatio}if(h+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-h;if(f)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var f=a(this).data("resizable"),
b=f.options,g=f.containerOffset,h=f.containerPosition,n=f.containerElement,r=a(f.helper),m=r.offset(),l=r.outerWidth()-f.sizeDiff.width;r=r.outerHeight()-f.sizeDiff.height;f._helper&&!b.animate&&/relative/.test(n.css("position"))&&a(this).css({left:m.left-h.left-g.left,width:l,height:r});f._helper&&!b.animate&&/static/.test(n.css("position"))&&a(this).css({left:m.left-h.left-g.left,width:l,height:r})}});a.ui.plugin.add("resizable","ghost",{start:function(){var f=a(this).data("resizable"),b=f.options,
g=f.size;f.ghost=f.originalElement.clone();f.ghost.css({opacity:0.25,display:"block",position:"relative",height:g.height,width:g.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof b.ghost=="string"?b.ghost:"");f.ghost.appendTo(f.helper)},resize:function(){var f=a(this).data("resizable");f.ghost&&f.ghost.css({position:"relative",height:f.size.height,width:f.size.width})},stop:function(){var f=a(this).data("resizable");f.ghost&&f.helper&&f.helper.get(0).removeChild(f.ghost.get(0))}});
a.ui.plugin.add("resizable","grid",{resize:function(){var f=a(this).data("resizable"),b=f.options,g=f.size,h=f.originalSize,n=f.originalPosition,r=f.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var m=Math.round((g.width-h.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((g.height-h.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(r)){f.size.width=h.width+m;f.size.height=h.height+b}else if(/^(ne)$/.test(r)){f.size.width=h.width+m;f.size.height=h.height+b;f.position.top=n.top-
b}else{if(/^(sw)$/.test(r)){f.size.width=h.width+m;f.size.height=h.height+b}else{f.size.width=h.width+m;f.size.height=h.height+b;f.position.top=n.top-b}f.position.left=n.left-m}}});var c=function(f){return parseInt(f,10)||0},d=function(f){return!isNaN(parseInt(f,10))}})(jQuery);
(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=a(c.options.filter,c.element[0]);d.each(function(){var f=a(this),b=f.offset();a.data(this,"selectable-item",{element:this,$element:f,left:b.left,top:b.top,right:b.left+f.outerWidth(),bottom:b.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),
selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},
_mouseStart:function(c){var d=this;this.opos=[c.pageX,c.pageY];if(!this.options.disabled){var f=this.options;this.selectees=a(f.filter,this.element[0]);this._trigger("start",c);a(f.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:c.clientX,top:c.clientY,width:0,height:0});f.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=a.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");
b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;d._trigger("unselecting",c,{unselecting:b.element})}});a(c.target).parents().andSelf().each(function(){var b=a.data(this,"selectable-item");if(b){b.$element.removeClass("ui-unselecting").addClass("ui-selecting");b.unselecting=false;b.selecting=true;b.selected=true;d._trigger("selecting",c,{selecting:b.element});return false}})}},_mouseDrag:function(c){var d=this;this.dragged=true;if(!this.options.disabled){var f=this.options,
b=this.opos[0],g=this.opos[1],h=c.pageX,n=c.pageY;if(b>h){var r=h;h=b;b=r}if(g>n){r=n;n=g;g=r}this.helper.css({left:b,top:g,width:h-b,height:n-g});this.selectees.each(function(){var m=a.data(this,"selectable-item");if(!(!m||m.element==d.element[0])){var l=false;if(f.tolerance=="touch")l=!(m.left>h||m.right<b||m.top>n||m.bottom<g);else if(f.tolerance=="fit")l=m.left>b&&m.right<h&&m.top>g&&m.bottom<n;if(l){if(m.selected){m.$element.removeClass("ui-selected");m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");
m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;d._trigger("selecting",c,{selecting:m.element})}}else{if(m.selecting)if(c.metaKey&&m.startselected){m.$element.removeClass("ui-selecting");m.selecting=false;m.$element.addClass("ui-selected");m.selected=true}else{m.$element.removeClass("ui-selecting");m.selecting=false;if(m.startselected){m.$element.addClass("ui-unselecting");m.unselecting=true}d._trigger("unselecting",c,{unselecting:m.element})}if(m.selected)if(!c.metaKey&&
!m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;d._trigger("unselecting",c,{unselecting:m.element})}}}});return false}},_mouseStop:function(c){var d=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;d._trigger("unselected",c,{unselected:f.element})});a(".ui-selecting",this.element[0]).each(function(){var f=
a.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;d._trigger("selected",c,{selected:f.element})});this._trigger("stop",c);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.1"})})(jQuery);
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--)this.items[c].item.removeData("sortable-item");return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(self,
arguments)},_mouseCapture:function(c,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var f=null,b=this;a(c.target).parents().each(function(){if(a.data(this,"sortable-item")==b){f=a(this);return false}});if(a.data(c.target,"sortable-item")==b)f=a(c.target);if(!f)return false;if(this.options.handle&&!d){var g=false;a(this.options.handle,f).find("*").andSelf().each(function(){if(this==c.target)g=true});if(!g)return false}this.currentItem=
f;this._removeCurrentsFromItems();return true},_mouseStart:function(c,d,f){d=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,
{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();
if(d.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!f)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",c,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,f=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(c.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-c.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(c.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<d.scrollSensitivity)f=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<d.scrollSensitivity)f=a(document).scrollTop(a(document).scrollTop()+
d.scrollSpeed);if(c.pageX-a(document).scrollLeft()<d.scrollSensitivity)f=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<d.scrollSensitivity)f=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}f!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){f=this.items[d];var b=f.item[0],g=this._intersectsWithPointer(f);if(g)if(b!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=b&&!a.ui.contains(this.placeholder[0],b)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],b):true)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(c,
f);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(c){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var f=this;d=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(c)})}else this._clear(c,d);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,this._uiHash(this));this.containers[c].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
a(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(c){var d=this._getItemsAsjQuery(c&&c.connected),f=[];c=c||{};a(d).each(function(){var b=(a(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[-=_](.+)/);if(b)f.push((c.key||b[1]+"[]")+"="+(c.key&&c.expression?b[1]:b[2]))});return f.join("&")},toArray:function(c){var d=this._getItemsAsjQuery(c&&c.connected),f=[];c=c||{};d.each(function(){f.push(a(c.item||this).attr(c.attribute||"id")||"")});return f},
_intersectsWith:function(c){var d=this.positionAbs.left,f=d+this.helperProportions.width,b=this.positionAbs.top,g=b+this.helperProportions.height,h=c.left,n=h+c.width,r=c.top,m=r+c.height,l=this.offset.click.top,q=this.offset.click.left;l=b+l>r&&b+l<m&&d+q>h&&d+q<n;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?l:h<d+this.helperProportions.width/
2&&f-this.helperProportions.width/2<n&&r<b+this.helperProportions.height/2&&g-this.helperProportions.height/2<m},_intersectsWithPointer:function(c){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);d=d&&c;c=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!d)return false;return this.floating?f&&f=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(c){var d=
a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width);var f=this._getDragVerticalDirection(),b=this._getDragHorizontalDirection();return this.floating&&b?b=="right"&&c||b=="left"&&!c:f&&(f=="down"&&d||f=="up"&&!d)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=
this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var d=[],f=[],b=this._connectWith();if(b&&c)for(c=b.length-1;c>=0;c--)for(var g=a(b[c]),h=g.length-1;h>=0;h--){var n=a.data(g[h],"sortable");if(n&&n!=this&&!n.options.disabled)f.push([a.isFunction(n.options.items)?
n.options.items.call(n.element):a(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n])}f.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(c=f.length-1;c>=0;c--)f[c][0].each(function(){d.push(this)});return a(d)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),
d=0;d<this.items.length;d++)for(var f=0;f<c.length;f++)c[f]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(c){this.items=[];this.containers=[this];var d=this.items,f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):a(this.options.items,this.element),this]],b=this._connectWith();if(b)for(var g=b.length-1;g>=0;g--)for(var h=a(b[g]),n=h.length-1;n>=0;n--){var r=a.data(h[n],"sortable");if(r&&r!=this&&!r.options.disabled){f.push([a.isFunction(r.options.items)?
r.options.items.call(r.element[0],c,{item:this.currentItem}):a(r.options.items,r.element),r]);this.containers.push(r)}}for(g=f.length-1;g>=0;g--){c=f[g][1];b=f[g][0];n=0;for(h=b.length;n<h;n++){r=a(b[n]);r.data("sortable-item",c);d.push({item:r,instance:c,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var f=this.items[d],b=this.options.toleranceElement?a(this.options.toleranceElement,
f.item):f.item;if(!c){f.width=b.outerWidth();f.height=b.outerHeight()}b=b.offset();f.left=b.left;f.top=b.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--){b=this.containers[d].element.offset();this.containers[d].containerCache.left=b.left;this.containers[d].containerCache.top=b.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=
this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(c){var d=c||this,f=d.options;if(!f.placeholder||f.placeholder.constructor==String){var b=f.placeholder;f.placeholder={element:function(){var g=a(document.createElement(d.currentItem[0].nodeName)).addClass(b||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!b)g.style.visibility="hidden";return g},update:function(g,h){if(!(b&&!f.forcePlaceholderSize)){h.height()||h.height(d.currentItem.innerHeight()-
parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));h.width()||h.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=a(f.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);f.placeholder.update(d,d.placeholder)},_contactContainers:function(c){for(var d=null,f=null,b=this.containers.length-1;b>=0;b--)if(!a.ui.contains(this.currentItem[0],
this.containers[b].element[0]))if(this._intersectsWith(this.containers[b].containerCache)){if(!(d&&a.ui.contains(this.containers[b].element[0],d.element[0]))){d=this.containers[b];f=b}}else if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",c,this._uiHash(this));this.containers[b].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[f]._trigger("over",c,this._uiHash(this));this.containers[f].containerCache.over=1}else if(this.currentContainer!=this.containers[f]){d=
1E4;b=null;for(var g=this.positionAbs[this.containers[f].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(a.ui.contains(this.containers[f].element[0],this.items[h].item[0])){var n=this.items[h][this.containers[f].floating?"left":"top"];if(Math.abs(n-g)<d){d=Math.abs(n-g);b=this.items[h]}}if(b||this.options.dropOnEmpty){this.currentContainer=this.containers[f];b?this._rearrange(c,b,null,true):this._rearrange(c,null,this.containers[f].element,true);this._trigger("change",c,this._uiHash());this.containers[f]._trigger("change",
c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[f]._trigger("over",c,this._uiHash(this));this.containers[f].containerCache.over=1}}},_createHelper:function(c){var d=this.options;c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[0]==
this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(c[0].style.width==""||d.forceHelperSize)c.width(this.currentItem.width());if(c[0].style.height==""||d.forceHelperSize)c.height(this.currentItem.height());return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;
if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var d=
a(c.containment)[0];c=a(c.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,c.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-
this.margins.left,c.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,d){if(!d)d=this.position;c=c=="absolute"?1:-1;var f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(f[0].tagName);return{top:d.top+
this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:f.scrollTop())*c),left:d.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:f.scrollLeft())*c)}},_generatePosition:function(c){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var g=c.pageX,h=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])g=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;
if(c.pageX-this.offset.click.left>this.containment[2])g=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(d.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/d.grid[1])*d.grid[1];h=this.containment?!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-d.grid[1]:h+d.grid[1]:h;g=this.originalPageX+Math.round((g-
this.originalPageX)/d.grid[0])*d.grid[0];g=this.containment?!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:!(g-this.offset.click.left<this.containment[0])?g-d.grid[0]:g+d.grid[0]:g}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:f.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:f.scrollLeft())}},_rearrange:function(c,d,f,b){f?f[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var g=this,h=this.counter;window.setTimeout(function(){h==g.counter&&g.refreshPositions(!b)},0)},_clear:function(c,d){this.reverting=false;var f=[];!this._noFinalSort&&
this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&f.push(function(g){this._trigger("receive",g,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||
this.domPosition.parent!=this.currentItem.parent()[0])&&!d)f.push(function(g){this._trigger("update",g,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){d||f.push(function(g){this._trigger("remove",g,this._uiHash())});for(b=this.containers.length-1;b>=0;b--)if(a.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!d){f.push(function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}.call(this,this.containers[b]));f.push(function(g){return function(h){g._trigger("update",
h,this._uiHash(this))}}.call(this,this.containers[b]))}}for(b=this.containers.length-1;b>=0;b--){d||f.push(function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){f.push(function(g){return function(h){g._trigger("out",h,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",c,this._uiHash());for(b=0;b<f.length;b++)f[b].call(this,c);this._trigger("stop",c,this._uiHash())}return false}d||this._trigger("beforeStop",c,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(b=
0;b<f.length;b++)f[b].call(this,c);this._trigger("stop",c,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var d=c||this;return{helper:d.helper,placeholder:d.placeholder||a([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.1"})})(jQuery);
(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var c=this.options,d=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");
this.element[0].nodeName=="UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});
this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var f=this.element.find("a").filter(c.navigationFilter);if(f.length){var b=f.closest(".ui-accordion-header");this.active=b.length?b:f.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||c.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");
this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(g){return d._keydown(g)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");a.browser.safari||this.headers.find("a").attr("tabIndex","-1");c.event&&this.headers.bind(c.event+
".accordion",function(g){d._clickHandler.call(d,g,this);g.preventDefault()})},_createIcons:function(){var c=this.options;if(c.icons){a("<span/>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight)d.css("height",
"");return this},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);c=="active"&&this.activate(d);if(c=="icons"){this._destroyIcons();d&&this._createIcons()}},_keydown:function(c){var d=a.ui.keyCode;if(!(this.options.disabled||c.altKey||c.ctrlKey)){var f=this.headers.length,b=this.headers.index(c.target),g=false;switch(c.keyCode){case d.RIGHT:case d.DOWN:g=this.headers[(b+1)%f];break;case d.LEFT:case d.UP:g=this.headers[(b-1+f)%f];break;case d.SPACE:case d.ENTER:this._clickHandler({target:c.target},
c.target);c.preventDefault()}if(g){a(c.target).attr("tabIndex","-1");a(g).attr("tabIndex","0");g.focus();return false}return true}},resize:function(){var c=this.options,d;if(c.fillSpace){if(a.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){d-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,
d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else if(c.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).height())}).height(d)}return this},activate:function(c){this.options.active=c;c=this._findActive(c)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c=="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,d){var f=
this.options;if(!f.disabled)if(c.target){c=a(c.currentTarget||d);d=c[0]==this.active[0];f.active=f.collapsible&&d?false:a(".ui-accordion-header",this.element).index(c);if(!(this.running||!f.collapsible&&d)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);if(!d){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(f.icons.header).addClass(f.icons.headerSelected);
c.next().addClass("ui-accordion-content-active")}h=c.next();b=this.active.next();g={options:f,newHeader:d&&f.collapsible?a([]):c,oldHeader:this.active,newContent:d&&f.collapsible?a([]):h,oldContent:b};f=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=d?a([]):c;this._toggle(h,b,g,d,f)}}else if(f.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);
this.active.next().addClass("ui-accordion-content-active");var b=this.active.next(),g={options:f,newHeader:a([]),oldHeader:f.active,newContent:a([]),oldContent:b},h=this.active=a([]);this._toggle(h,b,g)}},_toggle:function(c,d,f,b,g){var h=this.options,n=this;this.toShow=c;this.toHide=d;this.data=f;var r=function(){if(n)return n._completed.apply(n,arguments)};this._trigger("changestart",null,this.data);this.running=d.size()===0?c.size():d.size();if(h.animated){f={};f=h.collapsible&&b?{toShow:a([]),
toHide:d,complete:r,down:g,autoHeight:h.autoHeight||h.fillSpace}:{toShow:c,toHide:d,complete:r,down:g,autoHeight:h.autoHeight||h.fillSpace};if(!h.proxied)h.proxied=h.animated;if(!h.proxiedDuration)h.proxiedDuration=h.duration;h.animated=a.isFunction(h.proxied)?h.proxied(f):h.proxied;h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(f):h.proxiedDuration;b=a.ui.accordion.animations;var m=h.duration,l=h.animated;if(l&&!b[l]&&!a.easing[l])l="slide";b[l]||(b[l]=function(q){this.slide(q,{easing:l,
duration:m||700})});b[l](f)}else{if(h.collapsible&&b)c.toggle();else{d.hide();c.show()}r(true)}d.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();c.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(c){var d=this.options;this.running=c?0:--this.running;if(!this.running){d.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,
{version:"1.8.1",animations:{slide:function(c,d){c=a.extend({easing:"swing",duration:300},c,d);if(c.toHide.size())if(c.toShow.size()){var f=c.toShow.css("overflow"),b=0,g={},h={},n;d=c.toShow;n=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(r,m){h[m]="hide";r=(""+a.css(c.toShow[0],
m)).match(/^([\d+-.]+)(.*)$/);g[m]={value:r[1],unit:r[2]||"px"}});c.toShow.css({height:0,overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate(h,{step:function(r,m){if(m.prop=="height")b=m.end-m.start===0?0:(m.now-m.start)/(m.end-m.start);c.toShow[0].style[m.prop]=b*g[m.prop].value+g[m.prop].unit},duration:c.duration,easing:c.easing,complete:function(){c.autoHeight||c.toShow.css("height","");c.toShow.css("width",n);c.toShow.css({overflow:f});c.complete()}})}else c.toHide.animate({height:"hide"},
c);else c.toShow.animate({height:"show"},c)},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1E3:200})}}})})(jQuery);
(function(a){a.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var c=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(f){var b=a.ui.keyCode;switch(f.keyCode){case b.PAGE_UP:c._move("previousPage",f);break;case b.PAGE_DOWN:c._move("nextPage",f);break;case b.UP:c._move("previous",f);f.preventDefault();
break;case b.DOWN:c._move("next",f);f.preventDefault();break;case b.ENTER:c.menu.active&&f.preventDefault();case b.TAB:if(!c.menu.active)break;c.menu.select(f);break;case b.ESCAPE:c.element.val(c.term);c.close(f);break;case b.LEFT:case b.RIGHT:case b.SHIFT:case b.CONTROL:case b.ALT:break;default:clearTimeout(c.searching);c.searching=setTimeout(function(){c.search(null,f)},c.options.delay)}}).bind("focus.autocomplete",function(){c.selectedItem=null;c.previous=c.element.val()}).bind("blur.autocomplete",
function(f){clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(f);c._change(f)},150)});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(f,b){b=b.item.data("item.autocomplete");false!==c._trigger("focus",null,{item:b})&&/^key/.test(f.originalEvent.type)&&c.element.val(b.value)},selected:function(f,b){b=b.item.data("item.autocomplete");false!==c._trigger("select",
f,{item:b})&&c.element.val(b.value);c.close(f);f=c.previous;if(c.element[0]!==d.activeElement){c.element.focus();c.previous=f}c.selectedItem=b},blur:function(){c.menu.element.is(":visible")&&c.element.val(c.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(c){a.Widget.prototype._setOption.apply(this,arguments);c==="source"&&this._initSource()},_initSource:function(){var c,d;if(a.isArray(this.options.source)){c=this.options.source;this.source=function(f,b){b(a.ui.autocomplete.filter(c,f.term))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(f,b){a.getJSON(d,f,b)}}else this.source=this.options.source},search:function(c,d){c=
c!=null?c:this.element.val();if(c.length<this.options.minLength)return this.close(d);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(c)},_search:function(c){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:c},this.response)},_response:function(c){if(c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this._trigger("close",c);this.menu.element.hide();this.menu.deactivate()}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value)return c;return a.map(c,function(d){if(typeof d==="string")return{label:d,value:d};return a.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(c){var d=this.menu.element.empty().zIndex(this.element.zIndex()+
1),f;this._renderMenu(d,c);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});c=d.width("").width();f=this.element.width();d.width(Math.max(c,f))},_renderMenu:function(c,d){var f=this;a.each(d,function(b,g){f._renderItem(c,g)})},_renderItem:function(c,d){return a("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(c)},_move:function(c,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&
/^previous/.test(c)||this.menu.last()&&/^next/.test(c)){this.element.val(this.term);this.menu.deactivate()}else this.menu[c](d);else this.search(null,d)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(c,d){var f=RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(c,function(b){return f.test(b.label||b.value||b)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var c=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(a(d.target).closest(".ui-menu-item a").length){d.preventDefault();c.select(d)}});this.refresh()},refresh:function(){var c=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(d){c.activate(d,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(c,d){this.deactivate();if(this.hasScroll()){var f=d.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),g=this.element.height();if(f<0)this.element.attr("scrollTop",b+f);else f>g&&this.element.attr("scrollTop",b+f-g+d.height())}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",c,{item:d})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(c,d,f){if(this.active){c=this.active[c+"All"](".ui-menu-item").eq(0);c.length?this.activate(f,c):this.activate(f,this.element.children(d))}else this.activate(f,this.element.children(d))},nextPage:function(c){if(this.hasScroll())if(!this.active||
this.last())this.activate(c,this.element.children(":first"));else{var d=this.active.offset().top,f=this.element.height(),b=this.element.children("li").filter(function(){var g=a(this).offset().top-d-f+a(this).height();return g<10&&g>-10});b.length||(b=this.element.children(":last"));this.activate(c,b)}else this.activate(c,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(c){if(this.hasScroll())if(!this.active||this.first())this.activate(c,this.element.children(":last"));
else{var d=this.active.offset().top,f=this.element.height();result=this.element.children("li").filter(function(){var b=a(this).offset().top-d+f-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(":first"));this.activate(c,result)}else this.activate(c,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(c){this._trigger("selected",c,{item:this.active})}})})(jQuery);
(function(a){var c,d=function(b){a(":ui-button",b.target.form).each(function(){var g=a(this).data("button");setTimeout(function(){g.refresh()},1)})},f=function(b){var g=b.name,h=b.form,n=a([]);if(g)n=h?a(h).find("[name='"+g+"']"):a("[name='"+g+"']",b.ownerDocument).filter(function(){return!this.form});return n};a.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");var b=this,g=this.options,h=this.type==="checkbox"||this.type==="radio",n="ui-state-hover"+(!h?" ui-state-active":"");if(g.label===null)g.label=this.buttonElement.html();if(this.element.is(":disabled"))g.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!g.disabled){a(this).addClass("ui-state-hover");this===c&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",
function(){g.disabled||a(this).removeClass(n)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});h&&this.element.bind("change.button",function(){b.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(g.disabled)return false;a(this).toggleClass("ui-state-active");b.buttonElement.attr("aria-pressed",b.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
function(){if(g.disabled)return false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var r=b.element[0];f(r).not(r).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(g.disabled)return false;a(this).addClass("ui-state-active");c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(g.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",
function(r){if(g.disabled)return false;if(r.keyCode==a.ui.keyCode.SPACE||r.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(r){r.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",g.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?
"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var b=this.element.is(":checked");b&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}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 ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,g){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")g?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")f(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")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(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement,g=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),
h=this.options.icons,n=h.primary&&h.secondary;if(h.primary||h.secondary){b.addClass("ui-button-text-icon"+(n?"s":""));h.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+h.primary+"'></span>");h.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+h.secondary+"'></span>");if(!this.options.text){b.addClass(n?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");this.hasTitle||b.attr("title",g)}}else b.addClass("ui-button-text-only")}}});
a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(b,g){b==="disabled"&&this.buttons.button("option",b,g);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a){a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var c=this,d=c.options,f=d.title||c.originalTitle||"&#160;",b=a.ui.dialog.getTitleId(c.element),g=(c.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(r){if(d.closeOnEscape&&r.keyCode&&r.keyCode===a.ui.keyCode.ESCAPE){c.close(r);r.preventDefault()}}).attr({role:"dialog","aria-labelledby":b}).mousedown(function(r){c.moveToTop(false,r)});c.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var h=(c.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),
n=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){n.addClass("ui-state-hover")},function(){n.removeClass("ui-state-hover")}).focus(function(){n.addClass("ui-state-focus")}).blur(function(){n.removeClass("ui-state-focus")}).click(function(r){c.close(r);return false}).appendTo(h);(c.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(n);a("<span></span>").addClass("ui-dialog-title").attr("id",
b).html(f).prependTo(h);if(a.isFunction(d.beforeclose)&&!a.isFunction(d.beforeClose))d.beforeClose=d.beforeclose;h.find("*").add(h).disableSelection();d.draggable&&a.fn.draggable&&c._makeDraggable();d.resizable&&a.fn.resizable&&c._makeResizable();c._createButtons(d.buttons);c._isOpen=false;a.fn.bgiframe&&g.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(c){var d=this,f;if(false!==d._trigger("beforeClose",c)){d.overlay&&d.overlay.destroy();d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide)d.uiDialog.hide(d.options.hide,function(){d._trigger("close",c)});else{d.uiDialog.hide();d._trigger("close",c)}a.ui.dialog.overlay.resize();if(d.options.modal){f=0;a(".ui-dialog").each(function(){if(this!==
d.uiDialog[0])f=Math.max(f,a(this).css("z-index"))});a.ui.dialog.maxZ=f}return d}},isOpen:function(){return this._isOpen},moveToTop:function(c,d){var f=this.options;if(f.modal&&!c||!f.stack&&!f.modal)return this._trigger("focus",d);if(f.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=f.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}c={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};a.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(c);this._trigger("focus",d);return this},open:function(){if(!this._isOpen){var c=this.options,d=this.uiDialog;this.overlay=c.modal?new a.ui.dialog.overlay(this):null;d.next().length&&d.appendTo("body");this._size();this._position(c.position);d.show(c.show);this.moveToTop(true);c.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",this),g=b.filter(":first");b=b.filter(":last");if(f.target===
b[0]&&!f.shiftKey){g.focus(1);return false}else if(f.target===g[0]&&f.shiftKey){b.focus(1);return false}}});a([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(c){var d=this,f=false,b=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");d.uiDialog.find(".ui-dialog-buttonpane").remove();typeof c==="object"&&
c!==null&&a.each(c,function(){return!(f=true)});if(f){a.each(c,function(g,h){g=a('<button type="button"></button>').text(g).click(function(){h.apply(d.element[0],arguments)}).appendTo(b);a.fn.button&&g.button()});b.appendTo(d.uiDialog)}},_makeDraggable:function(){function c(h){return{position:h.position,offset:h.offset}}var d=this,f=d.options,b=a(document),g;d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(h,
n){g=f.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");d._trigger("dragStart",h,c(n))},drag:function(h,n){d._trigger("drag",h,c(n))},stop:function(h,n){f.position=[n.position.left-b.scrollLeft(),n.position.top-b.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(g);d._trigger("dragStop",h,c(n));a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function d(h){return{originalPosition:h.originalPosition,originalSize:h.originalSize,
position:h.position,size:h.size}}c=c===undefined?this.options.resizable:c;var f=this,b=f.options,g=f.uiDialog.css("position");c=typeof c==="string"?c:"n,e,s,w,se,sw,ne,nw";f.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:f.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:f._minHeight(),handles:c,start:function(h,n){a(this).addClass("ui-dialog-resizing");f._trigger("resizeStart",h,d(n))},resize:function(h,n){f._trigger("resize",h,d(n))},
stop:function(h,n){a(this).removeClass("ui-dialog-resizing");b.height=a(this).height();b.width=a(this).width();f._trigger("resizeStop",h,d(n));a.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(c){var d=[],f=[0,0];c=c||a.ui.dialog.prototype.options.position;if(typeof c==="string"||typeof c==="object"&&
"0"in c){d=c.split?c.split(" "):[c[0],c[1]];if(d.length===1)d[1]=d[0];a.each(["left","top"],function(b,g){if(+d[b]===d[b]){f[b]=d[b];d[b]=g}})}else if(typeof c==="object"){if("left"in c){d[0]="left";f[0]=c.left}else if("right"in c){d[0]="right";f[0]=-c.right}if("top"in c){d[1]="top";f[1]=c.top}else if("bottom"in c){d[1]="bottom";f[1]=-c.bottom}}(c=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:d.join(" "),at:d.join(" "),offset:f.join(" "),of:window,
collision:"fit",using:function(b){var g=a(this).css(b).offset().top;g<0&&a(this).css("top",b.top-g)}});c||this.uiDialog.hide()},_setOption:function(c,d){var f=this.uiDialog,b=f.is(":data(resizable)"),g=false;switch(c){case "beforeclose":c="beforeClose";break;case "buttons":this._createButtons(d);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":f.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?
f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":d?this._makeDraggable():f.draggable("destroy");break;case "height":g=true;break;case "maxHeight":b&&f.resizable("option","maxHeight",d);g=true;break;case "maxWidth":b&&f.resizable("option","maxWidth",d);g=true;break;case "minHeight":b&&f.resizable("option","minHeight",d);g=true;break;case "minWidth":b&&f.resizable("option","minWidth",d);g=true;break;case "position":this._position(d);break;case "resizable":b&&
!d&&f.resizable("destroy");b&&typeof d==="string"&&f.resizable("option","handles",d);!b&&d!==false&&this._makeResizable(d);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":g=true}a.Widget.prototype._setOption.apply(this,arguments);g&&this._size()},_size:function(){var c=this.options,d;this.element.css({width:"auto",minHeight:0,height:0});d=this.uiDialog.css({height:"auto",width:c.width}).height();this.element.css(c.height==="auto"?{minHeight:Math.max(c.minHeight-
d,0),height:"auto"}:{minHeight:0,height:Math.max(c.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.1",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=a.ui.dialog.overlay.create(c)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(c){return c+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(f){return a(f.target).zIndex()>=a.ui.dialog.overlay.maxZ})},1);a(document).bind("keydown.dialog-overlay",function(f){if(c.options.closeOnEscape&&f.keyCode&&f.keyCode===a.ui.keyCode.ESCAPE){c.close(f);f.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var d=
(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&d.bgiframe();this.instances.push(d);return d},destroy:function(c){this.oldInstances.push(this.instances.splice(a.inArray(c,this.instances),1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");c.remove();var d=0;a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var c,
d;if(a.browser.msie&&a.browser.version<7){c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return c<d?a(window).height()+"px":c+"px"}else return a(document).height()+"px"},width:function(){var c,d;if(a.browser.msie&&a.browser.version<7){c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return c<
d?a(window).width()+"px":c+"px"}else return a(document).width()+"px"},resize:function(){var c=a([]);a.each(a.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var c=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=a([]);if(d.range){if(d.range===true){this.range=a("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=a("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range==="min"||d.range==="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(d.values&&d.values.length)for(;a(".ui-slider-handle",this.element).length<d.values.length;)a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(f){f.preventDefault()}).hover(function(){d.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)a(this).blur();
else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(f){a(this).data("index.ui-slider-handle",f)});this.handles.keydown(function(f){var b=true,g=a(this).data("index.ui-slider-handle"),h,n,r;if(!c.options.disabled){switch(f.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:b=
false;if(!c._keySliding){c._keySliding=true;a(this).addClass("ui-state-active");h=c._start(f,g);if(h===false)return}}r=c.options.step;h=c.options.values&&c.options.values.length?n=c.values(g):n=c.value();switch(f.keyCode){case a.ui.keyCode.HOME:n=c._valueMin();break;case a.ui.keyCode.END:n=c._valueMax();break;case a.ui.keyCode.PAGE_UP:n=h+(c._valueMax()-c._valueMin())/5;break;case a.ui.keyCode.PAGE_DOWN:n=h-(c._valueMax()-c._valueMin())/5;break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(h===
c._valueMax())return;n=h+r;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(h===c._valueMin())return;n=h-r}c._slide(f,g,n);return b}}).keyup(function(f){var b=a(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(f,b);c._change(f,b);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options,f,b,g,h,n,r;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();f={x:c.pageX,y:c.pageY};b=this._normValueFromMouse(f);g=this._valueMax()-this._valueMin()+1;n=this;this.handles.each(function(m){var l=Math.abs(b-n.values(m));if(g>l){g=l;h=a(this);r=m}});if(d.range===true&&this.values(1)===d.min){r+=1;h=a(this.handles[r])}if(this._start(c,
r)===false)return false;this._mouseSliding=true;n._handleIndex=r;h.addClass("ui-state-active").focus();d=h.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-d.left-h.width()/2,top:c.pageY-d.top-h.height()/2-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};b=this._normValueFromMouse(f);this._slide(c,r,b);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(c){var d=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,d);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var d;
if(this.orientation==="horizontal"){d=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=c/d;if(d>1)d=1;if(d<0)d=0;if(this.orientation==="vertical")d=1-d;c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*c)},_start:function(c,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=
this.values(d);f.values=this.values()}return this._trigger("start",c,f)},_slide:function(c,d,f){var b;if(this.options.values&&this.options.values.length){b=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&f>b||d===1&&f<b))f=b;if(f!==this.values(d)){b=this.values();b[d]=f;c=this._trigger("slide",c,{handle:this.handles[d],value:f,values:b});this.values(d?0:1);c!==false&&this.values(d,f,true)}}else if(f!==this.value()){c=this._trigger("slide",c,{handle:this.handles[d],
value:f});c!==false&&this.value(f)}},_stop:function(c,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("stop",c,f)},_change:function(c,d){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("change",c,f)}},value:function(c){if(arguments.length){this.options.value=
this._trimAlignValue(c);this._refreshValue();this._change(null,0)}return this._value()},values:function(c,d){var f,b,g;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(d);this._refreshValue();this._change(null,c)}if(arguments.length)if(a.isArray(arguments[0])){f=this.options.values;b=arguments[0];for(g=0;g<f.length;g+=1){f[g]=this._trimAlignValue(b[g]);this._change(null,g)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();
else return this._values()},_setOption:function(c,d){var f,b=0;if(a.isArray(this.options.values))b=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(c){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(f=0;f<b;f+=1)this._change(null,f);this._animateOff=false}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(c){var d,f;if(arguments.length){d=this.options.values[c];
return this._trimAlignValue(d)}else{d=this.options.values.slice();for(f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(d[f]);return d}},_trimAlignValue:function(c){if(c<this._valueMin())return this._valueMin();if(c>this._valueMax())return this._valueMax();var d=this.options.step,f=c%d;c-=f;if(f>=d/2)c+=d;return parseFloat(c.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var c=this.options.range,d=this.options,f=this,b=
!this._animateOff?d.animate:false,g,h={},n,r,m,l;if(this.options.values&&this.options.values.length)this.handles.each(function(q){g=(f.values(q)-f._valueMin())/(f._valueMax()-f._valueMin())*100;h[f.orientation==="horizontal"?"left":"bottom"]=g+"%";a(this).stop(1,1)[b?"animate":"css"](h,d.animate);if(f.options.range===true)if(f.orientation==="horizontal"){if(q===0)f.range.stop(1,1)[b?"animate":"css"]({left:g+"%"},d.animate);if(q===1)f.range[b?"animate":"css"]({width:g-n+"%"},{queue:false,duration:d.animate})}else{if(q===
0)f.range.stop(1,1)[b?"animate":"css"]({bottom:g+"%"},d.animate);if(q===1)f.range[b?"animate":"css"]({height:g-n+"%"},{queue:false,duration:d.animate})}n=g});else{r=this.value();m=this._valueMin();l=this._valueMax();g=l!==m?(r-m)/(l-m)*100:0;h[f.orientation==="horizontal"?"left":"bottom"]=g+"%";this.handle.stop(1,1)[b?"animate":"css"](h,d.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[b?"animate":"css"]({width:g+"%"},d.animate);if(c==="max"&&this.orientation==="horizontal")this.range[b?
"animate":"css"]({width:100-g+"%"},{queue:false,duration:d.animate});if(c==="min"&&this.orientation==="vertical")this.range.stop(1,1)[b?"animate":"css"]({height:g+"%"},d.animate);if(c==="max"&&this.orientation==="vertical")this.range[b?"animate":"css"]({height:100-g+"%"},{queue:false,duration:d.animate})}}});a.extend(a.ui.slider,{version:"1.8.1"})})(jQuery);
(function(a){var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(f,b){if(f=="selected")this.options.collapsible&&b==this.options.selected||
this.select(b);else{this.options[f]=b;this._tabify()}},_tabId:function(f){return f.title&&f.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++c},_sanitizeSelector:function(f){return f.replace(/:/g,"\\:")},_cookie:function(){var f=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++d);return a.cookie.apply(null,[f].concat(a.makeArray(arguments)))},_ui:function(f,b){return{tab:f,panel:b,index:this.anchors.index(f)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var f=
a(this);f.html(f.data("label.tabs")).removeData("label.tabs")})},_tabify:function(f){function b(z,i){z.css({display:""});!a.support.opacity&&i.opacity&&z[0].style.removeAttribute("filter")}this.list=this.element.find("ol,ul").eq(0);this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);var g=this,h=this.options,n=/^#.+/;this.anchors.each(function(z,i){var N=a(i).attr("href"),J=N.split("#")[0],A;if(J&&(J===location.toString().split("#")[0]||
(A=a("base")[0])&&J===A.href)){N=i.hash;i.href=N}if(n.test(N))g.panels=g.panels.add(g._sanitizeSelector(N));else if(N!="#"){a.data(i,"href.tabs",N);a.data(i,"load.tabs",N.replace(/#.*$/,""));N=g._tabId(i);i.href="#"+N;i=a("#"+N);if(!i.length){i=a(h.panelTemplate).attr("id",N).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(g.panels[z-1]||g.list);i.data("destroy.tabs",true)}g.panels=g.panels.add(i)}else h.disabled.push(z)});if(f){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(h.selected===undefined){location.hash&&this.anchors.each(function(z,i){if(i.hash==location.hash){h.selected=z;return false}});if(typeof h.selected!="number"&&h.cookie)h.selected=parseInt(g._cookie(),10);if(typeof h.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)h.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));h.selected=h.selected||(this.lis.length?0:-1)}else if(h.selected===null)h.selected=-1;h.selected=h.selected>=0&&this.anchors[h.selected]||h.selected<0?h.selected:0;h.disabled=a.unique(h.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(z){return g.lis.index(z)}))).sort();a.inArray(h.selected,h.disabled)!=-1&&h.disabled.splice(a.inArray(h.selected,h.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(h.selected>=0&&this.anchors.length){this.panels.eq(h.selected).removeClass("ui-tabs-hide");this.lis.eq(h.selected).addClass("ui-tabs-selected ui-state-active");g.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[h.selected],g.panels[h.selected]))});this.load(h.selected)}a(window).bind("unload",function(){g.lis.add(g.anchors).unbind(".tabs");g.lis=g.anchors=g.panels=null})}else h.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[h.collapsible?"addClass":
"removeClass"]("ui-tabs-collapsible");h.cookie&&this._cookie(h.selected,h.cookie);f=0;for(var r;r=this.lis[f];f++)a(r)[a.inArray(f,h.disabled)!=-1&&!a(r).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");h.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(h.event!="mouseover"){var m=function(z,i){i.is(":not(.ui-state-disabled)")&&i.addClass("ui-state-"+z)};this.lis.bind("mouseover.tabs",function(){m("hover",a(this))});this.lis.bind("mouseout.tabs",
function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){m("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var l,q;if(h.fx)if(a.isArray(h.fx)){l=h.fx[0];q=h.fx[1]}else l=q=h.fx;var u=q?function(z,i){a(z).closest("li").addClass("ui-tabs-selected ui-state-active");i.hide().removeClass("ui-tabs-hide").animate(q,q.duration||"normal",function(){b(i,q);g._trigger("show",null,g._ui(z,i[0]))})}:
function(z,i){a(z).closest("li").addClass("ui-tabs-selected ui-state-active");i.removeClass("ui-tabs-hide");g._trigger("show",null,g._ui(z,i[0]))},w=l?function(z,i){i.animate(l,l.duration||"normal",function(){g.lis.removeClass("ui-tabs-selected ui-state-active");i.addClass("ui-tabs-hide");b(i,l);g.element.dequeue("tabs")})}:function(z,i){g.lis.removeClass("ui-tabs-selected ui-state-active");i.addClass("ui-tabs-hide");g.element.dequeue("tabs")};this.anchors.bind(h.event+".tabs",function(){var z=this,
i=a(this).closest("li"),N=g.panels.filter(":not(.ui-tabs-hide)"),J=a(g._sanitizeSelector(this.hash));if(i.hasClass("ui-tabs-selected")&&!h.collapsible||i.hasClass("ui-state-disabled")||i.hasClass("ui-state-processing")||g._trigger("select",null,g._ui(this,J[0]))===false){this.blur();return false}h.selected=g.anchors.index(this);g.abort();if(h.collapsible)if(i.hasClass("ui-tabs-selected")){h.selected=-1;h.cookie&&g._cookie(h.selected,h.cookie);g.element.queue("tabs",function(){w(z,N)}).dequeue("tabs");
this.blur();return false}else if(!N.length){h.cookie&&g._cookie(h.selected,h.cookie);g.element.queue("tabs",function(){u(z,J)});g.load(g.anchors.index(this));this.blur();return false}h.cookie&&g._cookie(h.selected,h.cookie);if(J.length){N.length&&g.element.queue("tabs",function(){w(z,N)});g.element.queue("tabs",function(){u(z,J)});g.load(g.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},
destroy:function(){var f=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var g=a(this).unbind(".tabs");a.each(["href","load","cache"],function(h,n){g.removeData(n+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,
"destroy.tabs")?a(this).remove():a(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});f.cookie&&this._cookie(null,f.cookie);return this},add:function(f,b,g){if(g===undefined)g=this.anchors.length;var h=this,n=this.options;b=a(n.tabTemplate.replace(/#\{href\}/g,f).replace(/#\{label\}/g,b));f=!f.indexOf("#")?f.replace("#",""):this._tabId(a("a",b)[0]);b.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var r=a("#"+f);r.length||(r=a(n.panelTemplate).attr("id",f).data("destroy.tabs",true));r.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(g>=this.lis.length){b.appendTo(this.list);r.appendTo(this.list[0].parentNode)}else{b.insertBefore(this.lis[g]);r.insertBefore(this.panels[g])}n.disabled=a.map(n.disabled,function(m){return m>=g?++m:m});this._tabify();if(this.anchors.length==1){n.selected=0;b.addClass("ui-tabs-selected ui-state-active");r.removeClass("ui-tabs-hide");
this.element.queue("tabs",function(){h._trigger("show",null,h._ui(h.anchors[0],h.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[g],this.panels[g]));return this},remove:function(f){var b=this.options,g=this.lis.eq(f).remove(),h=this.panels.eq(f).remove();if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(f+(f+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(n){return n!=f}),function(n){return n>=f?--n:n});this._tabify();this._trigger("remove",
null,this._ui(g.find("a")[0],h[0]));return this},enable:function(f){var b=this.options;if(a.inArray(f,b.disabled)!=-1){this.lis.eq(f).removeClass("ui-state-disabled");b.disabled=a.grep(b.disabled,function(g){return g!=f});this._trigger("enable",null,this._ui(this.anchors[f],this.panels[f]));return this}},disable:function(f){var b=this.options;if(f!=b.selected){this.lis.eq(f).addClass("ui-state-disabled");b.disabled.push(f);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))}return this},
select:function(f){if(typeof f=="string")f=this.anchors.index(this.anchors.filter("[href$="+f+"]"));else if(f===null)f=-1;if(f==-1&&this.options.collapsible)f=this.options.selected;this.anchors.eq(f).trigger(this.options.event+".tabs");return this},load:function(f){var b=this,g=this.options,h=this.anchors.eq(f)[0],n=a.data(h,"load.tabs");this.abort();if(!n||this.element.queue("tabs").length!==0&&a.data(h,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(f).addClass("ui-state-processing");
if(g.spinner){var r=a("span",h);r.data("label.tabs",r.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:n,success:function(m,l){a(b._sanitizeSelector(h.hash)).html(m);b._cleanup();g.cache&&a.data(h,"cache.tabs",true);b._trigger("load",null,b._ui(b.anchors[f],b.panels[f]));try{g.ajaxOptions.success(m,l)}catch(q){}},error:function(m,l){b._cleanup();b._trigger("load",null,b._ui(b.anchors[f],b.panels[f]));try{g.ajaxOptions.error(m,l,f,h)}catch(q){}}}));b.element.dequeue("tabs");return this}},
abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(f,b){this.anchors.eq(f).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.1"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(f,b){var g=this,h=this.options,n=g._rotate||(g._rotate=
function(r){clearTimeout(g.rotation);g.rotation=setTimeout(function(){var m=h.selected;g.select(++m<g.anchors.length?m:0)},f);r&&r.stopPropagation()});b=g._unrotate||(g._unrotate=!b?function(r){r.clientX&&g.rotate(null)}:function(){t=h.selected;n()});if(f){this.element.bind("tabsshow",n);this.anchors.bind(h.event+".tabs",b);n()}else{clearTimeout(g.rotation);this.element.unbind("tabsshow",n);this.anchors.unbind(h.event+".tabs",b);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(a){function c(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"_default",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function d(b,g){a.extend(b,
g);for(var h in g)if(g[h]==null||g[h]==undefined)b[h]=g[h];return b}a.extend(a.ui,{datepicker:{version:"1.8.1"}});var f=(new Date).getTime();a.extend(c.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){d(this._defaults,b||{});return this},_attachDatepicker:function(b,g){var h=null,n;for(n in this._defaults){var r=b.getAttribute("date:"+n);if(r){h=h||{};try{h[n]=eval(r)}catch(m){h[n]=
r}}}n=b.nodeName.toLowerCase();r=n=="div"||n=="span";if(!b.id)b.id="dp"+ ++this.uuid;var l=this._newInst(a(b),r);l.settings=a.extend({},g||{},h||{});if(n=="input")this._connectDatepicker(b,l);else r&&this._inlineDatepicker(b,l)},_newInst:function(b,g){return{id:b[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:g,dpDiv:!g?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(b,g){var h=a(b);g.append=a([]);g.trigger=a([]);if(!h.hasClass(this.markerClassName)){this._attachments(h,g);h.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(n,r,m){g.settings[r]=m}).bind("getData.datepicker",function(n,r){return this._get(g,r)});this._autoSize(g);a.data(b,"datepicker",g)}},_attachments:function(b,g){var h=this._get(g,"appendText"),n=this._get(g,"isRTL");g.append&&
g.append.remove();if(h){g.append=a('<span class="'+this._appendClass+'">'+h+"</span>");b[n?"before":"after"](g.append)}b.unbind("focus",this._showDatepicker);g.trigger&&g.trigger.remove();h=this._get(g,"showOn");if(h=="focus"||h=="both")b.focus(this._showDatepicker);if(h=="button"||h=="both"){h=this._get(g,"buttonText");var r=this._get(g,"buttonImage");g.trigger=a(this._get(g,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:r,alt:h,title:h}):a('<button type="button"></button>').addClass(this._triggerClass).html(r==
""?h:a("<img/>").attr({src:r,alt:h,title:h})));b[n?"before":"after"](g.trigger);g.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var g=new Date(2009,11,20),h=this._get(b,"dateFormat");if(h.match(/[DM]/)){var n=function(r){for(var m=0,l=0,q=0;q<r.length;q++)if(r[q].length>m){m=r[q].length;l=q}return l};g.setMonth(n(this._get(b,
h.match(/MM/)?"monthNames":"monthNamesShort")));g.setDate(n(this._get(b,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())}b.input.attr("size",this._formatDate(b,g).length)}},_inlineDatepicker:function(b,g){var h=a(b);if(!h.hasClass(this.markerClassName)){h.addClass(this.markerClassName).append(g.dpDiv).bind("setData.datepicker",function(n,r,m){g.settings[r]=m}).bind("getData.datepicker",function(n,r){return this._get(g,r)});a.data(b,"datepicker",g);this._setDate(g,this._getDefaultDate(g),
true);this._updateDatepicker(g);this._updateAlternate(g)}},_dialogDatepicker:function(b,g,h,n,r){b=this._dialogInst;if(!b){b="dp"+ ++this.uuid;this._dialogInput=a('<input type="text" id="'+b+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}d(b.settings,n||{});g=g&&g.constructor==Date?
this._formatDate(b,g):g;this._dialogInput.val(g);this._pos=r?r.length?r:[r.pageX,r.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");b.settings.onSelect=h;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var g=a(b),h=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var n=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(n=="input"){h.append.remove();h.trigger.remove();g.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(n=="div"||n=="span")g.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(b){var g=a(b),h=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var n=b.nodeName.toLowerCase();if(n=="input"){b.disabled=false;h.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(n=="div"||n=="span")g.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(r){return r==b?null:r})}},_disableDatepicker:function(b){var g=
a(b),h=a.data(b,"datepicker");if(g.hasClass(this.markerClassName)){var n=b.nodeName.toLowerCase();if(n=="input"){b.disabled=true;h.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(n=="div"||n=="span")g.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(r){return r==b?null:r});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;
for(var g=0;g<this._disabledInputs.length;g++)if(this._disabledInputs[g]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(g){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,g,h){var n=this._getInst(b);if(arguments.length==2&&typeof g=="string")return g=="defaults"?a.extend({},a.datepicker._defaults):n?g=="all"?a.extend({},n.settings):this._get(n,g):null;var r=g||{};if(typeof g=="string"){r={};r[g]=h}if(n){this._curInst==n&&
this._hideDatepicker();var m=this._getDateDatepicker(b,true);d(n.settings,r);this._attachments(a(b),n);this._autoSize(n);this._setDateDatepicker(b,m);this._updateDatepicker(n)}},_changeDatepicker:function(b,g,h){this._optionDatepicker(b,g,h)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,g){if(b=this._getInst(b)){this._setDate(b,g);this._updateDatepicker(b);this._updateAlternate(b)}},_getDateDatepicker:function(b,g){(b=this._getInst(b))&&
!b.inline&&this._setDateFromField(b,g);return b?this._getDate(b):null},_doKeyDown:function(b){var g=a.datepicker._getInst(b.target),h=true,n=g.dpDiv.is(".ui-datepicker-rtl");g._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();h=false;break;case 13:h=a("td."+a.datepicker._dayOverClass,g.dpDiv).add(a("td."+a.datepicker._currentClass,g.dpDiv));h[0]?a.datepicker._selectDay(b.target,g.selectedMonth,g.selectedYear,h[0]):a.datepicker._hideDatepicker();
return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)a.datepicker._clearDate(b.target);h=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)a.datepicker._gotoToday(b.target);h=b.ctrlKey||
b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,n?+1:-1,"D");h=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,-7,"D");h=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,n?-1:+1,"D");h=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,
b.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,+7,"D");h=b.ctrlKey||b.metaKey;break;default:h=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else h=false;if(h){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var g=a.datepicker._getInst(b.target);if(a.datepicker._get(g,"constrainInput")){g=a.datepicker._possibleChars(a.datepicker._get(g,"dateFormat"));
var h=String.fromCharCode(b.charCode==undefined?b.keyCode:b.charCode);return b.ctrlKey||h<" "||!g||g.indexOf(h)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(g){a.datepicker.log(g)}return true},_showDatepicker:function(b){b=b.target||
b;if(b.nodeName.toLowerCase()!="input")b=a("input",b.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var g=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=g&&a.datepicker._curInst.dpDiv.stop(true,true);var h=a.datepicker._get(g,"beforeShow");d(g.settings,h?h.apply(b,[b,g]):{});g.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(g);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(b);
a.datepicker._pos[1]+=b.offsetHeight}var n=false;a(b).parents().each(function(){n|=a(this).css("position")=="fixed";return!n});if(n&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;g.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(g);h=a.datepicker._checkOffset(g,h,n);g.dpDiv.css({position:a.datepicker._inDialog&&
a.blockUI?"static":n?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"});if(!g.inline){h=a.datepicker._get(g,"showAnim");var r=a.datepicker._get(g,"duration"),m=function(){a.datepicker._datepickerShowing=true;var l=a.datepicker._getBorders(g.dpDiv);g.dpDiv.find("iframe.ui-datepicker-cover").css({left:-l[0],top:-l[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()})};g.dpDiv.zIndex(a(b).zIndex()+1);a.effects&&a.effects[h]?g.dpDiv.show(h,a.datepicker._get(g,"showOptions"),r,
m):g.dpDiv[h||"show"](h?r:null,m);if(!h||!r)m();g.input.is(":visible")&&!g.input.is(":disabled")&&g.input.focus();a.datepicker._curInst=g}}},_updateDatepicker:function(b){var g=this,h=a.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b)).find("iframe.ui-datepicker-cover").css({left:-h[0],top:-h[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){a(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!g._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");a(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();h=this._getNumberOfMonths(b);var n=h[1];n>1?b.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(h[0]!=1||h[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus()},_getBorders:function(b){var g=function(h){return{thin:1,medium:2,thick:3}[h]||h};return[parseFloat(g(b.css("border-left-width"))),parseFloat(g(b.css("border-top-width")))]},_checkOffset:function(b,g,h){var n=b.dpDiv.outerWidth(),r=b.dpDiv.outerHeight(),m=b.input?b.input.outerWidth():0,l=b.input?b.input.outerHeight():0,q=document.documentElement.clientWidth+a(document).scrollLeft(),
u=document.documentElement.clientHeight+a(document).scrollTop();g.left-=this._get(b,"isRTL")?n-m:0;g.left-=h&&g.left==b.input.offset().left?a(document).scrollLeft():0;g.top-=h&&g.top==b.input.offset().top+l?a(document).scrollTop():0;g.left-=Math.min(g.left,g.left+n>q&&q>n?Math.abs(g.left+n-q):0);g.top-=Math.min(g.top,g.top+r>u&&u>r?Math.abs(r+l):0);return g},_findPos:function(b){for(var g=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[g?"previousSibling":"nextSibling"];
b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var g=this._curInst;if(!(!g||b&&g!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(g,"showAnim");var h=this._get(g,"duration"),n=function(){a.datepicker._tidyDialog(g);this._curInst=null};a.effects&&a.effects[b]?g.dpDiv.hide(b,a.datepicker._get(g,"showOptions"),h,n):g.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?h:null,n);b||n();if(b=this._get(g,"onClose"))b.apply(g.input?g.input[0]:null,[g.input?g.input.val():
"",g]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&
!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,g,h){b=a(b);var n=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(n,g+(h=="M"?this._get(n,"showCurrentAtPos"):0),h);this._updateDatepicker(n)}},_gotoToday:function(b){b=a(b);var g=this._getInst(b[0]);if(this._get(g,"gotoCurrent")&&g.currentDay){g.selectedDay=g.currentDay;g.drawMonth=g.selectedMonth=g.currentMonth;
g.drawYear=g.selectedYear=g.currentYear}else{var h=new Date;g.selectedDay=h.getDate();g.drawMonth=g.selectedMonth=h.getMonth();g.drawYear=g.selectedYear=h.getFullYear()}this._notifyChange(g);this._adjustDate(b)},_selectMonthYear:function(b,g,h){b=a(b);var n=this._getInst(b[0]);n._selectingMonthYear=false;n["selected"+(h=="M"?"Month":"Year")]=n["draw"+(h=="M"?"Month":"Year")]=parseInt(g.options[g.selectedIndex].value,10);this._notifyChange(n);this._adjustDate(b)},_clickMonthYear:function(b){b=this._getInst(a(b)[0]);
b.input&&b._selectingMonthYear&&!a.browser.msie&&b.input.focus();b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(b,g,h,n){var r=a(b);if(!(a(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0]))){r=this._getInst(r[0]);r.selectedDay=r.currentDay=a("a",n).html();r.selectedMonth=r.currentMonth=g;r.selectedYear=r.currentYear=h;this._selectDate(b,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear))}},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,
"")},_selectDate:function(b,g){b=this._getInst(a(b)[0]);g=g!=null?g:this._formatDate(b);b.input&&b.input.val(g);this._updateAlternate(b);var h=this._get(b,"onSelect");if(h)h.apply(b.input?b.input[0]:null,[g,b]);else b.input&&b.input.trigger("change");if(b.inline)this._updateDatepicker(b);else{this._hideDatepicker();this._lastInput=b.input[0];typeof b.input[0]!="object"&&b.input.focus();this._lastInput=null}},_updateAlternate:function(b){var g=this._get(b,"altField");if(g){var h=this._get(b,"altFormat")||
this._get(b,"dateFormat"),n=this._getDate(b),r=this.formatDate(h,n,this._getFormatConfig(b));a(g).each(function(){a(this).val(r)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var g=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((g-b)/864E5)/7)+1},parseDate:function(b,g,h){if(b==null||g==null)throw"Invalid arguments";g=typeof g=="object"?g.toString():g+"";if(g=="")return null;
for(var n=(h?h.shortYearCutoff:null)||this._defaults.shortYearCutoff,r=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,m=(h?h.dayNames:null)||this._defaults.dayNames,l=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort,q=(h?h.monthNames:null)||this._defaults.monthNames,u=h=-1,w=-1,z=-1,i=false,N=function(K){(K=M+1<b.length&&b.charAt(M+1)==K)&&M++;return K},J=function(K){N(K);K=RegExp("^\\d{1,"+(K=="@"?14:K=="!"?20:K=="y"?4:K=="o"?3:2)+"}");K=g.substring(U).match(K);if(!K)throw"Missing number at position "+
U;U+=K[0].length;return parseInt(K[0],10)},A=function(K,V,ba){K=N(K)?ba:V;for(V=0;V<K.length;V++)if(g.substr(U,K[V].length)==K[V]){U+=K[V].length;return V+1}throw"Unknown name at position "+U;},P=function(){if(g.charAt(U)!=b.charAt(M))throw"Unexpected literal at position "+U;U++},U=0,M=0;M<b.length;M++)if(i)if(b.charAt(M)=="'"&&!N("'"))i=false;else P();else switch(b.charAt(M)){case "d":w=J("d");break;case "D":A("D",r,m);break;case "o":z=J("o");break;case "m":u=J("m");break;case "M":u=A("M",l,q);break;
case "y":h=J("y");break;case "@":var H=new Date(J("@"));h=H.getFullYear();u=H.getMonth()+1;w=H.getDate();break;case "!":H=new Date((J("!")-this._ticksTo1970)/1E4);h=H.getFullYear();u=H.getMonth()+1;w=H.getDate();break;case "'":if(N("'"))P();else i=true;break;default:P()}if(h==-1)h=(new Date).getFullYear();else if(h<100)h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100);if(z>-1){u=1;w=z;do{n=this._getDaysInMonth(h,u-1);if(w<=n)break;u++;w-=n}while(1)}H=this._daylightSavingAdjust(new Date(h,
u-1,w));if(H.getFullYear()!=h||H.getMonth()+1!=u||H.getDate()!=w)throw"Invalid date";return H},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(b,g,h){if(!g)return"";var n=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,r=(h?
h.dayNames:null)||this._defaults.dayNames,m=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort;h=(h?h.monthNames:null)||this._defaults.monthNames;var l=function(N){(N=i+1<b.length&&b.charAt(i+1)==N)&&i++;return N},q=function(N,J,A){J=""+J;if(l(N))for(;J.length<A;)J="0"+J;return J},u=function(N,J,A,P){return l(N)?P[J]:A[J]},w="",z=false;if(g)for(var i=0;i<b.length;i++)if(z)if(b.charAt(i)=="'"&&!l("'"))z=false;else w+=b.charAt(i);else switch(b.charAt(i)){case "d":w+=q("d",g.getDate(),2);break;
case "D":w+=u("D",g.getDay(),n,r);break;case "o":w+=q("o",(g.getTime()-(new Date(g.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":w+=q("m",g.getMonth()+1,2);break;case "M":w+=u("M",g.getMonth(),m,h);break;case "y":w+=l("y")?g.getFullYear():(g.getYear()%100<10?"0":"")+g.getYear()%100;break;case "@":w+=g.getTime();break;case "!":w+=g.getTime()*1E4+this._ticksTo1970;break;case "'":if(l("'"))w+="'";else z=true;break;default:w+=b.charAt(i)}return w},_possibleChars:function(b){for(var g="",h=false,
n=function(m){(m=r+1<b.length&&b.charAt(r+1)==m)&&r++;return m},r=0;r<b.length;r++)if(h)if(b.charAt(r)=="'"&&!n("'"))h=false;else g+=b.charAt(r);else switch(b.charAt(r)){case "d":case "m":case "y":case "@":g+="0123456789";break;case "D":case "M":return null;case "'":if(n("'"))g+="'";else h=true;break;default:g+=b.charAt(r)}return g},_get:function(b,g){return b.settings[g]!==undefined?b.settings[g]:this._defaults[g]},_setDateFromField:function(b,g){if(b.input.val()!=b.lastVal){var h=this._get(b,"dateFormat"),
n=b.lastVal=b.input?b.input.val():null,r,m;r=m=this._getDefaultDate(b);var l=this._getFormatConfig(b);try{r=this.parseDate(h,n,l)||m}catch(q){this.log(q);n=g?"":n}b.selectedDay=r.getDate();b.drawMonth=b.selectedMonth=r.getMonth();b.drawYear=b.selectedYear=r.getFullYear();b.currentDay=n?r.getDate():0;b.currentMonth=n?r.getMonth():0;b.currentYear=n?r.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},
_determineDate:function(b,g,h){var n=function(m){var l=new Date;l.setDate(l.getDate()+m);return l},r=function(m){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),m,a.datepicker._getFormatConfig(b))}catch(l){}var q=(m.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,u=q.getFullYear(),w=q.getMonth();q=q.getDate();for(var z=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=z.exec(m);i;){switch(i[2]||"d"){case "d":case "D":q+=parseInt(i[1],10);break;case "w":case "W":q+=parseInt(i[1],
10)*7;break;case "m":case "M":w+=parseInt(i[1],10);q=Math.min(q,a.datepicker._getDaysInMonth(u,w));break;case "y":case "Y":u+=parseInt(i[1],10);q=Math.min(q,a.datepicker._getDaysInMonth(u,w))}i=z.exec(m)}return new Date(u,w,q)};if(g=(g=g==null?h:typeof g=="string"?r(g):typeof g=="number"?isNaN(g)?h:n(g):g)&&g.toString()=="Invalid Date"?h:g){g.setHours(0);g.setMinutes(0);g.setSeconds(0);g.setMilliseconds(0)}return this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>
12?b.getHours()+2:0);return b},_setDate:function(b,g,h){var n=!g,r=b.selectedMonth,m=b.selectedYear;g=this._restrictMinMax(b,this._determineDate(b,g,new Date));b.selectedDay=b.currentDay=g.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=g.getMonth();b.drawYear=b.selectedYear=b.currentYear=g.getFullYear();if((r!=b.selectedMonth||m!=b.selectedYear)&&!h)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(n?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&
b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(b){var g=new Date;g=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth(),g.getDate()));var h=this._get(b,"isRTL"),n=this._get(b,"showButtonPanel"),r=this._get(b,"hideIfNoPrevNext"),m=this._get(b,"navigationAsDateFormat"),l=this._getNumberOfMonths(b),q=this._get(b,"showCurrentAtPos"),u=this._get(b,"stepMonths"),w=l[0]!=1||l[1]!=1,z=this._daylightSavingAdjust(!b.currentDay?
new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),i=this._getMinMaxDate(b,"min"),N=this._getMinMaxDate(b,"max");q=b.drawMonth-q;var J=b.drawYear;if(q<0){q+=12;J--}if(N){var A=this._daylightSavingAdjust(new Date(N.getFullYear(),N.getMonth()-l[0]*l[1]+1,N.getDate()));for(A=i&&A<i?i:A;this._daylightSavingAdjust(new Date(J,q,1))>A;){q--;if(q<0){q=11;J--}}}b.drawMonth=q;b.drawYear=J;A=this._get(b,"prevText");A=!m?A:this.formatDate(A,this._daylightSavingAdjust(new Date(J,q-u,1)),this._getFormatConfig(b));
A=this._canAdjustMonth(b,-1,J,q)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+b.id+"', -"+u+", 'M');\" title=\""+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+A+"</span></a>":r?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+A+"</span></a>";var P=this._get(b,"nextText");P=!m?P:this.formatDate(P,this._daylightSavingAdjust(new Date(J,
q+u,1)),this._getFormatConfig(b));r=this._canAdjustMonth(b,+1,J,q)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+b.id+"', +"+u+", 'M');\" title=\""+P+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+P+"</span></a>":r?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+P+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+P+"</span></a>";u=this._get(b,"currentText");P=this._get(b,"gotoCurrent")&&
b.currentDay?z:g;u=!m?u:this.formatDate(u,P,this._getFormatConfig(b));m=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+f+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";n=n?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(h?m:"")+(this._isInRange(b,P)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
f+".datepicker._gotoToday('#"+b.id+"');\">"+u+"</button>":"")+(h?"":m)+"</div>":"";m=parseInt(this._get(b,"firstDay"),10);m=isNaN(m)?0:m;u=this._get(b,"showWeek");P=this._get(b,"dayNames");this._get(b,"dayNamesShort");var U=this._get(b,"dayNamesMin"),M=this._get(b,"monthNames"),H=this._get(b,"monthNamesShort"),K=this._get(b,"beforeShowDay"),V=this._get(b,"showOtherMonths"),ba=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var ia=this._getDefaultDate(b),ja="",ha=0;ha<l[0];ha++){for(var pa=
"",ka=0;ka<l[1];ka++){var qa=this._daylightSavingAdjust(new Date(J,q,b.selectedDay)),Y=" ui-corner-all",da="";if(w){da+='<div class="ui-datepicker-group';if(l[1]>1)switch(ka){case 0:da+=" ui-datepicker-group-first";Y=" ui-corner-"+(h?"right":"left");break;case l[1]-1:da+=" ui-datepicker-group-last";Y=" ui-corner-"+(h?"left":"right");break;default:da+=" ui-datepicker-group-middle";Y=""}da+='">'}da+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+Y+'">'+(/all|left/.test(Y)&&ha==
0?h?r:A:"")+(/all|right/.test(Y)&&ha==0?h?A:r:"")+this._generateMonthYearHeader(b,q,J,i,N,ha>0||ka>0,M,H)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var ca=u?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(Y=0;Y<7;Y++){var Z=(Y+m)%7;ca+="<th"+((Y+m+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+P[Z]+'">'+U[Z]+"</span></th>"}da+=ca+"</tr></thead><tbody>";ca=this._getDaysInMonth(J,q);if(J==b.selectedYear&&q==b.selectedMonth)b.selectedDay=
Math.min(b.selectedDay,ca);Y=(this._getFirstDayOfMonth(J,q)-m+7)%7;ca=w?6:Math.ceil((Y+ca)/7);Z=this._daylightSavingAdjust(new Date(J,q,1-Y));for(var ua=0;ua<ca;ua++){da+="<tr>";var va=!u?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(Z)+"</td>";for(Y=0;Y<7;Y++){var la=K?K.apply(b.input?b.input[0]:null,[Z]):[true,""],ma=Z.getMonth()!=q,wa=ma&&!ba||!la[0]||i&&Z<i||N&&Z>N;va+='<td class="'+((Y+m+6)%7>=5?" ui-datepicker-week-end":"")+(ma?" ui-datepicker-other-month":"")+(Z.getTime()==
qa.getTime()&&q==b.selectedMonth&&b._keyEvent||ia.getTime()==Z.getTime()&&ia.getTime()==qa.getTime()?" "+this._dayOverClass:"")+(wa?" "+this._unselectableClass+" ui-state-disabled":"")+(ma&&!V?"":" "+la[1]+(Z.getTime()==z.getTime()?" "+this._currentClass:"")+(Z.getTime()==g.getTime()?" ui-datepicker-today":""))+'"'+((!ma||V)&&la[2]?' title="'+la[2]+'"':"")+(wa?"":' onclick="DP_jQuery_'+f+".datepicker._selectDay('#"+b.id+"',"+Z.getMonth()+","+Z.getFullYear()+', this);return false;"')+">"+(ma&&!V?"&#xa0;":
wa?'<span class="ui-state-default">'+Z.getDate()+"</span>":'<a class="ui-state-default'+(Z.getTime()==g.getTime()?" ui-state-highlight":"")+(Z.getTime()==z.getTime()?" ui-state-active":"")+(ma?" ui-priority-secondary":"")+'" href="#">'+Z.getDate()+"</a>")+"</td>";Z.setDate(Z.getDate()+1);Z=this._daylightSavingAdjust(Z)}da+=va+"</tr>"}q++;if(q>11){q=0;J++}da+="</tbody></table>"+(w?"</div>"+(l[0]>0&&ka==l[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");pa+=da}ja+=pa}ja+=n+(a.browser.msie&&
parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");b._keyEvent=false;return ja},_generateMonthYearHeader:function(b,g,h,n,r,m,l,q){var u=this._get(b,"changeMonth"),w=this._get(b,"changeYear"),z=this._get(b,"showMonthAfterYear"),i='<div class="ui-datepicker-title">',N="";if(m||!u)N+='<span class="ui-datepicker-month">'+l[g]+"</span>";else{l=n&&n.getFullYear()==h;var J=r&&r.getFullYear()==h;N+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+
f+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+b.id+"');\">";for(var A=0;A<12;A++)if((!l||A>=n.getMonth())&&(!J||A<=r.getMonth()))N+='<option value="'+A+'"'+(A==g?' selected="selected"':"")+">"+q[A]+"</option>";N+="</select>"}z||(i+=N+(m||!(u&&w)?"&#xa0;":""));if(m||!w)i+='<span class="ui-datepicker-year">'+h+"</span>";else{q=this._get(b,"yearRange").split(":");var P=(new Date).getFullYear();l=function(U){U=U.match(/c[+-].*/)?h+
parseInt(U.substring(1),10):U.match(/[+-].*/)?P+parseInt(U,10):parseInt(U,10);return isNaN(U)?P:U};g=l(q[0]);q=Math.max(g,l(q[1]||""));g=n?Math.max(g,n.getFullYear()):g;q=r?Math.min(q,r.getFullYear()):q;for(i+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+b.id+"');\">";g<=q;g++)i+='<option value="'+g+'"'+(g==h?' selected="selected"':"")+">"+g+"</option>";i+="</select>"}i+=
this._get(b,"yearSuffix");if(z)i+=(m||!(u&&w)?"&#xa0;":"")+N;i+="</div>";return i},_adjustInstDate:function(b,g,h){var n=b.drawYear+(h=="Y"?g:0),r=b.drawMonth+(h=="M"?g:0);g=Math.min(b.selectedDay,this._getDaysInMonth(n,r))+(h=="D"?g:0);n=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(n,r,g)));b.selectedDay=n.getDate();b.drawMonth=b.selectedMonth=n.getMonth();b.drawYear=b.selectedYear=n.getFullYear();if(h=="M"||h=="Y")this._notifyChange(b)},_restrictMinMax:function(b,g){var h=this._getMinMaxDate(b,
"min");b=this._getMinMaxDate(b,"max");g=h&&g<h?h:g;return b&&g>b?b:g},_notifyChange:function(b){var g=this._get(b,"onChangeMonthYear");if(g)g.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,g){return this._determineDate(b,this._get(b,g+"Date"),null)},_getDaysInMonth:function(b,g){return 32-(new Date(b,g,32)).getDate()},_getFirstDayOfMonth:function(b,
g){return(new Date(b,g,1)).getDay()},_canAdjustMonth:function(b,g,h,n){var r=this._getNumberOfMonths(b);h=this._daylightSavingAdjust(new Date(h,n+(g<0?g:r[0]*r[1]),1));g<0&&h.setDate(this._getDaysInMonth(h.getFullYear(),h.getMonth()));return this._isInRange(b,h)},_isInRange:function(b,g){var h=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");return(!h||g.getTime()>=h.getTime())&&(!b||g.getTime()<=b.getTime())},_getFormatConfig:function(b){var g=this._get(b,"shortYearCutoff");g=typeof g!=
"string"?g:(new Date).getFullYear()%100+parseInt(g,10);return{shortYearCutoff:g,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,g,h,n){if(!g){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}g=g?typeof g=="object"?g:this._daylightSavingAdjust(new Date(n,h,g)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));
return this.formatDate(this._get(b,"dateFormat"),g,this._getFormatConfig(b))}});a.fn.datepicker=function(b){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var g=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));if(b=="option"&&arguments.length==2&&typeof arguments[1]==
"string")return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(g)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new c;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.1";window["DP_jQuery_"+f]=a})(jQuery);
(function(a){a.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(c){if(c===undefined)return this._value();this._setOption("value",c);return this},_setOption:function(c,d){switch(c){case "value":this.options.value=d;this._refreshValue();this._trigger("change")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var c=this.options.value;if(typeof c!=="number")c=0;if(c<this._valueMin())c=this._valueMin();if(c>this._valueMax())c=this._valueMax();return c},_valueMin:function(){return 0},
_valueMax:function(){return 100},_refreshValue:function(){var c=this.value();this.valueDiv[c===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(c+"%");this.element.attr("aria-valuenow",c)}});a.extend(a.ui.progressbar,{version:"1.8.1"})})(jQuery);
jQuery.effects||function(a){function c(m){var l;if(m&&m.constructor==Array&&m.length==3)return m;if(l=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(m))return[parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10)];if(l=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(m))return[parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55];if(l=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(m))return[parseInt(l[1],
16),parseInt(l[2],16),parseInt(l[3],16)];if(l=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(m))return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(m))return h.transparent;return h[a.trim(m).toLowerCase()]}function d(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,l={},q,u;if(m&&m.length&&m[0]&&m[m[0]])for(var w=m.length;w--;){q=m[w];if(typeof m[q]=="string"){u=q.replace(/\-(\w)/g,function(z,i){return i.toUpperCase()});
l[u]=m[q]}}else for(q in m)if(typeof m[q]==="string")l[q]=m[q];return l}function f(m){var l,q;for(l in m){q=m[l];if(q==null||a.isFunction(q)||l in r||/scrollbar/.test(l)||!/color/i.test(l)&&isNaN(parseFloat(q)))delete m[l]}return m}function b(m,l){var q={_:0},u;for(u in l)if(m[u]!=l[u])q[u]=l[u];return q}function g(m,l,q,u){if(typeof m=="object"){u=l;q=null;l=m;m=l.effect}if(a.isFunction(l)){u=l;q=null;l={}}if(a.isFunction(q)){u=q;q=null}if(typeof l=="number"||a.fx.speeds[l]){u=q;q=l;l={}}l=l||{};
q=q||l.duration;q=a.fx.off?0:typeof q=="number"?q:a.fx.speeds[q]||a.fx.speeds._default;u=u||l.complete;return[m,l,q,u]}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(m,l){a.fx.step[l]=function(q){if(!q.colorInit){var u;u=q.elem;var w=l,z;do{z=a.curCSS(u,w);if(z!=""&&z!="transparent"||a.nodeName(u,"body"))break;w="backgroundColor"}while(u=u.parentNode);u=c(z);q.start=u;q.end=c(q.end);q.colorInit=true}q.elem.style[l]=
"rgb("+Math.max(Math.min(parseInt(q.pos*(q.end[0]-q.start[0])+q.start[0],10),255),0)+","+Math.max(Math.min(parseInt(q.pos*(q.end[1]-q.start[1])+q.start[1],10),255),0)+","+Math.max(Math.min(parseInt(q.pos*(q.end[2]-q.start[2])+q.start[2],10),255),0)+")"}});var h={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(m,l,q,u){if(a.isFunction(q)){u=q;q=null}return this.each(function(){var w=a(this),z=w.attr("style")||" ",i=f(d.call(this)),N,J=w.attr("className");a.each(n,function(A,P){m[P]&&w[P+"Class"](m[P])});
N=f(d.call(this));w.attr("className",J);w.animate(b(i,N),l,q,function(){a.each(n,function(A,P){m[P]&&w[P+"Class"](m[P])});if(typeof w.attr("style")=="object"){w.attr("style").cssText="";w.attr("style").cssText=z}else w.attr("style",z);u&&u.apply(this,arguments)})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(m,l,q,u){return l?a.effects.animateClass.apply(this,[{add:m},l,q,u]):this._addClass(m)},_removeClass:a.fn.removeClass,removeClass:function(m,l,q,u){return l?a.effects.animateClass.apply(this,
[{remove:m},l,q,u]):this._removeClass(m)},_toggleClass:a.fn.toggleClass,toggleClass:function(m,l,q,u,w){return typeof l=="boolean"||l===undefined?q?a.effects.animateClass.apply(this,[l?{add:m}:{remove:m},q,u,w]):this._toggleClass(m,l):a.effects.animateClass.apply(this,[{toggle:m},l,q,u])},switchClass:function(m,l,q,u,w){return a.effects.animateClass.apply(this,[{add:l,remove:m},q,u,w])}});a.extend(a.effects,{version:"1.8.1",save:function(m,l){for(var q=0;q<l.length;q++)l[q]!==null&&m.data("ec.storage."+
l[q],m[0].style[l[q]])},restore:function(m,l){for(var q=0;q<l.length;q++)l[q]!==null&&m.css(l[q],m.data("ec.storage."+l[q]))},setMode:function(m,l){if(l=="toggle")l=m.is(":hidden")?"show":"hide";return l},getBaseline:function(m,l){var q;switch(m[0]){case "top":q=0;break;case "middle":q=0.5;break;case "bottom":q=1;break;default:q=m[0]/l.height}switch(m[1]){case "left":m=0;break;case "center":m=0.5;break;case "right":m=1;break;default:m=m[1]/l.width}return{x:m,y:q}},createWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent();
var l={width:m.outerWidth(true),height:m.outerHeight(true),"float":m.css("float")},q=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});m.wrap(q);q=m.parent();if(m.css("position")=="static"){q.css({position:"relative"});m.css({position:"relative"})}else{a.extend(l,{position:m.css("position"),zIndex:m.css("z-index")});a.each(["top","left","bottom","right"],function(u,w){l[w]=m.css(w);if(isNaN(parseInt(l[w],10)))l[w]="auto"});
m.css({position:"relative",top:0,left:0})}return q.css(l).show()},removeWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent().replaceWith(m);return m},setTransition:function(m,l,q,u){u=u||{};a.each(l,function(w,z){unit=m.cssUnit(z);if(unit[0]>0)u[z]=unit[0]*q+unit[1]});return u}});a.fn.extend({effect:function(m){var l=g.apply(this,arguments);l={options:l[1],duration:l[2],callback:l[3]};var q=a.effects[m];return q&&!a.fx.off?q.call(this,l):this},_show:a.fn.show,show:function(m){if(!m||
typeof m=="number"||a.fx.speeds[m])return this._show.apply(this,arguments);else{var l=g.apply(this,arguments);l[1].mode="show";return this.effect.apply(this,l)}},_hide:a.fn.hide,hide:function(m){if(!m||typeof m=="number"||a.fx.speeds[m])return this._hide.apply(this,arguments);else{var l=g.apply(this,arguments);l[1].mode="hide";return this.effect.apply(this,l)}},__toggle:a.fn.toggle,toggle:function(m){if(!m||typeof m=="number"||a.fx.speeds[m]||typeof m=="boolean"||a.isFunction(m))return this.__toggle.apply(this,
arguments);else{var l=g.apply(this,arguments);l[1].mode="toggle";return this.effect.apply(this,l)}},cssUnit:function(m){var l=this.css(m),q=[];a.each(["em","px","%","pt"],function(u,w){if(l.indexOf(w)>0)q=[parseFloat(l),w]});return q}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(m,l,q,u,w){return a.easing[a.easing.def](m,l,q,u,w)},easeInQuad:function(m,l,q,u,w){return u*(l/=w)*l+q},easeOutQuad:function(m,l,q,u,w){return-u*(l/=w)*(l-2)+q},easeInOutQuad:function(m,
l,q,u,w){if((l/=w/2)<1)return u/2*l*l+q;return-u/2*(--l*(l-2)-1)+q},easeInCubic:function(m,l,q,u,w){return u*(l/=w)*l*l+q},easeOutCubic:function(m,l,q,u,w){return u*((l=l/w-1)*l*l+1)+q},easeInOutCubic:function(m,l,q,u,w){if((l/=w/2)<1)return u/2*l*l*l+q;return u/2*((l-=2)*l*l+2)+q},easeInQuart:function(m,l,q,u,w){return u*(l/=w)*l*l*l+q},easeOutQuart:function(m,l,q,u,w){return-u*((l=l/w-1)*l*l*l-1)+q},easeInOutQuart:function(m,l,q,u,w){if((l/=w/2)<1)return u/2*l*l*l*l+q;return-u/2*((l-=2)*l*l*l-2)+
q},easeInQuint:function(m,l,q,u,w){return u*(l/=w)*l*l*l*l+q},easeOutQuint:function(m,l,q,u,w){return u*((l=l/w-1)*l*l*l*l+1)+q},easeInOutQuint:function(m,l,q,u,w){if((l/=w/2)<1)return u/2*l*l*l*l*l+q;return u/2*((l-=2)*l*l*l*l+2)+q},easeInSine:function(m,l,q,u,w){return-u*Math.cos(l/w*(Math.PI/2))+u+q},easeOutSine:function(m,l,q,u,w){return u*Math.sin(l/w*(Math.PI/2))+q},easeInOutSine:function(m,l,q,u,w){return-u/2*(Math.cos(Math.PI*l/w)-1)+q},easeInExpo:function(m,l,q,u,w){return l==0?q:u*Math.pow(2,
10*(l/w-1))+q},easeOutExpo:function(m,l,q,u,w){return l==w?q+u:u*(-Math.pow(2,-10*l/w)+1)+q},easeInOutExpo:function(m,l,q,u,w){if(l==0)return q;if(l==w)return q+u;if((l/=w/2)<1)return u/2*Math.pow(2,10*(l-1))+q;return u/2*(-Math.pow(2,-10*--l)+2)+q},easeInCirc:function(m,l,q,u,w){return-u*(Math.sqrt(1-(l/=w)*l)-1)+q},easeOutCirc:function(m,l,q,u,w){return u*Math.sqrt(1-(l=l/w-1)*l)+q},easeInOutCirc:function(m,l,q,u,w){if((l/=w/2)<1)return-u/2*(Math.sqrt(1-l*l)-1)+q;return u/2*(Math.sqrt(1-(l-=2)*
l)+1)+q},easeInElastic:function(m,l,q,u,w){var z=0,i=u;if(l==0)return q;if((l/=w)==1)return q+u;z||(z=w*0.3);if(i<Math.abs(u)){i=u;m=z/4}else m=z/(2*Math.PI)*Math.asin(u/i);return-(i*Math.pow(2,10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/z))+q},easeOutElastic:function(m,l,q,u,w){var z=0,i=u;if(l==0)return q;if((l/=w)==1)return q+u;z||(z=w*0.3);if(i<Math.abs(u)){i=u;m=z/4}else m=z/(2*Math.PI)*Math.asin(u/i);return i*Math.pow(2,-10*l)*Math.sin((l*w-m)*2*Math.PI/z)+u+q},easeInOutElastic:function(m,l,q,u,w){var z=
0,i=u;if(l==0)return q;if((l/=w/2)==2)return q+u;z||(z=w*0.3*1.5);if(i<Math.abs(u)){i=u;m=z/4}else m=z/(2*Math.PI)*Math.asin(u/i);if(l<1)return-0.5*i*Math.pow(2,10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/z)+q;return i*Math.pow(2,-10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/z)*0.5+u+q},easeInBack:function(m,l,q,u,w,z){if(z==undefined)z=1.70158;return u*(l/=w)*l*((z+1)*l-z)+q},easeOutBack:function(m,l,q,u,w,z){if(z==undefined)z=1.70158;return u*((l=l/w-1)*l*((z+1)*l+z)+1)+q},easeInOutBack:function(m,l,q,u,w,z){if(z==
undefined)z=1.70158;if((l/=w/2)<1)return u/2*l*l*(((z*=1.525)+1)*l-z)+q;return u/2*((l-=2)*l*(((z*=1.525)+1)*l+z)+2)+q},easeInBounce:function(m,l,q,u,w){return u-a.easing.easeOutBounce(m,w-l,0,u,w)+q},easeOutBounce:function(m,l,q,u,w){return(l/=w)<1/2.75?u*7.5625*l*l+q:l<2/2.75?u*(7.5625*(l-=1.5/2.75)*l+0.75)+q:l<2.5/2.75?u*(7.5625*(l-=2.25/2.75)*l+0.9375)+q:u*(7.5625*(l-=2.625/2.75)*l+0.984375)+q},easeInOutBounce:function(m,l,q,u,w){if(l<w/2)return a.easing.easeInBounce(m,l*2,0,u,w)*0.5+q;return a.easing.easeOutBounce(m,
l*2-w,0,u,w)*0.5+u*0.5+q}})}(jQuery);
(function(a){a.effects.blind=function(c){return this.queue(function(){var d=a(this),f=["position","top","left"],b=a.effects.setMode(d,c.options.mode||"hide"),g=c.options.direction||"vertical";a.effects.save(d,f);d.show();var h=a.effects.createWrapper(d).css({overflow:"hidden"}),n=g=="vertical"?"height":"width";g=g=="vertical"?h.height():h.width();b=="show"&&h.css(n,0);var r={};r[n]=b=="show"?g:0;h.animate(r,c.duration,c.options.easing,function(){b=="hide"&&d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);
c.callback&&c.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(a){a.effects.bounce=function(c){return this.queue(function(){var d=a(this),f=["position","top","left"],b=a.effects.setMode(d,c.options.mode||"effect"),g=c.options.direction||"up",h=c.options.distance||20,n=c.options.times||5,r=c.duration||250;/show|hide/.test(b)&&f.push("opacity");a.effects.save(d,f);d.show();a.effects.createWrapper(d);var m=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";h=c.options.distance||(m=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
3);if(b=="show")d.css("opacity",0).css(m,g=="pos"?-h:h);if(b=="hide")h/=n*2;b!="hide"&&n--;if(b=="show"){var l={opacity:1};l[m]=(g=="pos"?"+=":"-=")+h;d.animate(l,r/2,c.options.easing);h/=2;n--}for(l=0;l<n;l++){var q={},u={};q[m]=(g=="pos"?"-=":"+=")+h;u[m]=(g=="pos"?"+=":"-=")+h;d.animate(q,r/2,c.options.easing).animate(u,r/2,c.options.easing);h=b=="hide"?h*2:h/2}if(b=="hide"){l={opacity:0};l[m]=(g=="pos"?"-=":"+=")+h;d.animate(l,r/2,c.options.easing,function(){d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);
c.callback&&c.callback.apply(this,arguments)})}else{q={};u={};q[m]=(g=="pos"?"-=":"+=")+h;u[m]=(g=="pos"?"+=":"-=")+h;d.animate(q,r/2,c.options.easing).animate(u,r/2,c.options.easing,function(){a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(a){a.effects.clip=function(c){return this.queue(function(){var d=a(this),f=["position","top","left","height","width"],b=a.effects.setMode(d,c.options.mode||"hide"),g=c.options.direction||"vertical";a.effects.save(d,f);d.show();var h=a.effects.createWrapper(d).css({overflow:"hidden"});h=d[0].tagName=="IMG"?h:d;var n={size:g=="vertical"?"height":"width",position:g=="vertical"?"top":"left"};g=g=="vertical"?h.height():h.width();if(b=="show"){h.css(n.size,0);h.css(n.position,g/2)}var r={};r[n.size]=
b=="show"?g:0;r[n.position]=b=="show"?0:g/2;h.animate(r,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
(function(a){a.effects.drop=function(c){return this.queue(function(){var d=a(this),f=["position","top","left","opacity"],b=a.effects.setMode(d,c.options.mode||"hide"),g=c.options.direction||"left";a.effects.save(d,f);d.show();a.effects.createWrapper(d);var h=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";var n=c.options.distance||(h=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(b=="show")d.css("opacity",0).css(h,g=="pos"?-n:n);var r={opacity:b=="show"?1:
0};r[h]=(b=="show"?g=="pos"?"+=":"-=":g=="pos"?"-=":"+=")+n;d.animate(r,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(a){a.effects.explode=function(c){return this.queue(function(){var d=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3,f=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":c.options.mode;var b=a(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),n=b.outerHeight(true),r=0;r<d;r++)for(var m=
0;m<f;m++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(h/f),top:-r*(n/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/f,height:n/d,left:g.left+m*(h/f)+(c.options.mode=="show"?(m-Math.floor(f/2))*(h/f):0),top:g.top+r*(n/d)+(c.options.mode=="show"?(r-Math.floor(d/2))*(n/d):0),opacity:c.options.mode=="show"?0:1}).animate({left:g.left+m*(h/f)+(c.options.mode=="show"?0:(m-Math.floor(f/2))*(h/f)),top:g.top+
r*(n/d)+(c.options.mode=="show"?0:(r-Math.floor(d/2))*(n/d)),opacity:c.options.mode=="show"?1:0},c.duration||500);setTimeout(function(){c.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();c.callback&&c.callback.apply(b[0]);b.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);
(function(a){a.effects.fold=function(c){return this.queue(function(){var d=a(this),f=["position","top","left"],b=a.effects.setMode(d,c.options.mode||"hide"),g=c.options.size||15,h=!!c.options.horizFirst,n=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(d,f);d.show();var r=a.effects.createWrapper(d).css({overflow:"hidden"}),m=b=="show"!=h,l=m?["width","height"]:["height","width"];m=m?[r.width(),r.height()]:[r.height(),r.width()];var q=/([0-9]+)%/.exec(g);if(q)g=parseInt(q[1],10)/100*
m[b=="hide"?0:1];if(b=="show")r.css(h?{height:0,width:g}:{height:g,width:0});h={};q={};h[l[0]]=b=="show"?m[0]:g;q[l[1]]=b=="show"?m[1]:0;r.animate(h,n,c.options.easing).animate(q,n,c.options.easing,function(){b=="hide"&&d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(a){a.effects.highlight=function(c){return this.queue(function(){var d=a(this),f=["backgroundImage","backgroundColor","opacity"],b=a.effects.setMode(d,c.options.mode||"show"),g={backgroundColor:d.css("backgroundColor")};if(b=="hide")g.opacity=0;a.effects.save(d,f);d.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(g,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&d.hide();a.effects.restore(d,f);b=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(a){a.effects.pulsate=function(c){return this.queue(function(){var d=a(this),f=a.effects.setMode(d,c.options.mode||"show");times=(c.options.times||5)*2-1;duration=c.duration?c.duration/2:a.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(f=="hide"&&isVisible||f=="show"&&!isVisible)times--;for(f=0;f<times;f++){d.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
c.options.easing,function(){animateTo==0&&d.hide();c.callback&&c.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
(function(a){a.effects.puff=function(c){return this.queue(function(){var d=a(this),f=a.effects.setMode(d,c.options.mode||"hide"),b=parseInt(c.options.percent,10)||150,g=b/100,h={height:d.height(),width:d.width()};a.extend(c.options,{fade:true,mode:f,percent:f=="hide"?b:100,from:f=="hide"?h:{height:h.height*g,width:h.width*g}});d.effect("scale",c.options,c.duration,c.callback);d.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var d=a(this),f=a.extend(true,{},c.options),b=a.effects.setMode(d,
c.options.mode||"effect"),g=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:b=="hide"?0:100),h=c.options.direction||"both",n=c.options.origin;if(b!="effect"){f.origin=n||["middle","center"];f.restore=true}n={height:d.height(),width:d.width()};d.from=c.options.from||(b=="show"?{height:0,width:0}:n);g={y:h!="horizontal"?g/100:1,x:h!="vertical"?g/100:1};d.to={height:n.height*g.y,width:n.width*g.x};if(c.options.fade){if(b=="show"){d.from.opacity=0;d.to.opacity=1}if(b=="hide"){d.from.opacity=
1;d.to.opacity=0}}f.from=d.from;f.to=d.to;f.mode=b;d.effect("size",f,c.duration,c.callback);d.dequeue()})};a.effects.size=function(c){return this.queue(function(){var d=a(this),f=["position","top","left","width","height","overflow","opacity"],b=["position","top","left","overflow","opacity"],g=["width","height","overflow"],h=["fontSize"],n=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=a.effects.setMode(d,
c.options.mode||"effect"),l=c.options.restore||false,q=c.options.scale||"both",u=c.options.origin,w={height:d.height(),width:d.width()};d.from=c.options.from||w;d.to=c.options.to||w;if(u){u=a.effects.getBaseline(u,w);d.from.top=(w.height-d.from.height)*u.y;d.from.left=(w.width-d.from.width)*u.x;d.to.top=(w.height-d.to.height)*u.y;d.to.left=(w.width-d.to.width)*u.x}var z={from:{y:d.from.height/w.height,x:d.from.width/w.width},to:{y:d.to.height/w.height,x:d.to.width/w.width}};if(q=="box"||q=="both"){if(z.from.y!=
z.to.y){f=f.concat(n);d.from=a.effects.setTransition(d,n,z.from.y,d.from);d.to=a.effects.setTransition(d,n,z.to.y,d.to)}if(z.from.x!=z.to.x){f=f.concat(r);d.from=a.effects.setTransition(d,r,z.from.x,d.from);d.to=a.effects.setTransition(d,r,z.to.x,d.to)}}if(q=="content"||q=="both")if(z.from.y!=z.to.y){f=f.concat(h);d.from=a.effects.setTransition(d,h,z.from.y,d.from);d.to=a.effects.setTransition(d,h,z.to.y,d.to)}a.effects.save(d,l?f:b);d.show();a.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);
if(q=="content"||q=="both"){n=n.concat(["marginTop","marginBottom"]).concat(h);r=r.concat(["marginLeft","marginRight"]);g=f.concat(n).concat(r);d.find("*[width]").each(function(){child=a(this);l&&a.effects.save(child,g);var i={height:child.height(),width:child.width()};child.from={height:i.height*z.from.y,width:i.width*z.from.x};child.to={height:i.height*z.to.y,width:i.width*z.to.x};if(z.from.y!=z.to.y){child.from=a.effects.setTransition(child,n,z.from.y,child.from);child.to=a.effects.setTransition(child,
n,z.to.y,child.to)}if(z.from.x!=z.to.x){child.from=a.effects.setTransition(child,r,z.from.x,child.from);child.to=a.effects.setTransition(child,r,z.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){l&&a.effects.restore(child,g)})})}d.animate(d.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);m=="hide"&&d.hide();a.effects.restore(d,l?f:b);a.effects.removeWrapper(d);c.callback&&
c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(a){a.effects.shake=function(c){return this.queue(function(){var d=a(this),f=["position","top","left"];a.effects.setMode(d,c.options.mode||"effect");var b=c.options.direction||"left",g=c.options.distance||20,h=c.options.times||3,n=c.duration||c.options.duration||140;a.effects.save(d,f);d.show();a.effects.createWrapper(d);var r=b=="up"||b=="down"?"top":"left",m=b=="up"||b=="left"?"pos":"neg";b={};var l={},q={};b[r]=(m=="pos"?"-=":"+=")+g;l[r]=(m=="pos"?"+=":"-=")+g*2;q[r]=(m=="pos"?"-=":"+=")+
g*2;d.animate(b,n,c.options.easing);for(g=1;g<h;g++)d.animate(l,n,c.options.easing).animate(q,n,c.options.easing);d.animate(l,n,c.options.easing).animate(b,n/2,c.options.easing,function(){a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(a){a.effects.slide=function(c){return this.queue(function(){var d=a(this),f=["position","top","left"],b=a.effects.setMode(d,c.options.mode||"show"),g=c.options.direction||"left";a.effects.save(d,f);d.show();a.effects.createWrapper(d).css({overflow:"hidden"});var h=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";var n=c.options.distance||(h=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(b=="show")d.css(h,g=="pos"?-n:n);var r={};r[h]=(b=="show"?g=="pos"?
"+=":"-=":g=="pos"?"-=":"+=")+n;d.animate(r,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&d.hide();a.effects.restore(d,f);a.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(a){a.effects.transfer=function(c){return this.queue(function(){var d=a(this),f=a(c.options.to),b=f.offset();f={top:b.top,left:b.left,height:f.innerHeight(),width:f.innerWidth()};b=d.offset();var g=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:b.top,left:b.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(f,c.duration,c.options.easing,function(){g.remove();c.callback&&c.callback.apply(d[0],arguments);
d.dequeue()})})}})(jQuery);jQuery.extend({roundabout_shape:{def:"lazySusan",lazySusan:function(a,c,d){return{x:Math.sin(a+c),y:Math.sin(a+3*Math.PI/2+c)/8*d,z:(Math.cos(a+c)+1)/2,scale:Math.sin(a+Math.PI/2+c)/2+0.5}}}});
jQuery.fn.roundabout=function(a,c){var d=typeof a!="object"?{}:a;d={bearing:typeof d.bearing=="undefined"?0:jQuery.roundabout_toFloat(d.bearing%360),tilt:typeof d.tilt=="undefined"?0:jQuery.roundabout_toFloat(d.tilt),minZ:typeof d.minZ=="undefined"?100:parseInt(d.minZ,10),maxZ:typeof d.maxZ=="undefined"?400:parseInt(d.maxZ,10),minOpacity:typeof d.minOpacity=="undefined"?0.4:jQuery.roundabout_toFloat(d.minOpacity),maxOpacity:typeof d.maxOpacity=="undefined"?1:jQuery.roundabout_toFloat(d.maxOpacity),
minScale:typeof d.minScale=="undefined"?0.4:jQuery.roundabout_toFloat(d.minScale),maxScale:typeof d.maxScale=="undefined"?1:jQuery.roundabout_toFloat(d.maxScale),duration:typeof d.duration=="undefined"?600:parseInt(d.duration,10),btnNext:d.btnNext||null,btnPrev:d.btnPrev||null,easing:d.easing||"swing",clickToFocus:d.clickToFocus!==false,focusBearing:typeof d.focusBearing=="undefined"?0:jQuery.roundabout_toFloat(d.focusBearing%360),shape:d.shape||"lazySusan",debug:d.debug||false,childSelector:d.childSelector||
"li",startingChild:typeof d.startingChild=="undefined"?null:parseInt(d.startingChild,10),reflect:typeof d.reflect=="undefined"||d.reflect===false?false:true};this.each(function(){var b=jQuery(this),g=jQuery.roundabout_toFloat(360/b.children(d.childSelector).length),h=d.startingChild===null?d.bearing:d.startingChild*g;b.addClass("roundabout-holder").css("padding",0).css("position","relative").css("z-index",d.minZ);b.data("roundabout",{bearing:h,tilt:d.tilt,minZ:d.minZ,maxZ:d.maxZ,minOpacity:d.minOpacity,
maxOpacity:d.maxOpacity,minScale:d.minScale,maxScale:d.maxScale,duration:d.duration,easing:d.easing,clickToFocus:d.clickToFocus,focusBearing:d.focusBearing,animating:0,childInFocus:-1,shape:d.shape,period:g,debug:d.debug,childSelector:d.childSelector,reflect:d.reflect});d.clickToFocus===true&&b.children(d.childSelector).each(function(n){jQuery(this).click(function(r){var m=d.reflect===true?360-g*n:g*n;m=jQuery.roundabout_toFloat(m);if(!jQuery.roundabout_isInFocus(b,m)){r.preventDefault();b.data("roundabout").animating===
0&&b.roundabout_animateAngleToFocus(m);return false}})});d.btnNext&&jQuery(d.btnNext).bind("click.roundabout",function(n){n.preventDefault();b.data("roundabout").animating===0&&b.roundabout_animateToNextChild();return false});d.btnPrev&&jQuery(d.btnPrev).bind("click.roundabout",function(n){n.preventDefault();b.data("roundabout").animating===0&&b.roundabout_animateToPreviousChild();return false})});this.roundabout_startChildren();if(typeof c==="function"){var f=this;setTimeout(function(){c(f)},0)}return this};
jQuery.fn.roundabout_startChildren=function(){this.each(function(){var a=jQuery(this),c=a.data("roundabout");a.children(c.childSelector).each(function(d){d=c.reflect===true?360-c.period*d:c.period*d;jQuery(this).addClass("roundabout-moveable-item").css("position","absolute");jQuery(this).data("roundabout",{startWidth:jQuery(this).width(),startHeight:jQuery(this).height(),startFontSize:parseInt(jQuery(this).css("font-size"),10),degrees:d})});a.roundabout_updateChildPositions()});return this};
jQuery.fn.roundabout_setTilt=function(a,c){this.each(function(){jQuery(this).data("roundabout").tilt=a;jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var d=this;setTimeout(function(){c(d)},0)}return this};jQuery.fn.roundabout_setBearing=function(a,c){this.each(function(){jQuery(this).data("roundabout").bearing=jQuery.roundabout_toFloat(a%360,2);jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var d=this;setTimeout(function(){c(d)},0)}return this};
jQuery.fn.roundabout_adjustBearing=function(a,c){a=jQuery.roundabout_toFloat(a);a!==0&&this.each(function(){jQuery(this).data("roundabout").bearing=jQuery.roundabout_getBearing(jQuery(this))+a;jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var d=this;setTimeout(function(){c(d)},0)}return this};
jQuery.fn.roundabout_adjustTilt=function(a,c){a=jQuery.roundabout_toFloat(a);a!==0&&this.each(function(){jQuery(this).data("roundabout").tilt=jQuery.roundabout_toFloat(jQuery(this).roundabout_get("tilt")+a);jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var d=this;setTimeout(function(){c(d)},0)}return this};
jQuery.fn.roundabout_animateToBearing=function(a,c,d,f){a=jQuery.roundabout_toFloat(a);var b=new Date,g=typeof c=="undefined"?null:c,h=typeof d=="undefined"?null:d,n=typeof f!=="object"?null:f;this.each(function(){var r=jQuery(this),m=r.data("roundabout"),l,q=g===null?m.duration:g,u=h!==null?h:m.easing||"swing";if(n===null)n={timerStart:b,start:jQuery.roundabout_getBearing(r),totalTime:q};l=b-n.timerStart;if(l<q){m.animating=1;if(typeof jQuery.easing.def=="string"){m=jQuery.easing[u]||jQuery.easing[jQuery.easing.def];
l=m(null,l,n.start,a-n.start,n.totalTime)}else l=jQuery.easing[u](l/n.totalTime,l,n.start,a-n.start,n.totalTime);r.roundabout_setBearing(l,function(){r.roundabout_animateToBearing(a,q,u,n)})}else{a=a<0?a+360:a%360;m.animating=0;r.roundabout_setBearing(a)}});return this};jQuery.fn.roundabout_animateToDelta=function(a,c,d){this.each(function(){a=jQuery.roundabout_getBearing(jQuery(this))+jQuery.roundabout_toFloat(a);jQuery(this).roundabout_animateToBearing(a,c,d)});return this};
jQuery.fn.roundabout_animateToChild=function(a,c,d){this.each(function(){var f=jQuery(this),b=f.data("roundabout");if(b.childInFocus!==a&&b.animating===0){b=jQuery(f.children(b.childSelector)[a]);f.roundabout_animateAngleToFocus(b.data("roundabout").degrees,c,d)}});return this};
jQuery.fn.roundabout_animateToNearbyChild=function(a,c){var d=a[0],f=a[1];this.each(function(){var b=jQuery(this).data("roundabout"),g=jQuery.roundabout_toFloat(360-jQuery.roundabout_getBearing(jQuery(this))),h=b.period,n=0,r=b.reflect,m=jQuery(this).children(b.childSelector).length;g=r===true?g%360:g;if(b.animating===0)if(r===false&&c==="next"||r===true&&c!=="next")for(g=g===0?360:g;n<m;){b={lower:jQuery.roundabout_toFloat(h*n),upper:jQuery.roundabout_toFloat(h*(n+1))};b.upper=n==m-1?360:b.upper;
if(g<=b.upper&&g>b.lower){jQuery(this).roundabout_animateToDelta(g-b.lower,d,f);break}n++}else for(;;){b={lower:jQuery.roundabout_toFloat(h*n),upper:jQuery.roundabout_toFloat(h*(n+1))};b.upper=n==m-1?360:b.upper;if(g>=b.lower&&g<b.upper){jQuery(this).roundabout_animateToDelta(g-b.upper,d,f);break}n++}});return this};jQuery.fn.roundabout_animateToNextChild=function(){return this.roundabout_animateToNearbyChild(arguments,"next")};
jQuery.fn.roundabout_animateToPreviousChild=function(){return this.roundabout_animateToNearbyChild(arguments,"previous")};jQuery.fn.roundabout_animateAngleToFocus=function(a,c,d){this.each(function(){var f=jQuery.roundabout_getBearing(jQuery(this))-a;f=Math.abs(360-f)<Math.abs(0-f)?360-f:0-f;f=f>180?-(360-f):f;f!==0&&jQuery(this).roundabout_animateToDelta(f,c,d)});return this};
jQuery.fn.roundabout_updateChildPositions=function(){this.each(function(){var a=jQuery(this),c=a.data("roundabout"),d=-1,f={bearing:jQuery.roundabout_getBearing(a),tilt:c.tilt,stage:{width:Math.floor(a.width()*0.9),height:Math.floor(a.height()*0.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRad:jQuery.roundabout_degToRad(c.focusBearing),shape:jQuery.roundabout_shape[c.shape]||jQuery.roundabout_shape[jQuery.roundabout_shape.def]};f.midStage={width:f.stage.width/2,height:f.stage.height/
2};f.nudge={width:f.midStage.width+f.stage.width*0.05,height:f.midStage.height+f.stage.height*0.05};f.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};f.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};f.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};a.children(c.childSelector).each(function(b){if(jQuery.roundabout_updateChildPosition(jQuery(this),a,f,b)&&f.animating===0){d=b;jQuery(this).addClass("roundabout-in-focus")}else jQuery(this).removeClass("roundabout-in-focus")});
if(d!==f.inFocus){jQuery.roundabout_triggerEvent(a,f.inFocus,"blur");d!==-1&&jQuery.roundabout_triggerEvent(a,d,"focus");c.childInFocus=d}});return this};jQuery.roundabout_getBearing=function(a){return jQuery.roundabout_toFloat(a.data("roundabout").bearing)%360};jQuery.roundabout_degToRad=function(a){return a%360*Math.PI/180};jQuery.roundabout_isInFocus=function(a,c){return jQuery.roundabout_getBearing(a)%360===c%360};jQuery.roundabout_triggerEvent=function(a,c,d){return c<0?this:jQuery(a.children(a.data("roundabout").childSelector)[c]).trigger(d)};
jQuery.roundabout_toFloat=function(a){a=Math.round(parseFloat(a)*1E3)/1E3;return parseFloat(a.toFixed(2))};
jQuery.roundabout_updateChildPosition=function(a,c,d,f){a=jQuery(a);for(var b=a.data("roundabout"),g=[],h=jQuery.roundabout_degToRad(360-a.data("roundabout").degrees+d.bearing);h<0;)h+=Math.PI*2;for(;h>Math.PI*2;)h-=Math.PI*2;h=d.shape(h,d.focusBearingRad,d.tilt);h.scale=h.scale>1?1:h.scale;h.adjustedScale=(d.scale.min+d.scale.diff*h.scale).toFixed(4);h.width=(h.adjustedScale*b.startWidth).toFixed(4);h.height=(h.adjustedScale*b.startHeight).toFixed(4);a.css("left",(h.x*d.midStage.width+d.nudge.width-
h.width/2).toFixed(1)+"px").css("top",(h.y*d.midStage.height+d.nudge.height-h.height/2).toFixed(1)+"px").css("width",h.width+"px").css("height",h.height+"px").css("z-index",Math.round(d.zValues.min+d.zValues.diff*h.z)).css("font-size",(h.adjustedScale*b.startFontSize).toFixed(2)+"px").attr("current-scale",h.adjustedScale);jQuery("img",a).css("opacity",(d.opacity.min+d.opacity.diff*h.scale).toFixed(2));if(c.data("roundabout").debug===true){g.push('<div style="font-weight: normal; font-size: 10px; padding: 2px; width: '+
a.css("width")+'; background-color: #ffc;">');g.push('<strong style="font-size: 12px; white-space: nowrap;">Child '+f+"</strong><br />");g.push("<strong>left:</strong> "+a.css("left")+"<br /><strong>top:</strong> "+a.css("top")+"<br />");g.push("<strong>width:</strong> "+a.css("width")+"<br /><strong>opacity:</strong> "+a.css("opacity")+"<br />");g.push("<strong>z-index:</strong> "+a.css("z-index")+"<br /><strong>font-size:</strong> "+a.css("font-size")+"<br />");g.push("<strong>scale:</strong> "+
a.attr("current-scale"));g.push("</div>");a.html(g.join(""))}return jQuery.roundabout_isInFocus(c,a.data("roundabout").degrees)};function replaceInput(a){this.box=a}replaceInput.prototype.replace=function(){var a=this;this.box.each(function(){if($(this).find("input[type=checkbox]").length>0)a.replaceCheckbox($(this));else if($(this).find("input[type=radio]").length>0)a.replaceRadio($(this));else $(this).find("select").not("[multiple=multiple]").length>0&&a.replaceSelectOne($(this))})};
replaceInput.prototype.replaceCheckbox=function(a){var c=null,d=a.find("input[type=checkbox]");label=a.find("label");c=$('<span class="form_checkbox"></span>').insertAfter(d);d.attr("checked")&&c.addClass("selected");c.bind("click",this.selectCheckbox);label.bind("click",this.selectCheckbox);d.hide()};
replaceInput.prototype.replaceRadio=function(a){var c=null,d=a.find("input[type=radio]");label=a.find("label");c=$('<span class="form_radio"></span>').insertAfter(d);d.attr("checked")&&c.addClass("selected");c.bind("click",this.selectRadio);label.bind("click",this.selectRadio);d.hide()};
replaceInput.prototype.replaceSelectOne=function(a){a=a.find("select");var c=a.find("option"),d=this,f=$('<div class="form_select"></div>').insertAfter(a),b=null;b=a.find("option:selected").length>0?a.find("option:selected"):c.eq(0);$('<div class="input_meio drop"></div>').appendTo(f).html(b.text()).attr("value",b.val()).bind("click",d.openSelect).before('<div class="input_esquerda sprite"></div>').after('<div class="input_direita sprite"></div><div class="clear"></div>');var g=$('<div class="form_option"></div>').appendTo(f);
c.not(":first").each(function(){$("<div></div>").appendTo(g).html($(this).text()).attr("value",$(this).val()).bind("click",d.selectSelect)});a.replaceWith('<input type="hidden" value="'+b.val()+'" name="'+a.attr("name")+'" />')};
replaceInput.prototype.selectRadio=function(){var a=$(this).parent(),c=a.find("span.form_radio");a=a.find("input[type=radio]");var d=a.attr("name");$("input[name="+d+"]:checked").each(function(){$(this).removeAttr("checked");$(this).parent().find("span.form_radio").removeClass("selected")});c.addClass("selected");a.attr("checked","checked")};
replaceInput.prototype.selectCheckbox=function(){var a=$(this).parent(),c=a.find("span.form_checkbox");a=a.find("input[type=checkbox]");if(c.hasClass("selected")){c.removeClass("selected");a.removeAttr("checked")}else{c.addClass("selected");a.attr("checked","checked")}};replaceInput.prototype.openSelect=function(){if(!$(this).parent().attr("style")||$(this).parent().attr("style")=="")$(".form_select").removeAttr("style").find(".form_option").hide();$(this).parent().css("z-index","1");$(this).next().next().next().slideToggle("fast")};
replaceInput.prototype.selectSelect=function(){$(this).parent().parent().prev("input[type=hidden]").val($(this).attr("value"));$(this).parent().prev().prev().prev().html($(this).html());$(this).parent().hide();$(this).parent().parent().removeAttr("style");var a=$(this).parent().parent().parent().attr("name"),c=$(this).attr("value");if(a=="drop_area"){$(".menu2 .replaceable").hide();$(".area_"+c).show()}a=="drop_curso"&&$("#adicionar_mais_um").show()};(function(a){function c(d,f){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=RegExp("[\\?&]"+d+"=([^&#]*)").exec(f);return b==null?"":b[1]}a.prettyPhoto={version:"3.0"};a.fn.prettyPhoto=function(d){function f(H){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show();H()})}function b(H){if(set_position==H-1){$pp_pic_holder.find("a.pp_next").css("visibility",
"hidden");$pp_pic_holder.find("a.pp_next").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_next").css("visibility","visible");$pp_pic_holder.find("a.pp_next.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("next");return false})}set_position==0?$pp_pic_holder.find("a.pp_previous").css("visibility","hidden").addClass("disabled").unbind("click"):$pp_pic_holder.find("a.pp_previous.disabled").css("visibility","visible").removeClass("disabled").bind("click",
function(){a.prettyPhoto.changePage("previous");return false});H>1?a(".pp_nav").show():a(".pp_nav").hide()}function g(H,K){resized=false;h(H,K);imageWidth=H;imageHeight=K;if((A>U||J>P)&&doresize&&settings.allow_resize&&!u){resized=true;for(fitting=false;!fitting;){if(A>U){imageWidth=U-200;imageHeight=K/H*imageWidth}else if(J>P){imageHeight=P-200;imageWidth=H/K*imageHeight}else fitting=true;J=imageHeight;A=imageWidth}h(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),
containerHeight:Math.floor(J),containerWidth:Math.floor(A)+40,contentHeight:Math.floor(i),contentWidth:Math.floor(N),resized:resized}}function h(H,K){H=parseFloat(H);K=parseFloat(K);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(H);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(a("body")).css({position:"absolute",top:-1E4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=
34?36:detailsHeight;if(a.browser.msie&&a.browser.version==7)detailsHeight+=8;$pp_details.remove();i=K;N=H;J=i+$ppt.height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();A=H}function n(H){return H.match(/youtube\.com\/watch/i)?"youtube":H.match(/vimeo\.com/i)?"vimeo":H.indexOf(".mov")!=-1?"quicktime":H.indexOf(".swf")!=-1?"flash":H.indexOf("iframe")!=-1?"iframe":H.indexOf("custom")!=-1?"custom":H.substr(0,1)=="#"?"inline":"image"}function r(){if(doresize&&typeof $pp_pic_holder!=
"undefined"){scroll_pos=m();titleHeight=$ppt.height();contentHeight=$pp_pic_holder.height();contentwidth=$pp_pic_holder.width();projectedTop=P/2+scroll_pos.scrollTop-contentHeight/2;$pp_pic_holder.css({top:projectedTop,left:U/2+scroll_pos.scrollLeft-contentwidth/2})}}function m(){if(self.pageYOffset)return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};else if(document.documentElement&&document.documentElement.scrollTop)return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};
else if(document.body)return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}function l(H){theRel=a(H).attr("rel");galleryRegExp=/\[(?:.*)\]/;pp_images=(isSet=galleryRegExp.exec(theRel)?true:false)?jQuery.map(q,function(K){if(a(K).attr("rel").indexOf(theRel)!=-1)return a(K).attr("href")}):a.makeArray(a(H).attr("href"));pp_titles=isSet?jQuery.map(q,function(K){if(a(K).attr("rel").indexOf(theRel)!=-1)return a(K).find("img").attr("alt")?a(K).find("img").attr("alt"):""}):a.makeArray(a(H).find("img").attr("alt"));
pp_descriptions=isSet?jQuery.map(q,function(K){if(a(K).attr("rel").indexOf(theRel)!=-1)return a(K).attr("title")?a(K).attr("title"):""}):a.makeArray(a(H).attr("title"));a("body").append(settings.markup);$pp_pic_holder=a(".pp_pic_holder");$ppt=a(".ppt");$pp_overlay=a("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(H=0;H<pp_images.length;H++){classname=/(.*?).(jpg|jpeg|png|gif)$/.exec(pp_images[H])?"":"default";toInject+="<li class='"+classname+"'><a href='#'><img src='"+
pp_images[H]+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_pic_holder.find(".pp_gallery .pp_arrow_next").click(function(){a.prettyPhoto.changeGalleryPage("next");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_gallery .pp_arrow_previous").click(function(){a.prettyPhoto.changeGalleryPage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},
function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_pic_holder.find(".pp_gallery ul li").each(function(K){a(this).css({position:"absolute",left:K*itemWidth});a(this).find("a").unbind("click").click(function(){a.prettyPhoto.changePage(K);a.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){a.prettyPhoto.startSlideshow();
return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:a(document).height(),width:a(document).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(){if(a(this).hasClass("pp_expand")){a(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{a(this).removeClass("pp_contract").addClass("pp_expand");
doresize=true}f(function(){a.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");a.prettyPhoto.stopSlideshow();return false});r()}d=jQuery.extend({animation_speed:"fast",slideshow:false,autoplay_slideshow:false,opacity:0.8,show_title:true,
allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"facebook",hideflash:false,wmode:"opaque",autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder">  <div class="ppt">&nbsp;</div>  <div class="pp_top">    <div class="pp_left"></div>    <div class="pp_middle"></div>    <div class="pp_right"></div>  </div>  <div class="pp_content_container">    <div class="pp_left">      <div class="pp_right">        <div class="pp_content">          <div class="pp_loaderIcon"></div>          <div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a>            <div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div>            <div class="pp_details clearfix">              <p class="pp_description"></p>              <a class="pp_close" href="#">Close</a>              <div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a>                <p class="currentTextHolder">0/0</p>                <a href="#" class="pp_arrow_next">Next</a></div>            </div>            <div id="pp_full_res"></div>          </div>        </div>      </div>    </div>  </div>  <div class="pp_bottom">    <div class="pp_left"></div>    <div class="pp_middle"></div>    <div class="pp_right"></div>  </div></div><div class="pp_overlay"></div>',
gallery_markup:'<div class="pp_gallery"><a href="#" class="pp_arrow_previous">Previous</a>  <ul>    {gallery}  </ul>  <a href="#" class="pp_arrow_next">Next</a></div>',image_markup:'<img id="fullResImage" src="" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}">  <param name="wmode" value="{wmode}" />  <param name="allowfullscreen" value="true" />  <param name="allowscriptaccess" value="always" />  <param name="movie" value="{path}" />  <embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
inline_markup:'<div class="pp_inline clearfix">{content}</div>',custom_markup:""},d);var q=this,u=false,w,z,i,N,J,A,P=a(window).height(),U=a(window).width(),M;doresize=true;scroll_pos=m();a(window).unbind("resize").resize(function(){r();P=a(window).height();U=a(window).width();typeof $pp_overlay!="undefined"&&$pp_overlay.height(a(document).height())});d.keyboard_shortcuts&&a(document).unbind("keydown").keydown(function(H){if(typeof $pp_pic_holder!="undefined")if($pp_pic_holder.is(":visible")){switch(H.keyCode){case 37:a.prettyPhoto.changePage("previous");
break;case 39:a.prettyPhoto.changePage("next");break;case 27:settings.modal||a.prettyPhoto.close()}return false}});a.prettyPhoto.initialize=function(){settings=d;if(a.browser.msie&&parseInt(a.browser.version)==6)settings.theme="light_square";l(this);settings.allow_resize&&a(window).scroll(function(){r()});r();set_position=jQuery.inArray(a(this).attr("href"),pp_images);a.prettyPhoto.open();return false};a.prettyPhoto.open=function(H,K,V){if(typeof settings=="undefined"){settings=d;if(a.browser.msie&&
a.browser.version==6)settings.theme="light_square";l(this);pp_images=a.makeArray(H);pp_titles=K?a.makeArray(K):a.makeArray("");pp_descriptions=V?a.makeArray(V):a.makeArray("");isSet=pp_images.length>1?true:false;set_position=0}a.browser.msie&&a.browser.version==6&&a("select").css("visibility","hidden");settings.hideflash&&a("object,embed").css("visibility","hidden");b(a(pp_images).size());a(".pp_loaderIcon").show();$ppt.is(":hidden")&&$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,
settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).size());$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]));settings.show_title&&pp_titles[set_position]!=""?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");movie_width=parseFloat(c("width",pp_images[set_position]))?c("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(c("height",
pp_images[set_position]))?c("height",pp_images[set_position]):settings.default_height.toString();if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150);movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150);u=true}else u=false;$pp_pic_holder.fadeIn(function(){imgPreloader="";switch(n(pp_images[set_position])){case "image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position>a(pp_images).size())nextImage.src=
pp_images[set_position+1];prevImage=new Image;if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup;$pp_pic_holder.find("#fullResImage").attr("src",pp_images[set_position]);imgPreloader.onload=function(){w=g(imgPreloader.width,imgPreloader.height);_showContent()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");a.prettyPhoto.close()};imgPreloader.src=
pp_images[set_position];break;case "youtube":w=g(movie_width,movie_height);movie="http://www.youtube.com/v/"+c("v",pp_images[set_position]);if(settings.autoplay)movie+="&autoplay=1";toInject=settings.flash_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case "vimeo":w=g(movie_width,movie_height);movie_id=pp_images[set_position];movie="http://player.vimeo.com/video/"+movie_id.match(/http:\/\/(www\.)?vimeo.com\/(\d+)/)[2]+
"?title=0&amp;byline=0&amp;portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=w.width+"/embed/?moog_width="+w.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,w.height).replace(/{path}/g,movie);break;case "quicktime":w=g(movie_width,movie_height);w.height+=15;w.contentHeight+=15;w.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,
pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case "flash":w=g(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+
flash_vars);break;case "iframe":w=g(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,w.width).replace(/{height}/g,w.height).replace(/{path}/g,frame_url);break;case "custom":w=g(movie_width,movie_height);toInject=settings.custom_markup;break;case "inline":myClone=a(pp_images[set_position]).clone().css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(a("body"));
w=g(a(myClone).width(),a(myClone).height());a(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}if(!imgPreloader){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;_showContent()}});return false};a.prettyPhoto.changePage=function(H){currentGalleryPage=0;if(H=="previous"){set_position--;if(set_position<0){set_position=0;return}}else if(H=="next"){set_position++;if(set_position>a(pp_images).size()-1)set_position=0}else set_position=H;doresize||
(doresize=true);a(".pp_contract").removeClass("pp_contract").addClass("pp_expand");f(function(){a.prettyPhoto.open()})};a.prettyPhoto.changeGalleryPage=function(H){if(H=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(H=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else currentGalleryPage=H;itemsToSlide=currentGalleryPage==totalPage?pp_images.length-totalPage*itemsPerPage:itemsPerPage;$pp_pic_holder.find(".pp_gallery li").each(function(K){a(this).animate({left:K*
itemWidth-itemsToSlide*itemWidth*currentGalleryPage})})};a.prettyPhoto.startSlideshow=function(){if(typeof M=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){a.prettyPhoto.stopSlideshow();return false});M=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)}else a.prettyPhoto.changePage("next")};a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){a.prettyPhoto.startSlideshow();
return false});clearInterval(M);M=undefined};a.prettyPhoto.close=function(){clearInterval(M);$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){a.browser.msie&&a.browser.version==6&&a("select").css("visibility","visible");settings.hideflash&&a("object,embed").css("visibility","visible");a(this).remove();a(window).unbind("scroll");
settings.callback();doresize=true;z=false;delete settings})};_showContent=function(){a(".pp_loaderIcon").hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos.scrollTop+(P/2-w.containerHeight/2);if(projectedTop<0)projectedTop=0;$pp_pic_holder.find(".pp_content").animate({height:w.contentHeight},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:U/2-w.containerWidth/2,width:w.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(w.height).width(w.width);
$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&n(pp_images[set_position])=="image"?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();w.resized&&a("a.pp_expand,a.pp_contract").fadeIn(settings.animation_speed);settings.autoplay_slideshow&&!M&&!z&&a.prettyPhoto.startSlideshow();settings.changepicturecallback();z=true});if(isSet&&settings.overlay_gallery&&n(pp_images[set_position])=="image"){itemWidth=57;navWidth=settings.theme==
"facebook"?58:38;itemsPerPage=Math.floor((w.containerWidth-100-navWidth)/itemWidth);itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").hide()}else $pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").show();galleryWidth=itemsPerPage*itemWidth+navWidth;$pp_pic_holder.find(".pp_gallery").width(galleryWidth).css("margin-left",
-(galleryWidth/2));$pp_pic_holder.find(".pp_gallery ul").width(itemsPerPage*itemWidth).find("li.selected").removeClass("selected");goToPage=Math.floor(set_position/itemsPerPage)<=totalPage?Math.floor(set_position/itemsPerPage):totalPage;itemsPerPage?$pp_pic_holder.find(".pp_gallery").hide().show().removeClass("disabled"):$pp_pic_holder.find(".pp_gallery").hide().addClass("disabled");a.prettyPhoto.changeGalleryPage(goToPage);$pp_pic_holder.find(".pp_gallery ul li:eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave");
$pp_pic_holder.find(".pp_gallery").hide()}};return this.unbind("click").click(a.prettyPhoto.initialize)}})(jQuery);(function(a){var c=(a.browser.msie?"paste":"input")+".mask",d=window.orientation!=undefined;a.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}};a.fn.extend({caret:function(f,b){if(this.length!=0)if(typeof f=="number"){b=typeof b=="number"?b:f;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(f,b)}else if(this.createTextRange){var h=this.createTextRange();h.collapse(true);h.moveEnd("character",b);h.moveStart("character",f);h.select()}})}else{if(this[0].setSelectionRange){f=
this[0].selectionStart;b=this[0].selectionEnd}else if(document.selection&&document.selection.createRange){var g=document.selection.createRange();f=0-g.duplicate().moveStart("character",-1E5);b=f+g.text.length}return{begin:f,end:b}}},unmask:function(){return this.trigger("unmask")},mask:function(f,b){if(!f&&this.length>0){var g=a(this[0]),h=g.data("tests");return a.map(g.data("buffer"),function(q,u){return h[u]?q:null}).join("")}b=a.extend({placeholder:"_",completed:null},b);var n=a.mask.definitions;
h=[];var r=f.length,m=null,l=f.length;a.each(f.split(""),function(q,u){if(u=="?"){l--;r=q}else if(n[u]){h.push(RegExp(n[u]));if(m==null)m=h.length-1}else h.push(null)});return this.each(function(){function q(M){for(;++M<=l&&!h[M];);return M}function u(M){var H=a(this).caret();M=M.keyCode;P=M<16||M>16&&M<32||M>32&&M<41;if(H.begin-H.end!=0&&(!P||M==8||M==46))z(H.begin,H.end);if(M==8||M==46||d&&M==127){for(H=H.begin+(M==46?0:-1);!h[H]&&--H>=0;);for(M=H;M<l;M++)if(h[M]){A[M]=b.placeholder;var K=q(M);
if(K<l&&h[M].test(A[K]))A[M]=A[K];else break}i();J.caret(Math.max(m,H));return false}else if(M==27){J.val(U);J.caret(0,N());return false}}function w(M){if(P){P=false;return M.keyCode==8?false:null}M=M||window.event;var H=M.charCode||M.keyCode||M.which,K=a(this).caret();if(M.ctrlKey||M.altKey||M.metaKey)return true;else if(H>=32&&H<=125||H>186){M=q(K.begin-1);if(M<l){H=String.fromCharCode(H);if(h[M].test(H)){K=M;for(var V=b.placeholder;K<l;K++)if(h[K]){var ba=q(K),ia=A[K];A[K]=V;if(ba<l&&h[ba].test(ia))V=
ia;else break}A[M]=H;i();M=q(M);a(this).caret(M);b.completed&&M==l&&b.completed.call(J)}}}return false}function z(M,H){for(var K=M;K<H&&K<l;K++)if(h[K])A[K]=b.placeholder}function i(){return J.val(A.join("")).val()}function N(M){for(var H=J.val(),K=-1,V=0,ba=0;V<l;V++)if(h[V]){for(A[V]=b.placeholder;ba++<H.length;){var ia=H.charAt(ba-1);if(h[V].test(ia)){A[V]=ia;K=V;break}}if(ba>H.length)break}else if(A[V]==H[ba]&&V!=r){ba++;K=V}if(!M&&K+1<r){J.val("");z(0,l)}else if(M||K+1>=r){i();M||J.val(J.val().substring(0,
K+1))}return r?V:m}var J=a(this),A=a.map(f.split(""),function(M){if(M!="?")return n[M]?b.placeholder:M}),P=false,U=J.val();J.data("buffer",A).data("tests",h);J.attr("readonly")||J.one("unmask",function(){J.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){U=J.val();var M=N();i();setTimeout(function(){M==f.length?J.caret(0,M):J.caret(M)},0)}).bind("blur.mask",function(){N();J.val()!=U&&J.change()}).bind("keydown.mask",u).bind("keypress.mask",w).bind(c,function(){setTimeout(function(){J.caret(N(true))},
0)});N()})}})})(jQuery);(function(a){a.fn.hoverIntent=function(c,d){var f={sensitivity:7,interval:100,timeout:0};f=a.extend(f,d?{over:c,out:d}:c);var b,g,h,n,r=function(q){b=q.pageX;g=q.pageY},m=function(q,u){u.hoverIntent_t=clearTimeout(u.hoverIntent_t);if(Math.abs(h-b)+Math.abs(n-g)<f.sensitivity){a(u).unbind("mousemove",r);u.hoverIntent_s=1;return f.over.apply(u,[q])}else{h=b;n=g;u.hoverIntent_t=setTimeout(function(){m(q,u)},f.interval)}},l=function(q){for(var u=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;u&&
u!=this;)try{u=u.parentNode}catch(w){u=this}if(u==this)return false;var z=jQuery.extend({},q),i=this;if(i.hoverIntent_t)i.hoverIntent_t=clearTimeout(i.hoverIntent_t);if(q.type=="mouseover"){h=z.pageX;n=z.pageY;a(i).bind("mousemove",r);if(i.hoverIntent_s!=1)i.hoverIntent_t=setTimeout(function(){m(z,i)},f.interval)}else{a(i).unbind("mousemove",r);if(i.hoverIntent_s==1)i.hoverIntent_t=setTimeout(function(){i.hoverIntent_t=clearTimeout(i.hoverIntent_t);i.hoverIntent_s=0;f.out.apply(i,[z])},f.timeout)}};
return this.mouseover(l).mouseout(l)}})(jQuery);

