(function(b,e){function f(){if(!j.isReady){try{J.documentElement.doScroll("left")}catch(c){setTimeout(f,1);return}j.ready()}}function a(c,i){i.src?j.ajax({url:i.src,async:false,dataType:"script"}):j.globalEval(i.text||i.textContent||i.innerHTML||"");i.parentNode&&i.parentNode.removeChild(i)}function d(c,i,k,q,o,v){var x=c.length;if(typeof i==="object"){for(var F in i)d(c,F,i[F],q,o,k);return c}if(k!==e){q=!v&&q&&j.isFunction(k);for(F=0;F<x;F++)o(c[F],i,q?k.call(c[F],F,o(c[F],i)):k,v);return c}return x?
o(c[0],i):null}function g(){return(new Date).getTime()}function h(){return false}function n(){return true}function m(c,i,k){k[0].type=c;return j.event.handle.apply(i,k)}function p(c){var i=true,k=[],q=[],o=arguments,v,x,F,H,D,P=j.extend({},j.data(this,"events").live);for(H in P){x=P[H];if(x.live===c.type||x.altLive&&j.inArray(c.type,x.altLive)>-1){v=x.data;v.beforeFilter&&v.beforeFilter[c.type]&&!v.beforeFilter[c.type](c)||q.push(x.selector)}else delete P[H]}v=j(c.target).closest(q,c.currentTarget);
D=0;for(l=v.length;D<l;D++)for(H in P){x=P[H];F=v[D].elem;q=null;if(v[D].selector===x.selector){if(x.live==="mouseenter"||x.live==="mouseleave")q=j(c.relatedTarget).closest(x.selector)[0];if(!q||q!==F)k.push({elem:F,fn:x})}}D=0;for(l=k.length;D<l;D++){v=k[D];c.currentTarget=v.elem;c.data=v.fn.data;if(v.fn.apply(v.elem,o)===false){i=false;break}}return i}function s(c,i){return["live",c,i.replace(/\./g,"`").replace(/ /g,"&")].join(".")}function w(c){return!c||!c.parentNode||c.parentNode.nodeType===
11}function G(c,i){var k=0;i.each(function(){if(this.nodeName===(c[k]&&c[k].nodeName)){var q=j.data(c[k++]),o=j.data(this,q);if(q=q&&q.events){delete o.handle;o.events={};for(var v in q)for(var x in q[v])j.event.add(this,v,q[v][x],q[v][x].data)}}})}function E(c,i,k){var q,o,v;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&c[0].indexOf("<option")<0){o=true;if(v=j.fragments[c[0]])if(v!==1)q=v}if(!q){i=i&&i[0]?i[0].ownerDocument||i[0]:J;q=i.createDocumentFragment();j.clean(c,i,q,k)}if(o)j.fragments[c[0]]=
v?q:1;return{fragment:q,cacheable:o}}function A(c){for(var i=0,k,q;(k=c[i])!=null;i++)if(!j.noData[k.nodeName.toLowerCase()]&&(q=k[la]))delete j.cache[q]}function I(c,i){var k={};j.each(Za.concat.apply([],Za.slice(0,i)),function(){k[this]=c});return k}function N(c){return"scrollTo"in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var j=function(c,i){return new j.fn.init(c,i)},X=b.jQuery,ea=b.$,J=b.document,na,T=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,fa=/^.[^:#\[\.,]*$/,ka=/\S/,
Ba=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ha=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,W=navigator.userAgent,oa=false,xa=[],da,ia=Object.prototype.toString,qa=Object.prototype.hasOwnProperty,ca=Array.prototype.push,sa=Array.prototype.slice,ya=Array.prototype.indexOf;j.fn=j.prototype={init:function(c,i){var k,q;if(!c)return this;if(c.nodeType){this.context=this[0]=c;this.length=1;return this}if(typeof c==="string")if((k=T.exec(c))&&(k[1]||!i))if(k[1]){q=i?i.ownerDocument||i:J;if(c=ha.exec(c))if(j.isPlainObject(i)){c=[J.createElement(c[1])];
j.fn.attr.call(c,i,true)}else c=[q.createElement(c[1])];else{c=E([k[1]],[q]);c=(c.cacheable?c.fragment.cloneNode(true):c.fragment).childNodes}}else{if(i=J.getElementById(k[2])){if(i.id!==k[2])return na.find(c);this.length=1;this[0]=i}this.context=J;this.selector=c;return this}else if(!i&&/^\w+$/.test(c)){this.selector=c;this.context=J;c=J.getElementsByTagName(c)}else return!i||i.jquery?(i||na).find(c):j(i).find(c);else if(j.isFunction(c))return na.ready(c);if(c.selector!==e){this.selector=c.selector;
this.context=c.context}return j.isArray(c)?this.setArray(c):j.makeArray(c,this)},selector:"",jquery:"1.4",length:0,size:function(){return this.length},toArray:function(){return sa.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(c,i,k){c=j(c||null);c.prevObject=this;c.context=this.context;if(i==="find")c.selector=this.selector+(this.selector?" ":"")+k;else if(i)c.selector=this.selector+"."+i+"("+k+")";return c},setArray:function(c){this.length=
0;ca.apply(this,c);return this},each:function(c,i){return j.each(this,c,i)},ready:function(c){j.bindReady();if(j.isReady)c.call(J,j);else xa&&xa.push(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(sa.apply(this,arguments),"slice",sa.call(arguments).join(","))},map:function(c){return this.pushStack(j.map(this,function(i,k){return c.call(i,k,i)}))},end:function(){return this.prevObject||
j(null)},push:ca,sort:[].sort,splice:[].splice};j.fn.init.prototype=j.fn;j.extend=j.fn.extend=function(){var c=arguments[0]||{},i=1,k=arguments.length,q=false,o,v,x,F;if(typeof c==="boolean"){q=c;c=arguments[1]||{};i=2}if(typeof c!=="object"&&!j.isFunction(c))c={};if(k===i){c=this;--i}for(;i<k;i++)if((o=arguments[i])!=null)for(v in o){x=c[v];F=o[v];if(c!==F)if(q&&F&&(j.isPlainObject(F)||j.isArray(F))){x=x&&(j.isPlainObject(x)||j.isArray(x))?x:j.isArray(F)?[]:{};c[v]=j.extend(q,x,F)}else if(F!==e)c[v]=
F}return c};j.extend({noConflict:function(c){b.$=ea;if(c)b.jQuery=X;return j},isReady:false,ready:function(){if(!j.isReady){if(!J.body)return setTimeout(j.ready,13);j.isReady=true;if(xa){for(var c,i=0;c=xa[i++];)c.call(J,j);xa=null}j.fn.triggerHandler&&j(J).triggerHandler("ready")}},bindReady:function(){if(!oa){oa=true;if(J.readyState==="complete")return j.ready();if(J.addEventListener){J.addEventListener("DOMContentLoaded",da,false);b.addEventListener("load",j.ready,false)}else if(J.attachEvent){J.attachEvent("onreadystatechange",
da);b.attachEvent("onload",j.ready);var c=false;try{c=b.frameElement==null}catch(i){}J.documentElement.doScroll&&c&&f()}}},isFunction:function(c){return ia.call(c)==="[object Function]"},isArray:function(c){return ia.call(c)==="[object Array]"},isPlainObject:function(c){if(!c||ia.call(c)!=="[object Object]"||c.nodeType||c.setInterval)return false;if(c.constructor&&!qa.call(c,"constructor")&&!qa.call(c.constructor.prototype,"isPrototypeOf"))return false;var i;for(i in c);return i===e||qa.call(c,i)},
isEmptyObject:function(c){for(var i in c)return false;return true},noop:function(){},globalEval:function(c){if(c&&ka.test(c)){var i=J.getElementsByTagName("head")[0]||J.documentElement,k=J.createElement("script");k.type="text/javascript";if(j.support.scriptEval)k.appendChild(J.createTextNode(c));else k.text=c;i.insertBefore(k,i.firstChild);i.removeChild(k)}},nodeName:function(c,i){return c.nodeName&&c.nodeName.toUpperCase()===i.toUpperCase()},each:function(c,i,k){var q,o=0,v=c.length,x=v===e||j.isFunction(c);
if(k)if(x)for(q in c){if(i.apply(c[q],k)===false)break}else for(;o<v;){if(i.apply(c[o++],k)===false)break}else if(x)for(q in c){if(i.call(c[q],q,c[q])===false)break}else for(k=c[0];o<v&&i.call(k,o,k)!==false;k=c[++o]);return c},trim:function(c){return(c||"").replace(Ba,"")},makeArray:function(c,i){i=i||[];if(c!=null)c.length==null||typeof c==="string"||j.isFunction(c)||typeof c!=="function"&&c.setInterval?ca.call(i,c):j.merge(i,c);return i},inArray:function(c,i){if(i.indexOf)return i.indexOf(c);for(var k=
0,q=i.length;k<q;k++)if(i[k]===c)return k;return-1},merge:function(c,i){var k=c.length,q=0;if(typeof i.length==="number")for(var o=i.length;q<o;q++)c[k++]=i[q];else for(;i[q]!==e;)c[k++]=i[q++];c.length=k;return c},grep:function(c,i,k){for(var q=[],o=0,v=c.length;o<v;o++)!k!==!i(c[o],o)&&q.push(c[o]);return q},map:function(c,i,k){for(var q=[],o,v=0,x=c.length;v<x;v++){o=i(c[v],v,k);if(o!=null)q[q.length]=o}return q.concat.apply([],q)},guid:1,proxy:function(c,i,k){if(arguments.length===2)if(typeof i===
"string"){k=c;c=k[i];i=e}else if(i&&!j.isFunction(i)){k=i;i=e}if(!i&&c)i=function(){return c.apply(k||this,arguments)};if(c)i.guid=c.guid=c.guid||i.guid||j.guid++;return i},uaMatch:function(c){var i={browser:""};c=c.toLowerCase();if(/webkit/.test(c))i={browser:"webkit",version:/webkit[\/ ]([\w.]+)/};else if(/opera/.test(c))i={browser:"opera",version:/version/.test(c)?/version[\/ ]([\w.]+)/:/opera[\/ ]([\w.]+)/};else if(/msie/.test(c))i={browser:"msie",version:/msie ([\w.]+)/};else if(/mozilla/.test(c)&&
!/compatible/.test(c))i={browser:"mozilla",version:/rv:([\w.]+)/};i.version=(i.version&&i.version.exec(c)||[0,"0"])[1];return i},browser:{}});W=j.uaMatch(W);if(W.browser){j.browser[W.browser]=true;j.browser.version=W.version}if(j.browser.webkit)j.browser.safari=true;if(ya)j.inArray=function(c,i){return ya.call(i,c)};na=j(J);if(J.addEventListener)da=function(){J.removeEventListener("DOMContentLoaded",da,false);j.ready()};else if(J.attachEvent)da=function(){if(J.readyState==="complete"){J.detachEvent("onreadystatechange",
da);j.ready()}};if(ya)j.inArray=function(c,i){return ya.call(i,c)};(function(){j.support={};var c=J.documentElement,i=J.createElement("script"),k=J.createElement("div"),q="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("*"),v=k.getElementsByTagName("a")[0];if(!(!o||!o.length||!v)){j.support={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,
htmlSerialize:!!k.getElementsByTagName("link").length,style:/red/.test(v.getAttribute("style")),hrefNormalized:v.getAttribute("href")==="/a",opacity:/^0.55$/.test(v.style.opacity),cssFloat:!!v.style.cssFloat,checkOn:k.getElementsByTagName("input")[0].value==="on",optSelected:J.createElement("select").appendChild(J.createElement("option")).selected,scriptEval:false,noCloneEvent:true,boxModel:null};i.type="text/javascript";try{i.appendChild(J.createTextNode("window."+q+"=1;"))}catch(x){}c.insertBefore(i,
c.firstChild);if(b[q]){j.support.scriptEval=true;delete b[q]}c.removeChild(i);if(k.attachEvent&&k.fireEvent){k.attachEvent("onclick",function F(){j.support.noCloneEvent=false;k.detachEvent("onclick",F)});k.cloneNode(true).fireEvent("onclick")}j(function(){var F=J.createElement("div");F.style.width=F.style.paddingLeft="1px";J.body.appendChild(F);j.boxModel=j.support.boxModel=F.offsetWidth===2;J.body.removeChild(F).style.display="none"});c=function(F){var H=J.createElement("div");F="on"+F;var D=F in
H;if(!D){H.setAttribute(F,"return;");D=typeof H[F]==="function"}return D};j.support.submitBubbles=c("submit");j.support.changeBubbles=c("change");c=i=k=o=v=null}})();j.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var la="jQuery"+g(),Ca=0,ta={},Ka={};j.extend({cache:{},expando:la,noData:{embed:true,object:true,applet:true},data:function(c,
i,k){if(!(c.nodeName&&j.noData[c.nodeName.toLowerCase()])){c=c==b?ta:c;var q=c[la],o=j.cache;if(!i&&!q)return null;q||(q=++Ca);if(typeof i==="object"){c[la]=q;o=o[q]=j.extend(true,{},i)}else o=o[q]?o[q]:typeof k==="undefined"?Ka:(o[q]={});if(k!==e){c[la]=q;o[i]=k}return typeof i==="string"?o[i]:o}},removeData:function(c,i){if(!(c.nodeName&&j.noData[c.nodeName.toLowerCase()])){c=c==b?ta:c;var k=c[la],q=j.cache,o=q[k];if(i){if(o){delete o[i];j.isEmptyObject(o)&&j.removeData(c)}}else{try{delete c[la]}catch(v){c.removeAttribute&&
c.removeAttribute(la)}delete q[k]}}}});j.fn.extend({data:function(c,i){if(typeof c==="undefined"&&this.length)return j.data(this[0]);else if(typeof c==="object")return this.each(function(){j.data(this,c)});var k=c.split(".");k[1]=k[1]?"."+k[1]:"";if(i===e){var q=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(q===e&&this.length)q=j.data(this[0],c);return q===e&&k[1]?this.data(k[0]):q}else return this.trigger("setData"+k[1]+"!",[k[0],i]).each(function(){j.data(this,c,i)})},removeData:function(c){return this.each(function(){j.removeData(this,
c)})}});j.extend({queue:function(c,i,k){if(c){i=(i||"fx")+"queue";var q=j.data(c,i);if(!k)return q||[];if(!q||j.isArray(k))q=j.data(c,i,j.makeArray(k));else q.push(k);return q}},dequeue:function(c,i){i=i||"fx";var k=j.queue(c,i),q=k.shift();if(q==="inprogress")q=k.shift();if(q){i==="fx"&&k.unshift("inprogress");q.call(c,function(){j.dequeue(c,i)})}}});j.fn.extend({queue:function(c,i){if(typeof c!=="string"){i=c;c="fx"}if(i===e)return j.queue(this[0],c);return this.each(function(){var k=j.queue(this,
c,i);c==="fx"&&k[0]!=="inprogress"&&j.dequeue(this,c)})},dequeue:function(c){return this.each(function(){j.dequeue(this,c)})},delay:function(c,i){c=j.fx?j.fx.speeds[c]||c:c;i=i||"fx";return this.queue(i,function(){var k=this;setTimeout(function(){j.dequeue(k,i)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var za=/[\n\t]/g,Ia=/\s+/,Pa=/\r/g,R=/href|src|style/,y=/(button|input)/i,B=/(button|input|object|select|textarea)/i,M=/^(a|area)$/i,O=/radio|checkbox/;j.fn.extend({attr:function(c,
i){return d(this,c,i,true,j.attr)},removeAttr:function(c){return this.each(function(){j.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(c){if(j.isFunction(c))return this.each(function(H){var D=j(this);D.addClass(c.call(this,H,D.attr("class")))});if(c&&typeof c==="string")for(var i=(c||"").split(Ia),k=0,q=this.length;k<q;k++){var o=this[k];if(o.nodeType===1)if(o.className)for(var v=" "+o.className+" ",x=0,F=i.length;x<F;x++){if(v.indexOf(" "+i[x]+" ")<0)o.className+=
" "+i[x]}else o.className=c}return this},removeClass:function(c){if(j.isFunction(c))return this.each(function(H){var D=j(this);D.removeClass(c.call(this,H,D.attr("class")))});if(c&&typeof c==="string"||c===e)for(var i=(c||"").split(Ia),k=0,q=this.length;k<q;k++){var o=this[k];if(o.nodeType===1&&o.className)if(c){for(var v=(" "+o.className+" ").replace(za," "),x=0,F=i.length;x<F;x++)v=v.replace(" "+i[x]+" "," ");o.className=v.substring(1,v.length-1)}else o.className=""}return this},toggleClass:function(c,
i){var k=typeof c,q=typeof i==="boolean";if(j.isFunction(c))return this.each(function(o){var v=j(this);v.toggleClass(c.call(this,o,v.attr("class"),i),i)});return this.each(function(){if(k==="string")for(var o,v=0,x=j(this),F=i,H=c.split(Ia);o=H[v++];){F=q?F:!x.hasClass(o);x[F?"addClass":"removeClass"](o)}else if(k==="undefined"||k==="boolean"){this.className&&j.data(this,"__className__",this.className);this.className=this.className||c===false?"":j.data(this,"__className__")||""}})},hasClass:function(c){c=
" "+c+" ";for(var i=0,k=this.length;i<k;i++)if((" "+this[i].className+" ").replace(za," ").indexOf(c)>-1)return true;return false},val:function(c){if(c===e){var i=this[0];if(i){if(j.nodeName(i,"option"))return(i.attributes.value||{}).specified?i.value:i.text;if(j.nodeName(i,"select")){var k=i.selectedIndex,q=[],o=i.options;i=i.type==="select-one";if(k<0)return null;var v=i?k:0;for(k=i?k+1:o.length;v<k;v++){var x=o[v];if(x.selected){c=j(x).val();if(i)return c;q.push(c)}}return q}if(O.test(i.type)&&
!j.support.checkOn)return i.getAttribute("value")===null?"on":i.value;return(i.value||"").replace(Pa,"")}}else{var F=j.isFunction(c);return this.each(function(H){var D=j(this),P=c;if(this.nodeType===1){if(F)P=c.call(this,H,D.val());if(typeof P==="number")P+="";if(j.isArray(P)&&O.test(this.type))this.checked=j.inArray(D.val(),P)>=0;else if(j.nodeName(this,"select")){var ba=j.makeArray(P);j("option",this).each(function(){this.selected=j.inArray(j(this).val(),ba)>=0});if(!ba.length)this.selectedIndex=
-1}else this.value=P}})}}});j.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(c,i,k,q){if(!(!c||c.nodeType===3||c.nodeType===8)){if(q&&i in j.attrFn)return j(c)[i](k);q=c.nodeType!==1||!j.isXMLDoc(c);var o=k!==e;i=q&&j.props[i]||i;if(c.nodeType===1){var v=R.test(i);if(i in c&&q&&!v){if(o){if(i==="type"&&y.test(c.nodeName)&&c.parentNode)throw"type property can't be changed";c[i]=k}if(j.nodeName(c,"form")&&c.getAttributeNode(i))return c.getAttributeNode(i).nodeValue;
if(i==="tabIndex")return(i=c.getAttributeNode("tabIndex"))&&i.specified?i.value:B.test(c.nodeName)||M.test(c.nodeName)&&c.href?0:e;return c[i]}if(!j.support.style&&q&&i==="style"){if(o)c.style.cssText=""+k;return c.style.cssText}o&&c.setAttribute(i,""+k);c=!j.support.hrefNormalized&&q&&v?c.getAttribute(i,2):c.getAttribute(i);return c===null?e:c}return j.style(c,i,k)}}});var Q=function(c){return c.replace(/[^\w\s\.\|`]/g,function(i){return"\\"+i})};j.event={add:function(c,i,k,q){if(!(c.nodeType===
3||c.nodeType===8)){if(c.setInterval&&c!==b&&!c.frameElement)c=b;if(!k.guid)k.guid=j.guid++;if(q!==e){k=j.proxy(k);k.data=q}var o=j.data(c,"events")||j.data(c,"events",{}),v=j.data(c,"handle"),x;if(!v){x=function(){return typeof j!=="undefined"&&!j.event.triggered?j.event.handle.apply(x.elem,arguments):e};v=j.data(c,"handle",x)}if(v){v.elem=c;i=i.split(/\s+/);for(var F,H=0;F=i[H++];){var D=F.split(".");F=D.shift();k.type=D.slice(0).sort().join(".");var P=o[F],ba=this.special[F]||{};if(!P){P=o[F]=
{};if(!ba.setup||ba.setup.call(c,q,D,k)===false)if(c.addEventListener)c.addEventListener(F,v,false);else c.attachEvent&&c.attachEvent("on"+F,v)}if(ba.add)if((D=ba.add.call(c,k,q,D,P))&&j.isFunction(D)){D.guid=D.guid||k.guid;k=D}P[k.guid]=k;this.global[F]=true}c=null}}},global:{},remove:function(c,i,k){if(!(c.nodeType===3||c.nodeType===8)){var q=j.data(c,"events"),o,v,x;if(q){if(i===e||typeof i==="string"&&i.charAt(0)===".")for(v in q)this.remove(c,v+(i||""));else{if(i.type){k=i.handler;i=i.type}i=
i.split(/\s+/);for(var F=0;v=i[F++];){var H=v.split(".");v=H.shift();var D=!H.length,P=j.map(H.slice(0).sort(),Q);P=new RegExp("(^|\\.)"+P.join("\\.(?:.*\\.)?")+"(\\.|$)");var ba=this.special[v]||{};if(q[v]){if(k){x=q[v][k.guid];delete q[v][k.guid]}else for(var ja in q[v])if(D||P.test(q[v][ja].type))delete q[v][ja];ba.remove&&ba.remove.call(c,H,x);for(o in q[v])break;if(!o){if(!ba.teardown||ba.teardown.call(c,H)===false)if(c.removeEventListener)c.removeEventListener(v,j.data(c,"handle"),false);else c.detachEvent&&
c.detachEvent("on"+v,j.data(c,"handle"));o=null;delete q[v]}}}}for(o in q)break;if(!o){if(ja=j.data(c,"handle"))ja.elem=null;j.removeData(c,"events");j.removeData(c,"handle")}}}},trigger:function(c,i,k,q){var o=c.type||c;if(!q){c=typeof c==="object"?c[la]?c:j.extend(j.Event(o),c):j.Event(o);if(o.indexOf("!")>=0){c.type=o=o.slice(0,-1);c.exclusive=true}if(!k){c.stopPropagation();this.global[o]&&j.each(j.cache,function(){this.events&&this.events[o]&&j.event.trigger(c,i,this.handle.elem)})}if(!k||k.nodeType===
3||k.nodeType===8)return;c.result=e;c.target=k;i=j.makeArray(i);i.unshift(c)}c.currentTarget=k;var v=j.data(k,"handle");v&&v.apply(k,i);var x,F;try{if(!(k&&k.nodeName&&j.noData[k.nodeName.toLowerCase()])){x=k[o];F=k["on"+o]}}catch(H){}v=j.nodeName(k,"a")&&o==="click";if(!q&&x&&!c.isDefaultPrevented()&&!v){this.triggered=true;try{k[o]()}catch(D){}}else if(F&&k["on"+o].apply(k,i)===false)c.result=false;this.triggered=false;if(!c.isPropagationStopped())(k=k.parentNode||k.ownerDocument)&&j.event.trigger(c,
i,k,true)},handle:function(c){var i,k;c=arguments[0]=j.event.fix(c||b.event);c.currentTarget=this;k=c.type.split(".");c.type=k.shift();i=!k.length&&!c.exclusive;var q=new RegExp("(^|\\.)"+k.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");k=(j.data(this,"events")||{})[c.type];for(var o in k){var v=k[o];if(i||q.test(v.type)){c.handler=v;c.data=v.data;v=v.apply(this,arguments);if(v!==e){c.result=v;if(v===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}return c.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(c){if(c[la])return c;var i=c;c=j.Event(i);for(var k=this.props.length,q;k;){q=this.props[--k];c[q]=i[q]}if(!c.target)c.target=c.srcElement||
J;if(c.target.nodeType===3)c.target=c.target.parentNode;if(!c.relatedTarget&&c.fromElement)c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement;if(c.pageX==null&&c.clientX!=null){i=J.documentElement;k=J.body;c.pageX=c.clientX+(i&&i.scrollLeft||k&&k.scrollLeft||0)-(i&&i.clientLeft||k&&k.clientLeft||0);c.pageY=c.clientY+(i&&i.scrollTop||k&&k.scrollTop||0)-(i&&i.clientTop||k&&k.clientTop||0)}if(!c.which&&(c.charCode||c.charCode===0?c.charCode:c.keyCode))c.which=c.charCode||c.keyCode;if(!c.metaKey&&
c.ctrlKey)c.metaKey=c.ctrlKey;if(!c.which&&c.button!==e)c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;return c},guid:1E8,proxy:j.proxy,special:{ready:{setup:j.bindReady,teardown:j.noop},live:{add:function(c,i){j.extend(c,i||{});c.guid+=i.selector+i.live;j.event.add(this,i.live,p,i)},remove:function(c){if(c.length){var i=0,k=new RegExp("(^|\\.)"+c[0]+"(\\.|$)");j.each(j.data(this,"events").live||{},function(){k.test(this.type)&&i++});i<1&&j.event.remove(this,c[0],p)}},special:{}},beforeunload:{setup:function(c,
i,k){if(this.setInterval)this.onbeforeunload=k;return false},teardown:function(c,i){if(this.onbeforeunload===i)this.onbeforeunload=null}}}};j.Event=function(c){if(!this.preventDefault)return new j.Event(c);if(c&&c.type){this.originalEvent=c;this.type=c.type}else this.type=c;this.timeStamp=g();this[la]=true};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
n;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h};var Y=function(c){for(var i=c.relatedTarget;i&&i!==this;)try{i=i.parentNode}catch(k){break}if(i!==this){c.type=c.data;j.event.handle.apply(this,arguments)}},Z=function(c){c.type=c.data;j.event.handle.apply(this,arguments)};j.each({mouseenter:"mouseover",
mouseleave:"mouseout"},function(c,i){j.event.special[c]={setup:function(k){j.event.add(this,i,k&&k.selector?Z:Y,c)},teardown:function(k){j.event.remove(this,i,k&&k.selector?Z:Y)}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(c,i,k){if(this.nodeName.toLowerCase()!=="form"){j.event.add(this,"click.specialSubmit."+k.guid,function(q){var o=q.target,v=o.type;if((v==="submit"||v==="image")&&j(o).closest("form").length)return m("submit",this,arguments)});j.event.add(this,"keypress.specialSubmit."+
k.guid,function(q){var o=q.target,v=o.type;if((v==="text"||v==="password")&&j(o).closest("form").length&&q.keyCode===13)return m("submit",this,arguments)})}else return false},remove:function(c,i){j.event.remove(this,"click.specialSubmit"+(i?"."+i.guid:""));j.event.remove(this,"keypress.specialSubmit"+(i?"."+i.guid:""))}};if(!j.support.changeBubbles){var ga=/textarea|input|select/i;function ma(c){var i=c.type,k=c.value;if(i==="radio"||i==="checkbox")k=c.checked;else if(i==="select-multiple")k=c.selectedIndex>
-1?j.map(c.options,function(q){return q.selected}).join("-"):"";else if(c.nodeName.toLowerCase()==="select")k=c.selectedIndex;return k}function Ea(c,i){var k=c.target,q,o;if(!(!ga.test(k.nodeName)||k.readOnly)){q=j.data(k,"_change_data");o=ma(k);if(o!==q){if(c.type!=="focusout"||k.type!=="radio")j.data(k,"_change_data",o);if(k.type!=="select"&&(q!=null||o)){c.type="change";return j.event.trigger(c,i,this)}}}}j.event.special.change={filters:{focusout:Ea,click:function(c){var i=c.target,k=i.type;if(k===
"radio"||k==="checkbox"||i.nodeName.toLowerCase()==="select")return Ea.call(this,c)},keydown:function(c){var i=c.target,k=i.type;if(c.keyCode===13&&i.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")return Ea.call(this,c)},beforeactivate:function(c){c=c.target;c.nodeName.toLowerCase()==="input"&&c.type==="radio"&&j.data(c,"_change_data",ma(c))}},setup:function(c,i,k){for(var q in Fa)j.event.add(this,q+".specialChange."+k.guid,Fa[q]);return ga.test(this.nodeName)},
remove:function(c,i){for(var k in Fa)j.event.remove(this,k+".specialChange"+(i?"."+i.guid:""),Fa[k]);return ga.test(this.nodeName)}};var Fa=j.event.special.change.filters}J.addEventListener&&j.each({focus:"focusin",blur:"focusout"},function(c,i){function k(q){q=j.event.fix(q);q.type=i;return j.event.handle.call(this,q)}j.event.special[i]={setup:function(){this.addEventListener(c,k,true)},teardown:function(){this.removeEventListener(c,k,true)}}});j.each(["bind","one"],function(c,i){j.fn[i]=function(k,
q,o){if(typeof k==="object"){for(var v in k)this[i](v,q,k[v],o);return this}if(j.isFunction(q)){thisObject=o;o=q;q=e}var x=i==="one"?j.proxy(o,function(F){j(this).unbind(F,x);return o.apply(this,arguments)}):o;return k==="unload"&&i!=="one"?this.one(k,q,o,thisObject):this.each(function(){j.event.add(this,k,x,q)})}});j.fn.extend({unbind:function(c,i){if(typeof c==="object"&&!c.preventDefault){for(var k in c)this.unbind(k,c[k]);return this}return this.each(function(){j.event.remove(this,c,i)})},trigger:function(c,
i){return this.each(function(){j.event.trigger(c,i,this)})},triggerHandler:function(c,i){if(this[0]){c=j.Event(c);c.preventDefault();c.stopPropagation();j.event.trigger(c,i,this[0]);return c.result}},toggle:function(c){for(var i=arguments,k=1;k<i.length;)j.proxy(c,i[k++]);return this.click(j.proxy(c,function(q){var o=(j.data(this,"lastToggle"+c.guid)||0)%k;j.data(this,"lastToggle"+c.guid,o+1);q.preventDefault();return i[o].apply(this,arguments)||false}))},hover:function(c,i){return this.mouseenter(c).mouseleave(i||
c)},live:function(c,i,k){if(j.isFunction(i)){k=i;i=e}j(this.context).bind(s(c,this.selector),{data:i,selector:this.selector,live:c},k);return this},die:function(c,i){j(this.context).unbind(s(c,this.selector),i?{guid:i.guid+this.selector+c}:null);return this}});j.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(c,i){j.fn[i]=function(k){return k?
this.bind(i,k):this.trigger(i)};if(j.attrFn)j.attrFn[i]=true});b.attachEvent&&!b.addEventListener&&b.attachEvent("onunload",function(){for(var c in j.cache)if(j.cache[c].handle)try{j.event.remove(j.cache[c].handle.elem)}catch(i){}});(function(){function c(r){for(var u="",z,C=0;r[C];C++){z=r[C];if(z.nodeType===3||z.nodeType===4)u+=z.nodeValue;else if(z.nodeType!==8)u+=c(z.childNodes)}return u}function i(r,u,z,C,L,K){L=0;for(var U=C.length;L<U;L++){var S=C[L];if(S){S=S[r];for(var aa=false;S;){if(S.sizcache===
z){aa=C[S.sizset];break}if(S.nodeType===1&&!K){S.sizcache=z;S.sizset=L}if(S.nodeName.toLowerCase()===u){aa=S;break}S=S[r]}C[L]=aa}}}function k(r,u,z,C,L,K){L=0;for(var U=C.length;L<U;L++){var S=C[L];if(S){S=S[r];for(var aa=false;S;){if(S.sizcache===z){aa=C[S.sizset];break}if(S.nodeType===1){if(!K){S.sizcache=z;S.sizset=L}if(typeof u!=="string"){if(S===u){aa=true;break}}else if(H.filter(u,[S]).length>0){aa=S;break}}S=S[r]}C[L]=aa}}}var q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
o=0,v=Object.prototype.toString,x=false,F=true;[0,0].sort(function(){F=false;return 0});var H=function(r,u,z,C){z=z||[];var L=u=u||J;if(u.nodeType!==1&&u.nodeType!==9)return[];if(!r||typeof r!=="string")return z;for(var K=[],U,S,aa,Oa,Ga=true,La=V(u),Ha=r;(q.exec(""),U=q.exec(Ha))!==null;){Ha=U[3];K.push(U[1]);if(U[2]){Oa=U[3];break}}if(K.length>1&&P.exec(r))if(K.length===2&&D.relative[K[0]])S=Ta(K[0]+K[1],u);else for(S=D.relative[K[0]]?[u]:H(K.shift(),u);K.length;){r=K.shift();if(D.relative[r])r+=
K.shift();S=Ta(r,S)}else{if(!C&&K.length>1&&u.nodeType===9&&!La&&D.match.ID.test(K[0])&&!D.match.ID.test(K[K.length-1])){U=H.find(K.shift(),u,La);u=U.expr?H.filter(U.expr,U.set)[0]:U.set[0]}if(u){U=C?{expr:K.pop(),set:ja(C)}:H.find(K.pop(),K.length===1&&(K[0]==="~"||K[0]==="+")&&u.parentNode?u.parentNode:u,La);S=U.expr?H.filter(U.expr,U.set):U.set;if(K.length>0)aa=ja(S);else Ga=false;for(;K.length;){var ua=K.pop();U=ua;if(D.relative[ua])U=K.pop();else ua="";if(U==null)U=u;D.relative[ua](aa,U,La)}}else aa=
[]}aa||(aa=S);if(!aa)throw"Syntax error, unrecognized expression: "+(ua||r);if(v.call(aa)==="[object Array]")if(Ga)if(u&&u.nodeType===1)for(r=0;aa[r]!=null;r++){if(aa[r]&&(aa[r]===true||aa[r].nodeType===1&&va(u,aa[r])))z.push(S[r])}else for(r=0;aa[r]!=null;r++)aa[r]&&aa[r].nodeType===1&&z.push(S[r]);else z.push.apply(z,aa);else ja(aa,z);if(Oa){H(Oa,L,z,C);H.uniqueSort(z)}return z};H.uniqueSort=function(r){if(ra){x=F;r.sort(ra);if(x)for(var u=1;u<r.length;u++)r[u]===r[u-1]&&r.splice(u--,1)}return r};
H.matches=function(r,u){return H(r,null,null,u)};H.find=function(r,u,z){var C,L;if(!r)return[];for(var K=0,U=D.order.length;K<U;K++){var S=D.order[K];if(L=D.leftMatch[S].exec(r)){var aa=L[1];L.splice(1,1);if(aa.substr(aa.length-1)!=="\\"){L[1]=(L[1]||"").replace(/\\/g,"");C=D.find[S](L,u,z);if(C!=null){r=r.replace(D.match[S],"");break}}}}C||(C=u.getElementsByTagName("*"));return{set:C,expr:r}};H.filter=function(r,u,z,C){for(var L=r,K=[],U=u,S,aa,Oa=u&&u[0]&&V(u[0]);r&&u.length;){for(var Ga in D.filter)if((S=
D.leftMatch[Ga].exec(r))!=null&&S[2]){var La=D.filter[Ga],Ha,ua;ua=S[1];aa=false;S.splice(1,1);if(ua.substr(ua.length-1)!=="\\"){if(U===K)K=[];if(D.preFilter[Ga])if(S=D.preFilter[Ga](S,U,z,K,C,Oa)){if(S===true)continue}else aa=Ha=true;if(S)for(var Qa=0;(ua=U[Qa])!=null;Qa++)if(ua){Ha=La(ua,S,Qa,U);var $a=C^!!Ha;if(z&&Ha!=null)if($a)aa=true;else U[Qa]=false;else if($a){K.push(ua);aa=true}}if(Ha!==e){z||(U=K);r=r.replace(D.match[Ga],"");if(!aa)return[];break}}}if(r===L)if(aa==null)throw"Syntax error, unrecognized expression: "+
r;else break;L=r}return U};var D=H.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(r){return r.getAttribute("href")}},relative:{"+":function(r,u){var z=typeof u==="string",C=z&&!/\W/.test(u);z=z&&!C;if(C)u=u.toLowerCase();C=0;for(var L=r.length,K;C<L;C++)if(K=r[C]){for(;(K=K.previousSibling)&&K.nodeType!==1;);r[C]=z||K&&K.nodeName.toLowerCase()===u?K||false:K===u}z&&H.filter(u,r,true)},">":function(r,u){var z=typeof u==="string";if(z&&!/\W/.test(u)){u=u.toLowerCase();for(var C=0,L=r.length;C<L;C++){var K=
r[C];if(K){z=K.parentNode;r[C]=z.nodeName.toLowerCase()===u?z:false}}}else{C=0;for(L=r.length;C<L;C++)if(K=r[C])r[C]=z?K.parentNode:K.parentNode===u;z&&H.filter(u,r,true)}},"":function(r,u,z){var C=o++,L=k;if(typeof u==="string"&&!/\W/.test(u)){var K=u=u.toLowerCase();L=i}L("parentNode",u,C,r,K,z)},"~":function(r,u,z){var C=o++,L=k;if(typeof u==="string"&&!/\W/.test(u)){var K=u=u.toLowerCase();L=i}L("previousSibling",u,C,r,K,z)}},find:{ID:function(r,u,z){if(typeof u.getElementById!=="undefined"&&
!z)return(r=u.getElementById(r[1]))?[r]:[]},NAME:function(r,u){if(typeof u.getElementsByName!=="undefined"){var z=[];u=u.getElementsByName(r[1]);for(var C=0,L=u.length;C<L;C++)u[C].getAttribute("name")===r[1]&&z.push(u[C]);return z.length===0?null:z}},TAG:function(r,u){return u.getElementsByTagName(r[1])}},preFilter:{CLASS:function(r,u,z,C,L,K){r=" "+r[1].replace(/\\/g,"")+" ";if(K)return r;K=0;for(var U;(U=u[K])!=null;K++)if(U)if(L^(U.className&&(" "+U.className+" ").replace(/[\t\n]/g," ").indexOf(r)>=
0))z||C.push(U);else if(z)u[K]=false;return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(r){return r[1].toLowerCase()},CHILD:function(r){if(r[1]==="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]==="even"&&"2n"||r[2]==="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=u[1]+(u[2]||1)-0;r[3]=u[3]-0}r[0]=o++;return r},ATTR:function(r,u,z,C,L,K){u=r[1].replace(/\\/g,"");if(!K&&D.attrMap[u])r[1]=D.attrMap[u];if(r[2]==="~=")r[4]=" "+r[4]+" ";return r},PSEUDO:function(r,u,z,C,
L){if(r[1]==="not")if((q.exec(r[3])||"").length>1||/^\w/.test(r[3]))r[3]=H(r[3],null,null,u);else{r=H.filter(r[3],u,z,true^L);z||C.push.apply(C,r);return false}else if(D.match.POS.test(r[0])||D.match.CHILD.test(r[0]))return true;return r},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){return r.selected===true},parent:function(r){return!!r.firstChild},
empty:function(r){return!r.firstChild},has:function(r,u,z){return!!H(z[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===
r.type||r.nodeName.toLowerCase()==="button"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,u){return u===0},last:function(r,u,z,C){return u===C.length-1},even:function(r,u){return u%2===0},odd:function(r,u){return u%2===1},lt:function(r,u,z){return u<z[3]-0},gt:function(r,u,z){return u>z[3]-0},nth:function(r,u,z){return z[3]-0===u},eq:function(r,u,z){return z[3]-0===u}},filter:{PSEUDO:function(r,u,z,C){var L=u[1],K=D.filters[L];if(K)return K(r,
z,u,C);else if(L==="contains")return(r.textContent||r.innerText||c([r])||"").indexOf(u[3])>=0;else if(L==="not"){u=u[3];z=0;for(C=u.length;z<C;z++)if(u[z]===r)return false;return true}else throw"Syntax error, unrecognized expression: "+L;},CHILD:function(r,u){var z=u[1],C=r;switch(z){case "only":case "first":for(;C=C.previousSibling;)if(C.nodeType===1)return false;if(z==="first")return true;C=r;case "last":for(;C=C.nextSibling;)if(C.nodeType===1)return false;return true;case "nth":z=u[2];var L=u[3];
if(z===1&&L===0)return true;u=u[0];var K=r.parentNode;if(K&&(K.sizcache!==u||!r.nodeIndex)){var U=0;for(C=K.firstChild;C;C=C.nextSibling)if(C.nodeType===1)C.nodeIndex=++U;K.sizcache=u}r=r.nodeIndex-L;return z===0?r===0:r%z===0&&r/z>=0}},ID:function(r,u){return r.nodeType===1&&r.getAttribute("id")===u},TAG:function(r,u){return u==="*"&&r.nodeType===1||r.nodeName.toLowerCase()===u},CLASS:function(r,u){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(u)>-1},ATTR:function(r,u){var z=u[1];
r=D.attrHandle[z]?D.attrHandle[z](r):r[z]!=null?r[z]:r.getAttribute(z);z=r+"";var C=u[2];u=u[4];return r==null?C==="!=":C==="="?z===u:C==="*="?z.indexOf(u)>=0:C==="~="?(" "+z+" ").indexOf(u)>=0:!u?z&&r!==false:C==="!="?z!==u:C==="^="?z.indexOf(u)===0:C==="$="?z.substr(z.length-u.length)===u:C==="|="?z===u||z.substr(0,u.length+1)===u+"-":false},POS:function(r,u,z,C){var L=D.setFilters[u[2]];if(L)return L(r,z,u,C)}}},P=D.match.POS;for(var ba in D.match){D.match[ba]=new RegExp(D.match[ba].source+/(?![^\[]*\])(?![^\(]*\))/.source);
D.leftMatch[ba]=new RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[ba].source.replace(/\\(\d+)/g,function(r,u){return"\\"+(u-0+1)}))}var ja=function(r,u){r=Array.prototype.slice.call(r,0);if(u){u.push.apply(u,r);return u}return r};try{Array.prototype.slice.call(J.documentElement.childNodes,0)}catch(pa){ja=function(r,u){u=u||[];if(v.call(r)==="[object Array]")Array.prototype.push.apply(u,r);else if(typeof r.length==="number")for(var z=0,C=r.length;z<C;z++)u.push(r[z]);else for(z=0;r[z];z++)u.push(r[z]);
return u}}var ra;if(J.documentElement.compareDocumentPosition)ra=function(r,u){if(!r.compareDocumentPosition||!u.compareDocumentPosition){if(r==u)x=true;return r.compareDocumentPosition?-1:1}r=r.compareDocumentPosition(u)&4?-1:r===u?0:1;if(r===0)x=true;return r};else if("sourceIndex"in J.documentElement)ra=function(r,u){if(!r.sourceIndex||!u.sourceIndex){if(r==u)x=true;return r.sourceIndex?-1:1}r=r.sourceIndex-u.sourceIndex;if(r===0)x=true;return r};else if(J.createRange)ra=function(r,u){if(!r.ownerDocument||
!u.ownerDocument){if(r==u)x=true;return r.ownerDocument?-1:1}var z=r.ownerDocument.createRange(),C=u.ownerDocument.createRange();z.setStart(r,0);z.setEnd(r,0);C.setStart(u,0);C.setEnd(u,0);r=z.compareBoundaryPoints(Range.START_TO_END,C);if(r===0)x=true;return r};(function(){var r=J.createElement("div"),u="script"+(new Date).getTime();r.innerHTML="<a name='"+u+"'/>";var z=J.documentElement;z.insertBefore(r,z.firstChild);if(J.getElementById(u)){D.find.ID=function(C,L,K){if(typeof L.getElementById!==
"undefined"&&!K)return(L=L.getElementById(C[1]))?L.id===C[1]||typeof L.getAttributeNode!=="undefined"&&L.getAttributeNode("id").nodeValue===C[1]?[L]:e:[]};D.filter.ID=function(C,L){var K=typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id");return C.nodeType===1&&K&&K.nodeValue===L}}z.removeChild(r);z=r=null})();(function(){var r=J.createElement("div");r.appendChild(J.createComment(""));if(r.getElementsByTagName("*").length>0)D.find.TAG=function(u,z){z=z.getElementsByTagName(u[1]);if(u[1]===
"*"){u=[];for(var C=0;z[C];C++)z[C].nodeType===1&&u.push(z[C]);z=u}return z};r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#")D.attrHandle.href=function(u){return u.getAttribute("href",2)};r=null})();J.querySelectorAll&&function(){var r=H,u=J.createElement("div");u.innerHTML="<p class='TEST'></p>";if(!(u.querySelectorAll&&u.querySelectorAll(".TEST").length===0)){H=function(C,L,K,U){L=L||J;if(!U&&L.nodeType===9&&
!V(L))try{return ja(L.querySelectorAll(C),K)}catch(S){}return r(C,L,K,U)};for(var z in r)H[z]=r[z];u=null}}();(function(){var r=J.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!r.getElementsByClassName||r.getElementsByClassName("e").length===0)){r.lastChild.className="e";if(r.getElementsByClassName("e").length!==1){D.order.splice(1,0,"CLASS");D.find.CLASS=function(u,z,C){if(typeof z.getElementsByClassName!=="undefined"&&!C)return z.getElementsByClassName(u[1])};
r=null}}})();var va=J.compareDocumentPosition?function(r,u){return r.compareDocumentPosition(u)&16}:function(r,u){return r!==u&&(r.contains?r.contains(u):true)},V=function(r){return(r=(r?r.ownerDocument||r:0).documentElement)?r.nodeName!=="HTML":false},Ta=function(r,u){var z=[],C="",L;for(u=u.nodeType?[u]:u;L=D.match.PSEUDO.exec(r);){C+=L[0];r=r.replace(D.match.PSEUDO,"")}r=D.relative[r]?r+"*":r;L=0;for(var K=u.length;L<K;L++)H(r,u[L],z);return H.filter(C,z)};j.find=H;j.expr=H.selectors;j.expr[":"]=
j.expr.filters;j.unique=H.uniqueSort;j.getText=c;j.isXMLDoc=V;j.contains=va})();var Da=/Until$/,Aa=/^(?:parents|prevUntil|prevAll)/,Ma=/,/;sa=Array.prototype.slice;var Ja=function(c,i,k){if(j.isFunction(i))return j.grep(c,function(o,v){return!!i.call(o,v,o)===k});else if(i.nodeType)return j.grep(c,function(o){return o===i===k});else if(typeof i==="string"){var q=j.grep(c,function(o){return o.nodeType===1});if(fa.test(i))return j.filter(i,q,!k);else i=j.filter(i,c)}return j.grep(c,function(o){return j.inArray(o,
i)>=0===k})};j.fn.extend({find:function(c){for(var i=this.pushStack("","find",c),k=0,q=0,o=this.length;q<o;q++){k=i.length;j.find(c,this[q],i);if(q>0)for(var v=k;v<i.length;v++)for(var x=0;x<k;x++)if(i[x]===i[v]){i.splice(v--,1);break}}return i},has:function(c){var i=j(c);return this.filter(function(){for(var k=0,q=i.length;k<q;k++)if(j.contains(this,i[k]))return true})},not:function(c){return this.pushStack(Ja(this,c,false),"not",c)},filter:function(c){return this.pushStack(Ja(this,c,true),"filter",
c)},is:function(c){return!!c&&j.filter(c,this).length>0},closest:function(c,i){if(j.isArray(c)){var k=[],q=this[0],o,v={},x;if(q&&c.length){o=0;for(var F=c.length;o<F;o++){x=c[o];v[x]||(v[x]=j.expr.match.POS.test(x)?j(x,i||this.context):x)}for(;q&&q.ownerDocument&&q!==i;){for(x in v){o=v[x];if(o.jquery?o.index(q)>-1:j(q).is(o)){k.push({selector:x,elem:q});delete v[x]}}q=q.parentNode}}return k}var H=j.expr.match.POS.test(c)?j(c,i||this.context):null;return this.map(function(D,P){for(;P&&P.ownerDocument&&
P!==i;){if(H?H.index(P)>-1:j(P).is(c))return P;P=P.parentNode}return null})},index:function(c){if(!c||typeof c==="string")return j.inArray(this[0],c?j(c):this.parent().children());return j.inArray(c.jquery?c[0]:c,this)},add:function(c,i){c=typeof c==="string"?j(c,i||this.context):j.makeArray(c);i=j.merge(this.get(),c);return this.pushStack(w(c[0])||w(i[0])?i:j.unique(i))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},
parents:function(c){return j.dir(c,"parentNode")},parentsUntil:function(c,i,k){return j.dir(c,"parentNode",k)},next:function(c){return j.nth(c,2,"nextSibling")},prev:function(c){return j.nth(c,2,"previousSibling")},nextAll:function(c){return j.dir(c,"nextSibling")},prevAll:function(c){return j.dir(c,"previousSibling")},nextUntil:function(c,i,k){return j.dir(c,"nextSibling",k)},prevUntil:function(c,i,k){return j.dir(c,"previousSibling",k)},siblings:function(c){return j.sibling(c.parentNode.firstChild,
c)},children:function(c){return j.sibling(c.firstChild)},contents:function(c){return j.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:j.makeArray(c.childNodes)}},function(c,i){j.fn[c]=function(k,q){var o=j.map(this,i,k);Da.test(c)||(q=k);if(q&&typeof q==="string")o=j.filter(q,o);o=this.length>1?j.unique(o):o;if((this.length>1||Ma.test(q))&&Aa.test(c))o=o.reverse();return this.pushStack(o,c,sa.call(arguments).join(","))}});j.extend({filter:function(c,i,k){if(k)c=":not("+c+")";return j.find.matches(c,
i)},dir:function(c,i,k){var q=[];for(c=c[i];c&&c.nodeType!==9&&(k===e||!j(c).is(k));){c.nodeType===1&&q.push(c);c=c[i]}return q},nth:function(c,i,k){i=i||1;for(var q=0;c;c=c[k])if(c.nodeType===1&&++q===i)break;return c},sibling:function(c,i){for(var k=[];c;c=c.nextSibling)c.nodeType===1&&c!==i&&k.push(c);return k}});var ab=/ jQuery\d+="(?:\d+|null)"/g,Ra=/^\s+/,fb=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,bb=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&\w+;/,jb=function(c,
i,k){return gb.test(k)?c:i+"></"+k+">"},wa={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,"",""]};wa.optgroup=wa.option;wa.tbody=wa.tfoot=wa.colgroup=wa.caption=wa.thead;wa.th=wa.td;if(!j.support.htmlSerialize)wa._default=[1,"div<div>",
"</div>"];j.fn.extend({text:function(c){if(j.isFunction(c))return this.each(function(i){var k=j(this);return k.text(c.call(this,i,k.text()))});if(typeof c!=="object"&&c!==e)return this.empty().append((this[0]&&this[0].ownerDocument||J).createTextNode(c));return j.getText(this)},wrapAll:function(c){if(j.isFunction(c))return this.each(function(k){j(this).wrapAll(c.call(this,k))});if(this[0]){var i=j(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var k=
this;k.firstChild&&k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(c){return this.each(function(){var i=j(this),k=i.contents();k.length?k.wrapAll(c):i.append(c)})},wrap:function(c){return this.each(function(){j(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},
prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this)});else if(arguments.length){var c=j(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,
this.nextSibling)});else if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,j(arguments[0]).toArray());return c}},clone:function(c){var i=this.map(function(){if(!j.support.noCloneEvent&&!j.isXMLDoc(this)){var k=this.outerHTML,q=this.ownerDocument;if(!k){k=q.createElement("div");k.appendChild(this.cloneNode(true));k=k.innerHTML}return j.clean([k.replace(ab,"").replace(Ra,"")],q)[0]}else return this.cloneNode(true)});if(c===true){G(this,i);G(this.find("*"),i.find("*"))}return i},
html:function(c){if(c===e)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ab,""):null;else if(typeof c==="string"&&!/<script/i.test(c)&&(j.support.leadingWhitespace||!Ra.test(c))&&!wa[(bb.exec(c)||["",""])[1].toLowerCase()])try{for(var i=0,k=this.length;i<k;i++)if(this[i].nodeType===1){A(this[i].getElementsByTagName("*"));this[i].innerHTML=c}}catch(q){this.empty().append(c)}else j.isFunction(c)?this.each(function(o){var v=j(this),x=v.html();v.empty().append(function(){return c.call(this,
o,x)})}):this.empty().append(c);return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){j.isFunction(c)||(c=j(c).detach());return this.each(function(){var i=this.nextSibling,k=this.parentNode;j(this).remove();i?j(i).before(c):j(k).append(c)})}else return this.pushStack(j(j.isFunction(c)?c():c),"replaceWith",c)},detach:function(c){return this.remove(c,true)},domManip:function(c,i,k){function q(P){return j.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):
P}var o,v,x=c[0],F=[];if(j.isFunction(x))return this.each(function(P){var ba=j(this);c[0]=x.call(this,P,i?ba.html():e);return ba.domManip(c,i,k)});if(this[0]){o=c[0]&&c[0].parentNode&&c[0].parentNode.nodeType===11?{fragment:c[0].parentNode}:E(c,this,F);if(v=o.fragment.firstChild){i=i&&j.nodeName(v,"tr");for(var H=0,D=this.length;H<D;H++)k.call(i?q(this[H],v):this[H],o.cacheable||this.length>1||H>0?o.fragment.cloneNode(true):o.fragment)}F&&j.each(F,a)}return this}});j.fragments={};j.each({appendTo:"append",
prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,i){j.fn[c]=function(k){var q=[];k=j(k);for(var o=0,v=k.length;o<v;o++){var x=(o>0?this.clone(true):this).get();j.fn[i].apply(j(k[o]),x);q=q.concat(x)}return this.pushStack(q,c,k.selector)}});j.each({remove:function(c,i){if(!c||j.filter(c,[this]).length){if(!i&&this.nodeType===1){A(this.getElementsByTagName("*"));A([this])}this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(this.nodeType===
1&&A(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(c,i){j.fn[c]=function(){return this.each(i,arguments)}});j.extend({clean:function(c,i,k,q){i=i||J;if(typeof i.createElement==="undefined")i=i.ownerDocument||i[0]&&i[0].ownerDocument||J;var o=[];j.each(c,function(v,x){if(typeof x==="number")x+="";if(x){if(typeof x==="string"&&!ib.test(x))x=i.createTextNode(x);else if(typeof x==="string"){x=x.replace(fb,jb);var F=(bb.exec(x)||["",""])[1].toLowerCase(),
H=wa[F]||wa._default,D=H[0];v=i.createElement("div");for(v.innerHTML=H[1]+x+H[2];D--;)v=v.lastChild;if(!j.support.tbody){D=hb.test(x);F=F==="table"&&!D?v.firstChild&&v.firstChild.childNodes:H[1]==="<table>"&&!D?v.childNodes:[];for(H=F.length-1;H>=0;--H)j.nodeName(F[H],"tbody")&&!F[H].childNodes.length&&F[H].parentNode.removeChild(F[H])}!j.support.leadingWhitespace&&Ra.test(x)&&v.insertBefore(i.createTextNode(Ra.exec(x)[0]),v.firstChild);x=j.makeArray(v.childNodes)}if(x.nodeType)o.push(x);else o=j.merge(o,
x)}});if(k)for(c=0;o[c];c++)if(q&&j.nodeName(o[c],"script")&&(!o[c].type||o[c].type.toLowerCase()==="text/javascript"))q.push(o[c].parentNode?o[c].parentNode.removeChild(o[c]):o[c]);else{o[c].nodeType===1&&o.splice.apply(o,[c+1,0].concat(j.makeArray(o[c].getElementsByTagName("script"))));k.appendChild(o[c])}return o}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,cb=/alpha\([^)]*\)/,db=/opacity=([^)]*)/,Ua=/float/i,Va=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",
visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=J.defaultView&&J.defaultView.getComputedStyle,eb=j.support.cssFloat?"cssFloat":"styleFloat",Wa=function(c,i){return i.toUpperCase()};j.fn.css=function(c,i){return d(this,c,i,true,function(k,q,o){if(o===e)return j.curCSS(k,q);if(typeof o==="number"&&!kb.test(q))o+="px";j.style(k,q,o)})};j.extend({style:function(c,i,k){if(!(!c||c.nodeType===3||c.nodeType===8)){if((i==="width"||i==="height")&&parseFloat(k)<0)k=e;var q=c.style||
c,o=k!==e;if(!j.support.opacity&&i==="opacity"){if(o){q.zoom=1;i=parseInt(k,10)+""==="NaN"?"":"alpha(opacity="+k*100+")";c=q.filter||j.curCSS(c,"filter")||"";q.filter=cb.test(c)?c.replace(cb,i):i}return q.filter&&q.filter.indexOf("opacity=")>=0?parseFloat(db.exec(q.filter)[1])/100+"":""}if(Ua.test(i))i=eb;i=i.replace(Va,Wa);if(o)q[i]=k;return q[i]}},css:function(c,i,k,q){if(i==="width"||i==="height"){var o,v=i==="width"?pb:qb;function x(){o=i==="width"?c.offsetWidth:c.offsetHeight;q!=="border"&&j.each(v,
function(){q||(o-=parseFloat(j.curCSS(c,"padding"+this,true))||0);if(q==="margin")o+=parseFloat(j.curCSS(c,"margin"+this,true))||0;else o-=parseFloat(j.curCSS(c,"border"+this+"Width",true))||0})}c.offsetWidth!==0?x():j.swap(c,ob,x);return Math.max(0,Math.round(o))}return j.curCSS(c,i,k)},curCSS:function(c,i,k){var q,o=c.style;if(!j.support.opacity&&i==="opacity"&&c.currentStyle){q=db.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return q===""?"1":q}if(Ua.test(i))i=eb;if(!k&&o&&o[i])q=
o[i];else if(rb){if(Ua.test(i))i="float";i=i.replace(lb,"-$1").toLowerCase();o=c.ownerDocument.defaultView;if(!o)return null;if(c=o.getComputedStyle(c,null))q=c.getPropertyValue(i);if(i==="opacity"&&q==="")q="1"}else if(c.currentStyle){k=i.replace(Va,Wa);q=c.currentStyle[i]||c.currentStyle[k];if(!mb.test(q)&&nb.test(q)){i=o.left;var v=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;o.left=k==="fontSize"?"1em":q||0;q=o.pixelLeft+"px";o.left=i;c.runtimeStyle.left=v}}return q},swap:function(c,
i,k){var q={};for(var o in i){q[o]=c.style[o];c.style[o]=i[o]}k.call(c);for(o in i)c.style[o]=q[o]}});if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(c){var i=c.offsetWidth,k=c.offsetHeight,q=c.nodeName.toLowerCase()==="tr";return i===0&&k===0&&!q?true:i>0&&k>0&&!q?false:j.curCSS(c,"display")==="none"};j.expr.filters.visible=function(c){return!j.expr.filters.hidden(c)}}var sb=g(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
Na=/=\?(&|$)/,Xa=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g;j.fn.extend({_load:j.fn.load,load:function(c,i,k){if(typeof c!=="string")return this._load(c);else if(!this.length)return this;var q=c.indexOf(" ");if(q>=0){var o=c.slice(q,c.length);c=c.slice(0,q)}q="GET";if(i)if(j.isFunction(i)){k=i;i=null}else if(typeof i==="object"){i=j.param(i,j.ajaxSettings.traditional);q="POST"}j.ajax({url:c,type:q,dataType:"html",data:i,context:this,complete:function(v,x){if(x==="success"||x===
"notmodified")this.html(o?j("<div />").append(v.responseText.replace(tb,"")).find(o):v.responseText);k&&this.each(k,[v.responseText,x,v])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(c,i){c=j(this).val();return c==null?null:j.isArray(c)?
j.map(c,function(k){return{name:i.name,value:k}}):{name:i.name,value:c}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,i){j.fn[i]=function(k){return this.bind(i,k)}});j.extend({get:function(c,i,k,q){if(j.isFunction(i)){q=q||k;k=i;i=null}return j.ajax({type:"GET",url:c,data:i,success:k,dataType:q})},getScript:function(c,i){return j.get(c,null,i,"script")},getJSON:function(c,i,k){return j.get(c,i,k,"json")},post:function(c,i,k,q){if(j.isFunction(i)){q=
q||k;k=i;i={}}return j.ajax({type:"POST",url:c,data:i,success:k,dataType:q})},ajaxSetup:function(c){j.extend(j.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}:function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},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(c){function i(){o.success&&o.success.call(H,F,x,V);o.global&&q("ajaxSuccess",[V,o])}function k(){o.complete&&o.complete.call(H,V,x);o.global&&q("ajaxComplete",[V,o]);o.global&&!--j.active&&j.event.trigger("ajaxStop")}function q(L,K){(o.context?j(o.context):j.event).trigger(L,K)}var o=j.extend(true,{},j.ajaxSettings,c),v,x,F,H=o.context||
o,D=o.type.toUpperCase();if(o.data&&o.processData&&typeof o.data!=="string")o.data=j.param(o.data,o.traditional);if(o.dataType==="jsonp"){if(D==="GET")Na.test(o.url)||(o.url+=(Xa.test(o.url)?"&":"?")+(o.jsonp||"callback")+"=?");else if(!o.data||!Na.test(o.data))o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?";o.dataType="json"}if(o.dataType==="json"&&(o.data&&Na.test(o.data)||Na.test(o.url))){v=o.jsonpCallback||"jsonp"+sb++;if(o.data)o.data=(o.data+"").replace(Na,"="+v+"$1");o.url=o.url.replace(Na,
"="+v+"$1");o.dataType="script";b[v]=b[v]||function(L){F=L;i();k();b[v]=e;try{delete b[v]}catch(K){}ja&&ja.removeChild(pa)}}if(o.dataType==="script"&&o.cache===null)o.cache=false;if(o.cache===false&&D==="GET"){var P=g(),ba=o.url.replace(wb,"$1_="+P+"$2");o.url=ba+(ba===o.url?(Xa.test(o.url)?"&":"?")+"_="+P:"")}if(o.data&&D==="GET")o.url+=(Xa.test(o.url)?"&":"?")+o.data;o.global&&!j.active++&&j.event.trigger("ajaxStart");P=(P=xb.exec(o.url))&&(P[1]&&P[1]!==location.protocol||P[2]!==location.host);
if(o.dataType==="script"&&D==="GET"&&P){var ja=J.getElementsByTagName("head")[0]||J.documentElement,pa=J.createElement("script");pa.src=o.url;if(o.scriptCharset)pa.charset=o.scriptCharset;if(!v){var ra=false;pa.onload=pa.onreadystatechange=function(){if(!ra&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){ra=true;i();k();pa.onload=pa.onreadystatechange=null;ja&&pa.parentNode&&ja.removeChild(pa)}}}ja.insertBefore(pa,ja.firstChild)}else{var va=false,V=o.xhr();if(V){o.username?
V.open(D,o.url,o.async,o.username,o.password):V.open(D,o.url,o.async);try{if(o.data||c&&c.contentType)V.setRequestHeader("Content-Type",o.contentType);if(o.ifModified){j.lastModified[o.url]&&V.setRequestHeader("If-Modified-Since",j.lastModified[o.url]);j.etag[o.url]&&V.setRequestHeader("If-None-Match",j.etag[o.url])}P||V.setRequestHeader("X-Requested-With","XMLHttpRequest");V.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default)}catch(Ta){}if(o.beforeSend&&
o.beforeSend.call(H,V,o)===false){o.global&&!--j.active&&j.event.trigger("ajaxStop");V.abort();return false}o.global&&q("ajaxSend",[V,o]);var r=V.onreadystatechange=function(L){if(!V||V.readyState===0){va||k();va=true;if(V)V.onreadystatechange=j.noop}else if(!va&&V&&(V.readyState===4||L==="timeout")){va=true;V.onreadystatechange=j.noop;x=L==="timeout"?"timeout":!j.httpSuccess(V)?"error":o.ifModified&&j.httpNotModified(V,o.url)?"notmodified":"success";if(x==="success")try{F=j.httpData(V,o.dataType,
o)}catch(K){x="parsererror"}if(x==="success"||x==="notmodified")v||i();else j.handleError(o,V,x);k();L==="timeout"&&V.abort();if(o.async)V=null}};try{var u=V.abort;V.abort=function(){if(V){u.call(V);if(V)V.readyState=0}r()}}catch(z){}o.async&&o.timeout>0&&setTimeout(function(){V&&!va&&r("timeout")},o.timeout);try{V.send(D==="POST"||D==="PUT"||D==="DELETE"?o.data:null)}catch(C){j.handleError(o,V,null,C);k()}o.async||r();return V}}},handleError:function(c,i,k,q){if(c.error)c.error.call(c.context||b,
i,k,q);if(c.global)(c.context?j(c.context):j.event).trigger("ajaxError",[i,c,q])},active:0,httpSuccess:function(c){try{return!c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223||c.status===0}catch(i){}return false},httpNotModified:function(c,i){var k=c.getResponseHeader("Last-Modified"),q=c.getResponseHeader("Etag");if(k)j.lastModified[i]=k;if(q)j.etag[i]=q;return c.status===304||c.status===0},httpData:function(c,i,k){var q=c.getResponseHeader("content-type")||
"",o=i==="xml"||!i&&q.indexOf("xml")>=0;c=o?c.responseXML:c.responseText;if(o&&c.documentElement.nodeName==="parsererror")throw"parsererror";if(k&&k.dataFilter)c=k.dataFilter(c,i);if(typeof c==="string")if(i==="json"||!i&&q.indexOf("json")>=0)if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))c=b.JSON&&b.JSON.parse?b.JSON.parse(c):(new Function("return "+c))();
else throw"Invalid JSON: "+c;else if(i==="script"||!i&&q.indexOf("javascript")>=0)j.globalEval(c);return c},param:function(c,i){function k(o,v){v=j.isFunction(v)?v():v;q[q.length]=encodeURIComponent(o)+"="+encodeURIComponent(v)}var q=[];if(i===e)i=j.ajaxSettings.traditional;j.isArray(c)||c.jquery?j.each(c,function(){k(this.name,this.value)}):j.each(c,function o(v,x){if(j.isArray(x))j.each(x,function(F,H){i?k(v,H):o(v+"["+(typeof H==="object"||j.isArray(H)?F:"")+"]",H)});else!i&&x!=null&&typeof x===
"object"?j.each(x,function(F,H){o(v+"["+F+"]",H)}):k(v,x)});return q.join("&").replace(yb,"+")}});var Ya={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,Sa,Za=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];j.fn.extend({show:function(c,i){if(c!=null)return this.animate(I("show",3),c,i);else{c=0;for(i=this.length;c<i;c++){var k=j.data(this[c],"olddisplay");this[c].style.display=k||"";if(j.css(this[c],
"display")==="none"){k=this[c].nodeName;var q;if(Ya[k])q=Ya[k];else{var o=j("<"+k+" />").appendTo("body");q=o.css("display");if(q==="none")q="block";o.remove();Ya[k]=q}j.data(this[c],"olddisplay",q)}}c=0;for(i=this.length;c<i;c++)this[c].style.display=j.data(this[c],"olddisplay")||"";return this}},hide:function(c,i){if(c!=null)return this.animate(I("hide",3),c,i);else{c=0;for(i=this.length;c<i;c++){var k=j.data(this[c],"olddisplay");!k&&k!=="none"&&j.data(this[c],"olddisplay",j.css(this[c],"display"))}c=
0;for(i=this.length;c<i;c++)this[c].style.display="none";return this}},_toggle:j.fn.toggle,toggle:function(c,i){var k=typeof c==="boolean";if(j.isFunction(c)&&j.isFunction(i))this._toggle.apply(this,arguments);else c==null||k?this.each(function(){var q=k?c:j(this).is(":hidden");j(this)[q?"show":"hide"]()}):this.animate(I("toggle",3),c,i);return this},fadeTo:function(c,i,k){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:i},c,k)},animate:function(c,i,k,q){var o=j.speed(i,
k,q);if(j.isEmptyObject(c))return this.each(o.complete);return this[o.queue===false?"each":"queue"](function(){var v=j.extend({},o),x,F=this.nodeType===1&&j(this).is(":hidden"),H=this;for(x in c){var D=x.replace(Va,Wa);if(x!==D){c[D]=c[x];delete c[x];x=D}if(c[x]==="hide"&&F||c[x]==="show"&&!F)return v.complete.call(this);if((x==="height"||x==="width")&&this.style){v.display=j.css(this,"display");v.overflow=this.style.overflow}if(j.isArray(c[x])){(v.specialEasing=v.specialEasing||{})[x]=c[x][1];c[x]=
c[x][0]}}if(v.overflow!=null)this.style.overflow="hidden";v.curAnim=j.extend({},c);j.each(c,function(P,ba){var ja=new j.fx(H,v,P);if(zb.test(ba))ja[ba==="toggle"?F?"show":"hide":ba](c);else{var pa=Ab.exec(ba),ra=ja.cur(true)||0;if(pa){ba=parseFloat(pa[2]);var va=pa[3]||"px";if(va!=="px"){H.style[P]=(ba||1)+va;ra=(ba||1)/ja.cur(true)*ra;H.style[P]=ra+va}if(pa[1])ba=(pa[1]==="-="?-1:1)*ba+ra;ja.custom(ra,ba,va)}else ja.custom(ra,ba,"")}});return true})},stop:function(c,i){var k=j.timers;c&&this.queue([]);
this.each(function(){for(var q=k.length-1;q>=0;q--)if(k[q].elem===this){i&&k[q](true);k.splice(q,1)}});i||this.dequeue();return this}});j.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,i){j.fn[c]=function(k,q){return this.animate(i,k,q)}});j.extend({speed:function(c,i,k){var q=c&&typeof c==="object"?c:{complete:k||!k&&i||j.isFunction(c)&&c,duration:c,easing:k&&i||i&&!j.isFunction(i)&&i};q.duration=j.fx.off?0:typeof q.duration===
"number"?q.duration:j.fx.speeds[q.duration]||j.fx.speeds._default;q.old=q.complete;q.complete=function(){q.queue!==false&&j(this).dequeue();j.isFunction(q.old)&&q.old.call(this)};return q},easing:{linear:function(c,i,k,q){return k+q*c},swing:function(c,i,k,q){return(-Math.cos(c*Math.PI)/2+0.5)*q+k}},timers:[],fx:function(c,i,k){this.options=i;this.elem=c;this.prop=k;if(!i.orig)i.orig={}}});j.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||
j.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(c=parseFloat(j.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(j.curCSS(this.elem,this.prop))||0},custom:function(c,i,k){function q(v){return o.step(v)}this.startTime=g();this.start=c;this.end=i;this.unit=k||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var o=this;q.elem=this.elem;if(q()&&j.timers.push(q)&&!Sa)Sa=setInterval(j.fx.tick,13)},show:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var i=g(),k=true;if(c||i>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var q in this.options.curAnim)if(this.options.curAnim[q]!==true)k=false;if(k){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;c=j.data(this.elem,"olddisplay");this.elem.style.display=c?c:this.options.display;if(j.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&j(this.elem).hide();if(this.options.hide||this.options.show)for(var o in this.options.curAnim)j.style(this.elem,
o,this.options.orig[o]);this.options.complete.call(this.elem)}return false}else{o=i-this.startTime;this.state=o/this.options.duration;c=this.options.easing||(j.easing.swing?"swing":"linear");this.pos=j.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,o,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};j.extend(j.fx,{tick:function(){for(var c=j.timers,i=0;i<c.length;i++)c[i]()||c.splice(i--,1);c.length||
j.fx.stop()},stop:function(){clearInterval(Sa);Sa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){j.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null)c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit;else c.elem[c.prop]=c.now}}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(c){return j.grep(j.timers,function(i){return c===i.elem}).length};j.fn.offset="getBoundingClientRect"in
J.documentElement?function(c){var i=this[0];if(!i||!i.ownerDocument)return null;if(c)return this.each(function(o){j.offset.setOffset(this,c,o)});if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);var k=i.getBoundingClientRect(),q=i.ownerDocument;i=q.body;q=q.documentElement;return{top:k.top+(self.pageYOffset||j.support.boxModel&&q.scrollTop||i.scrollTop)-(q.clientTop||i.clientTop||0),left:k.left+(self.pageXOffset||j.support.boxModel&&q.scrollLeft||i.scrollLeft)-(q.clientLeft||i.clientLeft||
0)}}:function(c){var i=this[0];if(!i||!i.ownerDocument)return null;if(c)return this.each(function(P){j.offset.setOffset(this,c,P)});if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);j.offset.initialize();var k=i.offsetParent,q=i,o=i.ownerDocument,v,x=o.documentElement,F=o.body;q=(o=o.defaultView)?o.getComputedStyle(i,null):i.currentStyle;for(var H=i.offsetTop,D=i.offsetLeft;(i=i.parentNode)&&i!==F&&i!==x;){if(j.offset.supportsFixedPosition&&q.position==="fixed")break;v=o?o.getComputedStyle(i,
null):i.currentStyle;H-=i.scrollTop;D-=i.scrollLeft;if(i===k){H+=i.offsetTop;D+=i.offsetLeft;if(j.offset.doesNotAddBorder&&!(j.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(i.nodeName))){H+=parseFloat(v.borderTopWidth)||0;D+=parseFloat(v.borderLeftWidth)||0}q=k;k=i.offsetParent}if(j.offset.subtractsBorderForOverflowNotVisible&&v.overflow!=="visible"){H+=parseFloat(v.borderTopWidth)||0;D+=parseFloat(v.borderLeftWidth)||0}q=v}if(q.position==="relative"||q.position==="static"){H+=F.offsetTop;
D+=F.offsetLeft}if(j.offset.supportsFixedPosition&&q.position==="fixed"){H+=Math.max(x.scrollTop,F.scrollTop);D+=Math.max(x.scrollLeft,F.scrollLeft)}return{top:H,left:D}};j.offset={initialize:function(){var c=J.body,i=J.createElement("div"),k,q,o,v=parseFloat(j.curCSS(c,"marginTop",true))||0;j.extend(i.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});i.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>";
c.insertBefore(i,c.firstChild);k=i.firstChild;q=k.firstChild;o=k.nextSibling.firstChild.firstChild;this.doesNotAddBorder=q.offsetTop!==5;this.doesAddBorderForTableAndCells=o.offsetTop===5;q.style.position="fixed";q.style.top="20px";this.supportsFixedPosition=q.offsetTop===20||q.offsetTop===15;q.style.position=q.style.top="";k.style.overflow="hidden";k.style.position="relative";this.subtractsBorderForOverflowNotVisible=q.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==v;c.removeChild(i);
j.offset.initialize=j.noop},bodyOffset:function(c){var i=c.offsetTop,k=c.offsetLeft;j.offset.initialize();if(j.offset.doesNotIncludeMarginInBodyOffset){i+=parseFloat(j.curCSS(c,"marginTop",true))||0;k+=parseFloat(j.curCSS(c,"marginLeft",true))||0}return{top:i,left:k}},setOffset:function(c,i,k){if(/static/.test(j.curCSS(c,"position")))c.style.position="relative";var q=j(c),o=q.offset(),v=parseInt(j.curCSS(c,"top",true),10)||0,x=parseInt(j.curCSS(c,"left",true),10)||0;if(j.isFunction(i))i=i.call(c,
k,o);k={top:i.top-o.top+v,left:i.left-o.left+x};"using"in i?i.using.call(c,k):q.css(k)}};j.fn.extend({position:function(){if(!this[0])return null;var c=this[0],i=this.offsetParent(),k=this.offset(),q=/^body|html$/i.test(i[0].nodeName)?{top:0,left:0}:i.offset();k.top-=parseFloat(j.curCSS(c,"marginTop",true))||0;k.left-=parseFloat(j.curCSS(c,"marginLeft",true))||0;q.top+=parseFloat(j.curCSS(i[0],"borderTopWidth",true))||0;q.left+=parseFloat(j.curCSS(i[0],"borderLeftWidth",true))||0;return{top:k.top-
q.top,left:k.left-q.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||J.body;c&&!/^body|html$/i.test(c.nodeName)&&j.css(c,"position")==="static";)c=c.offsetParent;return c})}});j.each(["Left","Top"],function(c,i){var k="scroll"+i;j.fn[k]=function(q){var o=this[0],v;if(!o)return null;if(q!==e)return this.each(function(){if(v=N(this))v.scrollTo(!c?q:j(v).scrollLeft(),c?q:j(v).scrollTop());else this[k]=q});else return(v=N(o))?"pageXOffset"in v?v[c?"pageYOffset":"pageXOffset"]:
j.support.boxModel&&v.document.documentElement[k]||v.document.body[k]:o[k]}});j.each(["Height","Width"],function(c,i){var k=i.toLowerCase();j.fn["inner"+i]=function(){return this[0]?j.css(this[0],k,false,"padding"):null};j.fn["outer"+i]=function(q){return this[0]?j.css(this[0],k,false,q?"margin":"border"):null};j.fn[k]=function(q){var o=this[0];if(!o)return q==null?null:this;return"scrollTo"in o&&o.document?o.document.compatMode==="CSS1Compat"&&o.document.documentElement["client"+i]||o.document.body["client"+
i]:o.nodeType===9?Math.max(o.documentElement["client"+i],o.body["scroll"+i],o.documentElement["scroll"+i],o.body["offset"+i],o.documentElement["offset"+i]):q===e?j.css(o,k):this.css(k,typeof q==="string"?q:q+"px")}});b.jQuery=b.$=j})(window);jQuery.ui||function(b){function e(m,p,s,w){function G(A){A=b[m][p][A]||[];return typeof A=="string"?A.split(/,?\s+/):A}var E=G("getter");if(w.length==1&&typeof w[0]=="string")E=E.concat(G("getterSetter"));return b.inArray(s,E)!=-1}var f=b.fn.remove,a=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7.2",plugin:{add:function(m,p,s){m=b.ui[m].prototype;for(var w in s){m.plugins[w]=m.plugins[w]||[];m.plugins[w].push([p,s[w]])}},call:function(m,p,s){if((p=m.plugins[p])&&m.element[0].parentNode)for(var w=
0;w<p.length;w++)m.options[p[w][0]]&&p[w][1].apply(m.element,s)}},contains:function(m,p){return document.compareDocumentPosition?m.compareDocumentPosition(p)&16:m!==p&&m.contains(p)},hasScroll:function(m,p){if(b(m).css("overflow")=="hidden")return false;p=p&&p=="left"?"scrollLeft":"scrollTop";var s=false;if(m[p]>0)return true;m[p]=1;s=m[p]>0;m[p]=0;return s},isOverAxis:function(m,p,s){return m>p&&m<p+s},isOver:function(m,p,s,w,G,E){return b.ui.isOverAxis(m,s,G)&&b.ui.isOverAxis(p,w,E)},keyCode:{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}};if(a){var d=b.attr,g=b.fn.removeAttr,h=/^aria-/,n=/^wairole:/;b.attr=function(m,p,s){var w=s!==undefined;return p=="role"?w?d.call(this,m,p,"wairole:"+s):(d.apply(this,arguments)||"").replace(n,""):h.test(p)?w?m.setAttributeNS("http://www.w3.org/2005/07/aaa",
p.replace(h,"aaa:"),s):d.call(this,m,p.replace(h,"aaa:")):d.apply(this,arguments)};b.fn.removeAttr=function(m){return h.test(m)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",m.replace(h,""))}):g.call(this,m)}}b.fn.extend({remove:function(){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return f.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var m;m=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,
"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!m.length?b(document):m}});b.extend(b.expr[":"],{data:function(m,p,s){return!!b.data(m,s[3])},focusable:function(m){var p=m.nodeName.toLowerCase(),s=b.attr(m,"tabindex");return(/input|select|textarea|button|object/.test(p)?!m.disabled:"a"==p||"area"==p?m.href||!isNaN(s):!isNaN(s))&&!b(m)["area"==p?"parents":"closest"](":hidden").length},tabbable:function(m){var p=b.attr(m,"tabindex");
return(isNaN(p)||p>=0)&&b(m).is(":focusable")}});b.widget=function(m,p){var s=m.split(".")[0];m=m.split(".")[1];b.fn[m]=function(w){var G=typeof w=="string",E=Array.prototype.slice.call(arguments,1);if(G&&w.substring(0,1)=="_")return this;if(G&&e(s,m,w,E)){var A=b.data(this[0],m);return A?A[w].apply(A,E):undefined}return this.each(function(){var I=b.data(this,m);!I&&!G&&b.data(this,m,new b[s][m](this,w))._init();I&&G&&b.isFunction(I[w])&&I[w].apply(I,E)})};b[s]=b[s]||{};b[s][m]=function(w,G){var E=
this;this.namespace=s;this.widgetName=m;this.widgetEventPrefix=b[s][m].eventPrefix||m;this.widgetBaseClass=s+"-"+m;this.options=b.extend({},b.widget.defaults,b[s][m].defaults,b.metadata&&b.metadata.get(w)[m],G);this.element=b(w).bind("setData."+m,function(A,I,N){if(A.target==w)return E._setData(I,N)}).bind("getData."+m,function(A,I){if(A.target==w)return E._getData(I)}).bind("remove",function(){return E.destroy()})};b[s][m].prototype=b.extend({},b.widget.prototype,p);b[s][m].getterSetter="option"};
b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(m,p){var s=m,w=this;if(typeof m=="string"){if(p===undefined)return this._getData(m);s={};s[m]=p}b.each(s,function(G,E){w._setData(G,E)})},_getData:function(m){return this.options[m]},_setData:function(m,p){this.options[m]=p;if(m=="disabled")this.element[p?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",p)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(m,p,s){var w=this.options[m];m=m==this.widgetEventPrefix?m:this.widgetEventPrefix+m;p=b.Event(p);p.type=m;if(p.originalEvent){m=b.event.props.length;for(var G;m;){G=b.event.props[--m];p[G]=p.originalEvent[G]}}this.element.trigger(p,s);return!(b.isFunction(w)&&w.call(this.element[0],p,s)===false||p.isDefaultPrevented())}};
b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var m=this;this.element.bind("mousedown."+this.widgetName,function(p){return m._mouseDown(p)}).bind("click."+this.widgetName,function(p){if(m._preventClickEvent){m._preventClickEvent=false;p.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(!m.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(m);this._mouseDownEvent=m;var p=this,s=m.which==1,w=typeof this.options.cancel=="string"?b(m.target).parents().add(m.target).filter(this.options.cancel).length:false;if(!s||w||!this._mouseCapture(m))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){p.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=this._mouseStart(m)!==false;if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(G){return p._mouseMove(G)};this._mouseUpDelegate=function(G){return p._mouseUp(G)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||m.preventDefault();return m.originalEvent.mouseHandled=true}},
_mouseMove:function(m){if(b.browser.msie&&!m.button)return this._mouseUp(m);if(this._mouseStarted){this._mouseDrag(m);return m.preventDefault()}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,m)!==false)?this._mouseDrag(m):this._mouseUp(m);return!this._mouseStarted},_mouseUp:function(m){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=m.target==this._mouseDownEvent.target;this._mouseStop(m)}return false},_mouseDistanceMet:function(m){return Math.max(Math.abs(this._mouseDownEvent.pageX-m.pageX),Math.abs(this._mouseDownEvent.pageY-m.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init: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()}},_mouseCapture:function(e){var f=this.options;if(this.helper||f.disabled||b(e.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(e);if(!this.handle)return false;return true},_mouseStart:function(e){var f=this.options;this.helper=this._createHelper(e);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();this._trigger("start",e);this._cacheHelperProportions();b.ui.ddmanager&&
!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(e,true);return true},_mouseDrag:function(e,f){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!f){f=this._uiHash();this._trigger("drag",e,f);this.position=f.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";b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);return false},_mouseStop:function(e){var f=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)f=b.ui.ddmanager.drop(this,e);if(this.dropped){f=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",
e);a._clear()})}else{this._trigger("stop",e);this._clear()}return false},_getHandle:function(e){var f=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==e.target)f=true});return f},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e])):f.helper=="clone"?this.element.clone():this.element;e.parents("body").length||e.appendTo(f.appendTo=="parent"?
this.element[0].parentNode:f.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},
_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),
10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 e=this.options;if(e.containment=="parent")e.containment=this.helper[0].parentNode;if(e.containment=="document"||e.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(e.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(b(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var f=b(e.containment)[0];if(f){e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),
10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(e.containment.constructor==
Array)this.containment=e.containment},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:a.scrollTop())*
e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var g=e.pageX,h=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])g=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])g=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])h=
this.containment[3]+this.offset.click.top}if(f.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/f.grid[1])*f.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-f.grid[1]:h+f.grid[1]:h;g=this.originalPageX+Math.round((g-this.originalPageX)/f.grid[0])*f.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-f.grid[0]:g+f.grid[0]:g}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:a.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:a.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(e,f,a){a=a||this._uiHash();b.ui.plugin.call(this,e,[f,a]);if(e=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.widget.prototype._trigger.call(this,e,f,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",
eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}});b.ui.plugin.add("draggable","connectToSortable",{start:function(e,
f){var a=b(this).data("draggable"),d=a.options,g=b.extend({},f,{item:a.element});a.sortables=[];b(d.connectToSortable).each(function(){var h=b.data(this,"sortable");if(h&&!h.options.disabled){a.sortables.push({instance:h,shouldRevert:h.options.revert});h._refreshItems();h._trigger("activate",e,g)}})},stop:function(e,f){var a=b(this).data("draggable"),d=b.extend({},f,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,d)}})},drag:function(e,f){var a=b(this).data("draggable"),d=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;
this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(d).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=
a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",e);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&this.instance._mouseDrag(e)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",e);a.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var e=b("body"),f=b(this).data("draggable").options;if(e.css("cursor"))f._cursor=e.css("cursor");e.css("cursor",
f.cursor)},stop:function(){var e=b(this).data("draggable").options;e._cursor&&b("body").css("cursor",e._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<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(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
b.ui.plugin.add("draggable","opacity",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("opacity"))f._opacity=e.css("opacity");e.css("opacity",f.opacity)},stop:function(e,f){e=b(this).data("draggable").options;e._opacity&&b(f.helper).css("opacity",e._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var e=b(this).data("draggable");if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML")e.overflowOffset=e.scrollParent.offset()},drag:function(e){var f=
b(this).data("draggable"),a=f.options,d=false;if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity)f.scrollParent[0].scrollTop=d=f.scrollParent[0].scrollTop+a.scrollSpeed;else if(e.pageY-f.overflowOffset.top<a.scrollSensitivity)f.scrollParent[0].scrollTop=d=f.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-e.pageX<
a.scrollSensitivity)f.scrollParent[0].scrollLeft=d=f.scrollParent[0].scrollLeft+a.scrollSpeed;else if(e.pageX-f.overflowOffset.left<a.scrollSensitivity)f.scrollParent[0].scrollLeft=d=f.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(e.pageY-b(document).scrollTop()<a.scrollSensitivity)d=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<a.scrollSensitivity)d=b(document).scrollTop(b(document).scrollTop()+
a.scrollSpeed);if(!a.axis||a.axis!="y")if(e.pageX-b(document).scrollLeft()<a.scrollSensitivity)d=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<a.scrollSensitivity)d=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed)}d!==false&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(f,e)}});b.ui.plugin.add("draggable","snap",{start:function(){var e=b(this).data("draggable"),f=e.options;e.snapElements=
[];b(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var a=b(this),d=a.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:d.top,left:d.left})})},drag:function(e,f){for(var a=b(this).data("draggable"),d=a.options,g=d.snapTolerance,h=f.offset.left,n=h+a.helperProportions.width,m=f.offset.top,p=m+a.helperProportions.height,s=a.snapElements.length-1;s>=0;s--){var w=a.snapElements[s].left,G=w+a.snapElements[s].width,
E=a.snapElements[s].top,A=E+a.snapElements[s].height;if(w-g<h&&h<G+g&&E-g<m&&m<A+g||w-g<h&&h<G+g&&E-g<p&&p<A+g||w-g<n&&n<G+g&&E-g<m&&m<A+g||w-g<n&&n<G+g&&E-g<p&&p<A+g){if(d.snapMode!="inner"){var I=Math.abs(E-p)<=g,N=Math.abs(A-m)<=g,j=Math.abs(w-n)<=g,X=Math.abs(G-h)<=g;if(I)f.position.top=a._convertPositionTo("relative",{top:E-a.helperProportions.height,left:0}).top-a.margins.top;if(N)f.position.top=a._convertPositionTo("relative",{top:A,left:0}).top-a.margins.top;if(j)f.position.left=a._convertPositionTo("relative",
{top:0,left:w-a.helperProportions.width}).left-a.margins.left;if(X)f.position.left=a._convertPositionTo("relative",{top:0,left:G}).left-a.margins.left}var ea=I||N||j||X;if(d.snapMode!="outer"){I=Math.abs(E-m)<=g;N=Math.abs(A-p)<=g;j=Math.abs(w-h)<=g;X=Math.abs(G-n)<=g;if(I)f.position.top=a._convertPositionTo("relative",{top:E,left:0}).top-a.margins.top;if(N)f.position.top=a._convertPositionTo("relative",{top:A-a.helperProportions.height,left:0}).top-a.margins.top;if(j)f.position.left=a._convertPositionTo("relative",
{top:0,left:w}).left-a.margins.left;if(X)f.position.left=a._convertPositionTo("relative",{top:0,left:G-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[s].snapping&&(I||N||j||X||ea))a.options.snap.snap&&a.options.snap.snap.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[s].item}));a.snapElements[s].snapping=I||N||j||X||ea}else{a.snapElements[s].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,e,b.extend(a._uiHash(),{snapItem:a.snapElements[s].item}));
a.snapElements[s].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var e=b(this).data("draggable").options,f=b.makeArray(b(e.stack.group)).sort(function(a,d){return(parseInt(b(a).css("zIndex"),10)||e.stack.min)-(parseInt(b(d).css("zIndex"),10)||e.stack.min)});b(f).each(function(a){this.style.zIndex=e.stack.min+a});this[0].style.zIndex=e.stack.min+f.length}});b.ui.plugin.add("draggable","zIndex",{start:function(e,f){e=b(f.helper);f=b(this).data("draggable").options;if(e.css("zIndex"))f._zIndex=
e.css("zIndex");e.css("zIndex",f.zIndex)},stop:function(e,f){e=b(this).data("draggable").options;e._zIndex&&b(f.helper).css("zIndex",e._zIndex)}})})(jQuery);
(function(b){b.widget("ui.droppable",{_init:function(){var e=this.options.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&b.isFunction(this.options.accept)?this.options.accept:function(f){return f.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},
destroy:function(){for(var e=b.ui.ddmanager.droppables[this.options.scope],f=0;f<e.length;f++)e[f]==this&&e.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(e,f){if(e=="accept")this.options.accept=f&&b.isFunction(f)?f:function(a){return a.is(f)};else b.widget.prototype._setData.apply(this,arguments)},_activate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
f&&this._trigger("activate",e,this.ui(f))},_deactivate:function(e){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",e,this.ui(f))},_over:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",e,this.ui(f))}},
_out:function(e){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",e,this.ui(f))}},_drop:function(e,f){var a=f||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return false;var d=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
b.data(this,"droppable");if(g.options.greedy&&b.ui.intersect(a,b.extend(g,{offset:g.element.offset()}),g.options.tolerance)){d=true;return false}});if(d)return false;if(this.options.accept.call(this.element[0],a.currentItem||a.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",e,this.ui(a));return this.element}return false},ui:function(e){return{draggable:e.currentItem||
e.element,helper:e.helper,position:e.position,absolutePosition:e.positionAbs,offset:e.positionAbs}}});b.extend(b.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});b.ui.intersect=function(e,f,a){if(!f.offset)return false;var d=(e.positionAbs||e.position.absolute).left,g=d+e.helperProportions.width,h=(e.positionAbs||e.position.absolute).top,n=h+e.helperProportions.height,m=f.offset.left,
p=m+f.proportions.width,s=f.offset.top,w=s+f.proportions.height;switch(a){case "fit":return m<d&&g<p&&s<h&&n<w;case "intersect":return m<d+e.helperProportions.width/2&&g-e.helperProportions.width/2<p&&s<h+e.helperProportions.height/2&&n-e.helperProportions.height/2<w;case "pointer":return b.ui.isOver((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,s,m,f.proportions.height,f.proportions.width);
case "touch":return(h>=s&&h<=w||n>=s&&n<=w||h<s&&n>w)&&(d>=m&&d<=p||g>=m&&g<=p||d<m&&g>p);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,f){var a=b.ui.ddmanager.droppables[e.options.scope],d=f?f.type:null,g=(e.currentItem||e.element).find(":data(droppable)").andSelf(),h=0;a:for(;h<a.length;h++)if(!(a[h].options.disabled||e&&!a[h].options.accept.call(a[h].element[0],e.currentItem||e.element))){for(var n=0;n<g.length;n++)if(g[n]==a[h].element[0]){a[h].proportions.height=
0;continue a}a[h].visible=a[h].element.css("display")!="none";if(a[h].visible){a[h].offset=a[h].element.offset();a[h].proportions={width:a[h].element[0].offsetWidth,height:a[h].element[0].offsetHeight};d=="mousedown"&&a[h]._activate.call(a[h],f)}}},drop:function(e,f){var a=false;b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(e,this,this.options.tolerance))a=this._drop.call(this,f);if(!this.options.disabled&&this.visible&&
this.options.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,f)}}});return a},drag:function(e,f){e.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(e,f);b.each(b.ui.ddmanager.droppables[e.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var a=b.ui.intersect(e,this,this.options.tolerance);if(a=!a&&this.isover==1?"isout":a&&this.isover==0?"isover":null){var d;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");
if(g.length){d=b.data(g[0],"droppable");d.greedyChild=a=="isover"?1:0}}if(d&&a=="isover"){d.isover=0;d.isout=1;d._out.call(d,f)}this[a]=1;this[a=="isout"?"isover":"isout"]=0;this[a=="isover"?"_over":"_out"].call(this,f);if(d&&a=="isout"){d.isout=0;d.isover=1;d._over.call(d,f)}}}})}}})(jQuery);
(function(b){b.widget("ui.resizable",b.extend({},b.ui.mouse,{_init:function(){var a=this,d=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!d.aspectRatio,aspectRatio:d.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:d.helper||d.ghost||d.animate?d.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",
top:"auto",left:"auto"});this.element.wrap(b('<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=
d.handles||(!b(".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=b.trim(g[h]),m=b('<div class="ui-resizable-handle '+("ui-resizable-"+n)+'"></div>');/sw|se|ne|nw/.test(n)&&
m.css({zIndex:++d.zIndex});"se"==n&&m.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[n]=".ui-resizable-"+n;this.element.append(m)}}this._renderAxis=function(p){p=p||this.element;for(var s in this.handles){if(this.handles[s].constructor==String)this.handles[s]=b(this.handles[s],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var w=b(this.handles[s],this.element),G=0;G=/sw|ne|nw|se|n|s/.test(s)?w.outerHeight():w.outerWidth();
w=["padding",/ne|nw|n/.test(s)?"Top":/se|sw|s/.test(s)?"Bottom":/^e$/.test(s)?"Right":"Left"].join("");p.css(w,G);this._proportionallyResize()}b(this.handles[s])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!a.resizing){if(this.className)var p=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);a.axis=p&&p[1]?p[1]:"se"}});if(d.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");
a._handles.show()},function(){if(!a.resizing){b(this).addClass("ui-resizable-autohide");a._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var a=function(g){b(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){a(this.element);var d=this.element;d.parent().append(this.originalElement.css({position:d.css("position"),width:d.outerWidth(),height:d.outerHeight(),
top:d.css("top"),left:d.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement)},_mouseCapture:function(a){var d=false;for(var g in this.handles)if(b(this.handles[g])[0]==a.target)d=true;return this.options.disabled||!!d},_mouseStart:function(a){var d=this.options,g=this.element.position(),h=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(h.is(".ui-draggable")||/absolute/.test(h.css("position")))h.css({position:"absolute",
top:g.top,left:g.left});b.browser.opera&&/relative/.test(h.css("position"))&&h.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();g=e(this.helper.css("left"));var n=e(this.helper.css("top"));if(d.containment){g+=b(d.containment).scrollLeft()||0;n+=b(d.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:a.pageX,top:a.pageY};this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;d=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",d=="auto"?this.axis+"-resize":d);h.addClass("ui-resizable-resizing");this._propagate("start",
a);return true},_mouseDrag:function(a){var d=this.helper,g=this.originalMousePosition,h=this._change[this.axis];if(!h)return false;g=h.apply(this,[a,a.pageX-g.left||0,a.pageY-g.top||0]);if(this._aspectRatio||a.shiftKey)g=this._updateRatio(g,a);g=this._respectSize(g,a);this._propagate("resize",a);d.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",a,this.ui());return false},_mouseStop:function(a){this.resizing=false;var d=this.options,g=this;if(this._helper){var h=this._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName);h=n&&b.ui.hasScroll(h[0],"left")?0:g.sizeDiff.height;n={width:g.size.width-(n?0:g.sizeDiff.width),height:g.size.height-h};h=parseInt(g.element.css("left"),10)+(g.position.left-g.originalPosition.left)||null;var m=parseInt(g.element.css("top"),10)+(g.position.top-
g.originalPosition.top)||null;d.animate||this.element.css(b.extend(n,{top:m,left:h}));g.helper.height(g.size.height);g.helper.width(g.size.width);this._helper&&!d.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove();return false},_updateCache:function(a){this.offset=this.helper.offset();if(f(a.left))this.position.left=a.left;if(f(a.top))this.position.top=a.top;if(f(a.height))this.size.height=
a.height;if(f(a.width))this.size.width=a.width},_updateRatio:function(a){var d=this.position,g=this.size,h=this.axis;if(a.height)a.width=g.height*this.aspectRatio;else if(a.width)a.height=g.width/this.aspectRatio;if(h=="sw"){a.left=d.left+(g.width-a.width);a.top=null}if(h=="nw"){a.top=d.top+(g.height-a.height);a.left=d.left+(g.width-a.width)}return a},_respectSize:function(a){var d=this.options,g=this.axis,h=f(a.width)&&d.maxWidth&&d.maxWidth<a.width,n=f(a.height)&&d.maxHeight&&d.maxHeight<a.height,
m=f(a.width)&&d.minWidth&&d.minWidth>a.width,p=f(a.height)&&d.minHeight&&d.minHeight>a.height;if(m)a.width=d.minWidth;if(p)a.height=d.minHeight;if(h)a.width=d.maxWidth;if(n)a.height=d.maxHeight;var s=this.originalPosition.left+this.originalSize.width,w=this.position.top+this.size.height,G=/sw|nw|w/.test(g);g=/nw|ne|n/.test(g);if(m&&G)a.left=s-d.minWidth;if(h&&G)a.left=s-d.maxWidth;if(p&&g)a.top=w-d.minHeight;if(n&&g)a.top=w-d.maxHeight;if((d=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(d&&
!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var g=this._proportionallyResizeElements[d];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=b.map(h,function(m,
p){m=parseInt(m,10)||0;p=parseInt(n[p],10)||0;return m+p})}b.browser.msie&&(b(a).is(":hidden")||b(a).parents(":hidden").length)||g.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var d=b.browser.msie&&b.browser.version<7,g=d?1:0;d=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
d,height:this.element.outerHeight()+d,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,d){return{width:this.originalSize.width+d}},w:function(a,d){return{left:this.originalPosition.left+d,width:this.originalSize.width-d}},n:function(a,d,g){return{top:this.originalPosition.top+g,height:this.originalSize.height-g}},s:function(a,d,g){return{height:this.originalSize.height+
g}},se:function(a,d,g){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,d,g]))},sw:function(a,d,g){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,d,g]))},ne:function(a,d,g){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,d,g]))},nw:function(a,d,g){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,d,g]))}},_propagate:function(a,d){b.ui.plugin.call(this,a,[d,this.ui()]);
a!="resize"&&this._trigger(a,d,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}}}));b.extend(b.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,
ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3}});b.ui.plugin.add("resizable","alsoResize",{start:function(){var a=b(this).data("resizable").options;_store=function(d){b(d).each(function(){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height:parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseInt(b(this).css("top"),10)})})};if(typeof a.alsoResize=="object"&&!a.alsoResize.parentNode)if(a.alsoResize.length){a.alsoResize=
a.alsoResize[0];_store(a.alsoResize)}else b.each(a.alsoResize,function(d){_store(d)});else _store(a.alsoResize)},resize:function(){var a=b(this).data("resizable"),d=a.options,g=a.originalSize,h=a.originalPosition,n={height:a.size.height-g.height||0,width:a.size.width-g.width||0,top:a.position.top-h.top||0,left:a.position.left-h.left||0},m=function(p,s){b(p).each(function(){var w=b(this),G=b(this).data("resizable-alsoresize"),E={};b.each((s&&s.length?s:["width","height","top","left"])||["width","height",
"top","left"],function(A,I){if((A=(G[I]||0)+(n[I]||0))&&A>=0)E[I]=A||null});if(/relative/.test(w.css("position"))&&b.browser.opera){a._revertToRelativePosition=true;w.css({position:"absolute",top:"auto",left:"auto"})}w.css(E)})};typeof d.alsoResize=="object"&&!d.alsoResize.nodeType?b.each(d.alsoResize,function(p,s){m(p,s)}):m(d.alsoResize)},stop:function(){var a=b(this).data("resizable");if(a._revertToRelativePosition&&b.browser.opera){a._revertToRelativePosition=false;el.css({position:"relative"})}b(this).removeData("resizable-alsoresize-start")}});
b.ui.plugin.add("resizable","animate",{stop:function(a){var d=b(this).data("resizable"),g=d.options,h=d._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),m=n&&b.ui.hasScroll(h[0],"left")?0:d.sizeDiff.height;n={width:d.size.width-(n?0:d.sizeDiff.width),height:d.size.height-m};m=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var p=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(b.extend(n,p&&
m?{top:p,left:m}:{}),{duration:g.animateDuration,easing:g.animateEasing,step:function(){var s={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};h&&h.length&&b(h[0]).css({width:s.width,height:s.height});d._updateCache(s);d._propagate("resize",a)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var a=b(this).data("resizable"),d=a.element,g=a.options.containment;if(d=g instanceof
b?g.get(0):/parent/.test(g)?d.parent().get(0):g){a.containerElement=b(d);if(/document/.test(g)||g==document){a.containerOffset={left:0,top:0};a.containerPosition={left:0,top:0};a.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var h=b(d),n=[];b(["Top","Right","Left","Bottom"]).each(function(s,w){n[s]=e(h.css("padding"+w))});a.containerOffset=h.offset();a.containerPosition=h.position();a.containerSize={height:h.innerHeight()-
n[3],width:h.innerWidth()-n[1]};g=a.containerOffset;var m=a.containerSize.height,p=a.containerSize.width;p=b.ui.hasScroll(d,"left")?d.scrollWidth:p;m=b.ui.hasScroll(d)?d.scrollHeight:m;a.parentData={element:d,left:g.left,top:g.top,width:p,height:m}}}},resize:function(a){var d=b(this).data("resizable"),g=d.options,h=d.containerOffset,n=d.position;a=d._aspectRatio||a.shiftKey;var m={top:0,left:0},p=d.containerElement;if(p[0]!=document&&/static/.test(p.css("position")))m=h;if(n.left<(d._helper?h.left:
0)){d.size.width+=d._helper?d.position.left-h.left:d.position.left-m.left;if(a)d.size.height=d.size.width/g.aspectRatio;d.position.left=g.helper?h.left:0}if(n.top<(d._helper?h.top:0)){d.size.height+=d._helper?d.position.top-h.top:d.position.top;if(a)d.size.width=d.size.height*g.aspectRatio;d.position.top=d._helper?h.top:0}d.offset.left=d.parentData.left+d.position.left;d.offset.top=d.parentData.top+d.position.top;g=Math.abs((d._helper?d.offset.left-m.left:d.offset.left-m.left)+d.sizeDiff.width);h=
Math.abs((d._helper?d.offset.top-m.top:d.offset.top-h.top)+d.sizeDiff.height);n=d.containerElement.get(0)==d.element.parent().get(0);m=/relative|absolute/.test(d.containerElement.css("position"));if(n&&m)g-=d.parentData.left;if(g+d.size.width>=d.parentData.width){d.size.width=d.parentData.width-g;if(a)d.size.height=d.size.width/d.aspectRatio}if(h+d.size.height>=d.parentData.height){d.size.height=d.parentData.height-h;if(a)d.size.width=d.size.height*d.aspectRatio}},stop:function(){var a=b(this).data("resizable"),
d=a.options,g=a.containerOffset,h=a.containerPosition,n=a.containerElement,m=b(a.helper),p=m.offset(),s=m.outerWidth()-a.sizeDiff.width;m=m.outerHeight()-a.sizeDiff.height;a._helper&&!d.animate&&/relative/.test(n.css("position"))&&b(this).css({left:p.left-h.left-g.left,width:s,height:m});a._helper&&!d.animate&&/static/.test(n.css("position"))&&b(this).css({left:p.left-h.left-g.left,width:s,height:m})}});b.ui.plugin.add("resizable","ghost",{start:function(){var a=b(this).data("resizable"),d=a.options,
g=a.size;a.ghost=a.originalElement.clone();a.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 d.ghost=="string"?d.ghost:"");a.ghost.appendTo(a.helper)},resize:function(){var a=b(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=b(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});
b.ui.plugin.add("resizable","grid",{resize:function(){var a=b(this).data("resizable"),d=a.options,g=a.size,h=a.originalSize,n=a.originalPosition,m=a.axis;d.grid=typeof d.grid=="number"?[d.grid,d.grid]:d.grid;var p=Math.round((g.width-h.width)/(d.grid[0]||1))*(d.grid[0]||1);d=Math.round((g.height-h.height)/(d.grid[1]||1))*(d.grid[1]||1);if(/^(se|s|e)$/.test(m)){a.size.width=h.width+p;a.size.height=h.height+d}else if(/^(ne)$/.test(m)){a.size.width=h.width+p;a.size.height=h.height+d;a.position.top=n.top-
d}else{if(/^(sw)$/.test(m)){a.size.width=h.width+p;a.size.height=h.height+d}else{a.size.width=h.width+p;a.size.height=h.height+d;a.position.top=n.top-d}a.position.left=n.left-p}}});var e=function(a){return parseInt(a,10)||0},f=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
(function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{_init:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=b(e.options.filter,e.element[0]);f.each(function(){var a=b(this),d=a.offset();b.data(this,"selectable-item",{element:this,$element:a,left:d.left,top:d.top,right:d.left+a.outerWidth(),bottom:d.top+a.outerHeight(),startselected:false,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})};
this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=b(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(e){var f=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var a=this.options;this.selectees=b(a.filter,this.element[0]);this._trigger("start",
e);b(a.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});a.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var d=b.data(this,"selectable-item");d.startselected=true;if(!e.metaKey){d.$element.removeClass("ui-selected");d.selected=false;d.$element.addClass("ui-unselecting");d.unselecting=true;f._trigger("unselecting",e,{unselecting:d.element})}});b(e.target).parents().andSelf().each(function(){var d=
b.data(this,"selectable-item");if(d){d.$element.removeClass("ui-unselecting").addClass("ui-selecting");d.unselecting=false;d.selecting=true;d.selected=true;f._trigger("selecting",e,{selecting:d.element});return false}})}},_mouseDrag:function(e){var f=this;this.dragged=true;if(!this.options.disabled){var a=this.options,d=this.opos[0],g=this.opos[1],h=e.pageX,n=e.pageY;if(d>h){var m=h;h=d;d=m}if(g>n){m=n;n=g;g=m}this.helper.css({left:d,top:g,width:h-d,height:n-g});this.selectees.each(function(){var p=
b.data(this,"selectable-item");if(!(!p||p.element==f.element[0])){var s=false;if(a.tolerance=="touch")s=!(p.left>h||p.right<d||p.top>n||p.bottom<g);else if(a.tolerance=="fit")s=p.left>d&&p.right<h&&p.top>g&&p.bottom<n;if(s){if(p.selected){p.$element.removeClass("ui-selected");p.selected=false}if(p.unselecting){p.$element.removeClass("ui-unselecting");p.unselecting=false}if(!p.selecting){p.$element.addClass("ui-selecting");p.selecting=true;f._trigger("selecting",e,{selecting:p.element})}}else{if(p.selecting)if(e.metaKey&&
p.startselected){p.$element.removeClass("ui-selecting");p.selecting=false;p.$element.addClass("ui-selected");p.selected=true}else{p.$element.removeClass("ui-selecting");p.selecting=false;if(p.startselected){p.$element.addClass("ui-unselecting");p.unselecting=true}f._trigger("unselecting",e,{unselecting:p.element})}if(p.selected)if(!e.metaKey&&!p.startselected){p.$element.removeClass("ui-selected");p.selected=false;p.$element.addClass("ui-unselecting");p.unselecting=true;f._trigger("unselecting",e,
{unselecting:p.element})}}}});return false}},_mouseStop:function(e){var f=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-unselecting");a.unselecting=false;a.startselected=false;f._trigger("unselected",e,{unselected:a.element})});b(".ui-selecting",this.element[0]).each(function(){var a=b.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected");a.selecting=false;a.selected=
true;a.startselected=true;f._trigger("selected",e,{selected:a.element})});this._trigger("stop",e);this.helper.remove();return false}}));b.extend(b.ui.selectable,{version:"1.7.2",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
(function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init: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 e=this.items.length-1;e>=0;e--)this.items[e].item.removeData("sortable-item")},
_mouseCapture:function(e,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(e);var a=null,d=this;b(e.target).parents().each(function(){if(b.data(this,"sortable-item")==d){a=b(this);return false}});if(b.data(e.target,"sortable-item")==d)a=b(e.target);if(!a)return false;if(this.options.handle&&!f){var g=false;b(this.options.handle,a).find("*").andSelf().each(function(){if(this==e.target)g=true});if(!g)return false}this.currentItem=
a;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,a){f=this.options;var d=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);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");b.extend(this.offset,
{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
if(f.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
e,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",e,d._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(e.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-e.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(e.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(e.pageY-b(document).scrollTop()<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-(e.pageY-b(document).scrollTop())<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()+
f.scrollSpeed);if(e.pageX-b(document).scrollLeft()<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(e.pageX-b(document).scrollLeft())<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()+f.scrollSpeed)}a!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e)}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(f=this.items.length-1;f>=0;f--){a=this.items[f];var d=a.item[0],g=this._intersectsWithPointer(a);if(g)if(d!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=d&&!b.ui.contains(this.placeholder[0],d)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],d):true)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(e,
a);else break;this._trigger("change",e,this._uiHash());break}}this._contactContainers(e);b.ui.ddmanager&&b.ui.ddmanager.drag(this,e);this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,f){if(e){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,e);if(this.options.revert){var a=this;f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(e)})}else this._clear(e,f);return false}},cancel:function(){var e=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",
null,e._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,e._uiHash(this));this.containers[f].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();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem);return true},serialize:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};b(f).each(function(){var d=(b(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(d)a.push((e.key||d[1]+"[]")+"="+(e.key&&e.expression?d[1]:d[2]))});return a.join("&")},toArray:function(e){var f=this._getItemsAsjQuery(e&&e.connected),a=[];e=e||{};f.each(function(){a.push(b(e.item||this).attr(e.attribute||"id")||"")});return a},
_intersectsWith:function(e){var f=this.positionAbs.left,a=f+this.helperProportions.width,d=this.positionAbs.top,g=d+this.helperProportions.height,h=e.left,n=h+e.width,m=e.top,p=m+e.height,s=this.offset.click.top,w=this.offset.click.left;s=d+s>m&&d+s<p&&f+w>h&&f+w<n;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?s:h<f+this.helperProportions.width/
2&&a-this.helperProportions.width/2<n&&m<d+this.helperProportions.height/2&&g-this.helperProportions.height/2<p},_intersectsWithPointer:function(e){var f=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);f=f&&e;e=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!f)return false;return this.floating?a&&a=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(e){var f=
b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height);e=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width);var a=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return this.floating&&d?d=="right"&&e||d=="left"&&!e:a&&(a=="down"&&f||a=="up"&&!f)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!=0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=
this.positionAbs.left-this.lastPositionAbs.left;return e!=0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this.refreshPositions()},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var f=[],a=[],d=this._connectWith();if(d&&e)for(e=d.length-1;e>=0;e--)for(var g=b(d[e]),h=g.length-1;h>=0;h--){var n=b.data(g[h],"sortable");if(n&&n!=this&&!n.options.disabled)a.push([b.isFunction(n.options.items)?
n.options.items.call(n.element):b(n.options.items,n.element).not(".ui-sortable-helper"),n])}a.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(e=a.length-1;e>=0;e--)a[e][0].each(function(){f.push(this)});return b(f)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var a=0;a<
e.length;a++)e[a]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(e){this.items=[];this.containers=[this];var f=this.items,a=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):b(this.options.items,this.element),this]],d=this._connectWith();if(d)for(var g=d.length-1;g>=0;g--)for(var h=b(d[g]),n=h.length-1;n>=0;n--){var m=b.data(h[n],"sortable");if(m&&m!=this&&!m.options.disabled){a.push([b.isFunction(m.options.items)?m.options.items.call(m.element[0],
e,{item:this.currentItem}):b(m.options.items,m.element),m]);this.containers.push(m)}}for(g=a.length-1;g>=0;g--){e=a[g][1];d=a[g][0];n=0;for(h=d.length;n<h;n++){m=b(d[n]);m.data("sortable-item",e);f.push({item:m,instance:e,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=0;f--){var a=this.items[f];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var d=
this.options.toleranceElement?b(this.options.toleranceElement,a.item):a.item;if(!e){a.width=d.outerWidth();a.height=d.outerHeight()}d=d.offset();a.left=d.left;a.top=d.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){d=this.containers[f].element.offset();this.containers[f].containerCache.left=d.left;this.containers[f].containerCache.top=d.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();
this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}},_createPlaceholder:function(e){var f=e||this,a=f.options;if(!a.placeholder||a.placeholder.constructor==String){var d=a.placeholder;a.placeholder={element:function(){var g=b(document.createElement(f.currentItem[0].nodeName)).addClass(d||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d)g.style.visibility="hidden";return g},update:function(g,h){if(!(d&&!a.forcePlaceholderSize)){h.height()||
h.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));h.width()||h.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=b(a.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);a.placeholder.update(f,f.placeholder)},_contactContainers:function(e){for(var f=this.containers.length-1;f>=0;f--)if(this._intersectsWith(this.containers[f].containerCache)){if(!this.containers[f].containerCache.over){if(this.currentContainer!=
this.containers[f]){for(var a=1E4,d=null,g=this.positionAbs[this.containers[f].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(b.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)<a){a=Math.abs(n-g);d=this.items[h]}}if(!d&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[f];d?this._rearrange(e,d,null,true):this._rearrange(e,null,this.containers[f].element,true);this._trigger("change",
e,this._uiHash());this.containers[f]._trigger("change",e,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[f]._trigger("over",e,this._uiHash(this));this.containers[f].containerCache.over=1}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",e,this._uiHash(this));this.containers[f].containerCache.over=0}},_createHelper:function(e){var f=this.options;e=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[e,
this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;e.parents("body").length||b(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);if(e[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(e[0].style.width==""||f.forceHelperSize)e.width(this.currentItem.width());
if(e[0].style.height==""||f.forceHelperSize)e.height(this.currentItem.height());return e},_adjustOffsetFromHelper:function(e){if(e.left!=undefined)this.offset.click.left=e.left+this.margins.left;if(e.right!=undefined)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if(e.top!=undefined)this.offset.click.top=e.top+this.margins.top;if(e.bottom!=undefined)this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 e=this.options;if(e.containment=="parent")e.containment=this.helper[0].parentNode;if(e.containment=="document"||e.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(e.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)){var f=b(e.containment)[0];e=b(e.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[e.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,e.left+(a?Math.max(f.scrollWidth,
f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,f){if(!f)f=this.position;e=e=="absolute"?1:-1;var a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(a[0].tagName);return{top:f.top+this.offset.relative.top*e+this.offset.parent.top*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:a.scrollTop())*e),left:f.left+this.offset.relative.left*e+this.offset.parent.left*e-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
d?0:a.scrollLeft())*e)}},_generatePosition:function(e){var f=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var g=e.pageX,h=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-
this.offset.click.left<this.containment[0])g=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])g=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(f.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/f.grid[1])*f.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-f.grid[1]:h+f.grid[1]:h;g=this.originalPageX+Math.round((g-this.originalPageX)/f.grid[0])*f.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-f.grid[0]:g+f.grid[0]:g}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:a.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:a.scrollLeft())}},_rearrange:function(e,f,a,d){a?a[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=
this.counter?++this.counter:1;var g=this,h=this.counter;window.setTimeout(function(){h==g.counter&&g.refreshPositions(!d)},0)},_clear:function(e,f){this.reverting=false;var a=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var d in this._storedCSS)if(this._storedCSS[d]=="auto"||this._storedCSS[d]=="static")this._storedCSS[d]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
this.fromOutside&&!f&&a.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])&&!f)a.push(function(g){this._trigger("update",g,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){f||a.push(function(g){this._trigger("remove",g,this._uiHash())});for(d=this.containers.length-1;d>=0;d--)if(b.ui.contains(this.containers[d].element[0],
this.currentItem[0])&&!f){a.push(function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}.call(this,this.containers[d]));a.push(function(g){return function(h){g._trigger("update",h,this._uiHash(this))}}.call(this,this.containers[d]))}}for(d=this.containers.length-1;d>=0;d--){f||a.push(function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))}}.call(this,this.containers[d]));if(this.containers[d].containerCache.over){a.push(function(g){return function(h){g._trigger("out",
h,this._uiHash(this))}}.call(this,this.containers[d]));this.containers[d].containerCache.over=0}}this._storedCursor&&b("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(!f){this._trigger("beforeStop",e,this._uiHash());for(d=0;d<a.length;d++)a[d].call(this,e);this._trigger("stop",e,this._uiHash())}return false}f||
this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(d=0;d<a.length;d++)a[d].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(e){var f=e||this;return{helper:f.helper,placeholder:f.placeholder||b([]),position:f.position,
absolutePosition:f.positionAbs,offset:f.positionAbs,item:f.currentItem,sender:e?e.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}})})(jQuery);
(function(b){b.widget("ui.accordion",{_init:function(){var e=this.options,f=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&&e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen)e.collapsible=!e.alwaysOpen;if(e.navigation){var a=this.element.find("a").filter(e.navigationFilter);if(a.length)if(a.filter(e.header).length)this.active=a;else{this.active=a.parent().parent().prev();a.addClass("ui-accordion-content-active")}}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(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
this.active=this._findActive(this.active||e.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");b("<span/>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);b.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");
this.headers.attr("role","tab").bind("keydown",function(d){return f._keydown(d)}).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");b.browser.safari||this.headers.find("a").attr("tabIndex","-1");e.event&&this.headers.bind(e.event+".accordion",function(d){return f._clickHandler.call(f,d,this)})},destroy:function(){var e=
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.headers.children(".ui-icon").remove();var f=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(e.autoHeight||e.fillHeight)f.css("height","")},_setData:function(e,f){if(e=="alwaysOpen"){e="collapsible";f=!f}b.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var f=b.ui.keyCode;if(!(this.options.disabled||e.altKey||e.ctrlKey)){var a=this.headers.length,d=this.headers.index(e.target),g=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:g=this.headers[(d+1)%a];break;case f.LEFT:case f.UP:g=this.headers[(d-1+a)%a];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},
e.target)}if(g){b(e.target).attr("tabIndex","-1");b(g).attr("tabIndex","0");g.focus();return false}return true}},resize:function(){var e=this.options,f;if(e.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",a);this.headers.each(function(){f-=b(this).outerHeight()});var d=0;this.headers.next().each(function(){d=Math.max(d,b(this).innerHeight()-
b(this).height())}).height(Math.max(0,f-d)).css("overflow","auto")}else if(e.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,b(this).outerHeight())}).height(f)}},activate:function(e){e=this._findActive(e)[0];this._clickHandler({target:e},e)},_findActive:function(e){return e?typeof e=="number"?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):e===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,f){var a=this.options;if(a.disabled)return false;
if(!e.target&&a.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");e=this.active.next();a={options:a,newHeader:b([]),oldHeader:a.active,newContent:b([]),oldContent:e};f=this.active=b([]);this._toggle(f,e,a);return false}var d=b(e.currentTarget||f),g=d[0]==this.active[0];if(this.running||!a.collapsible&&
g)return false;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(a.icons.headerSelected).addClass(a.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!g){d.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(a.icons.header).addClass(a.icons.headerSelected);d.next().addClass("ui-accordion-content-active")}f=d.next();e=this.active.next();
a={options:a,newHeader:g&&a.collapsible?b([]):d,oldHeader:this.active,newContent:g&&a.collapsible?b([]):f.find("> *"),oldContent:e.find("> *")};var h=this.headers.index(this.active[0])>this.headers.index(d[0]);this.active=g?b([]):d;this._toggle(f,e,a,g,h);return false},_toggle:function(e,f,a,d,g){var h=this.options,n=this;this.toShow=e;this.toHide=f;this.data=a;var m=function(){if(n)return n._completed.apply(n,arguments)};this._trigger("changestart",null,this.data);this.running=f.size()===0?e.size():
f.size();if(h.animated){a={};a=h.collapsible&&d?{toShow:b([]),toHide:f,complete:m,down:g,autoHeight:h.autoHeight||h.fillSpace}:{toShow:e,toHide:f,complete:m,down:g,autoHeight:h.autoHeight||h.fillSpace};if(!h.proxied)h.proxied=h.animated;if(!h.proxiedDuration)h.proxiedDuration=h.duration;h.animated=b.isFunction(h.proxied)?h.proxied(a):h.proxied;h.duration=b.isFunction(h.proxiedDuration)?h.proxiedDuration(a):h.proxiedDuration;d=b.ui.accordion.animations;var p=h.duration,s=h.animated;d[s]||(d[s]=function(w){this.slide(w,
{easing:s,duration:p||700})});d[s](a)}else{if(h.collapsible&&d)e.toggle();else{f.hide();e.show()}m(true)}f.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();e.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(e){var f=this.options;this.running=e?0:--this.running;if(!this.running){f.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.7.2",defaults:{active:null,
alwaysOpen:true,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()}},animations:{slide:function(e,f){e=b.extend({easing:"swing",duration:300},e,f);if(e.toHide.size())if(e.toShow.size()){var a=e.toShow.css("overflow"),d,g={},h={},
n;f=e.toShow;n=f[0].style.width;f.width(parseInt(f.parent().width(),10)-parseInt(f.css("paddingLeft"),10)-parseInt(f.css("paddingRight"),10)-(parseInt(f.css("borderLeftWidth"),10)||0)-(parseInt(f.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(m,p){h[p]="hide";m=(""+b.css(e.toShow[0],p)).match(/^([\d+-.]+)(.*)$/);g[p]={value:m[1],unit:m[2]||"px"}});e.toShow.css({height:0,overflow:"hidden"}).show();e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(h,
{step:function(m,p){if(p.prop=="height")d=(p.now-p.start)/(p.end-p.start);e.toShow[0].style[p.prop]=d*g[p.prop].value+g[p.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height","");e.toShow.css("width",n);e.toShow.css({overflow:a});e.complete()}})}else e.toHide.animate({height:"hide"},e);else e.toShow.animate({height:"show"},e)},bounceslide:function(e){this.slide(e,{easing:e.down?"easeOutBounce":"swing",duration:e.down?1E3:200})},easeslide:function(e){this.slide(e,
{easing:"easeinout",duration:700})}}})})(jQuery);
(function(b){var e={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};b.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var f=this,a=this.options,d=a.title||this.originalTitle||"&nbsp;",g=b.ui.dialog.getTitleId(this.element),h=(this.uiDialog=
b("<div/>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(p){a.closeOnEscape&&p.keyCode&&p.keyCode==b.ui.keyCode.ESCAPE&&f.close(p)}).attr({role:"dialog","aria-labelledby":g}).mousedown(function(p){f.moveToTop(false,p)});this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(h);
var n=(this.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(h),m=b('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){m.addClass("ui-state-hover")},function(){m.removeClass("ui-state-hover")}).focus(function(){m.addClass("ui-state-focus")}).blur(function(){m.removeClass("ui-state-focus")}).mousedown(function(p){p.stopPropagation()}).click(function(p){f.close(p);return false}).appendTo(n);
(this.uiDialogTitlebarCloseText=b("<span/>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(m);b("<span/>").addClass("ui-dialog-title").attr("id",g).html(d).prependTo(n);n.find("*").add(n).disableSelection();a.draggable&&b.fn.draggable&&this._makeDraggable();a.resizable&&b.fn.resizable&&this._makeResizable();this._createButtons(a.buttons);this._isOpen=false;a.bgiframe&&b.fn.bgiframe&&h.bgiframe();a.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)},close:function(f){var a=this;if(false!==a._trigger("beforeclose",f)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a.options.hide?a.uiDialog.hide(a.options.hide,function(){a._trigger("close",f)}):a.uiDialog.hide()&&a._trigger("close",f);b.ui.dialog.overlay.resize();
a._isOpen=false;if(a.options.modal){var d=0;b(".ui-dialog").each(function(){if(this!=a.uiDialog[0])d=Math.max(d,b(this).css("z-index"))});b.ui.dialog.maxZ=d}}},isOpen:function(){return this._isOpen},moveToTop:function(f,a){if(this.options.modal&&!f||!this.options.stack&&!this.options.modal)return this._trigger("focus",a);if(this.options.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=this.options.zIndex;this.overlay&&this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=++b.ui.dialog.maxZ);f={scrollTop:this.element.attr("scrollTop"),
scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++b.ui.dialog.maxZ);this.element.attr(f);this._trigger("focus",a)},open:function(){if(!this._isOpen){var f=this.options,a=this.uiDialog;this.overlay=f.modal?new b.ui.dialog.overlay(this):null;a.next().length&&a.appendTo("body");this._size();this._position(f.position);a.show(f.show);this.moveToTop(true);f.modal&&a.bind("keypress.ui-dialog",function(d){if(d.keyCode==b.ui.keyCode.TAB){var g=b(":tabbable",this),h=g.filter(":first")[0],
n=g.filter(":last")[0];if(d.target==n&&!d.shiftKey)setTimeout(function(){h.focus()},1);else d.target==h&&d.shiftKey&&setTimeout(function(){n.focus()},1)}});b([]).add(a.find(".ui-dialog-content :tabbable:first")).add(a.find(".ui-dialog-buttonpane :tabbable:first")).add(a).filter(":first").focus();this._trigger("open");this._isOpen=true}},_createButtons:function(f){var a=this,d=false,g=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof f=="object"&&f!==null&&b.each(f,function(){return!(d=true)});if(d){b.each(f,function(h,n){b('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){n.apply(a.element[0],arguments)}).hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){b(this).addClass("ui-state-focus")}).blur(function(){b(this).removeClass("ui-state-focus")}).appendTo(g)});g.appendTo(this.uiDialog)}},_makeDraggable:function(){var f=
this,a=this.options,d;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){d=a.height;b(this).height(b(this).height()).addClass("ui-dialog-dragging");a.dragStart&&a.dragStart.apply(f.element[0],arguments)},drag:function(){a.drag&&a.drag.apply(f.element[0],arguments)},stop:function(){b(this).removeClass("ui-dialog-dragging").height(d);a.dragStop&&a.dragStop.apply(f.element[0],arguments);b.ui.dialog.overlay.resize()}})},_makeResizable:function(f){f=
f===undefined?this.options.resizable:f;var a=this,d=this.options;this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:d.minHeight,start:function(){b(this).addClass("ui-dialog-resizing");d.resizeStart&&d.resizeStart.apply(a.element[0],arguments)},resize:function(){d.resize&&d.resize.apply(a.element[0],arguments)},handles:typeof f=="string"?f:"n,e,s,w,se,sw,ne,nw",stop:function(){b(this).removeClass("ui-dialog-resizing");
d.height=b(this).height();d.width=b(this).width();d.resizeStop&&d.resizeStop.apply(a.element[0],arguments);b.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(f){var a=b(window),d=b(document),g=d.scrollTop();d=d.scrollLeft();var h=g;if(b.inArray(f,["center","top","right","bottom","left"])>=0)f=[f=="right"||f=="left"?f:"center",f=="top"||f=="bottom"?f:"middle"];if(f.constructor!=Array)f=["center","middle"];if(f[0].constructor==Number)d+=
f[0];else switch(f[0]){case "left":d+=0;break;case "right":d+=a.width()-this.uiDialog.outerWidth();break;default:case "center":d+=(a.width()-this.uiDialog.outerWidth())/2}if(f[1].constructor==Number)g+=f[1];else switch(f[1]){case "top":g+=0;break;case "bottom":g+=a.height()-this.uiDialog.outerHeight();break;default:case "middle":g+=(a.height()-this.uiDialog.outerHeight())/2}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(f,a){e[f]&&this.uiDialog.data(e[f],a);switch(f){case "buttons":this._createButtons(a);
break;case "closeText":this.uiDialogTitlebarCloseText.text(a);break;case "dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "draggable":a?this._makeDraggable():this.uiDialog.draggable("destroy");break;case "height":this.uiDialog.height(a);break;case "position":this._position(a);break;case "resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");g&&!a&&d.resizable("destroy");g&&typeof a=="string"&&
d.resizable("option","handles",a);g||this._makeResizable(a);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(a||"&nbsp;");break;case "width":this.uiDialog.width(a);break}b.widget.prototype._setData.apply(this,arguments)},_size:function(){var f=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var a=this.uiDialog.css({height:"auto",width:f.width}).height();this.element.css({minHeight:Math.max(f.minHeight-a,0),height:f.height=="auto"?"auto":Math.max(f.height-a,0)})}});
b.extend(b.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,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},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(f){return"ui-dialog-title-"+(f.attr("id")||++this.uuid)},overlay:function(f){this.$el=b.ui.dialog.overlay.create(f)}});
b.extend(b.ui.dialog.overlay,{instances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(d){return(b(d.target).parents(".ui-dialog").css("zIndex")||0)>b.ui.dialog.overlay.maxZ})},1);b(document).bind("keydown.dialog-overlay",function(d){f.options.closeOnEscape&&
d.keyCode&&d.keyCode==b.ui.keyCode.ESCAPE&&f.close(d)});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=b("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});f.options.bgiframe&&b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(f){this.instances.splice(b.inArray(this.instances,f),1);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");f.remove();var a=0;b.each(this.instances,
function(){a=Math.max(a,this.css("z-index"))});this.maxZ=a},height:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<a?b(window).height()+"px":f+"px"}else return b(document).height()+"px"},width:function(){if(b.browser.msie&&b.browser.version<7){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.offsetWidth,
document.body.offsetWidth);return f<a?b(window).width()+"px":f+"px"}else return b(document).width()+"px"},resize:function(){var f=b([]);b.each(b.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var e=this,f=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(f.range){if(f.range===true){this.range=b("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!=2)f.values=[f.values[0],f.values[0]]}else this.range=
b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range=="min"||f.range=="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length==0&&b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(f.values&&f.values.length)for(;b(".ui-slider-handle",this.element).length<f.values.length;)b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
b(".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(a){a.preventDefault()}).hover(function(){f.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)b(this).blur();else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});
this.handles.each(function(a){b(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var d=true,g=b(this).data("index.ui-slider-handle");if(!e.options.disabled){switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:d=false;if(!e._keySliding){e._keySliding=true;b(this).addClass("ui-state-active");e._start(a,g)}break}var h,n,m=e._step();h=e.options.values&&e.options.values.length?
(n=e.values(g)):(n=e.value());switch(a.keyCode){case b.ui.keyCode.HOME:n=e._valueMin();break;case b.ui.keyCode.END:n=e._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(h==e._valueMax())return;n=h+m;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(h==e._valueMin())return;n=h-m;break}e._slide(a,g,n);return d}}).keyup(function(a){var d=b(this).data("index.ui-slider-handle");if(e._keySliding){e._stop(a,d);e._change(a,d);e._keySliding=false;b(this).removeClass("ui-state-active")}});
this._refreshValue()},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()},_mouseCapture:function(e){var f=this.options;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:e.pageX,y:e.pageY},
d=this._normValueFromMouse(a),g=this._valueMax()-this._valueMin()+1,h,n=this,m;this.handles.each(function(p){var s=Math.abs(d-n.values(p));if(g>s){g=s;h=b(this);m=p}});if(f.range==true&&this.values(1)==f.min)h=b(this.handles[++m]);this._start(e,m);n._handleIndex=m;h.addClass("ui-state-active").focus();f=h.offset();this._clickOffset=!b(e.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:e.pageX-f.left-h.width()/2,top:e.pageY-f.top-h.height()/2-(parseInt(h.css("borderTopWidth"),
10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};d=this._normValueFromMouse(a);this._slide(e,m,d);return true},_mouseStart:function(){return true},_mouseDrag:function(e){var f=this._normValueFromMouse({x:e.pageX,y:e.pageY});this._slide(e,this._handleIndex,f);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var f;if("horizontal"==this.orientation){f=this.elementSize.width;e=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;e=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=e/f;if(f>1)f=1;if(f<0)f=0;if("vertical"==this.orientation)f=1-f;e=this._valueMax()-this._valueMin();e=f*e;f=e%this.options.step;
e=this._valueMin()+e-f;if(f>this.options.step/2)e+=this.options.step;return parseFloat(e.toFixed(5))},_start:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("start",e,a)},_slide:function(e,f,a){if(this.options.values&&this.options.values.length){var d=this.values(f?0:1);if(this.options.values.length==2&&this.options.range===true&&(f==0&&a>d||f==1&&a<d))a=d;if(a!=this.values(f)){d=
this.values();d[f]=a;d=this._trigger("slide",e,{handle:this.handles[f],value:a,values:d});this.values(f?0:1);d!==false&&this.values(f,a,e.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){d=this._trigger("slide",e,{handle:this.handles[f],value:a});d!==false&&this._setData("value",a,e.type=="mousedown"&&this.options.animate)}},_stop:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=
this.values()}this._trigger("stop",e,a)},_change:function(e,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("change",e,a)},value:function(e){if(arguments.length){this._setData("value",e);this._change(null,0)}return this._value()},values:function(e,f,a,d){if(arguments.length>1){this.options.values[e]=f;this._refreshValue(a);d||this._change(null,e)}return arguments.length?this.options.values&&
this.options.values.length?this._values(e):this.value():this._values()},_setData:function(e,f,a){b.widget.prototype._setData.apply(this,arguments);switch(e){case "disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_values:function(e){if(arguments.length){var f=this.options.values[e];if(f<this._valueMin())f=this._valueMin();if(f>this._valueMax())f=this._valueMax();return f}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(e){var f=this.options.range,a=this.options,d=this;if(this.options.values&&this.options.values.length)this.handles.each(function(m){var p=(d.values(m)-d._valueMin())/(d._valueMax()-d._valueMin())*100,s={};s[d.orientation=="horizontal"?"left":"bottom"]=p+"%";b(this).stop(1,1)[e?"animate":"css"](s,a.animate);if(d.options.range===true)if(d.orientation=="horizontal"){m==0&&d.range.stop(1,1)[e?"animate":"css"]({left:p+"%"},a.animate);m==1&&d.range[e?"animate":"css"]({width:p-lastValPercent+
"%"},{queue:false,duration:a.animate})}else{m==0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:p+"%"},a.animate);m==1&&d.range[e?"animate":"css"]({height:p-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=p});else{var g=this.value(),h=this._valueMin(),n=this._valueMax();g=n!=h?(g-h)/(n-h)*100:0;h={};h[d.orientation=="horizontal"?"left":"bottom"]=g+"%";this.handle.stop(1,1)[e?"animate":"css"](h,a.animate);f=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[e?"animate":
"css"]({width:g+"%"},a.animate);f=="max"&&this.orientation=="horizontal"&&this.range[e?"animate":"css"]({width:100-g+"%"},{queue:false,duration:a.animate});f=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:g+"%"},a.animate);f=="max"&&this.orientation=="vertical"&&this.range[e?"animate":"css"]({height:100-g+"%"},{queue:false,duration:a.animate})}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,
distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
(function(b){b.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined)this.options.collapsible=this.options.deselectable;this._tabify(true)},_setData:function(e,f){if(e=="selected")this.options.collapsible&&f==this.options.selected||this.select(f);else{this.options[e]=f;if(e=="deselectable")this.options.collapsible=f;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+b.data(e)},_sanitizeSelector:function(e){return e.replace(/:/g,
"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b.data(this.list[0]));return b.cookie.apply(null,[e].concat(b.makeArray(arguments)))},_ui:function(e,f){return{tab:e,panel:f,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=b(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function f(E,A){E.css({display:""});
b.browser.msie&&A.opacity&&E[0].style.removeAttribute("filter")}this.list=this.element.children("ul:first");this.lis=b("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);var a=this,d=this.options,g=/^#.+/;this.anchors.each(function(E,A){var I=b(A).attr("href"),N=I.split("#")[0],j;if(N&&(N===location.toString().split("#")[0]||(j=b("base")[0])&&N===j.href)){I=A.hash;A.href=I}if(g.test(I))a.panels=a.panels.add(a._sanitizeSelector(I));else if(I!=
"#"){b.data(A,"href.tabs",I);b.data(A,"load.tabs",I.replace(/#.*$/,""));I=a._tabId(A);A.href="#"+I;A=b("#"+I);if(!A.length){A=b(d.panelTemplate).attr("id",I).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[E-1]||a.list);A.data("destroy.tabs",true)}a.panels=a.panels.add(A)}else d.disabled.push(E)});if(e){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(d.selected===undefined){location.hash&&this.anchors.each(function(E,A){if(A.hash==location.hash){d.selected=E;return false}});if(typeof d.selected!="number"&&d.cookie)d.selected=parseInt(a._cookie(),10);if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));d.selected=d.selected||0}else if(d.selected===
null)d.selected=-1;d.selected=d.selected>=0&&this.anchors[d.selected]||d.selected<0?d.selected:0;d.disabled=b.unique(d.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(E){return a.lis.index(E)}))).sort();b.inArray(d.selected,d.disabled)!=-1&&d.disabled.splice(b.inArray(d.selected,d.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");
this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[d.selected],a.panels[d.selected]))});this.load(d.selected)}b(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");d.cookie&&this._cookie(d.selected,d.cookie);e=0;for(var h;h=
this.lis[e];e++)b(h)[b.inArray(e,d.disabled)!=-1&&!b(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");d.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var n=function(E,A){A.is(":not(.ui-state-disabled)")&&A.addClass("ui-state-"+E)},m=function(E,A){A.removeClass("ui-state-"+E)};this.lis.bind("mouseover.tabs",function(){n("hover",b(this))});this.lis.bind("mouseout.tabs",function(){m("hover",b(this))});
this.anchors.bind("focus.tabs",function(){n("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){m("focus",b(this).closest("li"))})}var p,s;if(d.fx)if(b.isArray(d.fx)){p=d.fx[0];s=d.fx[1]}else p=s=d.fx;var w=s?function(E,A){b(E).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");A.hide().removeClass("ui-tabs-hide").animate(s,s.duration||"normal",function(){f(A,s);a._trigger("show",null,a._ui(E,A[0]))})}:function(E,A){b(E).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
A.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(E,A[0]))},G=p?function(E,A){A.animate(p,p.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");A.addClass("ui-tabs-hide");f(A,p);a.element.dequeue("tabs")})}:function(E,A){a.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");A.addClass("ui-tabs-hide");a.element.dequeue("tabs")};this.anchors.bind(d.event+".tabs",function(){var E=this,A=b(this).closest("li"),
I=a.panels.filter(":not(.ui-tabs-hide)"),N=b(a._sanitizeSelector(this.hash));if(A.hasClass("ui-tabs-selected")&&!d.collapsible||A.hasClass("ui-state-disabled")||A.hasClass("ui-state-processing")||a._trigger("select",null,a._ui(this,N[0]))===false){this.blur();return false}d.selected=a.anchors.index(this);a.abort();if(d.collapsible)if(A.hasClass("ui-tabs-selected")){d.selected=-1;d.cookie&&a._cookie(d.selected,d.cookie);a.element.queue("tabs",function(){G(E,I)}).dequeue("tabs");this.blur();return false}else if(!I.length){d.cookie&&
a._cookie(d.selected,d.cookie);a.element.queue("tabs",function(){w(E,N)});a.load(a.anchors.index(this));this.blur();return false}d.cookie&&a._cookie(d.selected,d.cookie);if(N.length){I.length&&a.element.queue("tabs",function(){G(E,I)});a.element.queue("tabs",function(){w(E,N)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var e=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 f=b.data(this,"href.tabs");if(f)this.href=f;var a=b(this).unbind(".tabs");b.each(["href","load","cache"],function(d,g){a.removeData(g+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?
b(this).remove():b(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")});e.cookie&&this._cookie(null,e.cookie)},add:function(e,f,a){if(a===undefined)a=this.anchors.length;var d=this,g=this.options;f=b(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,f));e=!e.indexOf("#")?e.replace("#",""):this._tabId(b("a",f)[0]);f.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var h=b("#"+e);h.length||(h=b(g.panelTemplate).attr("id",e).data("destroy.tabs",true));h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){f.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{f.insertBefore(this.lis[a]);h.insertBefore(this.panels[a])}g.disabled=b.map(g.disabled,function(n){return n>=a?++n:n});this._tabify();if(this.anchors.length==1){f.addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");this.element.queue("tabs",
function(){d._trigger("show",null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]))},remove:function(e){var f=this.options,a=this.lis.eq(e).remove(),d=this.panels.eq(e).remove();if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(e+(e+1<this.anchors.length?1:-1));f.disabled=b.map(b.grep(f.disabled,function(g){return g!=e}),function(g){return g>=e?--g:g});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],
d[0]))},enable:function(e){var f=this.options;if(b.inArray(e,f.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");f.disabled=b.grep(f.disabled,function(a){return a!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]))}},disable:function(e){var f=this.options;if(e!=f.selected){this.lis.eq(e).addClass("ui-state-disabled");f.disabled.push(e);f.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}},select:function(e){if(typeof e=="string")e=
this.anchors.index(this.anchors.filter("[href$="+e+"]"));else if(e===null)e=-1;if(e==-1&&this.options.collapsible)e=this.options.selected;this.anchors.eq(e).trigger(this.options.event+".tabs")},load:function(e){var f=this,a=this.options,d=this.anchors.eq(e)[0],g=b.data(d,"load.tabs");this.abort();if(!g||this.element.queue("tabs").length!==0&&b.data(d,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");if(a.spinner){var h=b("span",d);h.data("label.tabs",h.html()).html(a.spinner)}this.xhr=
b.ajax(b.extend({},a.ajaxOptions,{url:g,success:function(n,m){b(f._sanitizeSelector(d.hash)).html(n);f._cleanup();a.cache&&b.data(d,"cache.tabs",true);f._trigger("load",null,f._ui(f.anchors[e],f.panels[e]));try{a.ajaxOptions.success(n,m)}catch(p){}f.element.dequeue("tabs")}}))}},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(e,f){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",f)},length:function(){return this.anchors.length}});
b.extend(b.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(e,f){var a=this,d=this.options,g=a._rotate||(a._rotate=function(h){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var n=d.selected;
a.select(++n<a.anchors.length?n:0)},e);h&&h.stopPropagation()});f=a._unrotate||(a._unrotate=!f?function(h){h.clientX&&a.rotate(null)}:function(){t=d.selected;g()});if(e){this.element.bind("tabsshow",g);this.anchors.bind(d.event+".tabs",f);g()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",g);this.anchors.unbind(d.event+".tabs",f);delete this._rotate;delete this._unrotate}}})})(jQuery);
(function(b){function e(){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"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function f(a,d){b.extend(a,d);for(var g in d)if(d[g]==null||d[g]==undefined)a[g]=d[g];return a}
b.extend(b.ui,{datepicker:{version:"1.7.2"}});b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){f(this._defaults,a||{});return this},_attachDatepicker:function(a,d){var g=null;for(var h in this._defaults){var n=a.getAttribute("date:"+h);if(n){g=g||{};try{g[h]=eval(n)}catch(m){g[h]=n}}}h=a.nodeName.toLowerCase();n=h=="div"||h=="span";if(!a.id)a.id="dp"+ ++this.uuid;var p=this._newInst(b(a),n);p.settings=b.extend({},
d||{},g||{});if(h=="input")this._connectDatepicker(a,p);else n&&this._inlineDatepicker(a,p)},_newInst:function(a,d){return{id:a[0].id.replace(/([:\[\]\.])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:d,dpDiv:!d?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,d){var g=b(a);d.append=b([]);d.trigger=b([]);if(!g.hasClass(this.markerClassName)){var h=
this._get(d,"appendText"),n=this._get(d,"isRTL");if(h){d.append=b('<span class="'+this._appendClass+'">'+h+"</span>");g[n?"before":"after"](d.append)}h=this._get(d,"showOn");if(h=="focus"||h=="both")g.focus(this._showDatepicker);if(h=="button"||h=="both"){h=this._get(d,"buttonText");var m=this._get(d,"buttonImage");d.trigger=b(this._get(d,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:m,alt:h,title:h}):b('<button type="button"></button>').addClass(this._triggerClass).html(m==
""?h:b("<img/>").attr({src:m,alt:h,title:h})));g[n?"before":"after"](d.trigger);d.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a);return false})}g.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(p,s,w){d.settings[s]=w}).bind("getData.datepicker",function(p,s){return this._get(d,s)});b.data(a,"datepicker",d)}},_inlineDatepicker:function(a,
d){var g=b(a);if(!g.hasClass(this.markerClassName)){g.addClass(this.markerClassName).append(d.dpDiv).bind("setData.datepicker",function(h,n,m){d.settings[n]=m}).bind("getData.datepicker",function(h,n){return this._get(d,n)});b.data(a,"datepicker",d);this._setDate(d,this._getDefaultDate(d));this._updateDatepicker(d);this._updateAlternate(d)}},_dialogDatepicker:function(a,d,g,h,n){a=this._dialogInst;if(!a){a="dp"+ ++this.uuid;this._dialogInput=b('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>');
this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}f(a.settings,h||{});this._dialogInput.val(d);this._pos=n?n.length?n:[n.pageX,n.pageY]:null;if(!this._pos)this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=g;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();
b.removeData(a,"datepicker");if(h=="input"){g.append.remove();g.trigger.remove();d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else if(h=="div"||h=="span")d.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();if(h=="input"){a.disabled=false;g.trigger.filter("button").each(function(){this.disabled=
false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(h=="div"||h=="span")d.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(n){return n==a?null:n})}},_disableDatepicker:function(a){var d=b(a),g=b.data(a,"datepicker");if(d.hasClass(this.markerClassName)){var h=a.nodeName.toLowerCase();if(h=="input"){a.disabled=true;g.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",
cursor:"default"})}else if(h=="div"||h=="span")d.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(n){return n==a?null:n});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var d=0;d<this._disabledInputs.length;d++)if(this._disabledInputs[d]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(d){throw"Missing instance data for this datepicker";
}},_optionDatepicker:function(a,d,g){var h=this._getInst(a);if(arguments.length==2&&typeof d=="string")return d=="defaults"?b.extend({},b.datepicker._defaults):h?d=="all"?b.extend({},h.settings):this._get(h,d):null;var n=d||{};if(typeof d=="string"){n={};n[d]=g}if(h){this._curInst==h&&this._hideDatepicker(null);var m=this._getDateDatepicker(a);f(h.settings,n);this._setDateDatepicker(a,m);this._updateDatepicker(h)}},_changeDatepicker:function(a,d,g){this._optionDatepicker(a,d,g)},_refreshDatepicker:function(a){(a=
this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,d,g){if(a=this._getInst(a)){this._setDate(a,d,g);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var d=b.datepicker._getInst(a.target),g=true,h=d.dpDiv.is(".ui-datepicker-rtl");d._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker(null,
"");break;case 13:g=b("td."+b.datepicker._dayOverClass+", td."+b.datepicker._currentClass,d.dpDiv);g[0]?b.datepicker._selectDay(a.target,d.selectedMonth,d.selectedYear,g[0]):b.datepicker._hideDatepicker(null,b.datepicker._get(d,"duration"));return false;case 27:b.datepicker._hideDatepicker(null,b.datepicker._get(d,"duration"));break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,
a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"):+b.datepicker._get(d,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);g=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);g=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,h?+1:-1,"D");g=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(d,"stepBigMonths"):-b.datepicker._get(d,
"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");g=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,h?-1:+1,"D");g=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(d,"stepBigMonths"):+b.datepicker._get(d,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");g=a.ctrlKey||a.metaKey;break;default:g=false}else if(a.keyCode==
36&&a.ctrlKey)b.datepicker._showDatepicker(this);else g=false;if(g){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var d=b.datepicker._getInst(a.target);if(b.datepicker._get(d,"constrainInput")){d=b.datepicker._possibleChars(b.datepicker._get(d,"dateFormat"));var g=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||g<" "||!d||d.indexOf(g)>-1}},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];
if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var d=b.datepicker._getInst(a),g=b.datepicker._get(d,"beforeShow");f(d.settings,g?g.apply(a,[a,d]):{});b.datepicker._hideDatepicker(null,"");b.datepicker._lastInput=a;b.datepicker._setDateFromField(d);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var h=false;b(a).parents().each(function(){h|=b(this).css("position")=="fixed";return!h});
if(h&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}a={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;d.rangeStart=null;d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(d);a=b.datepicker._checkOffset(d,a,h);d.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":h?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});
if(!d.inline){a=b.datepicker._get(d,"showAnim")||"show";g=b.datepicker._get(d,"duration");var n=function(){b.datepicker._datepickerShowing=true;b.browser.msie&&parseInt(b.browser.version,10)<7&&b("iframe.ui-datepicker-cover").css({width:d.dpDiv.width()+4,height:d.dpDiv.height()+4})};b.effects&&b.effects[a]?d.dpDiv.show(a,b.datepicker._get(d,"showOptions"),g,n):d.dpDiv[a](g,n);g==""&&n();d.input[0].type!="hidden"&&d.input[0].focus();b.datepicker._curInst=d}}},_updateDatepicker:function(a){var d={width:a.dpDiv.width()+
4,height:a.dpDiv.height()+4},g=this;a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({width:d.width,height:d.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",
function(){if(!g._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();d=this._getNumberOfMonths(a);var h=d[1];h>
1?a.dpDiv.addClass("ui-datepicker-multi-"+h).css("width",17*h+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(d[0]!=1||d[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&a.input[0].type!="hidden"&&a==b.datepicker._curInst&&b(a.input[0]).focus()},_checkOffset:function(a,d,g){var h=a.dpDiv.outerWidth(),n=a.dpDiv.outerHeight(),m=a.input?a.input.outerWidth():
0,p=a.input?a.input.outerHeight():0,s=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+b(document).scrollLeft(),w=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+b(document).scrollTop();d.left-=this._get(a,"isRTL")?h-m:0;d.left-=g&&d.left==a.input.offset().left?b(document).scrollLeft():0;d.top-=g&&d.top==a.input.offset().top+p?b(document).scrollTop():0;d.left-=d.left+h>s&&s>h?Math.abs(d.left+h-s):0;d.top-=d.top+n>w&&w>n?Math.abs(d.top+
n+p*2-w):0;return d},_findPos:function(a){for(;a&&(a.type=="hidden"||a.nodeType!=1);)a=a.nextSibling;a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,d){var g=this._curInst;if(!(!g||a&&g!=b.data(a,"datepicker"))){g.stayOpen&&this._selectDate("#"+g.id,this._formatDate(g,g.currentDay,g.currentMonth,g.currentYear));g.stayOpen=false;if(this._datepickerShowing){d=d!=null?d:this._get(g,"duration");a=this._get(g,"showAnim");var h=function(){b.datepicker._tidyDialog(g)};d!=""&&b.effects&&
b.effects[a]?g.dpDiv.hide(a,b.datepicker._get(g,"showOptions"),d,h):g.dpDiv[d==""?"hide":a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](d,h);d==""&&this._tidyDialog(g);if(d=this._get(g,"onClose"))d.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(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null}},
_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker(null,"")}},_adjustDate:function(a,d,g){a=b(a);var h=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(h,
d+(g=="M"?this._get(h,"showCurrentAtPos"):0),g);this._updateDatepicker(h)}},_gotoToday:function(a){a=b(a);var d=this._getInst(a[0]);if(this._get(d,"gotoCurrent")&&d.currentDay){d.selectedDay=d.currentDay;d.drawMonth=d.selectedMonth=d.currentMonth;d.drawYear=d.selectedYear=d.currentYear}else{var g=new Date;d.selectedDay=g.getDate();d.drawMonth=d.selectedMonth=g.getMonth();d.drawYear=d.selectedYear=g.getFullYear()}this._notifyChange(d);this._adjustDate(a)},_selectMonthYear:function(a,d,g){a=b(a);var h=
this._getInst(a[0]);h._selectingMonthYear=false;h["selected"+(g=="M"?"Month":"Year")]=h["draw"+(g=="M"?"Month":"Year")]=parseInt(d.options[d.selectedIndex].value,10);this._notifyChange(h);this._adjustDate(a)},_clickMonthYear:function(a){a=this._getInst(b(a)[0]);a.input&&a._selectingMonthYear&&!b.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_selectDay:function(a,d,g,h){var n=b(a);if(!(b(h).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0]))){n=this._getInst(n[0]);
n.selectedDay=n.currentDay=b("a",h).html();n.selectedMonth=n.currentMonth=d;n.selectedYear=n.currentYear=g;if(n.stayOpen)n.endDay=n.endMonth=n.endYear=null;this._selectDate(a,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear));if(n.stayOpen){n.rangeStart=this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));this._updateDatepicker(n)}}},_clearDate:function(a){a=b(a);var d=this._getInst(a[0]);d.stayOpen=false;d.endDay=d.endMonth=d.endYear=d.rangeStart=null;this._selectDate(a,
"")},_selectDate:function(a,d){a=this._getInst(b(a)[0]);d=d!=null?d:this._formatDate(a);a.input&&a.input.val(d);this._updateAlternate(a);var g=this._get(a,"onSelect");if(g)g.apply(a.input?a.input[0]:null,[d,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else if(!a.stayOpen){this._hideDatepicker(null,this._get(a,"duration"));this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input[0].focus();this._lastInput=null}},_updateAlternate:function(a){var d=this._get(a,
"altField");if(d){var g=this._get(a,"altFormat")||this._get(a,"dateFormat"),h=this._getDate(a);dateStr=this.formatDate(g,h,this._getFormatConfig(a));b(d).each(function(){b(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());var d=new Date(a.getFullYear(),0,4),g=d.getDay()||7;d.setDate(d.getDate()+1-g);if(g<4&&a<d){a.setDate(a.getDate()-3);return b.datepicker.iso8601Week(a)}else if(a>new Date(a.getFullYear(),
11,28)){g=(new Date(a.getFullYear()+1,0,4)).getDay()||7;if(g>4&&(a.getDay()||7)<g-3)return 1}return Math.floor((a-d)/864E5/7)+1},parseDate:function(a,d,g){if(a==null||d==null)throw"Invalid arguments";d=typeof d=="object"?d.toString():d+"";if(d=="")return null;for(var h=(g?g.shortYearCutoff:null)||this._defaults.shortYearCutoff,n=(g?g.dayNamesShort:null)||this._defaults.dayNamesShort,m=(g?g.dayNames:null)||this._defaults.dayNames,p=(g?g.monthNamesShort:null)||this._defaults.monthNamesShort,s=(g?g.monthNames:
null)||this._defaults.monthNames,w=g=-1,G=-1,E=-1,A=false,I=function(T){(T=J+1<a.length&&a.charAt(J+1)==T)&&J++;return T},N=function(T){I(T);for(var fa=T=T=="@"?14:T=="y"?4:T=="o"?3:2,ka=0;fa>0&&ea<d.length&&d.charAt(ea)>="0"&&d.charAt(ea)<="9";){ka=ka*10+parseInt(d.charAt(ea++),10);fa--}if(fa==T)throw"Missing number at position "+ea;return ka},j=function(T,fa,ka){T=I(T)?ka:fa;for(ka=fa=0;ka<T.length;ka++)fa=Math.max(fa,T[ka].length);ka="";for(var Ba=ea;fa>0&&ea<d.length;){ka+=d.charAt(ea++);for(var ha=
0;ha<T.length;ha++)if(ka==T[ha])return ha+1;fa--}throw"Unknown name at position "+Ba;},X=function(){if(d.charAt(ea)!=a.charAt(J))throw"Unexpected literal at position "+ea;ea++},ea=0,J=0;J<a.length;J++)if(A)if(a.charAt(J)=="'"&&!I("'"))A=false;else X();else switch(a.charAt(J)){case "d":G=N("d");break;case "D":j("D",n,m);break;case "o":E=N("o");break;case "m":w=N("m");break;case "M":w=j("M",p,s);break;case "y":g=N("y");break;case "@":var na=new Date(N("@"));g=na.getFullYear();w=na.getMonth()+1;G=na.getDate();
break;case "'":if(I("'"))X();else A=true;break;default:X()}if(g==-1)g=(new Date).getFullYear();else if(g<100)g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=h?0:-100);if(E>-1){w=1;G=E;do{h=this._getDaysInMonth(g,w-1);if(G<=h)break;w++;G-=h}while(1)}na=this._daylightSavingAdjust(new Date(g,w-1,G));if(na.getFullYear()!=g||na.getMonth()+1!=w||na.getDate()!=G)throw"Invalid date";return na},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",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,d,g){if(!d)return"";var h=(g?g.dayNamesShort:null)||this._defaults.dayNamesShort,n=(g?g.dayNames:null)||this._defaults.dayNames,m=(g?g.monthNamesShort:null)||this._defaults.monthNamesShort;g=(g?g.monthNames:null)||this._defaults.monthNames;var p=function(j){(j=A+1<a.length&&a.charAt(A+1)==j)&&A++;return j},s=function(j,X,ea){X=""+X;if(p(j))for(;X.length<ea;)X="0"+X;return X},w=function(j,X,
ea,J){return p(j)?J[X]:ea[X]},G="",E=false;if(d)for(var A=0;A<a.length;A++)if(E)if(a.charAt(A)=="'"&&!p("'"))E=false;else G+=a.charAt(A);else switch(a.charAt(A)){case "d":G+=s("d",d.getDate(),2);break;case "D":G+=w("D",d.getDay(),h,n);break;case "o":for(var I=d.getDate(),N=d.getMonth()-1;N>=0;N--)I+=this._getDaysInMonth(d.getFullYear(),N);G+=s("o",I,3);break;case "m":G+=s("m",d.getMonth()+1,2);break;case "M":G+=w("M",d.getMonth(),m,g);break;case "y":G+=p("y")?d.getFullYear():(d.getYear()%100<10?"0":
"")+d.getYear()%100;break;case "@":G+=d.getTime();break;case "'":if(p("'"))G+="'";else E=true;break;default:G+=a.charAt(A)}return G},_possibleChars:function(a){for(var d="",g=false,h=0;h<a.length;h++)if(g)if(a.charAt(h)=="'"&&!lookAhead("'"))g=false;else d+=a.charAt(h);else switch(a.charAt(h)){case "d":case "m":case "y":case "@":d+="0123456789";break;case "D":case "M":return null;case "'":if(lookAhead("'"))d+="'";else g=true;break;default:d+=a.charAt(h)}return d},_get:function(a,d){return a.settings[d]!==
undefined?a.settings[d]:this._defaults[d]},_setDateFromField:function(a){var d=this._get(a,"dateFormat"),g=a.input?a.input.val():null;a.endDay=a.endMonth=a.endYear=null;var h=defaultDate=this._getDefaultDate(a),n=this._getFormatConfig(a);try{h=this.parseDate(d,g,n)||defaultDate}catch(m){this.log(m);h=defaultDate}a.selectedDay=h.getDate();a.drawMonth=a.selectedMonth=h.getMonth();a.drawYear=a.selectedYear=h.getFullYear();a.currentDay=g?h.getDate():0;a.currentMonth=g?h.getMonth():0;a.currentYear=g?h.getFullYear():
0;this._adjustInstDate(a)},_getDefaultDate:function(a){var d=this._determineDate(this._get(a,"defaultDate"),new Date),g=this._getMinMaxDate(a,"min",true);a=this._getMinMaxDate(a,"max");d=g&&d<g?g:d;return d=a&&d>a?a:d},_determineDate:function(a,d){var g=function(n){var m=new Date;m.setDate(m.getDate()+n);return m},h=function(n,m){var p=new Date,s=p.getFullYear(),w=p.getMonth();p=p.getDate();for(var G=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,E=G.exec(n);E;){switch(E[2]||"d"){case "d":case "D":p+=parseInt(E[1],
10);break;case "w":case "W":p+=parseInt(E[1],10)*7;break;case "m":case "M":w+=parseInt(E[1],10);p=Math.min(p,m(s,w));break;case "y":case "Y":s+=parseInt(E[1],10);p=Math.min(p,m(s,w));break}E=G.exec(n)}return new Date(s,w,p)};if(a=(a=a==null?d:typeof a=="string"?h(a,this._getDaysInMonth):typeof a=="number"?isNaN(a)?d:g(a):a)&&a.toString()=="Invalid Date"?d:a){a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)}return this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(a){if(!a)return null;
a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,d){var g=!d,h=a.selectedMonth,n=a.selectedYear;d=this._determineDate(d,new Date);a.selectedDay=a.currentDay=d.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=d.getMonth();a.drawYear=a.selectedYear=a.currentYear=d.getFullYear();if(h!=a.selectedMonth||n!=a.selectedYear)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(g?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==
""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var d=new Date;d=this._daylightSavingAdjust(new Date(d.getFullYear(),d.getMonth(),d.getDate()));var g=this._get(a,"isRTL"),h=this._get(a,"showButtonPanel"),n=this._get(a,"hideIfNoPrevNext"),m=this._get(a,"navigationAsDateFormat"),p=this._getNumberOfMonths(a),s=this._get(a,"showCurrentAtPos"),w=this._get(a,"stepMonths");this._get(a,"stepBigMonths");var G=p[0]!=1||p[1]!=1,E=this._daylightSavingAdjust(!a.currentDay?
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),A=this._getMinMaxDate(a,"min",true),I=this._getMinMaxDate(a,"max");s=a.drawMonth-s;var N=a.drawYear;if(s<0){s+=12;N--}if(I){var j=this._daylightSavingAdjust(new Date(I.getFullYear(),I.getMonth()-p[1]+1,I.getDate()));for(j=A&&j<A?A:j;this._daylightSavingAdjust(new Date(N,s,1))>j;){s--;if(s<0){s=11;N--}}}a.drawMonth=s;a.drawYear=N;j=this._get(a,"prevText");j=!m?j:this.formatDate(j,this._daylightSavingAdjust(new Date(N,s-w,1)),this._getFormatConfig(a));
j=this._canAdjustMonth(a,-1,N,s)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', -"+w+", 'M');\" title=\""+j+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+j+"</span></a>":n?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+j+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+j+"</span></a>";var X=this._get(a,"nextText");X=!m?X:this.formatDate(X,this._daylightSavingAdjust(new Date(N,s+
w,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,+1,N,s)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', +"+w+", 'M');\" title=\""+X+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+X+"</span></a>":n?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+X+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+X+"</span></a>";w=this._get(a,"currentText");X=this._get(a,"gotoCurrent")&&a.currentDay?
E:d;w=!m?w:this.formatDate(w,X,this._getFormatConfig(a));m=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";h=h?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(g?m:"")+(this._isInRange(a,X)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+
a.id+"');\">"+w+"</button>":"")+(g?"":m)+"</div>":"";m=parseInt(this._get(a,"firstDay"),10);m=isNaN(m)?0:m;w=this._get(a,"dayNames");this._get(a,"dayNamesShort");X=this._get(a,"dayNamesMin");var ea=this._get(a,"monthNames"),J=this._get(a,"monthNamesShort"),na=this._get(a,"beforeShowDay"),T=this._get(a,"showOtherMonths");this._get(a,"calculateWeek");for(var fa=a.endDay?this._daylightSavingAdjust(new Date(a.endYear,a.endMonth,a.endDay)):E,ka=this._getDefaultDate(a),Ba="",ha=0;ha<p[0];ha++){for(var W=
"",oa=0;oa<p[1];oa++){var xa=this._daylightSavingAdjust(new Date(N,s,a.selectedDay)),da=" ui-corner-all",ia="";if(G){ia+='<div class="ui-datepicker-group ui-datepicker-group-';switch(oa){case 0:ia+="first";da=" ui-corner-"+(g?"right":"left");break;case p[1]-1:ia+="last";da=" ui-corner-"+(g?"left":"right");break;default:ia+="middle";da="";break}ia+='">'}ia+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+da+'">'+(/all|left/.test(da)&&ha==0?g?n:j:"")+(/all|right/.test(da)&&ha==
0?g?j:n:"")+this._generateMonthYearHeader(a,s,N,A,I,xa,ha>0||oa>0,ea,J)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var qa="";for(da=0;da<7;da++){var ca=(da+m)%7;qa+="<th"+((da+m+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+w[ca]+'">'+X[ca]+"</span></th>"}ia+=qa+"</tr></thead><tbody>";qa=this._getDaysInMonth(N,s);if(N==a.selectedYear&&s==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,qa);da=(this._getFirstDayOfMonth(N,s)-m+7)%7;qa=G?6:Math.ceil((da+qa)/7);ca=
this._daylightSavingAdjust(new Date(N,s,1-da));for(var sa=0;sa<qa;sa++){ia+="<tr>";var ya="";for(da=0;da<7;da++){var la=na?na.apply(a.input?a.input[0]:null,[ca]):[true,""],Ca=ca.getMonth()!=s,ta=Ca||!la[0]||A&&ca<A||I&&ca>I;ya+='<td class="'+((da+m+6)%7>=5?" ui-datepicker-week-end":"")+(Ca?" ui-datepicker-other-month":"")+(ca.getTime()==xa.getTime()&&s==a.selectedMonth&&a._keyEvent||ka.getTime()==ca.getTime()&&ka.getTime()==xa.getTime()?" "+this._dayOverClass:"")+(ta?" "+this._unselectableClass+" ui-state-disabled":
"")+(Ca&&!T?"":" "+la[1]+(ca.getTime()>=E.getTime()&&ca.getTime()<=fa.getTime()?" "+this._currentClass:"")+(ca.getTime()==d.getTime()?" ui-datepicker-today":""))+'"'+((!Ca||T)&&la[2]?' title="'+la[2]+'"':"")+(ta?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+a.id+"',"+s+","+N+', this);return false;"')+">"+(Ca?T?ca.getDate():"&#xa0;":ta?'<span class="ui-state-default">'+ca.getDate()+"</span>":'<a class="ui-state-default'+(ca.getTime()==d.getTime()?" ui-state-highlight":"")+(ca.getTime()>=E.getTime()&&
ca.getTime()<=fa.getTime()?" ui-state-active":"")+'" href="#">'+ca.getDate()+"</a>")+"</td>";ca.setDate(ca.getDate()+1);ca=this._daylightSavingAdjust(ca)}ia+=ya+"</tr>"}s++;if(s>11){s=0;N++}ia+="</tbody></table>"+(G?"</div>"+(p[0]>0&&oa==p[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");W+=ia}Ba+=W}Ba+=h+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return Ba},_generateMonthYearHeader:function(a,
d,g,h,n,m,p,s,w){h=a.rangeStart&&h&&m<h?m:h;m=this._get(a,"changeMonth");var G=this._get(a,"changeYear"),E=this._get(a,"showMonthAfterYear"),A='<div class="ui-datepicker-title">',I="";if(p||!m)I+='<span class="ui-datepicker-month">'+s[d]+"</span> ";else{s=h&&h.getFullYear()==g;var N=n&&n.getFullYear()==g;I+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";for(var j=0;j<
12;j++)if((!s||j>=h.getMonth())&&(!N||j<=n.getMonth()))I+='<option value="'+j+'"'+(j==d?' selected="selected"':"")+">"+w[j]+"</option>";I+="</select>"}E||(A+=I+((p||m||G)&&!(m&&G)?"&#xa0;":""));if(p||!G)A+='<span class="ui-datepicker-year">'+g+"</span>";else{d=this._get(a,"yearRange").split(":");s=w=0;if(d.length!=2){w=g-10;s=g+10}else if(d[0].charAt(0)=="+"||d[0].charAt(0)=="-"){w=g+parseInt(d[0],10);s=g+parseInt(d[1],10)}else{w=parseInt(d[0],10);s=parseInt(d[1],10)}w=h?Math.max(w,h.getFullYear()):
w;s=n?Math.min(s,n.getFullYear()):s;for(A+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";w<=s;w++)A+='<option value="'+w+'"'+(w==g?' selected="selected"':"")+">"+w+"</option>";A+="</select>"}if(E)A+=(p||m||G?"&#xa0;":"")+I;A+="</div>";return A},_adjustInstDate:function(a,d,g){var h=a.drawYear+(g=="Y"?d:0),n=a.drawMonth+(g=="M"?d:0);d=Math.min(a.selectedDay,this._getDaysInMonth(h,
n))+(g=="D"?d:0);h=this._daylightSavingAdjust(new Date(h,n,d));n=this._getMinMaxDate(a,"min",true);d=this._getMinMaxDate(a,"max");h=n&&h<n?n:h;h=d&&h>d?d:h;a.selectedDay=h.getDate();a.drawMonth=a.selectedMonth=h.getMonth();a.drawYear=a.selectedYear=h.getFullYear();if(g=="M"||g=="Y")this._notifyChange(a)},_notifyChange:function(a){var d=this._get(a,"onChangeMonthYear");if(d)d.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");
return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,d,g){d=this._determineDate(this._get(a,d+"Date"),null);return!g||!a.rangeStart?d:!d||a.rangeStart>d?a.rangeStart:d},_getDaysInMonth:function(a,d){return 32-(new Date(a,d,32)).getDate()},_getFirstDayOfMonth:function(a,d){return(new Date(a,d,1)).getDay()},_canAdjustMonth:function(a,d,g,h){var n=this._getNumberOfMonths(a);g=this._daylightSavingAdjust(new Date(g,h+(d<0?d:n[1]),1));d<0&&g.setDate(this._getDaysInMonth(g.getFullYear(),
g.getMonth()));return this._isInRange(a,g)},_isInRange:function(a,d){var g=!a.rangeStart?null:this._daylightSavingAdjust(new Date(a.selectedYear,a.selectedMonth,a.selectedDay));g=(g=g&&a.rangeStart<g?a.rangeStart:g)||this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!g||d>=g)&&(!a||d<=a)},_getFormatConfig:function(a){var d=this._get(a,"shortYearCutoff");d=typeof d!="string"?d:(new Date).getFullYear()%100+parseInt(d,10);return{shortYearCutoff:d,dayNamesShort:this._get(a,"dayNamesShort"),
dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,d,g,h){if(!d){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}d=d?typeof d=="object"?d:this._daylightSavingAdjust(new Date(h,g,d)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),d,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);
b.datepicker.initialized=true}var d=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(d));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(d));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(d)):b.datepicker._attachDatepicker(this,
a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.7.2";window.DP_jQuery=b})(jQuery);
(function(b){b.widget("ui.progressbar",{_init: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=b('<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").removeData("progressbar").unbind(".progressbar");
this.valueDiv.remove();b.widget.prototype.destroy.apply(this,arguments)},value:function(e){if(e===undefined)return this._value();this._setData("value",e);return this},_setData:function(e,f){switch(e){case "value":this.options.value=f;this._refreshValue();this._trigger("change",null,{});break}b.widget.prototype._setData.apply(this,arguments)},_value:function(){var e=this.options.value;if(e<this._valueMin())e=this._valueMin();if(e>this._valueMax())e=this._valueMax();return e},_valueMin:function(){return 0},
_valueMax:function(){return 100},_refreshValue:function(){var e=this.value();this.valueDiv[e==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(e+"%");this.element.attr("aria-valuenow",e)}});b.extend(b.ui.progressbar,{version:"1.7.2",defaults:{value:0}})})(jQuery);
jQuery.effects||function(b){function e(g,h){var n=g[1]&&g[1].constructor==Object?g[1]:{};if(h)n.mode=h;h=g[1]&&g[1].constructor!=Object?g[1]:n.duration?n.duration:g[2];h=b.fx.off?0:typeof h==="number"?h:b.fx.speeds[h]||b.fx.speeds._default;var m=n.callback||b.isFunction(g[1])&&g[1]||b.isFunction(g[2])&&g[2]||b.isFunction(g[3])&&g[3];return[g[0],n,h,m]}function f(g){var h;if(g&&g.constructor==Array&&g.length==3)return g;if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g))return[parseInt(h[1],
10),parseInt(h[2],10),parseInt(h[3],10)];if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g))return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55];if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g))return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)];if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g))return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(g))return d.transparent;
return d[b.trim(g).toLowerCase()]}function a(g,h){var n;do{n=b.curCSS(g,h);if(n!=""&&n!="transparent"||b.nodeName(g,"body"))break;h="backgroundColor"}while(g=g.parentNode);return f(n)}b.effects={version:"1.7.2",save:function(g,h){for(var n=0;n<h.length;n++)h[n]!==null&&g.data("ec.storage."+h[n],g[0].style[h[n]])},restore:function(g,h){for(var n=0;n<h.length;n++)h[n]!==null&&g.css(h[n],g.data("ec.storage."+h[n]))},setMode:function(g,h){if(h=="toggle")h=g.is(":hidden")?"show":"hide";return h},getBaseline:function(g,
h){var n;switch(g[0]){case "top":n=0;break;case "middle":n=0.5;break;case "bottom":n=1;break;default:n=g[0]/h.height}switch(g[1]){case "left":g=0;break;case "center":g=0.5;break;case "right":g=1;break;default:g=g[1]/h.width}return{x:g,y:n}},createWrapper:function(g){if(g.parent().is(".ui-effects-wrapper"))return g.parent();var h={width:g.outerWidth(true),height:g.outerHeight(true),"float":g.css("float")};g.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
var n=g.parent();if(g.css("position")=="static"){n.css({position:"relative"});g.css({position:"relative"})}else{var m=g.css("top");if(isNaN(parseInt(m,10)))m="auto";var p=g.css("left");if(isNaN(parseInt(p,10)))p="auto";n.css({position:g.css("position"),top:m,left:p,zIndex:g.css("z-index")}).show();g.css({position:"relative",top:0,left:0})}n.css(h);return n},removeWrapper:function(g){if(g.parent().is(".ui-effects-wrapper"))return g.parent().replaceWith(g);return g},setTransition:function(g,h,n,m){m=
m||{};b.each(h,function(p,s){unit=g.cssUnit(s);if(unit[0]>0)m[s]=unit[0]*n+unit[1]});return m},animateClass:function(g,h,n,m){var p=typeof n=="function"?n:m?m:null,s=typeof n=="string"?n:null;return this.each(function(){var w={},G=b(this),E=G.attr("style")||"";if(typeof E=="object")E=E.cssText;if(g.toggle)G.hasClass(g.toggle)?(g.remove=g.toggle):(g.add=g.toggle);var A=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);g.add&&G.addClass(g.add);g.remove&&
G.removeClass(g.remove);var I=b.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);g.add&&G.removeClass(g.add);g.remove&&G.addClass(g.remove);for(var N in I)if(typeof I[N]!="function"&&I[N]&&N.indexOf("Moz")==-1&&N.indexOf("length")==-1&&I[N]!=A[N]&&(N.match(/color/i)||!N.match(/color/i)&&!isNaN(parseInt(I[N],10)))&&(A.position!="static"||A.position=="static"&&!N.match(/left|top|bottom|right/)))w[N]=I[N];G.animate(w,h,s,function(){if(typeof b(this).attr("style")==
"object"){b(this).attr("style").cssText="";b(this).attr("style").cssText=E}else b(this).attr("style",E);g.add&&b(this).addClass(g.add);g.remove&&b(this).removeClass(g.remove);p&&p.apply(this,arguments)})})}};b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(g,h,n,m){return b.effects[g]?b.effects[g].call(this,{method:g,options:h||{},duration:n,callback:m}):null},show:function(){return!arguments[0]||
arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._show.apply(this,arguments):this.effect.apply(this,e(arguments,"show"))},hide:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])?this._hide.apply(this,arguments):this.effect.apply(this,e(arguments,"hide"))},toggle:function(){return!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||b.isFunction(arguments[0])||typeof arguments[0]==
"boolean"?this.__toggle.apply(this,arguments):this.effect.apply(this,e(arguments,"toggle"))},addClass:function(g,h,n,m){return h?b.effects.animateClass.apply(this,[{add:g},h,n,m]):this._addClass(g)},removeClass:function(g,h,n,m){return h?b.effects.animateClass.apply(this,[{remove:g},h,n,m]):this._removeClass(g)},toggleClass:function(g,h,n,m){return typeof h!=="boolean"&&h?b.effects.animateClass.apply(this,[{toggle:g},h,n,m]):this._toggleClass(g,h)},morph:function(g,h,n,m,p){return b.effects.animateClass.apply(this,
[{add:h,remove:g},n,m,p])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(g){var h=this.css(g),n=[];b.each(["em","px","%","pt"],function(m,p){if(h.indexOf(p)>0)n=[parseFloat(h),p]});return n}});b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,h){b.fx.step[h]=function(n){if(n.state==0){n.start=a(n.elem,h);n.end=f(n.end)}n.elem.style[h]="rgb("+[Math.max(Math.min(parseInt(n.pos*(n.end[0]-
n.start[0])+n.start[0],10),255),0),Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1],10),255),0),Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.start[2],10),255),0)].join(",")+")"}});var d={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]};b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(g,h,n,m,p){return b.easing[b.easing.def](g,h,n,m,p)},easeInQuad:function(g,h,n,m,p){return m*(h/=p)*h+n},easeOutQuad:function(g,h,n,m,p){return-m*(h/=p)*(h-2)+n},easeInOutQuad:function(g,h,n,m,p){if((h/=p/2)<1)return m/2*h*h+n;return-m/2*(--h*(h-2)-1)+n},easeInCubic:function(g,h,n,m,p){return m*(h/=p)*h*h+n},easeOutCubic:function(g,
h,n,m,p){return m*((h=h/p-1)*h*h+1)+n},easeInOutCubic:function(g,h,n,m,p){if((h/=p/2)<1)return m/2*h*h*h+n;return m/2*((h-=2)*h*h+2)+n},easeInQuart:function(g,h,n,m,p){return m*(h/=p)*h*h*h+n},easeOutQuart:function(g,h,n,m,p){return-m*((h=h/p-1)*h*h*h-1)+n},easeInOutQuart:function(g,h,n,m,p){if((h/=p/2)<1)return m/2*h*h*h*h+n;return-m/2*((h-=2)*h*h*h-2)+n},easeInQuint:function(g,h,n,m,p){return m*(h/=p)*h*h*h*h+n},easeOutQuint:function(g,h,n,m,p){return m*((h=h/p-1)*h*h*h*h+1)+n},easeInOutQuint:function(g,
h,n,m,p){if((h/=p/2)<1)return m/2*h*h*h*h*h+n;return m/2*((h-=2)*h*h*h*h+2)+n},easeInSine:function(g,h,n,m,p){return-m*Math.cos(h/p*(Math.PI/2))+m+n},easeOutSine:function(g,h,n,m,p){return m*Math.sin(h/p*(Math.PI/2))+n},easeInOutSine:function(g,h,n,m,p){return-m/2*(Math.cos(Math.PI*h/p)-1)+n},easeInExpo:function(g,h,n,m,p){return h==0?n:m*Math.pow(2,10*(h/p-1))+n},easeOutExpo:function(g,h,n,m,p){return h==p?n+m:m*(-Math.pow(2,-10*h/p)+1)+n},easeInOutExpo:function(g,h,n,m,p){if(h==0)return n;if(h==
p)return n+m;if((h/=p/2)<1)return m/2*Math.pow(2,10*(h-1))+n;return m/2*(-Math.pow(2,-10*--h)+2)+n},easeInCirc:function(g,h,n,m,p){return-m*(Math.sqrt(1-(h/=p)*h)-1)+n},easeOutCirc:function(g,h,n,m,p){return m*Math.sqrt(1-(h=h/p-1)*h)+n},easeInOutCirc:function(g,h,n,m,p){if((h/=p/2)<1)return-m/2*(Math.sqrt(1-h*h)-1)+n;return m/2*(Math.sqrt(1-(h-=2)*h)+1)+n},easeInElastic:function(g,h,n,m,p){g=1.70158;var s=0,w=m;if(h==0)return n;if((h/=p)==1)return n+m;s||(s=p*0.3);if(w<Math.abs(m)){w=m;g=s/4}else g=
s/(2*Math.PI)*Math.asin(m/w);return-(w*Math.pow(2,10*(h-=1))*Math.sin((h*p-g)*2*Math.PI/s))+n},easeOutElastic:function(g,h,n,m,p){g=1.70158;var s=0,w=m;if(h==0)return n;if((h/=p)==1)return n+m;s||(s=p*0.3);if(w<Math.abs(m)){w=m;g=s/4}else g=s/(2*Math.PI)*Math.asin(m/w);return w*Math.pow(2,-10*h)*Math.sin((h*p-g)*2*Math.PI/s)+m+n},easeInOutElastic:function(g,h,n,m,p){g=1.70158;var s=0,w=m;if(h==0)return n;if((h/=p/2)==2)return n+m;s||(s=p*0.3*1.5);if(w<Math.abs(m)){w=m;g=s/4}else g=s/(2*Math.PI)*Math.asin(m/
w);if(h<1)return-0.5*w*Math.pow(2,10*(h-=1))*Math.sin((h*p-g)*2*Math.PI/s)+n;return w*Math.pow(2,-10*(h-=1))*Math.sin((h*p-g)*2*Math.PI/s)*0.5+m+n},easeInBack:function(g,h,n,m,p,s){if(s==undefined)s=1.70158;return m*(h/=p)*h*((s+1)*h-s)+n},easeOutBack:function(g,h,n,m,p,s){if(s==undefined)s=1.70158;return m*((h=h/p-1)*h*((s+1)*h+s)+1)+n},easeInOutBack:function(g,h,n,m,p,s){if(s==undefined)s=1.70158;if((h/=p/2)<1)return m/2*h*h*(((s*=1.525)+1)*h-s)+n;return m/2*((h-=2)*h*(((s*=1.525)+1)*h+s)+2)+n},
easeInBounce:function(g,h,n,m,p){return m-b.easing.easeOutBounce(g,p-h,0,m,p)+n},easeOutBounce:function(g,h,n,m,p){return(h/=p)<1/2.75?m*7.5625*h*h+n:h<2/2.75?m*(7.5625*(h-=1.5/2.75)*h+0.75)+n:h<2.5/2.75?m*(7.5625*(h-=2.25/2.75)*h+0.9375)+n:m*(7.5625*(h-=2.625/2.75)*h+0.984375)+n},easeInOutBounce:function(g,h,n,m,p){if(h<p/2)return b.easing.easeInBounce(g,h*2,0,m,p)*0.5+n;return b.easing.easeOutBounce(g,h*2-p,0,m,p)*0.5+m*0.5+n}})}(jQuery);
(function(b){b.effects.blind=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],d=b.effects.setMode(f,e.options.mode||"hide"),g=e.options.direction||"vertical";b.effects.save(f,a);f.show();var h=b.effects.createWrapper(f).css({overflow:"hidden"}),n=g=="vertical"?"height":"width";g=g=="vertical"?h.height():h.width();d=="show"&&h.css(n,0);var m={};m[n]=d=="show"?g:0;h.animate(m,e.duration,e.options.easing,function(){d=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
(function(b){b.effects.bounce=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],d=b.effects.setMode(f,e.options.mode||"effect"),g=e.options.direction||"up",h=e.options.distance||20,n=e.options.times||5,m=e.duration||250;/show|hide/.test(d)&&a.push("opacity");b.effects.save(f,a);f.show();b.effects.createWrapper(f);var p=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";h=e.options.distance||(p=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
3);if(d=="show")f.css("opacity",0).css(p,g=="pos"?-h:h);if(d=="hide")h/=n*2;d!="hide"&&n--;if(d=="show"){var s={opacity:1};s[p]=(g=="pos"?"+=":"-=")+h;f.animate(s,m/2,e.options.easing);h/=2;n--}for(s=0;s<n;s++){var w={},G={};w[p]=(g=="pos"?"-=":"+=")+h;G[p]=(g=="pos"?"+=":"-=")+h;f.animate(w,m/2,e.options.easing).animate(G,m/2,e.options.easing);h=d=="hide"?h*2:h/2}if(d=="hide"){s={opacity:0};s[p]=(g=="pos"?"-=":"+=")+h;f.animate(s,m/2,e.options.easing,function(){f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);
e.callback&&e.callback.apply(this,arguments)})}else{w={};G={};w[p]=(g=="pos"?"-=":"+=")+h;G[p]=(g=="pos"?"+=":"-=")+h;f.animate(w,m/2,e.options.easing).animate(G,m/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
(function(b){b.effects.clip=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","height","width"],d=b.effects.setMode(f,e.options.mode||"hide"),g=e.options.direction||"vertical";b.effects.save(f,a);f.show();var h=b.effects.createWrapper(f).css({overflow:"hidden"});h=f[0].tagName=="IMG"?h:f;var n={size:g=="vertical"?"height":"width",position:g=="vertical"?"top":"left"};g=g=="vertical"?h.height():h.width();if(d=="show"){h.css(n.size,0);h.css(n.position,g/2)}var m={};m[n.size]=
d=="show"?g:0;m[n.position]=d=="show"?0:g/2;h.animate(m,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){d=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
(function(b){b.effects.drop=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","opacity"],d=b.effects.setMode(f,e.options.mode||"hide"),g=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f);var h=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";var n=e.options.distance||(h=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(d=="show")f.css("opacity",0).css(h,g=="pos"?-n:n);var m={opacity:d=="show"?1:
0};m[h]=(d=="show"?g=="pos"?"+=":"-=":g=="pos"?"-=":"+=")+n;f.animate(m,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){d=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(b){b.effects.explode=function(e){return this.queue(function(){var f=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,a=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode=e.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":e.options.mode;var d=b(this).show().css("visibility","hidden"),g=d.offset();g.top-=parseInt(d.css("marginTop"),10)||0;g.left-=parseInt(d.css("marginLeft"),10)||0;for(var h=d.outerWidth(true),n=d.outerHeight(true),m=0;m<f;m++)for(var p=
0;p<a;p++)d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*(h/a),top:-m*(n/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/a,height:n/f,left:g.left+p*(h/a)+(e.options.mode=="show"?(p-Math.floor(a/2))*(h/a):0),top:g.top+m*(n/f)+(e.options.mode=="show"?(m-Math.floor(f/2))*(n/f):0),opacity:e.options.mode=="show"?0:1}).animate({left:g.left+p*(h/a)+(e.options.mode=="show"?0:(p-Math.floor(a/2))*(h/a)),top:g.top+
m*(n/f)+(e.options.mode=="show"?0:(m-Math.floor(f/2))*(n/f)),opacity:e.options.mode=="show"?1:0},e.duration||500);setTimeout(function(){e.options.mode=="show"?d.css({visibility:"visible"}):d.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(d[0]);d.dequeue();b("div.ui-effects-explode").remove()},e.duration||500)})}})(jQuery);
(function(b){b.effects.fold=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],d=b.effects.setMode(f,e.options.mode||"hide"),g=e.options.size||15,h=!!e.options.horizFirst,n=e.duration?e.duration/2:b.fx.speeds._default/2;b.effects.save(f,a);f.show();var m=b.effects.createWrapper(f).css({overflow:"hidden"}),p=d=="show"!=h,s=p?["width","height"]:["height","width"];p=p?[m.width(),m.height()]:[m.height(),m.width()];var w=/([0-9]+)%/.exec(g);if(w)g=parseInt(w[1],10)/100*
p[d=="hide"?0:1];if(d=="show")m.css(h?{height:0,width:g}:{height:g,width:0});h={};w={};h[s[0]]=d=="show"?p[0]:g;w[s[1]]=d=="show"?p[1]:0;m.animate(h,n,e.options.easing).animate(w,n,e.options.easing,function(){d=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
(function(b){b.effects.highlight=function(e){return this.queue(function(){var f=b(this),a=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(f,e.options.mode||"show"),g=e.options.color||"#ffff99",h=f.css("backgroundColor");b.effects.save(f,a);f.show();f.css({backgroundImage:"none",backgroundColor:g});g={backgroundColor:h};if(d=="hide")g.opacity=0;f.animate(g,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){d=="hide"&&f.hide();b.effects.restore(f,a);d==
"show"&&b.browser.msie&&this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(b){b.effects.pulsate=function(e){return this.queue(function(){var f=b(this),a=b.effects.setMode(f,e.options.mode||"show"),d=e.options.times||5,g=e.duration?e.duration/2:b.fx.speeds._default/2;a=="hide"&&d--;if(f.is(":hidden")){f.css("opacity",0);f.show();f.animate({opacity:1},g,e.options.easing);d-=2}for(var h=0;h<d;h++)f.animate({opacity:0},g,e.options.easing).animate({opacity:1},g,e.options.easing);a=="hide"?f.animate({opacity:0},g,e.options.easing,function(){f.hide();e.callback&&e.callback.apply(this,
arguments)}):f.animate({opacity:0},g,e.options.easing).animate({opacity:1},g,e.options.easing,function(){e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
(function(b){b.effects.puff=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,{},e.options),d=b.effects.setMode(f,e.options.mode||"hide"),g=parseInt(e.options.percent,10)||150;a.fade=true;var h={height:f.height(),width:f.width()},n=g/100;f.from=d=="hide"?h:{height:h.height*n,width:h.width*n};a.from=f.from;a.percent=d=="hide"?g:100;a.mode=d;f.effect("scale",a,e.duration,e.callback);f.dequeue()})};b.effects.scale=function(e){return this.queue(function(){var f=b(this),a=b.extend(true,
{},e.options),d=b.effects.setMode(f,e.options.mode||"effect"),g=parseInt(e.options.percent,10)||(parseInt(e.options.percent,10)==0?0:d=="hide"?0:100),h=e.options.direction||"both",n=e.options.origin;if(d!="effect"){a.origin=n||["middle","center"];a.restore=true}n={height:f.height(),width:f.width()};f.from=e.options.from||(d=="show"?{height:0,width:0}:n);g={y:h!="horizontal"?g/100:1,x:h!="vertical"?g/100:1};f.to={height:n.height*g.y,width:n.width*g.x};if(e.options.fade){if(d=="show"){f.from.opacity=
0;f.to.opacity=1}if(d=="hide"){f.from.opacity=1;f.to.opacity=0}}a.from=f.from;a.to=f.to;a.mode=d;f.effect("size",a,e.duration,e.callback);f.dequeue()})};b.effects.size=function(e){return this.queue(function(){var f=b(this),a=["position","top","left","width","height","overflow","opacity"],d=["position","top","left","overflow","opacity"],g=["width","height","overflow"],h=["fontSize"],n=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft",
"paddingRight"],p=b.effects.setMode(f,e.options.mode||"effect"),s=e.options.restore||false,w=e.options.scale||"both",G=e.options.origin,E={height:f.height(),width:f.width()};f.from=e.options.from||E;f.to=e.options.to||E;if(G){G=b.effects.getBaseline(G,E);f.from.top=(E.height-f.from.height)*G.y;f.from.left=(E.width-f.from.width)*G.x;f.to.top=(E.height-f.to.height)*G.y;f.to.left=(E.width-f.to.width)*G.x}var A={from:{y:f.from.height/E.height,x:f.from.width/E.width},to:{y:f.to.height/E.height,x:f.to.width/
E.width}};if(w=="box"||w=="both"){if(A.from.y!=A.to.y){a=a.concat(n);f.from=b.effects.setTransition(f,n,A.from.y,f.from);f.to=b.effects.setTransition(f,n,A.to.y,f.to)}if(A.from.x!=A.to.x){a=a.concat(m);f.from=b.effects.setTransition(f,m,A.from.x,f.from);f.to=b.effects.setTransition(f,m,A.to.x,f.to)}}if(w=="content"||w=="both")if(A.from.y!=A.to.y){a=a.concat(h);f.from=b.effects.setTransition(f,h,A.from.y,f.from);f.to=b.effects.setTransition(f,h,A.to.y,f.to)}b.effects.save(f,s?a:d);f.show();b.effects.createWrapper(f);
f.css("overflow","hidden").css(f.from);if(w=="content"||w=="both"){n=n.concat(["marginTop","marginBottom"]).concat(h);m=m.concat(["marginLeft","marginRight"]);g=a.concat(n).concat(m);f.find("*[width]").each(function(){child=b(this);s&&b.effects.save(child,g);var I={height:child.height(),width:child.width()};child.from={height:I.height*A.from.y,width:I.width*A.from.x};child.to={height:I.height*A.to.y,width:I.width*A.to.x};if(A.from.y!=A.to.y){child.from=b.effects.setTransition(child,n,A.from.y,child.from);
child.to=b.effects.setTransition(child,n,A.to.y,child.to)}if(A.from.x!=A.to.x){child.from=b.effects.setTransition(child,m,A.from.x,child.from);child.to=b.effects.setTransition(child,m,A.to.x,child.to)}child.css(child.from);child.animate(child.to,e.duration,e.options.easing,function(){s&&b.effects.restore(child,g)})})}f.animate(f.to,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){p=="hide"&&f.hide();b.effects.restore(f,s?a:d);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,
arguments);f.dequeue()}})})}})(jQuery);
(function(b){b.effects.shake=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"];b.effects.setMode(f,e.options.mode||"effect");var d=e.options.direction||"left",g=e.options.distance||20,h=e.options.times||3,n=e.duration||e.options.duration||140;b.effects.save(f,a);f.show();b.effects.createWrapper(f);var m=d=="up"||d=="down"?"top":"left",p=d=="up"||d=="left"?"pos":"neg";d={};var s={},w={};d[m]=(p=="pos"?"-=":"+=")+g;s[m]=(p=="pos"?"+=":"-=")+g*2;w[m]=(p=="pos"?"-=":"+=")+
g*2;f.animate(d,n,e.options.easing);for(g=1;g<h;g++)f.animate(s,n,e.options.easing).animate(w,n,e.options.easing);f.animate(s,n,e.options.easing).animate(d,n/2,e.options.easing,function(){b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
(function(b){b.effects.slide=function(e){return this.queue(function(){var f=b(this),a=["position","top","left"],d=b.effects.setMode(f,e.options.mode||"show"),g=e.options.direction||"left";b.effects.save(f,a);f.show();b.effects.createWrapper(f).css({overflow:"hidden"});var h=g=="up"||g=="down"?"top":"left";g=g=="up"||g=="left"?"pos":"neg";var n=e.options.distance||(h=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(d=="show")f.css(h,g=="pos"?-n:n);var m={};m[h]=(d=="show"?g=="pos"?
"+=":"-=":g=="pos"?"-=":"+=")+n;f.animate(m,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){d=="hide"&&f.hide();b.effects.restore(f,a);b.effects.removeWrapper(f);e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(b){b.effects.transfer=function(e){return this.queue(function(){var f=b(this),a=b(e.options.to),d=a.offset();a={top:d.top,left:d.left,height:a.innerHeight(),width:a.innerWidth()};d=f.offset();var g=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:d.top,left:d.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(a,e.duration,e.options.easing,function(){g.remove();e.callback&&e.callback.apply(f[0],arguments);
f.dequeue()})})}})(jQuery);var swfobject=function(){function b(){if(!ta){try{var y=W.getElementsByTagName("body")[0].appendChild(N("span"));y.parentNode.removeChild(y)}catch(B){return}ta=true;y=da.length;for(var M=0;M<y;M++)da[M]()}}function e(y){if(ta)y();else da[da.length]=y}function f(y){if(typeof ha.addEventListener!=T)ha.addEventListener("load",y,false);else if(typeof W.addEventListener!=T)W.addEventListener("load",y,false);else if(typeof ha.attachEvent!=T)j(ha,"onload",y);else if(typeof ha.onload=="function"){var B=ha.onload;
ha.onload=function(){B();y()}}else ha.onload=y}function a(){xa?d():g()}function d(){var y=W.getElementsByTagName("body")[0],B=N(fa);B.setAttribute("type",ka);var M=y.appendChild(B);if(M){var O=0;(function(){if(typeof M.GetVariable!=T){var Q=M.GetVariable("$version");if(Q){Q=Q.split(" ")[1].split(",");R.pv=[parseInt(Q[0],10),parseInt(Q[1],10),parseInt(Q[2],10)]}}else if(O<10){O++;setTimeout(arguments.callee,10);return}y.removeChild(B);M=null;g()})()}else g()}function g(){var y=ia.length;if(y>0)for(var B=
0;B<y;B++){var M=ia[B].id,O=ia[B].callbackFn,Q={success:false,id:M};if(R.pv[0]>0){var Y=I(M);if(Y)if(X(ia[B].swfVersion)&&!(R.wk&&R.wk<312)){J(M,true);if(O){Q.success=true;Q.ref=h(M);O(Q)}}else if(ia[B].expressInstall&&n()){Q={};Q.data=ia[B].expressInstall;Q.width=Y.getAttribute("width")||"0";Q.height=Y.getAttribute("height")||"0";if(Y.getAttribute("class"))Q.styleclass=Y.getAttribute("class");if(Y.getAttribute("align"))Q.align=Y.getAttribute("align");var Z={};Y=Y.getElementsByTagName("param");for(var ga=
Y.length,ma=0;ma<ga;ma++)if(Y[ma].getAttribute("name").toLowerCase()!="movie")Z[Y[ma].getAttribute("name")]=Y[ma].getAttribute("value");m(Q,Z,M,O)}else{p(Y);O&&O(Q)}}else{J(M,true);if(O){if((M=h(M))&&typeof M.SetVariable!=T){Q.success=true;Q.ref=M}O(Q)}}}}function h(y){var B=null;if((y=I(y))&&y.nodeName=="OBJECT")if(typeof y.SetVariable!=T)B=y;else if(y=y.getElementsByTagName(fa)[0])B=y;return B}function n(){return!Ka&&X("6.0.65")&&(R.win||R.mac)&&!(R.wk&&R.wk<312)}function m(y,B,M,O){Ka=true;la=
O||null;Ca={success:false,id:M};var Q=I(M);if(Q){if(Q.nodeName=="OBJECT"){sa=s(Q);ya=null}else{sa=Q;ya=M}y.id=Ba;if(typeof y.width==T||!/%$/.test(y.width)&&parseInt(y.width,10)<310)y.width="310";if(typeof y.height==T||!/%$/.test(y.height)&&parseInt(y.height,10)<137)y.height="137";W.title=W.title.slice(0,47)+" - Flash Player Installation";O=R.ie&&R.win?"ActiveX":"PlugIn";O="MMredirectURL="+ha.location.toString().replace(/&/g,"%26")+"&MMplayerType="+O+"&MMdoctitle="+W.title;if(typeof B.flashvars!=T)B.flashvars+=
"&"+O;else B.flashvars=O;if(R.ie&&R.win&&Q.readyState!=4){O=N("div");M+="SWFObjectNew";O.setAttribute("id",M);Q.parentNode.insertBefore(O,Q);Q.style.display="none";(function(){Q.readyState==4?Q.parentNode.removeChild(Q):setTimeout(arguments.callee,10)})()}w(y,B,M)}}function p(y){if(R.ie&&R.win&&y.readyState!=4){var B=N("div");y.parentNode.insertBefore(B,y);B.parentNode.replaceChild(s(y),B);y.style.display="none";(function(){y.readyState==4?y.parentNode.removeChild(y):setTimeout(arguments.callee,10)})()}else y.parentNode.replaceChild(s(y),
y)}function s(y){var B=N("div");if(R.win&&R.ie)B.innerHTML=y.innerHTML;else if(y=y.getElementsByTagName(fa)[0])if(y=y.childNodes)for(var M=y.length,O=0;O<M;O++)!(y[O].nodeType==1&&y[O].nodeName=="PARAM")&&y[O].nodeType!=8&&B.appendChild(y[O].cloneNode(true));return B}function w(y,B,M){var O,Q=I(M);if(R.wk&&R.wk<312)return O;if(Q){if(typeof y.id==T)y.id=M;if(R.ie&&R.win){var Y="";for(var Z in y)if(y[Z]!=Object.prototype[Z])if(Z.toLowerCase()=="data")B.movie=y[Z];else if(Z.toLowerCase()=="styleclass")Y+=
' class="'+y[Z]+'"';else if(Z.toLowerCase()!="classid")Y+=" "+Z+'="'+y[Z]+'"';Z="";for(var ga in B)if(B[ga]!=Object.prototype[ga])Z+='<param name="'+ga+'" value="'+B[ga]+'" />';Q.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+Y+">"+Z+"</object>";qa[qa.length]=y.id;O=I(y.id)}else{ga=N(fa);ga.setAttribute("type",ka);for(Y in y)if(y[Y]!=Object.prototype[Y])if(Y.toLowerCase()=="styleclass")ga.setAttribute("class",y[Y]);else Y.toLowerCase()!="classid"&&ga.setAttribute(Y,y[Y]);
for(var ma in B)B[ma]!=Object.prototype[ma]&&ma.toLowerCase()!="movie"&&G(ga,ma,B[ma]);Q.parentNode.replaceChild(ga,Q);O=ga}}return O}function G(y,B,M){var O=N("param");O.setAttribute("name",B);O.setAttribute("value",M);y.appendChild(O)}function E(y){var B=I(y);if(B&&B.nodeName=="OBJECT")if(R.ie&&R.win){B.style.display="none";(function(){B.readyState==4?A(y):setTimeout(arguments.callee,10)})()}else B.parentNode.removeChild(B)}function A(y){if(y=I(y)){for(var B in y)if(typeof y[B]=="function")y[B]=
null;y.parentNode.removeChild(y)}}function I(y){var B=null;try{B=W.getElementById(y)}catch(M){}return B}function N(y){return W.createElement(y)}function j(y,B,M){y.attachEvent(B,M);ca[ca.length]=[y,B,M]}function X(y){var B=R.pv;y=y.split(".");y[0]=parseInt(y[0],10);y[1]=parseInt(y[1],10)||0;y[2]=parseInt(y[2],10)||0;return B[0]>y[0]||B[0]==y[0]&&B[1]>y[1]||B[0]==y[0]&&B[1]==y[1]&&B[2]>=y[2]?true:false}function ea(y,B,M,O){if(!(R.ie&&R.mac)){var Q=W.getElementsByTagName("head")[0];if(Q){M=M&&typeof M==
"string"?M:"screen";if(O)Ia=za=null;if(!za||Ia!=M){O=N("style");O.setAttribute("type","text/css");O.setAttribute("media",M);za=Q.appendChild(O);if(R.ie&&R.win&&typeof W.styleSheets!=T&&W.styleSheets.length>0)za=W.styleSheets[W.styleSheets.length-1];Ia=M}if(R.ie&&R.win)za&&typeof za.addRule==fa&&za.addRule(y,B);else za&&typeof W.createTextNode!=T&&za.appendChild(W.createTextNode(y+" {"+B+"}"))}}}function J(y,B){if(Pa){B=B?"visible":"hidden";if(ta&&I(y))I(y).style.visibility=B;else ea("#"+y,"visibility:"+
B)}}function na(y){return/[\\\"<>\.;]/.exec(y)!=null&&typeof encodeURIComponent!=T?encodeURIComponent(y):y}var T="undefined",fa="object",ka="application/x-shockwave-flash",Ba="SWFObjectExprInst",ha=window,W=document,oa=navigator,xa=false,da=[a],ia=[],qa=[],ca=[],sa,ya,la,Ca,ta=false,Ka=false,za,Ia,Pa=true,R=function(){var y=typeof W.getElementById!=T&&typeof W.getElementsByTagName!=T&&typeof W.createElement!=T,B=oa.userAgent.toLowerCase(),M=oa.platform.toLowerCase(),O=M?/win/.test(M):/win/.test(B);
M=M?/mac/.test(M):/mac/.test(B);B=/webkit/.test(B)?parseFloat(B.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var Q=!+"\u000b1",Y=[0,0,0],Z=null;if(typeof oa.plugins!=T&&typeof oa.plugins["Shockwave Flash"]==fa){if((Z=oa.plugins["Shockwave Flash"].description)&&!(typeof oa.mimeTypes!=T&&oa.mimeTypes[ka]&&!oa.mimeTypes[ka].enabledPlugin)){xa=true;Q=false;Z=Z.replace(/^.*\s+(\S+\s+\S+$)/,"$1");Y[0]=parseInt(Z.replace(/^(.*)\..*$/,"$1"),10);Y[1]=parseInt(Z.replace(/^.*\.(.*)\s.*$/,"$1"),10);Y[2]=
/[a-zA-Z]/.test(Z)?parseInt(Z.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof ha.ActiveXObject!=T)try{var ga=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(ga)if(Z=ga.GetVariable("$version")){Q=true;Z=Z.split(" ")[1].split(",");Y=[parseInt(Z[0],10),parseInt(Z[1],10),parseInt(Z[2],10)]}}catch(ma){}return{w3:y,pv:Y,wk:B,ie:Q,win:O,mac:M}}();(function(){if(R.w3){if(typeof W.readyState!=T&&W.readyState=="complete"||typeof W.readyState==T&&(W.getElementsByTagName("body")[0]||W.body))b();
if(!ta){typeof W.addEventListener!=T&&W.addEventListener("DOMContentLoaded",b,false);if(R.ie&&R.win){W.attachEvent("onreadystatechange",function(){if(W.readyState=="complete"){W.detachEvent("onreadystatechange",arguments.callee);b()}});ha==top&&function(){if(!ta){try{W.documentElement.doScroll("left")}catch(y){setTimeout(arguments.callee,0);return}b()}}()}R.wk&&function(){ta||(/loaded|complete/.test(W.readyState)?b():setTimeout(arguments.callee,0))}();f(b)}}})();(function(){R.ie&&R.win&&window.attachEvent("onunload",
function(){for(var y=ca.length,B=0;B<y;B++)ca[B][0].detachEvent(ca[B][1],ca[B][2]);y=qa.length;for(B=0;B<y;B++)E(qa[B]);for(var M in R)R[M]=null;R=null;for(var O in swfobject)swfobject[O]=null;swfobject=null})})();return{registerObject:function(y,B,M,O){if(R.w3&&y&&B){var Q={};Q.id=y;Q.swfVersion=B;Q.expressInstall=M;Q.callbackFn=O;ia[ia.length]=Q;J(y,false)}else O&&O({success:false,id:y})},getObjectById:function(y){if(R.w3)return h(y)},embedSWF:function(y,B,M,O,Q,Y,Z,ga,ma,Ea){var Fa={success:false,
id:B};if(R.w3&&!(R.wk&&R.wk<312)&&y&&B&&M&&O&&Q){J(B,false);e(function(){M+="";O+="";var Da={};if(ma&&typeof ma===fa)for(var Aa in ma)Da[Aa]=ma[Aa];Da.data=y;Da.width=M;Da.height=O;Aa={};if(ga&&typeof ga===fa)for(var Ma in ga)Aa[Ma]=ga[Ma];if(Z&&typeof Z===fa)for(var Ja in Z)if(typeof Aa.flashvars!=T)Aa.flashvars+="&"+Ja+"="+Z[Ja];else Aa.flashvars=Ja+"="+Z[Ja];if(X(Q)){Ma=w(Da,Aa,B);Da.id==B&&J(B,true);Fa.success=true;Fa.ref=Ma}else if(Y&&n()){Da.data=Y;m(Da,Aa,B,Ea);return}else J(B,true);Ea&&Ea(Fa)})}else Ea&&
Ea(Fa)},switchOffAutoHideShow:function(){Pa=false},ua:R,getFlashPlayerVersion:function(){return{major:R.pv[0],minor:R.pv[1],release:R.pv[2]}},hasFlashPlayerVersion:X,createSWF:function(y,B,M){if(R.w3)return w(y,B,M)},showExpressInstall:function(y,B,M,O){R.w3&&n()&&m(y,B,M,O)},removeSWF:function(y){R.w3&&E(y)},createCSS:function(y,B,M,O){R.w3&&ea(y,B,M,O)},addDomLoadEvent:e,addLoadEvent:f,getQueryParamValue:function(y){var B=W.location.search||W.location.hash;if(B){if(/\?/.test(B))B=B.split("?")[1];
if(y==null)return na(B);B=B.split("&");for(var M=0;M<B.length;M++)if(B[M].substring(0,B[M].indexOf("="))==y)return na(B[M].substring(B[M].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Ka){var y=I(Ba);if(y&&sa){y.parentNode.replaceChild(sa,y);if(ya){J(ya,true);if(R.ie&&R.win)sa.style.display="block"}la&&la(Ca)}Ka=false}}}}();var friend_request_dialog=null;function friendRequest(b){checkLogin(window.location.href);if(friend_request_dialog)friend_request_dialog.dialog("open");else{$('<div id="friend_request_dialog_container"></div>').appendTo("body");var e=$("#friend_request_dialog_container");e.html('<iframe width="400px" height="260px" src="/friends/request/'+b+'/"></iframe>');friend_request_dialog=e.dialog({width:420,height:320,resizable:false,title:"Request friendship"})}return false}
$(document).ready(function(){if($("#htmlCode")){$('<div id="html_container"></div>').appendTo("body");var b=null;$("#htmlCode").click(function(e){e.preventDefault();e=$("#html_container");e.html('<iframe width="600px" height="280px" src="'+this.href+'?window=1"></iframe>');if(b)b.dialog("open");else b=e.dialog({width:630,height:340,resizable:false,title:"WeGIF HTML share code"})})}$("#expand-home")&&$("#expand-home").click(function(){hideDropDowns();$("#home-menu").toggle()});$("#expand-create")&&
$("#expand-create").click(function(){hideDropDowns();$("#create-menu").toggle()});$("#expand-people")&&$("#expand-people").click(function(){hideDropDowns();$("#people-menu").toggle()});$("#expand-browse")&&$("#expand-browse").click(function(){hideDropDowns();$("#browse-menu").toggle()});$("#expand-more")&&$("#expand-more").click(function(){hideDropDowns();$("#more-menu").toggle()});$("#expand-search")&&$("#expand-search").click(function(){hideDropDowns();$("#search-menu").toggle()})});
function hideDropDowns(){$("#home-menu")&&$("#home-menu").fadeOut();$("#create-menu")&&$("#create-menu").fadeOut();$("#people-menu")&&$("#people-menu").fadeOut();$("#browse-menu")&&$("#browse-menu").fadeOut();$("#more-menu")&&$("#more-menu").fadeOut()}function countDown(){if(closeIn>0){var b=closeIn;closeIn-=1;$("#closeIn").html(b)}else closeThisWindow()}function hideNotice(b){$(b).addClass("hide");return false}
function report(b,e,f){$("#"+f).load("/flag/addflag/"+e+"/");$("#"+b).removeClass("button-link");$("#"+b).addClass("button-link-selected");$("#"+b).addClass("disable");return false}function closeFlag(b,e){$("#"+e).removeClass("disable");$("#"+e).removeClass("button-link-selected");$("#"+e).addClass("button-link");$("#"+b).remove();return false}function checkLogin(b){if(username)return true;else{window.location="/accounts/login/?next="+b;return false}}
function search(){$("#searchForm")&&$("#searchForm").submit()}function followAdd(b,e,f){b=$("#"+b);$("#"+f).load("/friends/follow/add/"+e+"/");b&&b.remove()}function followRemove(b,e,f){b=$("#"+b);$("#"+f).load("/friends/follow/remove/"+e+"/");b&&b.remove()}function toggle_all(b,e){var f=$(b).checked;$("#"+e+" input[type=checkbox]").each(function(a,d){a.checked=f})}
function update_toggle_all(b,e){var f=true;$("#"+e+" input[type=checkbox]").each(function(a,d){if(a.checked==false)f=false});$("#"+b).set("checked",f)}function module_colapse(b,e,f){$("#"+e).css("display","none");$("#"+f).css("display","inline");$("#"+b).addClass("hide")}function module_expand(b,e,f){$(e).css("display","inline");$(f).css("display","none");$(b).removeClass("hide")}function default_module_state(b,e,f){return false}
function openPopup(b,e,f,a,d){if((b=window.open(b,e,"height="+f+",width="+a+(d?",scrollbars=1":"")))&&!b.opener)b.opener=window;window.focus&&b.focus();return false};

